@coana-tech/cli 14.12.193 → 14.12.195

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 (1134) hide show
  1. package/cli.mjs +129 -4
  2. package/package.json +1 -1
  3. package/reachability-analyzers-cli.mjs +18 -4
  4. package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
  5. package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
  6. package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
  7. package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
  8. package/repos/coana-tech/javap-service/javap-service.jar +0 -0
  9. package/repos/coana-tech/jelly-private/dist/bundle/approx.js +3 -3
  10. package/repos/coana-tech/jelly-private/dist/bundle/{chunk-AQ5JQOUT.js → chunk-3C2GHBMA.js} +2 -2
  11. package/repos/coana-tech/jelly-private/dist/bundle/{chunk-IHOAXGXT.js → chunk-KH5GW7L6.js} +2 -2
  12. package/repos/coana-tech/jelly-private/dist/bundle/{chunk-S4OPEAUO.js → chunk-ZFK76MWT.js} +136 -88
  13. package/repos/coana-tech/jelly-private/dist/bundle/{chunk-SGCFSZ72.js → chunk-ZSJKYAXK.js} +2 -2
  14. package/repos/coana-tech/jelly-private/dist/bundle/hooks.js +3 -3
  15. package/repos/coana-tech/jelly-private/dist/bundle/jelly.js +44 -27
  16. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/code-frame/lib/index.js +37 -36
  17. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/code-frame/lib/index.js.map +1 -1
  18. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/code-frame/package.json +3 -2
  19. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/compat-data/package.json +3 -3
  20. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -1
  21. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/caching.js.map +1 -1
  22. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/config-chain.js.map +1 -1
  23. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -1
  24. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/configuration.js +1 -1
  25. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -1
  26. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/index.js.map +1 -1
  27. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/module-types.js +9 -17
  28. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  29. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/plugins.js +6 -16
  30. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -1
  31. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/files/types.js.map +1 -1
  32. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/full.js +1 -1
  33. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/full.js.map +1 -1
  34. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/helpers/config-api.js +2 -1
  35. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -1
  36. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/helpers/deep-array.js.map +1 -1
  37. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/index.js +3 -9
  38. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/index.js.map +1 -1
  39. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/pattern-to-regex.js +1 -1
  40. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +1 -1
  41. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/printer.js.map +1 -1
  42. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/resolve-targets.js.map +1 -1
  43. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -1
  44. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/validation/options.js +6 -8
  45. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/validation/options.js.map +1 -1
  46. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -1
  47. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/config/validation/removed.js.map +1 -1
  48. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
  49. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/index.js +9 -12
  50. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/index.js.map +1 -1
  51. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/parse.js +1 -3
  52. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/parse.js.map +1 -1
  53. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/parser/index.js +7 -1
  54. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/parser/index.js.map +1 -1
  55. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +157 -159
  56. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map +1 -1
  57. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -1
  58. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transform-ast.js +1 -3
  59. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transform-ast.js.map +1 -1
  60. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transform-file.js.map +1 -1
  61. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transform.js +1 -3
  62. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transform.js.map +1 -1
  63. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +1 -3
  64. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -1
  65. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/file/file.js +12 -20
  66. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  67. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/index.js +1 -3
  68. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/index.js.map +1 -1
  69. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/normalize-file.js +1 -3
  70. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -1
  71. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/plugin-pass.js +6 -8
  72. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +1 -1
  73. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/util/clone-deep.js +4 -6
  74. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -1
  75. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/package.json +14 -14
  76. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/src/config/files/index.ts +1 -0
  77. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/src/config/resolve-targets.ts +1 -0
  78. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/core/src/transform-file.ts +1 -0
  79. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/buffer.js +79 -152
  80. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  81. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/base.js +7 -8
  82. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/base.js.map +1 -1
  83. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/classes.js +18 -15
  84. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  85. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/deprecated.js +63 -18
  86. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -1
  87. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/expressions.js +45 -36
  88. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  89. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/flow.js +10 -10
  90. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/flow.js.map +1 -1
  91. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/jsx.js +3 -5
  92. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
  93. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/methods.js +34 -25
  94. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  95. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/modules.js +11 -8
  96. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
  97. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/statements.js +58 -38
  98. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
  99. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/template-literals.js +2 -4
  100. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  101. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/types.js +17 -72
  102. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  103. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/typescript.js +65 -64
  104. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  105. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/index.js +20 -24
  106. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/index.js.map +1 -1
  107. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/node/index.js +22 -63
  108. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/node/index.js.map +1 -1
  109. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/node/parentheses.js +186 -149
  110. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  111. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/nodes.js +19 -0
  112. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/nodes.js.map +1 -0
  113. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/printer.js +274 -272
  114. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/printer.js.map +1 -1
  115. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/source-map.js.map +1 -1
  116. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/token-map.js +6 -2
  117. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/token-map.js.map +1 -1
  118. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/package.json +6 -6
  119. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
  120. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
  121. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-compilation-targets/lib/index.js +1 -4
  122. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  123. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-compilation-targets/package.json +2 -2
  124. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js +2 -5
  125. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
  126. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +55 -67
  127. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
  128. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/features.js +7 -17
  129. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
  130. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js +28 -39
  131. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js.map +1 -1
  132. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +42 -60
  133. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
  134. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-create-class-features-plugin/package.json +5 -5
  135. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
  136. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-imports/package.json +4 -4
  137. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js +4 -6
  138. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map +1 -1
  139. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +10 -12
  140. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +1 -1
  141. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/index.js +1 -3
  142. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -1
  143. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js +2 -4
  144. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +1 -1
  145. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-module-transforms/package.json +5 -5
  146. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-plugin-utils/lib/index.js +11 -13
  147. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -1
  148. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-plugin-utils/package.json +2 -2
  149. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-replace-supers/lib/index.js +8 -10
  150. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
  151. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helper-replace-supers/package.json +4 -4
  152. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js.map +1 -1
  153. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js.map +1 -1
  154. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js.map +1 -1
  155. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js.map +1 -1
  156. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/dispose.js.map +1 -1
  157. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js.map +1 -1
  158. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -1
  159. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js.map +1 -1
  160. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -1
  161. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers-generated.js +331 -333
  162. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  163. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/index.js +9 -13
  164. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/lib/index.js.map +1 -1
  165. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/helpers/package.json +5 -5
  166. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/parser/lib/index.js +224 -304
  167. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/parser/lib/index.js.map +1 -1
  168. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/parser/package.json +5 -5
  169. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
  170. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-proposal-decorators/lib/index.js +5 -7
  171. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-proposal-decorators/lib/index.js.map +1 -1
  172. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js.map +1 -1
  173. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-proposal-decorators/package.json +7 -7
  174. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-decorators/lib/index.js +30 -32
  175. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-decorators/lib/index.js.map +1 -1
  176. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-decorators/package.json +3 -3
  177. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-import-attributes/lib/index.js +1 -1
  178. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map +1 -1
  179. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-import-attributes/package.json +3 -3
  180. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-jsx/lib/index.js +3 -5
  181. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-jsx/lib/index.js.map +1 -1
  182. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-jsx/package.json +3 -3
  183. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-typescript/lib/index.js +23 -31
  184. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-typescript/lib/index.js.map +1 -1
  185. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-syntax-typescript/package.json +3 -3
  186. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/lib/enum.js +3 -5
  187. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
  188. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/lib/index.js +20 -43
  189. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
  190. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/lib/namespace.js +1 -3
  191. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
  192. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/plugin-transform-typescript/package.json +7 -7
  193. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/lib/builder.js.map +1 -1
  194. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/lib/formatters.js.map +1 -1
  195. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/lib/literal.js.map +1 -1
  196. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/lib/options.js.map +1 -1
  197. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/lib/parse.js.map +1 -1
  198. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/lib/populate.js.map +1 -1
  199. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/template/package.json +4 -4
  200. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/cache.js +0 -1
  201. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  202. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/context.js +8 -4
  203. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/context.js.map +1 -1
  204. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/index.js.map +1 -1
  205. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -1
  206. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/context.js +18 -6
  207. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
  208. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/conversion.js +6 -12
  209. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  210. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/evaluation.js +9 -4
  211. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  212. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  213. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/index.js +42 -46
  214. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  215. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/inference/index.js.map +1 -1
  216. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/inference/util.js +8 -10
  217. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/inference/util.js.map +1 -1
  218. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/introspection.js +17 -21
  219. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
  220. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  221. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +6 -8
  222. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -1
  223. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/modification.js +4 -6
  224. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  225. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/replacement.js +2 -2
  226. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  227. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -1
  228. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/index.js +107 -132
  229. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  230. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/lib/renamer.js +5 -4
  231. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
  232. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/traverseForScope.js +9 -11
  233. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +1 -1
  234. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/traverse-node.js +0 -1
  235. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -1
  236. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/types.js.map +1 -1
  237. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/visitors.js +10 -14
  238. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  239. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/traverse/package.json +7 -7
  240. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  241. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -1
  242. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/builders/generated/lowercase.js +12 -6
  243. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -1
  244. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/builders/generated/uppercase.js +1 -3
  245. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
  246. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -1
  247. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -1
  248. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/comments/addComments.js.map +1 -1
  249. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/constants/index.js +2 -4
  250. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/constants/index.js.map +1 -1
  251. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
  252. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  253. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
  254. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  255. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -1
  256. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/core.js +8 -9
  257. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  258. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/experimental.js +9 -11
  259. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -1
  260. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/index.js.map +1 -1
  261. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/misc.js +3 -5
  262. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/misc.js.map +1 -1
  263. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/typescript.js +28 -29
  264. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
  265. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
  266. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/index-legacy.d.ts +179 -179
  267. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/index.d.ts +194 -198
  268. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/index.js +1 -3
  269. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/index.js.flow +171 -171
  270. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/index.js.map +1 -1
  271. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -1
  272. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/modifications/inherits.js +1 -1
  273. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -1
  274. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/modifications/removeProperties.js +1 -1
  275. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -1
  276. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
  277. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  278. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -1
  279. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -1
  280. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -1
  281. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isLet.js +2 -6
  282. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isLet.js.map +1 -1
  283. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -1
  284. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isReferenced.js +1 -1
  285. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -1
  286. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
  287. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -1
  288. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isVar.js +4 -8
  289. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/lib/validators/isVar.js.map +1 -1
  290. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/types/package.json +4 -4
  291. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/README.md +13 -9
  292. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/dist/cli.cjs +2 -0
  293. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
  294. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/dist/index.d.ts +5 -3
  295. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/dist/index.js +1 -1
  296. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/package.json +11 -6
  297. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/agents.js +1 -1
  298. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  299. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/aac.js +1 -1
  300. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  301. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  302. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  303. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  304. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  305. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  306. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/apng.js +1 -1
  307. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  308. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  309. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  310. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  311. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  312. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  313. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  314. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  315. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  316. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  317. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/audio.js +1 -1
  318. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  319. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  320. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  321. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/av1.js +1 -1
  322. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/avif.js +1 -1
  323. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  324. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  325. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  326. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  327. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  328. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  329. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  330. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  331. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  332. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  333. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  334. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  335. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  336. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  337. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  338. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  339. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/calc.js +1 -1
  340. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  341. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  342. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  343. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  344. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  345. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  346. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  347. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  348. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  349. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  350. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  351. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/colr.js +1 -1
  352. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  353. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  354. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  355. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/const.js +1 -1
  356. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  357. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  358. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  359. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  360. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  361. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/cors.js +1 -1
  362. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  363. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  364. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  365. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  366. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  367. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  368. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  369. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  370. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  371. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  372. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  373. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  374. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  375. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  376. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  377. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  378. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  379. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  380. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  381. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  382. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  383. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  384. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  385. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  386. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  387. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  388. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  389. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  390. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  391. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  392. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  393. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  394. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  395. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  396. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  397. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  398. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  399. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  400. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  401. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  402. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  403. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  404. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  405. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  406. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  407. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  408. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  409. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  410. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  411. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  412. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  413. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  414. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  415. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  416. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  417. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  418. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -0
  419. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  420. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  421. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  422. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  423. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  424. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  425. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  426. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  427. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  428. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  429. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  430. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  431. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  432. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  433. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  434. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  435. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  436. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  437. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  438. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  439. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  440. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  441. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  442. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  443. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  444. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  445. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  446. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  447. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  448. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  449. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  450. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  451. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  452. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  453. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  454. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  455. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  456. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  457. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  458. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  459. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  460. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  461. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  462. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  463. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  464. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  465. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  466. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  467. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  468. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  469. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  470. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  471. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  472. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  473. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  474. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  475. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  476. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  477. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  478. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  479. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  480. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  481. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  482. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  483. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  484. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  485. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  486. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  487. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  488. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  489. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  490. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  491. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  492. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  493. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  494. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  495. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  496. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  497. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  498. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  499. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  500. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  501. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  502. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  503. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  504. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  505. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  506. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  507. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  508. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  509. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  510. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  511. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  512. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  513. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  514. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  515. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  516. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  517. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/details.js +1 -1
  518. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  519. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  520. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  521. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  522. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  523. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  524. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  525. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  526. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  527. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  528. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  529. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  530. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  531. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  532. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  533. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  534. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/download.js +1 -1
  535. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  536. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  537. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  538. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  539. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/eme.js +1 -1
  540. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/eot.js +1 -1
  541. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es5.js +1 -1
  542. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  543. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  544. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  545. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  546. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  547. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  548. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/es6.js +1 -1
  549. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  550. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  551. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  552. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  553. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  554. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  555. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  556. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  557. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  558. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/flac.js +1 -1
  559. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  560. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  561. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  562. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  563. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  564. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  565. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  566. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  567. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  568. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  569. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  570. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  571. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  572. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  573. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  574. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  575. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  576. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/forms.js +1 -1
  577. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  578. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  579. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  580. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  581. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  582. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  583. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  584. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  585. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  586. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  587. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/heif.js +1 -1
  588. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  589. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  590. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  591. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/history.js +1 -1
  592. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  593. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  594. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  595. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/http2.js +1 -1
  596. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/http3.js +1 -1
  597. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  598. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  599. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  600. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  601. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ime.js +1 -1
  602. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  603. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  604. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/imports.js +1 -1
  605. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  606. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  607. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  608. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  609. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  610. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  611. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  612. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  613. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  614. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  615. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  616. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  617. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  618. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  619. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  620. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  621. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  622. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  623. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  624. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  625. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  626. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  627. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  628. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  629. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  630. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  631. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  632. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  633. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  634. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  635. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  636. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  637. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/json.js +1 -1
  638. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  639. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  640. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  641. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  642. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  643. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  644. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  645. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  646. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  647. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/let.js +1 -1
  648. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  649. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  650. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  651. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  652. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  653. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  654. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  655. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  656. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  657. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  658. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  659. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  660. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  661. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  662. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  663. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  664. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  665. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  666. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  667. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  668. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  669. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  670. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  671. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  672. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  673. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  674. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  675. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/menu.js +1 -1
  676. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  677. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/meter.js +1 -1
  678. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/midi.js +1 -1
  679. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  680. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  681. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  682. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  683. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  684. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  685. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  686. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  687. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  688. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  689. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  690. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  691. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  692. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  693. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  694. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  695. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  696. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  697. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  698. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  699. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  700. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  701. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  702. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  703. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  704. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/opus.js +1 -1
  705. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  706. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/outline.js +1 -1
  707. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  708. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  709. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  710. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  711. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  712. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  713. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  714. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  715. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  716. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  717. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  718. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  719. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/picture.js +1 -1
  720. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ping.js +1 -1
  721. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  722. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  723. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  724. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  725. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/portals.js +1 -1
  726. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  727. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  728. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/progress.js +1 -1
  729. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  730. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/promises.js +1 -1
  731. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  732. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  733. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  734. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  735. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  736. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  737. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  738. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  739. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  740. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  741. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  742. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/rem.js +1 -1
  743. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  744. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  745. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  746. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  747. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  748. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  749. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  750. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  751. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  752. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  753. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  754. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  755. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  756. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  757. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  758. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  759. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/selectlist.js +1 -1
  760. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  761. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  762. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  763. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  764. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  765. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  766. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  767. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/sni.js +1 -1
  768. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  769. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  770. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  771. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  772. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  773. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  774. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/stream.js +1 -1
  775. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/streams.js +1 -1
  776. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  777. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  778. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  779. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  780. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  781. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  782. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  783. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  784. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  785. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  786. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  787. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  788. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/svg.js +1 -1
  789. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  790. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  791. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  792. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/template.js +1 -1
  793. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  794. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  795. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  796. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  797. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  798. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  799. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  800. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  801. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  802. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  803. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  804. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  805. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/touch.js +1 -1
  806. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  807. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  808. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  809. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  810. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  811. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  812. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  813. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  814. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  815. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/url.js +1 -1
  816. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  817. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  818. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  819. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  820. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  821. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  822. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  823. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/video.js +1 -1
  824. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  825. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  826. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  827. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  828. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  829. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  830. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  831. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  832. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  833. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  834. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  835. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  836. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  837. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  838. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  839. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  840. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  841. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  842. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  843. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  844. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  845. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wav.js +1 -1
  846. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  847. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  848. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  849. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  850. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  851. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  852. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  853. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  854. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  855. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  856. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  857. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  858. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  859. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webm.js +1 -1
  860. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  861. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webp.js +1 -1
  862. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  863. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  864. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  865. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  866. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  867. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  868. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  869. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  870. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/woff.js +1 -1
  871. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  872. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  873. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  874. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  875. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  876. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  877. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  878. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  879. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  880. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  881. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/features.js +1 -1
  882. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AD.js +1 -1
  883. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AE.js +1 -1
  884. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AF.js +1 -1
  885. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AG.js +1 -1
  886. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AI.js +1 -1
  887. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AL.js +1 -1
  888. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AM.js +1 -1
  889. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AO.js +1 -1
  890. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AR.js +1 -1
  891. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AS.js +1 -1
  892. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AT.js +1 -1
  893. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AU.js +1 -1
  894. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AW.js +1 -1
  895. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AX.js +1 -1
  896. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
  897. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BA.js +1 -1
  898. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BB.js +1 -1
  899. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BD.js +1 -1
  900. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BE.js +1 -1
  901. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BF.js +1 -1
  902. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BG.js +1 -1
  903. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BH.js +1 -1
  904. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BI.js +1 -1
  905. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
  906. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BM.js +1 -1
  907. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BN.js +1 -1
  908. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BO.js +1 -1
  909. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BR.js +1 -1
  910. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BS.js +1 -1
  911. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BT.js +1 -1
  912. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BW.js +1 -1
  913. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BY.js +1 -1
  914. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
  915. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CA.js +1 -1
  916. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CD.js +1 -1
  917. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CF.js +1 -1
  918. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CG.js +1 -1
  919. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CH.js +1 -1
  920. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CI.js +1 -1
  921. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CK.js +1 -1
  922. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CL.js +1 -1
  923. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CM.js +1 -1
  924. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CN.js +1 -1
  925. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CO.js +1 -1
  926. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CR.js +1 -1
  927. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CU.js +1 -1
  928. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CV.js +1 -1
  929. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CX.js +1 -1
  930. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CY.js +1 -1
  931. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
  932. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/DE.js +1 -1
  933. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
  934. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/DK.js +1 -1
  935. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/DM.js +1 -1
  936. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/DO.js +1 -1
  937. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
  938. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/EC.js +1 -1
  939. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/EE.js +1 -1
  940. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/EG.js +1 -1
  941. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ER.js +1 -1
  942. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ES.js +1 -1
  943. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ET.js +1 -1
  944. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/FI.js +1 -1
  945. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
  946. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/FK.js +1 -1
  947. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/FM.js +1 -1
  948. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/FO.js +1 -1
  949. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/FR.js +1 -1
  950. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GA.js +1 -1
  951. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GB.js +1 -1
  952. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GD.js +1 -1
  953. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GE.js +1 -1
  954. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GF.js +1 -1
  955. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GG.js +1 -1
  956. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GH.js +1 -1
  957. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GI.js +1 -1
  958. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GL.js +1 -1
  959. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GM.js +1 -1
  960. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GN.js +1 -1
  961. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GP.js +1 -1
  962. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
  963. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GR.js +1 -1
  964. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GT.js +1 -1
  965. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GU.js +1 -1
  966. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GW.js +1 -1
  967. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/GY.js +1 -1
  968. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/HK.js +1 -1
  969. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/HN.js +1 -1
  970. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/HR.js +1 -1
  971. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/HT.js +1 -1
  972. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/HU.js +1 -1
  973. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ID.js +1 -1
  974. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IE.js +1 -1
  975. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IL.js +1 -1
  976. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IM.js +1 -1
  977. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IN.js +1 -1
  978. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
  979. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IR.js +1 -1
  980. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IS.js +1 -1
  981. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/IT.js +1 -1
  982. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/JE.js +1 -1
  983. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/JM.js +1 -1
  984. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/JO.js +1 -1
  985. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/JP.js +1 -1
  986. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KE.js +1 -1
  987. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KG.js +1 -1
  988. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KH.js +1 -1
  989. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KI.js +1 -1
  990. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KM.js +1 -1
  991. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KN.js +1 -1
  992. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KP.js +1 -1
  993. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KR.js +1 -1
  994. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KW.js +1 -1
  995. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KY.js +1 -1
  996. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
  997. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LA.js +1 -1
  998. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LB.js +1 -1
  999. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LC.js +1 -1
  1000. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LI.js +1 -1
  1001. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LK.js +1 -1
  1002. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LR.js +1 -1
  1003. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LS.js +1 -1
  1004. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LT.js +1 -1
  1005. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LU.js +1 -1
  1006. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LV.js +1 -1
  1007. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/LY.js +1 -1
  1008. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MA.js +1 -1
  1009. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MC.js +1 -1
  1010. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MD.js +1 -1
  1011. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ME.js +1 -1
  1012. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MG.js +1 -1
  1013. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MH.js +1 -1
  1014. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MK.js +1 -1
  1015. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ML.js +1 -1
  1016. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MM.js +1 -1
  1017. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MN.js +1 -1
  1018. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MO.js +1 -1
  1019. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MP.js +1 -1
  1020. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
  1021. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MR.js +1 -1
  1022. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MS.js +1 -1
  1023. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MT.js +1 -1
  1024. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MU.js +1 -1
  1025. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MV.js +1 -1
  1026. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MW.js +1 -1
  1027. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MX.js +1 -1
  1028. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MY.js +1 -1
  1029. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
  1030. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NA.js +1 -1
  1031. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NC.js +1 -1
  1032. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NE.js +1 -1
  1033. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NF.js +1 -1
  1034. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NG.js +1 -1
  1035. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NI.js +1 -1
  1036. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NL.js +1 -1
  1037. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NO.js +1 -1
  1038. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NP.js +1 -1
  1039. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NR.js +1 -1
  1040. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NU.js +1 -1
  1041. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
  1042. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/OM.js +1 -1
  1043. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PA.js +1 -1
  1044. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PE.js +1 -1
  1045. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PF.js +1 -1
  1046. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PG.js +1 -1
  1047. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PH.js +1 -1
  1048. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PK.js +1 -1
  1049. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PL.js +1 -1
  1050. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PM.js +1 -1
  1051. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PN.js +1 -1
  1052. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PR.js +1 -1
  1053. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PS.js +1 -1
  1054. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PT.js +1 -1
  1055. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PW.js +1 -1
  1056. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/PY.js +1 -1
  1057. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/QA.js +1 -1
  1058. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/RE.js +1 -1
  1059. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/RO.js +1 -1
  1060. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/RS.js +1 -1
  1061. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/RU.js +1 -1
  1062. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/RW.js +1 -1
  1063. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SA.js +1 -1
  1064. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SB.js +1 -1
  1065. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SC.js +1 -1
  1066. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SD.js +1 -1
  1067. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SE.js +1 -1
  1068. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SG.js +1 -1
  1069. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SH.js +1 -1
  1070. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SI.js +1 -1
  1071. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SK.js +1 -1
  1072. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SL.js +1 -1
  1073. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SM.js +1 -1
  1074. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SN.js +1 -1
  1075. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SO.js +1 -1
  1076. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SR.js +1 -1
  1077. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ST.js +1 -1
  1078. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SV.js +1 -1
  1079. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SY.js +1 -1
  1080. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
  1081. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TC.js +1 -1
  1082. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TD.js +1 -1
  1083. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TG.js +1 -1
  1084. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TH.js +1 -1
  1085. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
  1086. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TL.js +1 -1
  1087. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TM.js +1 -1
  1088. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TN.js +1 -1
  1089. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TO.js +1 -1
  1090. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TR.js +1 -1
  1091. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TT.js +1 -1
  1092. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TV.js +1 -1
  1093. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TW.js +1 -1
  1094. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
  1095. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/UA.js +1 -1
  1096. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/UG.js +1 -1
  1097. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/US.js +1 -1
  1098. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/UY.js +1 -1
  1099. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
  1100. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VA.js +1 -1
  1101. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VC.js +1 -1
  1102. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VE.js +1 -1
  1103. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VG.js +1 -1
  1104. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VI.js +1 -1
  1105. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VN.js +1 -1
  1106. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/VU.js +1 -1
  1107. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/WF.js +1 -1
  1108. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/WS.js +1 -1
  1109. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/YE.js +1 -1
  1110. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/YT.js +1 -1
  1111. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
  1112. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
  1113. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
  1114. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
  1115. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
  1116. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
  1117. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
  1118. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
  1119. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
  1120. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
  1121. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
  1122. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/caniuse-lite/package.json +1 -1
  1123. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/chromium-versions.js +2 -1
  1124. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/chromium-versions.json +1 -1
  1125. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/full-chromium-versions.js +71 -2
  1126. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
  1127. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/full-versions.js +40 -1
  1128. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/full-versions.json +1 -1
  1129. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/package.json +2 -2
  1130. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/versions.js +13 -1
  1131. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/electron-to-chromium/versions.json +1 -1
  1132. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/node/whitespace.js +0 -156
  1133. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/@babel/generator/lib/node/whitespace.js.map +0 -1
  1134. package/repos/coana-tech/jelly-private/dist/bundle/node_modules/baseline-browser-mapping/dist/cli.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_globalTypes","_constEnum","getFirstIdentifier","node","t","isIdentifier","left","transpileNamespace","path","allowNamespaces","declare","id","type","remove","get","buildCodeFrameError","name","value","handleNested","program","findParent","p","isProgram","registerGlobalType","scope","hasOwnBinding","replaceWith","registerDeclaration","replaceWithMultiple","getDeclaration","variableDeclaration","variableDeclarator","identifier","getMemberExpression","itemName","memberExpression","handleVariableDeclaration","hub","kind","file","declarations","every","declarator","init","assignmentExpression","bindingIdentifiers","getBindingIdentifiers","assignments","idName","push","cloneNode","expressionStatement","sequenceExpression","buildNestedAmbientModuleError","buildError","Error","parentExport","names","Set","realName","generateUid","body","namespaceTopLevel","isTSModuleBlock","exportNamedDeclaration","isEmpty","i","length","subNode","transformed","moduleName","has","add","splice","isTypeScript","declaration","EXPORTED_CONST_ENUMS_IN_NAMESPACE","nodes","fallthroughValue","objectExpression","memberExpr","template","expression","ast","statement"],"sources":["../src/namespace.ts"],"sourcesContent":["import { template, types as t, type NodePath } from \"@babel/core\";\n\nimport { registerGlobalType } from \"./global-types.ts\";\nimport { EXPORTED_CONST_ENUMS_IN_NAMESPACE } from \"./const-enum.ts\";\n\nexport function getFirstIdentifier(node: t.TSEntityName): t.Identifier {\n if (t.isIdentifier(node)) {\n return node;\n }\n // In Babel 8 TSEntityName also includes ThisExpression, however, a namespace\n // id must not be a ThisExpression or a TSQualifiedName { left: ThisExpression }.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n return getFirstIdentifier((node as t.TSQualifiedName).left);\n}\n\nexport default function transpileNamespace(\n path: NodePath<t.TSModuleDeclaration>,\n allowNamespaces: boolean,\n) {\n if (path.node.declare || path.node.id.type === \"StringLiteral\") {\n path.remove();\n return;\n }\n\n if (!allowNamespaces) {\n throw path\n .get(\"id\")\n .buildCodeFrameError(\n \"Namespace not marked type-only declare.\" +\n \" Non-declarative namespaces are only supported experimentally in Babel.\" +\n \" To enable and review caveats see:\" +\n \" https://babeljs.io/docs/en/babel-plugin-transform-typescript\",\n );\n }\n\n const name = getFirstIdentifier(path.node.id).name;\n const value = handleNested(path, path.node);\n if (value === null) {\n // This means that `path` is a type-only namespace.\n // We call `registerGlobalType` here to allow it to be stripped.\n const program = path.findParent(p => p.isProgram());\n registerGlobalType(program.scope, name);\n\n path.remove();\n } else if (path.scope.hasOwnBinding(name)) {\n path.replaceWith(value);\n } else {\n path.scope.registerDeclaration(\n path.replaceWithMultiple([getDeclaration(name), value])[0],\n );\n }\n}\n\nfunction getDeclaration(name: string) {\n return t.variableDeclaration(\"let\", [\n t.variableDeclarator(t.identifier(name)),\n ]);\n}\n\nfunction getMemberExpression(name: string, itemName: string) {\n return t.memberExpression(t.identifier(name), t.identifier(itemName));\n}\n\n/**\n * Convert export const foo = 1 to Namespace.foo = 1;\n *\n * @param {t.VariableDeclaration} node given variable declaration, e.g. `const foo = 1`\n * @param {string} name the generated unique namespace member name\n * @param {*} hub An instance implements HubInterface defined in `@babel/traverse` that can throw a code frame error\n */\nfunction handleVariableDeclaration(\n node: t.VariableDeclaration,\n name: string,\n hub: any,\n): t.Statement[] {\n if (node.kind !== \"const\") {\n throw hub.file.buildCodeFrameError(\n node,\n \"Namespaces exporting non-const are not supported by Babel.\" +\n \" Change to const or see:\" +\n \" https://babeljs.io/docs/en/babel-plugin-transform-typescript\",\n );\n }\n const { declarations } = node;\n if (\n declarations.every(\n (declarator): declarator is t.VariableDeclarator & { id: t.Identifier } =>\n t.isIdentifier(declarator.id),\n )\n ) {\n // `export const a = 1` transforms to `const a = N.a = 1`, the output\n // is smaller than `const a = 1; N.a = a`;\n for (const declarator of declarations) {\n declarator.init = t.assignmentExpression(\n \"=\",\n getMemberExpression(name, declarator.id.name),\n declarator.init,\n );\n }\n return [node];\n }\n // Now we have pattern in declarators\n // `export const [a] = 1` transforms to `const [a] = 1; N.a = a`\n const bindingIdentifiers = t.getBindingIdentifiers(node);\n const assignments = [];\n // getBindingIdentifiers returns an object without prototype.\n // eslint-disable-next-line guard-for-in\n for (const idName in bindingIdentifiers) {\n assignments.push(\n t.assignmentExpression(\n \"=\",\n getMemberExpression(name, idName),\n t.cloneNode(bindingIdentifiers[idName]),\n ),\n );\n }\n return [node, t.expressionStatement(t.sequenceExpression(assignments))];\n}\n\nfunction buildNestedAmbientModuleError(path: NodePath, node: t.Node) {\n return path.hub.buildError(\n node,\n \"Ambient modules cannot be nested in other modules or namespaces.\",\n Error,\n );\n}\n\nfunction handleNested(\n path: NodePath,\n node: t.TSModuleDeclaration,\n parentExport?: t.Expression,\n): t.Statement | null {\n const names = new Set();\n const realName =\n !process.env.BABEL_8_BREAKING || t.isIdentifier(node.id)\n ? (node.id as t.Identifier)\n : getFirstIdentifier(node.id as unknown as t.TSQualifiedName);\n\n const name = path.scope.generateUid(realName.name);\n\n const body = node.body;\n let id = node.id;\n let namespaceTopLevel: t.Statement[];\n if (process.env.BABEL_8_BREAKING) {\n if (t.isTSQualifiedName(id)) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n namespaceTopLevel = body.body;\n while (t.isTSQualifiedName(id)) {\n namespaceTopLevel = [\n t.exportNamedDeclaration(\n t.tsModuleDeclaration(\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n t.cloneNode(id.right),\n t.tsModuleBlock(namespaceTopLevel),\n ),\n ),\n ];\n\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n id = id.left;\n }\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n namespaceTopLevel = body.body;\n }\n } else {\n namespaceTopLevel = t.isTSModuleBlock(body)\n ? body.body\n : // We handle `namespace X.Y {}` as if it was\n // namespace X {\n // export namespace Y {}\n // }\n [t.exportNamedDeclaration(body)];\n }\n\n let isEmpty = true;\n\n for (let i = 0; i < namespaceTopLevel.length; i++) {\n const subNode = namespaceTopLevel[i];\n\n // The first switch is mainly to detect name usage. Only export\n // declarations require further transformation.\n switch (subNode.type) {\n case \"TSModuleDeclaration\": {\n if (!t.isIdentifier(subNode.id)) {\n throw buildNestedAmbientModuleError(path, subNode);\n }\n\n const transformed = handleNested(path, subNode);\n if (transformed !== null) {\n isEmpty = false;\n const moduleName = subNode.id.name;\n if (names.has(moduleName)) {\n namespaceTopLevel[i] = transformed;\n } else {\n names.add(moduleName);\n namespaceTopLevel.splice(\n i++,\n 1,\n getDeclaration(moduleName),\n transformed,\n );\n }\n }\n continue;\n }\n case \"TSEnumDeclaration\":\n case \"FunctionDeclaration\":\n case \"ClassDeclaration\":\n isEmpty = false;\n names.add(subNode.id.name);\n continue;\n case \"VariableDeclaration\": {\n isEmpty = false;\n // getBindingIdentifiers returns an object without prototype.\n // eslint-disable-next-line guard-for-in\n for (const name in t.getBindingIdentifiers(subNode)) {\n names.add(name);\n }\n continue;\n }\n default:\n isEmpty &&= t.isTypeScript(subNode);\n // Neither named declaration nor export, continue to next item.\n continue;\n case \"ExportNamedDeclaration\":\n // Export declarations get parsed using the next switch.\n }\n\n if (\"declare\" in subNode.declaration && subNode.declaration.declare) {\n continue;\n }\n\n // Transform the export declarations that occur inside of a namespace.\n switch (subNode.declaration.type) {\n case \"TSEnumDeclaration\":\n EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(subNode.declaration);\n // fallthrough\n case \"FunctionDeclaration\":\n case \"ClassDeclaration\": {\n isEmpty = false;\n const itemName = subNode.declaration.id.name;\n names.add(itemName);\n namespaceTopLevel.splice(\n i++,\n 1,\n subNode.declaration,\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n getMemberExpression(name, itemName),\n t.identifier(itemName),\n ),\n ),\n );\n break;\n }\n case \"VariableDeclaration\": {\n isEmpty = false;\n const nodes = handleVariableDeclaration(\n subNode.declaration,\n name,\n path.hub,\n );\n namespaceTopLevel.splice(i, nodes.length, ...nodes);\n i += nodes.length - 1;\n break;\n }\n case \"TSModuleDeclaration\": {\n if (!t.isIdentifier(subNode.declaration.id)) {\n throw buildNestedAmbientModuleError(path, subNode.declaration);\n }\n\n const transformed = handleNested(\n path,\n subNode.declaration,\n t.identifier(name),\n );\n if (transformed !== null) {\n isEmpty = false;\n const moduleName = subNode.declaration.id.name;\n if (names.has(moduleName)) {\n namespaceTopLevel[i] = transformed;\n } else {\n names.add(moduleName);\n namespaceTopLevel.splice(\n i++,\n 1,\n getDeclaration(moduleName),\n transformed,\n );\n }\n } else {\n namespaceTopLevel.splice(i, 1);\n i--;\n }\n }\n }\n }\n\n if (isEmpty) return null;\n\n // {}\n let fallthroughValue: t.Expression = t.objectExpression([]);\n\n if (parentExport) {\n const memberExpr = t.memberExpression(parentExport, realName);\n fallthroughValue = template.expression.ast`\n ${t.cloneNode(memberExpr)} ||\n (${t.cloneNode(memberExpr)} = ${fallthroughValue})\n `;\n }\n\n return template.statement.ast`\n (function (${t.identifier(name)}) {\n ${namespaceTopLevel}\n })(${realName} || (${t.cloneNode(realName)} = ${fallthroughValue}));\n `;\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,SAASG,kBAAkBA,CAACC,IAAoB,EAAgB;EACrE,IAAIC,WAAC,CAACC,YAAY,CAACF,IAAI,CAAC,EAAE;IACxB,OAAOA,IAAI;EACb;EAIA,OAAOD,kBAAkB,CAAEC,IAAI,CAAuBG,IAAI,CAAC;AAC7D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,GAAG,CAACD,UAAU,CAAC,EAAE;cACzBR,iBAAiB,CAACI,CAAC,CAAC,GAAGG,WAAW;YACpC,CAAC,MAAM;cACLZ,KAAK,CAACe,GAAG,CAACF,UAAU,CAAC;cACrBR,iBAAiB,CAACW,MAAM,CACtBP,CAAC,EAAE,EACH,CAAC,EACDrC,cAAc,CAACyC,UAAU,CAAC,EAC1BD,WACF,CAAC;YACH;UACF,CAAC,MAAM;YACLP,iBAAiB,CAACW,MAAM,CAACP,CAAC,EAAE,CAAC,CAAC;YAC9BA,CAAC,EAAE;UACL;QACF;IACF;EACF;EAEA,IAAID,OAAO,EAAE,OAAO,IAAI;EAGxB,IAAIa,gBAA8B,GAAG1E,WAAC,CAAC2E,gBAAgB,CAAC,EAAE,CAAC;EAE3D,IAAIvB,YAAY,EAAE;IAChB,MAAMwB,UAAU,GAAG5E,WAAC,CAAC+B,gBAAgB,CAACqB,YAAY,EAAEG,QAAQ,CAAC;IAC7DmB,gBAAgB,GAAGG,cAAQ,CAACC,UAAU,CAACC,GAAG;AAC9C,QAAQ/E,WAAC,CAAC8C,SAAS,CAAC8B,UAAU,CAAC;AAC/B,WAAW5E,WAAC,CAAC8C,SAAS,CAAC8B,UAAU,CAAC,MAAMF,gBAAgB;AACxD,KAAK;EACH;EAEA,OAAOG,cAAQ,CAACG,SAAS,CAACD,GAAG;AAC/B,iBAAiB/E,WAAC,CAAC4B,UAAU,CAAChB,IAAI,CAAC;AACnC,QAAQ8C,iBAAiB;AACzB,SAASH,QAAQ,QAAQvD,WAAC,CAAC8C,SAAS,CAACS,QAAQ,CAAC,MAAMmB,gBAAgB;AACpE,GAAG;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_globalTypes","_constEnum","getFirstIdentifier","node","t","isIdentifier","left","transpileNamespace","path","allowNamespaces","declare","id","type","remove","get","buildCodeFrameError","name","value","handleNested","program","findParent","p","isProgram","registerGlobalType","scope","hasOwnBinding","replaceWith","registerDeclaration","replaceWithMultiple","getDeclaration","variableDeclaration","variableDeclarator","identifier","getMemberExpression","itemName","memberExpression","handleVariableDeclaration","hub","kind","file","declarations","every","declarator","init","assignmentExpression","bindingIdentifiers","getBindingIdentifiers","assignments","idName","push","cloneNode","expressionStatement","sequenceExpression","buildNestedAmbientModuleError","buildError","Error","parentExport","names","Set","realName","generateUid","body","namespaceTopLevel","isTSModuleBlock","exportNamedDeclaration","isEmpty","i","length","subNode","transformed","moduleName","has","add","splice","isTypeScript","declaration","EXPORTED_CONST_ENUMS_IN_NAMESPACE","nodes","fallthroughValue","objectExpression","memberExpr","template","expression","ast","statement"],"sources":["../src/namespace.ts"],"sourcesContent":["import { template, types as t, type NodePath } from \"@babel/core\";\n\nimport { registerGlobalType } from \"./global-types.ts\";\nimport { EXPORTED_CONST_ENUMS_IN_NAMESPACE } from \"./const-enum.ts\";\n\nexport function getFirstIdentifier(node: t.TSEntityName): t.Identifier {\n if (t.isIdentifier(node)) {\n return node;\n }\n // In Babel 8 TSEntityName also includes ThisExpression, however, a namespace\n // id must not be a ThisExpression or a TSQualifiedName { left: ThisExpression }.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n return getFirstIdentifier((node as t.TSQualifiedName).left);\n}\n\nexport default function transpileNamespace(\n path: NodePath<t.TSModuleDeclaration>,\n allowNamespaces: boolean,\n) {\n if (path.node.declare || path.node.id.type === \"StringLiteral\") {\n path.remove();\n return;\n }\n\n if (!allowNamespaces) {\n throw path\n .get(\"id\")\n .buildCodeFrameError(\n \"Namespace not marked type-only declare.\" +\n \" Non-declarative namespaces are only supported experimentally in Babel.\" +\n \" To enable and review caveats see:\" +\n \" https://babeljs.io/docs/en/babel-plugin-transform-typescript\",\n );\n }\n\n const name = getFirstIdentifier(path.node.id).name;\n const value = handleNested(path, path.node);\n if (value === null) {\n // This means that `path` is a type-only namespace.\n // We call `registerGlobalType` here to allow it to be stripped.\n const program = path.findParent(p => p.isProgram());\n registerGlobalType(program.scope, name);\n\n path.remove();\n } else if (path.scope.hasOwnBinding(name)) {\n path.replaceWith(value);\n } else {\n path.scope.registerDeclaration(\n path.replaceWithMultiple([getDeclaration(name), value])[0],\n );\n }\n}\n\nfunction getDeclaration(name: string) {\n return t.variableDeclaration(\"let\", [\n t.variableDeclarator(t.identifier(name)),\n ]);\n}\n\nfunction getMemberExpression(name: string, itemName: string) {\n return t.memberExpression(t.identifier(name), t.identifier(itemName));\n}\n\n/**\n * Convert export const foo = 1 to Namespace.foo = 1;\n *\n * @param {t.VariableDeclaration} node given variable declaration, e.g. `const foo = 1`\n * @param {string} name the generated unique namespace member name\n * @param {*} hub An instance implements HubInterface defined in `@babel/traverse` that can throw a code frame error\n */\nfunction handleVariableDeclaration(\n node: t.VariableDeclaration,\n name: string,\n hub: any,\n): t.Statement[] {\n if (node.kind !== \"const\") {\n throw hub.file.buildCodeFrameError(\n node,\n \"Namespaces exporting non-const are not supported by Babel.\" +\n \" Change to const or see:\" +\n \" https://babeljs.io/docs/en/babel-plugin-transform-typescript\",\n );\n }\n const { declarations } = node;\n if (\n declarations.every(\n (declarator): declarator is t.VariableDeclarator & { id: t.Identifier } =>\n t.isIdentifier(declarator.id),\n )\n ) {\n // `export const a = 1` transforms to `const a = N.a = 1`, the output\n // is smaller than `const a = 1; N.a = a`;\n for (const declarator of declarations) {\n declarator.init = t.assignmentExpression(\n \"=\",\n getMemberExpression(name, declarator.id.name),\n declarator.init,\n );\n }\n return [node];\n }\n // Now we have pattern in declarators\n // `export const [a] = 1` transforms to `const [a] = 1; N.a = a`\n const bindingIdentifiers = t.getBindingIdentifiers(node);\n const assignments = [];\n // getBindingIdentifiers returns an object without prototype.\n // eslint-disable-next-line guard-for-in\n for (const idName in bindingIdentifiers) {\n assignments.push(\n t.assignmentExpression(\n \"=\",\n getMemberExpression(name, idName),\n t.cloneNode(bindingIdentifiers[idName]),\n ),\n );\n }\n return [node, t.expressionStatement(t.sequenceExpression(assignments))];\n}\n\nfunction buildNestedAmbientModuleError(path: NodePath, node: t.Node) {\n return path.hub.buildError(\n node,\n \"Ambient modules cannot be nested in other modules or namespaces.\",\n Error,\n );\n}\n\nfunction handleNested(\n path: NodePath,\n node: t.TSModuleDeclaration,\n parentExport?: t.Expression,\n): t.Statement | null {\n const names = new Set();\n const realName =\n !process.env.BABEL_8_BREAKING || t.isIdentifier(node.id)\n ? (node.id as t.Identifier)\n : getFirstIdentifier(node.id as unknown as t.TSQualifiedName);\n\n const name = path.scope.generateUid(realName.name);\n\n const body = node.body;\n let id = node.id;\n let namespaceTopLevel: t.Statement[];\n if (process.env.BABEL_8_BREAKING) {\n if (t.isTSQualifiedName(id)) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n namespaceTopLevel = body.body;\n while (t.isTSQualifiedName(id)) {\n namespaceTopLevel = [\n t.exportNamedDeclaration(\n t.tsModuleDeclaration(\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n t.cloneNode(id.right),\n t.tsModuleBlock(namespaceTopLevel),\n ),\n ),\n ];\n\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n id = id.left;\n }\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n namespaceTopLevel = body.body;\n }\n } else {\n namespaceTopLevel = t.isTSModuleBlock(body)\n ? body.body\n : // We handle `namespace X.Y {}` as if it was\n // namespace X {\n // export namespace Y {}\n // }\n [t.exportNamedDeclaration(body)];\n }\n\n let isEmpty = true;\n\n for (let i = 0; i < namespaceTopLevel.length; i++) {\n const subNode = namespaceTopLevel[i];\n\n // The first switch is mainly to detect name usage. Only export\n // declarations require further transformation.\n switch (subNode.type) {\n case \"TSModuleDeclaration\": {\n if (!t.isIdentifier(subNode.id)) {\n throw buildNestedAmbientModuleError(path, subNode);\n }\n\n const transformed = handleNested(path, subNode);\n if (transformed !== null) {\n isEmpty = false;\n const moduleName = subNode.id.name;\n if (names.has(moduleName)) {\n namespaceTopLevel[i] = transformed;\n } else {\n names.add(moduleName);\n namespaceTopLevel.splice(\n i++,\n 1,\n getDeclaration(moduleName),\n transformed,\n );\n }\n }\n continue;\n }\n case \"TSEnumDeclaration\":\n case \"FunctionDeclaration\":\n case \"ClassDeclaration\":\n isEmpty = false;\n names.add(subNode.id.name);\n continue;\n case \"VariableDeclaration\": {\n isEmpty = false;\n // getBindingIdentifiers returns an object without prototype.\n // eslint-disable-next-line guard-for-in\n for (const name in t.getBindingIdentifiers(subNode)) {\n names.add(name);\n }\n continue;\n }\n default:\n isEmpty &&= t.isTypeScript(subNode);\n // Neither named declaration nor export, continue to next item.\n continue;\n case \"ExportNamedDeclaration\":\n // Export declarations get parsed using the next switch.\n }\n\n if (\"declare\" in subNode.declaration && subNode.declaration.declare) {\n continue;\n }\n\n // Transform the export declarations that occur inside of a namespace.\n switch (subNode.declaration.type) {\n case \"TSEnumDeclaration\":\n EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(subNode.declaration);\n // fallthrough\n case \"FunctionDeclaration\":\n case \"ClassDeclaration\": {\n isEmpty = false;\n const itemName = subNode.declaration.id.name;\n names.add(itemName);\n namespaceTopLevel.splice(\n i++,\n 1,\n subNode.declaration,\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n getMemberExpression(name, itemName),\n t.identifier(itemName),\n ),\n ),\n );\n break;\n }\n case \"VariableDeclaration\": {\n isEmpty = false;\n const nodes = handleVariableDeclaration(\n subNode.declaration,\n name,\n path.hub,\n );\n namespaceTopLevel.splice(i, nodes.length, ...nodes);\n i += nodes.length - 1;\n break;\n }\n case \"TSModuleDeclaration\": {\n if (!t.isIdentifier(subNode.declaration.id)) {\n throw buildNestedAmbientModuleError(path, subNode.declaration);\n }\n\n const transformed = handleNested(\n path,\n subNode.declaration,\n t.identifier(name),\n );\n if (transformed !== null) {\n isEmpty = false;\n const moduleName = subNode.declaration.id.name;\n if (names.has(moduleName)) {\n namespaceTopLevel[i] = transformed;\n } else {\n names.add(moduleName);\n namespaceTopLevel.splice(\n i++,\n 1,\n getDeclaration(moduleName),\n transformed,\n );\n }\n } else {\n namespaceTopLevel.splice(i, 1);\n i--;\n }\n }\n }\n }\n\n if (isEmpty) return null;\n\n // {}\n let fallthroughValue: t.Expression = t.objectExpression([]);\n\n if (parentExport) {\n const memberExpr = t.memberExpression(parentExport, realName);\n fallthroughValue = template.expression.ast`\n ${t.cloneNode(memberExpr)} ||\n (${t.cloneNode(memberExpr)} = ${fallthroughValue})\n `;\n }\n\n return template.statement.ast`\n (function (${t.identifier(name)}) {\n ${namespaceTopLevel}\n })(${realName} || (${t.cloneNode(realName)} = ${fallthroughValue}));\n `;\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,SAASG,kBAAkBA,CAACC,IAAoB,EAAgB;EACrE,IAAIC,WAAC,CAACC,YAAY,CAACF,IAAI,CAAC,EAAE;IACxB,OAAOA,IAAI;EACb;EAIA,OAAOD,kBAAkB,CAAEC,IAAI,CAAuBG,IAAI,CAAC;AAC7D;AAEe,SAASC,kBAAkBA,CACxCC,IAAqC,EACrCC,eAAwB,EACxB;EACA,IAAID,IAAI,CAACL,IAAI,CAACO,OAAO,IAAIF,IAAI,CAACL,IAAI,CAACQ,EAAE,CAACC,IAAI,KAAK,eAAe,EAAE;IAC9DJ,IAAI,CAACK,MAAM,CAAC,CAAC;IACb;EACF;EAEA,IAAI,CAACJ,eAAe,EAAE;IACpB,MAAMD,IAAI,CACPM,GAAG,CAAC,IAAI,CAAC,CACTC,mBAAmB,CAClB,yCAAyC,GACvC,yEAAyE,GACzE,oCAAoC,GACpC,+DACJ,CAAC;EACL;EAEA,MAAMC,IAAI,GAAGd,kBAAkB,CAACM,IAAI,CAACL,IAAI,CAACQ,EAAE,CAAC,CAACK,IAAI;EAClD,MAAMC,KAAK,GAAGC,YAAY,CAACV,IAAI,EAAEA,IAAI,CAACL,IAAI,CAAC;EAC3C,IAAIc,KAAK,KAAK,IAAI,EAA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C7DmB,gBAAgB,GAAGG,cAAQ,CAACC,UAAU,CAACC,GAAG;AAC9C,QAAQ/E,WAAC,CAAC8C,SAAS,CAAC8B,UAAU,CAAC;AAC/B,WAAW5E,WAAC,CAAC8C,SAAS,CAAC8B,UAAU,CAAC,MAAMF,gBAAgB;AACxD,KAAK;EACH;EAEA,OAAOG,cAAQ,CAACG,SAAS,CAACD,GAAG;AAC/B,iBAAiB/E,WAAC,CAAC4B,UAAU,CAAChB,IAAI,CAAC;AACnC,QAAQ8C,iBAAiB;AACzB,SAASH,QAAQ,QAAQvD,WAAC,CAAC8C,SAAS,CAACS,QAAQ,CAAC,MAAMmB,gBAAgB;AACpE,GAAG;AACH","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/plugin-transform-typescript",
3
- "version": "7.28.5",
3
+ "version": "7.28.6",
4
4
  "description": "Transform TypeScript into ES.next",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,19 +18,19 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "@babel/helper-annotate-as-pure": "^7.27.3",
21
- "@babel/helper-create-class-features-plugin": "^7.28.5",
22
- "@babel/helper-plugin-utils": "^7.27.1",
21
+ "@babel/helper-create-class-features-plugin": "^7.28.6",
22
+ "@babel/helper-plugin-utils": "^7.28.6",
23
23
  "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1",
24
- "@babel/plugin-syntax-typescript": "^7.27.1"
24
+ "@babel/plugin-syntax-typescript": "^7.28.6"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@babel/core": "^7.0.0-0"
28
28
  },
29
29
  "devDependencies": {
30
- "@babel/core": "^7.28.5",
30
+ "@babel/core": "^7.28.6",
31
31
  "@babel/helper-plugin-test-runner": "^7.27.1",
32
- "@babel/traverse": "^7.28.5",
33
- "@babel/types": "^7.28.5"
32
+ "@babel/traverse": "^7.28.6",
33
+ "@babel/types": "^7.28.6"
34
34
  },
35
35
  "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typescript",
36
36
  "engines": {
@@ -1 +1 @@
1
- {"version":3,"names":["_options","require","_string","_literal","NO_PLACEHOLDER","validate","placeholderPattern","createTemplateBuilder","formatter","defaultOpts","templateFnCache","WeakMap","templateAstCache","cachedOpts","Object","assign","tpl","args","length","Error","extendedTrace","stringTemplate","merge","Array","isArray","builder","get","literalTemplate","set","ast","fn","rootStack","error","stack","split","slice","join","arg","err"],"sources":["../src/builder.ts"],"sourcesContent":["import { merge, validate } from \"./options.ts\";\nimport type {\n TemplateOpts,\n PublicOpts,\n PublicReplacements,\n} from \"./options.ts\";\nimport type { Formatter } from \"./formatters.ts\";\n\nimport stringTemplate from \"./string.ts\";\nimport literalTemplate from \"./literal.ts\";\n\nexport type TemplateBuilder<T> = {\n // Build a new builder, merging the given options with the previous ones.\n (opts: PublicOpts): TemplateBuilder<T>;\n\n // Building from a string produces an AST builder function by default.\n (tpl: string, opts?: PublicOpts): (replacements?: PublicReplacements) => T;\n\n // Building from a template literal produces an AST builder function by default.\n (\n tpl: TemplateStringsArray,\n ...args: Array<unknown>\n ): (replacements?: PublicReplacements) => T;\n\n // Allow users to explicitly create templates that produce ASTs, skipping\n // the need for an intermediate function.\n ast: {\n (tpl: string, opts?: PublicOpts): T;\n (tpl: TemplateStringsArray, ...args: Array<unknown>): T;\n };\n};\n\n// Prebuild the options that will be used when parsing a `.ast` template.\n// These do not use a pattern because there is no way for users to pass in\n// replacement patterns to begin with, and disabling pattern matching means\n// users have more flexibility in what type of content they have in their\n// template JS.\nconst NO_PLACEHOLDER: TemplateOpts = validate({\n placeholderPattern: false,\n});\n\nexport default function createTemplateBuilder<T>(\n formatter: Formatter<T>,\n defaultOpts?: TemplateOpts,\n): TemplateBuilder<T> {\n const templateFnCache = new WeakMap();\n const templateAstCache = new WeakMap();\n const cachedOpts = defaultOpts || validate(null);\n\n return Object.assign(\n ((tpl, ...args) => {\n if (typeof tpl === \"string\") {\n if (args.length > 1) throw new Error(\"Unexpected extra params.\");\n return extendedTrace(\n stringTemplate(formatter, tpl, merge(cachedOpts, validate(args[0]))),\n );\n } else if (Array.isArray(tpl)) {\n let builder = templateFnCache.get(tpl);\n if (!builder) {\n builder = literalTemplate(formatter, tpl, cachedOpts);\n templateFnCache.set(tpl, builder);\n }\n return extendedTrace(builder(args));\n } else if (typeof tpl === \"object\" && tpl) {\n if (args.length > 0) throw new Error(\"Unexpected extra params.\");\n return createTemplateBuilder(\n formatter,\n merge(cachedOpts, validate(tpl)),\n );\n }\n throw new Error(`Unexpected template param ${typeof tpl}`);\n }) as TemplateBuilder<T>,\n {\n ast: (tpl: string | Array<string>, ...args: Array<unknown>) => {\n if (typeof tpl === \"string\") {\n if (args.length > 1) throw new Error(\"Unexpected extra params.\");\n return stringTemplate(\n formatter,\n tpl,\n merge(merge(cachedOpts, validate(args[0])), NO_PLACEHOLDER),\n )();\n } else if (Array.isArray(tpl)) {\n let builder = templateAstCache.get(tpl);\n if (!builder) {\n builder = literalTemplate(\n formatter,\n tpl,\n merge(cachedOpts, NO_PLACEHOLDER),\n );\n templateAstCache.set(tpl, builder);\n }\n return builder(args)();\n }\n\n throw new Error(`Unexpected template param ${typeof tpl}`);\n },\n },\n );\n}\n\nfunction extendedTrace<Arg, Result>(\n fn: (_: Arg) => Result,\n): (_: Arg) => Result {\n // Since we lazy parse the template, we get the current stack so we have the\n // original stack to append if it errors when parsing\n let rootStack = \"\";\n try {\n // error stack gets populated in IE only on throw\n // (https://msdn.microsoft.com/en-us/library/hh699850(v=vs.94).aspx)\n throw new Error();\n } catch (error) {\n if (error.stack) {\n // error.stack does not exists in IE <= 9\n // We slice off the top 3 items in the stack to remove the call to\n // 'extendedTrace', and the anonymous builder function, with the final\n // stripped line being the error message itself since we threw it\n // in the first place and it doesn't matter.\n rootStack = error.stack.split(\"\\n\").slice(3).join(\"\\n\");\n }\n }\n\n return (arg: Arg) => {\n try {\n return fn(arg);\n } catch (err) {\n err.stack += `\\n =============\\n${rootStack}`;\n throw err;\n }\n };\n}\n"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;EAGpB,IAAIC,SAAS,GAAG,EAAE;EAClB,IAAI;IAGF,MAAM,IAAIZ,KAAK,CAAC,CAAC;EACnB,CAAC,CAAC,OAAOa,KAAK,EAAE;IACd,IAAIA,KAAK,CAACC,KAAK,EAAE;MAMfF,SAAS,GAAGC,KAAK,CAACC,KAAK,CAACC,KAAK,CAAC,IAAI,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;IACzD;EACF;EAEA,OAAQC,GAAQ,IAAK;IACnB,IAAI;MACF,OAAOP,EAAE,CAACO,GAAG,CAAC;IAChB,CAAC,CAAC,OAAOC,GAAG,EAAE;MACZA,GAAG,CAACL,KAAK,IAAI,wBAAwBF,SAAS,EAAE;MAChD,MAAMO,GAAG;IACX;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_options","require","_string","_literal","NO_PLACEHOLDER","validate","placeholderPattern","createTemplateBuilder","formatter","defaultOpts","templateFnCache","WeakMap","templateAstCache","cachedOpts","Object","assign","tpl","args","length","Error","extendedTrace","stringTemplate","merge","Array","isArray","builder","get","literalTemplate","set","ast","fn","rootStack","error","stack","split","slice","join","arg","err"],"sources":["../src/builder.ts"],"sourcesContent":["import { merge, validate } from \"./options.ts\";\nimport type {\n TemplateOpts,\n PublicOpts,\n PublicReplacements,\n} from \"./options.ts\";\nimport type { Formatter } from \"./formatters.ts\";\n\nimport stringTemplate from \"./string.ts\";\nimport literalTemplate from \"./literal.ts\";\n\nexport type TemplateBuilder<T> = {\n // Build a new builder, merging the given options with the previous ones.\n (opts: PublicOpts): TemplateBuilder<T>;\n\n // Building from a string produces an AST builder function by default.\n (tpl: string, opts?: PublicOpts): (replacements?: PublicReplacements) => T;\n\n // Building from a template literal produces an AST builder function by default.\n (\n tpl: TemplateStringsArray,\n ...args: unknown[]\n ): (replacements?: PublicReplacements) => T;\n\n // Allow users to explicitly create templates that produce ASTs, skipping\n // the need for an intermediate function.\n ast: {\n (tpl: string, opts?: PublicOpts): T;\n (tpl: TemplateStringsArray, ...args: unknown[]): T;\n };\n};\n\n// Prebuild the options that will be used when parsing a `.ast` template.\n// These do not use a pattern because there is no way for users to pass in\n// replacement patterns to begin with, and disabling pattern matching means\n// users have more flexibility in what type of content they have in their\n// template JS.\nconst NO_PLACEHOLDER: TemplateOpts = validate({\n placeholderPattern: false,\n});\n\nexport default function createTemplateBuilder<T>(\n formatter: Formatter<T>,\n defaultOpts?: TemplateOpts,\n): TemplateBuilder<T> {\n const templateFnCache = new WeakMap();\n const templateAstCache = new WeakMap();\n const cachedOpts = defaultOpts || validate(null);\n\n return Object.assign(\n ((tpl, ...args) => {\n if (typeof tpl === \"string\") {\n if (args.length > 1) throw new Error(\"Unexpected extra params.\");\n return extendedTrace(\n stringTemplate(formatter, tpl, merge(cachedOpts, validate(args[0]))),\n );\n } else if (Array.isArray(tpl)) {\n let builder = templateFnCache.get(tpl);\n if (!builder) {\n builder = literalTemplate(formatter, tpl, cachedOpts);\n templateFnCache.set(tpl, builder);\n }\n return extendedTrace(builder(args));\n } else if (typeof tpl === \"object\" && tpl) {\n if (args.length > 0) throw new Error(\"Unexpected extra params.\");\n return createTemplateBuilder(\n formatter,\n merge(cachedOpts, validate(tpl)),\n );\n }\n throw new Error(`Unexpected template param ${typeof tpl}`);\n }) as TemplateBuilder<T>,\n {\n ast: (tpl: string | string[], ...args: unknown[]) => {\n if (typeof tpl === \"string\") {\n if (args.length > 1) throw new Error(\"Unexpected extra params.\");\n return stringTemplate(\n formatter,\n tpl,\n merge(merge(cachedOpts, validate(args[0])), NO_PLACEHOLDER),\n )();\n } else if (Array.isArray(tpl)) {\n let builder = templateAstCache.get(tpl);\n if (!builder) {\n builder = literalTemplate(\n formatter,\n tpl,\n merge(cachedOpts, NO_PLACEHOLDER),\n );\n templateAstCache.set(tpl, builder);\n }\n return builder(args)();\n }\n\n throw new Error(`Unexpected template param ${typeof tpl}`);\n },\n },\n );\n}\n\nfunction extendedTrace<Arg, Result>(\n fn: (_: Arg) => Result,\n): (_: Arg) => Result {\n // Since we lazy parse the template, we get the current stack so we have the\n // original stack to append if it errors when parsing\n let rootStack = \"\";\n try {\n // error stack gets populated in IE only on throw\n // (https://msdn.microsoft.com/en-us/library/hh699850(v=vs.94).aspx)\n throw new Error();\n } catch (error) {\n if (error.stack) {\n // error.stack does not exists in IE <= 9\n // We slice off the top 3 items in the stack to remove the call to\n // 'extendedTrace', and the anonymous builder function, with the final\n // stripped line being the error message itself since we threw it\n // in the first place and it doesn't matter.\n rootStack = error.stack.split(\"\\n\").slice(3).join(\"\\n\");\n }\n }\n\n return (arg: Arg) => {\n try {\n return fn(arg);\n } catch (err) {\n err.stack += `\\n =============\\n${rootStack}`;\n throw err;\n }\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AA4BA,MAAMG,cAA4B,GAAG,IAAAC,iBAAQ,EAAC;EAC5CC,kBAAkB,EAAE;AACtB,CAAC,CAAC;AAEa,SAASC,qBAAqBA,CAC3CC,SAAuB,EACvBC,WAA0B,EACN;EACpB,MAAMC,eAAe,GAAG,IAAIC,OAAO,CAAC,CAAC;EACrC,MAAMC,gBAAgB,GAAG,IAAID,OAAO,CAAC,CAAC;EACtC,MAAME,UAAU,GAAGJ,WAAW,IAAI,IAAAJ,iBAAQ,EAAC,IAAI,CAAC;EAEhD,OAAOS,MAAM,CAACC,MAAM,CACjB,CAACC,GAAG,EAAE,GAAGC,IAAI,KAAK;IACjB,IAAI,OAAOD,GAAG,KAAK,QAAQ,EAAE;MAC3B,IAAIC,IAAI,CAACC,MAAM,GAAG,CAAC,EAAE,MAAM,IAAIC,KAAK,CAAC,0BAA0B,CAAC;MAChE,OAAOC,aAAa,CAClB,IAAAC,eAAc,EAACb,SAAS,EAAEQ,GAAG,EAAE,IAAAM,cAAK,EAACT,UAAU,EAAE,IAAAR,iBAAQ,EAACY,IAA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C7B,IAAIS,OAAO,GAAGb,gBAAgB,CAACc,GAAG,CAACV,GAAG,CAAC;QACvC,IAAI,CAACS,OAAO,EAAE;UACZA,OAAO,GAAG,IAAAE,gBAAe,EACvBnB,SAAS,EACTQ,GAAG,EACH,IAAAM,cAAK,EAACT,UAAU,EAAET,cAAc,CAClC,CAAC;UACDQ,gBAAgB,CAACgB,GAAG,CAACZ,GAAG,EAAES,OAAO,CAAC;QACpC;QACA,OAAOA,OAAO,CAACR,IAAI,CAAC,CAAC,CAAC;MACxB;MAEA,MAAM,IAAIE,KAAK,CAAC,6BAA6B,OAAOH,GAAG,EAAE,CAAC;IAC5D;EACF,CACF,CAAC;AACH;AAEA,SAASI,aAAaA,CACpBU,EAAsB,EACF;EAGpB,IAAIC,SAAS,GAAG,EAAE;EAClB,IAAI;IAGF,MAAM,IAAIZ,KAAK,CAAC,CAAC;EACnB,CAAC,CAAC,OAAOa,KAAK,EAAE;IACd,IAAIA,KAAK,CAACC,KAAK,EAAE;MAMfF,SAAS,GAAGC,KAAK,CAACC,KAAK,CAACC,KAAK,CAAC,IAAI,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;IACzD;EACF;EAEA,OAAQC,GAAQ,IAAK;IACnB,IAAI;MACF,OAAOP,EAAE,CAACO,GAAG,CAAC;IAChB,CAAC,CAAC,OAAOC,GAAG,EAAE;MACZA,GAAG,CAACL,KAAK,IAAI,wBAAwBF,SAAS,EAAE;MAChD,MAAMO,GAAG;IACX;EACF,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_t","require","assertExpressionStatement","makeStatementFormatter","fn","code","str","validate","unwrap","ast","program","body","slice","smart","exports","length","statements","statement","Error","expression","start","stmt"],"sources":["../src/formatters.ts"],"sourcesContent":["import { assertExpressionStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nexport type Formatter<T> = {\n code: (source: string) => string;\n validate: (ast: t.File) => void;\n unwrap: (ast: t.File) => T;\n};\n\nfunction makeStatementFormatter<T>(\n fn: (statements: Array<t.Statement>) => T,\n): Formatter<T> {\n return {\n // We need to prepend a \";\" to force statement parsing so that\n // ExpressionStatement strings won't be parsed as directives.\n // Alongside that, we also prepend a comment so that when a syntax error\n // is encountered, the user will be less likely to get confused about\n // where the random semicolon came from.\n code: str => `/* @babel/template */;\\n${str}`,\n validate: () => {},\n unwrap: (ast: t.File): T => {\n return fn(ast.program.body.slice(1));\n },\n };\n}\n\nexport const smart = makeStatementFormatter(body => {\n if (body.length > 1) {\n return body;\n } else {\n return body[0];\n }\n});\n\nexport const statements = makeStatementFormatter(body => body);\n\nexport const statement = makeStatementFormatter(body => {\n // We do this validation when unwrapping since the replacement process\n // could have added or removed statements.\n if (body.length === 0) {\n throw new Error(\"Found nothing to return.\");\n }\n if (body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n\n return body[0];\n});\n\nexport const expression: Formatter<t.Expression> = {\n code: str => `(\\n${str}\\n)`,\n validate: ast => {\n if (ast.program.body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n if (expression.unwrap(ast).start === 0) {\n throw new Error(\"Parse result included parens.\");\n }\n },\n unwrap: ({ program }) => {\n const [stmt] = program.body;\n assertExpressionStatement(stmt);\n return stmt.expression;\n },\n};\n\nexport const program: Formatter<t.Program> = {\n code: str => str,\n validate: () => {},\n unwrap: ast => ast.program,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAAyD;EAAhDC;AAAyB,IAAAF,EAAA;AASlC,SAASG,sBAAsBA,CAC7BC,EAAyC,EAC3B;EACd,OAAO;IAMLC,IAAI,EAAEC,GAAG,IAAI,2BAA2BA,GAAG,EAAE;IAC7CC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;IAClBC,MAAM,EAAGC,GAAW,IAAQ;MAC1B,OAAOL,EAAE,CAACK,GAAG,CAACC,OAAO,CAACC,IAAI,CAACC,KAAK,C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AAyB,CAACmB,IAAI,CAAC;IAC/B,OAAOA,IAAI,CAACF,UAAU;EACxB;AACF,CAAC;AAEM,MAAMT,OAA6B,GAAAI,OAAA,CAAAJ,OAAA,GAAG;EAC3CL,IAAI,EAAEC,GAAG,IAAIA,GAAG;EAChBC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClBC,MAAM,EAAEC,GAAG,IAAIA,GAAG,CAACC;AACrB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_t","require","assertExpressionStatement","makeStatementFormatter","fn","code","str","validate","unwrap","ast","program","body","slice","smart","exports","length","statements","statement","Error","expression","start","stmt"],"sources":["../src/formatters.ts"],"sourcesContent":["import { assertExpressionStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nexport type Formatter<T> = {\n code: (source: string) => string;\n validate: (ast: t.File) => void;\n unwrap: (ast: t.File) => T;\n};\n\nfunction makeStatementFormatter<T>(\n fn: (statements: t.Statement[]) => T,\n): Formatter<T> {\n return {\n // We need to prepend a \";\" to force statement parsing so that\n // ExpressionStatement strings won't be parsed as directives.\n // Alongside that, we also prepend a comment so that when a syntax error\n // is encountered, the user will be less likely to get confused about\n // where the random semicolon came from.\n code: str => `/* @babel/template */;\\n${str}`,\n validate: () => {},\n unwrap: (ast: t.File): T => {\n return fn(ast.program.body.slice(1));\n },\n };\n}\n\nexport const smart = makeStatementFormatter(body => {\n if (body.length > 1) {\n return body;\n } else {\n return body[0];\n }\n});\n\nexport const statements = makeStatementFormatter(body => body);\n\nexport const statement = makeStatementFormatter(body => {\n // We do this validation when unwrapping since the replacement process\n // could have added or removed statements.\n if (body.length === 0) {\n throw new Error(\"Found nothing to return.\");\n }\n if (body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n\n return body[0];\n});\n\nexport const expression: Formatter<t.Expression> = {\n code: str => `(\\n${str}\\n)`,\n validate: ast => {\n if (ast.program.body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n if (expression.unwrap(ast).start === 0) {\n throw new Error(\"Parse result included parens.\");\n }\n },\n unwrap: ({ program }) => {\n const [stmt] = program.body;\n assertExpressionStatement(stmt);\n return stmt.expression;\n },\n};\n\nexport const program: Formatter<t.Program> = {\n code: str => str,\n validate: () => {},\n unwrap: ast => ast.program,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAAyD;EAAhDC;AAAyB,IAAAF,EAAA;AASlC,SAASG,sBAAsBA,CAC7BC,EAAoC,EACtB;EACd,OAAO;IAMLC,IAAI,EAAEC,GAAG,IAAI,2BAA2BA,GAAG,EAAE;IAC7CC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;IAClBC,MAAM,EAAGC,GAAW,IAAQ;MAC1B,OAAOL,EAAE,CAACK,GAAG,CAACC,OAAO,CAACC,IAAI,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtC;EACF,CAAC;AACH;AAEO,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAGV,sBAAsB,CAACQ,IAAI,IAAI;EAClD,IAAIA,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;IACnB,OAAOJ,IAAI;EACb,CAAC,MAAM;IACL,OAAOA,IAAI,CAAC,CAAC,CAAC;EAChB;AACF,CAAC,CAAC;AAEK,MAAMK,UAAU,GAAAF,OAAA,CAAAE,UAAA,GAAGb,sBAAsB,CAACQ,IAAI,IAAIA,IAAI,CAAC;AAEvD,MAAMM,SAAS,GAAAH,OAAA,CAAAG,SAAA,GAAGd,sBAAsB,CAACQ,IAAI,IAAI;EAGtD,IAAIA,IAAI,CAACI,MAAM,KAAK,CAAC,EAAE;IACrB,MAAM,IAAIG,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EACA,IAAIP,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;IACnB,MAAM,IAAIG,KAAK,CAAC,0CAA0C,CAAC;EAC7D;EAEA,OAAOP,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC;AAEK,MAAMQ,UAAmC,GAAAL,OAAA,CAAAK,UAAA,GAAG;EACjDd,IAAI,EAAEC,GAAG,IAAI,MAAMA,GAAG,KAAK;EAC3BC,QAAQ,EAAEE,GAAG,IAAI;IACf,IAAIA,GAAG,CAACC,OAAO,CAACC,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;MAC/B,MAAM,IAAIG,KAAK,CAAC,0CAA0C,CAAC;IAC7D;IACA,IAAIC,UAAU,CAACX,MAAM,CAACC,GAAG,CAAC,CAACW,KAAK,KAAK,CAAC,EAAE;MACtC,MAAM,IAAIF,KAAK,CAAC,+BAA+B,CAAC;IAClD;EACF,CAAC;EACDV,MAAM,EAAEA,CAAC;IAAEE;EAAQ,CAAC,KAAK;IACvB,MAAM,CAACW,IAAI,CAAC,GAAGX,OAAO,CAACC,IAAI;IAC3BT,yBAAyB,CAACmB,IAAI,CAAC;IAC/B,OAAOA,IAAI,CAACF,UAAU;EACxB;AACF,CAAC;AAEM,MAAMT,OAA6B,GAAAI,OAAA,CAAAJ,OAAA,GAAG;EAC3CL,IAAI,EAAEC,GAAG,IAAIA,GAAG;EAChBC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClBC,MAAM,EAAEC,GAAG,IAAIA,GAAG,CAACC;AACrB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_options","require","_parse","_populate","literalTemplate","formatter","tpl","opts","metadata","names","buildLiteralData","arg","defaultReplacements","forEach","replacement","i","replacements","normalizeReplacements","Object","keys","key","hasOwnProperty","call","Error","unwrap","populatePlaceholders","assign","prefix","raw","join","includes","code","buildTemplateCode","parseAndBuildMetadata","parser","placeholderWhitelist","Set","concat","Array","from","placeholderPattern","preserveComments","syntacticPlaceholders","length","value","push"],"sources":["../src/literal.ts"],"sourcesContent":["import type { Formatter } from \"./formatters.ts\";\nimport type { TemplateReplacements, TemplateOpts } from \"./options.ts\";\nimport { normalizeReplacements } from \"./options.ts\";\nimport parseAndBuildMetadata from \"./parse.ts\";\nimport populatePlaceholders from \"./populate.ts\";\n\nexport default function literalTemplate<T>(\n formatter: Formatter<T>,\n tpl: Array<string>,\n opts: TemplateOpts,\n): (_: Array<unknown>) => (_: unknown) => T {\n const { metadata, names } = buildLiteralData(formatter, tpl, opts);\n\n return arg => {\n const defaultReplacements: TemplateReplacements = {};\n arg.forEach((replacement, i) => {\n defaultReplacements[names[i]] = replacement;\n });\n\n return (arg: unknown) => {\n const replacements = normalizeReplacements(arg);\n\n if (replacements) {\n Object.keys(replacements).forEach(key => {\n if (Object.hasOwn(defaultReplacements, key)) {\n throw new Error(\"Unexpected replacement overlap.\");\n }\n });\n }\n\n return formatter.unwrap(\n populatePlaceholders(\n metadata,\n replacements\n ? Object.assign(replacements, defaultReplacements)\n : defaultReplacements,\n ),\n );\n };\n };\n}\n\nfunction buildLiteralData<T>(\n formatter: Formatter<T>,\n tpl: Array<string>,\n opts: TemplateOpts,\n) {\n let prefix = \"BABEL_TPL$\";\n\n const raw = tpl.join(\"\");\n\n do {\n // If there are cases where the template already contains $$BABEL_TPL$0 or any other\n // matching pattern, we keep adding \"$$\" characters until a unique prefix\n // is found.\n prefix = \"$$\" + prefix;\n } while (raw.includes(prefix));\n\n const { names, code } = buildTemplateCode(tpl, prefix);\n\n const metadata = parseAndBuildMetadata(formatter, formatter.code(code), {\n parser: opts.parser,\n\n // Explicitly include our generated names in the whitelist so users never\n // have to think about whether their placeholder pattern will match.\n placeholderWhitelist: new Set(\n names.concat(\n opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [],\n ),\n ),\n placeholderPattern: opts.placeholderPattern,\n preserveComments: opts.preserveComments,\n syntacticPlaceholders: opts.syntacticPlaceholders,\n });\n\n return { metadata, names };\n}\n\nfunction buildTemplateCode(\n tpl: Array<string>,\n prefix: string,\n): { names: Array<string>; code: string } {\n const names = [];\n\n let code = tpl[0];\n\n for (let i = 1; i < tpl.length; i++) {\n const value = `${prefix}${i - 1}`;\n names.push(value);\n\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]}
1
+ {"version":3,"names":["_options","require","_parse","_populate","literalTemplate","formatter","tpl","opts","metadata","names","buildLiteralData","arg","defaultReplacements","forEach","replacement","i","replacements","normalizeReplacements","Object","keys","key","hasOwnProperty","call","Error","unwrap","populatePlaceholders","assign","prefix","raw","join","includes","code","buildTemplateCode","parseAndBuildMetadata","parser","placeholderWhitelist","Set","concat","Array","from","placeholderPattern","preserveComments","syntacticPlaceholders","length","value","push"],"sources":["../src/literal.ts"],"sourcesContent":["import type { Formatter } from \"./formatters.ts\";\nimport type { TemplateReplacements, TemplateOpts } from \"./options.ts\";\nimport { normalizeReplacements } from \"./options.ts\";\nimport parseAndBuildMetadata from \"./parse.ts\";\nimport populatePlaceholders from \"./populate.ts\";\n\nexport default function literalTemplate<T>(\n formatter: Formatter<T>,\n tpl: string[],\n opts: TemplateOpts,\n): (_: unknown[]) => (_: unknown) => T {\n const { metadata, names } = buildLiteralData(formatter, tpl, opts);\n\n return arg => {\n const defaultReplacements: TemplateReplacements = {};\n arg.forEach((replacement, i) => {\n defaultReplacements[names[i]] = replacement;\n });\n\n return (arg: unknown) => {\n const replacements = normalizeReplacements(arg);\n\n if (replacements) {\n Object.keys(replacements).forEach(key => {\n if (Object.hasOwn(defaultReplacements, key)) {\n throw new Error(\"Unexpected replacement overlap.\");\n }\n });\n }\n\n return formatter.unwrap(\n populatePlaceholders(\n metadata,\n replacements\n ? Object.assign(replacements, defaultReplacements)\n : defaultReplacements,\n ),\n );\n };\n };\n}\n\nfunction buildLiteralData<T>(\n formatter: Formatter<T>,\n tpl: string[],\n opts: TemplateOpts,\n) {\n let prefix = \"BABEL_TPL$\";\n\n const raw = tpl.join(\"\");\n\n do {\n // If there are cases where the template already contains $$BABEL_TPL$0 or any other\n // matching pattern, we keep adding \"$$\" characters until a unique prefix\n // is found.\n prefix = \"$$\" + prefix;\n } while (raw.includes(prefix));\n\n const { names, code } = buildTemplateCode(tpl, prefix);\n\n const metadata = parseAndBuildMetadata(formatter, formatter.code(code), {\n parser: opts.parser,\n\n // Explicitly include our generated names in the whitelist so users never\n // have to think about whether their placeholder pattern will match.\n placeholderWhitelist: new Set(\n names.concat(\n opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [],\n ),\n ),\n placeholderPattern: opts.placeholderPattern,\n preserveComments: opts.preserveComments,\n syntacticPlaceholders: opts.syntacticPlaceholders,\n });\n\n return { metadata, names };\n}\n\nfunction buildTemplateCode(\n tpl: string[],\n prefix: string,\n): { names: string[]; code: string } {\n const names = [];\n\n let code = tpl[0];\n\n for (let i = 1; i < tpl.length; i++) {\n const value = `${prefix}${i - 1}`;\n names.push(value);\n\n code += value + tpl[i];\n }\n\n return { names, code };\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEe,SAASG,eAAeA,CACrCC,SAAuB,EACvBC,GAAa,EACbC,IAAkB,EACmB;EACrC,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGC,gBAAgB,CAACL,SAAS,EAAEC,GAAG,EAAEC,IAAI,CAAC;EAElE,OAAOI,GAAG,IAAI;IACZ,MAAMC,mBAAyC,GAAG,CAAC,CAAC;IACpDD,GAAG,CAACE,OAAO,CAAC,CAACC,WAAW,EAAEC,CAAC,KAAK;MAC9BH,mBAAmB,CAACH,KAAK,CAACM,CAAC,CAAC,CAAC,GAAGD,WAAW;IAC7C,CAAC,CAAC;IAEF,OAAQH,GAAY,IAAK;MACvB,MAAMK,YAAY,GAAG,IAAAC,8BAAqB,EAACN,GAAG,CAAC;MAE/C,IAAIK,YAAY,EAAE;QAChBE,MAAM,CAACC,IAAI,CAACH,YAAY,CAAC,CAACH,OAAO,CAACO,GAAG,IAAI;UACvC,IAAIC,cAAA,CAAAC,IAAA,CAAcV,mBAAmB,EAAEQ,GAAG,CAAC,EAAE;YAC3C,MAAM,IAAIG,KAAK,CAAC,iCAAiC,CAAC;UACp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,GAAGzB,GAAG,CAAC,CAAC,CAAC;EAEjB,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,GAAG,CAACqC,MAAM,EAAE5B,CAAC,EAAE,EAAE;IACnC,MAAM6B,KAAK,GAAG,GAAGjB,MAAM,GAAGZ,CAAC,GAAG,CAAC,EAAE;IACjCN,KAAK,CAACoC,IAAI,CAACD,KAAK,CAAC;IAEjBb,IAAI,IAAIa,KAAK,GAAGtC,GAAG,CAACS,CAAC,CAAC;EACxB;EAEA,OAAO;IAAEN,KAAK;IAAEsB;EAAK,CAAC;AACxB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["merge","a","b","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","parser","Object","assign","validate","opts","Error","_ref","_objectWithoutPropertiesLoose","_excluded","Set","RegExp","undefined","normalizeReplacements","replacements","Array","isArray","reduce","acc","replacement","i"],"sources":["../src/options.ts"],"sourcesContent":["import type { ParserOptions as ParserOpts } from \"@babel/parser\";\n\nexport type { ParserOpts };\n\n/**\n * These are the options that 'babel-template' actually accepts and typechecks\n * when called. All other options are passed through to the parser.\n */\nexport type PublicOpts = {\n /**\n * A set of placeholder names to automatically accept, ignoring the given\n * pattern entirely.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderWhitelist?: Set<string>;\n /**\n * A pattern to search for when looking for Identifier and StringLiteral\n * nodes that can be replaced.\n *\n * 'false' will disable placeholder searching entirely, leaving only the\n * 'placeholderWhitelist' value to find replacements.\n *\n * Defaults to /^[_$A-Z0-9]+$/.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderPattern?: RegExp | false;\n /**\n * 'true' to pass through comments from the template into the resulting AST,\n * or 'false' to automatically discard comments. Defaults to 'false'.\n */\n preserveComments?: boolean;\n /**\n * 'true' to use %%foo%% style placeholders, 'false' to use legacy placeholders\n * described by placeholderPattern or placeholderWhitelist.\n * When it is not set, it behaves as 'true' if there are syntactic placeholders,\n * otherwise as 'false'.\n */\n syntacticPlaceholders?: boolean | null;\n} & ParserOpts;\n\nexport type TemplateOpts = {\n parser: ParserOpts;\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n preserveComments?: boolean;\n syntacticPlaceholders?: boolean;\n};\n\nexport function merge(a: TemplateOpts, b: TemplateOpts): TemplateOpts {\n const {\n placeholderWhitelist = a.placeholderWhitelist,\n placeholderPattern = a.placeholderPattern,\n preserveComments = a.preserveComments,\n syntacticPlaceholders = a.syntacticPlaceholders,\n } = b;\n\n return {\n parser: {\n ...a.parser,\n ...b.parser,\n },\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n };\n}\n\nexport function validate(opts: unknown): TemplateOpts {\n if (opts != null && typeof opts !== \"object\") {\n throw new Error(\"Unknown template options.\");\n }\n\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n ...parser\n } = opts || ({} as any);\n\n if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) {\n throw new Error(\n \"'.placeholderWhitelist' must be a Set, null, or undefined\",\n );\n }\n\n if (\n placeholderPattern != null &&\n !(placeholderPattern instanceof RegExp) &&\n placeholderPattern !== false\n ) {\n throw new Error(\n \"'.placeholderPattern' must be a RegExp, false, null, or undefined\",\n );\n }\n\n if (preserveComments != null && typeof preserveComments !== \"boolean\") {\n throw new Error(\n \"'.preserveComments' must be a boolean, null, or undefined\",\n );\n }\n\n if (\n syntacticPlaceholders != null &&\n typeof syntacticPlaceholders !== \"boolean\"\n ) {\n throw new Error(\n \"'.syntacticPlaceholders' must be a boolean, null, or undefined\",\n );\n }\n if (\n syntacticPlaceholders === true &&\n (placeholderWhitelist != null || placeholderPattern != null)\n ) {\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n return {\n parser,\n placeholderWhitelist: placeholderWhitelist || undefined,\n placeholderPattern:\n placeholderPattern == null ? undefined : placeholderPattern,\n preserveComments: preserveComments == null ? undefined : preserveComments,\n syntacticPlaceholders:\n syntacticPlaceholders == null ? undefined : syntacticPlaceholders,\n };\n}\n\nexport type PublicReplacements = { [x: string]: unknown } | Array<unknown>;\nexport type TemplateReplacements = { [x: string]: unknown } | void;\n\nexport function normalizeReplacements(\n replacements: unknown,\n): TemplateReplacements {\n if (Array.isArray(replacements)) {\n return replacements.reduce((acc, replacement, i) => {\n acc[\"$\" + i] = replacement;\n return acc;\n }, {});\n } else if (typeof replacements === \"object\" || replacements == null) {\n return (replacements as any) || undefined;\n }\n\n throw new Error(\n \"Template replacements must be an array, object, null, or undefined\",\n );\n}\n"],"mappings":";;;;;;;;;;AAkDO,SAASA,KAAKA,CAACC,CAAe,EAAEC,CAAe,EAAgB;EACpE,MAAM;IACJC,oBAAoB,GAAGF,CAAC,CAACE,oBAAoB;IAC7CC,kBAAkB,GAAGH,CAAC,CAACG,kBAAkB;IACzCC,gBAAgB,GAAGJ,CAAC,CAACI,gBAAgB;IACrCC,qBAAqB,GAAGL,CAAC,CAACK;EAC5B,CAAC,GAAGJ,CAAC;EAEL,OAAO;IACLK,MAAM,EAAAC,MAAA,CAAAC,MAAA,KACDR,CAAC,CAACM,MAAM,EACRL,CAAC,CAACK,MAAM,CACZ;IACDJ,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC;AACH;AAEO,SAASI,QAAQA,CAACC,IAAa,EAAgB;EACpD,IAAIA,IAAI,IAAI,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5C,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EAC9C;EAEA,MAAAC,IAAA,GAMIF,IAAI,IAAK,CAAC,CAAS;IANjB;MACJR,oBAAoB;MACpBC,kBAAkB;MAClBC,gBAAgB;MAChBC;IAEF,CAAC,GAAAO,IAAA;IADIN,MAAM,GAAAO,6BAAA,CAAAD,IAAA,EAAAE,SAAA;E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AOD,GAAG;IACZ,CAAC,EAAE,CAAC,CAAC,CAAC;EACR,CAAC,MAAM,IAAI,OAAOJ,YAAY,KAAK,QAAQ,IAAIA,YAAY,IAAI,IAAI,EAAE;IACnE,OAAQA,YAAY,IAAYF,SAAS;EAC3C;EAEA,MAAM,IAAIN,KAAK,CACb,oEACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["merge","a","b","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","parser","Object","assign","validate","opts","Error","_ref","_objectWithoutPropertiesLoose","_excluded","Set","RegExp","undefined","normalizeReplacements","replacements","Array","isArray","reduce","acc","replacement","i"],"sources":["../src/options.ts"],"sourcesContent":["import type { ParserOptions as ParserOpts } from \"@babel/parser\";\n\nexport type { ParserOpts };\n\n/**\n * These are the options that 'babel-template' actually accepts and typechecks\n * when called. All other options are passed through to the parser.\n */\nexport type PublicOpts = {\n /**\n * A set of placeholder names to automatically accept, ignoring the given\n * pattern entirely.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderWhitelist?: Set<string>;\n /**\n * A pattern to search for when looking for Identifier and StringLiteral\n * nodes that can be replaced.\n *\n * 'false' will disable placeholder searching entirely, leaving only the\n * 'placeholderWhitelist' value to find replacements.\n *\n * Defaults to /^[_$A-Z0-9]+$/.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderPattern?: RegExp | false;\n /**\n * 'true' to pass through comments from the template into the resulting AST,\n * or 'false' to automatically discard comments. Defaults to 'false'.\n */\n preserveComments?: boolean;\n /**\n * 'true' to use %%foo%% style placeholders, 'false' to use legacy placeholders\n * described by placeholderPattern or placeholderWhitelist.\n * When it is not set, it behaves as 'true' if there are syntactic placeholders,\n * otherwise as 'false'.\n */\n syntacticPlaceholders?: boolean | null;\n} & ParserOpts;\n\nexport type TemplateOpts = {\n parser: ParserOpts;\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n preserveComments?: boolean;\n syntacticPlaceholders?: boolean;\n};\n\nexport function merge(a: TemplateOpts, b: TemplateOpts): TemplateOpts {\n const {\n placeholderWhitelist = a.placeholderWhitelist,\n placeholderPattern = a.placeholderPattern,\n preserveComments = a.preserveComments,\n syntacticPlaceholders = a.syntacticPlaceholders,\n } = b;\n\n return {\n parser: {\n ...a.parser,\n ...b.parser,\n },\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n };\n}\n\nexport function validate(opts: unknown): TemplateOpts {\n if (opts != null && typeof opts !== \"object\") {\n throw new Error(\"Unknown template options.\");\n }\n\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n ...parser\n } = opts || ({} as any);\n\n if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) {\n throw new Error(\n \"'.placeholderWhitelist' must be a Set, null, or undefined\",\n );\n }\n\n if (\n placeholderPattern != null &&\n !(placeholderPattern instanceof RegExp) &&\n placeholderPattern !== false\n ) {\n throw new Error(\n \"'.placeholderPattern' must be a RegExp, false, null, or undefined\",\n );\n }\n\n if (preserveComments != null && typeof preserveComments !== \"boolean\") {\n throw new Error(\n \"'.preserveComments' must be a boolean, null, or undefined\",\n );\n }\n\n if (\n syntacticPlaceholders != null &&\n typeof syntacticPlaceholders !== \"boolean\"\n ) {\n throw new Error(\n \"'.syntacticPlaceholders' must be a boolean, null, or undefined\",\n );\n }\n if (\n syntacticPlaceholders === true &&\n (placeholderWhitelist != null || placeholderPattern != null)\n ) {\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n return {\n parser,\n placeholderWhitelist: placeholderWhitelist || undefined,\n placeholderPattern:\n placeholderPattern == null ? undefined : placeholderPattern,\n preserveComments: preserveComments == null ? undefined : preserveComments,\n syntacticPlaceholders:\n syntacticPlaceholders == null ? undefined : syntacticPlaceholders,\n };\n}\n\nexport type PublicReplacements = Record<string, unknown> | unknown[];\nexport type TemplateReplacements = Record<string, unknown> | void;\n\nexport function normalizeReplacements(\n replacements: unknown,\n): TemplateReplacements {\n if (Array.isArray(replacements)) {\n return replacements.reduce((acc, replacement, i) => {\n acc[\"$\" + i] = replacement;\n return acc;\n }, {});\n } else if (typeof replacements === \"object\" || replacements == null) {\n return (replacements as any) || undefined;\n }\n\n throw new Error(\n \"Template replacements must be an array, object, null, or undefined\",\n );\n}\n"],"mappings":";;;;;;;;;;AAkDO,SAASA,KAAKA,CAACC,CAAe,EAAEC,CAAe,EAAgB;EACpE,MAAM;IACJC,oBAAoB,GAAGF,CAAC,CAACE,oBAAoB;IAC7CC,kBAAkB,GAAGH,CAAC,CAACG,kBAAkB;IACzCC,gBAAgB,GAAGJ,CAAC,CAACI,gBAAgB;IACrCC,qBAAqB,GAAGL,CAAC,CAACK;EAC5B,CAAC,GAAGJ,CAAC;EAEL,OAAO;IACLK,MAAM,EAAAC,MAAA,CAAAC,MAAA,KACDR,CAAC,CAACM,MAAM,EACRL,CAAC,CAACK,MAAM,CACZ;IACDJ,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC;AACH;AAEO,SAASI,QAAQA,CAACC,IAAa,EAAgB;EACpD,IAAIA,IAAI,IAAI,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5C,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EAC9C;EAEA,MAAAC,IAAA,GAMIF,IAAI,IAAK,CAAC,CAAS;IANjB;MACJR,oBAAoB;MACpBC,kBAAkB;MAClBC,gBAAgB;MAChBC;IAEF,CAAC,GAAAO,IAAA;IADIN,MAAM,GAAAO,6BAAA,CAAAD,IAAA,EAAAE,SAAA;EAGX,IAAIZ,oBAAoB,IAAI,IAAI,IAAI,EAAEA,oBAAoB,YAAYa,GAAG,CAAC,EAAE;IAC1E,MAAM,IAAIJ,KAAK,CACb,2DACF,CAAC;EACH;EAEA,IACER,kBAAkB,IAAI,IAAI,IAC1B,EAAEA,kBAA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IAAIN,KAAK,CACb,oEACF,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_t","require","_parser","_codeFrame","isCallExpression","isExpressionStatement","isFunction","isIdentifier","isJSXIdentifier","isNewExpression","isPlaceholder","isStatement","isStringLiteral","removePropertiesDeep","traverse","PATTERN","parseAndBuildMetadata","formatter","code","opts","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","ast","parseWithCodeFrame","parser","validate","state","syntactic","placeholders","placeholderNames","Set","legacy","placeholderVisitorHandler","Object","assign","length","node","ancestors","_state$placeholderWhi","name","hasSyntacticPlaceholders","Error","value","test","has","slice","parent","key","type","expectedNode","push","resolve","resolveAncestors","isDuplicate","add","i","index","undefined","parserOpts","plugins","allowAwaitOutsideFunction","allowReturnOutsideFunction","allowNewTargetOutsideFunction","allowSuperOutsideMethod","allowYieldOutsideFunction","sourceType","parse","err","loc","message","codeFrameColumns","start"],"sources":["../src/parse.ts"],"sourcesContent":["import {\n isCallExpression,\n isExpressionStatement,\n isFunction,\n isIdentifier,\n isJSXIdentifier,\n isNewExpression,\n isPlaceholder,\n isStatement,\n isStringLiteral,\n removePropertiesDeep,\n traverse,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { TraversalAncestors } from \"@babel/types\";\nimport { parse } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport type { TemplateOpts, ParserOpts } from \"./options.ts\";\nimport type { Formatter } from \"./formatters.ts\";\n\nexport type Metadata = {\n ast: t.File;\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n};\n\ntype PlaceholderType = \"string\" | \"param\" | \"statement\" | \"other\";\nexport type Placeholder = {\n name: string;\n resolve: (a: t.File) => { parent: t.Node; key: string; index?: number };\n type: PlaceholderType;\n isDuplicate: boolean;\n};\n\nconst PATTERN = /^[_$A-Z0-9]+$/;\n\nexport default function parseAndBuildMetadata<T>(\n formatter: Formatter<T>,\n code: string,\n opts: TemplateOpts,\n): Metadata {\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n } = opts;\n\n const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders);\n\n removePropertiesDeep(ast, {\n preserveComments,\n });\n\n formatter.validate(ast);\n\n const state: MetadataState = {\n syntactic: { placeholders: [], placeholderNames: new Set() },\n legacy: { placeholders: [], placeholderNames: new Set() },\n placeholderWhitelist,\n placeholderPattern,\n syntacticPlaceholders,\n };\n\n traverse(ast, placeholderVisitorHandler, state);\n\n return {\n ast,\n ...(state.syntactic.placeholders.length ? state.syntactic : state.legacy),\n };\n}\n\nfunction placeholderVisitorHandler(\n node: t.Node,\n ancestors: TraversalAncestors,\n state: MetadataState,\n) {\n let name: string;\n\n let hasSyntacticPlaceholders = state.syntactic.placeholders.length > 0;\n\n if (isPlaceholder(node)) {\n if (state.syntacticPlaceholders === false) {\n throw new Error(\n \"%%foo%%-style placeholders can't be used when \" +\n \"'.syntacticPlaceholders' is false.\",\n );\n }\n name = node.name.name;\n hasSyntacticPlaceholders = true;\n } else if (hasSyntacticPlaceholders || state.syntacticPlaceholders) {\n return;\n } else if (isIdentifier(node) || isJSXIdentifier(node)) {\n name = node.name;\n } else if (isStringLiteral(node)) {\n name = node.value;\n } else {\n return;\n }\n\n if (\n hasSyntacticPlaceholders &&\n (state.placeholderPattern != null || state.placeholderWhitelist != null)\n ) {\n // This check is also in options.js. We need it there to handle the default\n // .syntacticPlaceholders behavior.\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n if (\n !hasSyntacticPlaceholders &&\n (state.placeholderPattern === false ||\n !(state.placeholderPattern || PATTERN).test(name)) &&\n !state.placeholderWhitelist?.has(name)\n ) {\n return;\n }\n\n // Keep our own copy of the ancestors so we can use it in .resolve().\n ancestors = ancestors.slice();\n\n const { node: parent, key } = ancestors[ancestors.length - 1];\n\n let type: PlaceholderType;\n if (\n isStringLiteral(node) ||\n isPlaceholder(node, { expectedNode: \"StringLiteral\" })\n ) {\n type = \"string\";\n } else if (\n (isNewExpression(parent) && key === \"arguments\") ||\n (isCallExpression(parent) && key === \"arguments\") ||\n (isFunction(parent) && key === \"params\")\n ) {\n type = \"param\";\n } else if (isExpressionStatement(parent) && !isPlaceholder(node)) {\n type = \"statement\";\n ancestors = ancestors.slice(0, -1);\n } else if (isStatement(node) && isPlaceholder(node)) {\n type = \"statement\";\n } else {\n type = \"other\";\n }\n\n const { placeholders, placeholderNames } = !hasSyntacticPlaceholders\n ? state.legacy\n : state.syntactic;\n\n placeholders.push({\n name,\n type,\n resolve: ast => resolveAncestors(ast, ancestors),\n isDuplicate: placeholderNames.has(name),\n });\n placeholderNames.add(name);\n}\n\nfunction resolveAncestors(ast: t.File, ancestors: TraversalAncestors) {\n let parent: t.Node = ast;\n for (let i = 0; i < ancestors.length - 1; i++) {\n const { key, index } = ancestors[i];\n\n if (index === undefined) {\n parent = (parent as any)[key];\n } else {\n parent = (parent as any)[key][index];\n }\n }\n\n const { key, index } = ancestors[ancestors.length - 1];\n\n return { parent, key, index };\n}\n\ntype MetadataState = {\n syntactic: {\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n };\n legacy: {\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n };\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n syntacticPlaceholders?: boolean;\n};\n\nfunction parseWithCodeFrame(\n code: string,\n parserOpts: ParserOpts,\n syntacticPlaceholders?: boolean,\n): t.File {\n const plugins = (parserOpts.plugins || []).slice();\n if (syntacticPlaceholders !== false) {\n plugins.push(\"placeholders\");\n }\n\n parserOpts = {\n allowAwaitOutsideFunction: true,\n allowReturnOutsideFunction: true,\n allowNewTargetOutsideFunction: true,\n allowSuperOutsideMethod: true,\n allowYieldOutsideFunction: true,\n sourceType: \"module\",\n ...parserOpts,\n plugins,\n };\n\n try {\n return parse(code, parserOpts);\n } catch (err) {\n const loc = err.loc;\n if (loc) {\n err.message += \"\\n\" + codeFrameColumns(code, { start: loc });\n err.code = \"BABEL_TEMPLATE_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAeA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAqD;EAfnDG,gBAAgB;EAChBC,qBAAqB;EACrBC,UAAU;EACVC,YAAY;EACZC,eAAe;EACfC,eAAe;EACfC,aAAa;EACbC,WAAW;EACXC,eAAe;EACfC,oBAAoB;EACpBC;AAAQ,IAAAd,EAAA;AAuBV,MAAMe,OAAO,GAAG,eAAe;AAEhB,SAASC,qBAAqBA,CAC3CC,SAAuB,EACvBC,IAAY,EACZC,IAAkB,EACR;EACV,MAAM;IACJC,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC,GAAGJ,IAAI;EAER,MAAMK,GAAG,GAAGC,kBAAkB,CAACP,IAAI,EAAEC,IAAI,CAACO,MAAM,EAAEH,qBAAqB,CAAC;EAExEV,oBAAoB,CAACW,GAAG,EAAE;IACxBF;EACF,CAAC,CAAC;EAEFL,SAAS,CAACU,QAAQ,CAACH,GAAG,CAAC;EAEvB,MAAMI,KAAoB,GAAG;IAC3BC,SAAS,EAAE;MAAEC,YAAY,EAAE,EAAE;MAAEC,gBAAgB,EAAE,IAAIC,GAAG,CAAC;IAAE,CAAC;IAC5DC,MAAM,EAAE;MAAEH,YAAY,EAAE,EAAE;MAAEC,gBAAgB,EAAE,IAAIC,GAAG,CAAC;IAAE,CAAC;IACzDZ,oBAAoB;IACpBC,kBAAkB;IAClBE;EACF,CAAC;EAEDT,QAAQ,CAACU,GAAG,EAAEU,yBAAyB,EAAEN,KAAK,CAAC;EAE/C,OAAAO,MAAA,CAAAC,MAAA;IACEZ;EAAG,GACCI,KAAK,CAACC,SAAS,CAACC,YAAY,CAACO,MAAM,GAAGT,KAAK,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AAO,IAAAO,aAAK,EAAClD,IAAI,EAAE0C,UAAU,CAAC;EAChC,CAAC,CAAC,OAAOS,GAAG,EAAE;IACZ,MAAMC,GAAG,GAAGD,GAAG,CAACC,GAAG;IACnB,IAAIA,GAAG,EAAE;MACPD,GAAG,CAACE,OAAO,IAAI,IAAI,GAAG,IAAAC,2BAAgB,EAACtD,IAAI,EAAE;QAAEuD,KAAK,EAAEH;MAAI,CAAC,CAAC;MAC5DD,GAAG,CAACnD,IAAI,GAAG,4BAA4B;IACzC;IACA,MAAMmD,GAAG;EACX;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_t","require","_parser","_codeFrame","isCallExpression","isExpressionStatement","isFunction","isIdentifier","isJSXIdentifier","isNewExpression","isPlaceholder","isStatement","isStringLiteral","removePropertiesDeep","traverse","PATTERN","parseAndBuildMetadata","formatter","code","opts","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","ast","parseWithCodeFrame","parser","validate","state","syntactic","placeholders","placeholderNames","Set","legacy","placeholderVisitorHandler","Object","assign","length","node","ancestors","_state$placeholderWhi","name","hasSyntacticPlaceholders","Error","value","test","has","slice","parent","key","type","expectedNode","push","resolve","resolveAncestors","isDuplicate","add","i","index","undefined","parserOpts","plugins","allowAwaitOutsideFunction","allowReturnOutsideFunction","allowNewTargetOutsideFunction","allowSuperOutsideMethod","allowYieldOutsideFunction","sourceType","parse","err","loc","message","codeFrameColumns","start"],"sources":["../src/parse.ts"],"sourcesContent":["import {\n isCallExpression,\n isExpressionStatement,\n isFunction,\n isIdentifier,\n isJSXIdentifier,\n isNewExpression,\n isPlaceholder,\n isStatement,\n isStringLiteral,\n removePropertiesDeep,\n traverse,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { TraversalAncestors } from \"@babel/types\";\nimport { parse } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport type { TemplateOpts, ParserOpts } from \"./options.ts\";\nimport type { Formatter } from \"./formatters.ts\";\n\nexport type Metadata = {\n ast: t.File;\n placeholders: Placeholder[];\n placeholderNames: Set<string>;\n};\n\ntype PlaceholderType = \"string\" | \"param\" | \"statement\" | \"other\";\nexport type Placeholder = {\n name: string;\n resolve: (a: t.File) => { parent: t.Node; key: string; index?: number };\n type: PlaceholderType;\n isDuplicate: boolean;\n};\n\nconst PATTERN = /^[_$A-Z0-9]+$/;\n\nexport default function parseAndBuildMetadata<T>(\n formatter: Formatter<T>,\n code: string,\n opts: TemplateOpts,\n): Metadata {\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n } = opts;\n\n const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders);\n\n removePropertiesDeep(ast, {\n preserveComments,\n });\n\n formatter.validate(ast);\n\n const state: MetadataState = {\n syntactic: { placeholders: [], placeholderNames: new Set() },\n legacy: { placeholders: [], placeholderNames: new Set() },\n placeholderWhitelist,\n placeholderPattern,\n syntacticPlaceholders,\n };\n\n traverse(ast, placeholderVisitorHandler, state);\n\n return {\n ast,\n ...(state.syntactic.placeholders.length ? state.syntactic : state.legacy),\n };\n}\n\nfunction placeholderVisitorHandler(\n node: t.Node,\n ancestors: TraversalAncestors,\n state: MetadataState,\n) {\n let name: string;\n\n let hasSyntacticPlaceholders = state.syntactic.placeholders.length > 0;\n\n if (isPlaceholder(node)) {\n if (state.syntacticPlaceholders === false) {\n throw new Error(\n \"%%foo%%-style placeholders can't be used when \" +\n \"'.syntacticPlaceholders' is false.\",\n );\n }\n name = node.name.name;\n hasSyntacticPlaceholders = true;\n } else if (hasSyntacticPlaceholders || state.syntacticPlaceholders) {\n return;\n } else if (isIdentifier(node) || isJSXIdentifier(node)) {\n name = node.name;\n } else if (isStringLiteral(node)) {\n name = node.value;\n } else {\n return;\n }\n\n if (\n hasSyntacticPlaceholders &&\n (state.placeholderPattern != null || state.placeholderWhitelist != null)\n ) {\n // This check is also in options.js. We need it there to handle the default\n // .syntacticPlaceholders behavior.\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n if (\n !hasSyntacticPlaceholders &&\n (state.placeholderPattern === false ||\n !(state.placeholderPattern || PATTERN).test(name)) &&\n !state.placeholderWhitelist?.has(name)\n ) {\n return;\n }\n\n // Keep our own copy of the ancestors so we can use it in .resolve().\n ancestors = ancestors.slice();\n\n const { node: parent, key } = ancestors[ancestors.length - 1];\n\n let type: PlaceholderType;\n if (\n isStringLiteral(node) ||\n isPlaceholder(node, { expectedNode: \"StringLiteral\" })\n ) {\n type = \"string\";\n } else if (\n (isNewExpression(parent) && key === \"arguments\") ||\n (isCallExpression(parent) && key === \"arguments\") ||\n (isFunction(parent) && key === \"params\")\n ) {\n type = \"param\";\n } else if (isExpressionStatement(parent) && !isPlaceholder(node)) {\n type = \"statement\";\n ancestors = ancestors.slice(0, -1);\n } else if (isStatement(node) && isPlaceholder(node)) {\n type = \"statement\";\n } else {\n type = \"other\";\n }\n\n const { placeholders, placeholderNames } = !hasSyntacticPlaceholders\n ? state.legacy\n : state.syntactic;\n\n placeholders.push({\n name,\n type,\n resolve: ast => resolveAncestors(ast, ancestors),\n isDuplicate: placeholderNames.has(name),\n });\n placeholderNames.add(name);\n}\n\nfunction resolveAncestors(ast: t.File, ancestors: TraversalAncestors) {\n let parent: t.Node = ast;\n for (let i = 0; i < ancestors.length - 1; i++) {\n const { key, index } = ancestors[i];\n\n if (index === undefined) {\n parent = (parent as any)[key];\n } else {\n parent = (parent as any)[key][index];\n }\n }\n\n const { key, index } = ancestors[ancestors.length - 1];\n\n return { parent, key, index };\n}\n\ntype MetadataState = {\n syntactic: {\n placeholders: Placeholder[];\n placeholderNames: Set<string>;\n };\n legacy: {\n placeholders: Placeholder[];\n placeholderNames: Set<string>;\n };\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n syntacticPlaceholders?: boolean;\n};\n\nfunction parseWithCodeFrame(\n code: string,\n parserOpts: ParserOpts,\n syntacticPlaceholders?: boolean,\n): t.File {\n const plugins = (parserOpts.plugins || []).slice();\n if (syntacticPlaceholders !== false) {\n plugins.push(\"placeholders\");\n }\n\n parserOpts = {\n allowAwaitOutsideFunction: true,\n allowReturnOutsideFunction: true,\n allowNewTargetOutsideFunction: true,\n allowSuperOutsideMethod: true,\n allowYieldOutsideFunction: true,\n sourceType: \"module\",\n ...parserOpts,\n plugins,\n };\n\n try {\n return parse(code, parserOpts);\n } catch (err) {\n const loc = err.loc;\n if (loc) {\n err.message += \"\\n\" + codeFrameColumns(code, { start: loc });\n err.code = \"BABEL_TEMPLATE_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAeA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAqD;EAfnDG,gBAAgB;EAChBC,qBAAqB;EACrBC,UAAU;EACVC,YAAY;EACZC,eAAe;EACfC,eAAe;EACfC,aAAa;EACbC,WAAW;EACXC,eAAe;EACfC,oBAAoB;EACpBC;AAAQ,IAAAd,EAAA;AAuBV,MAAMe,OAAO,GAAG,eAAe;AAEhB,SAASC,qBAAqBA,CAC3CC,SAAuB,EACvBC,IAAY,EACZC,IAAkB,EACR;EACV,MAAM;IACJC,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC,GAAGJ,IAAI;EAER,MAAMK,GAAG,GAAGC,kBAAkB,CAACP,IAAI,EAAEC,IAAI,CAACO,MAAM,EAAEH,qBAAqB,CAAC;EAExEV,oBAAoB,CAACW,GAAG,EAAE;IACxBF;EACF,CAAC,CAAC;EAEFL,SAAS,CAACU,QAAQ,CAACH,GAAG,CAAC;EAEvB,MAAMI,KAAoB,GAAG;IAC3BC,SAAS,EAAE;MAAEC,YAAY,EAAE,EAAE;MAAEC,gBAAgB,EAAE,IAAIC,GAAG,CAAC;IAAE,CAAC;IAC5DC,MAAM,EAAE;MAAE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AACT,IAAI,CAAC,cAAc,CAAC;EAC9B;EAEAQ,UAAU,GAAAzB,MAAA,CAAAC,MAAA;IACR0B,yBAAyB,EAAE,IAAI;IAC/BC,0BAA0B,EAAE,IAAI;IAChCC,6BAA6B,EAAE,IAAI;IACnCC,uBAAuB,EAAE,IAAI;IAC7BC,yBAAyB,EAAE,IAAI;IAC/BC,UAAU,EAAE;EAAQ,GACjBP,UAAU;IACbC;EAAO,EACR;EAED,IAAI;IACF,OAAO,IAAAO,aAAK,EAAClD,IAAI,EAAE0C,UAAU,CAAC;EAChC,CAAC,CAAC,OAAOS,GAAG,EAAE;IACZ,MAAMC,GAAG,GAAGD,GAAG,CAACC,GAAG;IACnB,IAAIA,GAAG,EAAE;MACPD,GAAG,CAACE,OAAO,IAAI,IAAI,GAAG,IAAAC,2BAAgB,EAACtD,IAAI,EAAE;QAAEuD,KAAK,EAAEH;MAAI,CAAC,CAAC;MAC5DD,GAAG,CAACnD,IAAI,GAAG,4BAA4B;IACzC;IACA,MAAMmD,GAAG;EACX;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_t","require","blockStatement","cloneNode","emptyStatement","expressionStatement","identifier","isStatement","isStringLiteral","stringLiteral","validate","populatePlaceholders","metadata","replacements","ast","placeholders","forEach","placeholder","hasOwnProperty","call","name","placeholderName","Error","Object","keys","key","placeholderNames","has","slice","reverse","_ref","applyReplacement","e","message","replacement","isDuplicate","Array","isArray","map","node","parent","index","resolve","type","undefined","set","value","typeAnnotation","optional","decorators","items","splice"],"sources":["../src/populate.ts"],"sourcesContent":["import {\n blockStatement,\n cloneNode,\n emptyStatement,\n expressionStatement,\n identifier,\n isStatement,\n isStringLiteral,\n stringLiteral,\n validate,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { TemplateReplacements } from \"./options.ts\";\nimport type { Metadata, Placeholder } from \"./parse.ts\";\n\nexport default function populatePlaceholders(\n metadata: Metadata,\n replacements: TemplateReplacements,\n): t.File {\n const ast = cloneNode(metadata.ast);\n\n if (replacements) {\n metadata.placeholders.forEach(placeholder => {\n if (!Object.hasOwn(replacements, placeholder.name)) {\n const placeholderName = placeholder.name;\n\n throw new Error(\n `Error: No substitution given for \"${placeholderName}\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}\n - { placeholderPattern: /^${placeholderName}$/ }`,\n );\n }\n });\n Object.keys(replacements).forEach(key => {\n if (!metadata.placeholderNames.has(key)) {\n throw new Error(`Unknown substitution \"${key}\" given`);\n }\n });\n }\n\n // Process in reverse order so AST mutation doesn't change indices that\n // will be needed for later calls to `placeholder.resolve()`.\n metadata.placeholders\n .slice()\n .reverse()\n .forEach(placeholder => {\n try {\n applyReplacement(\n placeholder,\n ast,\n (replacements && replacements[placeholder.name]) ?? null,\n );\n } catch (e) {\n e.message = `@babel/template placeholder \"${placeholder.name}\": ${e.message}`;\n throw e;\n }\n });\n\n return ast;\n}\n\nfunction applyReplacement(\n placeholder: Placeholder,\n ast: t.File,\n replacement: any,\n) {\n // Track inserted nodes and clone them if they are inserted more than\n // once to avoid injecting the same node multiple times.\n if (placeholder.isDuplicate) {\n if (Array.isArray(replacement)) {\n replacement = replacement.map(node => cloneNode(node));\n } else if (typeof replacement === \"object\") {\n replacement = cloneNode(replacement);\n }\n }\n\n const { parent, key, index } = placeholder.resolve(ast);\n\n if (placeholder.type === \"string\") {\n if (typeof replacement === \"string\") {\n replacement = stringLiteral(replacement);\n }\n if (!replacement || !isStringLiteral(replacement)) {\n throw new Error(\"Expected string substitution\");\n }\n } else if (placeholder.type === \"statement\") {\n if (index === undefined) {\n if (!replacement) {\n replacement = emptyStatement();\n } else if (Array.isArray(replacement)) {\n replacement = blockStatement(replacement);\n } else if (typeof replacement === \"string\") {\n replacement = expressionStatement(identifier(replacement));\n } else if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n } else {\n if (replacement && !Array.isArray(replacement)) {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n }\n }\n } else if (placeholder.type === \"param\") {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n\n if (index === undefined) throw new Error(\"Assertion failure.\");\n } else {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (Array.isArray(replacement)) {\n throw new Error(\"Cannot replace single expression with an array.\");\n }\n }\n\n function set(parent: any, key: any, value: any) {\n const node = parent[key] as t.Node;\n parent[key] = value;\n if (node.type === \"Identifier\" || node.type === \"Placeholder\") {\n if (node.typeAnnotation) {\n value.typeAnnotation = node.typeAnnotation;\n }\n if (node.optional) {\n value.optional = node.optional;\n }\n if (node.decorators) {\n value.decorators = node.decorators;\n }\n }\n }\n\n if (index === undefined) {\n validate(parent, key, replacement);\n\n set(parent, key, replacement);\n } else {\n const items: Array<t.Node> = (parent as any)[key].slice();\n\n if (placeholder.type === \"statement\" || placeholder.type === \"param\") {\n if (replacement == null) {\n items.splice(index, 1);\n } else if (Array.isArray(replacement)) {\n items.splice(index, 1, ...replacement);\n } else {\n set(items, index, replacement);\n }\n } else {\n set(items, index, replacement);\n }\n\n validate(parent, key, items);\n (parent as any)[key] = items;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAUsB;EATpBC,cAAc;EACdC,SAAS;EACTC,cAAc;EACdC,mBAAmB;EACnBC,UAAU;EACVC,WAAW;EACXC,eAAe;EACfC,aAAa;EACbC;AAAQ,IAAAV,EAAA;AAOK,SAASW,oBAAoBA,CAC1CC,QAAkB,EAClBC,YAAkC,EAC1B;EACR,MAAMC,GAAG,GAAGX,SAAS,CAACS,QAAQ,CAACE,GAAG,CAAC;EAEnC,IAAID,YAAY,EAAE;IAChBD,QAAQ,CAACG,YAAY,CAACC,OAAO,CAACC,WAAW,IAAI;MAC3C,IAAI,CAACC,cAAA,CAAAC,IAAA,CAAcN,Y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WAAW,CAAC;EAC/B,CAAC,MAAM;IACL,MAAMgB,KAAoB,GAAIV,MAAM,CAASf,GAAG,CAAC,CAACG,KAAK,CAAC,CAAC;IAEzD,IAAIX,WAAW,CAAC0B,IAAI,KAAK,WAAW,IAAI1B,WAAW,CAAC0B,IAAI,KAAK,OAAO,EAAE;MACpE,IAAIT,WAAW,IAAI,IAAI,EAAE;QACvBgB,KAAK,CAACC,MAAM,CAACV,KAAK,EAAE,CAAC,CAAC;MACxB,CAAC,MAAM,IAAIL,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,EAAE;QACrCgB,KAAK,CAACC,MAAM,CAACV,KAAK,EAAE,CAAC,EAAE,GAAGP,WAAW,CAAC;MACxC,CAAC,MAAM;QACLW,GAAG,CAACK,KAAK,EAAET,KAAK,EAAEP,WAAW,CAAC;MAChC;IACF,CAAC,MAAM;MACLW,GAAG,CAACK,KAAK,EAAET,KAAK,EAAEP,WAAW,CAAC;IAChC;IAEAxB,QAAQ,CAAC8B,MAAM,EAAEf,GAAG,EAAEyB,KAAK,CAAC;IAC3BV,MAAM,CAASf,GAAG,CAAC,GAAGyB,KAAK;EAC9B;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_t","require","blockStatement","cloneNode","emptyStatement","expressionStatement","identifier","isStatement","isStringLiteral","stringLiteral","validate","populatePlaceholders","metadata","replacements","ast","placeholders","forEach","placeholder","hasOwnProperty","call","name","placeholderName","Error","Object","keys","key","placeholderNames","has","slice","reverse","_ref","applyReplacement","e","message","replacement","isDuplicate","Array","isArray","map","node","parent","index","resolve","type","undefined","set","value","typeAnnotation","optional","decorators","items","splice"],"sources":["../src/populate.ts"],"sourcesContent":["import {\n blockStatement,\n cloneNode,\n emptyStatement,\n expressionStatement,\n identifier,\n isStatement,\n isStringLiteral,\n stringLiteral,\n validate,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { TemplateReplacements } from \"./options.ts\";\nimport type { Metadata, Placeholder } from \"./parse.ts\";\n\nexport default function populatePlaceholders(\n metadata: Metadata,\n replacements: TemplateReplacements,\n): t.File {\n const ast = cloneNode(metadata.ast);\n\n if (replacements) {\n metadata.placeholders.forEach(placeholder => {\n if (!Object.hasOwn(replacements, placeholder.name)) {\n const placeholderName = placeholder.name;\n\n throw new Error(\n `Error: No substitution given for \"${placeholderName}\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}\n - { placeholderPattern: /^${placeholderName}$/ }`,\n );\n }\n });\n Object.keys(replacements).forEach(key => {\n if (!metadata.placeholderNames.has(key)) {\n throw new Error(`Unknown substitution \"${key}\" given`);\n }\n });\n }\n\n // Process in reverse order so AST mutation doesn't change indices that\n // will be needed for later calls to `placeholder.resolve()`.\n metadata.placeholders\n .slice()\n .reverse()\n .forEach(placeholder => {\n try {\n applyReplacement(\n placeholder,\n ast,\n (replacements && replacements[placeholder.name]) ?? null,\n );\n } catch (e) {\n e.message = `@babel/template placeholder \"${placeholder.name}\": ${e.message}`;\n throw e;\n }\n });\n\n return ast;\n}\n\nfunction applyReplacement(\n placeholder: Placeholder,\n ast: t.File,\n replacement: any,\n) {\n // Track inserted nodes and clone them if they are inserted more than\n // once to avoid injecting the same node multiple times.\n if (placeholder.isDuplicate) {\n if (Array.isArray(replacement)) {\n replacement = replacement.map(node => cloneNode(node));\n } else if (typeof replacement === \"object\") {\n replacement = cloneNode(replacement);\n }\n }\n\n const { parent, key, index } = placeholder.resolve(ast);\n\n if (placeholder.type === \"string\") {\n if (typeof replacement === \"string\") {\n replacement = stringLiteral(replacement);\n }\n if (!replacement || !isStringLiteral(replacement)) {\n throw new Error(\"Expected string substitution\");\n }\n } else if (placeholder.type === \"statement\") {\n if (index === undefined) {\n if (!replacement) {\n replacement = emptyStatement();\n } else if (Array.isArray(replacement)) {\n replacement = blockStatement(replacement);\n } else if (typeof replacement === \"string\") {\n replacement = expressionStatement(identifier(replacement));\n } else if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n } else {\n if (replacement && !Array.isArray(replacement)) {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n }\n }\n } else if (placeholder.type === \"param\") {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n\n if (index === undefined) throw new Error(\"Assertion failure.\");\n } else {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (Array.isArray(replacement)) {\n throw new Error(\"Cannot replace single expression with an array.\");\n }\n }\n\n function set(parent: any, key: any, value: any) {\n const node = parent[key] as t.Node;\n parent[key] = value;\n if (node.type === \"Identifier\" || node.type === \"Placeholder\") {\n if (node.typeAnnotation) {\n value.typeAnnotation = node.typeAnnotation;\n }\n if (node.optional) {\n value.optional = node.optional;\n }\n if (node.decorators) {\n value.decorators = node.decorators;\n }\n }\n }\n\n if (index === undefined) {\n validate(parent, key, replacement);\n\n set(parent, key, replacement);\n } else {\n const items: t.Node[] = (parent as any)[key].slice();\n\n if (placeholder.type === \"statement\" || placeholder.type === \"param\") {\n if (replacement == null) {\n items.splice(index, 1);\n } else if (Array.isArray(replacement)) {\n items.splice(index, 1, ...replacement);\n } else {\n set(items, index, replacement);\n }\n } else {\n set(items, index, replacement);\n }\n\n validate(parent, key, items);\n (parent as any)[key] = items;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAUsB;EATpBC,cAAc;EACdC,SAAS;EACTC,cAAc;EACdC,mBAAmB;EACnBC,UAAU;EACVC,WAAW;EACXC,eAAe;EACfC,aAAa;EACbC;AAAQ,IAAAV,EAAA;AAOK,SAASW,oBAAoBA,CAC1CC,QAAkB,EAClBC,YAAkC,EAC1B;EACR,MAAMC,GAAG,GAAGX,SAAS,CAACS,QAAQ,CAACE,GAAG,CAAC;EAEnC,IAAID,YAAY,EAAE;IAChBD,QAAQ,CAACG,YAAY,CAACC,OAAO,CAACC,WA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WAAW,CAAC;IAElCW,GAAG,CAACL,MAAM,EAAEf,GAAG,EAAES,WAAW,CAAC;EAC/B,CAAC,MAAM;IACL,MAAMgB,KAAe,GAAIV,MAAM,CAASf,GAAG,CAAC,CAACG,KAAK,CAAC,CAAC;IAEpD,IAAIX,WAAW,CAAC0B,IAAI,KAAK,WAAW,IAAI1B,WAAW,CAAC0B,IAAI,KAAK,OAAO,EAAE;MACpE,IAAIT,WAAW,IAAI,IAAI,EAAE;QACvBgB,KAAK,CAACC,MAAM,CAACV,KAAK,EAAE,CAAC,CAAC;MACxB,CAAC,MAAM,IAAIL,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,EAAE;QACrCgB,KAAK,CAACC,MAAM,CAACV,KAAK,EAAE,CAAC,EAAE,GAAGP,WAAW,CAAC;MACxC,CAAC,MAAM;QACLW,GAAG,CAACK,KAAK,EAAET,KAAK,EAAEP,WAAW,CAAC;MAChC;IACF,CAAC,MAAM;MACLW,GAAG,CAACK,KAAK,EAAET,KAAK,EAAEP,WAAW,CAAC;IAChC;IAEAxB,QAAQ,CAAC8B,MAAM,EAAEf,GAAG,EAAEyB,KAAK,CAAC;IAC3BV,MAAM,CAASf,GAAG,CAAC,GAAGyB,KAAK;EAC9B;AACF","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/template",
3
- "version": "7.27.2",
3
+ "version": "7.28.6",
4
4
  "description": "Generate an AST from a string template.",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-template",
@@ -16,9 +16,9 @@
16
16
  },
17
17
  "main": "./lib/index.js",
18
18
  "dependencies": {
19
- "@babel/code-frame": "^7.27.1",
20
- "@babel/parser": "^7.27.2",
21
- "@babel/types": "^7.27.1"
19
+ "@babel/code-frame": "^7.28.6",
20
+ "@babel/parser": "^7.28.6",
21
+ "@babel/types": "^7.28.6"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=6.9.0"
@@ -29,7 +29,6 @@ function getCachedPaths(path) {
29
29
  return pathsCache.get(parent);
30
30
  }
31
31
  function getOrCreateCachedPaths(node, parentPath) {
32
- ;
33
32
  let paths = pathsCache.get(node);
34
33
  if (!paths) pathsCache.set(node, paths = new Map());
35
34
  return paths;
@@ -1 +1 @@
1
- {"version":3,"names":["pathsCache","exports","path","WeakMap","scope","clear","clearPath","clearScope","getCachedPaths","parent","parentPath","get","getOrCreateCachedPaths","node","paths","set","Map"],"sources":["../src/cache.ts"],"sourcesContent":["import type { Node } from \"@babel/types\";\nimport type NodePath from \"./path/index.ts\";\nimport type Scope from \"./scope/index.ts\";\n\nlet pathsCache: WeakMap<Node, Map<Node, NodePath>> = new WeakMap();\nexport { pathsCache as path };\nexport let scope: WeakMap<Node, Scope> = new WeakMap();\n\nexport function clear() {\n clearPath();\n clearScope();\n}\n\nexport function clearPath() {\n pathsCache = new WeakMap();\n}\n\nexport function clearScope() {\n scope = new WeakMap();\n}\n\nexport function getCachedPaths(path: NodePath) {\n const { parent, parentPath } = path;\n return process.env.BABEL_8_BREAKING && parentPath\n ? parentPath._store\n : pathsCache.get(parent);\n}\n\nexport function getOrCreateCachedPaths(\n node: Node,\n parentPath?: NodePath | null,\n) {\n if (process.env.BABEL_8_BREAKING && parentPath) {\n return (parentPath._store ||= new Map());\n }\n\n let paths = pathsCache.get(node);\n if (!paths) pathsCache.set(node, (paths = new Map()));\n\n return paths;\n}\n"],"mappings":";;;;;;;;;;;AAIA,IAAIA,UAA8C,GAAAC,OAAA,CAAAC,IAAA,GAAG,IAAIC,OAAO,CAAC,CAAC;AAE3D,IAAIC,KAA2B,GAAAH,OAAA,CAAAG,KAAA,GAAG,IAAID,OAAO,CAAC,CAAC;AAE/C,SAASE,KAAKA,CAAA,EAAG;EACtBC,SAAS,CAAC,CAAC;EACXC,UAAU,CAAC,CAAC;AACd;AAEO,SAASD,SAASA,CAAA,EAAG;EAC1BL,OAAA,CAAAC,IAAA,GAAAF,UAAU,GAAG,IAAIG,OAAO,CAAC,CAAC;AAC5B;AAEO,SAASI,UAAUA,CAAA,EAAG;EAC3BN,OAAA,CAAAG,KAAA,GAAAA,KAAK,GAAG,IAAID,OAAO,CAAC,CAAC;AACvB;AAEO,SAASK,cAAcA,CAACN,IAAc,EAAE;EAC7C,MAAM;IAAEO,MAAM;IAAEC;EAAW,CAAC,GAAGR,IAAI;EACnC,OAEIF,UAAU,CAACW,GAAG,CAACF,MAAM,CAAC;AAC5B;AAEO,SAASG,sBAAsBA,CACpCC,IAAU,EACVH,UAA4B,EAC5B;EAAA;EAKA,IAAII,KAAK,GAAGd,UAAU,CAACW,GAAG,CAACE,IAAI,CAAC;EAChC,IAAI,CAACC,KAAK,EAAEd,UAAU,CAACe,GAAG,CAACF,IAAI,EAAGC,KAAK,GAAG,IAAIE,GAAG,CAAC,CAAE,CAAC;EAErD,OAAOF,KAAK;AACd","ignoreList":[]}
1
+ {"version":3,"names":["pathsCache","exports","path","WeakMap","scope","clear","clearPath","clearScope","getCachedPaths","parent","parentPath","get","getOrCreateCachedPaths","node","paths","set","Map"],"sources":["../src/cache.ts"],"sourcesContent":["import type { Node } from \"@babel/types\";\nimport type NodePath from \"./path/index.ts\";\nimport type Scope from \"./scope/index.ts\";\n\nlet pathsCache = new WeakMap<Node, Map<Node, NodePath>>();\nexport { pathsCache as path };\nexport let scope = new WeakMap<Node, Scope>();\n\nexport function clear() {\n clearPath();\n clearScope();\n}\n\nexport function clearPath() {\n pathsCache = new WeakMap();\n}\n\nexport function clearScope() {\n scope = new WeakMap();\n}\n\nexport function getCachedPaths(path: NodePath) {\n const { parent, parentPath } = path;\n return process.env.BABEL_8_BREAKING && parentPath\n ? parentPath._store\n : pathsCache.get(parent);\n}\n\nexport function getOrCreateCachedPaths(\n node: Node,\n parentPath?: NodePath | null,\n) {\n if (process.env.BABEL_8_BREAKING && parentPath) {\n return (parentPath._store ||= new Map());\n }\n\n let paths = pathsCache.get(node);\n if (!paths) pathsCache.set(node, (paths = new Map()));\n\n return paths;\n}\n"],"mappings":";;;;;;;;;;;AAIA,IAAIA,UAAU,GAAAC,OAAA,CAAAC,IAAA,GAAG,IAAIC,OAAO,CAA4B,CAAC;AAElD,IAAIC,KAAK,GAAAH,OAAA,CAAAG,KAAA,GAAG,IAAID,OAAO,CAAc,CAAC;AAEtC,SAASE,KAAKA,CAAA,EAAG;EACtBC,SAAS,CAAC,CAAC;EACXC,UAAU,CAAC,CAAC;AACd;AAEO,SAASD,SAASA,CAAA,EAAG;EAC1BL,OAAA,CAAAC,IAAA,GAAAF,UAAU,GAAG,IAAIG,OAAO,CAAC,CAAC;AAC5B;AAEO,SAASI,UAAUA,CAAA,EAAG;EAC3BN,OAAA,CAAAG,KAAA,GAAAA,KAAK,GAAG,IAAID,OAAO,CAAC,CAAC;AACvB;AAEO,SAASK,cAAcA,CAACN,IAAc,EAAE;EAC7C,MAAM;IAAEO,MAAM;IAAEC;EAAW,CAAC,GAAGR,IAAI;EACnC,OAEIF,UAAU,CAACW,GAAG,CAACF,MAAM,CAAC;AAC5B;AAEO,SAASG,sBAAsBA,CACpCC,IAAU,EACVH,UAA4B,EAC5B;EAKA,IAAII,KAAK,GAAGd,UAAU,CAACW,GAAG,CAACE,IAAI,CAAC;EAChC,IAAI,CAACC,KAAK,EAAEd,UAAU,CAACe,GAAG,CAACF,IAAI,EAAGC,KAAK,GAAG,IAAIE,GAAG,CAAC,CAAE,CAAC;EAErD,OAAOF,KAAK;AACd","ignoreList":[]}
@@ -7,6 +7,7 @@ exports.default = void 0;
7
7
  var _index = require("./path/index.js");
8
8
  var _t = require("@babel/types");
9
9
  var _context = require("./path/context.js");
10
+ var _hub = require("./hub.js");
10
11
  const {
11
12
  VISITOR_KEYS
12
13
  } = _t;
@@ -33,12 +34,17 @@ class TraversalContext {
33
34
  return false;
34
35
  }
35
36
  create(node, container, key, listKey) {
37
+ const {
38
+ parentPath
39
+ } = this;
40
+ const hub = parentPath == null ? node.type === "Program" || node.type === "File" ? new _hub.default() : undefined : parentPath.hub;
36
41
  return _index.default.get({
37
- parentPath: this.parentPath,
42
+ parentPath,
38
43
  parent: node,
39
44
  container,
40
45
  key: key,
41
- listKey
46
+ listKey,
47
+ hub
42
48
  });
43
49
  }
44
50
  maybeQueue(path, notPriority) {
@@ -78,7 +84,6 @@ class TraversalContext {
78
84
  const path = queue[visitIndex];
79
85
  visitIndex++;
80
86
  _context.resync.call(path);
81
- ;
82
87
  if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) {
83
88
  _context.pushContext.call(path, this);
84
89
  }
@@ -100,7 +105,6 @@ class TraversalContext {
100
105
  }
101
106
  }
102
107
  for (let i = 0; i < visitIndex; i++) {
103
- ;
104
108
  _context.popContext.call(queue[i]);
105
109
  }
106
110
  this.queue = null;
@@ -1 +1 @@
1
- {"version":3,"names":["_index","require","_t","_context","VISITOR_KEYS","TraversalContext","constructor","scope","opts","state","parentPath","queue","priorityQueue","shouldVisit","node","enter","exit","type","keys","length","key","create","container","listKey","NodePath","get","parent","maybeQueue","path","notPriority","push","visitMultiple","visitQueue","visitSingle","visited","WeakSet","stop","visitIndex","resync","call","contexts","pushContext","has","add","visit","i","popContext","nodes","Array","isArray","exports","default"],"sources":["../src/context.ts"],"sourcesContent":["import NodePath from \"./path/index.ts\";\nimport { VISITOR_KEYS } from \"@babel/types\";\nimport type Scope from \"./scope/index.ts\";\nimport type { ExplodedTraverseOptions } from \"./index.ts\";\nimport type * as t from \"@babel/types\";\nimport type { Visitor } from \"./types.ts\";\nimport { popContext, pushContext, resync } from \"./path/context.ts\";\n\nexport default class TraversalContext<S = unknown> {\n constructor(\n scope: Scope | null | undefined,\n opts: ExplodedTraverseOptions<S>,\n state: S,\n parentPath: NodePath | undefined,\n ) {\n this.parentPath = parentPath;\n this.scope = scope;\n this.state = state;\n this.opts = opts;\n }\n\n declare parentPath: NodePath | undefined;\n declare scope: Scope | null | undefined;\n declare state: S;\n declare opts: ExplodedTraverseOptions<S>;\n queue: Array<NodePath> | null = null;\n priorityQueue: Array<NodePath> | null = null;\n\n /**\n * This method does a simple check to determine whether or not we really need to attempt\n * visit a node. This will prevent us from constructing a NodePath.\n */\n\n shouldVisit(node: t.Node): boolean {\n const opts = this.opts as Visitor;\n if (opts.enter || opts.exit) return true;\n\n // check if we have a visitor for this node\n if (opts[node.type]) return true;\n\n // check if we're going to traverse into this node\n const keys: Array<string> | undefined = VISITOR_KEYS[node.type];\n if (!keys?.length) return false;\n\n // we need to traverse into this node so ensure that it has children to traverse into!\n for (const key of keys) {\n if (\n // @ts-expect-error key is from visitor keys\n node[key]\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n create(\n node: t.Node,\n container: t.Node | t.Node[],\n key: string | number,\n listKey?: string,\n ): NodePath {\n // We don't need to `.setContext()` here, since `.visitQueue()` already\n // calls `.pushContext`.\n return NodePath.get({\n parentPath: this.parentPath,\n parent: node,\n container,\n key: key,\n listKey,\n });\n }\n\n maybeQueue(path: NodePath, notPriority?: boolean) {\n if (this.queue) {\n if (notPriority) {\n this.queue.push(path);\n } else {\n this.priorityQueue!.push(path);\n }\n }\n }\n\n visitMultiple(container: t.Node[], parent: t.Node, listKey: string) {\n // nothing to traverse!\n if (container.length === 0) return false;\n\n const queue = [];\n\n // build up initial queue\n for (let key = 0; key < container.length; key++) {\n const node = container[key];\n if (node && this.shouldVisit(node)) {\n queue.push(this.create(parent, container, key, listKey));\n }\n }\n\n return this.visitQueue(queue);\n }\n\n visitSingle(node: t.Node, key: string): boolean {\n if (\n this.shouldVisit(\n // @ts-expect-error key may not index node\n node[key],\n )\n ) {\n return this.visitQueue([this.create(node, node, key)]);\n } else {\n return false;\n }\n }\n\n visitQueue(queue: Array<NodePath>): boolean {\n // set queue\n this.queue = queue;\n this.priorityQueue = [];\n\n const visited = new WeakSet();\n let stop = false;\n let visitIndex = 0;\n\n // visit the queue\n for (; visitIndex < queue.length; ) {\n const path = queue[visitIndex];\n visitIndex++;\n resync.call(path);\n\n // this path no longer belongs to the tree\n if (process.env.BABEL_8_BREAKING && path.key === null) continue;\n\n if (\n path.contexts.length === 0 ||\n path.contexts[path.contexts.length - 1] !== this\n ) {\n // The context might already have been pushed when this path was inserted and queued.\n // If we always re-pushed here, we could get duplicates and risk leaving contexts\n // on the stack after the traversal has completed, which could break things.\n pushContext.call(path, this);\n }\n\n // this path no longer belongs to the tree\n if (!process.env.BABEL_8_BREAKING && path.key === null) continue;\n\n // ensure we don't visit the same node twice\n const { node } = path;\n if (visited.has(node)) continue;\n if (node) visited.add(node);\n\n if (path.visit()) {\n stop = true;\n break;\n }\n\n if (this.priorityQueue.length) {\n stop = this.visitQueue(this.priorityQueue);\n this.priorityQueue = [];\n this.queue = queue;\n if (stop) break;\n }\n }\n\n // pop contexts\n for (let i = 0; i < visitIndex; i++) {\n if (process.env.BABEL_8_BREAKING && queue[i].key === null) continue;\n popContext.call(queue[i]);\n }\n\n // clear queue\n this.queue = null;\n\n return stop;\n }\n\n visit(node: t.Node, key: string) {\n // @ts-expect-error key may not index node\n const nodes = node[key] as t.Node | t.Node[] | null;\n if (!nodes) return false;\n\n if (Array.isArray(nodes)) {\n return this.visitMultiple(nodes, node, key);\n } else {\n return this.visitSingle(node, key);\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAAoE;EAL3DG;AAAY,IAAAF,EAAA;AAON,MAAMG,gBAAgB,CAAc;EACjDC,WAAWA,CACTC,KAA+B,EAC/BC,IAAgC,EAChCC,KAAQ,EACRC,UAAgC,EAChC;IAAA,KAWFC,KAAK,GAA2B,IAAI;IAAA,KACpCC,aAAa,GAA2B,IAAI;IAX1C,IAAI,CAACF,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACH,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACE,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACD,IAAI,GAAGA,IAAI;EAClB;EAcAK,WAAWA,CAACC,IA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EYS","TraversalContext","constructor","scope","opts","state","parentPath","queue","priorityQueue","shouldVisit","node","enter","exit","type","keys","length","key","create","container","listKey","hub","Hub","undefined","NodePath","get","parent","maybeQueue","path","notPriority","push","visitMultiple","visitQueue","visitSingle","visited","WeakSet","stop","visitIndex","resync","call","contexts","pushContext","has","add","visit","i","popContext","nodes","Array","isArray","exports","default"],"sources":["../src/context.ts"],"sourcesContent":["import NodePath from \"./path/index.ts\";\nimport { VISITOR_KEYS } from \"@babel/types\";\nimport type Scope from \"./scope/index.ts\";\nimport type { ExplodedTraverseOptions } from \"./index.ts\";\nimport type * as t from \"@babel/types\";\nimport type { Visitor } from \"./types.ts\";\nimport { popContext, pushContext, resync } from \"./path/context.ts\";\nimport Hub from \"./hub.ts\";\n\nexport default class TraversalContext<S = unknown> {\n constructor(\n scope: Scope | null | undefined,\n opts: ExplodedTraverseOptions<S>,\n state: S,\n parentPath: NodePath | undefined,\n ) {\n this.parentPath = parentPath;\n this.scope = scope;\n this.state = state;\n this.opts = opts;\n }\n\n declare parentPath: NodePath | undefined;\n declare scope: Scope | null | undefined;\n declare state: S;\n declare opts: ExplodedTraverseOptions<S>;\n queue: NodePath[] | null = null;\n priorityQueue: NodePath[] | null = null;\n\n /**\n * This method does a simple check to determine whether or not we really need to attempt\n * visit a node. This will prevent us from constructing a NodePath.\n */\n\n shouldVisit(node: t.Node): boolean {\n const opts = this.opts as Visitor;\n if (opts.enter || opts.exit) return true;\n\n // check if we have a visitor for this node\n if (opts[node.type]) return true;\n\n // check if we're going to traverse into this node\n const keys: string[] | undefined = VISITOR_KEYS[node.type];\n if (!keys?.length) return false;\n\n // we need to traverse into this node so ensure that it has children to traverse into!\n for (const key of keys) {\n if (\n // @ts-expect-error key is from visitor keys\n node[key]\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n create(\n node: t.Node,\n container: t.Node | t.Node[],\n key: string | number,\n listKey?: string,\n ): NodePath {\n const { parentPath } = this;\n const hub =\n parentPath == null\n ? node.type === \"Program\" || node.type === \"File\"\n ? new Hub()\n : undefined\n : parentPath.hub;\n\n // We don't need to `.setContext()` here, since `.visitQueue()` already\n // calls `.pushContext`.\n return NodePath.get({\n parentPath,\n parent: node,\n container,\n key: key,\n listKey,\n hub,\n });\n }\n\n maybeQueue(path: NodePath, notPriority?: boolean) {\n if (this.queue) {\n if (notPriority) {\n this.queue.push(path);\n } else {\n this.priorityQueue!.push(path);\n }\n }\n }\n\n visitMultiple(container: t.Node[], parent: t.Node, listKey: string) {\n // nothing to traverse!\n if (container.length === 0) return false;\n\n const queue = [];\n\n // build up initial queue\n for (let key = 0; key < container.length; key++) {\n const node = container[key];\n if (node && this.shouldVisit(node)) {\n queue.push(this.create(parent, container, key, listKey));\n }\n }\n\n return this.visitQueue(queue);\n }\n\n visitSingle(node: t.Node, key: string): boolean {\n if (\n this.shouldVisit(\n // @ts-expect-error key may not index node\n node[key],\n )\n ) {\n return this.visitQueue([this.create(node, node, key)]);\n } else {\n return false;\n }\n }\n\n visitQueue(queue: NodePath[]): boolean {\n // set queue\n this.queue = queue;\n this.priorityQueue = [];\n\n const visited = new WeakSet();\n let stop = false;\n let visitIndex = 0;\n\n // visit the queue\n for (; visitIndex < queue.length; ) {\n const path = queue[visitIndex];\n visitIndex++;\n resync.call(path);\n\n // this path no longer belongs to the tree\n if (process.env.BABEL_8_BREAKING && path.key === null) continue;\n\n if (\n path.contexts.length === 0 ||\n path.contexts[path.contexts.length - 1] !== this\n ) {\n // The context might already have been pushed when this path was inserted and queued.\n // If we always re-pushed here, we could get duplicates and risk leaving contexts\n // on the stack after the traversal has completed, which could break things.\n pushContext.call(path, this);\n }\n\n // this path no longer belongs to the tree\n if (!process.env.BABEL_8_BREAKING && path.key === null) continue;\n\n // ensure we don't visit the same node twice\n const { node } = path;\n if (visited.has(node)) continue;\n if (node) visited.add(node);\n\n if (path.visit()) {\n stop = true;\n break;\n }\n\n if (this.priorityQueue.length) {\n stop = this.visitQueue(this.priorityQueue);\n this.priorityQueue = [];\n this.queue = queue;\n if (stop) break;\n }\n }\n\n // pop contexts\n for (let i = 0; i < visitIndex; i++) {\n if (process.env.BABEL_8_BREAKING && queue[i].key === null) continue;\n popContext.call(queue[i]);\n }\n\n // clear queue\n this.queue = null;\n\n return stop;\n }\n\n visit(node: t.Node, key: string) {\n // @ts-expect-error key may not index node\n const nodes = node[key] as t.Node | t.Node[] | null;\n if (!nodes) return false;\n\n if (Array.isArray(nodes)) {\n return this.visitMultiple(nodes, node, key);\n } else {\n return this.visitSingle(node, key);\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAA2B;EANlBI;AAAY,IAAAH,EAAA;AAQN,MAAMI,gBAAgB,CAAc;EACjDC,WAAWA,CACTC,KAA+B,EAC/BC,IAAgC,EAChCC,KAAQ,EACRC,UAAgC,EAChC;IAAA,KAWFC,KAAK,GAAsB,IAAI;IAAA,KAC/BC,aAAa,GAAsB,IAAI;IAXrC,IAAI,CAACF,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACH,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACE,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACD,IAAI,GAAGA,IAAI;EAClB;EAcAK,WAAWA,CAACC,IAAY,EAAW;IACjC,MAAMN,IAAI,GAAG,IAAI,CAACA,IAAe;IACjC,IAAIA,IAAI,CAACO,KAAK,IAAIP,IAAI,CAACQ,IAAI,EAAE,OAAO,IAAI;IAGxC,IAAIR,IAAI,CAACM,IAAI,CAACG,IAAI,CAAC,EAAE,OAAO,IAAI;IAGhC,MAAMC,IAA0B,GAAGd,YAAY,CAACU,IAAI,CAACG,IAAI,CAAC;IAC1D,IAAI,EAACC,IAAI,YAAJA,IAAI,CAAEC,MAAM,GAAE,OAAO,KAAK;IAG/B,KAAK,MAAMC,GAAG,IAAIF,IAAI,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uB,OAAO,CAACS,GAAG,CAAChC,IAAI,CAAC;MAE3B,IAAIiB,IAAI,CAACgB,KAAK,CAAC,CAAC,EAAE;QAChBR,IAAI,GAAG,IAAI;QACX;MACF;MAEA,IAAI,IAAI,CAAC3B,aAAa,CAACO,MAAM,EAAE;QAC7BoB,IAAI,GAAG,IAAI,CAACJ,UAAU,CAAC,IAAI,CAACvB,aAAa,CAAC;QAC1C,IAAI,CAACA,aAAa,GAAG,EAAE;QACvB,IAAI,CAACD,KAAK,GAAGA,KAAK;QAClB,IAAI4B,IAAI,EAAE;MACZ;IACF;IAGA,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGR,UAAU,EAAEQ,CAAC,EAAE,EAAE;MAEnCC,mBAAU,CAACP,IAAI,CAAC/B,KAAK,CAACqC,CAAC,CAAC,CAAC;IAC3B;IAGA,IAAI,CAACrC,KAAK,GAAG,IAAI;IAEjB,OAAO4B,IAAI;EACb;EAEAQ,KAAKA,CAACjC,IAAY,EAAEM,GAAW,EAAE;IAE/B,MAAM8B,KAAK,GAAGpC,IAAI,CAACM,GAAG,CAA6B;IACnD,IAAI,CAAC8B,KAAK,EAAE,OAAO,KAAK;IAExB,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAO,IAAI,CAAChB,aAAa,CAACgB,KAAK,EAAEpC,IAAI,EAAEM,GAAG,CAAC;IAC7C,CAAC,MAAM;MACL,OAAO,IAAI,CAACgB,WAAW,CAACtB,IAAI,EAAEM,GAAG,CAAC;IACpC;EACF;AACF;AAACiC,OAAA,CAAAC,OAAA,GAAAjD,gBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["require","visitors","exports","_t","cache","_traverseNode","_index","_index2","_hub","VISITOR_KEYS","removeProperties","traverseFast","traverse","parent","opts","scope","state","parentPath","visitSelf","noScope","type","Error","explode","traverseNode","undefined","_default","default","verify","cheap","node","enter","path","skipKeys","clearNode","tree","hasType","denylistTypes","includes","skip","stop"],"sources":["../src/index.ts"],"sourcesContent":["import \"./path/context.ts\"; // We have some cycles, this ensures correct order to avoid TDZ\nimport * as visitors from \"./visitors.ts\";\nimport {\n VISITOR_KEYS,\n removeProperties,\n type RemovePropertiesOptions,\n traverseFast,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport * as cache from \"./cache.ts\";\nimport type NodePath from \"./path/index.ts\";\nimport type { default as Scope, Binding } from \"./scope/index.ts\";\nimport type { ExplodedVisitor, Visitor, VisitorBase } from \"./types.ts\";\nimport { traverseNode } from \"./traverse-node.ts\";\n\nexport type { ExplodedVisitor, Visitor, VisitorBase, Binding };\nexport { default as NodePath } from \"./path/index.ts\";\nexport { default as Scope } from \"./scope/index.ts\";\nexport { default as Hub } from \"./hub.ts\";\nexport type { HubInterface } from \"./hub.ts\";\nexport type { VisitWrapper } from \"./visitors.ts\";\n\nexport { visitors };\n\nexport type TraverseOptions<S = t.Node> = {\n scope?: Scope;\n noScope?: boolean;\n denylist?: string[];\n shouldSkip?: (node: NodePath) => boolean;\n} & Visitor<S>;\n\nexport type ExplodedTraverseOptions<S = t.Node> = TraverseOptions<S> &\n ExplodedVisitor<S>;\n\nfunction traverse<S>(\n parent: t.Node,\n opts: TraverseOptions<S>,\n scope: Scope | null | undefined,\n state: S,\n parentPath?: NodePath,\n visitSelf?: boolean,\n): void;\n\nfunction traverse(\n parent: t.Node,\n opts: TraverseOptions,\n scope?: Scope | null,\n state?: any,\n parentPath?: NodePath,\n visitSelf?: boolean,\n): void;\n\nfunction traverse<Options extends TraverseOptions>(\n parent: t.Node,\n // @ts-expect-error provide {} as default value for Options\n opts: Options = {},\n scope?: Scope | null,\n state?: any,\n parentPath?: NodePath,\n visitSelf?: boolean,\n) {\n if (!parent) return;\n\n if (!opts.noScope && !scope) {\n if (parent.type !== \"Program\" && parent.type !== \"File\") {\n throw new Error(\n \"You must pass a scope and parentPath unless traversing a Program/File. \" +\n `Instead of that you tried to traverse a ${parent.type} node without ` +\n \"passing scope and parentPath.\",\n );\n }\n }\n\n if (!parentPath && visitSelf) {\n throw new Error(\"visitSelf can only be used when providing a NodePath.\");\n }\n\n if (!VISITOR_KEYS[parent.type]) {\n return;\n }\n\n visitors.explode(opts as Visitor);\n\n traverseNode(\n parent,\n opts as ExplodedVisitor,\n scope,\n state,\n parentPath,\n /* skipKeys */ undefined,\n visitSelf,\n );\n}\n\nexport default traverse;\n\ntraverse.visitors = visitors;\ntraverse.verify = visitors.verify;\ntraverse.explode = visitors.explode;\n\ntraverse.cheap = function (node: t.Node, enter: (node: t.Node) => void) {\n traverseFast(node, enter);\n return;\n};\n\ntraverse.node = function (\n node: t.Node,\n opts: ExplodedTraverseOptions,\n scope?: Scope,\n state?: any,\n path?: NodePath,\n skipKeys?: Record<string, boolean>,\n) {\n traverseNode(node, opts, scope, state, path, skipKeys);\n // traverse.node always returns undefined\n};\n\ntraverse.clearNode = function (node: t.Node, opts?: RemovePropertiesOptions) {\n removeProperties(node, opts);\n};\n\ntraverse.removeProperties = function (\n tree: t.Node,\n opts?: RemovePropertiesOptions,\n) {\n traverseFast(tree, traverse.clearNode, opts);\n return tree;\n};\n\ntraverse.hasType = function (\n tree: t.Node,\n type: t.Node[\"type\"],\n denylistTypes?: Array<string>,\n): boolean {\n // the node we're searching in is denylisted\n if (denylistTypes?.includes(tree.type)) return false;\n\n // the type we're looking for is the same as the passed node\n if (tree.type === type) return true;\n\n return traverseFast(tree, function (node) {\n if (denylistTypes?.includes(node.type)) {\n return traverseFast.skip;\n }\n if (node.type === type) {\n return traverseFast.stop;\n }\n });\n};\n\ntraverse.cache = cache;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAA0CE,OAAA,CAAAD,QAAA,GAAAA,QAAA;AAC1C,IAAAE,EAAA,GAAAH,OAAA;AAOA,IAAAI,KAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AAGA,I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AC;EACzB;AACF,CAAC;AAEDlB,QAAQ,CAACiB,IAAI,GAAG,UACdA,IAAY,EACZf,IAA6B,EAC7BC,KAAa,EACbC,KAAW,EACXe,IAAe,EACfC,QAAkC,EAClC;EACA,IAAAT,0BAAY,EAACM,IAAI,EAAEf,IAAI,EAAEC,KAAK,EAAEC,KAAK,EAAEe,IAAI,EAAEC,QAAQ,CAAC;AAExD,CAAC;AAEDpB,QAAQ,CAACqB,SAAS,GAAG,UAAUJ,IAAY,EAAEf,IAA8B,EAAE;EAC3EJ,gBAAgB,CAACmB,IAAI,EAAEf,IAAI,CAAC;AAC9B,CAAC;AAEDF,QAAQ,CAACF,gBAAgB,GAAG,UAC1BwB,IAAY,EACZpB,IAA8B,EAC9B;EACAH,YAAY,CAACuB,IAAI,EAAEtB,QAAQ,CAACqB,SAAS,EAAEnB,IAAI,CAAC;EAC5C,OAAOoB,IAAI;AACb,CAAC;AAEDtB,QAAQ,CAACuB,OAAO,GAAG,UACjBD,IAAY,EACZd,IAAoB,EACpBgB,aAA6B,EACpB;EAET,IAAIA,aAAa,YAAbA,aAAa,CAAEC,QAAQ,CAACH,IAAI,CAACd,IAAI,CAAC,EAAE,OAAO,KAAK;EAGpD,IAAIc,IAAI,CAACd,IAAI,KAAKA,IAAI,EAAE,OAAO,IAAI;EAEnC,OAAOT,YAAY,CAACuB,IAAI,EAAE,UAAUL,IAAI,EAAE;IACxC,IAAIO,aAAa,YAAbA,aAAa,CAAEC,QAAQ,CAACR,IAAI,CAACT,IAAI,CAAC,EAAE;MACtC,OAAOT,YAAY,CAAC2B,IAAI;IAC1B;IACA,IAAIT,IAAI,CAACT,IAAI,KAAKA,IAAI,EAAE;MACtB,OAAOT,YAAY,CAAC4B,IAAI;IAC1B;EACF,CAAC,CAAC;AACJ,CAAC;AAED3B,QAAQ,CAACR,KAAK,GAAGA,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["require","visitors","exports","_t","cache","_traverseNode","_index","_index2","_hub","VISITOR_KEYS","removeProperties","traverseFast","traverse","parent","opts","scope","state","parentPath","visitSelf","noScope","type","Error","explode","traverseNode","undefined","_default","default","verify","cheap","node","enter","path","skipKeys","clearNode","tree","hasType","denylistTypes","includes","skip","stop"],"sources":["../src/index.ts"],"sourcesContent":["import \"./path/context.ts\"; // We have some cycles, this ensures correct order to avoid TDZ\nimport * as visitors from \"./visitors.ts\";\nimport {\n VISITOR_KEYS,\n removeProperties,\n type RemovePropertiesOptions,\n traverseFast,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport * as cache from \"./cache.ts\";\nimport type NodePath from \"./path/index.ts\";\nimport type { default as Scope, Binding } from \"./scope/index.ts\";\nimport type { ExplodedVisitor, Visitor, VisitorBase } from \"./types.ts\";\nimport { traverseNode } from \"./traverse-node.ts\";\n\nexport type { ExplodedVisitor, Visitor, VisitorBase, Binding };\nexport { default as NodePath } from \"./path/index.ts\";\nexport { default as Scope, type BindingKind } from \"./scope/index.ts\";\nexport { default as Hub } from \"./hub.ts\";\nexport type { HubInterface } from \"./hub.ts\";\nexport type { VisitWrapper } from \"./visitors.ts\";\n\nexport { visitors };\n\nexport type TraverseOptions<S = t.Node> = {\n scope?: Scope;\n noScope?: boolean;\n denylist?: string[];\n shouldSkip?: (node: NodePath) => boolean;\n} & Visitor<S>;\n\nexport type ExplodedTraverseOptions<S = t.Node> = TraverseOptions<S> &\n ExplodedVisitor<S>;\n\nfunction traverse<S>(\n parent: t.Node,\n opts: TraverseOptions<S>,\n scope: Scope | null | undefined,\n state: S,\n parentPath?: NodePath,\n visitSelf?: boolean,\n): void;\n\nfunction traverse(\n parent: t.Node,\n opts: TraverseOptions,\n scope?: Scope | null,\n state?: any,\n parentPath?: NodePath,\n visitSelf?: boolean,\n): void;\n\nfunction traverse<Options extends TraverseOptions>(\n parent: t.Node,\n // @ts-expect-error provide {} as default value for Options\n opts: Options = {},\n scope?: Scope | null,\n state?: any,\n parentPath?: NodePath,\n visitSelf?: boolean,\n) {\n if (!parent) return;\n\n if (!opts.noScope && !scope) {\n if (parent.type !== \"Program\" && parent.type !== \"File\") {\n throw new Error(\n \"You must pass a scope and parentPath unless traversing a Program/File. \" +\n `Instead of that you tried to traverse a ${parent.type} node without ` +\n \"passing scope and parentPath.\",\n );\n }\n }\n\n if (!parentPath && visitSelf) {\n throw new Error(\"visitSelf can only be used when providing a NodePath.\");\n }\n\n if (!VISITOR_KEYS[parent.type]) {\n return;\n }\n\n visitors.explode(opts as Visitor);\n\n traverseNode(\n parent,\n opts as ExplodedVisitor,\n scope,\n state,\n parentPath,\n /* skipKeys */ undefined,\n visitSelf,\n );\n}\n\nexport default traverse;\n\ntraverse.visitors = visitors;\ntraverse.verify = visitors.verify;\ntraverse.explode = visitors.explode;\n\ntraverse.cheap = function (node: t.Node, enter: (node: t.Node) => void) {\n traverseFast(node, enter);\n return;\n};\n\ntraverse.node = function (\n node: t.Node,\n opts: ExplodedTraverseOptions,\n scope?: Scope,\n state?: any,\n path?: NodePath,\n skipKeys?: Record<string, boolean>,\n) {\n traverseNode(node, opts, scope, state, path, skipKeys);\n // traverse.node always returns undefined\n};\n\ntraverse.clearNode = function (node: t.Node, opts?: RemovePropertiesOptions) {\n removeProperties(node, opts);\n};\n\ntraverse.removeProperties = function (\n tree: t.Node,\n opts?: RemovePropertiesOptions,\n) {\n traverseFast(tree, traverse.clearNode, opts);\n return tree;\n};\n\ntraverse.hasType = function (\n tree: t.Node,\n type: t.Node[\"type\"],\n denylistTypes?: string[],\n): boolean {\n // the node we're searching in is denylisted\n if (denylistTypes?.includes(tree.type)) return false;\n\n // the type we're looking for is the same as the passed node\n if (tree.type === type) return true;\n\n return traverseFast(tree, function (node) {\n if (denylistTypes?.includes(node.type)) {\n return traverseFast.skip;\n }\n if (node.type === type) {\n return traverseFast.stop;\n }\n });\n};\n\ntraverse.cache = cache;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAA0CE,OAAA,CAAA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