@galadrim/galadmin 0.1.32 → 0.1.34

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 (214) hide show
  1. package/dist/api.js +1 -0
  2. package/dist/api.js.map +1 -1
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/package.json +1 -1
  5. package/src/api.ts +1 -0
  6. package/src/front/build/asset-manifest.json +3 -3
  7. package/src/front/build/index.html +1 -1
  8. package/src/front/build/static/js/main.4ce5340d.chunk.js +2 -0
  9. package/src/front/build/static/js/main.4ce5340d.chunk.js.map +1 -0
  10. package/src/front/node_modules/.cache/.eslintcache +1 -1
  11. package/src/front/node_modules/.cache/babel-loader/{a442b07ccfc975b334314fdb76b50b42.json → 04b67a528af96a9bceeadf265dfb56d2.json} +1 -1
  12. package/src/front/node_modules/.cache/babel-loader/cdf89c046963294c4cbf7482c8706cbc.json +1 -0
  13. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/c3/3e/f2b5b90044b7bdbb4cff67b2c09e24bb506274240d920de24bb4b678f3f00b80f7e9f0900cd1de883484031488d8603e97ea6b4e39a9c6ab5160353d3be9 +1 -0
  14. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/6c/19/fe86ba5d7c4062f185480ad22dd3b9fae9b30149827224339f9a633a9a94 +1 -1
  15. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/87/08/421190bfe6e50816e059da6c33526c9943732ef856ebd2752d0cbfb4a852 +1 -1
  16. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/{b3/58/c0bc4ec69302d38ceac243da47ee7549ca88af7e0c89962c82ad9b304bbb → c2/e5/5451dd89bb0fd48f988bf27c7ee614c66eb91f7085c5b5c8cb33048d0c32} +1 -1
  17. package/src/front/node_modules/.package-lock.json +111 -78
  18. package/src/front/node_modules/@babel/code-frame/README.md +1 -1
  19. package/src/front/node_modules/@babel/code-frame/lib/index.js +15 -1
  20. package/src/front/node_modules/@babel/code-frame/lib/index.js.map +1 -1
  21. package/src/front/node_modules/@babel/code-frame/node_modules/ansi-styles/index.js +165 -0
  22. package/src/front/node_modules/@babel/code-frame/node_modules/ansi-styles/license +9 -0
  23. package/src/front/node_modules/@babel/code-frame/node_modules/ansi-styles/package.json +56 -0
  24. package/src/front/node_modules/@babel/code-frame/node_modules/ansi-styles/readme.md +147 -0
  25. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/index.js +228 -0
  26. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/index.js.flow +93 -0
  27. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/license +9 -0
  28. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/package.json +71 -0
  29. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/readme.md +314 -0
  30. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/templates.js +128 -0
  31. package/src/front/node_modules/@babel/code-frame/node_modules/chalk/types/index.d.ts +97 -0
  32. package/src/front/node_modules/@babel/code-frame/node_modules/supports-color/browser.js +5 -0
  33. package/src/front/node_modules/@babel/code-frame/node_modules/supports-color/index.js +131 -0
  34. package/src/front/node_modules/@babel/code-frame/node_modules/supports-color/license +9 -0
  35. package/src/front/node_modules/@babel/code-frame/node_modules/supports-color/package.json +53 -0
  36. package/src/front/node_modules/@babel/code-frame/node_modules/supports-color/readme.md +66 -0
  37. package/src/front/node_modules/@babel/code-frame/package.json +3 -2
  38. package/src/front/node_modules/@babel/compat-data/README.md +1 -1
  39. package/src/front/node_modules/@babel/compat-data/data/corejs2-built-ins.json +146 -0
  40. package/src/front/node_modules/@babel/compat-data/data/native-modules.json +1 -1
  41. package/src/front/node_modules/@babel/compat-data/data/plugin-bugfixes.json +17 -0
  42. package/src/front/node_modules/@babel/compat-data/data/plugins.json +76 -9
  43. package/src/front/node_modules/@babel/compat-data/package.json +4 -4
  44. package/src/front/node_modules/@babel/core/README.md +1 -1
  45. package/src/front/node_modules/@babel/core/cjs-proxy.cjs +3 -1
  46. package/src/front/node_modules/@babel/core/lib/config/config-chain.js +8 -7
  47. package/src/front/node_modules/@babel/core/lib/config/config-chain.js.map +1 -1
  48. package/src/front/node_modules/@babel/core/lib/config/config-descriptors.js +2 -1
  49. package/src/front/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -1
  50. package/src/front/node_modules/@babel/core/lib/config/full.js +2 -3
  51. package/src/front/node_modules/@babel/core/lib/config/full.js.map +1 -1
  52. package/src/front/node_modules/@babel/core/lib/config/index.js.map +1 -1
  53. package/src/front/node_modules/@babel/core/lib/config/item.js.map +1 -1
  54. package/src/front/node_modules/@babel/core/lib/config/printer.js.map +1 -1
  55. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js +1 -3
  56. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -1
  57. package/src/front/node_modules/@babel/core/lib/config/validation/options.js.map +1 -1
  58. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js +5 -2
  59. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -1
  60. package/src/front/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +2 -1
  61. package/src/front/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
  62. package/src/front/node_modules/@babel/core/lib/index.js +2 -1
  63. package/src/front/node_modules/@babel/core/lib/index.js.map +1 -1
  64. package/src/front/node_modules/@babel/core/lib/transformation/file/generate.js.map +1 -1
  65. package/src/front/node_modules/@babel/core/lib/transformation/index.js +3 -1
  66. package/src/front/node_modules/@babel/core/lib/transformation/index.js.map +1 -1
  67. package/src/front/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +1 -1
  68. package/src/front/node_modules/@babel/core/node_modules/semver/package.json +19 -9
  69. package/src/front/node_modules/@babel/core/node_modules/semver/semver.js +71 -24
  70. package/src/front/node_modules/@babel/core/package.json +12 -12
  71. package/src/front/node_modules/@babel/generator/README.md +1 -1
  72. package/src/front/node_modules/@babel/generator/lib/buffer.js +6 -6
  73. package/src/front/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  74. package/src/front/node_modules/@babel/generator/lib/generators/classes.js +6 -6
  75. package/src/front/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  76. package/src/front/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  77. package/src/front/node_modules/@babel/generator/lib/generators/types.js +1 -1
  78. package/src/front/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  79. package/src/front/node_modules/@babel/generator/lib/index.js +2 -1
  80. package/src/front/node_modules/@babel/generator/lib/index.js.map +1 -1
  81. package/src/front/node_modules/@babel/generator/lib/printer.js +6 -6
  82. package/src/front/node_modules/@babel/generator/lib/printer.js.map +1 -1
  83. package/src/front/node_modules/@babel/generator/lib/source-map.js.map +1 -1
  84. package/src/front/node_modules/@babel/generator/package.json +5 -4
  85. package/src/front/node_modules/@babel/helper-compilation-targets/README.md +1 -1
  86. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +2 -6
  87. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
  88. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js +8 -4
  89. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  90. package/src/front/node_modules/@babel/helper-compilation-targets/lib/options.js +2 -1
  91. package/src/front/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -1
  92. package/src/front/node_modules/@babel/helper-compilation-targets/lib/targets.js +1 -1
  93. package/src/front/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -1
  94. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json +19 -9
  95. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/semver.js +71 -24
  96. package/src/front/node_modules/@babel/helper-compilation-targets/package.json +4 -8
  97. package/src/front/node_modules/@babel/helper-module-transforms/README.md +1 -1
  98. package/src/front/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js +11 -12
  99. package/src/front/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map +1 -1
  100. package/src/front/node_modules/@babel/helper-module-transforms/lib/index.js +15 -16
  101. package/src/front/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -1
  102. package/src/front/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js +3 -4
  103. package/src/front/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -1
  104. package/src/front/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js +4 -5
  105. package/src/front/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -1
  106. package/src/front/node_modules/@babel/helper-module-transforms/package.json +10 -6
  107. package/src/front/node_modules/@babel/helper-split-export-declaration/README.md +1 -1
  108. package/src/front/node_modules/@babel/helper-split-export-declaration/lib/index.js +5 -1
  109. package/src/front/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -1
  110. package/src/front/node_modules/@babel/helper-split-export-declaration/package.json +1 -1
  111. package/src/front/node_modules/@babel/helpers/README.md +1 -1
  112. package/src/front/node_modules/@babel/helpers/lib/helpers/dispose.js +9 -13
  113. package/src/front/node_modules/@babel/helpers/lib/helpers/dispose.js.map +1 -1
  114. package/src/front/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js +2 -4
  115. package/src/front/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js.map +1 -1
  116. package/src/front/node_modules/@babel/helpers/lib/helpers/using.js +1 -1
  117. package/src/front/node_modules/@babel/helpers/lib/helpers/using.js.map +1 -1
  118. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js +3 -3
  119. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  120. package/src/front/node_modules/@babel/helpers/package.json +6 -6
  121. package/src/front/node_modules/@babel/highlight/README.md +1 -1
  122. package/src/front/node_modules/@babel/highlight/lib/index.js +20 -10
  123. package/src/front/node_modules/@babel/highlight/lib/index.js.map +1 -1
  124. package/src/front/node_modules/@babel/highlight/package.json +2 -3
  125. package/src/front/node_modules/@babel/parser/README.md +1 -1
  126. package/src/front/node_modules/@babel/parser/lib/index.js +116 -163
  127. package/src/front/node_modules/@babel/parser/lib/index.js.map +1 -1
  128. package/src/front/node_modules/@babel/parser/lib/options.js +6 -2
  129. package/src/front/node_modules/@babel/parser/lib/options.js.map +1 -1
  130. package/src/front/node_modules/@babel/parser/lib/parser/expression.js +4 -4
  131. package/src/front/node_modules/@babel/parser/lib/parser/expression.js.map +1 -1
  132. package/src/front/node_modules/@babel/parser/lib/parser/lval.js +6 -6
  133. package/src/front/node_modules/@babel/parser/lib/parser/lval.js.map +1 -1
  134. package/src/front/node_modules/@babel/parser/lib/parser/statement.js +21 -22
  135. package/src/front/node_modules/@babel/parser/lib/parser/statement.js.map +1 -1
  136. package/src/front/node_modules/@babel/parser/lib/parser/util.js +1 -1
  137. package/src/front/node_modules/@babel/parser/lib/parser/util.js.map +1 -1
  138. package/src/front/node_modules/@babel/parser/lib/plugins/flow/index.js +7 -7
  139. package/src/front/node_modules/@babel/parser/lib/plugins/flow/index.js.map +1 -1
  140. package/src/front/node_modules/@babel/parser/lib/plugins/flow/scope.js +2 -2
  141. package/src/front/node_modules/@babel/parser/lib/plugins/flow/scope.js.map +1 -1
  142. package/src/front/node_modules/@babel/parser/lib/plugins/placeholders.js +2 -1
  143. package/src/front/node_modules/@babel/parser/lib/plugins/placeholders.js.map +1 -1
  144. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/index.js +16 -16
  145. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/index.js.map +1 -1
  146. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/scope.js +16 -14
  147. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/scope.js.map +1 -1
  148. package/src/front/node_modules/@babel/parser/lib/util/class-scope.js +5 -5
  149. package/src/front/node_modules/@babel/parser/lib/util/class-scope.js.map +1 -1
  150. package/src/front/node_modules/@babel/parser/lib/util/expression-scope.js +7 -12
  151. package/src/front/node_modules/@babel/parser/lib/util/expression-scope.js.map +1 -1
  152. package/src/front/node_modules/@babel/parser/lib/util/scope.js +23 -23
  153. package/src/front/node_modules/@babel/parser/lib/util/scope.js.map +1 -1
  154. package/src/front/node_modules/@babel/parser/lib/util/scopeflags.js +60 -99
  155. package/src/front/node_modules/@babel/parser/lib/util/scopeflags.js.map +1 -1
  156. package/src/front/node_modules/@babel/parser/package.json +3 -3
  157. package/src/front/node_modules/@babel/traverse/README.md +1 -1
  158. package/src/front/node_modules/@babel/traverse/lib/cache.js +24 -3
  159. package/src/front/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  160. package/src/front/node_modules/@babel/traverse/lib/index.js +5 -3
  161. package/src/front/node_modules/@babel/traverse/lib/index.js.map +1 -1
  162. package/src/front/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
  163. package/src/front/node_modules/@babel/traverse/lib/path/conversion.js +1 -4
  164. package/src/front/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  165. package/src/front/node_modules/@babel/traverse/lib/path/index.js +2 -6
  166. package/src/front/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  167. package/src/front/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  168. package/src/front/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +9 -7
  169. package/src/front/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -1
  170. package/src/front/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
  171. package/src/front/node_modules/@babel/traverse/lib/path/modification.js +3 -2
  172. package/src/front/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  173. package/src/front/node_modules/@babel/traverse/lib/path/removal.js +3 -1
  174. package/src/front/node_modules/@babel/traverse/lib/path/removal.js.map +1 -1
  175. package/src/front/node_modules/@babel/traverse/lib/path/replacement.js +4 -4
  176. package/src/front/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  177. package/src/front/node_modules/@babel/traverse/lib/scope/index.js +23 -10
  178. package/src/front/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  179. package/src/front/node_modules/@babel/traverse/lib/traverse-node.js +6 -2
  180. package/src/front/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -1
  181. package/src/front/node_modules/@babel/traverse/lib/types.js.map +1 -1
  182. package/src/front/node_modules/@babel/traverse/lib/visitors.js +22 -15
  183. package/src/front/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  184. package/src/front/node_modules/@babel/traverse/package.json +7 -6
  185. package/src/front/node_modules/@babel/types/README.md +1 -1
  186. package/src/front/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  187. package/src/front/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -1
  188. package/src/front/node_modules/@babel/types/lib/definitions/core.js +8 -1
  189. package/src/front/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  190. package/src/front/node_modules/@babel/types/lib/index.d.ts +11 -10
  191. package/src/front/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
  192. package/src/front/node_modules/@babel/types/lib/validators/isType.js +1 -0
  193. package/src/front/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
  194. package/src/front/node_modules/@babel/types/package.json +3 -4
  195. package/src/front/node_modules/react-scripts/node_modules/@babel/core/node_modules/semver/package.json +19 -9
  196. package/src/front/node_modules/react-scripts/node_modules/@babel/core/node_modules/semver/semver.js +68 -26
  197. package/src/front/node_modules/typescript/lib/tsc.js +16 -19
  198. package/src/front/node_modules/typescript/lib/tsserver.js +22 -24
  199. package/src/front/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -1
  200. package/src/front/node_modules/typescript/lib/tsserverlibrary.js +22 -24
  201. package/src/front/node_modules/typescript/lib/typescript.d.ts +0 -1
  202. package/src/front/node_modules/typescript/lib/typescript.js +22 -24
  203. package/src/front/node_modules/typescript/lib/typingsInstaller.js +1 -1
  204. package/src/front/node_modules/typescript/package.json +1 -1
  205. package/src/front/package-lock.json +212 -153
  206. package/src/front/src/components/Input.js +6 -0
  207. package/src/front/src/components/Sidebar.js +2 -2
  208. package/src/front/build/static/js/main.405f6f90.chunk.js +0 -2
  209. package/src/front/build/static/js/main.405f6f90.chunk.js.map +0 -1
  210. package/src/front/node_modules/.cache/babel-loader/964c56108bc43622244156806407d3d8.json +0 -1
  211. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/00/35/f206f48274d030c7a1e2457996323f694ca72c9ec94bddb8ecc8f37aa4632918182acf152491e9b475b95f567493b47644434cdb77f795b23c0b8392aaf7 +0 -1
  212. package/src/front/node_modules/@babel/core/node_modules/semver/CHANGELOG.md +0 -70
  213. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/CHANGELOG.md +0 -70
  214. package/src/front/node_modules/react-scripts/node_modules/@babel/core/node_modules/semver/CHANGELOG.md +0 -39
@@ -1377,54 +1377,6 @@ const reservedWordLikeSet = new Set(["break", "case", "catch", "continue", "debu
1377
1377
  function canBeReservedWord(word) {
1378
1378
  return reservedWordLikeSet.has(word);
1379
1379
  }
1380
- const SCOPE_OTHER = 0b000000000,
1381
- SCOPE_PROGRAM = 0b000000001,
1382
- SCOPE_FUNCTION = 0b000000010,
1383
- SCOPE_ARROW = 0b000000100,
1384
- SCOPE_SIMPLE_CATCH = 0b000001000,
1385
- SCOPE_SUPER = 0b000010000,
1386
- SCOPE_DIRECT_SUPER = 0b000100000,
1387
- SCOPE_CLASS = 0b001000000,
1388
- SCOPE_STATIC_BLOCK = 0b010000000,
1389
- SCOPE_TS_MODULE = 0b100000000,
1390
- SCOPE_VAR = SCOPE_PROGRAM | SCOPE_FUNCTION | SCOPE_STATIC_BLOCK | SCOPE_TS_MODULE;
1391
- const BIND_KIND_VALUE = 0b0000000000001,
1392
- BIND_KIND_TYPE = 0b0000000000010,
1393
- BIND_SCOPE_VAR = 0b0000000000100,
1394
- BIND_SCOPE_LEXICAL = 0b0000000001000,
1395
- BIND_SCOPE_FUNCTION = 0b0000000010000,
1396
- BIND_FLAGS_NONE = 0b00000001000000,
1397
- BIND_FLAGS_CLASS = 0b00000010000000,
1398
- BIND_FLAGS_TS_ENUM = 0b00000100000000,
1399
- BIND_FLAGS_TS_CONST_ENUM = 0b00001000000000,
1400
- BIND_FLAGS_TS_EXPORT_ONLY = 0b00010000000000,
1401
- BIND_FLAGS_FLOW_DECLARE_FN = 0b00100000000000,
1402
- BIND_FLAGS_TS_IMPORT = 0b01000000000000,
1403
- BIND_FLAGS_NO_LET_IN_LEXICAL = 0b10000000000000;
1404
- const BIND_CLASS = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_CLASS | BIND_FLAGS_NO_LET_IN_LEXICAL,
1405
- BIND_LEXICAL = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | BIND_FLAGS_NO_LET_IN_LEXICAL,
1406
- BIND_CATCH_PARAM = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | 0,
1407
- BIND_VAR = BIND_KIND_VALUE | 0 | BIND_SCOPE_VAR | 0,
1408
- BIND_FUNCTION = BIND_KIND_VALUE | 0 | BIND_SCOPE_FUNCTION | 0,
1409
- BIND_TS_INTERFACE = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_CLASS,
1410
- BIND_TS_TYPE = 0 | BIND_KIND_TYPE | 0 | 0,
1411
- BIND_TS_ENUM = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_TS_ENUM | BIND_FLAGS_NO_LET_IN_LEXICAL,
1412
- BIND_TS_AMBIENT = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY,
1413
- BIND_NONE = 0 | 0 | 0 | BIND_FLAGS_NONE,
1414
- BIND_OUTSIDE = BIND_KIND_VALUE | 0 | 0 | BIND_FLAGS_NONE,
1415
- BIND_TS_CONST_ENUM = BIND_TS_ENUM | BIND_FLAGS_TS_CONST_ENUM,
1416
- BIND_TS_NAMESPACE = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY,
1417
- BIND_TS_TYPE_IMPORT = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_TS_IMPORT,
1418
- BIND_FLOW_DECLARE_FN = BIND_FLAGS_FLOW_DECLARE_FN;
1419
- const CLASS_ELEMENT_FLAG_STATIC = 0b100,
1420
- CLASS_ELEMENT_KIND_GETTER = 0b010,
1421
- CLASS_ELEMENT_KIND_SETTER = 0b001,
1422
- CLASS_ELEMENT_KIND_ACCESSOR = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_KIND_SETTER;
1423
- const CLASS_ELEMENT_STATIC_GETTER = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_FLAG_STATIC,
1424
- CLASS_ELEMENT_STATIC_SETTER = CLASS_ELEMENT_KIND_SETTER | CLASS_ELEMENT_FLAG_STATIC,
1425
- CLASS_ELEMENT_INSTANCE_GETTER = CLASS_ELEMENT_KIND_GETTER,
1426
- CLASS_ELEMENT_INSTANCE_SETTER = CLASS_ELEMENT_KIND_SETTER,
1427
- CLASS_ELEMENT_OTHER = 0;
1428
1380
  class Scope {
1429
1381
  constructor(flags) {
1430
1382
  this.var = new Set();
@@ -1443,39 +1395,39 @@ class ScopeHandler {
1443
1395
  this.inModule = inModule;
1444
1396
  }
1445
1397
  get inTopLevel() {
1446
- return (this.currentScope().flags & SCOPE_PROGRAM) > 0;
1398
+ return (this.currentScope().flags & 1) > 0;
1447
1399
  }
1448
1400
  get inFunction() {
1449
- return (this.currentVarScopeFlags() & SCOPE_FUNCTION) > 0;
1401
+ return (this.currentVarScopeFlags() & 2) > 0;
1450
1402
  }
1451
1403
  get allowSuper() {
1452
- return (this.currentThisScopeFlags() & SCOPE_SUPER) > 0;
1404
+ return (this.currentThisScopeFlags() & 16) > 0;
1453
1405
  }
1454
1406
  get allowDirectSuper() {
1455
- return (this.currentThisScopeFlags() & SCOPE_DIRECT_SUPER) > 0;
1407
+ return (this.currentThisScopeFlags() & 32) > 0;
1456
1408
  }
1457
1409
  get inClass() {
1458
- return (this.currentThisScopeFlags() & SCOPE_CLASS) > 0;
1410
+ return (this.currentThisScopeFlags() & 64) > 0;
1459
1411
  }
1460
1412
  get inClassAndNotInNonArrowFunction() {
1461
1413
  const flags = this.currentThisScopeFlags();
1462
- return (flags & SCOPE_CLASS) > 0 && (flags & SCOPE_FUNCTION) === 0;
1414
+ return (flags & 64) > 0 && (flags & 2) === 0;
1463
1415
  }
1464
1416
  get inStaticBlock() {
1465
1417
  for (let i = this.scopeStack.length - 1;; i--) {
1466
1418
  const {
1467
1419
  flags
1468
1420
  } = this.scopeStack[i];
1469
- if (flags & SCOPE_STATIC_BLOCK) {
1421
+ if (flags & 128) {
1470
1422
  return true;
1471
1423
  }
1472
- if (flags & (SCOPE_VAR | SCOPE_CLASS)) {
1424
+ if (flags & (387 | 64)) {
1473
1425
  return false;
1474
1426
  }
1475
1427
  }
1476
1428
  }
1477
1429
  get inNonArrowFunction() {
1478
- return (this.currentThisScopeFlags() & SCOPE_FUNCTION) > 0;
1430
+ return (this.currentThisScopeFlags() & 2) > 0;
1479
1431
  }
1480
1432
  get treatFunctionsAsVar() {
1481
1433
  return this.treatFunctionsAsVarInScope(this.currentScope());
@@ -1491,35 +1443,35 @@ class ScopeHandler {
1491
1443
  return scope.flags;
1492
1444
  }
1493
1445
  treatFunctionsAsVarInScope(scope) {
1494
- return !!(scope.flags & (SCOPE_FUNCTION | SCOPE_STATIC_BLOCK) || !this.parser.inModule && scope.flags & SCOPE_PROGRAM);
1446
+ return !!(scope.flags & (2 | 128) || !this.parser.inModule && scope.flags & 1);
1495
1447
  }
1496
1448
  declareName(name, bindingType, loc) {
1497
1449
  let scope = this.currentScope();
1498
- if (bindingType & BIND_SCOPE_LEXICAL || bindingType & BIND_SCOPE_FUNCTION) {
1450
+ if (bindingType & 8 || bindingType & 16) {
1499
1451
  this.checkRedeclarationInScope(scope, name, bindingType, loc);
1500
- if (bindingType & BIND_SCOPE_FUNCTION) {
1452
+ if (bindingType & 16) {
1501
1453
  scope.functions.add(name);
1502
1454
  } else {
1503
1455
  scope.lexical.add(name);
1504
1456
  }
1505
- if (bindingType & BIND_SCOPE_LEXICAL) {
1457
+ if (bindingType & 8) {
1506
1458
  this.maybeExportDefined(scope, name);
1507
1459
  }
1508
- } else if (bindingType & BIND_SCOPE_VAR) {
1460
+ } else if (bindingType & 4) {
1509
1461
  for (let i = this.scopeStack.length - 1; i >= 0; --i) {
1510
1462
  scope = this.scopeStack[i];
1511
1463
  this.checkRedeclarationInScope(scope, name, bindingType, loc);
1512
1464
  scope.var.add(name);
1513
1465
  this.maybeExportDefined(scope, name);
1514
- if (scope.flags & SCOPE_VAR) break;
1466
+ if (scope.flags & 387) break;
1515
1467
  }
1516
1468
  }
1517
- if (this.parser.inModule && scope.flags & SCOPE_PROGRAM) {
1469
+ if (this.parser.inModule && scope.flags & 1) {
1518
1470
  this.undefinedExports.delete(name);
1519
1471
  }
1520
1472
  }
1521
1473
  maybeExportDefined(scope, name) {
1522
- if (this.parser.inModule && scope.flags & SCOPE_PROGRAM) {
1474
+ if (this.parser.inModule && scope.flags & 1) {
1523
1475
  this.undefinedExports.delete(name);
1524
1476
  }
1525
1477
  }
@@ -1532,14 +1484,14 @@ class ScopeHandler {
1532
1484
  }
1533
1485
  }
1534
1486
  isRedeclaredInScope(scope, name, bindingType) {
1535
- if (!(bindingType & BIND_KIND_VALUE)) return false;
1536
- if (bindingType & BIND_SCOPE_LEXICAL) {
1487
+ if (!(bindingType & 1)) return false;
1488
+ if (bindingType & 8) {
1537
1489
  return scope.lexical.has(name) || scope.functions.has(name) || scope.var.has(name);
1538
1490
  }
1539
- if (bindingType & BIND_SCOPE_FUNCTION) {
1491
+ if (bindingType & 16) {
1540
1492
  return scope.lexical.has(name) || !this.treatFunctionsAsVarInScope(scope) && scope.var.has(name);
1541
1493
  }
1542
- return scope.lexical.has(name) && !(scope.flags & SCOPE_SIMPLE_CATCH && scope.lexical.values().next().value === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.has(name);
1494
+ return scope.lexical.has(name) && !(scope.flags & 8 && scope.lexical.values().next().value === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.has(name);
1543
1495
  }
1544
1496
  checkLocalExport(id) {
1545
1497
  const {
@@ -1558,7 +1510,7 @@ class ScopeHandler {
1558
1510
  const {
1559
1511
  flags
1560
1512
  } = this.scopeStack[i];
1561
- if (flags & SCOPE_VAR) {
1513
+ if (flags & 387) {
1562
1514
  return flags;
1563
1515
  }
1564
1516
  }
@@ -1568,7 +1520,7 @@ class ScopeHandler {
1568
1520
  const {
1569
1521
  flags
1570
1522
  } = this.scopeStack[i];
1571
- if (flags & (SCOPE_VAR | SCOPE_CLASS) && !(flags & SCOPE_ARROW)) {
1523
+ if (flags & (387 | 64) && !(flags & 4)) {
1572
1524
  return flags;
1573
1525
  }
1574
1526
  }
@@ -1586,7 +1538,7 @@ class FlowScopeHandler extends ScopeHandler {
1586
1538
  }
1587
1539
  declareName(name, bindingType, loc) {
1588
1540
  const scope = this.currentScope();
1589
- if (bindingType & BIND_FLAGS_FLOW_DECLARE_FN) {
1541
+ if (bindingType & 2048) {
1590
1542
  this.checkRedeclarationInScope(scope, name, bindingType, loc);
1591
1543
  this.maybeExportDefined(scope, name);
1592
1544
  scope.declareFunctions.add(name);
@@ -1596,7 +1548,7 @@ class FlowScopeHandler extends ScopeHandler {
1596
1548
  }
1597
1549
  isRedeclaredInScope(scope, name, bindingType) {
1598
1550
  if (super.isRedeclaredInScope(scope, name, bindingType)) return true;
1599
- if (bindingType & BIND_FLAGS_FLOW_DECLARE_FN) {
1551
+ if (bindingType & 2048) {
1600
1552
  return !scope.declareFunctions.has(name) && (scope.lexical.has(name) || scope.functions.has(name));
1601
1553
  }
1602
1554
  return false;
@@ -3355,13 +3307,13 @@ class ClassScopeHandler {
3355
3307
  undefinedPrivateNames
3356
3308
  } = this.current();
3357
3309
  let redefined = privateNames.has(name);
3358
- if (elementType & CLASS_ELEMENT_KIND_ACCESSOR) {
3310
+ if (elementType & 3) {
3359
3311
  const accessor = redefined && loneAccessors.get(name);
3360
3312
  if (accessor) {
3361
- const oldStatic = accessor & CLASS_ELEMENT_FLAG_STATIC;
3362
- const newStatic = elementType & CLASS_ELEMENT_FLAG_STATIC;
3363
- const oldKind = accessor & CLASS_ELEMENT_KIND_ACCESSOR;
3364
- const newKind = elementType & CLASS_ELEMENT_KIND_ACCESSOR;
3313
+ const oldStatic = accessor & 4;
3314
+ const newStatic = elementType & 4;
3315
+ const oldKind = accessor & 3;
3316
+ const newKind = elementType & 3;
3365
3317
  redefined = oldKind === newKind || oldStatic !== newStatic;
3366
3318
  if (!redefined) loneAccessors.delete(name);
3367
3319
  } else if (!redefined) {
@@ -3392,20 +3344,15 @@ class ClassScopeHandler {
3392
3344
  }
3393
3345
  }
3394
3346
  }
3395
- const kExpression = 0,
3396
- kMaybeArrowParameterDeclaration = 1,
3397
- kMaybeAsyncArrowParameterDeclaration = 2,
3398
- kParameterDeclaration = 3;
3399
3347
  class ExpressionScope {
3400
- constructor(type = kExpression) {
3401
- this.type = void 0;
3348
+ constructor(type = 0) {
3402
3349
  this.type = type;
3403
3350
  }
3404
3351
  canBeArrowParameterDeclaration() {
3405
- return this.type === kMaybeAsyncArrowParameterDeclaration || this.type === kMaybeArrowParameterDeclaration;
3352
+ return this.type === 2 || this.type === 1;
3406
3353
  }
3407
3354
  isCertainlyParameterDeclaration() {
3408
- return this.type === kParameterDeclaration;
3355
+ return this.type === 3;
3409
3356
  }
3410
3357
  }
3411
3358
  class ArrowHeadParsingScope extends ExpressionScope {
@@ -3486,7 +3433,7 @@ class ExpressionScopeHandler {
3486
3433
  let i = stack.length - 1;
3487
3434
  let scope = stack[i];
3488
3435
  while (scope.canBeArrowParameterDeclaration()) {
3489
- if (scope.type === kMaybeAsyncArrowParameterDeclaration) {
3436
+ if (scope.type === 2) {
3490
3437
  scope.recordDeclarationError(Errors.AwaitBindingIdentifier, {
3491
3438
  at
3492
3439
  });
@@ -3514,13 +3461,13 @@ class ExpressionScopeHandler {
3514
3461
  }
3515
3462
  }
3516
3463
  function newParameterDeclarationScope() {
3517
- return new ExpressionScope(kParameterDeclaration);
3464
+ return new ExpressionScope(3);
3518
3465
  }
3519
3466
  function newArrowHeadScope() {
3520
- return new ArrowHeadParsingScope(kMaybeArrowParameterDeclaration);
3467
+ return new ArrowHeadParsingScope(1);
3521
3468
  }
3522
3469
  function newAsyncArrowScope() {
3523
- return new ArrowHeadParsingScope(kMaybeAsyncArrowParameterDeclaration);
3470
+ return new ArrowHeadParsingScope(2);
3524
3471
  }
3525
3472
  function newExpressionScope() {
3526
3473
  return new ExpressionScope();
@@ -3758,7 +3705,7 @@ class UtilParser extends Tokenizer {
3758
3705
  if (this.inModule) {
3759
3706
  paramFlags |= PARAM_AWAIT;
3760
3707
  }
3761
- this.scope.enter(SCOPE_PROGRAM);
3708
+ this.scope.enter(1);
3762
3709
  this.prodParam.enter(paramFlags);
3763
3710
  }
3764
3711
  checkDestructuringPrivate(refExpressionErrors) {
@@ -4109,7 +4056,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
4109
4056
  id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation");
4110
4057
  this.resetEndLocation(id);
4111
4058
  this.semicolon();
4112
- this.scope.declareName(node.id.name, BIND_FLOW_DECLARE_FN, node.id.loc.start);
4059
+ this.scope.declareName(node.id.name, 2048, node.id.loc.start);
4113
4060
  return this.finishNode(node, "DeclareFunction");
4114
4061
  }
4115
4062
  flowParseDeclare(node, insideModule) {
@@ -4145,12 +4092,12 @@ var flow = superClass => class FlowParserMixin extends superClass {
4145
4092
  flowParseDeclareVariable(node) {
4146
4093
  this.next();
4147
4094
  node.id = this.flowParseTypeAnnotatableIdentifier(true);
4148
- this.scope.declareName(node.id.name, BIND_VAR, node.id.loc.start);
4095
+ this.scope.declareName(node.id.name, 5, node.id.loc.start);
4149
4096
  this.semicolon();
4150
4097
  return this.finishNode(node, "DeclareVariable");
4151
4098
  }
4152
4099
  flowParseDeclareModule(node) {
4153
- this.scope.enter(SCOPE_OTHER);
4100
+ this.scope.enter(0);
4154
4101
  if (this.match(131)) {
4155
4102
  node.id = super.parseExprAtom();
4156
4103
  } else {
@@ -4269,7 +4216,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
4269
4216
  }
4270
4217
  flowParseInterfaceish(node, isClass) {
4271
4218
  node.id = this.flowParseRestrictedIdentifier(!isClass, true);
4272
- this.scope.declareName(node.id.name, isClass ? BIND_FUNCTION : BIND_LEXICAL, node.id.loc.start);
4219
+ this.scope.declareName(node.id.name, isClass ? 17 : 8201, node.id.loc.start);
4273
4220
  if (this.match(47)) {
4274
4221
  node.typeParameters = this.flowParseTypeParameterDeclaration();
4275
4222
  } else {
@@ -4337,7 +4284,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
4337
4284
  }
4338
4285
  flowParseTypeAlias(node) {
4339
4286
  node.id = this.flowParseRestrictedIdentifier(false, true);
4340
- this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.loc.start);
4287
+ this.scope.declareName(node.id.name, 8201, node.id.loc.start);
4341
4288
  if (this.match(47)) {
4342
4289
  node.typeParameters = this.flowParseTypeParameterDeclaration();
4343
4290
  } else {
@@ -4350,7 +4297,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
4350
4297
  flowParseOpaqueType(node, declare) {
4351
4298
  this.expectContextual(128);
4352
4299
  node.id = this.flowParseRestrictedIdentifier(true, true);
4353
- this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.loc.start);
4300
+ this.scope.declareName(node.id.name, 8201, node.id.loc.start);
4354
4301
  if (this.match(47)) {
4355
4302
  node.typeParameters = this.flowParseTypeParameterDeclaration();
4356
4303
  } else {
@@ -5268,7 +5215,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
5268
5215
  finishArrowValidation(node) {
5269
5216
  var _node$extra;
5270
5217
  this.toAssignableList(node.params, (_node$extra = node.extra) == null ? void 0 : _node$extra.trailingCommaLoc, false);
5271
- this.scope.enter(SCOPE_FUNCTION | SCOPE_ARROW);
5218
+ this.scope.enter(2 | 4);
5272
5219
  super.checkParams(node, false, true);
5273
5220
  this.scope.exit();
5274
5221
  }
@@ -7050,14 +6997,14 @@ class TypeScriptScopeHandler extends ScopeHandler {
7050
6997
  return new TypeScriptScope(flags);
7051
6998
  }
7052
6999
  enter(flags) {
7053
- if (flags == SCOPE_TS_MODULE) {
7000
+ if (flags == 256) {
7054
7001
  this.importsStack.push(new Set());
7055
7002
  }
7056
7003
  super.enter(flags);
7057
7004
  }
7058
7005
  exit() {
7059
7006
  const flags = super.exit();
7060
- if (flags == SCOPE_TS_MODULE) {
7007
+ if (flags == 256) {
7061
7008
  this.importsStack.pop();
7062
7009
  }
7063
7010
  return flags;
@@ -7075,7 +7022,7 @@ class TypeScriptScopeHandler extends ScopeHandler {
7075
7022
  return false;
7076
7023
  }
7077
7024
  declareName(name, bindingType, loc) {
7078
- if (bindingType & BIND_FLAGS_TS_IMPORT) {
7025
+ if (bindingType & 4096) {
7079
7026
  if (this.hasImport(name, true)) {
7080
7027
  this.parser.raise(Errors.VarRedeclaration, {
7081
7028
  at: loc,
@@ -7086,40 +7033,42 @@ class TypeScriptScopeHandler extends ScopeHandler {
7086
7033
  return;
7087
7034
  }
7088
7035
  const scope = this.currentScope();
7089
- if (bindingType & BIND_FLAGS_TS_EXPORT_ONLY) {
7036
+ if (bindingType & 1024) {
7090
7037
  this.maybeExportDefined(scope, name);
7091
7038
  scope.exportOnlyBindings.add(name);
7092
7039
  return;
7093
7040
  }
7094
7041
  super.declareName(name, bindingType, loc);
7095
- if (bindingType & BIND_KIND_TYPE) {
7096
- if (!(bindingType & BIND_KIND_VALUE)) {
7042
+ if (bindingType & 2) {
7043
+ if (!(bindingType & 1)) {
7097
7044
  this.checkRedeclarationInScope(scope, name, bindingType, loc);
7098
7045
  this.maybeExportDefined(scope, name);
7099
7046
  }
7100
7047
  scope.types.add(name);
7101
7048
  }
7102
- if (bindingType & BIND_FLAGS_TS_ENUM) scope.enums.add(name);
7103
- if (bindingType & BIND_FLAGS_TS_CONST_ENUM) scope.constEnums.add(name);
7104
- if (bindingType & BIND_FLAGS_CLASS) scope.classes.add(name);
7049
+ if (bindingType & 256) scope.enums.add(name);
7050
+ if (bindingType & 512) {
7051
+ scope.constEnums.add(name);
7052
+ }
7053
+ if (bindingType & 128) scope.classes.add(name);
7105
7054
  }
7106
7055
  isRedeclaredInScope(scope, name, bindingType) {
7107
7056
  if (scope.enums.has(name)) {
7108
- if (bindingType & BIND_FLAGS_TS_ENUM) {
7109
- const isConst = !!(bindingType & BIND_FLAGS_TS_CONST_ENUM);
7057
+ if (bindingType & 256) {
7058
+ const isConst = !!(bindingType & 512);
7110
7059
  const wasConst = scope.constEnums.has(name);
7111
7060
  return isConst !== wasConst;
7112
7061
  }
7113
7062
  return true;
7114
7063
  }
7115
- if (bindingType & BIND_FLAGS_CLASS && scope.classes.has(name)) {
7064
+ if (bindingType & 128 && scope.classes.has(name)) {
7116
7065
  if (scope.lexical.has(name)) {
7117
- return !!(bindingType & BIND_KIND_VALUE);
7066
+ return !!(bindingType & 1);
7118
7067
  } else {
7119
7068
  return false;
7120
7069
  }
7121
7070
  }
7122
- if (bindingType & BIND_KIND_TYPE && scope.types.has(name)) {
7071
+ if (bindingType & 2 && scope.types.has(name)) {
7123
7072
  return true;
7124
7073
  }
7125
7074
  return super.isRedeclaredInScope(scope, name, bindingType);
@@ -7426,7 +7375,7 @@ class LValParser extends NodeUtils {
7426
7375
  }
7427
7376
  checkLVal(expression, {
7428
7377
  in: ancestor,
7429
- binding = BIND_NONE,
7378
+ binding = 64,
7430
7379
  checkClashes = false,
7431
7380
  strictModeChanged = false,
7432
7381
  hasParenthesizedAncestor = false
@@ -7435,7 +7384,7 @@ class LValParser extends NodeUtils {
7435
7384
  const type = expression.type;
7436
7385
  if (this.isObjectMethod(expression)) return;
7437
7386
  if (type === "MemberExpression") {
7438
- if (binding !== BIND_NONE) {
7387
+ if (binding !== 64) {
7439
7388
  this.raise(Errors.InvalidPropertyBindingPattern, {
7440
7389
  at: expression
7441
7390
  });
@@ -7461,7 +7410,7 @@ class LValParser extends NodeUtils {
7461
7410
  const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding);
7462
7411
  if (validity === true) return;
7463
7412
  if (validity === false) {
7464
- const ParseErrorClass = binding === BIND_NONE ? Errors.InvalidLhs : Errors.InvalidLhsBinding;
7413
+ const ParseErrorClass = binding === 64 ? Errors.InvalidLhs : Errors.InvalidLhsBinding;
7465
7414
  this.raise(ParseErrorClass, {
7466
7415
  at: expression,
7467
7416
  ancestor
@@ -7486,7 +7435,7 @@ class LValParser extends NodeUtils {
7486
7435
  }
7487
7436
  checkIdentifier(at, bindingType, strictModeChanged = false) {
7488
7437
  if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) {
7489
- if (bindingType === BIND_NONE) {
7438
+ if (bindingType === 64) {
7490
7439
  this.raise(Errors.StrictEvalArguments, {
7491
7440
  at,
7492
7441
  referenceName: at.name
@@ -7498,12 +7447,12 @@ class LValParser extends NodeUtils {
7498
7447
  });
7499
7448
  }
7500
7449
  }
7501
- if (bindingType & BIND_FLAGS_NO_LET_IN_LEXICAL && at.name === "let") {
7450
+ if (bindingType & 8192 && at.name === "let") {
7502
7451
  this.raise(Errors.LetInLexicalBinding, {
7503
7452
  at
7504
7453
  });
7505
7454
  }
7506
- if (!(bindingType & BIND_NONE)) {
7455
+ if (!(bindingType & 64)) {
7507
7456
  this.declareNameFromIdentifier(at, bindingType);
7508
7457
  }
7509
7458
  }
@@ -8676,7 +8625,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8676
8625
  if (properties.declare) node.declare = true;
8677
8626
  if (tokenIsIdentifier(this.state.type)) {
8678
8627
  node.id = this.parseIdentifier();
8679
- this.checkIdentifier(node.id, BIND_TS_INTERFACE);
8628
+ this.checkIdentifier(node.id, 130);
8680
8629
  } else {
8681
8630
  node.id = null;
8682
8631
  this.raise(TSErrors.MissingInterfaceName, {
@@ -8694,7 +8643,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8694
8643
  }
8695
8644
  tsParseTypeAliasDeclaration(node) {
8696
8645
  node.id = this.parseIdentifier();
8697
- this.checkIdentifier(node.id, BIND_TS_TYPE);
8646
+ this.checkIdentifier(node.id, 2);
8698
8647
  node.typeAnnotation = this.tsInType(() => {
8699
8648
  node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers);
8700
8649
  this.expect(29);
@@ -8774,7 +8723,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8774
8723
  if (properties.declare) node.declare = true;
8775
8724
  this.expectContextual(124);
8776
8725
  node.id = this.parseIdentifier();
8777
- this.checkIdentifier(node.id, node.const ? BIND_TS_CONST_ENUM : BIND_TS_ENUM);
8726
+ this.checkIdentifier(node.id, node.const ? 8971 : 8459);
8778
8727
  this.expect(5);
8779
8728
  node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this));
8780
8729
  this.expect(8);
@@ -8782,7 +8731,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8782
8731
  }
8783
8732
  tsParseModuleBlock() {
8784
8733
  const node = this.startNode();
8785
- this.scope.enter(SCOPE_OTHER);
8734
+ this.scope.enter(0);
8786
8735
  this.expect(5);
8787
8736
  super.parseBlockOrModuleBlockBody(node.body = [], undefined, true, 8);
8788
8737
  this.scope.exit();
@@ -8791,14 +8740,14 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8791
8740
  tsParseModuleOrNamespaceDeclaration(node, nested = false) {
8792
8741
  node.id = this.parseIdentifier();
8793
8742
  if (!nested) {
8794
- this.checkIdentifier(node.id, BIND_TS_NAMESPACE);
8743
+ this.checkIdentifier(node.id, 1024);
8795
8744
  }
8796
8745
  if (this.eat(16)) {
8797
8746
  const inner = this.startNode();
8798
8747
  this.tsParseModuleOrNamespaceDeclaration(inner, true);
8799
8748
  node.body = inner;
8800
8749
  } else {
8801
- this.scope.enter(SCOPE_TS_MODULE);
8750
+ this.scope.enter(256);
8802
8751
  this.prodParam.enter(PARAM);
8803
8752
  node.body = this.tsParseModuleBlock();
8804
8753
  this.prodParam.exit();
@@ -8816,7 +8765,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8816
8765
  this.unexpected();
8817
8766
  }
8818
8767
  if (this.match(5)) {
8819
- this.scope.enter(SCOPE_TS_MODULE);
8768
+ this.scope.enter(256);
8820
8769
  this.prodParam.enter(PARAM);
8821
8770
  node.body = this.tsParseModuleBlock();
8822
8771
  this.prodParam.exit();
@@ -8829,7 +8778,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8829
8778
  tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, isExport) {
8830
8779
  node.isExport = isExport || false;
8831
8780
  node.id = maybeDefaultIdentifier || this.parseIdentifier();
8832
- this.checkIdentifier(node.id, BIND_FLAGS_TS_IMPORT);
8781
+ this.checkIdentifier(node.id, 4096);
8833
8782
  this.expect(29);
8834
8783
  const moduleReference = this.tsParseModuleReference();
8835
8784
  if (node.importKind === "type" && moduleReference.type !== "TSExternalModuleReference") {
@@ -8943,7 +8892,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8943
8892
  }
8944
8893
  case "global":
8945
8894
  if (this.match(5)) {
8946
- this.scope.enter(SCOPE_TS_MODULE);
8895
+ this.scope.enter(256);
8947
8896
  this.prodParam.enter(PARAM);
8948
8897
  const mod = node;
8949
8898
  mod.global = true;
@@ -9112,7 +9061,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9112
9061
  }
9113
9062
  registerFunctionStatementId(node) {
9114
9063
  if (!node.body && node.id) {
9115
- this.checkIdentifier(node.id, BIND_TS_AMBIENT);
9064
+ this.checkIdentifier(node.id, 1024);
9116
9065
  } else {
9117
9066
  super.registerFunctionStatementId(node);
9118
9067
  }
@@ -9541,7 +9490,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9541
9490
  if ((!isStatement || optionalId) && this.isContextual(111)) {
9542
9491
  return;
9543
9492
  }
9544
- super.parseClassId(node, isStatement, optionalId, node.declare ? BIND_TS_AMBIENT : BIND_CLASS);
9493
+ super.parseClassId(node, isStatement, optionalId, node.declare ? 1024 : 8331);
9545
9494
  const typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);
9546
9495
  if (typeParameters) node.typeParameters = typeParameters;
9547
9496
  }
@@ -9830,9 +9779,9 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9830
9779
  TSTypeCastExpression: true,
9831
9780
  TSParameterProperty: "parameter",
9832
9781
  TSNonNullExpression: "expression",
9833
- TSAsExpression: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true],
9834
- TSSatisfiesExpression: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true],
9835
- TSTypeAssertion: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true]
9782
+ TSAsExpression: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true],
9783
+ TSSatisfiesExpression: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true],
9784
+ TSTypeAssertion: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true]
9836
9785
  }, type) || super.isValidLVal(type, isUnparenthesizedInAssign, binding);
9837
9786
  }
9838
9787
  parseBindingAtom() {
@@ -10043,7 +9992,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
10043
9992
  return this.finishNode(specifier, "ImportSpecifier");
10044
9993
  }
10045
9994
  specifier.importKind = "value";
10046
- return super.parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, isInTypeOnlyImport ? BIND_TS_TYPE_IMPORT : BIND_FLAGS_TS_IMPORT);
9995
+ return super.parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, isInTypeOnlyImport ? 4098 : 4096);
10047
9996
  }
10048
9997
  parseTypeOnlyImportExportSpecifier(node, isImport, isInTypeOnlyImportExport) {
10049
9998
  const leftOfAsKey = isImport ? "imported" : "local";
@@ -10100,7 +10049,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
10100
10049
  node[rightOfAsKey] = cloneIdentifier(node[leftOfAsKey]);
10101
10050
  }
10102
10051
  if (isImport) {
10103
- this.checkIdentifier(node[rightOfAsKey], hasTypeSpecifier ? BIND_TS_TYPE_IMPORT : BIND_FLAGS_TS_IMPORT);
10052
+ this.checkIdentifier(node[rightOfAsKey], hasTypeSpecifier ? 4098 : 4096);
10104
10053
  }
10105
10054
  }
10106
10055
  };
@@ -10240,7 +10189,8 @@ var placeholders = superClass => class PlaceholdersParserMixin extends superClas
10240
10189
  super.verifyBreakContinue(node, isBreak);
10241
10190
  }
10242
10191
  parseExpressionStatement(node, expr) {
10243
- if (expr.type !== "Placeholder" || expr.extra && expr.extra.parenthesized) {
10192
+ var _expr$extra;
10193
+ if (expr.type !== "Placeholder" || (_expr$extra = expr.extra) != null && _expr$extra.parenthesized) {
10244
10194
  return super.parseExpressionStatement(node, expr);
10245
10195
  }
10246
10196
  if (this.match(14)) {
@@ -10518,12 +10468,16 @@ const defaultOptions = {
10518
10468
  annexB: true
10519
10469
  };
10520
10470
  function getOptions(opts) {
10521
- if (opts && opts.annexB != null && opts.annexB !== false) {
10471
+ if (opts == null) {
10472
+ return Object.assign({}, defaultOptions);
10473
+ }
10474
+ if (opts.annexB != null && opts.annexB !== false) {
10522
10475
  throw new Error("The `annexB` option can only be set to `false`.");
10523
10476
  }
10524
10477
  const options = {};
10525
10478
  for (const key of Object.keys(defaultOptions)) {
10526
- options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key];
10479
+ var _opts$key;
10480
+ options[key] = (_opts$key = opts[key]) != null ? _opts$key : defaultOptions[key];
10527
10481
  }
10528
10482
  return options;
10529
10483
  }
@@ -11885,7 +11839,7 @@ class ExpressionParser extends LValParser {
11885
11839
  parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) {
11886
11840
  this.initFunction(node, isAsync);
11887
11841
  node.generator = isGenerator;
11888
- this.scope.enter(SCOPE_FUNCTION | SCOPE_SUPER | (inClassScope ? SCOPE_CLASS : 0) | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));
11842
+ this.scope.enter(2 | 16 | (inClassScope ? 64 : 0) | (allowDirectSuper ? 32 : 0));
11889
11843
  this.prodParam.enter(functionFlags(isAsync, node.generator));
11890
11844
  this.parseFunctionParams(node, isConstructor);
11891
11845
  const finishedNode = this.parseFunctionBodyAndFinish(node, type, true);
@@ -11906,7 +11860,7 @@ class ExpressionParser extends LValParser {
11906
11860
  return this.finishNode(node, isTuple ? "TupleExpression" : "ArrayExpression");
11907
11861
  }
11908
11862
  parseArrowExpression(node, params, isAsync, trailingCommaLoc) {
11909
- this.scope.enter(SCOPE_FUNCTION | SCOPE_ARROW);
11863
+ this.scope.enter(2 | 4);
11910
11864
  let flags = functionFlags(isAsync, false);
11911
11865
  if (!this.match(5) && this.prodParam.hasIn) {
11912
11866
  flags |= PARAM_IN;
@@ -11954,7 +11908,7 @@ class ExpressionParser extends LValParser {
11954
11908
  const strictModeChanged = !oldStrict && this.state.strict;
11955
11909
  this.checkParams(node, !this.state.strict && !allowExpression && !isMethod && !nonSimple, allowExpression, strictModeChanged);
11956
11910
  if (this.state.strict && node.id) {
11957
- this.checkIdentifier(node.id, BIND_OUTSIDE, strictModeChanged);
11911
+ this.checkIdentifier(node.id, 65, strictModeChanged);
11958
11912
  }
11959
11913
  });
11960
11914
  this.prodParam.exit();
@@ -11979,7 +11933,7 @@ class ExpressionParser extends LValParser {
11979
11933
  for (const param of node.params) {
11980
11934
  this.checkLVal(param, {
11981
11935
  in: formalParameters,
11982
- binding: BIND_VAR,
11936
+ binding: 5,
11983
11937
  checkClashes,
11984
11938
  strictModeChanged
11985
11939
  });
@@ -12896,7 +12850,7 @@ class StatementParser extends ExpressionParser {
12896
12850
  if (this.isAwaitAllowed() && this.eatContextual(96)) {
12897
12851
  awaitAt = this.state.lastTokStartLoc;
12898
12852
  }
12899
- this.scope.enter(SCOPE_OTHER);
12853
+ this.scope.enter(0);
12900
12854
  this.expect(10);
12901
12855
  if (this.match(13)) {
12902
12856
  if (awaitAt !== null) {
@@ -13007,7 +12961,7 @@ class StatementParser extends ExpressionParser {
13007
12961
  const cases = node.cases = [];
13008
12962
  this.expect(5);
13009
12963
  this.state.labels.push(switchLabel);
13010
- this.scope.enter(SCOPE_OTHER);
12964
+ this.scope.enter(0);
13011
12965
  let cur;
13012
12966
  for (let sawDefault; !this.match(8);) {
13013
12967
  if (this.match(61) || this.match(65)) {
@@ -13055,12 +13009,12 @@ class StatementParser extends ExpressionParser {
13055
13009
  }
13056
13010
  parseCatchClauseParam() {
13057
13011
  const param = this.parseBindingAtom();
13058
- this.scope.enter(this.options.annexB && param.type === "Identifier" ? SCOPE_SIMPLE_CATCH : 0);
13012
+ this.scope.enter(this.options.annexB && param.type === "Identifier" ? 8 : 0);
13059
13013
  this.checkLVal(param, {
13060
13014
  in: {
13061
13015
  type: "CatchClause"
13062
13016
  },
13063
- binding: BIND_CATCH_PARAM
13017
+ binding: 9
13064
13018
  });
13065
13019
  return param;
13066
13020
  }
@@ -13077,7 +13031,7 @@ class StatementParser extends ExpressionParser {
13077
13031
  this.expect(11);
13078
13032
  } else {
13079
13033
  clause.param = null;
13080
- this.scope.enter(SCOPE_OTHER);
13034
+ this.scope.enter(0);
13081
13035
  }
13082
13036
  clause.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(false, false));
13083
13037
  this.scope.exit();
@@ -13161,7 +13115,7 @@ class StatementParser extends ExpressionParser {
13161
13115
  }
13162
13116
  this.expect(5);
13163
13117
  if (createNewLexicalScope) {
13164
- this.scope.enter(SCOPE_OTHER);
13118
+ this.scope.enter(0);
13165
13119
  }
13166
13120
  this.parseBlockBody(node, allowDirectives, false, 8, afterBlockParse);
13167
13121
  if (createNewLexicalScope) {
@@ -13198,9 +13152,7 @@ class StatementParser extends ExpressionParser {
13198
13152
  }
13199
13153
  body.push(stmt);
13200
13154
  }
13201
- if (afterBlockParse) {
13202
- afterBlockParse.call(this, hasStrictModeDirective);
13203
- }
13155
+ afterBlockParse == null ? void 0 : afterBlockParse.call(this, hasStrictModeDirective);
13204
13156
  if (!oldStrict) {
13205
13157
  this.setStrict(false);
13206
13158
  }
@@ -13279,7 +13231,7 @@ class StatementParser extends ExpressionParser {
13279
13231
  in: {
13280
13232
  type: "VariableDeclarator"
13281
13233
  },
13282
- binding: kind === "var" ? BIND_VAR : BIND_LEXICAL
13234
+ binding: kind === "var" ? 5 : 8201
13283
13235
  });
13284
13236
  decl.id = id;
13285
13237
  }
@@ -13306,7 +13258,7 @@ class StatementParser extends ExpressionParser {
13306
13258
  }
13307
13259
  const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
13308
13260
  this.state.maybeInArrowParameters = false;
13309
- this.scope.enter(SCOPE_FUNCTION);
13261
+ this.scope.enter(2);
13310
13262
  this.prodParam.enter(functionFlags(isAsync, node.generator));
13311
13263
  if (!isDeclaration) {
13312
13264
  node.id = this.parseFunctionId();
@@ -13334,7 +13286,7 @@ class StatementParser extends ExpressionParser {
13334
13286
  }
13335
13287
  registerFunctionStatementId(node) {
13336
13288
  if (!node.id) return;
13337
- this.scope.declareName(node.id.name, !this.options.annexB || this.state.strict || node.generator || node.async ? this.scope.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION, node.id.loc.start);
13289
+ this.scope.declareName(node.id.name, !this.options.annexB || this.state.strict || node.generator || node.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, node.id.loc.start);
13338
13290
  }
13339
13291
  parseClass(node, isStatement, optionalId) {
13340
13292
  this.next();
@@ -13573,7 +13525,7 @@ class StatementParser extends ExpressionParser {
13573
13525
  }
13574
13526
  parseClassStaticBlock(classBody, member) {
13575
13527
  var _member$decorators;
13576
- this.scope.enter(SCOPE_CLASS | SCOPE_STATIC_BLOCK | SCOPE_SUPER);
13528
+ this.scope.enter(64 | 128 | 16);
13577
13529
  const oldLabels = this.state.labels;
13578
13530
  this.state.labels = [];
13579
13531
  this.prodParam.enter(PARAM);
@@ -13600,7 +13552,7 @@ class StatementParser extends ExpressionParser {
13600
13552
  pushClassPrivateProperty(classBody, prop) {
13601
13553
  const node = this.parseClassPrivateProperty(prop);
13602
13554
  classBody.body.push(node);
13603
- this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), CLASS_ELEMENT_OTHER, node.key.loc.start);
13555
+ this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), 0, node.key.loc.start);
13604
13556
  }
13605
13557
  pushClassAccessorProperty(classBody, prop, isPrivate) {
13606
13558
  if (!isPrivate && !prop.computed) {
@@ -13614,7 +13566,7 @@ class StatementParser extends ExpressionParser {
13614
13566
  const node = this.parseClassAccessorProperty(prop);
13615
13567
  classBody.body.push(node);
13616
13568
  if (isPrivate) {
13617
- this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), CLASS_ELEMENT_OTHER, node.key.loc.start);
13569
+ this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), 0, node.key.loc.start);
13618
13570
  }
13619
13571
  }
13620
13572
  pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) {
@@ -13623,7 +13575,7 @@ class StatementParser extends ExpressionParser {
13623
13575
  pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
13624
13576
  const node = this.parseMethod(method, isGenerator, isAsync, false, false, "ClassPrivateMethod", true);
13625
13577
  classBody.body.push(node);
13626
- const kind = node.kind === "get" ? node.static ? CLASS_ELEMENT_STATIC_GETTER : CLASS_ELEMENT_INSTANCE_GETTER : node.kind === "set" ? node.static ? CLASS_ELEMENT_STATIC_SETTER : CLASS_ELEMENT_INSTANCE_SETTER : CLASS_ELEMENT_OTHER;
13578
+ const kind = node.kind === "get" ? node.static ? 6 : 2 : node.kind === "set" ? node.static ? 5 : 1 : 0;
13627
13579
  this.declareClassPrivateMethodInScope(node, kind);
13628
13580
  }
13629
13581
  declareClassPrivateMethodInScope(node, kind) {
@@ -13646,7 +13598,7 @@ class StatementParser extends ExpressionParser {
13646
13598
  return this.finishNode(node, "ClassAccessorProperty");
13647
13599
  }
13648
13600
  parseInitializer(node) {
13649
- this.scope.enter(SCOPE_CLASS | SCOPE_SUPER);
13601
+ this.scope.enter(64 | 16);
13650
13602
  this.expressionScope.enter(newExpressionScope());
13651
13603
  this.prodParam.enter(PARAM);
13652
13604
  node.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null;
@@ -13654,7 +13606,7 @@ class StatementParser extends ExpressionParser {
13654
13606
  this.prodParam.exit();
13655
13607
  this.scope.exit();
13656
13608
  }
13657
- parseClassId(node, isStatement, optionalId, bindingType = BIND_CLASS) {
13609
+ parseClassId(node, isStatement, optionalId, bindingType = 8331) {
13658
13610
  if (tokenIsIdentifier(this.state.type)) {
13659
13611
  node.id = this.parseIdentifier();
13660
13612
  if (isStatement) {
@@ -13893,6 +13845,7 @@ class StatementParser extends ExpressionParser {
13893
13845
  }
13894
13846
  checkExport(node, checkNames, isDefault, isFrom) {
13895
13847
  if (checkNames) {
13848
+ var _node$specifiers;
13896
13849
  if (isDefault) {
13897
13850
  this.checkDuplicateExports(node, "default");
13898
13851
  if (this.hasPlugin("exportDefaultFrom")) {
@@ -13904,7 +13857,7 @@ class StatementParser extends ExpressionParser {
13904
13857
  });
13905
13858
  }
13906
13859
  }
13907
- } else if (node.specifiers && node.specifiers.length) {
13860
+ } else if ((_node$specifiers = node.specifiers) != null && _node$specifiers.length) {
13908
13861
  for (const specifier of node.specifiers) {
13909
13862
  const {
13910
13863
  exported
@@ -14125,8 +14078,8 @@ class StatementParser extends ExpressionParser {
14125
14078
  return this.parseImportSourceAndAttributes(node);
14126
14079
  }
14127
14080
  parseImportSourceAndAttributes(node) {
14128
- var _node$specifiers;
14129
- (_node$specifiers = node.specifiers) != null ? _node$specifiers : node.specifiers = [];
14081
+ var _node$specifiers2;
14082
+ (_node$specifiers2 = node.specifiers) != null ? _node$specifiers2 : node.specifiers = [];
14130
14083
  node.source = this.parseImportSource();
14131
14084
  this.maybeParseImportAttributes(node);
14132
14085
  this.checkImportReflection(node);
@@ -14142,7 +14095,7 @@ class StatementParser extends ExpressionParser {
14142
14095
  specifier.local = this.parseIdentifier();
14143
14096
  node.specifiers.push(this.finishImportSpecifier(specifier, type));
14144
14097
  }
14145
- finishImportSpecifier(specifier, type, bindingType = BIND_LEXICAL) {
14098
+ finishImportSpecifier(specifier, type, bindingType = 8201) {
14146
14099
  this.checkLVal(specifier.local, {
14147
14100
  in: {
14148
14101
  type