xo 0.53.1 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. package/config/plugins.cjs +27 -4
  2. package/lib/options-manager.js +11 -58
  3. package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
  4. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
  5. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
  6. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
  7. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
  8. package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
  9. package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
  10. package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
  11. package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
  12. package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
  13. package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
  14. package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
  15. package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
  16. package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
  17. package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
  18. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
  19. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
  20. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +2 -1
  21. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
  22. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +4 -2
  23. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
  24. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
  25. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
  26. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -1
  27. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
  28. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +3 -3
  29. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
  30. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
  31. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
  32. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
  33. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -1
  34. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
  35. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
  36. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +17 -7
  37. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
  38. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
  39. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
  40. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +5 -11
  41. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
  42. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +22 -3
  43. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
  44. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +12 -0
  45. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
  46. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
  47. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
  48. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -2
  49. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
  50. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +384 -0
  51. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
  52. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
  53. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
  54. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +14 -13
  55. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
  56. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -0
  57. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
  58. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +6 -6
  59. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
  60. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +231 -198
  61. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
  62. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +5 -0
  63. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
  64. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
  65. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
  66. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
  67. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
  68. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
  69. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
  70. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +45 -4
  71. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
  72. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
  73. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
  74. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +79 -0
  75. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
  76. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
  77. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
  78. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
  79. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
  80. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
  81. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
  82. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +196 -0
  83. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
  84. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
  85. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
  86. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
  87. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
  88. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
  89. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
  90. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +21 -31
  91. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
  92. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +22 -7
  93. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
  94. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +4 -5
  95. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
  96. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +9 -9
  97. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
  98. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -2
  99. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
  100. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -2
  101. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
  102. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -0
  103. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
  104. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -0
  105. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
  106. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +3 -5
  107. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
  108. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +4 -5
  109. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
  110. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -2
  111. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
  112. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +19 -1
  113. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  114. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +47 -11
  115. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
  116. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -1
  117. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
  118. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
  119. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
  120. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
  121. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
  122. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +3 -1
  123. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
  124. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  125. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
  126. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
  127. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
  128. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +5 -5
  129. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
  130. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
  131. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
  132. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -2
  133. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
  134. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
  135. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
  136. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
  137. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
  138. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
  139. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
  140. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
  141. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
  142. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
  143. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
  144. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
  145. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
  146. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
  147. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
  148. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
  149. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
  150. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +1 -0
  151. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
  152. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
  153. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
  154. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
  155. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
  156. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
  157. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
  158. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
  159. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
  160. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
  161. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
  162. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
  163. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
  164. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
  165. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
  166. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
  167. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
  168. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
  169. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
  170. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
  171. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
  172. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
  173. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
  174. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
  175. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
  176. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
  177. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
  178. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
  179. package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
  180. package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
  181. package/node_modules/@typescript-eslint/parser/README.md +6 -300
  182. package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
  183. package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
  184. package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
  185. package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
  186. package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
  187. package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
  188. package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
  189. package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
  190. package/node_modules/@typescript-eslint/parser/package.json +6 -6
  191. package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
  192. package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
  193. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
  194. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
  195. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
  196. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
  197. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -105
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -0
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -0
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -1
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +2 -0
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +43 -1
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
  254. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
  255. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
  256. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
  257. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
  258. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +1 -1
  259. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
  260. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
  261. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
  262. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
  263. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
  264. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
  265. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
  266. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
  267. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
  268. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
  269. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
  270. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
  271. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
  272. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
  273. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
  274. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
  275. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -1
  276. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
  277. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +1 -1
  278. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
  279. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
  280. package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
  281. package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
  282. package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
  283. package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
  284. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
  285. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
  286. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
  287. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
  288. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
  289. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
  290. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
  291. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
  292. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
  293. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
  294. package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
  295. package/node_modules/@typescript-eslint/types/LICENSE +1 -1
  296. package/node_modules/@typescript-eslint/types/README.md +6 -11
  297. package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
  298. package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
  299. package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
  300. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
  301. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
  302. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
  303. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
  304. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
  305. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
  306. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
  307. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
  308. package/node_modules/@typescript-eslint/types/package.json +6 -6
  309. package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
  310. package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
  311. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
  312. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
  313. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  314. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
  315. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
  316. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
  317. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
  318. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  319. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
  320. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
  321. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
  322. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
  323. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
  324. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  325. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
  326. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
  327. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
  328. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
  329. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
  330. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
  331. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
  332. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
  333. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
  334. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
  335. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
  336. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
  337. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +1 -0
  338. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
  339. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
  340. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
  341. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
  342. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
  343. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
  344. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
  345. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
  346. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  347. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
  348. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
  349. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
  350. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
  351. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
  352. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
  353. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
  354. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
  355. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
  356. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
  357. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
  358. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
  359. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
  360. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
  361. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
  362. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
  363. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
  364. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
  365. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
  366. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
  367. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
  368. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
  369. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
  370. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
  371. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
  372. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  373. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
  374. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
  375. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
  376. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
  377. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
  378. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
  379. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
  380. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
  381. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
  382. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
  383. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
  384. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
  385. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
  386. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +1 -1
  387. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
  388. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
  389. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
  390. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
  391. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
  392. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
  393. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
  394. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  395. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
  396. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
  397. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
  398. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
  399. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
  400. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
  401. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
  402. package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
  403. package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
  404. package/node_modules/@typescript-eslint/utils/README.md +6 -23
  405. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  406. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  407. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  408. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  409. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  410. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
  411. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
  412. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  413. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
  414. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
  415. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  416. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  417. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
  418. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
  419. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
  420. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
  421. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
  422. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
  423. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  424. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
  425. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
  426. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  427. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
  428. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
  429. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  430. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
  431. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
  432. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  433. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
  434. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
  435. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
  436. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  437. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
  438. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
  439. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
  440. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
  441. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
  442. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
  443. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
  444. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
  445. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  446. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
  447. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
  448. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
  449. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
  450. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
  451. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
  452. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
  453. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
  454. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
  455. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  456. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
  457. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
  458. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
  459. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  460. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
  461. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
  462. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
  463. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
  464. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
  465. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
  466. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
  467. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
  468. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
  469. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
  470. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
  471. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
  472. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
  473. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
  474. package/node_modules/@typescript-eslint/utils/package.json +8 -8
  475. package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
  476. package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -9
  477. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
  478. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -48
  479. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
  480. package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
  481. package/node_modules/eslint-config-xo-typescript/index.js +8 -11
  482. package/node_modules/eslint-config-xo-typescript/package.json +5 -5
  483. package/node_modules/eslint-visitor-keys/README.md +1 -2
  484. package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
  485. package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
  486. package/node_modules/eslint-visitor-keys/package.json +16 -6
  487. package/node_modules/fastq/README.md +1 -1
  488. package/node_modules/fastq/index.d.ts +1 -1
  489. package/node_modules/fastq/package.json +1 -1
  490. package/node_modules/fastq/queue.js +6 -0
  491. package/node_modules/fastq/test/promise.js +27 -0
  492. package/node_modules/grapheme-splitter/LICENSE +22 -0
  493. package/node_modules/grapheme-splitter/README.md +111 -0
  494. package/node_modules/grapheme-splitter/index.d.ts +24 -0
  495. package/node_modules/grapheme-splitter/index.js +1743 -0
  496. package/node_modules/grapheme-splitter/package.json +34 -0
  497. package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
  498. package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
  499. package/node_modules/ignore/README.md +3 -3
  500. package/node_modules/ignore/index.js +24 -9
  501. package/node_modules/ignore/legacy.js +176 -135
  502. package/node_modules/ignore/package.json +13 -11
  503. package/package.json +19 -19
  504. package/readme.md +1 -2
  505. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
  506. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
  507. package/node_modules/braces/CHANGELOG.md +0 -184
  508. package/node_modules/eslint-scope/CHANGELOG.md +0 -70
  509. package/node_modules/eslint-utils/README.md +0 -38
  510. package/node_modules/eslint-utils/index.js.map +0 -1
  511. package/node_modules/eslint-utils/index.mjs.map +0 -1
  512. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
  513. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
  514. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
  515. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
  516. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
  517. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
  518. package/node_modules/eslint-utils/package.json +0 -78
  519. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  520. package/node_modules/picomatch/CHANGELOG.md +0 -136
  521. package/node_modules/regexpp/index.d.ts +0 -248
  522. package/node_modules/regexpp/index.js.map +0 -1
  523. package/node_modules/regexpp/index.mjs.map +0 -1
  524. /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
  525. /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
  526. /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
  527. /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
  528. /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
  529. /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
  530. /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
@@ -1,12 +1,9 @@
1
- /*! @author Toru Nagashima <https://github.com/mysticatea> */
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
6
-
7
-
8
5
  var ast = /*#__PURE__*/Object.freeze({
9
-
6
+ __proto__: null
10
7
  });
11
8
 
12
9
  let largeIdStartRanges = undefined;
@@ -40,17 +37,16 @@ function isIdContinue(cp) {
40
37
  return isLargeIdStart(cp) || isLargeIdContinue(cp);
41
38
  }
42
39
  function isLargeIdStart(cp) {
43
- return isInRange(cp, largeIdStartRanges || (largeIdStartRanges = initLargeIdStartRanges()));
40
+ return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges()));
44
41
  }
45
42
  function isLargeIdContinue(cp) {
46
- return isInRange(cp, largeIdContinueRanges ||
47
- (largeIdContinueRanges = initLargeIdContinueRanges()));
43
+ return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges()));
48
44
  }
49
45
  function initLargeIdStartRanges() {
50
- return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 1i k 2 h 1p 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 6 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 x 0 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 c 2 3 f h f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 6 1k t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 1a 2 1a 2 3o 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t g70 4 wc 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1g 3 8 17 c 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f 4d 8m a l b 7 49 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 2z k s m d 1g 24 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o 2d 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 6e 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 z 1k 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i 5a 0 28 pl 2v 32 i 5f 24d tq 34i g6 6nu fs 8 u 36 t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6wo 7y 1e 2 i 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1th 18 b 6 h 0 aa 17 105 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyl z 378 c 65 3 4g1 f 5rk 2e8 f1 15v 3t6");
46
+ return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk 2e8 f1 15v 3t6 6 38f");
51
47
  }
52
48
  function initLargeIdContinueRanges() {
53
- return restoreRanges("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 3c e 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1m 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 h 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 5 3 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 2 u 2 u 1 v 1 1t v a 0 3 9 y 2 3 9 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 1 1s 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1l 2 4 g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 4a a 4w 2 1i e w 9 g 3 1a a 1i 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 4h b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 ewa 9 3r 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 43r 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 7a 6 a 9 bn d 15j 6 32 6 6 9 3o7 9 gvt3 6n");
49
+ return restoreRanges("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1p 7 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n");
54
50
  }
55
51
  function isInRange(cp, ranges) {
56
52
  let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0;
@@ -72,34 +68,48 @@ function isInRange(cp, ranges) {
72
68
  }
73
69
  function restoreRanges(data) {
74
70
  let last = 0;
75
- return data.split(" ").map(s => (last += parseInt(s, 36) | 0));
71
+ return data.split(" ").map((s) => (last += parseInt(s, 36) | 0));
76
72
  }
77
73
 
78
74
  class DataSet {
79
- constructor(raw2018, raw2019, raw2020, raw2021) {
75
+ constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023) {
80
76
  this._raw2018 = raw2018;
81
77
  this._raw2019 = raw2019;
82
78
  this._raw2020 = raw2020;
83
79
  this._raw2021 = raw2021;
80
+ this._raw2022 = raw2022;
81
+ this._raw2023 = raw2023;
84
82
  }
85
83
  get es2018() {
86
- return (this._set2018 || (this._set2018 = new Set(this._raw2018.split(" "))));
84
+ var _a;
85
+ return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" "))));
87
86
  }
88
87
  get es2019() {
89
- return (this._set2019 || (this._set2019 = new Set(this._raw2019.split(" "))));
88
+ var _a;
89
+ return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" "))));
90
90
  }
91
91
  get es2020() {
92
- return (this._set2020 || (this._set2020 = new Set(this._raw2020.split(" "))));
92
+ var _a;
93
+ return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" "))));
93
94
  }
94
95
  get es2021() {
95
- return (this._set2021 || (this._set2021 = new Set(this._raw2021.split(" "))));
96
+ var _a;
97
+ return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" "))));
98
+ }
99
+ get es2022() {
100
+ var _a;
101
+ return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" "))));
102
+ }
103
+ get es2023() {
104
+ var _a;
105
+ return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" "))));
96
106
  }
97
107
  }
98
108
  const gcNameSet = new Set(["General_Category", "gc"]);
99
109
  const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]);
100
- 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", "", "", "");
101
- 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");
102
- 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");
110
+ 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", "", "", "", "", "");
111
+ 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");
112
+ 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", "", "");
103
113
  function isValidUnicodeProperty(version, name, value) {
104
114
  if (gcNameSet.has(name)) {
105
115
  return version >= 2018 && gcValueSets.es2018.has(value);
@@ -108,7 +118,9 @@ function isValidUnicodeProperty(version, name, value) {
108
118
  return ((version >= 2018 && scValueSets.es2018.has(value)) ||
109
119
  (version >= 2019 && scValueSets.es2019.has(value)) ||
110
120
  (version >= 2020 && scValueSets.es2020.has(value)) ||
111
- (version >= 2021 && scValueSets.es2021.has(value)));
121
+ (version >= 2021 && scValueSets.es2021.has(value)) ||
122
+ (version >= 2022 && scValueSets.es2022.has(value)) ||
123
+ (version >= 2023 && scValueSets.es2023.has(value)));
112
124
  }
113
125
  return false;
114
126
  }
@@ -118,105 +130,105 @@ function isValidLoneUnicodeProperty(version, value) {
118
130
  (version >= 2021 && binPropertySets.es2021.has(value)));
119
131
  }
120
132
 
121
- const Backspace = 0x08;
122
- const CharacterTabulation = 0x09;
123
- const LineFeed = 0x0a;
124
- const LineTabulation = 0x0b;
125
- const FormFeed = 0x0c;
126
- const CarriageReturn = 0x0d;
127
- const ExclamationMark = 0x21;
128
- const DollarSign = 0x24;
129
- const LeftParenthesis = 0x28;
130
- const RightParenthesis = 0x29;
131
- const Asterisk = 0x2a;
132
- const PlusSign = 0x2b;
133
- const Comma = 0x2c;
134
- const HyphenMinus = 0x2d;
135
- const FullStop = 0x2e;
136
- const Solidus = 0x2f;
137
- const DigitZero = 0x30;
138
- const DigitOne = 0x31;
139
- const DigitSeven = 0x37;
140
- const DigitNine = 0x39;
141
- const Colon = 0x3a;
142
- const LessThanSign = 0x3c;
143
- const EqualsSign = 0x3d;
144
- const GreaterThanSign = 0x3e;
145
- const QuestionMark = 0x3f;
146
- const LatinCapitalLetterA = 0x41;
147
- const LatinCapitalLetterB = 0x42;
148
- const LatinCapitalLetterD = 0x44;
149
- const LatinCapitalLetterF = 0x46;
150
- const LatinCapitalLetterP = 0x50;
151
- const LatinCapitalLetterS = 0x53;
152
- const LatinCapitalLetterW = 0x57;
153
- const LatinCapitalLetterZ = 0x5a;
154
- const LowLine = 0x5f;
155
- const LatinSmallLetterA = 0x61;
156
- const LatinSmallLetterB = 0x62;
157
- const LatinSmallLetterC = 0x63;
158
- const LatinSmallLetterD = 0x64;
159
- const LatinSmallLetterF = 0x66;
160
- const LatinSmallLetterG = 0x67;
161
- const LatinSmallLetterI = 0x69;
162
- const LatinSmallLetterK = 0x6b;
163
- const LatinSmallLetterM = 0x6d;
164
- const LatinSmallLetterN = 0x6e;
165
- const LatinSmallLetterP = 0x70;
166
- const LatinSmallLetterR = 0x72;
167
- const LatinSmallLetterS = 0x73;
168
- const LatinSmallLetterT = 0x74;
169
- const LatinSmallLetterU = 0x75;
170
- const LatinSmallLetterV = 0x76;
171
- const LatinSmallLetterW = 0x77;
172
- const LatinSmallLetterX = 0x78;
173
- const LatinSmallLetterY = 0x79;
174
- const LatinSmallLetterZ = 0x7a;
175
- const LeftSquareBracket = 0x5b;
176
- const ReverseSolidus = 0x5c;
177
- const RightSquareBracket = 0x5d;
178
- const CircumflexAccent = 0x5e;
179
- const LeftCurlyBracket = 0x7b;
180
- const VerticalLine = 0x7c;
181
- const RightCurlyBracket = 0x7d;
182
- const ZeroWidthNonJoiner = 0x200c;
183
- const ZeroWidthJoiner = 0x200d;
184
- const LineSeparator = 0x2028;
185
- const ParagraphSeparator = 0x2029;
186
- const MinCodePoint = 0x00;
187
- const MaxCodePoint = 0x10ffff;
133
+ const BACKSPACE = 0x08;
134
+ const CHARACTER_TABULATION = 0x09;
135
+ const LINE_FEED = 0x0a;
136
+ const LINE_TABULATION = 0x0b;
137
+ const FORM_FEED = 0x0c;
138
+ const CARRIAGE_RETURN = 0x0d;
139
+ const EXCLAMATION_MARK = 0x21;
140
+ const DOLLAR_SIGN = 0x24;
141
+ const LEFT_PARENTHESIS = 0x28;
142
+ const RIGHT_PARENTHESIS = 0x29;
143
+ const ASTERISK = 0x2a;
144
+ const PLUS_SIGN = 0x2b;
145
+ const COMMA = 0x2c;
146
+ const HYPHEN_MINUS = 0x2d;
147
+ const FULL_STOP = 0x2e;
148
+ const SOLIDUS = 0x2f;
149
+ const DIGIT_ZERO = 0x30;
150
+ const DIGIT_ONE = 0x31;
151
+ const DIGIT_SEVEN = 0x37;
152
+ const DIGIT_NINE = 0x39;
153
+ const COLON = 0x3a;
154
+ const LESS_THAN_SIGN = 0x3c;
155
+ const EQUALS_SIGN = 0x3d;
156
+ const GREATER_THAN_SIGN = 0x3e;
157
+ const QUESTION_MARK = 0x3f;
158
+ const LATIN_CAPITAL_LETTER_A = 0x41;
159
+ const LATIN_CAPITAL_LETTER_B = 0x42;
160
+ const LATIN_CAPITAL_LETTER_D = 0x44;
161
+ const LATIN_CAPITAL_LETTER_F = 0x46;
162
+ const LATIN_CAPITAL_LETTER_P = 0x50;
163
+ const LATIN_CAPITAL_LETTER_S = 0x53;
164
+ const LATIN_CAPITAL_LETTER_W = 0x57;
165
+ const LATIN_CAPITAL_LETTER_Z = 0x5a;
166
+ const LOW_LINE = 0x5f;
167
+ const LATIN_SMALL_LETTER_A = 0x61;
168
+ const LATIN_SMALL_LETTER_B = 0x62;
169
+ const LATIN_SMALL_LETTER_C = 0x63;
170
+ const LATIN_SMALL_LETTER_D = 0x64;
171
+ const LATIN_SMALL_LETTER_F = 0x66;
172
+ const LATIN_SMALL_LETTER_G = 0x67;
173
+ const LATIN_SMALL_LETTER_I = 0x69;
174
+ const LATIN_SMALL_LETTER_K = 0x6b;
175
+ const LATIN_SMALL_LETTER_M = 0x6d;
176
+ const LATIN_SMALL_LETTER_N = 0x6e;
177
+ const LATIN_SMALL_LETTER_P = 0x70;
178
+ const LATIN_SMALL_LETTER_R = 0x72;
179
+ const LATIN_SMALL_LETTER_S = 0x73;
180
+ const LATIN_SMALL_LETTER_T = 0x74;
181
+ const LATIN_SMALL_LETTER_U = 0x75;
182
+ const LATIN_SMALL_LETTER_V = 0x76;
183
+ const LATIN_SMALL_LETTER_W = 0x77;
184
+ const LATIN_SMALL_LETTER_X = 0x78;
185
+ const LATIN_SMALL_LETTER_Y = 0x79;
186
+ const LATIN_SMALL_LETTER_Z = 0x7a;
187
+ const LEFT_SQUARE_BRACKET = 0x5b;
188
+ const REVERSE_SOLIDUS = 0x5c;
189
+ const RIGHT_SQUARE_BRACKET = 0x5d;
190
+ const CIRCUMFLEX_ACCENT = 0x5e;
191
+ const LEFT_CURLY_BRACKET = 0x7b;
192
+ const VERTICAL_LINE = 0x7c;
193
+ const RIGHT_CURLY_BRACKET = 0x7d;
194
+ const ZERO_WIDTH_NON_JOINER = 0x200c;
195
+ const ZERO_WIDTH_JOINER = 0x200d;
196
+ const LINE_SEPARATOR = 0x2028;
197
+ const PARAGRAPH_SEPARATOR = 0x2029;
198
+ const MIN_CODE_POINT = 0x00;
199
+ const MAX_CODE_POINT = 0x10ffff;
188
200
  function isLatinLetter(code) {
189
- return ((code >= LatinCapitalLetterA && code <= LatinCapitalLetterZ) ||
190
- (code >= LatinSmallLetterA && code <= LatinSmallLetterZ));
201
+ return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) ||
202
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z));
191
203
  }
192
204
  function isDecimalDigit(code) {
193
- return code >= DigitZero && code <= DigitNine;
205
+ return code >= DIGIT_ZERO && code <= DIGIT_NINE;
194
206
  }
195
207
  function isOctalDigit(code) {
196
- return code >= DigitZero && code <= DigitSeven;
208
+ return code >= DIGIT_ZERO && code <= DIGIT_SEVEN;
197
209
  }
198
210
  function isHexDigit(code) {
199
- return ((code >= DigitZero && code <= DigitNine) ||
200
- (code >= LatinCapitalLetterA && code <= LatinCapitalLetterF) ||
201
- (code >= LatinSmallLetterA && code <= LatinSmallLetterF));
211
+ return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) ||
212
+ (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) ||
213
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F));
202
214
  }
203
215
  function isLineTerminator(code) {
204
- return (code === LineFeed ||
205
- code === CarriageReturn ||
206
- code === LineSeparator ||
207
- code === ParagraphSeparator);
216
+ return (code === LINE_FEED ||
217
+ code === CARRIAGE_RETURN ||
218
+ code === LINE_SEPARATOR ||
219
+ code === PARAGRAPH_SEPARATOR);
208
220
  }
209
221
  function isValidUnicode(code) {
210
- return code >= MinCodePoint && code <= MaxCodePoint;
222
+ return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT;
211
223
  }
212
224
  function digitToInt(code) {
213
- if (code >= LatinSmallLetterA && code <= LatinSmallLetterF) {
214
- return code - LatinSmallLetterA + 10;
225
+ if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) {
226
+ return code - LATIN_SMALL_LETTER_A + 10;
215
227
  }
216
- if (code >= LatinCapitalLetterA && code <= LatinCapitalLetterF) {
217
- return code - LatinCapitalLetterA + 10;
228
+ if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) {
229
+ return code - LATIN_CAPITAL_LETTER_A + 10;
218
230
  }
219
- return code - DigitZero;
231
+ return code - DIGIT_ZERO;
220
232
  }
221
233
  function isLeadSurrogate(code) {
222
234
  return code >= 0xd800 && code <= 0xdbff;
@@ -346,33 +358,33 @@ class RegExpSyntaxError extends SyntaxError {
346
358
  }
347
359
 
348
360
  function isSyntaxCharacter(cp) {
349
- return (cp === CircumflexAccent ||
350
- cp === DollarSign ||
351
- cp === ReverseSolidus ||
352
- cp === FullStop ||
353
- cp === Asterisk ||
354
- cp === PlusSign ||
355
- cp === QuestionMark ||
356
- cp === LeftParenthesis ||
357
- cp === RightParenthesis ||
358
- cp === LeftSquareBracket ||
359
- cp === RightSquareBracket ||
360
- cp === LeftCurlyBracket ||
361
- cp === RightCurlyBracket ||
362
- cp === VerticalLine);
361
+ return (cp === CIRCUMFLEX_ACCENT ||
362
+ cp === DOLLAR_SIGN ||
363
+ cp === REVERSE_SOLIDUS ||
364
+ cp === FULL_STOP ||
365
+ cp === ASTERISK ||
366
+ cp === PLUS_SIGN ||
367
+ cp === QUESTION_MARK ||
368
+ cp === LEFT_PARENTHESIS ||
369
+ cp === RIGHT_PARENTHESIS ||
370
+ cp === LEFT_SQUARE_BRACKET ||
371
+ cp === RIGHT_SQUARE_BRACKET ||
372
+ cp === LEFT_CURLY_BRACKET ||
373
+ cp === RIGHT_CURLY_BRACKET ||
374
+ cp === VERTICAL_LINE);
363
375
  }
364
376
  function isRegExpIdentifierStart(cp) {
365
- return isIdStart(cp) || cp === DollarSign || cp === LowLine;
377
+ return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE;
366
378
  }
367
379
  function isRegExpIdentifierPart(cp) {
368
380
  return (isIdContinue(cp) ||
369
- cp === DollarSign ||
370
- cp === LowLine ||
371
- cp === ZeroWidthNonJoiner ||
372
- cp === ZeroWidthJoiner);
381
+ cp === DOLLAR_SIGN ||
382
+ cp === LOW_LINE ||
383
+ cp === ZERO_WIDTH_NON_JOINER ||
384
+ cp === ZERO_WIDTH_JOINER);
373
385
  }
374
386
  function isUnicodePropertyNameCharacter(cp) {
375
- return isLatinLetter(cp) || cp === LowLine;
387
+ return isLatinLetter(cp) || cp === LOW_LINE;
376
388
  }
377
389
  function isUnicodePropertyValueCharacter(cp) {
378
390
  return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp);
@@ -392,13 +404,13 @@ class RegExpValidator {
392
404
  this._numCapturingParens = 0;
393
405
  this._groupNames = new Set();
394
406
  this._backreferenceNames = new Set();
395
- this._options = options || {};
407
+ this._options = options !== null && options !== void 0 ? options : {};
396
408
  }
397
409
  validateLiteral(source, start = 0, end = source.length) {
398
410
  this._uFlag = this._nFlag = false;
399
411
  this.reset(source, start, end);
400
412
  this.onLiteralEnter(start);
401
- if (this.eat(Solidus) && this.eatRegExpBody() && this.eat(Solidus)) {
413
+ if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) {
402
414
  const flagStart = this.index;
403
415
  const uFlag = source.includes("u", flagStart);
404
416
  this.validateFlags(source, flagStart, end);
@@ -428,36 +440,50 @@ class RegExpValidator {
428
440
  this.raise(`Duplicated flag '${source[i]}'`);
429
441
  }
430
442
  existingFlags.add(flag);
431
- if (flag === LatinSmallLetterG) {
443
+ if (flag === LATIN_SMALL_LETTER_G) {
432
444
  global = true;
433
445
  }
434
- else if (flag === LatinSmallLetterI) {
446
+ else if (flag === LATIN_SMALL_LETTER_I) {
435
447
  ignoreCase = true;
436
448
  }
437
- else if (flag === LatinSmallLetterM) {
449
+ else if (flag === LATIN_SMALL_LETTER_M) {
438
450
  multiline = true;
439
451
  }
440
- else if (flag === LatinSmallLetterU && this.ecmaVersion >= 2015) {
452
+ else if (flag === LATIN_SMALL_LETTER_U &&
453
+ this.ecmaVersion >= 2015) {
441
454
  unicode = true;
442
455
  }
443
- else if (flag === LatinSmallLetterY && this.ecmaVersion >= 2015) {
456
+ else if (flag === LATIN_SMALL_LETTER_Y &&
457
+ this.ecmaVersion >= 2015) {
444
458
  sticky = true;
445
459
  }
446
- else if (flag === LatinSmallLetterS && this.ecmaVersion >= 2018) {
460
+ else if (flag === LATIN_SMALL_LETTER_S &&
461
+ this.ecmaVersion >= 2018) {
447
462
  dotAll = true;
448
463
  }
449
- else if (flag === LatinSmallLetterD && this.ecmaVersion >= 2022) {
464
+ else if (flag === LATIN_SMALL_LETTER_D &&
465
+ this.ecmaVersion >= 2022) {
450
466
  hasIndices = true;
451
467
  }
452
468
  else {
453
469
  this.raise(`Invalid flag '${source[i]}'`);
454
470
  }
455
471
  }
456
- this.onFlags(start, end, global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices);
472
+ this.onRegExpFlags(start, end, {
473
+ global,
474
+ ignoreCase,
475
+ multiline,
476
+ unicode,
477
+ sticky,
478
+ dotAll,
479
+ hasIndices,
480
+ });
457
481
  }
458
482
  validatePattern(source, start = 0, end = source.length, uFlag = false) {
459
483
  this._uFlag = uFlag && this.ecmaVersion >= 2015;
460
- this._nFlag = uFlag && this.ecmaVersion >= 2018;
484
+ this._nFlag =
485
+ (uFlag && this.ecmaVersion >= 2018) ||
486
+ Boolean(this._options.strict && this.ecmaVersion >= 2023);
461
487
  this.reset(source, start, end);
462
488
  this.consumePattern();
463
489
  if (!this._nFlag &&
@@ -469,10 +495,11 @@ class RegExpValidator {
469
495
  }
470
496
  }
471
497
  get strict() {
472
- return Boolean(this._options.strict || this._uFlag);
498
+ return Boolean(this._options.strict) || this._uFlag;
473
499
  }
474
500
  get ecmaVersion() {
475
- return this._options.ecmaVersion || 2022;
501
+ var _a;
502
+ return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : 2023;
476
503
  }
477
504
  onLiteralEnter(start) {
478
505
  if (this._options.onLiteralEnter) {
@@ -484,9 +511,12 @@ class RegExpValidator {
484
511
  this._options.onLiteralLeave(start, end);
485
512
  }
486
513
  }
487
- onFlags(start, end, global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices) {
514
+ onRegExpFlags(start, end, flags) {
515
+ if (this._options.onRegExpFlags) {
516
+ this._options.onRegExpFlags(start, end, flags);
517
+ }
488
518
  if (this._options.onFlags) {
489
- this._options.onFlags(start, end, global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices);
519
+ this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices);
490
520
  }
491
521
  }
492
522
  onPatternEnter(start) {
@@ -656,17 +686,17 @@ class RegExpValidator {
656
686
  if (escaped) {
657
687
  escaped = false;
658
688
  }
659
- else if (cp === ReverseSolidus) {
689
+ else if (cp === REVERSE_SOLIDUS) {
660
690
  escaped = true;
661
691
  }
662
- else if (cp === LeftSquareBracket) {
692
+ else if (cp === LEFT_SQUARE_BRACKET) {
663
693
  inClass = true;
664
694
  }
665
- else if (cp === RightSquareBracket) {
695
+ else if (cp === RIGHT_SQUARE_BRACKET) {
666
696
  inClass = false;
667
697
  }
668
- else if ((cp === Solidus && !inClass) ||
669
- (cp === Asterisk && this.index === start)) {
698
+ else if ((cp === SOLIDUS && !inClass) ||
699
+ (cp === ASTERISK && this.index === start)) {
670
700
  break;
671
701
  }
672
702
  this.advance();
@@ -682,13 +712,13 @@ class RegExpValidator {
682
712
  this.consumeDisjunction();
683
713
  const cp = this.currentCodePoint;
684
714
  if (this.currentCodePoint !== -1) {
685
- if (cp === RightParenthesis) {
715
+ if (cp === RIGHT_PARENTHESIS) {
686
716
  this.raise("Unmatched ')'");
687
717
  }
688
- if (cp === ReverseSolidus) {
718
+ if (cp === REVERSE_SOLIDUS) {
689
719
  this.raise("\\ at end of pattern");
690
720
  }
691
- if (cp === RightSquareBracket || cp === RightCurlyBracket) {
721
+ if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) {
692
722
  this.raise("Lone quantifier brackets");
693
723
  }
694
724
  const c = String.fromCodePoint(cp);
@@ -711,21 +741,21 @@ class RegExpValidator {
711
741
  if (escaped) {
712
742
  escaped = false;
713
743
  }
714
- else if (cp === ReverseSolidus) {
744
+ else if (cp === REVERSE_SOLIDUS) {
715
745
  escaped = true;
716
746
  }
717
- else if (cp === LeftSquareBracket) {
747
+ else if (cp === LEFT_SQUARE_BRACKET) {
718
748
  inClass = true;
719
749
  }
720
- else if (cp === RightSquareBracket) {
750
+ else if (cp === RIGHT_SQUARE_BRACKET) {
721
751
  inClass = false;
722
752
  }
723
- else if (cp === LeftParenthesis &&
753
+ else if (cp === LEFT_PARENTHESIS &&
724
754
  !inClass &&
725
- (this.nextCodePoint !== QuestionMark ||
726
- (this.nextCodePoint2 === LessThanSign &&
727
- this.nextCodePoint3 !== EqualsSign &&
728
- this.nextCodePoint3 !== ExclamationMark))) {
755
+ (this.nextCodePoint !== QUESTION_MARK ||
756
+ (this.nextCodePoint2 === LESS_THAN_SIGN &&
757
+ this.nextCodePoint3 !== EQUALS_SIGN &&
758
+ this.nextCodePoint3 !== EXCLAMATION_MARK))) {
729
759
  count += 1;
730
760
  }
731
761
  this.advance();
@@ -739,11 +769,11 @@ class RegExpValidator {
739
769
  this.onDisjunctionEnter(start);
740
770
  do {
741
771
  this.consumeAlternative(i++);
742
- } while (this.eat(VerticalLine));
772
+ } while (this.eat(VERTICAL_LINE));
743
773
  if (this.consumeQuantifier(true)) {
744
774
  this.raise("Nothing to repeat");
745
775
  }
746
- if (this.eat(LeftCurlyBracket)) {
776
+ if (this.eat(LEFT_CURLY_BRACKET)) {
747
777
  this.raise("Lone quantifier brackets");
748
778
  }
749
779
  this.onDisjunctionLeave(start, this.index);
@@ -772,30 +802,31 @@ class RegExpValidator {
772
802
  consumeAssertion() {
773
803
  const start = this.index;
774
804
  this._lastAssertionIsQuantifiable = false;
775
- if (this.eat(CircumflexAccent)) {
805
+ if (this.eat(CIRCUMFLEX_ACCENT)) {
776
806
  this.onEdgeAssertion(start, this.index, "start");
777
807
  return true;
778
808
  }
779
- if (this.eat(DollarSign)) {
809
+ if (this.eat(DOLLAR_SIGN)) {
780
810
  this.onEdgeAssertion(start, this.index, "end");
781
811
  return true;
782
812
  }
783
- if (this.eat2(ReverseSolidus, LatinCapitalLetterB)) {
813
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) {
784
814
  this.onWordBoundaryAssertion(start, this.index, "word", true);
785
815
  return true;
786
816
  }
787
- if (this.eat2(ReverseSolidus, LatinSmallLetterB)) {
817
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) {
788
818
  this.onWordBoundaryAssertion(start, this.index, "word", false);
789
819
  return true;
790
820
  }
791
- if (this.eat2(LeftParenthesis, QuestionMark)) {
792
- const lookbehind = this.ecmaVersion >= 2018 && this.eat(LessThanSign);
821
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
822
+ const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN);
793
823
  let negate = false;
794
- if (this.eat(EqualsSign) || (negate = this.eat(ExclamationMark))) {
824
+ if (this.eat(EQUALS_SIGN) ||
825
+ (negate = this.eat(EXCLAMATION_MARK))) {
795
826
  const kind = lookbehind ? "lookbehind" : "lookahead";
796
827
  this.onLookaroundAssertionEnter(start, kind, negate);
797
828
  this.consumeDisjunction();
798
- if (!this.eat(RightParenthesis)) {
829
+ if (!this.eat(RIGHT_PARENTHESIS)) {
799
830
  this.raise("Unterminated group");
800
831
  }
801
832
  this._lastAssertionIsQuantifiable = !lookbehind && !this.strict;
@@ -811,15 +842,15 @@ class RegExpValidator {
811
842
  let min = 0;
812
843
  let max = 0;
813
844
  let greedy = false;
814
- if (this.eat(Asterisk)) {
845
+ if (this.eat(ASTERISK)) {
815
846
  min = 0;
816
847
  max = Number.POSITIVE_INFINITY;
817
848
  }
818
- else if (this.eat(PlusSign)) {
849
+ else if (this.eat(PLUS_SIGN)) {
819
850
  min = 1;
820
851
  max = Number.POSITIVE_INFINITY;
821
852
  }
822
- else if (this.eat(QuestionMark)) {
853
+ else if (this.eat(QUESTION_MARK)) {
823
854
  min = 0;
824
855
  max = 1;
825
856
  }
@@ -830,7 +861,7 @@ class RegExpValidator {
830
861
  else {
831
862
  return false;
832
863
  }
833
- greedy = !this.eat(QuestionMark);
864
+ greedy = !this.eat(QUESTION_MARK);
834
865
  if (!noConsume) {
835
866
  this.onQuantifier(start, this.index, min, max, greedy);
836
867
  }
@@ -838,17 +869,17 @@ class RegExpValidator {
838
869
  }
839
870
  eatBracedQuantifier(noError) {
840
871
  const start = this.index;
841
- if (this.eat(LeftCurlyBracket)) {
872
+ if (this.eat(LEFT_CURLY_BRACKET)) {
842
873
  this._lastMinValue = 0;
843
874
  this._lastMaxValue = Number.POSITIVE_INFINITY;
844
875
  if (this.eatDecimalDigits()) {
845
876
  this._lastMinValue = this._lastMaxValue = this._lastIntValue;
846
- if (this.eat(Comma)) {
877
+ if (this.eat(COMMA)) {
847
878
  this._lastMaxValue = this.eatDecimalDigits()
848
879
  ? this._lastIntValue
849
880
  : Number.POSITIVE_INFINITY;
850
881
  }
851
- if (this.eat(RightCurlyBracket)) {
882
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
852
883
  if (!noError && this._lastMaxValue < this._lastMinValue) {
853
884
  this.raise("numbers out of order in {} quantifier");
854
885
  }
@@ -871,7 +902,7 @@ class RegExpValidator {
871
902
  this.consumeCapturingGroup());
872
903
  }
873
904
  consumeDot() {
874
- if (this.eat(FullStop)) {
905
+ if (this.eat(FULL_STOP)) {
875
906
  this.onAnyCharacterSet(this.index - 1, this.index, "any");
876
907
  return true;
877
908
  }
@@ -879,7 +910,7 @@ class RegExpValidator {
879
910
  }
880
911
  consumeReverseSolidusAtomEscape() {
881
912
  const start = this.index;
882
- if (this.eat(ReverseSolidus)) {
913
+ if (this.eat(REVERSE_SOLIDUS)) {
883
914
  if (this.consumeAtomEscape()) {
884
915
  return true;
885
916
  }
@@ -889,10 +920,10 @@ class RegExpValidator {
889
920
  }
890
921
  consumeUncapturingGroup() {
891
922
  const start = this.index;
892
- if (this.eat3(LeftParenthesis, QuestionMark, Colon)) {
923
+ if (this.eat3(LEFT_PARENTHESIS, QUESTION_MARK, COLON)) {
893
924
  this.onGroupEnter(start);
894
925
  this.consumeDisjunction();
895
- if (!this.eat(RightParenthesis)) {
926
+ if (!this.eat(RIGHT_PARENTHESIS)) {
896
927
  this.raise("Unterminated group");
897
928
  }
898
929
  this.onGroupLeave(start, this.index);
@@ -902,19 +933,19 @@ class RegExpValidator {
902
933
  }
903
934
  consumeCapturingGroup() {
904
935
  const start = this.index;
905
- if (this.eat(LeftParenthesis)) {
936
+ if (this.eat(LEFT_PARENTHESIS)) {
906
937
  let name = null;
907
938
  if (this.ecmaVersion >= 2018) {
908
939
  if (this.consumeGroupSpecifier()) {
909
940
  name = this._lastStrValue;
910
941
  }
911
942
  }
912
- else if (this.currentCodePoint === QuestionMark) {
943
+ else if (this.currentCodePoint === QUESTION_MARK) {
913
944
  this.raise("Invalid group");
914
945
  }
915
946
  this.onCapturingGroupEnter(start, name);
916
947
  this.consumeDisjunction();
917
- if (!this.eat(RightParenthesis)) {
948
+ if (!this.eat(RIGHT_PARENTHESIS)) {
918
949
  this.raise("Unterminated group");
919
950
  }
920
951
  this.onCapturingGroupLeave(start, this.index, name);
@@ -934,11 +965,11 @@ class RegExpValidator {
934
965
  }
935
966
  consumeReverseSolidusFollowedByC() {
936
967
  const start = this.index;
937
- if (this.currentCodePoint === ReverseSolidus &&
938
- this.nextCodePoint === LatinSmallLetterC) {
968
+ if (this.currentCodePoint === REVERSE_SOLIDUS &&
969
+ this.nextCodePoint === LATIN_SMALL_LETTER_C) {
939
970
  this._lastIntValue = this.currentCodePoint;
940
971
  this.advance();
941
- this.onCharacter(start, this.index, ReverseSolidus);
972
+ this.onCharacter(start, this.index, REVERSE_SOLIDUS);
942
973
  return true;
943
974
  }
944
975
  return false;
@@ -963,17 +994,17 @@ class RegExpValidator {
963
994
  const start = this.index;
964
995
  const cp = this.currentCodePoint;
965
996
  if (cp !== -1 &&
966
- cp !== CircumflexAccent &&
967
- cp !== DollarSign &&
968
- cp !== ReverseSolidus &&
969
- cp !== FullStop &&
970
- cp !== Asterisk &&
971
- cp !== PlusSign &&
972
- cp !== QuestionMark &&
973
- cp !== LeftParenthesis &&
974
- cp !== RightParenthesis &&
975
- cp !== LeftSquareBracket &&
976
- cp !== VerticalLine) {
997
+ cp !== CIRCUMFLEX_ACCENT &&
998
+ cp !== DOLLAR_SIGN &&
999
+ cp !== REVERSE_SOLIDUS &&
1000
+ cp !== FULL_STOP &&
1001
+ cp !== ASTERISK &&
1002
+ cp !== PLUS_SIGN &&
1003
+ cp !== QUESTION_MARK &&
1004
+ cp !== LEFT_PARENTHESIS &&
1005
+ cp !== RIGHT_PARENTHESIS &&
1006
+ cp !== LEFT_SQUARE_BRACKET &&
1007
+ cp !== VERTICAL_LINE) {
977
1008
  this.advance();
978
1009
  this.onCharacter(start, this.index, cp);
979
1010
  return true;
@@ -981,7 +1012,7 @@ class RegExpValidator {
981
1012
  return false;
982
1013
  }
983
1014
  consumeGroupSpecifier() {
984
- if (this.eat(QuestionMark)) {
1015
+ if (this.eat(QUESTION_MARK)) {
985
1016
  if (this.eatGroupName()) {
986
1017
  if (!this._groupNames.has(this._lastStrValue)) {
987
1018
  this._groupNames.add(this._lastStrValue);
@@ -1022,32 +1053,32 @@ class RegExpValidator {
1022
1053
  }
1023
1054
  consumeCharacterClassEscape() {
1024
1055
  const start = this.index;
1025
- if (this.eat(LatinSmallLetterD)) {
1056
+ if (this.eat(LATIN_SMALL_LETTER_D)) {
1026
1057
  this._lastIntValue = -1;
1027
1058
  this.onEscapeCharacterSet(start - 1, this.index, "digit", false);
1028
1059
  return true;
1029
1060
  }
1030
- if (this.eat(LatinCapitalLetterD)) {
1061
+ if (this.eat(LATIN_CAPITAL_LETTER_D)) {
1031
1062
  this._lastIntValue = -1;
1032
1063
  this.onEscapeCharacterSet(start - 1, this.index, "digit", true);
1033
1064
  return true;
1034
1065
  }
1035
- if (this.eat(LatinSmallLetterS)) {
1066
+ if (this.eat(LATIN_SMALL_LETTER_S)) {
1036
1067
  this._lastIntValue = -1;
1037
1068
  this.onEscapeCharacterSet(start - 1, this.index, "space", false);
1038
1069
  return true;
1039
1070
  }
1040
- if (this.eat(LatinCapitalLetterS)) {
1071
+ if (this.eat(LATIN_CAPITAL_LETTER_S)) {
1041
1072
  this._lastIntValue = -1;
1042
1073
  this.onEscapeCharacterSet(start - 1, this.index, "space", true);
1043
1074
  return true;
1044
1075
  }
1045
- if (this.eat(LatinSmallLetterW)) {
1076
+ if (this.eat(LATIN_SMALL_LETTER_W)) {
1046
1077
  this._lastIntValue = -1;
1047
1078
  this.onEscapeCharacterSet(start - 1, this.index, "word", false);
1048
1079
  return true;
1049
1080
  }
1050
- if (this.eat(LatinCapitalLetterW)) {
1081
+ if (this.eat(LATIN_CAPITAL_LETTER_W)) {
1051
1082
  this._lastIntValue = -1;
1052
1083
  this.onEscapeCharacterSet(start - 1, this.index, "word", true);
1053
1084
  return true;
@@ -1055,12 +1086,12 @@ class RegExpValidator {
1055
1086
  let negate = false;
1056
1087
  if (this._uFlag &&
1057
1088
  this.ecmaVersion >= 2018 &&
1058
- (this.eat(LatinSmallLetterP) ||
1059
- (negate = this.eat(LatinCapitalLetterP)))) {
1089
+ (this.eat(LATIN_SMALL_LETTER_P) ||
1090
+ (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) {
1060
1091
  this._lastIntValue = -1;
1061
- if (this.eat(LeftCurlyBracket) &&
1092
+ if (this.eat(LEFT_CURLY_BRACKET) &&
1062
1093
  this.eatUnicodePropertyValueExpression() &&
1063
- this.eat(RightCurlyBracket)) {
1094
+ this.eat(RIGHT_CURLY_BRACKET)) {
1064
1095
  this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", this._lastKeyValue, this._lastValValue || null, negate);
1065
1096
  return true;
1066
1097
  }
@@ -1086,7 +1117,7 @@ class RegExpValidator {
1086
1117
  }
1087
1118
  consumeKGroupName() {
1088
1119
  const start = this.index;
1089
- if (this.eat(LatinSmallLetterK)) {
1120
+ if (this.eat(LATIN_SMALL_LETTER_K)) {
1090
1121
  if (this.eatGroupName()) {
1091
1122
  const groupName = this._lastStrValue;
1092
1123
  this._backreferenceNames.add(groupName);
@@ -1099,11 +1130,11 @@ class RegExpValidator {
1099
1130
  }
1100
1131
  consumeCharacterClass() {
1101
1132
  const start = this.index;
1102
- if (this.eat(LeftSquareBracket)) {
1103
- const negate = this.eat(CircumflexAccent);
1133
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
1134
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
1104
1135
  this.onCharacterClassEnter(start, negate);
1105
1136
  this.consumeClassRanges();
1106
- if (!this.eat(RightSquareBracket)) {
1137
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
1107
1138
  this.raise("Unterminated character class");
1108
1139
  }
1109
1140
  this.onCharacterClassLeave(start, this.index, negate);
@@ -1119,10 +1150,10 @@ class RegExpValidator {
1119
1150
  break;
1120
1151
  }
1121
1152
  const min = this._lastIntValue;
1122
- if (!this.eat(HyphenMinus)) {
1153
+ if (!this.eat(HYPHEN_MINUS)) {
1123
1154
  continue;
1124
1155
  }
1125
- this.onCharacter(this.index - 1, this.index, HyphenMinus);
1156
+ this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS);
1126
1157
  if (!this.consumeClassAtom()) {
1127
1158
  break;
1128
1159
  }
@@ -1142,18 +1173,21 @@ class RegExpValidator {
1142
1173
  consumeClassAtom() {
1143
1174
  const start = this.index;
1144
1175
  const cp = this.currentCodePoint;
1145
- if (cp !== -1 && cp !== ReverseSolidus && cp !== RightSquareBracket) {
1176
+ if (cp !== -1 &&
1177
+ cp !== REVERSE_SOLIDUS &&
1178
+ cp !== RIGHT_SQUARE_BRACKET) {
1146
1179
  this.advance();
1147
1180
  this._lastIntValue = cp;
1148
1181
  this.onCharacter(start, this.index, this._lastIntValue);
1149
1182
  return true;
1150
1183
  }
1151
- if (this.eat(ReverseSolidus)) {
1184
+ if (this.eat(REVERSE_SOLIDUS)) {
1152
1185
  if (this.consumeClassEscape()) {
1153
1186
  return true;
1154
1187
  }
1155
- if (!this.strict && this.currentCodePoint === LatinSmallLetterC) {
1156
- this._lastIntValue = ReverseSolidus;
1188
+ if (!this.strict &&
1189
+ this.currentCodePoint === LATIN_SMALL_LETTER_C) {
1190
+ this._lastIntValue = REVERSE_SOLIDUS;
1157
1191
  this.onCharacter(start, this.index, this._lastIntValue);
1158
1192
  return true;
1159
1193
  }
@@ -1166,21 +1200,21 @@ class RegExpValidator {
1166
1200
  }
1167
1201
  consumeClassEscape() {
1168
1202
  const start = this.index;
1169
- if (this.eat(LatinSmallLetterB)) {
1170
- this._lastIntValue = Backspace;
1203
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
1204
+ this._lastIntValue = BACKSPACE;
1171
1205
  this.onCharacter(start - 1, this.index, this._lastIntValue);
1172
1206
  return true;
1173
1207
  }
1174
- if (this._uFlag && this.eat(HyphenMinus)) {
1175
- this._lastIntValue = HyphenMinus;
1208
+ if (this._uFlag && this.eat(HYPHEN_MINUS)) {
1209
+ this._lastIntValue = HYPHEN_MINUS;
1176
1210
  this.onCharacter(start - 1, this.index, this._lastIntValue);
1177
1211
  return true;
1178
1212
  }
1179
1213
  let cp = 0;
1180
1214
  if (!this.strict &&
1181
1215
  !this._uFlag &&
1182
- this.currentCodePoint === LatinSmallLetterC &&
1183
- (isDecimalDigit((cp = this.nextCodePoint)) || cp === LowLine)) {
1216
+ this.currentCodePoint === LATIN_SMALL_LETTER_C &&
1217
+ (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) {
1184
1218
  this.advance();
1185
1219
  this.advance();
1186
1220
  this._lastIntValue = cp % 0x20;
@@ -1190,8 +1224,8 @@ class RegExpValidator {
1190
1224
  return (this.consumeCharacterClassEscape() || this.consumeCharacterEscape());
1191
1225
  }
1192
1226
  eatGroupName() {
1193
- if (this.eat(LessThanSign)) {
1194
- if (this.eatRegExpIdentifierName() && this.eat(GreaterThanSign)) {
1227
+ if (this.eat(LESS_THAN_SIGN)) {
1228
+ if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) {
1195
1229
  return true;
1196
1230
  }
1197
1231
  this.raise("Invalid capture group name");
@@ -1213,7 +1247,7 @@ class RegExpValidator {
1213
1247
  const forceUFlag = !this._uFlag && this.ecmaVersion >= 2020;
1214
1248
  let cp = this.currentCodePoint;
1215
1249
  this.advance();
1216
- if (cp === ReverseSolidus &&
1250
+ if (cp === REVERSE_SOLIDUS &&
1217
1251
  this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
1218
1252
  cp = this._lastIntValue;
1219
1253
  }
@@ -1237,7 +1271,7 @@ class RegExpValidator {
1237
1271
  const forceUFlag = !this._uFlag && this.ecmaVersion >= 2020;
1238
1272
  let cp = this.currentCodePoint;
1239
1273
  this.advance();
1240
- if (cp === ReverseSolidus &&
1274
+ if (cp === REVERSE_SOLIDUS &&
1241
1275
  this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
1242
1276
  cp = this._lastIntValue;
1243
1277
  }
@@ -1258,7 +1292,7 @@ class RegExpValidator {
1258
1292
  }
1259
1293
  eatCControlLetter() {
1260
1294
  const start = this.index;
1261
- if (this.eat(LatinSmallLetterC)) {
1295
+ if (this.eat(LATIN_SMALL_LETTER_C)) {
1262
1296
  if (this.eatControlLetter()) {
1263
1297
  return true;
1264
1298
  }
@@ -1267,7 +1301,7 @@ class RegExpValidator {
1267
1301
  return false;
1268
1302
  }
1269
1303
  eatZero() {
1270
- if (this.currentCodePoint === DigitZero &&
1304
+ if (this.currentCodePoint === DIGIT_ZERO &&
1271
1305
  !isDecimalDigit(this.nextCodePoint)) {
1272
1306
  this._lastIntValue = 0;
1273
1307
  this.advance();
@@ -1276,24 +1310,24 @@ class RegExpValidator {
1276
1310
  return false;
1277
1311
  }
1278
1312
  eatControlEscape() {
1279
- if (this.eat(LatinSmallLetterF)) {
1280
- this._lastIntValue = FormFeed;
1313
+ if (this.eat(LATIN_SMALL_LETTER_F)) {
1314
+ this._lastIntValue = FORM_FEED;
1281
1315
  return true;
1282
1316
  }
1283
- if (this.eat(LatinSmallLetterN)) {
1284
- this._lastIntValue = LineFeed;
1317
+ if (this.eat(LATIN_SMALL_LETTER_N)) {
1318
+ this._lastIntValue = LINE_FEED;
1285
1319
  return true;
1286
1320
  }
1287
- if (this.eat(LatinSmallLetterR)) {
1288
- this._lastIntValue = CarriageReturn;
1321
+ if (this.eat(LATIN_SMALL_LETTER_R)) {
1322
+ this._lastIntValue = CARRIAGE_RETURN;
1289
1323
  return true;
1290
1324
  }
1291
- if (this.eat(LatinSmallLetterT)) {
1292
- this._lastIntValue = CharacterTabulation;
1325
+ if (this.eat(LATIN_SMALL_LETTER_T)) {
1326
+ this._lastIntValue = CHARACTER_TABULATION;
1293
1327
  return true;
1294
1328
  }
1295
- if (this.eat(LatinSmallLetterV)) {
1296
- this._lastIntValue = LineTabulation;
1329
+ if (this.eat(LATIN_SMALL_LETTER_V)) {
1330
+ this._lastIntValue = LINE_TABULATION;
1297
1331
  return true;
1298
1332
  }
1299
1333
  return false;
@@ -1310,7 +1344,7 @@ class RegExpValidator {
1310
1344
  eatRegExpUnicodeEscapeSequence(forceUFlag = false) {
1311
1345
  const start = this.index;
1312
1346
  const uFlag = forceUFlag || this._uFlag;
1313
- if (this.eat(LatinSmallLetterU)) {
1347
+ if (this.eat(LATIN_SMALL_LETTER_U)) {
1314
1348
  if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) ||
1315
1349
  this.eatFixedHexDigits(4) ||
1316
1350
  (uFlag && this.eatRegExpUnicodeCodePointEscape())) {
@@ -1328,8 +1362,8 @@ class RegExpValidator {
1328
1362
  if (this.eatFixedHexDigits(4)) {
1329
1363
  const lead = this._lastIntValue;
1330
1364
  if (isLeadSurrogate(lead) &&
1331
- this.eat(ReverseSolidus) &&
1332
- this.eat(LatinSmallLetterU) &&
1365
+ this.eat(REVERSE_SOLIDUS) &&
1366
+ this.eat(LATIN_SMALL_LETTER_U) &&
1333
1367
  this.eatFixedHexDigits(4)) {
1334
1368
  const trail = this._lastIntValue;
1335
1369
  if (isTrailSurrogate(trail)) {
@@ -1343,9 +1377,9 @@ class RegExpValidator {
1343
1377
  }
1344
1378
  eatRegExpUnicodeCodePointEscape() {
1345
1379
  const start = this.index;
1346
- if (this.eat(LeftCurlyBracket) &&
1380
+ if (this.eat(LEFT_CURLY_BRACKET) &&
1347
1381
  this.eatHexDigits() &&
1348
- this.eat(RightCurlyBracket) &&
1382
+ this.eat(RIGHT_CURLY_BRACKET) &&
1349
1383
  isValidUnicode(this._lastIntValue)) {
1350
1384
  return true;
1351
1385
  }
@@ -1366,32 +1400,32 @@ class RegExpValidator {
1366
1400
  return false;
1367
1401
  }
1368
1402
  if (this._uFlag) {
1369
- return isSyntaxCharacter(cp) || cp === Solidus;
1403
+ return isSyntaxCharacter(cp) || cp === SOLIDUS;
1370
1404
  }
1371
1405
  if (this.strict) {
1372
1406
  return !isIdContinue(cp);
1373
1407
  }
1374
1408
  if (this._nFlag) {
1375
- return !(cp === LatinSmallLetterC || cp === LatinSmallLetterK);
1409
+ return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K);
1376
1410
  }
1377
- return cp !== LatinSmallLetterC;
1411
+ return cp !== LATIN_SMALL_LETTER_C;
1378
1412
  }
1379
1413
  eatDecimalEscape() {
1380
1414
  this._lastIntValue = 0;
1381
1415
  let cp = this.currentCodePoint;
1382
- if (cp >= DigitOne && cp <= DigitNine) {
1416
+ if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) {
1383
1417
  do {
1384
- this._lastIntValue = 10 * this._lastIntValue + (cp - DigitZero);
1418
+ this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO);
1385
1419
  this.advance();
1386
- } while ((cp = this.currentCodePoint) >= DigitZero &&
1387
- cp <= DigitNine);
1420
+ } while ((cp = this.currentCodePoint) >= DIGIT_ZERO &&
1421
+ cp <= DIGIT_NINE);
1388
1422
  return true;
1389
1423
  }
1390
1424
  return false;
1391
1425
  }
1392
1426
  eatUnicodePropertyValueExpression() {
1393
1427
  const start = this.index;
1394
- if (this.eatUnicodePropertyName() && this.eat(EqualsSign)) {
1428
+ if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) {
1395
1429
  this._lastKeyValue = this._lastStrValue;
1396
1430
  if (this.eatUnicodePropertyValue()) {
1397
1431
  this._lastValValue = this._lastStrValue;
@@ -1439,7 +1473,7 @@ class RegExpValidator {
1439
1473
  }
1440
1474
  eatHexEscapeSequence() {
1441
1475
  const start = this.index;
1442
- if (this.eat(LatinSmallLetterX)) {
1476
+ if (this.eat(LATIN_SMALL_LETTER_X)) {
1443
1477
  if (this.eatFixedHexDigits(2)) {
1444
1478
  return true;
1445
1479
  }
@@ -1493,7 +1527,7 @@ class RegExpValidator {
1493
1527
  const cp = this.currentCodePoint;
1494
1528
  if (isOctalDigit(cp)) {
1495
1529
  this.advance();
1496
- this._lastIntValue = cp - DigitZero;
1530
+ this._lastIntValue = cp - DIGIT_ZERO;
1497
1531
  return true;
1498
1532
  }
1499
1533
  this._lastIntValue = 0;
@@ -1515,18 +1549,19 @@ class RegExpValidator {
1515
1549
  }
1516
1550
  }
1517
1551
 
1518
- const DummyPattern = {};
1519
- const DummyFlags = {};
1520
- const DummyCapturingGroup = {};
1552
+ const DUMMY_PATTERN = {};
1553
+ const DUMMY_FLAGS = {};
1554
+ const DUMMY_CAPTURING_GROUP = {};
1521
1555
  class RegExpParserState {
1522
1556
  constructor(options) {
1523
- this._node = DummyPattern;
1524
- this._flags = DummyFlags;
1557
+ var _a;
1558
+ this._node = DUMMY_PATTERN;
1559
+ this._flags = DUMMY_FLAGS;
1525
1560
  this._backreferences = [];
1526
1561
  this._capturingGroups = [];
1527
1562
  this.source = "";
1528
- this.strict = Boolean(options && options.strict);
1529
- this.ecmaVersion = (options && options.ecmaVersion) || 2022;
1563
+ this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict);
1564
+ this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : 2023;
1530
1565
  }
1531
1566
  get pattern() {
1532
1567
  if (this._node.type !== "Pattern") {
@@ -1540,7 +1575,7 @@ class RegExpParserState {
1540
1575
  }
1541
1576
  return this._flags;
1542
1577
  }
1543
- onFlags(start, end, global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices) {
1578
+ onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, }) {
1544
1579
  this._flags = {
1545
1580
  type: "Flags",
1546
1581
  parent: null,
@@ -1575,7 +1610,7 @@ class RegExpParserState {
1575
1610
  const ref = reference.ref;
1576
1611
  const group = typeof ref === "number"
1577
1612
  ? this._capturingGroups[ref - 1]
1578
- : this._capturingGroups.find(g => g.name === ref);
1613
+ : this._capturingGroups.find((g) => g.name === ref);
1579
1614
  reference.resolved = group;
1580
1615
  group.references.push(reference);
1581
1616
  }
@@ -1811,7 +1846,7 @@ class RegExpParserState {
1811
1846
  end,
1812
1847
  raw: this.source.slice(start, end),
1813
1848
  ref,
1814
- resolved: DummyCapturingGroup,
1849
+ resolved: DUMMY_CAPTURING_GROUP,
1815
1850
  };
1816
1851
  parent.elements.push(node);
1817
1852
  this._backreferences.push(node);
@@ -1857,7 +1892,7 @@ class RegExpParserState {
1857
1892
  min.type !== "Character" ||
1858
1893
  max.type !== "Character" ||
1859
1894
  hyphen.type !== "Character" ||
1860
- hyphen.value !== HyphenMinus) {
1895
+ hyphen.value !== HYPHEN_MINUS) {
1861
1896
  throw new Error("UnknownError");
1862
1897
  }
1863
1898
  const node = {
@@ -2081,7 +2116,7 @@ function parseRegExpLiteral(source, options) {
2081
2116
  return new RegExpParser(options).parseLiteral(String(source));
2082
2117
  }
2083
2118
  function validateRegExpLiteral(source, options) {
2084
- return new RegExpValidator(options).validateLiteral(source);
2119
+ new RegExpValidator(options).validateLiteral(source);
2085
2120
  }
2086
2121
  function visitRegExpAST(node, handlers) {
2087
2122
  new RegExpVisitor(handlers).visit(node);