@galadrim/galadmin 0.1.38 → 0.1.40

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 (486) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +1 -1
  3. package/src/front/build/asset-manifest.json +3 -3
  4. package/src/front/build/index.html +1 -1
  5. package/src/front/build/static/js/{main.4ce5340d.chunk.js → main.8a63b422.chunk.js} +2 -2
  6. package/src/front/build/static/js/main.8a63b422.chunk.js.map +1 -0
  7. package/src/front/node_modules/.cache/.eslintcache +1 -1
  8. package/src/front/node_modules/.cache/babel-loader/0046fa6def7297665aceff65675276fb.json +1 -0
  9. package/src/front/node_modules/.cache/babel-loader/6b6404ad16b4fb247c0dfe43c03f4a02.json +1 -0
  10. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/ef/81/2c9ecc926af52757cb3670536bc07219d1ccfba4d898a451352553fa6634b48d69ec580dd7c756e5fbcdc72e870664ef6bd7dc1af98e94d9eb182ba93be9 +1 -0
  11. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/{c2/e5/5451dd89bb0fd48f988bf27c7ee614c66eb91f7085c5b5c8cb33048d0c32 → 31/fe/6640db1983b9834e63d1a760fa17521e8cf616b567ef7114a0676aa6971a} +1 -1
  12. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/6c/19/fe86ba5d7c4062f185480ad22dd3b9fae9b30149827224339f9a633a9a94 +1 -1
  13. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/87/08/421190bfe6e50816e059da6c33526c9943732ef856ebd2752d0cbfb4a852 +1 -1
  14. package/src/front/node_modules/.package-lock.json +72 -72
  15. package/src/front/node_modules/@babel/code-frame/lib/index.js +5 -4
  16. package/src/front/node_modules/@babel/code-frame/lib/index.js.map +1 -1
  17. package/src/front/node_modules/@babel/code-frame/package.json +3 -2
  18. package/src/front/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -1
  19. package/src/front/node_modules/@babel/core/lib/config/caching.js +2 -2
  20. package/src/front/node_modules/@babel/core/lib/config/caching.js.map +1 -1
  21. package/src/front/node_modules/@babel/core/lib/config/config-chain.js +13 -13
  22. package/src/front/node_modules/@babel/core/lib/config/config-chain.js.map +1 -1
  23. package/src/front/node_modules/@babel/core/lib/config/config-descriptors.js +6 -6
  24. package/src/front/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -1
  25. package/src/front/node_modules/@babel/core/lib/config/files/configuration.js +44 -41
  26. package/src/front/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -1
  27. package/src/front/node_modules/@babel/core/lib/config/files/import-meta-resolve.js +1 -1
  28. package/src/front/node_modules/@babel/core/lib/config/files/import-meta-resolve.js.map +1 -1
  29. package/src/front/node_modules/@babel/core/lib/config/files/index-browser.js.map +1 -1
  30. package/src/front/node_modules/@babel/core/lib/config/files/index.js +3 -3
  31. package/src/front/node_modules/@babel/core/lib/config/files/index.js.map +1 -1
  32. package/src/front/node_modules/@babel/core/lib/config/files/module-types.js +27 -8
  33. package/src/front/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  34. package/src/front/node_modules/@babel/core/lib/config/files/package.js +2 -2
  35. package/src/front/node_modules/@babel/core/lib/config/files/package.js.map +1 -1
  36. package/src/front/node_modules/@babel/core/lib/config/files/plugins.js +3 -3
  37. package/src/front/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -1
  38. package/src/front/node_modules/@babel/core/lib/config/files/types.js.map +1 -1
  39. package/src/front/node_modules/@babel/core/lib/config/files/utils.js +2 -2
  40. package/src/front/node_modules/@babel/core/lib/config/files/utils.js.map +1 -1
  41. package/src/front/node_modules/@babel/core/lib/config/full.js +13 -13
  42. package/src/front/node_modules/@babel/core/lib/config/full.js.map +1 -1
  43. package/src/front/node_modules/@babel/core/lib/config/helpers/config-api.js +6 -6
  44. package/src/front/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -1
  45. package/src/front/node_modules/@babel/core/lib/config/index.js +60 -40
  46. package/src/front/node_modules/@babel/core/lib/config/index.js.map +1 -1
  47. package/src/front/node_modules/@babel/core/lib/config/item.js +1 -1
  48. package/src/front/node_modules/@babel/core/lib/config/item.js.map +1 -1
  49. package/src/front/node_modules/@babel/core/lib/config/partial.js +15 -23
  50. package/src/front/node_modules/@babel/core/lib/config/partial.js.map +1 -1
  51. package/src/front/node_modules/@babel/core/lib/config/plugin.js +1 -1
  52. package/src/front/node_modules/@babel/core/lib/config/plugin.js.map +1 -1
  53. package/src/front/node_modules/@babel/core/lib/config/printer.js.map +1 -1
  54. package/src/front/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +1 -1
  55. package/src/front/node_modules/@babel/core/lib/config/resolve-targets.js.map +1 -1
  56. package/src/front/node_modules/@babel/core/lib/config/util.js.map +1 -1
  57. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js +1 -1
  58. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -1
  59. package/src/front/node_modules/@babel/core/lib/config/validation/options.js +3 -3
  60. package/src/front/node_modules/@babel/core/lib/config/validation/options.js.map +1 -1
  61. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js +1 -1
  62. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -1
  63. package/src/front/node_modules/@babel/core/lib/errors/config-error.js +1 -1
  64. package/src/front/node_modules/@babel/core/lib/errors/config-error.js.map +1 -1
  65. package/src/front/node_modules/@babel/core/lib/gensync-utils/functional.js +1 -1
  66. package/src/front/node_modules/@babel/core/lib/gensync-utils/functional.js.map +1 -1
  67. package/src/front/node_modules/@babel/core/lib/index.js +23 -23
  68. package/src/front/node_modules/@babel/core/lib/index.js.map +1 -1
  69. package/src/front/node_modules/@babel/core/lib/parse.js +6 -6
  70. package/src/front/node_modules/@babel/core/lib/parse.js.map +1 -1
  71. package/src/front/node_modules/@babel/core/lib/parser/index.js +1 -1
  72. package/src/front/node_modules/@babel/core/lib/parser/index.js.map +1 -1
  73. package/src/front/node_modules/@babel/core/lib/tools/build-external-helpers.js +1 -1
  74. package/src/front/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -1
  75. package/src/front/node_modules/@babel/core/lib/transform-ast.js +5 -5
  76. package/src/front/node_modules/@babel/core/lib/transform-ast.js.map +1 -1
  77. package/src/front/node_modules/@babel/core/lib/transform-file.js +5 -5
  78. package/src/front/node_modules/@babel/core/lib/transform-file.js.map +1 -1
  79. package/src/front/node_modules/@babel/core/lib/transform.js +5 -5
  80. package/src/front/node_modules/@babel/core/lib/transform.js.map +1 -1
  81. package/src/front/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +1 -1
  82. package/src/front/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js.map +1 -1
  83. package/src/front/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  84. package/src/front/node_modules/@babel/core/lib/transformation/file/generate.js +1 -1
  85. package/src/front/node_modules/@babel/core/lib/transformation/file/generate.js.map +1 -1
  86. package/src/front/node_modules/@babel/core/lib/transformation/index.js +6 -6
  87. package/src/front/node_modules/@babel/core/lib/transformation/index.js.map +1 -1
  88. package/src/front/node_modules/@babel/core/lib/transformation/normalize-file.js +4 -4
  89. package/src/front/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -1
  90. package/src/front/node_modules/@babel/core/lib/transformation/normalize-opts.js.map +1 -1
  91. package/src/front/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +1 -1
  92. package/src/front/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -1
  93. package/src/front/node_modules/@babel/core/package.json +15 -15
  94. package/src/front/node_modules/@babel/core/src/config/files/index-browser.ts +2 -2
  95. package/src/front/node_modules/@babel/core/src/config/files/index.ts +4 -4
  96. package/src/front/node_modules/@babel/core/src/config/resolve-targets-browser.ts +1 -1
  97. package/src/front/node_modules/@babel/core/src/config/resolve-targets.ts +1 -1
  98. package/src/front/node_modules/@babel/core/src/transform-file.ts +5 -5
  99. package/src/front/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  100. package/src/front/node_modules/@babel/generator/lib/generators/base.js.map +1 -1
  101. package/src/front/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  102. package/src/front/node_modules/@babel/generator/lib/generators/expressions.js +1 -1
  103. package/src/front/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  104. package/src/front/node_modules/@babel/generator/lib/generators/flow.js +2 -2
  105. package/src/front/node_modules/@babel/generator/lib/generators/flow.js.map +1 -1
  106. package/src/front/node_modules/@babel/generator/lib/generators/index.js +11 -11
  107. package/src/front/node_modules/@babel/generator/lib/generators/index.js.map +1 -1
  108. package/src/front/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
  109. package/src/front/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  110. package/src/front/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
  111. package/src/front/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
  112. package/src/front/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  113. package/src/front/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  114. package/src/front/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  115. package/src/front/node_modules/@babel/generator/lib/index.js +2 -2
  116. package/src/front/node_modules/@babel/generator/lib/index.js.map +1 -1
  117. package/src/front/node_modules/@babel/generator/lib/node/index.js +2 -2
  118. package/src/front/node_modules/@babel/generator/lib/node/index.js.map +1 -1
  119. package/src/front/node_modules/@babel/generator/lib/node/whitespace.js.map +1 -1
  120. package/src/front/node_modules/@babel/generator/lib/printer.js +3 -3
  121. package/src/front/node_modules/@babel/generator/lib/printer.js.map +1 -1
  122. package/src/front/node_modules/@babel/generator/package.json +4 -4
  123. package/src/front/node_modules/@babel/helper-compilation-targets/lib/debug.js +2 -2
  124. package/src/front/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
  125. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +1 -1
  126. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
  127. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js +6 -6
  128. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  129. package/src/front/node_modules/@babel/helper-compilation-targets/lib/pretty.js +1 -1
  130. package/src/front/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -1
  131. package/src/front/node_modules/@babel/helper-compilation-targets/lib/utils.js +1 -1
  132. package/src/front/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -1
  133. package/src/front/node_modules/@babel/helper-compilation-targets/package.json +2 -2
  134. package/src/front/node_modules/@babel/helper-module-imports/README.md +1 -1
  135. package/src/front/node_modules/@babel/helper-module-imports/lib/import-injector.js +2 -2
  136. package/src/front/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
  137. package/src/front/node_modules/@babel/helper-module-imports/lib/index.js +2 -2
  138. package/src/front/node_modules/@babel/helper-module-imports/lib/index.js.map +1 -1
  139. package/src/front/node_modules/@babel/helper-module-imports/package.json +4 -4
  140. package/src/front/node_modules/@babel/helper-module-transforms/lib/index.js +5 -5
  141. package/src/front/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -1
  142. package/src/front/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -1
  143. package/src/front/node_modules/@babel/helper-module-transforms/package.json +5 -5
  144. package/src/front/node_modules/@babel/helper-validator-identifier/README.md +1 -1
  145. package/src/front/node_modules/@babel/helper-validator-identifier/lib/index.js +2 -2
  146. package/src/front/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -1
  147. package/src/front/node_modules/@babel/helper-validator-identifier/package.json +1 -1
  148. package/src/front/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +8 -6
  149. package/src/front/node_modules/@babel/helper-validator-option/README.md +1 -1
  150. package/src/front/node_modules/@babel/helper-validator-option/lib/index.js +2 -2
  151. package/src/front/node_modules/@babel/helper-validator-option/lib/index.js.map +1 -1
  152. package/src/front/node_modules/@babel/helper-validator-option/lib/validator.js +1 -1
  153. package/src/front/node_modules/@babel/helper-validator-option/lib/validator.js.map +1 -1
  154. package/src/front/node_modules/@babel/helper-validator-option/package.json +1 -1
  155. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js +21 -21
  156. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  157. package/src/front/node_modules/@babel/helpers/lib/helpers.js +1 -1
  158. package/src/front/node_modules/@babel/helpers/lib/helpers.js.map +1 -1
  159. package/src/front/node_modules/@babel/helpers/lib/index.js +1 -1
  160. package/src/front/node_modules/@babel/helpers/lib/index.js.map +1 -1
  161. package/src/front/node_modules/@babel/helpers/package.json +7 -7
  162. package/src/front/node_modules/@babel/helpers/scripts/generate-helpers.js +1 -1
  163. package/src/front/node_modules/@babel/highlight/lib/index.js +6 -5
  164. package/src/front/node_modules/@babel/highlight/lib/index.js.map +1 -1
  165. package/src/front/node_modules/@babel/highlight/package.json +1 -1
  166. package/src/front/node_modules/@babel/parser/lib/index.js +52 -57
  167. package/src/front/node_modules/@babel/parser/lib/index.js.map +1 -1
  168. package/src/front/node_modules/@babel/parser/package.json +4 -4
  169. package/src/front/node_modules/@babel/template/README.md +1 -1
  170. package/src/front/node_modules/@babel/template/lib/builder.js +3 -3
  171. package/src/front/node_modules/@babel/template/lib/builder.js.map +1 -1
  172. package/src/front/node_modules/@babel/template/lib/index.js +2 -2
  173. package/src/front/node_modules/@babel/template/lib/index.js.map +1 -1
  174. package/src/front/node_modules/@babel/template/lib/literal.js +3 -3
  175. package/src/front/node_modules/@babel/template/lib/literal.js.map +1 -1
  176. package/src/front/node_modules/@babel/template/lib/parse.js.map +1 -1
  177. package/src/front/node_modules/@babel/template/lib/populate.js.map +1 -1
  178. package/src/front/node_modules/@babel/template/lib/string.js +3 -3
  179. package/src/front/node_modules/@babel/template/lib/string.js.map +1 -1
  180. package/src/front/node_modules/@babel/template/package.json +4 -4
  181. package/src/front/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  182. package/src/front/node_modules/@babel/traverse/lib/context.js +2 -2
  183. package/src/front/node_modules/@babel/traverse/lib/context.js.map +1 -1
  184. package/src/front/node_modules/@babel/traverse/lib/hub.js.map +1 -1
  185. package/src/front/node_modules/@babel/traverse/lib/index.js +8 -8
  186. package/src/front/node_modules/@babel/traverse/lib/index.js.map +1 -1
  187. package/src/front/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -1
  188. package/src/front/node_modules/@babel/traverse/lib/path/comments.js.map +1 -1
  189. package/src/front/node_modules/@babel/traverse/lib/path/context.js +2 -2
  190. package/src/front/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
  191. package/src/front/node_modules/@babel/traverse/lib/path/conversion.js +1 -1
  192. package/src/front/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  193. package/src/front/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  194. package/src/front/node_modules/@babel/traverse/lib/path/family.js +1 -1
  195. package/src/front/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  196. package/src/front/node_modules/@babel/traverse/lib/path/index.js +17 -17
  197. package/src/front/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  198. package/src/front/node_modules/@babel/traverse/lib/path/inference/index.js +1 -1
  199. package/src/front/node_modules/@babel/traverse/lib/path/inference/index.js.map +1 -1
  200. package/src/front/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +1 -1
  201. package/src/front/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +1 -1
  202. package/src/front/node_modules/@babel/traverse/lib/path/inference/inferers.js +2 -2
  203. package/src/front/node_modules/@babel/traverse/lib/path/inference/inferers.js.map +1 -1
  204. package/src/front/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
  205. package/src/front/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  206. package/src/front/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js.map +1 -1
  207. package/src/front/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -1
  208. package/src/front/node_modules/@babel/traverse/lib/path/modification.js +3 -3
  209. package/src/front/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  210. package/src/front/node_modules/@babel/traverse/lib/path/removal.js +3 -3
  211. package/src/front/node_modules/@babel/traverse/lib/path/removal.js.map +1 -1
  212. package/src/front/node_modules/@babel/traverse/lib/path/replacement.js +3 -3
  213. package/src/front/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  214. package/src/front/node_modules/@babel/traverse/lib/scope/binding.js +1 -3
  215. package/src/front/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -1
  216. package/src/front/node_modules/@babel/traverse/lib/scope/index.js +5 -5
  217. package/src/front/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  218. package/src/front/node_modules/@babel/traverse/lib/scope/lib/renamer.js +2 -2
  219. package/src/front/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
  220. package/src/front/node_modules/@babel/traverse/lib/traverse-node.js +1 -1
  221. package/src/front/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -1
  222. package/src/front/node_modules/@babel/traverse/lib/types.js.map +1 -1
  223. package/src/front/node_modules/@babel/traverse/lib/visitors.js +1 -1
  224. package/src/front/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  225. package/src/front/node_modules/@babel/traverse/package.json +6 -6
  226. package/src/front/node_modules/@babel/types/lib/asserts/assertNode.js +1 -1
  227. package/src/front/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -1
  228. package/src/front/node_modules/@babel/types/lib/asserts/generated/index.js +2 -2
  229. package/src/front/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
  230. package/src/front/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  231. package/src/front/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +3 -3
  232. package/src/front/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -1
  233. package/src/front/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +9 -9
  234. package/src/front/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -1
  235. package/src/front/node_modules/@babel/types/lib/builders/generated/index.js +2 -2
  236. package/src/front/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
  237. package/src/front/node_modules/@babel/types/lib/builders/generated/uppercase.js +1 -1
  238. package/src/front/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
  239. package/src/front/node_modules/@babel/types/lib/builders/react/buildChildren.js +5 -5
  240. package/src/front/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -1
  241. package/src/front/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +5 -5
  242. package/src/front/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -1
  243. package/src/front/node_modules/@babel/types/lib/builders/validateNode.js +3 -3
  244. package/src/front/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -1
  245. package/src/front/node_modules/@babel/types/lib/clone/clone.js +1 -1
  246. package/src/front/node_modules/@babel/types/lib/clone/clone.js.map +1 -1
  247. package/src/front/node_modules/@babel/types/lib/clone/cloneDeep.js +1 -1
  248. package/src/front/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -1
  249. package/src/front/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +1 -1
  250. package/src/front/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -1
  251. package/src/front/node_modules/@babel/types/lib/clone/cloneNode.js +6 -6
  252. package/src/front/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -1
  253. package/src/front/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +1 -1
  254. package/src/front/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -1
  255. package/src/front/node_modules/@babel/types/lib/comments/addComment.js +1 -1
  256. package/src/front/node_modules/@babel/types/lib/comments/addComment.js.map +1 -1
  257. package/src/front/node_modules/@babel/types/lib/comments/addComments.js.map +1 -1
  258. package/src/front/node_modules/@babel/types/lib/comments/inheritInnerComments.js +1 -1
  259. package/src/front/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -1
  260. package/src/front/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +1 -1
  261. package/src/front/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -1
  262. package/src/front/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +1 -1
  263. package/src/front/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -1
  264. package/src/front/node_modules/@babel/types/lib/comments/inheritsComments.js +3 -3
  265. package/src/front/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -1
  266. package/src/front/node_modules/@babel/types/lib/comments/removeComments.js +2 -2
  267. package/src/front/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -1
  268. package/src/front/node_modules/@babel/types/lib/constants/generated/index.js +50 -50
  269. package/src/front/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -1
  270. package/src/front/node_modules/@babel/types/lib/converters/ensureBlock.js +1 -1
  271. package/src/front/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -1
  272. package/src/front/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +14 -14
  273. package/src/front/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  274. package/src/front/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +1 -1
  275. package/src/front/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -1
  276. package/src/front/node_modules/@babel/types/lib/converters/toBlock.js +9 -9
  277. package/src/front/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -1
  278. package/src/front/node_modules/@babel/types/lib/converters/toComputedKey.js +3 -3
  279. package/src/front/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -1
  280. package/src/front/node_modules/@babel/types/lib/converters/toExpression.js +6 -6
  281. package/src/front/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -1
  282. package/src/front/node_modules/@babel/types/lib/converters/toIdentifier.js +1 -1
  283. package/src/front/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -1
  284. package/src/front/node_modules/@babel/types/lib/converters/toKeyAlias.js +5 -5
  285. package/src/front/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -1
  286. package/src/front/node_modules/@babel/types/lib/converters/toSequenceExpression.js +1 -1
  287. package/src/front/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  288. package/src/front/node_modules/@babel/types/lib/converters/toStatement.js +7 -7
  289. package/src/front/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -1
  290. package/src/front/node_modules/@babel/types/lib/converters/valueToNode.js +17 -17
  291. package/src/front/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -1
  292. package/src/front/node_modules/@babel/types/lib/definitions/core.js +9 -9
  293. package/src/front/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  294. package/src/front/node_modules/@babel/types/lib/definitions/experimental.js +1 -1
  295. package/src/front/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -1
  296. package/src/front/node_modules/@babel/types/lib/definitions/flow.js +1 -1
  297. package/src/front/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
  298. package/src/front/node_modules/@babel/types/lib/definitions/index.js +9 -9
  299. package/src/front/node_modules/@babel/types/lib/definitions/index.js.map +1 -1
  300. package/src/front/node_modules/@babel/types/lib/definitions/jsx.js +1 -1
  301. package/src/front/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
  302. package/src/front/node_modules/@babel/types/lib/definitions/misc.js +2 -2
  303. package/src/front/node_modules/@babel/types/lib/definitions/misc.js.map +1 -1
  304. package/src/front/node_modules/@babel/types/lib/definitions/placeholders.js +1 -1
  305. package/src/front/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -1
  306. package/src/front/node_modules/@babel/types/lib/definitions/typescript.js +4 -4
  307. package/src/front/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
  308. package/src/front/node_modules/@babel/types/lib/definitions/utils.js +2 -2
  309. package/src/front/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
  310. package/src/front/node_modules/@babel/types/lib/index-legacy.d.ts +10 -10
  311. package/src/front/node_modules/@babel/types/lib/index.d.ts +12 -12
  312. package/src/front/node_modules/@babel/types/lib/index.js +84 -84
  313. package/src/front/node_modules/@babel/types/lib/index.js.flow +10 -10
  314. package/src/front/node_modules/@babel/types/lib/index.js.map +1 -1
  315. package/src/front/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +2 -2
  316. package/src/front/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -1
  317. package/src/front/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +6 -6
  318. package/src/front/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -1
  319. package/src/front/node_modules/@babel/types/lib/modifications/inherits.js +4 -4
  320. package/src/front/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -1
  321. package/src/front/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +4 -4
  322. package/src/front/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -1
  323. package/src/front/node_modules/@babel/types/lib/modifications/removeProperties.js +2 -2
  324. package/src/front/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -1
  325. package/src/front/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +2 -2
  326. package/src/front/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -1
  327. package/src/front/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +6 -6
  328. package/src/front/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
  329. package/src/front/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +6 -6
  330. package/src/front/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  331. package/src/front/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +1 -1
  332. package/src/front/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -1
  333. package/src/front/node_modules/@babel/types/lib/traverse/traverse.js +2 -2
  334. package/src/front/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -1
  335. package/src/front/node_modules/@babel/types/lib/traverse/traverseFast.js +2 -2
  336. package/src/front/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -1
  337. package/src/front/node_modules/@babel/types/lib/utils/inherit.js.map +1 -1
  338. package/src/front/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +3 -3
  339. package/src/front/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -1
  340. package/src/front/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +1 -1
  341. package/src/front/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -1
  342. package/src/front/node_modules/@babel/types/lib/validators/generated/index.js +2 -2
  343. package/src/front/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
  344. package/src/front/node_modules/@babel/types/lib/validators/is.js +5 -5
  345. package/src/front/node_modules/@babel/types/lib/validators/is.js.map +1 -1
  346. package/src/front/node_modules/@babel/types/lib/validators/isBinding.js +1 -1
  347. package/src/front/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -1
  348. package/src/front/node_modules/@babel/types/lib/validators/isBlockScoped.js +3 -3
  349. package/src/front/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -1
  350. package/src/front/node_modules/@babel/types/lib/validators/isImmutable.js +3 -3
  351. package/src/front/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -1
  352. package/src/front/node_modules/@babel/types/lib/validators/isLet.js +3 -3
  353. package/src/front/node_modules/@babel/types/lib/validators/isLet.js.map +1 -1
  354. package/src/front/node_modules/@babel/types/lib/validators/isNode.js +2 -2
  355. package/src/front/node_modules/@babel/types/lib/validators/isNode.js.map +1 -1
  356. package/src/front/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +3 -3
  357. package/src/front/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -1
  358. package/src/front/node_modules/@babel/types/lib/validators/isPlaceholderType.js +2 -2
  359. package/src/front/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -1
  360. package/src/front/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -1
  361. package/src/front/node_modules/@babel/types/lib/validators/isScope.js +4 -4
  362. package/src/front/node_modules/@babel/types/lib/validators/isScope.js.map +1 -1
  363. package/src/front/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +2 -2
  364. package/src/front/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -1
  365. package/src/front/node_modules/@babel/types/lib/validators/isType.js +3 -3
  366. package/src/front/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
  367. package/src/front/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +1 -1
  368. package/src/front/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -1
  369. package/src/front/node_modules/@babel/types/lib/validators/isVar.js +4 -4
  370. package/src/front/node_modules/@babel/types/lib/validators/isVar.js.map +1 -1
  371. package/src/front/node_modules/@babel/types/lib/validators/matchesPattern.js +6 -6
  372. package/src/front/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -1
  373. package/src/front/node_modules/@babel/types/lib/validators/react/isReactComponent.js +1 -1
  374. package/src/front/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -1
  375. package/src/front/node_modules/@babel/types/lib/validators/validate.js +3 -3
  376. package/src/front/node_modules/@babel/types/lib/validators/validate.js.map +1 -1
  377. package/src/front/node_modules/@babel/types/package.json +4 -4
  378. package/src/front/node_modules/typescript/lib/lib.decorators.d.ts +17 -0
  379. package/src/front/node_modules/typescript/lib/lib.dom.d.ts +313 -90
  380. package/src/front/node_modules/typescript/lib/lib.es2015.collection.d.ts +9 -9
  381. package/src/front/node_modules/typescript/lib/lib.es2015.core.d.ts +2 -2
  382. package/src/front/node_modules/typescript/lib/lib.es2015.iterable.d.ts +4 -4
  383. package/src/front/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +2 -2
  384. package/src/front/node_modules/typescript/lib/lib.es2017.d.ts +1 -0
  385. package/src/front/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  386. package/src/front/node_modules/typescript/lib/lib.es2020.bigint.d.ts +4 -4
  387. package/src/front/node_modules/typescript/lib/lib.es2021.weakref.d.ts +19 -16
  388. package/src/front/node_modules/typescript/lib/lib.es2023.array.d.ts +618 -36
  389. package/src/front/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  390. package/src/front/node_modules/typescript/lib/lib.es2023.d.ts +1 -0
  391. package/src/front/node_modules/typescript/lib/lib.es5.d.ts +27 -18
  392. package/src/front/node_modules/typescript/lib/lib.esnext.d.ts +2 -0
  393. package/src/front/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  394. package/src/front/node_modules/typescript/lib/lib.esnext.disposable.d.ts +185 -0
  395. package/src/front/node_modules/typescript/lib/lib.webworker.d.ts +172 -33
  396. package/src/front/node_modules/typescript/lib/tsc.js +8311 -6557
  397. package/src/front/node_modules/typescript/lib/tsserver.js +11796 -9281
  398. package/src/front/node_modules/typescript/lib/tsserverlibrary.d.ts +287 -249
  399. package/src/front/node_modules/typescript/lib/tsserverlibrary.js +11801 -9288
  400. package/src/front/node_modules/typescript/lib/typescript.d.ts +274 -248
  401. package/src/front/node_modules/typescript/lib/typescript.js +11678 -9231
  402. package/src/front/node_modules/typescript/lib/typingsInstaller.js +1852 -1645
  403. package/src/front/node_modules/typescript/package.json +7 -7
  404. package/src/front/package-lock.json +144 -144
  405. package/src/front/src/components/inputs/FileInput.js +1 -0
  406. package/src/front/src/pages/Records.js +1 -0
  407. package/src/front/build/static/js/main.4ce5340d.chunk.js.map +0 -1
  408. package/src/front/node_modules/.cache/babel-loader/1dbf9b1b83cdf813e9dc5f561b9b97ac.json +0 -1
  409. package/src/front/node_modules/.cache/babel-loader/d88f947a76ac5f78797e69c737b6267e.json +0 -1
  410. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/c3/3e/f2b5b90044b7bdbb4cff67b2c09e24bb506274240d920de24bb4b678f3f00b80f7e9f0900cd1de883484031488d8603e97ea6b4e39a9c6ab5160353d3be9 +0 -1
  411. package/src/front/node_modules/@babel/parser/lib/options.js +0 -44
  412. package/src/front/node_modules/@babel/parser/lib/options.js.map +0 -1
  413. package/src/front/node_modules/@babel/parser/lib/parse-error/credentials.js +0 -28
  414. package/src/front/node_modules/@babel/parser/lib/parse-error/credentials.js.map +0 -1
  415. package/src/front/node_modules/@babel/parser/lib/parse-error/module-errors.js +0 -20
  416. package/src/front/node_modules/@babel/parser/lib/parse-error/module-errors.js.map +0 -1
  417. package/src/front/node_modules/@babel/parser/lib/parse-error/pipeline-operator-errors.js +0 -32
  418. package/src/front/node_modules/@babel/parser/lib/parse-error/pipeline-operator-errors.js.map +0 -1
  419. package/src/front/node_modules/@babel/parser/lib/parse-error/standard-errors.js +0 -220
  420. package/src/front/node_modules/@babel/parser/lib/parse-error/standard-errors.js.map +0 -1
  421. package/src/front/node_modules/@babel/parser/lib/parse-error/strict-mode-errors.js +0 -22
  422. package/src/front/node_modules/@babel/parser/lib/parse-error/strict-mode-errors.js.map +0 -1
  423. package/src/front/node_modules/@babel/parser/lib/parse-error/to-node-description.js +0 -39
  424. package/src/front/node_modules/@babel/parser/lib/parse-error/to-node-description.js.map +0 -1
  425. package/src/front/node_modules/@babel/parser/lib/parse-error.js +0 -106
  426. package/src/front/node_modules/@babel/parser/lib/parse-error.js.map +0 -1
  427. package/src/front/node_modules/@babel/parser/lib/parser/base.js +0 -36
  428. package/src/front/node_modules/@babel/parser/lib/parser/base.js.map +0 -1
  429. package/src/front/node_modules/@babel/parser/lib/parser/comments.js +0 -190
  430. package/src/front/node_modules/@babel/parser/lib/parser/comments.js.map +0 -1
  431. package/src/front/node_modules/@babel/parser/lib/parser/expression.js +0 -1824
  432. package/src/front/node_modules/@babel/parser/lib/parser/expression.js.map +0 -1
  433. package/src/front/node_modules/@babel/parser/lib/parser/index.js +0 -43
  434. package/src/front/node_modules/@babel/parser/lib/parser/index.js.map +0 -1
  435. package/src/front/node_modules/@babel/parser/lib/parser/lval.js +0 -421
  436. package/src/front/node_modules/@babel/parser/lib/parser/lval.js.map +0 -1
  437. package/src/front/node_modules/@babel/parser/lib/parser/node.js +0 -127
  438. package/src/front/node_modules/@babel/parser/lib/parser/node.js.map +0 -1
  439. package/src/front/node_modules/@babel/parser/lib/parser/statement.js +0 -2033
  440. package/src/front/node_modules/@babel/parser/lib/parser/statement.js.map +0 -1
  441. package/src/front/node_modules/@babel/parser/lib/parser/util.js +0 -238
  442. package/src/front/node_modules/@babel/parser/lib/parser/util.js.map +0 -1
  443. package/src/front/node_modules/@babel/parser/lib/plugin-utils.js +0 -136
  444. package/src/front/node_modules/@babel/parser/lib/plugin-utils.js.map +0 -1
  445. package/src/front/node_modules/@babel/parser/lib/plugins/estree.js +0 -340
  446. package/src/front/node_modules/@babel/parser/lib/plugins/estree.js.map +0 -1
  447. package/src/front/node_modules/@babel/parser/lib/plugins/flow/index.js +0 -2474
  448. package/src/front/node_modules/@babel/parser/lib/plugins/flow/index.js.map +0 -1
  449. package/src/front/node_modules/@babel/parser/lib/plugins/flow/scope.js +0 -44
  450. package/src/front/node_modules/@babel/parser/lib/plugins/flow/scope.js.map +0 -1
  451. package/src/front/node_modules/@babel/parser/lib/plugins/jsx/index.js +0 -444
  452. package/src/front/node_modules/@babel/parser/lib/plugins/jsx/index.js.map +0 -1
  453. package/src/front/node_modules/@babel/parser/lib/plugins/jsx/xhtml.js +0 -266
  454. package/src/front/node_modules/@babel/parser/lib/plugins/jsx/xhtml.js.map +0 -1
  455. package/src/front/node_modules/@babel/parser/lib/plugins/placeholders.js +0 -198
  456. package/src/front/node_modules/@babel/parser/lib/plugins/placeholders.js.map +0 -1
  457. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/index.js +0 -2656
  458. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/index.js.map +0 -1
  459. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/scope.js +0 -121
  460. package/src/front/node_modules/@babel/parser/lib/plugins/typescript/scope.js.map +0 -1
  461. package/src/front/node_modules/@babel/parser/lib/plugins/v8intrinsic.js +0 -31
  462. package/src/front/node_modules/@babel/parser/lib/plugins/v8intrinsic.js.map +0 -1
  463. package/src/front/node_modules/@babel/parser/lib/tokenizer/context.js +0 -27
  464. package/src/front/node_modules/@babel/parser/lib/tokenizer/context.js.map +0 -1
  465. package/src/front/node_modules/@babel/parser/lib/tokenizer/index.js +0 -1119
  466. package/src/front/node_modules/@babel/parser/lib/tokenizer/index.js.map +0 -1
  467. package/src/front/node_modules/@babel/parser/lib/tokenizer/state.js +0 -82
  468. package/src/front/node_modules/@babel/parser/lib/tokenizer/state.js.map +0 -1
  469. package/src/front/node_modules/@babel/parser/lib/tokenizer/types.js +0 -586
  470. package/src/front/node_modules/@babel/parser/lib/tokenizer/types.js.map +0 -1
  471. package/src/front/node_modules/@babel/parser/lib/util/class-scope.js +0 -92
  472. package/src/front/node_modules/@babel/parser/lib/util/class-scope.js.map +0 -1
  473. package/src/front/node_modules/@babel/parser/lib/util/expression-scope.js +0 -142
  474. package/src/front/node_modules/@babel/parser/lib/util/expression-scope.js.map +0 -1
  475. package/src/front/node_modules/@babel/parser/lib/util/identifier.js +0 -62
  476. package/src/front/node_modules/@babel/parser/lib/util/identifier.js.map +0 -1
  477. package/src/front/node_modules/@babel/parser/lib/util/location.js +0 -39
  478. package/src/front/node_modules/@babel/parser/lib/util/location.js.map +0 -1
  479. package/src/front/node_modules/@babel/parser/lib/util/production-parameter.js +0 -49
  480. package/src/front/node_modules/@babel/parser/lib/util/production-parameter.js.map +0 -1
  481. package/src/front/node_modules/@babel/parser/lib/util/scope.js +0 -161
  482. package/src/front/node_modules/@babel/parser/lib/util/scope.js.map +0 -1
  483. package/src/front/node_modules/@babel/parser/lib/util/scopeflags.js +0 -67
  484. package/src/front/node_modules/@babel/parser/lib/util/scopeflags.js.map +0 -1
  485. package/src/front/node_modules/@babel/parser/lib/util/whitespace.js +0 -59
  486. package/src/front/node_modules/@babel/parser/lib/util/whitespace.js.map +0 -1
@@ -1,1119 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.Token = void 0;
7
- var _location = require("../util/location");
8
- var _comments = require("../parser/comments");
9
- var _identifier = require("../util/identifier");
10
- var _types = require("./types");
11
- var _parseError = require("../parse-error");
12
- var _whitespace = require("../util/whitespace");
13
- var _state = require("./state");
14
- var _helperStringParser = require("@babel/helper-string-parser");
15
- const _excluded = ["at"],
16
- _excluded2 = ["at"];
17
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
- function buildPosition(pos, lineStart, curLine) {
19
- return new _location.Position(curLine, pos - lineStart, pos);
20
- }
21
- const VALID_REGEX_FLAGS = new Set([103, 109, 115, 105, 121, 117, 100, 118]);
22
- class Token {
23
- constructor(state) {
24
- this.type = state.type;
25
- this.value = state.value;
26
- this.start = state.start;
27
- this.end = state.end;
28
- this.loc = new _location.SourceLocation(state.startLoc, state.endLoc);
29
- }
30
- }
31
- exports.Token = Token;
32
- class Tokenizer extends _comments.default {
33
- constructor(options, input) {
34
- super();
35
- this.isLookahead = void 0;
36
- this.tokens = [];
37
- this.errorHandlers_readInt = {
38
- invalidDigit: (pos, lineStart, curLine, radix) => {
39
- if (!this.options.errorRecovery) return false;
40
- this.raise(_parseError.Errors.InvalidDigit, {
41
- at: buildPosition(pos, lineStart, curLine),
42
- radix
43
- });
44
- return true;
45
- },
46
- numericSeparatorInEscapeSequence: this.errorBuilder(_parseError.Errors.NumericSeparatorInEscapeSequence),
47
- unexpectedNumericSeparator: this.errorBuilder(_parseError.Errors.UnexpectedNumericSeparator)
48
- };
49
- this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, {
50
- invalidEscapeSequence: this.errorBuilder(_parseError.Errors.InvalidEscapeSequence),
51
- invalidCodePoint: this.errorBuilder(_parseError.Errors.InvalidCodePoint)
52
- });
53
- this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, {
54
- strictNumericEscape: (pos, lineStart, curLine) => {
55
- this.recordStrictModeErrors(_parseError.Errors.StrictNumericEscape, {
56
- at: buildPosition(pos, lineStart, curLine)
57
- });
58
- },
59
- unterminated: (pos, lineStart, curLine) => {
60
- throw this.raise(_parseError.Errors.UnterminatedString, {
61
- at: buildPosition(pos - 1, lineStart, curLine)
62
- });
63
- }
64
- });
65
- this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, {
66
- strictNumericEscape: this.errorBuilder(_parseError.Errors.StrictNumericEscape),
67
- unterminated: (pos, lineStart, curLine) => {
68
- throw this.raise(_parseError.Errors.UnterminatedTemplate, {
69
- at: buildPosition(pos, lineStart, curLine)
70
- });
71
- }
72
- });
73
- this.state = new _state.default();
74
- this.state.init(options);
75
- this.input = input;
76
- this.length = input.length;
77
- this.isLookahead = false;
78
- }
79
- pushToken(token) {
80
- this.tokens.length = this.state.tokensLength;
81
- this.tokens.push(token);
82
- ++this.state.tokensLength;
83
- }
84
- next() {
85
- this.checkKeywordEscapes();
86
- if (this.options.tokens) {
87
- this.pushToken(new Token(this.state));
88
- }
89
- this.state.lastTokStart = this.state.start;
90
- this.state.lastTokEndLoc = this.state.endLoc;
91
- this.state.lastTokStartLoc = this.state.startLoc;
92
- this.nextToken();
93
- }
94
- eat(type) {
95
- if (this.match(type)) {
96
- this.next();
97
- return true;
98
- } else {
99
- return false;
100
- }
101
- }
102
- match(type) {
103
- return this.state.type === type;
104
- }
105
- createLookaheadState(state) {
106
- return {
107
- pos: state.pos,
108
- value: null,
109
- type: state.type,
110
- start: state.start,
111
- end: state.end,
112
- context: [this.curContext()],
113
- inType: state.inType,
114
- startLoc: state.startLoc,
115
- lastTokEndLoc: state.lastTokEndLoc,
116
- curLine: state.curLine,
117
- lineStart: state.lineStart,
118
- curPosition: state.curPosition
119
- };
120
- }
121
- lookahead() {
122
- const old = this.state;
123
- this.state = this.createLookaheadState(old);
124
- this.isLookahead = true;
125
- this.nextToken();
126
- this.isLookahead = false;
127
- const curr = this.state;
128
- this.state = old;
129
- return curr;
130
- }
131
- nextTokenStart() {
132
- return this.nextTokenStartSince(this.state.pos);
133
- }
134
- nextTokenStartSince(pos) {
135
- _whitespace.skipWhiteSpace.lastIndex = pos;
136
- return _whitespace.skipWhiteSpace.test(this.input) ? _whitespace.skipWhiteSpace.lastIndex : pos;
137
- }
138
- lookaheadCharCode() {
139
- return this.input.charCodeAt(this.nextTokenStart());
140
- }
141
- nextTokenInLineStart() {
142
- return this.nextTokenInLineStartSince(this.state.pos);
143
- }
144
- nextTokenInLineStartSince(pos) {
145
- _whitespace.skipWhiteSpaceInLine.lastIndex = pos;
146
- return _whitespace.skipWhiteSpaceInLine.test(this.input) ? _whitespace.skipWhiteSpaceInLine.lastIndex : pos;
147
- }
148
- lookaheadInLineCharCode() {
149
- return this.input.charCodeAt(this.nextTokenInLineStart());
150
- }
151
- codePointAtPos(pos) {
152
- let cp = this.input.charCodeAt(pos);
153
- if ((cp & 0xfc00) === 0xd800 && ++pos < this.input.length) {
154
- const trail = this.input.charCodeAt(pos);
155
- if ((trail & 0xfc00) === 0xdc00) {
156
- cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff);
157
- }
158
- }
159
- return cp;
160
- }
161
- setStrict(strict) {
162
- this.state.strict = strict;
163
- if (strict) {
164
- this.state.strictErrors.forEach(([toParseError, at]) => this.raise(toParseError, {
165
- at
166
- }));
167
- this.state.strictErrors.clear();
168
- }
169
- }
170
- curContext() {
171
- return this.state.context[this.state.context.length - 1];
172
- }
173
- nextToken() {
174
- this.skipSpace();
175
- this.state.start = this.state.pos;
176
- if (!this.isLookahead) this.state.startLoc = this.state.curPosition();
177
- if (this.state.pos >= this.length) {
178
- this.finishToken(137);
179
- return;
180
- }
181
- this.getTokenFromCode(this.codePointAtPos(this.state.pos));
182
- }
183
- skipBlockComment(commentEnd) {
184
- let startLoc;
185
- if (!this.isLookahead) startLoc = this.state.curPosition();
186
- const start = this.state.pos;
187
- const end = this.input.indexOf(commentEnd, start + 2);
188
- if (end === -1) {
189
- throw this.raise(_parseError.Errors.UnterminatedComment, {
190
- at: this.state.curPosition()
191
- });
192
- }
193
- this.state.pos = end + commentEnd.length;
194
- _whitespace.lineBreakG.lastIndex = start + 2;
195
- while (_whitespace.lineBreakG.test(this.input) && _whitespace.lineBreakG.lastIndex <= end) {
196
- ++this.state.curLine;
197
- this.state.lineStart = _whitespace.lineBreakG.lastIndex;
198
- }
199
- if (this.isLookahead) return;
200
- const comment = {
201
- type: "CommentBlock",
202
- value: this.input.slice(start + 2, end),
203
- start,
204
- end: end + commentEnd.length,
205
- loc: new _location.SourceLocation(startLoc, this.state.curPosition())
206
- };
207
- if (this.options.tokens) this.pushToken(comment);
208
- return comment;
209
- }
210
- skipLineComment(startSkip) {
211
- const start = this.state.pos;
212
- let startLoc;
213
- if (!this.isLookahead) startLoc = this.state.curPosition();
214
- let ch = this.input.charCodeAt(this.state.pos += startSkip);
215
- if (this.state.pos < this.length) {
216
- while (!(0, _whitespace.isNewLine)(ch) && ++this.state.pos < this.length) {
217
- ch = this.input.charCodeAt(this.state.pos);
218
- }
219
- }
220
- if (this.isLookahead) return;
221
- const end = this.state.pos;
222
- const value = this.input.slice(start + startSkip, end);
223
- const comment = {
224
- type: "CommentLine",
225
- value,
226
- start,
227
- end,
228
- loc: new _location.SourceLocation(startLoc, this.state.curPosition())
229
- };
230
- if (this.options.tokens) this.pushToken(comment);
231
- return comment;
232
- }
233
- skipSpace() {
234
- const spaceStart = this.state.pos;
235
- const comments = [];
236
- loop: while (this.state.pos < this.length) {
237
- const ch = this.input.charCodeAt(this.state.pos);
238
- switch (ch) {
239
- case 32:
240
- case 160:
241
- case 9:
242
- ++this.state.pos;
243
- break;
244
- case 13:
245
- if (this.input.charCodeAt(this.state.pos + 1) === 10) {
246
- ++this.state.pos;
247
- }
248
- case 10:
249
- case 8232:
250
- case 8233:
251
- ++this.state.pos;
252
- ++this.state.curLine;
253
- this.state.lineStart = this.state.pos;
254
- break;
255
- case 47:
256
- switch (this.input.charCodeAt(this.state.pos + 1)) {
257
- case 42:
258
- {
259
- const comment = this.skipBlockComment("*/");
260
- if (comment !== undefined) {
261
- this.addComment(comment);
262
- if (this.options.attachComment) comments.push(comment);
263
- }
264
- break;
265
- }
266
- case 47:
267
- {
268
- const comment = this.skipLineComment(2);
269
- if (comment !== undefined) {
270
- this.addComment(comment);
271
- if (this.options.attachComment) comments.push(comment);
272
- }
273
- break;
274
- }
275
- default:
276
- break loop;
277
- }
278
- break;
279
- default:
280
- if ((0, _whitespace.isWhitespace)(ch)) {
281
- ++this.state.pos;
282
- } else if (ch === 45 && !this.inModule && this.options.annexB) {
283
- const pos = this.state.pos;
284
- if (this.input.charCodeAt(pos + 1) === 45 && this.input.charCodeAt(pos + 2) === 62 && (spaceStart === 0 || this.state.lineStart > spaceStart)) {
285
- const comment = this.skipLineComment(3);
286
- if (comment !== undefined) {
287
- this.addComment(comment);
288
- if (this.options.attachComment) comments.push(comment);
289
- }
290
- } else {
291
- break loop;
292
- }
293
- } else if (ch === 60 && !this.inModule && this.options.annexB) {
294
- const pos = this.state.pos;
295
- if (this.input.charCodeAt(pos + 1) === 33 && this.input.charCodeAt(pos + 2) === 45 && this.input.charCodeAt(pos + 3) === 45) {
296
- const comment = this.skipLineComment(4);
297
- if (comment !== undefined) {
298
- this.addComment(comment);
299
- if (this.options.attachComment) comments.push(comment);
300
- }
301
- } else {
302
- break loop;
303
- }
304
- } else {
305
- break loop;
306
- }
307
- }
308
- }
309
- if (comments.length > 0) {
310
- const end = this.state.pos;
311
- const commentWhitespace = {
312
- start: spaceStart,
313
- end,
314
- comments,
315
- leadingNode: null,
316
- trailingNode: null,
317
- containingNode: null
318
- };
319
- this.state.commentStack.push(commentWhitespace);
320
- }
321
- }
322
- finishToken(type, val) {
323
- this.state.end = this.state.pos;
324
- this.state.endLoc = this.state.curPosition();
325
- const prevType = this.state.type;
326
- this.state.type = type;
327
- this.state.value = val;
328
- if (!this.isLookahead) {
329
- this.updateContext(prevType);
330
- }
331
- }
332
- replaceToken(type) {
333
- this.state.type = type;
334
- this.updateContext();
335
- }
336
- readToken_numberSign() {
337
- if (this.state.pos === 0 && this.readToken_interpreter()) {
338
- return;
339
- }
340
- const nextPos = this.state.pos + 1;
341
- const next = this.codePointAtPos(nextPos);
342
- if (next >= 48 && next <= 57) {
343
- throw this.raise(_parseError.Errors.UnexpectedDigitAfterHash, {
344
- at: this.state.curPosition()
345
- });
346
- }
347
- if (next === 123 || next === 91 && this.hasPlugin("recordAndTuple")) {
348
- this.expectPlugin("recordAndTuple");
349
- if (this.getPluginOption("recordAndTuple", "syntaxType") === "bar") {
350
- throw this.raise(next === 123 ? _parseError.Errors.RecordExpressionHashIncorrectStartSyntaxType : _parseError.Errors.TupleExpressionHashIncorrectStartSyntaxType, {
351
- at: this.state.curPosition()
352
- });
353
- }
354
- this.state.pos += 2;
355
- if (next === 123) {
356
- this.finishToken(7);
357
- } else {
358
- this.finishToken(1);
359
- }
360
- } else if ((0, _identifier.isIdentifierStart)(next)) {
361
- ++this.state.pos;
362
- this.finishToken(136, this.readWord1(next));
363
- } else if (next === 92) {
364
- ++this.state.pos;
365
- this.finishToken(136, this.readWord1());
366
- } else {
367
- this.finishOp(27, 1);
368
- }
369
- }
370
- readToken_dot() {
371
- const next = this.input.charCodeAt(this.state.pos + 1);
372
- if (next >= 48 && next <= 57) {
373
- this.readNumber(true);
374
- return;
375
- }
376
- if (next === 46 && this.input.charCodeAt(this.state.pos + 2) === 46) {
377
- this.state.pos += 3;
378
- this.finishToken(21);
379
- } else {
380
- ++this.state.pos;
381
- this.finishToken(16);
382
- }
383
- }
384
- readToken_slash() {
385
- const next = this.input.charCodeAt(this.state.pos + 1);
386
- if (next === 61) {
387
- this.finishOp(31, 2);
388
- } else {
389
- this.finishOp(56, 1);
390
- }
391
- }
392
- readToken_interpreter() {
393
- if (this.state.pos !== 0 || this.length < 2) return false;
394
- let ch = this.input.charCodeAt(this.state.pos + 1);
395
- if (ch !== 33) return false;
396
- const start = this.state.pos;
397
- this.state.pos += 1;
398
- while (!(0, _whitespace.isNewLine)(ch) && ++this.state.pos < this.length) {
399
- ch = this.input.charCodeAt(this.state.pos);
400
- }
401
- const value = this.input.slice(start + 2, this.state.pos);
402
- this.finishToken(28, value);
403
- return true;
404
- }
405
- readToken_mult_modulo(code) {
406
- let type = code === 42 ? 55 : 54;
407
- let width = 1;
408
- let next = this.input.charCodeAt(this.state.pos + 1);
409
- if (code === 42 && next === 42) {
410
- width++;
411
- next = this.input.charCodeAt(this.state.pos + 2);
412
- type = 57;
413
- }
414
- if (next === 61 && !this.state.inType) {
415
- width++;
416
- type = code === 37 ? 33 : 30;
417
- }
418
- this.finishOp(type, width);
419
- }
420
- readToken_pipe_amp(code) {
421
- const next = this.input.charCodeAt(this.state.pos + 1);
422
- if (next === code) {
423
- if (this.input.charCodeAt(this.state.pos + 2) === 61) {
424
- this.finishOp(30, 3);
425
- } else {
426
- this.finishOp(code === 124 ? 41 : 42, 2);
427
- }
428
- return;
429
- }
430
- if (code === 124) {
431
- if (next === 62) {
432
- this.finishOp(39, 2);
433
- return;
434
- }
435
- if (this.hasPlugin("recordAndTuple") && next === 125) {
436
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
437
- throw this.raise(_parseError.Errors.RecordExpressionBarIncorrectEndSyntaxType, {
438
- at: this.state.curPosition()
439
- });
440
- }
441
- this.state.pos += 2;
442
- this.finishToken(9);
443
- return;
444
- }
445
- if (this.hasPlugin("recordAndTuple") && next === 93) {
446
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
447
- throw this.raise(_parseError.Errors.TupleExpressionBarIncorrectEndSyntaxType, {
448
- at: this.state.curPosition()
449
- });
450
- }
451
- this.state.pos += 2;
452
- this.finishToken(4);
453
- return;
454
- }
455
- }
456
- if (next === 61) {
457
- this.finishOp(30, 2);
458
- return;
459
- }
460
- this.finishOp(code === 124 ? 43 : 45, 1);
461
- }
462
- readToken_caret() {
463
- const next = this.input.charCodeAt(this.state.pos + 1);
464
- if (next === 61 && !this.state.inType) {
465
- this.finishOp(32, 2);
466
- } else if (next === 94 && this.hasPlugin(["pipelineOperator", {
467
- proposal: "hack",
468
- topicToken: "^^"
469
- }])) {
470
- this.finishOp(37, 2);
471
- const lookaheadCh = this.input.codePointAt(this.state.pos);
472
- if (lookaheadCh === 94) {
473
- this.unexpected();
474
- }
475
- } else {
476
- this.finishOp(44, 1);
477
- }
478
- }
479
- readToken_atSign() {
480
- const next = this.input.charCodeAt(this.state.pos + 1);
481
- if (next === 64 && this.hasPlugin(["pipelineOperator", {
482
- proposal: "hack",
483
- topicToken: "@@"
484
- }])) {
485
- this.finishOp(38, 2);
486
- } else {
487
- this.finishOp(26, 1);
488
- }
489
- }
490
- readToken_plus_min(code) {
491
- const next = this.input.charCodeAt(this.state.pos + 1);
492
- if (next === code) {
493
- this.finishOp(34, 2);
494
- return;
495
- }
496
- if (next === 61) {
497
- this.finishOp(30, 2);
498
- } else {
499
- this.finishOp(53, 1);
500
- }
501
- }
502
- readToken_lt() {
503
- const {
504
- pos
505
- } = this.state;
506
- const next = this.input.charCodeAt(pos + 1);
507
- if (next === 60) {
508
- if (this.input.charCodeAt(pos + 2) === 61) {
509
- this.finishOp(30, 3);
510
- return;
511
- }
512
- this.finishOp(51, 2);
513
- return;
514
- }
515
- if (next === 61) {
516
- this.finishOp(49, 2);
517
- return;
518
- }
519
- this.finishOp(47, 1);
520
- }
521
- readToken_gt() {
522
- const {
523
- pos
524
- } = this.state;
525
- const next = this.input.charCodeAt(pos + 1);
526
- if (next === 62) {
527
- const size = this.input.charCodeAt(pos + 2) === 62 ? 3 : 2;
528
- if (this.input.charCodeAt(pos + size) === 61) {
529
- this.finishOp(30, size + 1);
530
- return;
531
- }
532
- this.finishOp(52, size);
533
- return;
534
- }
535
- if (next === 61) {
536
- this.finishOp(49, 2);
537
- return;
538
- }
539
- this.finishOp(48, 1);
540
- }
541
- readToken_eq_excl(code) {
542
- const next = this.input.charCodeAt(this.state.pos + 1);
543
- if (next === 61) {
544
- this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2);
545
- return;
546
- }
547
- if (code === 61 && next === 62) {
548
- this.state.pos += 2;
549
- this.finishToken(19);
550
- return;
551
- }
552
- this.finishOp(code === 61 ? 29 : 35, 1);
553
- }
554
- readToken_question() {
555
- const next = this.input.charCodeAt(this.state.pos + 1);
556
- const next2 = this.input.charCodeAt(this.state.pos + 2);
557
- if (next === 63) {
558
- if (next2 === 61) {
559
- this.finishOp(30, 3);
560
- } else {
561
- this.finishOp(40, 2);
562
- }
563
- } else if (next === 46 && !(next2 >= 48 && next2 <= 57)) {
564
- this.state.pos += 2;
565
- this.finishToken(18);
566
- } else {
567
- ++this.state.pos;
568
- this.finishToken(17);
569
- }
570
- }
571
- getTokenFromCode(code) {
572
- switch (code) {
573
- case 46:
574
- this.readToken_dot();
575
- return;
576
- case 40:
577
- ++this.state.pos;
578
- this.finishToken(10);
579
- return;
580
- case 41:
581
- ++this.state.pos;
582
- this.finishToken(11);
583
- return;
584
- case 59:
585
- ++this.state.pos;
586
- this.finishToken(13);
587
- return;
588
- case 44:
589
- ++this.state.pos;
590
- this.finishToken(12);
591
- return;
592
- case 91:
593
- if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
594
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
595
- throw this.raise(_parseError.Errors.TupleExpressionBarIncorrectStartSyntaxType, {
596
- at: this.state.curPosition()
597
- });
598
- }
599
- this.state.pos += 2;
600
- this.finishToken(2);
601
- } else {
602
- ++this.state.pos;
603
- this.finishToken(0);
604
- }
605
- return;
606
- case 93:
607
- ++this.state.pos;
608
- this.finishToken(3);
609
- return;
610
- case 123:
611
- if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
612
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
613
- throw this.raise(_parseError.Errors.RecordExpressionBarIncorrectStartSyntaxType, {
614
- at: this.state.curPosition()
615
- });
616
- }
617
- this.state.pos += 2;
618
- this.finishToken(6);
619
- } else {
620
- ++this.state.pos;
621
- this.finishToken(5);
622
- }
623
- return;
624
- case 125:
625
- ++this.state.pos;
626
- this.finishToken(8);
627
- return;
628
- case 58:
629
- if (this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58) {
630
- this.finishOp(15, 2);
631
- } else {
632
- ++this.state.pos;
633
- this.finishToken(14);
634
- }
635
- return;
636
- case 63:
637
- this.readToken_question();
638
- return;
639
- case 96:
640
- this.readTemplateToken();
641
- return;
642
- case 48:
643
- {
644
- const next = this.input.charCodeAt(this.state.pos + 1);
645
- if (next === 120 || next === 88) {
646
- this.readRadixNumber(16);
647
- return;
648
- }
649
- if (next === 111 || next === 79) {
650
- this.readRadixNumber(8);
651
- return;
652
- }
653
- if (next === 98 || next === 66) {
654
- this.readRadixNumber(2);
655
- return;
656
- }
657
- }
658
- case 49:
659
- case 50:
660
- case 51:
661
- case 52:
662
- case 53:
663
- case 54:
664
- case 55:
665
- case 56:
666
- case 57:
667
- this.readNumber(false);
668
- return;
669
- case 34:
670
- case 39:
671
- this.readString(code);
672
- return;
673
- case 47:
674
- this.readToken_slash();
675
- return;
676
- case 37:
677
- case 42:
678
- this.readToken_mult_modulo(code);
679
- return;
680
- case 124:
681
- case 38:
682
- this.readToken_pipe_amp(code);
683
- return;
684
- case 94:
685
- this.readToken_caret();
686
- return;
687
- case 43:
688
- case 45:
689
- this.readToken_plus_min(code);
690
- return;
691
- case 60:
692
- this.readToken_lt();
693
- return;
694
- case 62:
695
- this.readToken_gt();
696
- return;
697
- case 61:
698
- case 33:
699
- this.readToken_eq_excl(code);
700
- return;
701
- case 126:
702
- this.finishOp(36, 1);
703
- return;
704
- case 64:
705
- this.readToken_atSign();
706
- return;
707
- case 35:
708
- this.readToken_numberSign();
709
- return;
710
- case 92:
711
- this.readWord();
712
- return;
713
- default:
714
- if ((0, _identifier.isIdentifierStart)(code)) {
715
- this.readWord(code);
716
- return;
717
- }
718
- }
719
- throw this.raise(_parseError.Errors.InvalidOrUnexpectedToken, {
720
- at: this.state.curPosition(),
721
- unexpected: String.fromCodePoint(code)
722
- });
723
- }
724
- finishOp(type, size) {
725
- const str = this.input.slice(this.state.pos, this.state.pos + size);
726
- this.state.pos += size;
727
- this.finishToken(type, str);
728
- }
729
- readRegexp() {
730
- const startLoc = this.state.startLoc;
731
- const start = this.state.start + 1;
732
- let escaped, inClass;
733
- let {
734
- pos
735
- } = this.state;
736
- for (;; ++pos) {
737
- if (pos >= this.length) {
738
- throw this.raise(_parseError.Errors.UnterminatedRegExp, {
739
- at: (0, _location.createPositionWithColumnOffset)(startLoc, 1)
740
- });
741
- }
742
- const ch = this.input.charCodeAt(pos);
743
- if ((0, _whitespace.isNewLine)(ch)) {
744
- throw this.raise(_parseError.Errors.UnterminatedRegExp, {
745
- at: (0, _location.createPositionWithColumnOffset)(startLoc, 1)
746
- });
747
- }
748
- if (escaped) {
749
- escaped = false;
750
- } else {
751
- if (ch === 91) {
752
- inClass = true;
753
- } else if (ch === 93 && inClass) {
754
- inClass = false;
755
- } else if (ch === 47 && !inClass) {
756
- break;
757
- }
758
- escaped = ch === 92;
759
- }
760
- }
761
- const content = this.input.slice(start, pos);
762
- ++pos;
763
- let mods = "";
764
- const nextPos = () => (0, _location.createPositionWithColumnOffset)(startLoc, pos + 2 - start);
765
- while (pos < this.length) {
766
- const cp = this.codePointAtPos(pos);
767
- const char = String.fromCharCode(cp);
768
- if (VALID_REGEX_FLAGS.has(cp)) {
769
- if (cp === 118) {
770
- if (mods.includes("u")) {
771
- this.raise(_parseError.Errors.IncompatibleRegExpUVFlags, {
772
- at: nextPos()
773
- });
774
- }
775
- } else if (cp === 117) {
776
- if (mods.includes("v")) {
777
- this.raise(_parseError.Errors.IncompatibleRegExpUVFlags, {
778
- at: nextPos()
779
- });
780
- }
781
- }
782
- if (mods.includes(char)) {
783
- this.raise(_parseError.Errors.DuplicateRegExpFlags, {
784
- at: nextPos()
785
- });
786
- }
787
- } else if ((0, _identifier.isIdentifierChar)(cp) || cp === 92) {
788
- this.raise(_parseError.Errors.MalformedRegExpFlags, {
789
- at: nextPos()
790
- });
791
- } else {
792
- break;
793
- }
794
- ++pos;
795
- mods += char;
796
- }
797
- this.state.pos = pos;
798
- this.finishToken(135, {
799
- pattern: content,
800
- flags: mods
801
- });
802
- }
803
- readInt(radix, len, forceLen = false, allowNumSeparator = true) {
804
- const {
805
- n,
806
- pos
807
- } = (0, _helperStringParser.readInt)(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false);
808
- this.state.pos = pos;
809
- return n;
810
- }
811
- readRadixNumber(radix) {
812
- const startLoc = this.state.curPosition();
813
- let isBigInt = false;
814
- this.state.pos += 2;
815
- const val = this.readInt(radix);
816
- if (val == null) {
817
- this.raise(_parseError.Errors.InvalidDigit, {
818
- at: (0, _location.createPositionWithColumnOffset)(startLoc, 2),
819
- radix
820
- });
821
- }
822
- const next = this.input.charCodeAt(this.state.pos);
823
- if (next === 110) {
824
- ++this.state.pos;
825
- isBigInt = true;
826
- } else if (next === 109) {
827
- throw this.raise(_parseError.Errors.InvalidDecimal, {
828
- at: startLoc
829
- });
830
- }
831
- if ((0, _identifier.isIdentifierStart)(this.codePointAtPos(this.state.pos))) {
832
- throw this.raise(_parseError.Errors.NumberIdentifier, {
833
- at: this.state.curPosition()
834
- });
835
- }
836
- if (isBigInt) {
837
- const str = this.input.slice(startLoc.index, this.state.pos).replace(/[_n]/g, "");
838
- this.finishToken(133, str);
839
- return;
840
- }
841
- this.finishToken(132, val);
842
- }
843
- readNumber(startsWithDot) {
844
- const start = this.state.pos;
845
- const startLoc = this.state.curPosition();
846
- let isFloat = false;
847
- let isBigInt = false;
848
- let isDecimal = false;
849
- let hasExponent = false;
850
- let isOctal = false;
851
- if (!startsWithDot && this.readInt(10) === null) {
852
- this.raise(_parseError.Errors.InvalidNumber, {
853
- at: this.state.curPosition()
854
- });
855
- }
856
- const hasLeadingZero = this.state.pos - start >= 2 && this.input.charCodeAt(start) === 48;
857
- if (hasLeadingZero) {
858
- const integer = this.input.slice(start, this.state.pos);
859
- this.recordStrictModeErrors(_parseError.Errors.StrictOctalLiteral, {
860
- at: startLoc
861
- });
862
- if (!this.state.strict) {
863
- const underscorePos = integer.indexOf("_");
864
- if (underscorePos > 0) {
865
- this.raise(_parseError.Errors.ZeroDigitNumericSeparator, {
866
- at: (0, _location.createPositionWithColumnOffset)(startLoc, underscorePos)
867
- });
868
- }
869
- }
870
- isOctal = hasLeadingZero && !/[89]/.test(integer);
871
- }
872
- let next = this.input.charCodeAt(this.state.pos);
873
- if (next === 46 && !isOctal) {
874
- ++this.state.pos;
875
- this.readInt(10);
876
- isFloat = true;
877
- next = this.input.charCodeAt(this.state.pos);
878
- }
879
- if ((next === 69 || next === 101) && !isOctal) {
880
- next = this.input.charCodeAt(++this.state.pos);
881
- if (next === 43 || next === 45) {
882
- ++this.state.pos;
883
- }
884
- if (this.readInt(10) === null) {
885
- this.raise(_parseError.Errors.InvalidOrMissingExponent, {
886
- at: startLoc
887
- });
888
- }
889
- isFloat = true;
890
- hasExponent = true;
891
- next = this.input.charCodeAt(this.state.pos);
892
- }
893
- if (next === 110) {
894
- if (isFloat || hasLeadingZero) {
895
- this.raise(_parseError.Errors.InvalidBigIntLiteral, {
896
- at: startLoc
897
- });
898
- }
899
- ++this.state.pos;
900
- isBigInt = true;
901
- }
902
- if (next === 109) {
903
- this.expectPlugin("decimal", this.state.curPosition());
904
- if (hasExponent || hasLeadingZero) {
905
- this.raise(_parseError.Errors.InvalidDecimal, {
906
- at: startLoc
907
- });
908
- }
909
- ++this.state.pos;
910
- isDecimal = true;
911
- }
912
- if ((0, _identifier.isIdentifierStart)(this.codePointAtPos(this.state.pos))) {
913
- throw this.raise(_parseError.Errors.NumberIdentifier, {
914
- at: this.state.curPosition()
915
- });
916
- }
917
- const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, "");
918
- if (isBigInt) {
919
- this.finishToken(133, str);
920
- return;
921
- }
922
- if (isDecimal) {
923
- this.finishToken(134, str);
924
- return;
925
- }
926
- const val = isOctal ? parseInt(str, 8) : parseFloat(str);
927
- this.finishToken(132, val);
928
- }
929
- readCodePoint(throwOnInvalid) {
930
- const {
931
- code,
932
- pos
933
- } = (0, _helperStringParser.readCodePoint)(this.input, this.state.pos, this.state.lineStart, this.state.curLine, throwOnInvalid, this.errorHandlers_readCodePoint);
934
- this.state.pos = pos;
935
- return code;
936
- }
937
- readString(quote) {
938
- const {
939
- str,
940
- pos,
941
- curLine,
942
- lineStart
943
- } = (0, _helperStringParser.readStringContents)(quote === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
944
- this.state.pos = pos + 1;
945
- this.state.lineStart = lineStart;
946
- this.state.curLine = curLine;
947
- this.finishToken(131, str);
948
- }
949
- readTemplateContinuation() {
950
- if (!this.match(8)) {
951
- this.unexpected(null, 8);
952
- }
953
- this.state.pos--;
954
- this.readTemplateToken();
955
- }
956
- readTemplateToken() {
957
- const opening = this.input[this.state.pos];
958
- const {
959
- str,
960
- firstInvalidLoc,
961
- pos,
962
- curLine,
963
- lineStart
964
- } = (0, _helperStringParser.readStringContents)("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
965
- this.state.pos = pos + 1;
966
- this.state.lineStart = lineStart;
967
- this.state.curLine = curLine;
968
- if (firstInvalidLoc) {
969
- this.state.firstInvalidTemplateEscapePos = new _location.Position(firstInvalidLoc.curLine, firstInvalidLoc.pos - firstInvalidLoc.lineStart, firstInvalidLoc.pos);
970
- }
971
- if (this.input.codePointAt(pos) === 96) {
972
- this.finishToken(24, firstInvalidLoc ? null : opening + str + "`");
973
- } else {
974
- this.state.pos++;
975
- this.finishToken(25, firstInvalidLoc ? null : opening + str + "${");
976
- }
977
- }
978
- recordStrictModeErrors(toParseError, {
979
- at
980
- }) {
981
- const index = at.index;
982
- if (this.state.strict && !this.state.strictErrors.has(index)) {
983
- this.raise(toParseError, {
984
- at
985
- });
986
- } else {
987
- this.state.strictErrors.set(index, [toParseError, at]);
988
- }
989
- }
990
- readWord1(firstCode) {
991
- this.state.containsEsc = false;
992
- let word = "";
993
- const start = this.state.pos;
994
- let chunkStart = this.state.pos;
995
- if (firstCode !== undefined) {
996
- this.state.pos += firstCode <= 0xffff ? 1 : 2;
997
- }
998
- while (this.state.pos < this.length) {
999
- const ch = this.codePointAtPos(this.state.pos);
1000
- if ((0, _identifier.isIdentifierChar)(ch)) {
1001
- this.state.pos += ch <= 0xffff ? 1 : 2;
1002
- } else if (ch === 92) {
1003
- this.state.containsEsc = true;
1004
- word += this.input.slice(chunkStart, this.state.pos);
1005
- const escStart = this.state.curPosition();
1006
- const identifierCheck = this.state.pos === start ? _identifier.isIdentifierStart : _identifier.isIdentifierChar;
1007
- if (this.input.charCodeAt(++this.state.pos) !== 117) {
1008
- this.raise(_parseError.Errors.MissingUnicodeEscape, {
1009
- at: this.state.curPosition()
1010
- });
1011
- chunkStart = this.state.pos - 1;
1012
- continue;
1013
- }
1014
- ++this.state.pos;
1015
- const esc = this.readCodePoint(true);
1016
- if (esc !== null) {
1017
- if (!identifierCheck(esc)) {
1018
- this.raise(_parseError.Errors.EscapedCharNotAnIdentifier, {
1019
- at: escStart
1020
- });
1021
- }
1022
- word += String.fromCodePoint(esc);
1023
- }
1024
- chunkStart = this.state.pos;
1025
- } else {
1026
- break;
1027
- }
1028
- }
1029
- return word + this.input.slice(chunkStart, this.state.pos);
1030
- }
1031
- readWord(firstCode) {
1032
- const word = this.readWord1(firstCode);
1033
- const type = _types.keywords.get(word);
1034
- if (type !== undefined) {
1035
- this.finishToken(type, (0, _types.tokenLabelName)(type));
1036
- } else {
1037
- this.finishToken(130, word);
1038
- }
1039
- }
1040
- checkKeywordEscapes() {
1041
- const {
1042
- type
1043
- } = this.state;
1044
- if ((0, _types.tokenIsKeyword)(type) && this.state.containsEsc) {
1045
- this.raise(_parseError.Errors.InvalidEscapedReservedWord, {
1046
- at: this.state.startLoc,
1047
- reservedWord: (0, _types.tokenLabelName)(type)
1048
- });
1049
- }
1050
- }
1051
- raise(toParseError, raiseProperties) {
1052
- const {
1053
- at
1054
- } = raiseProperties,
1055
- details = _objectWithoutPropertiesLoose(raiseProperties, _excluded);
1056
- const loc = at instanceof _location.Position ? at : at.loc.start;
1057
- const error = toParseError({
1058
- loc,
1059
- details
1060
- });
1061
- if (!this.options.errorRecovery) throw error;
1062
- if (!this.isLookahead) this.state.errors.push(error);
1063
- return error;
1064
- }
1065
- raiseOverwrite(toParseError, raiseProperties) {
1066
- const {
1067
- at
1068
- } = raiseProperties,
1069
- details = _objectWithoutPropertiesLoose(raiseProperties, _excluded2);
1070
- const loc = at instanceof _location.Position ? at : at.loc.start;
1071
- const pos = loc.index;
1072
- const errors = this.state.errors;
1073
- for (let i = errors.length - 1; i >= 0; i--) {
1074
- const error = errors[i];
1075
- if (error.loc.index === pos) {
1076
- return errors[i] = toParseError({
1077
- loc,
1078
- details
1079
- });
1080
- }
1081
- if (error.loc.index < pos) break;
1082
- }
1083
- return this.raise(toParseError, raiseProperties);
1084
- }
1085
- updateContext(prevType) {}
1086
- unexpected(loc, type) {
1087
- throw this.raise(_parseError.Errors.UnexpectedToken, {
1088
- expected: type ? (0, _types.tokenLabelName)(type) : null,
1089
- at: loc != null ? loc : this.state.startLoc
1090
- });
1091
- }
1092
- expectPlugin(pluginName, loc) {
1093
- if (this.hasPlugin(pluginName)) {
1094
- return true;
1095
- }
1096
- throw this.raise(_parseError.Errors.MissingPlugin, {
1097
- at: loc != null ? loc : this.state.startLoc,
1098
- missingPlugin: [pluginName]
1099
- });
1100
- }
1101
- expectOnePlugin(pluginNames) {
1102
- if (!pluginNames.some(name => this.hasPlugin(name))) {
1103
- throw this.raise(_parseError.Errors.MissingOneOfPlugins, {
1104
- at: this.state.startLoc,
1105
- missingPlugin: pluginNames
1106
- });
1107
- }
1108
- }
1109
- errorBuilder(error) {
1110
- return (pos, lineStart, curLine) => {
1111
- this.raise(error, {
1112
- at: buildPosition(pos, lineStart, curLine)
1113
- });
1114
- };
1115
- }
1116
- }
1117
- exports.default = Tokenizer;
1118
-
1119
- //# sourceMappingURL=index.js.map