peerpigeon 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (896) hide show
  1. package/dist/index.cjs +9011 -0
  2. package/dist/index.d.cts +2027 -0
  3. package/dist/index.d.ts +2027 -0
  4. package/dist/index.js +8944 -0
  5. package/package.json +53 -86
  6. package/LICENSE +0 -21
  7. package/README.md +0 -317
  8. package/cli.js +0 -1382
  9. package/dist/peerpigeon-browser.js +0 -13322
  10. package/dist/peerpigeon-browser.js.map +0 -7
  11. package/docs/API_DOCUMENTATION.md +0 -1976
  12. package/docs/BINARY_IMPLEMENTATION_SUMMARY.md +0 -304
  13. package/docs/BINARY_MESSAGES.md +0 -332
  14. package/docs/BOOTSTRAP_HUBS.md +0 -319
  15. package/docs/BROADCAST_STREAMING.md +0 -388
  16. package/docs/CLI_README.md +0 -371
  17. package/docs/CLOUD_DEPLOYMENT.md +0 -132
  18. package/docs/CUSTOM_HUB_NAMESPACES.md +0 -182
  19. package/docs/CUSTOM_NAMESPACE_IMPLEMENTATION.md +0 -187
  20. package/docs/DOCUMENTATION_REORGANIZATION.md +0 -172
  21. package/docs/HUB_P2P_MESH.md +0 -358
  22. package/docs/HUB_QUICK_REF.md +0 -108
  23. package/docs/HUB_SCRIPTS.md +0 -341
  24. package/docs/HUB_SYSTEM.md +0 -599
  25. package/docs/LOCAL_TESTING.md +0 -135
  26. package/docs/MIGRATION_COMPLETE.md +0 -93
  27. package/docs/NETWORK_NAMESPACES.md +0 -212
  28. package/docs/PIGEONRTC_MIGRATION.md +0 -280
  29. package/docs/README.md +0 -108
  30. package/docs/SELECTIVE_STREAMING_GUIDE.md +0 -427
  31. package/docs/STREAMING_API.md +0 -542
  32. package/docs/STREAMING_IMPLEMENTATION_SUMMARY.md +0 -286
  33. package/docs/TEST_CLEANUP_COMPLETE.md +0 -80
  34. package/examples/binary-message-demo.html +0 -496
  35. package/examples/bootstrap-hub-example.js +0 -292
  36. package/examples/broadcast-stream-demo.html +0 -539
  37. package/examples/browser/vanilla/README.md +0 -278
  38. package/examples/browser/vanilla/app.js +0 -2478
  39. package/examples/browser/vanilla/index.html +0 -603
  40. package/examples/browser/vanilla/minimal/README.md +0 -55
  41. package/examples/browser/vanilla/minimal/index.html +0 -75
  42. package/examples/browser/vanilla/minimal/minimal.js +0 -234
  43. package/examples/browser/vanilla/peerpigeon-browser.js +0 -13322
  44. package/examples/browser/vanilla/pigeonlogo.svg +0 -51
  45. package/examples/browser/vanilla/styles.css +0 -998
  46. package/examples/browser/vanilla/test-bundle.html +0 -35
  47. package/examples/browser/vue/EXPRESS_SOLUTION.md +0 -183
  48. package/examples/browser/vue/ICE_DEBUG.md +0 -171
  49. package/examples/browser/vue/IMPLEMENTATION.md +0 -218
  50. package/examples/browser/vue/QUICK_START.md +0 -149
  51. package/examples/browser/vue/README.md +0 -303
  52. package/examples/browser/vue/dist/assets/index-DJmfz_4i.js +0 -57
  53. package/examples/browser/vue/dist/assets/index-zmUJURg4.css +0 -1
  54. package/examples/browser/vue/dist/index.html +0 -32
  55. package/examples/browser/vue/dist/peerpigeon-browser.js +0 -13322
  56. package/examples/browser/vue/dist/pigeonlogo.svg +0 -51
  57. package/examples/browser/vue/index.html +0 -31
  58. package/examples/browser/vue/node_modules/.package-lock.json +0 -1305
  59. package/examples/browser/vue/node_modules/.vue-global-types/vue_99_0.d.ts +0 -136
  60. package/examples/browser/vue/node_modules/@babel/helper-string-parser/LICENSE +0 -22
  61. package/examples/browser/vue/node_modules/@babel/helper-string-parser/README.md +0 -19
  62. package/examples/browser/vue/node_modules/@babel/helper-string-parser/lib/index.js +0 -295
  63. package/examples/browser/vue/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
  64. package/examples/browser/vue/node_modules/@babel/helper-string-parser/package.json +0 -31
  65. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
  66. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/README.md +0 -19
  67. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
  68. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  69. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
  70. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  71. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
  72. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  73. package/examples/browser/vue/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  74. package/examples/browser/vue/node_modules/@babel/parser/CHANGELOG.md +0 -1073
  75. package/examples/browser/vue/node_modules/@babel/parser/LICENSE +0 -19
  76. package/examples/browser/vue/node_modules/@babel/parser/README.md +0 -19
  77. package/examples/browser/vue/node_modules/@babel/parser/bin/babel-parser.js +0 -15
  78. package/examples/browser/vue/node_modules/@babel/parser/lib/index.js +0 -14595
  79. package/examples/browser/vue/node_modules/@babel/parser/lib/index.js.map +0 -1
  80. package/examples/browser/vue/node_modules/@babel/parser/package.json +0 -50
  81. package/examples/browser/vue/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -239
  82. package/examples/browser/vue/node_modules/@babel/types/LICENSE +0 -22
  83. package/examples/browser/vue/node_modules/@babel/types/README.md +0 -19
  84. package/examples/browser/vue/node_modules/@babel/types/lib/asserts/assertNode.js +0 -16
  85. package/examples/browser/vue/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
  86. package/examples/browser/vue/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1251
  87. package/examples/browser/vue/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
  88. package/examples/browser/vue/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -3
  89. package/examples/browser/vue/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
  90. package/examples/browser/vue/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -18
  91. package/examples/browser/vue/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
  92. package/examples/browser/vue/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -31
  93. package/examples/browser/vue/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
  94. package/examples/browser/vue/node_modules/@babel/types/lib/builders/generated/index.js +0 -29
  95. package/examples/browser/vue/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
  96. package/examples/browser/vue/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -2896
  97. package/examples/browser/vue/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
  98. package/examples/browser/vue/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -274
  99. package/examples/browser/vue/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
  100. package/examples/browser/vue/node_modules/@babel/types/lib/builders/productions.js +0 -12
  101. package/examples/browser/vue/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
  102. package/examples/browser/vue/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -24
  103. package/examples/browser/vue/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
  104. package/examples/browser/vue/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -22
  105. package/examples/browser/vue/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
  106. package/examples/browser/vue/node_modules/@babel/types/lib/builders/validateNode.js +0 -21
  107. package/examples/browser/vue/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
  108. package/examples/browser/vue/node_modules/@babel/types/lib/clone/clone.js +0 -12
  109. package/examples/browser/vue/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
  110. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -12
  111. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
  112. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -12
  113. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
  114. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneNode.js +0 -107
  115. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
  116. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -12
  117. package/examples/browser/vue/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
  118. package/examples/browser/vue/node_modules/@babel/types/lib/comments/addComment.js +0 -15
  119. package/examples/browser/vue/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
  120. package/examples/browser/vue/node_modules/@babel/types/lib/comments/addComments.js +0 -22
  121. package/examples/browser/vue/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
  122. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -12
  123. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
  124. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -12
  125. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
  126. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -12
  127. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
  128. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -17
  129. package/examples/browser/vue/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
  130. package/examples/browser/vue/node_modules/@babel/types/lib/comments/removeComments.js +0 -15
  131. package/examples/browser/vue/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
  132. package/examples/browser/vue/node_modules/@babel/types/lib/constants/generated/index.js +0 -60
  133. package/examples/browser/vue/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
  134. package/examples/browser/vue/node_modules/@babel/types/lib/constants/index.js +0 -33
  135. package/examples/browser/vue/node_modules/@babel/types/lib/constants/index.js.map +0 -1
  136. package/examples/browser/vue/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -14
  137. package/examples/browser/vue/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
  138. package/examples/browser/vue/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -66
  139. package/examples/browser/vue/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
  140. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -14
  141. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
  142. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toBlock.js +0 -29
  143. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
  144. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -14
  145. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
  146. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toExpression.js +0 -28
  147. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
  148. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -25
  149. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
  150. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -38
  151. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
  152. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -20
  153. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
  154. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toStatement.js +0 -39
  155. package/examples/browser/vue/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
  156. package/examples/browser/vue/node_modules/@babel/types/lib/converters/valueToNode.js +0 -89
  157. package/examples/browser/vue/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
  158. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/core.js +0 -1659
  159. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
  160. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -11
  161. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
  162. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/experimental.js +0 -126
  163. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
  164. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/flow.js +0 -495
  165. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
  166. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/index.js +0 -100
  167. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
  168. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/jsx.js +0 -157
  169. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
  170. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/misc.js +0 -33
  171. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
  172. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/placeholders.js +0 -27
  173. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
  174. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/typescript.js +0 -528
  175. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
  176. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/utils.js +0 -292
  177. package/examples/browser/vue/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
  178. package/examples/browser/vue/node_modules/@babel/types/lib/index-legacy.d.ts +0 -2797
  179. package/examples/browser/vue/node_modules/@babel/types/lib/index.d.ts +0 -3308
  180. package/examples/browser/vue/node_modules/@babel/types/lib/index.js +0 -584
  181. package/examples/browser/vue/node_modules/@babel/types/lib/index.js.flow +0 -2650
  182. package/examples/browser/vue/node_modules/@babel/types/lib/index.js.map +0 -1
  183. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -15
  184. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
  185. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -65
  186. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
  187. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/inherits.js +0 -28
  188. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
  189. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -17
  190. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
  191. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -24
  192. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
  193. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -14
  194. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
  195. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -66
  196. package/examples/browser/vue/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
  197. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -48
  198. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
  199. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -102
  200. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
  201. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -63
  202. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
  203. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -13
  204. package/examples/browser/vue/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
  205. package/examples/browser/vue/node_modules/@babel/types/lib/traverse/traverse.js +0 -50
  206. package/examples/browser/vue/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
  207. package/examples/browser/vue/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -40
  208. package/examples/browser/vue/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
  209. package/examples/browser/vue/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -44
  210. package/examples/browser/vue/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
  211. package/examples/browser/vue/node_modules/@babel/types/lib/utils/inherit.js +0 -13
  212. package/examples/browser/vue/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
  213. package/examples/browser/vue/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -40
  214. package/examples/browser/vue/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
  215. package/examples/browser/vue/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -17
  216. package/examples/browser/vue/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
  217. package/examples/browser/vue/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -13
  218. package/examples/browser/vue/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
  219. package/examples/browser/vue/node_modules/@babel/types/lib/validators/generated/index.js +0 -2797
  220. package/examples/browser/vue/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
  221. package/examples/browser/vue/node_modules/@babel/types/lib/validators/is.js +0 -27
  222. package/examples/browser/vue/node_modules/@babel/types/lib/validators/is.js.map +0 -1
  223. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isBinding.js +0 -27
  224. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
  225. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -13
  226. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
  227. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isImmutable.js +0 -21
  228. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
  229. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isLet.js +0 -17
  230. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
  231. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isNode.js +0 -12
  232. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
  233. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -57
  234. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
  235. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -15
  236. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
  237. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isReferenced.js +0 -96
  238. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
  239. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isScope.js +0 -18
  240. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
  241. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -14
  242. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
  243. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isType.js +0 -17
  244. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
  245. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -13
  246. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
  247. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -18
  248. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
  249. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isVar.js +0 -19
  250. package/examples/browser/vue/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
  251. package/examples/browser/vue/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -44
  252. package/examples/browser/vue/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
  253. package/examples/browser/vue/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -11
  254. package/examples/browser/vue/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
  255. package/examples/browser/vue/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -11
  256. package/examples/browser/vue/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
  257. package/examples/browser/vue/node_modules/@babel/types/lib/validators/validate.js +0 -42
  258. package/examples/browser/vue/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
  259. package/examples/browser/vue/node_modules/@babel/types/package.json +0 -39
  260. package/examples/browser/vue/node_modules/@esbuild/darwin-arm64/README.md +0 -3
  261. package/examples/browser/vue/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
  262. package/examples/browser/vue/node_modules/@esbuild/darwin-arm64/package.json +0 -20
  263. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -19
  264. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/README.md +0 -264
  265. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -423
  266. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -6
  267. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -464
  268. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -6
  269. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/package.json +0 -63
  270. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +0 -345
  271. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +0 -111
  272. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +0 -65
  273. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +0 -55
  274. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +0 -50
  275. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +0 -1
  276. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +0 -50
  277. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +0 -1
  278. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +0 -9
  279. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +0 -1
  280. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +0 -9
  281. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +0 -1
  282. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +0 -16
  283. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +0 -1
  284. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +0 -16
  285. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +0 -1
  286. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +0 -7
  287. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +0 -1
  288. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +0 -7
  289. package/examples/browser/vue/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +0 -1
  290. package/examples/browser/vue/node_modules/@rollup/rollup-darwin-arm64/README.md +0 -3
  291. package/examples/browser/vue/node_modules/@rollup/rollup-darwin-arm64/package.json +0 -22
  292. package/examples/browser/vue/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node +0 -0
  293. package/examples/browser/vue/node_modules/@types/estree/LICENSE +0 -21
  294. package/examples/browser/vue/node_modules/@types/estree/README.md +0 -15
  295. package/examples/browser/vue/node_modules/@types/estree/flow.d.ts +0 -167
  296. package/examples/browser/vue/node_modules/@types/estree/index.d.ts +0 -694
  297. package/examples/browser/vue/node_modules/@types/estree/package.json +0 -27
  298. package/examples/browser/vue/node_modules/@types/web-bluetooth/LICENSE +0 -21
  299. package/examples/browser/vue/node_modules/@types/web-bluetooth/README.md +0 -15
  300. package/examples/browser/vue/node_modules/@types/web-bluetooth/index.d.ts +0 -193
  301. package/examples/browser/vue/node_modules/@types/web-bluetooth/package.json +0 -40
  302. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/LICENSE +0 -21
  303. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/README.md +0 -278
  304. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/dist/index.cjs +0 -3105
  305. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/dist/index.d.cts +0 -113
  306. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/dist/index.d.mts +0 -111
  307. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/dist/index.d.ts +0 -113
  308. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/dist/index.mjs +0 -3090
  309. package/examples/browser/vue/node_modules/@vitejs/plugin-vue/package.json +0 -50
  310. package/examples/browser/vue/node_modules/@vue/compiler-core/LICENSE +0 -21
  311. package/examples/browser/vue/node_modules/@vue/compiler-core/README.md +0 -1
  312. package/examples/browser/vue/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +0 -6864
  313. package/examples/browser/vue/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6741
  314. package/examples/browser/vue/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +0 -1096
  315. package/examples/browser/vue/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +0 -5814
  316. package/examples/browser/vue/node_modules/@vue/compiler-core/index.js +0 -7
  317. package/examples/browser/vue/node_modules/@vue/compiler-core/package.json +0 -58
  318. package/examples/browser/vue/node_modules/@vue/compiler-dom/LICENSE +0 -21
  319. package/examples/browser/vue/node_modules/@vue/compiler-dom/README.md +0 -1
  320. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +0 -934
  321. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
  322. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +0 -45
  323. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +0 -6623
  324. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +0 -14
  325. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +0 -690
  326. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +0 -6790
  327. package/examples/browser/vue/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +0 -14
  328. package/examples/browser/vue/node_modules/@vue/compiler-dom/index.js +0 -7
  329. package/examples/browser/vue/node_modules/@vue/compiler-dom/package.json +0 -57
  330. package/examples/browser/vue/node_modules/@vue/compiler-sfc/LICENSE +0 -21
  331. package/examples/browser/vue/node_modules/@vue/compiler-sfc/README.md +0 -80
  332. package/examples/browser/vue/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +0 -25084
  333. package/examples/browser/vue/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +0 -485
  334. package/examples/browser/vue/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +0 -50571
  335. package/examples/browser/vue/node_modules/@vue/compiler-sfc/package.json +0 -67
  336. package/examples/browser/vue/node_modules/@vue/compiler-ssr/LICENSE +0 -21
  337. package/examples/browser/vue/node_modules/@vue/compiler-ssr/README.md +0 -1
  338. package/examples/browser/vue/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1411
  339. package/examples/browser/vue/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +0 -4
  340. package/examples/browser/vue/node_modules/@vue/compiler-ssr/package.json +0 -34
  341. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/api.js +0 -2
  342. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/app.js +0 -2
  343. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/component.js +0 -2
  344. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/context.js +0 -2
  345. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +0 -2
  346. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/index.js +0 -22
  347. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/api/util.js +0 -2
  348. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/const.js +0 -5
  349. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/env.js +0 -17
  350. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/index.js +0 -45
  351. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/plugin.js +0 -2
  352. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/proxy.js +0 -111
  353. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/cjs/time.js +0 -28
  354. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  355. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/api.js +0 -1
  356. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  357. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/app.js +0 -1
  358. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  359. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/component.js +0 -1
  360. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  361. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/context.js +0 -1
  362. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  363. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/hooks.js +0 -1
  364. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  365. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/index.js +0 -6
  366. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  367. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/api/util.js +0 -1
  368. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  369. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/const.js +0 -2
  370. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  371. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/env.js +0 -12
  372. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  373. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/index.js +0 -27
  374. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  375. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/plugin.js +0 -1
  376. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  377. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -107
  378. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  379. package/examples/browser/vue/node_modules/@vue/devtools-api/lib/esm/time.js +0 -23
  380. package/examples/browser/vue/node_modules/@vue/devtools-api/package.json +0 -37
  381. package/examples/browser/vue/node_modules/@vue/reactivity/LICENSE +0 -21
  382. package/examples/browser/vue/node_modules/@vue/reactivity/README.md +0 -19
  383. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.cjs.js +0 -1963
  384. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1807
  385. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.d.ts +0 -757
  386. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +0 -1961
  387. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +0 -5
  388. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -1920
  389. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.global.js +0 -2017
  390. package/examples/browser/vue/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +0 -5
  391. package/examples/browser/vue/node_modules/@vue/reactivity/index.js +0 -7
  392. package/examples/browser/vue/node_modules/@vue/reactivity/package.json +0 -55
  393. package/examples/browser/vue/node_modules/@vue/runtime-core/LICENSE +0 -21
  394. package/examples/browser/vue/node_modules/@vue/runtime-core/README.md +0 -28
  395. package/examples/browser/vue/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +0 -8586
  396. package/examples/browser/vue/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6732
  397. package/examples/browser/vue/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +0 -1839
  398. package/examples/browser/vue/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -8515
  399. package/examples/browser/vue/node_modules/@vue/runtime-core/index.js +0 -7
  400. package/examples/browser/vue/node_modules/@vue/runtime-core/package.json +0 -52
  401. package/examples/browser/vue/node_modules/@vue/runtime-dom/LICENSE +0 -21
  402. package/examples/browser/vue/node_modules/@vue/runtime-dom/README.md +0 -13
  403. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +0 -1851
  404. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1703
  405. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1409
  406. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +0 -12499
  407. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +0 -6
  408. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +0 -1892
  409. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +0 -12550
  410. package/examples/browser/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +0 -6
  411. package/examples/browser/vue/node_modules/@vue/runtime-dom/index.js +0 -7
  412. package/examples/browser/vue/node_modules/@vue/runtime-dom/package.json +0 -60
  413. package/examples/browser/vue/node_modules/@vue/server-renderer/LICENSE +0 -21
  414. package/examples/browser/vue/node_modules/@vue/server-renderer/README.md +0 -178
  415. package/examples/browser/vue/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +0 -1151
  416. package/examples/browser/vue/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -879
  417. package/examples/browser/vue/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -65
  418. package/examples/browser/vue/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +0 -8488
  419. package/examples/browser/vue/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +0 -5
  420. package/examples/browser/vue/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +0 -1088
  421. package/examples/browser/vue/node_modules/@vue/server-renderer/index.js +0 -7
  422. package/examples/browser/vue/node_modules/@vue/server-renderer/package.json +0 -55
  423. package/examples/browser/vue/node_modules/@vue/shared/LICENSE +0 -21
  424. package/examples/browser/vue/node_modules/@vue/shared/README.md +0 -3
  425. package/examples/browser/vue/node_modules/@vue/shared/dist/shared.cjs.js +0 -612
  426. package/examples/browser/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
  427. package/examples/browser/vue/node_modules/@vue/shared/dist/shared.d.ts +0 -334
  428. package/examples/browser/vue/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -536
  429. package/examples/browser/vue/node_modules/@vue/shared/index.js +0 -7
  430. package/examples/browser/vue/node_modules/@vue/shared/package.json +0 -47
  431. package/examples/browser/vue/node_modules/@vueuse/core/LICENSE +0 -21
  432. package/examples/browser/vue/node_modules/@vueuse/core/README.md +0 -124
  433. package/examples/browser/vue/node_modules/@vueuse/core/index.cjs +0 -7660
  434. package/examples/browser/vue/node_modules/@vueuse/core/index.d.cts +0 -5382
  435. package/examples/browser/vue/node_modules/@vueuse/core/index.d.mts +0 -5382
  436. package/examples/browser/vue/node_modules/@vueuse/core/index.d.ts +0 -5382
  437. package/examples/browser/vue/node_modules/@vueuse/core/index.iife.js +0 -7780
  438. package/examples/browser/vue/node_modules/@vueuse/core/index.iife.min.js +0 -1
  439. package/examples/browser/vue/node_modules/@vueuse/core/index.mjs +0 -7486
  440. package/examples/browser/vue/node_modules/@vueuse/core/metadata.cjs +0 -1
  441. package/examples/browser/vue/node_modules/@vueuse/core/metadata.d.cts +0 -1
  442. package/examples/browser/vue/node_modules/@vueuse/core/metadata.d.mts +0 -1
  443. package/examples/browser/vue/node_modules/@vueuse/core/metadata.d.ts +0 -1
  444. package/examples/browser/vue/node_modules/@vueuse/core/metadata.mjs +0 -1
  445. package/examples/browser/vue/node_modules/@vueuse/core/package.json +0 -45
  446. package/examples/browser/vue/node_modules/@vueuse/metadata/LICENSE +0 -21
  447. package/examples/browser/vue/node_modules/@vueuse/metadata/index.cjs +0 -2638
  448. package/examples/browser/vue/node_modules/@vueuse/metadata/index.d.cts +0 -76
  449. package/examples/browser/vue/node_modules/@vueuse/metadata/index.d.mts +0 -76
  450. package/examples/browser/vue/node_modules/@vueuse/metadata/index.d.ts +0 -76
  451. package/examples/browser/vue/node_modules/@vueuse/metadata/index.json +0 -2584
  452. package/examples/browser/vue/node_modules/@vueuse/metadata/index.mjs +0 -2626
  453. package/examples/browser/vue/node_modules/@vueuse/metadata/package.json +0 -39
  454. package/examples/browser/vue/node_modules/@vueuse/shared/LICENSE +0 -21
  455. package/examples/browser/vue/node_modules/@vueuse/shared/index.cjs +0 -1695
  456. package/examples/browser/vue/node_modules/@vueuse/shared/index.d.cts +0 -1221
  457. package/examples/browser/vue/node_modules/@vueuse/shared/index.d.mts +0 -1221
  458. package/examples/browser/vue/node_modules/@vueuse/shared/index.d.ts +0 -1221
  459. package/examples/browser/vue/node_modules/@vueuse/shared/index.iife.js +0 -1816
  460. package/examples/browser/vue/node_modules/@vueuse/shared/index.iife.min.js +0 -1
  461. package/examples/browser/vue/node_modules/@vueuse/shared/index.mjs +0 -1575
  462. package/examples/browser/vue/node_modules/@vueuse/shared/package.json +0 -37
  463. package/examples/browser/vue/node_modules/csstype/LICENSE +0 -19
  464. package/examples/browser/vue/node_modules/csstype/README.md +0 -277
  465. package/examples/browser/vue/node_modules/csstype/index.d.ts +0 -21297
  466. package/examples/browser/vue/node_modules/csstype/index.js.flow +0 -6612
  467. package/examples/browser/vue/node_modules/csstype/package.json +0 -66
  468. package/examples/browser/vue/node_modules/entities/LICENSE +0 -11
  469. package/examples/browser/vue/node_modules/entities/lib/decode.d.ts +0 -211
  470. package/examples/browser/vue/node_modules/entities/lib/decode.d.ts.map +0 -1
  471. package/examples/browser/vue/node_modules/entities/lib/decode.js +0 -536
  472. package/examples/browser/vue/node_modules/entities/lib/decode.js.map +0 -1
  473. package/examples/browser/vue/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  474. package/examples/browser/vue/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  475. package/examples/browser/vue/node_modules/entities/lib/decode_codepoint.js +0 -76
  476. package/examples/browser/vue/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  477. package/examples/browser/vue/node_modules/entities/lib/encode.d.ts +0 -22
  478. package/examples/browser/vue/node_modules/entities/lib/encode.d.ts.map +0 -1
  479. package/examples/browser/vue/node_modules/entities/lib/encode.js +0 -77
  480. package/examples/browser/vue/node_modules/entities/lib/encode.js.map +0 -1
  481. package/examples/browser/vue/node_modules/entities/lib/escape.d.ts +0 -43
  482. package/examples/browser/vue/node_modules/entities/lib/escape.d.ts.map +0 -1
  483. package/examples/browser/vue/node_modules/entities/lib/escape.js +0 -122
  484. package/examples/browser/vue/node_modules/entities/lib/escape.js.map +0 -1
  485. package/examples/browser/vue/node_modules/entities/lib/esm/decode.d.ts +0 -211
  486. package/examples/browser/vue/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  487. package/examples/browser/vue/node_modules/entities/lib/esm/decode.js +0 -496
  488. package/examples/browser/vue/node_modules/entities/lib/esm/decode.js.map +0 -1
  489. package/examples/browser/vue/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  490. package/examples/browser/vue/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  491. package/examples/browser/vue/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  492. package/examples/browser/vue/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  493. package/examples/browser/vue/node_modules/entities/lib/esm/encode.d.ts +0 -22
  494. package/examples/browser/vue/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  495. package/examples/browser/vue/node_modules/entities/lib/esm/encode.js +0 -69
  496. package/examples/browser/vue/node_modules/entities/lib/esm/encode.js.map +0 -1
  497. package/examples/browser/vue/node_modules/entities/lib/esm/escape.d.ts +0 -43
  498. package/examples/browser/vue/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  499. package/examples/browser/vue/node_modules/entities/lib/esm/escape.js +0 -116
  500. package/examples/browser/vue/node_modules/entities/lib/esm/escape.js.map +0 -1
  501. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  502. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  503. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  504. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  505. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  506. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  507. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  508. package/examples/browser/vue/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  509. package/examples/browser/vue/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  510. package/examples/browser/vue/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  511. package/examples/browser/vue/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  512. package/examples/browser/vue/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  513. package/examples/browser/vue/node_modules/entities/lib/esm/index.d.ts +0 -96
  514. package/examples/browser/vue/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  515. package/examples/browser/vue/node_modules/entities/lib/esm/index.js +0 -99
  516. package/examples/browser/vue/node_modules/entities/lib/esm/index.js.map +0 -1
  517. package/examples/browser/vue/node_modules/entities/lib/esm/package.json +0 -1
  518. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  519. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  520. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  521. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  522. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  523. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  524. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  525. package/examples/browser/vue/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  526. package/examples/browser/vue/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  527. package/examples/browser/vue/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  528. package/examples/browser/vue/node_modules/entities/lib/generated/encode-html.js +0 -12
  529. package/examples/browser/vue/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  530. package/examples/browser/vue/node_modules/entities/lib/index.d.ts +0 -96
  531. package/examples/browser/vue/node_modules/entities/lib/index.d.ts.map +0 -1
  532. package/examples/browser/vue/node_modules/entities/lib/index.js +0 -126
  533. package/examples/browser/vue/node_modules/entities/lib/index.js.map +0 -1
  534. package/examples/browser/vue/node_modules/entities/package.json +0 -90
  535. package/examples/browser/vue/node_modules/entities/readme.md +0 -122
  536. package/examples/browser/vue/node_modules/esbuild/LICENSE.md +0 -21
  537. package/examples/browser/vue/node_modules/esbuild/README.md +0 -3
  538. package/examples/browser/vue/node_modules/esbuild/bin/esbuild +0 -0
  539. package/examples/browser/vue/node_modules/esbuild/install.js +0 -285
  540. package/examples/browser/vue/node_modules/esbuild/lib/main.d.ts +0 -705
  541. package/examples/browser/vue/node_modules/esbuild/lib/main.js +0 -2239
  542. package/examples/browser/vue/node_modules/esbuild/package.json +0 -46
  543. package/examples/browser/vue/node_modules/estree-walker/CHANGELOG.md +0 -92
  544. package/examples/browser/vue/node_modules/estree-walker/LICENSE +0 -7
  545. package/examples/browser/vue/node_modules/estree-walker/README.md +0 -48
  546. package/examples/browser/vue/node_modules/estree-walker/dist/esm/estree-walker.js +0 -333
  547. package/examples/browser/vue/node_modules/estree-walker/dist/esm/package.json +0 -1
  548. package/examples/browser/vue/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  549. package/examples/browser/vue/node_modules/estree-walker/package.json +0 -37
  550. package/examples/browser/vue/node_modules/estree-walker/src/async.js +0 -118
  551. package/examples/browser/vue/node_modules/estree-walker/src/index.js +0 -35
  552. package/examples/browser/vue/node_modules/estree-walker/src/package.json +0 -1
  553. package/examples/browser/vue/node_modules/estree-walker/src/sync.js +0 -118
  554. package/examples/browser/vue/node_modules/estree-walker/src/walker.js +0 -61
  555. package/examples/browser/vue/node_modules/estree-walker/types/async.d.ts +0 -53
  556. package/examples/browser/vue/node_modules/estree-walker/types/index.d.ts +0 -56
  557. package/examples/browser/vue/node_modules/estree-walker/types/sync.d.ts +0 -53
  558. package/examples/browser/vue/node_modules/estree-walker/types/tsconfig.tsbuildinfo +0 -345
  559. package/examples/browser/vue/node_modules/estree-walker/types/walker.d.ts +0 -37
  560. package/examples/browser/vue/node_modules/fsevents/LICENSE +0 -22
  561. package/examples/browser/vue/node_modules/fsevents/README.md +0 -89
  562. package/examples/browser/vue/node_modules/fsevents/fsevents.d.ts +0 -46
  563. package/examples/browser/vue/node_modules/fsevents/fsevents.js +0 -83
  564. package/examples/browser/vue/node_modules/fsevents/fsevents.node +0 -0
  565. package/examples/browser/vue/node_modules/fsevents/package.json +0 -62
  566. package/examples/browser/vue/node_modules/magic-string/LICENSE +0 -7
  567. package/examples/browser/vue/node_modules/magic-string/README.md +0 -324
  568. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.cjs.d.ts +0 -289
  569. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.cjs.js +0 -1594
  570. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.cjs.js.map +0 -1
  571. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.es.d.mts +0 -289
  572. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.es.mjs +0 -1588
  573. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
  574. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.umd.js +0 -1682
  575. package/examples/browser/vue/node_modules/magic-string/dist/magic-string.umd.js.map +0 -1
  576. package/examples/browser/vue/node_modules/magic-string/package.json +0 -70
  577. package/examples/browser/vue/node_modules/nanoid/LICENSE +0 -20
  578. package/examples/browser/vue/node_modules/nanoid/README.md +0 -39
  579. package/examples/browser/vue/node_modules/nanoid/async/index.browser.cjs +0 -69
  580. package/examples/browser/vue/node_modules/nanoid/async/index.browser.js +0 -34
  581. package/examples/browser/vue/node_modules/nanoid/async/index.cjs +0 -71
  582. package/examples/browser/vue/node_modules/nanoid/async/index.d.ts +0 -56
  583. package/examples/browser/vue/node_modules/nanoid/async/index.js +0 -35
  584. package/examples/browser/vue/node_modules/nanoid/async/index.native.js +0 -26
  585. package/examples/browser/vue/node_modules/nanoid/async/package.json +0 -12
  586. package/examples/browser/vue/node_modules/nanoid/bin/nanoid.cjs +0 -55
  587. package/examples/browser/vue/node_modules/nanoid/index.browser.cjs +0 -72
  588. package/examples/browser/vue/node_modules/nanoid/index.browser.js +0 -34
  589. package/examples/browser/vue/node_modules/nanoid/index.cjs +0 -85
  590. package/examples/browser/vue/node_modules/nanoid/index.d.cts +0 -91
  591. package/examples/browser/vue/node_modules/nanoid/index.d.ts +0 -91
  592. package/examples/browser/vue/node_modules/nanoid/index.js +0 -45
  593. package/examples/browser/vue/node_modules/nanoid/nanoid.js +0 -1
  594. package/examples/browser/vue/node_modules/nanoid/non-secure/index.cjs +0 -34
  595. package/examples/browser/vue/node_modules/nanoid/non-secure/index.d.ts +0 -33
  596. package/examples/browser/vue/node_modules/nanoid/non-secure/index.js +0 -21
  597. package/examples/browser/vue/node_modules/nanoid/non-secure/package.json +0 -6
  598. package/examples/browser/vue/node_modules/nanoid/package.json +0 -89
  599. package/examples/browser/vue/node_modules/nanoid/url-alphabet/index.cjs +0 -7
  600. package/examples/browser/vue/node_modules/nanoid/url-alphabet/index.js +0 -3
  601. package/examples/browser/vue/node_modules/nanoid/url-alphabet/package.json +0 -6
  602. package/examples/browser/vue/node_modules/picocolors/LICENSE +0 -15
  603. package/examples/browser/vue/node_modules/picocolors/README.md +0 -21
  604. package/examples/browser/vue/node_modules/picocolors/package.json +0 -25
  605. package/examples/browser/vue/node_modules/picocolors/picocolors.browser.js +0 -4
  606. package/examples/browser/vue/node_modules/picocolors/picocolors.d.ts +0 -5
  607. package/examples/browser/vue/node_modules/picocolors/picocolors.js +0 -75
  608. package/examples/browser/vue/node_modules/picocolors/types.d.ts +0 -51
  609. package/examples/browser/vue/node_modules/pinia/LICENSE +0 -21
  610. package/examples/browser/vue/node_modules/pinia/README.md +0 -24
  611. package/examples/browser/vue/node_modules/pinia/dist/pinia.cjs +0 -2061
  612. package/examples/browser/vue/node_modules/pinia/dist/pinia.d.ts +0 -1074
  613. package/examples/browser/vue/node_modules/pinia/dist/pinia.esm-browser.js +0 -2036
  614. package/examples/browser/vue/node_modules/pinia/dist/pinia.iife.js +0 -2223
  615. package/examples/browser/vue/node_modules/pinia/dist/pinia.iife.prod.js +0 -7
  616. package/examples/browser/vue/node_modules/pinia/dist/pinia.mjs +0 -2044
  617. package/examples/browser/vue/node_modules/pinia/dist/pinia.prod.cjs +0 -846
  618. package/examples/browser/vue/node_modules/pinia/index.cjs +0 -7
  619. package/examples/browser/vue/node_modules/pinia/index.js +0 -7
  620. package/examples/browser/vue/node_modules/pinia/package.json +0 -96
  621. package/examples/browser/vue/node_modules/postcss/LICENSE +0 -20
  622. package/examples/browser/vue/node_modules/postcss/README.md +0 -29
  623. package/examples/browser/vue/node_modules/postcss/lib/at-rule.d.ts +0 -140
  624. package/examples/browser/vue/node_modules/postcss/lib/at-rule.js +0 -25
  625. package/examples/browser/vue/node_modules/postcss/lib/comment.d.ts +0 -68
  626. package/examples/browser/vue/node_modules/postcss/lib/comment.js +0 -13
  627. package/examples/browser/vue/node_modules/postcss/lib/container.d.ts +0 -483
  628. package/examples/browser/vue/node_modules/postcss/lib/container.js +0 -447
  629. package/examples/browser/vue/node_modules/postcss/lib/css-syntax-error.d.ts +0 -248
  630. package/examples/browser/vue/node_modules/postcss/lib/css-syntax-error.js +0 -133
  631. package/examples/browser/vue/node_modules/postcss/lib/declaration.d.ts +0 -151
  632. package/examples/browser/vue/node_modules/postcss/lib/declaration.js +0 -24
  633. package/examples/browser/vue/node_modules/postcss/lib/document.d.ts +0 -69
  634. package/examples/browser/vue/node_modules/postcss/lib/document.js +0 -33
  635. package/examples/browser/vue/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  636. package/examples/browser/vue/node_modules/postcss/lib/fromJSON.js +0 -54
  637. package/examples/browser/vue/node_modules/postcss/lib/input.d.ts +0 -227
  638. package/examples/browser/vue/node_modules/postcss/lib/input.js +0 -265
  639. package/examples/browser/vue/node_modules/postcss/lib/lazy-result.d.ts +0 -190
  640. package/examples/browser/vue/node_modules/postcss/lib/lazy-result.js +0 -550
  641. package/examples/browser/vue/node_modules/postcss/lib/list.d.ts +0 -60
  642. package/examples/browser/vue/node_modules/postcss/lib/list.js +0 -58
  643. package/examples/browser/vue/node_modules/postcss/lib/map-generator.js +0 -368
  644. package/examples/browser/vue/node_modules/postcss/lib/no-work-result.d.ts +0 -46
  645. package/examples/browser/vue/node_modules/postcss/lib/no-work-result.js +0 -138
  646. package/examples/browser/vue/node_modules/postcss/lib/node.d.ts +0 -556
  647. package/examples/browser/vue/node_modules/postcss/lib/node.js +0 -449
  648. package/examples/browser/vue/node_modules/postcss/lib/parse.d.ts +0 -9
  649. package/examples/browser/vue/node_modules/postcss/lib/parse.js +0 -42
  650. package/examples/browser/vue/node_modules/postcss/lib/parser.js +0 -611
  651. package/examples/browser/vue/node_modules/postcss/lib/postcss.d.mts +0 -69
  652. package/examples/browser/vue/node_modules/postcss/lib/postcss.d.ts +0 -458
  653. package/examples/browser/vue/node_modules/postcss/lib/postcss.js +0 -101
  654. package/examples/browser/vue/node_modules/postcss/lib/postcss.mjs +0 -30
  655. package/examples/browser/vue/node_modules/postcss/lib/previous-map.d.ts +0 -81
  656. package/examples/browser/vue/node_modules/postcss/lib/previous-map.js +0 -144
  657. package/examples/browser/vue/node_modules/postcss/lib/processor.d.ts +0 -115
  658. package/examples/browser/vue/node_modules/postcss/lib/processor.js +0 -67
  659. package/examples/browser/vue/node_modules/postcss/lib/result.d.ts +0 -205
  660. package/examples/browser/vue/node_modules/postcss/lib/result.js +0 -42
  661. package/examples/browser/vue/node_modules/postcss/lib/root.d.ts +0 -87
  662. package/examples/browser/vue/node_modules/postcss/lib/root.js +0 -61
  663. package/examples/browser/vue/node_modules/postcss/lib/rule.d.ts +0 -126
  664. package/examples/browser/vue/node_modules/postcss/lib/rule.js +0 -27
  665. package/examples/browser/vue/node_modules/postcss/lib/stringifier.d.ts +0 -46
  666. package/examples/browser/vue/node_modules/postcss/lib/stringifier.js +0 -353
  667. package/examples/browser/vue/node_modules/postcss/lib/stringify.d.ts +0 -9
  668. package/examples/browser/vue/node_modules/postcss/lib/stringify.js +0 -11
  669. package/examples/browser/vue/node_modules/postcss/lib/symbols.js +0 -5
  670. package/examples/browser/vue/node_modules/postcss/lib/terminal-highlight.js +0 -70
  671. package/examples/browser/vue/node_modules/postcss/lib/tokenize.js +0 -266
  672. package/examples/browser/vue/node_modules/postcss/lib/warn-once.js +0 -13
  673. package/examples/browser/vue/node_modules/postcss/lib/warning.d.ts +0 -147
  674. package/examples/browser/vue/node_modules/postcss/lib/warning.js +0 -37
  675. package/examples/browser/vue/node_modules/postcss/package.json +0 -88
  676. package/examples/browser/vue/node_modules/rollup/LICENSE.md +0 -679
  677. package/examples/browser/vue/node_modules/rollup/README.md +0 -134
  678. package/examples/browser/vue/node_modules/rollup/dist/bin/rollup +0 -1912
  679. package/examples/browser/vue/node_modules/rollup/dist/es/getLogFilter.js +0 -64
  680. package/examples/browser/vue/node_modules/rollup/dist/es/package.json +0 -1
  681. package/examples/browser/vue/node_modules/rollup/dist/es/parseAst.js +0 -12
  682. package/examples/browser/vue/node_modules/rollup/dist/es/rollup.js +0 -17
  683. package/examples/browser/vue/node_modules/rollup/dist/es/shared/node-entry.js +0 -23920
  684. package/examples/browser/vue/node_modules/rollup/dist/es/shared/parseAst.js +0 -2086
  685. package/examples/browser/vue/node_modules/rollup/dist/es/shared/watch.js +0 -9297
  686. package/examples/browser/vue/node_modules/rollup/dist/getLogFilter.d.ts +0 -5
  687. package/examples/browser/vue/node_modules/rollup/dist/getLogFilter.js +0 -69
  688. package/examples/browser/vue/node_modules/rollup/dist/loadConfigFile.d.ts +0 -20
  689. package/examples/browser/vue/node_modules/rollup/dist/loadConfigFile.js +0 -29
  690. package/examples/browser/vue/node_modules/rollup/dist/native.js +0 -129
  691. package/examples/browser/vue/node_modules/rollup/dist/parseAst.d.ts +0 -4
  692. package/examples/browser/vue/node_modules/rollup/dist/parseAst.js +0 -22
  693. package/examples/browser/vue/node_modules/rollup/dist/rollup.d.ts +0 -1185
  694. package/examples/browser/vue/node_modules/rollup/dist/rollup.js +0 -127
  695. package/examples/browser/vue/node_modules/rollup/dist/shared/fsevents-importer.js +0 -37
  696. package/examples/browser/vue/node_modules/rollup/dist/shared/index.js +0 -9003
  697. package/examples/browser/vue/node_modules/rollup/dist/shared/loadConfigFile.js +0 -572
  698. package/examples/browser/vue/node_modules/rollup/dist/shared/parseAst.js +0 -2318
  699. package/examples/browser/vue/node_modules/rollup/dist/shared/rollup.js +0 -23842
  700. package/examples/browser/vue/node_modules/rollup/dist/shared/watch-cli.js +0 -542
  701. package/examples/browser/vue/node_modules/rollup/dist/shared/watch.js +0 -324
  702. package/examples/browser/vue/node_modules/rollup/package.json +0 -273
  703. package/examples/browser/vue/node_modules/source-map-js/LICENSE +0 -28
  704. package/examples/browser/vue/node_modules/source-map-js/README.md +0 -765
  705. package/examples/browser/vue/node_modules/source-map-js/lib/array-set.js +0 -121
  706. package/examples/browser/vue/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  707. package/examples/browser/vue/node_modules/source-map-js/lib/base64.js +0 -67
  708. package/examples/browser/vue/node_modules/source-map-js/lib/binary-search.js +0 -111
  709. package/examples/browser/vue/node_modules/source-map-js/lib/mapping-list.js +0 -79
  710. package/examples/browser/vue/node_modules/source-map-js/lib/quick-sort.js +0 -132
  711. package/examples/browser/vue/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  712. package/examples/browser/vue/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  713. package/examples/browser/vue/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  714. package/examples/browser/vue/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  715. package/examples/browser/vue/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  716. package/examples/browser/vue/node_modules/source-map-js/lib/source-node.js +0 -413
  717. package/examples/browser/vue/node_modules/source-map-js/lib/util.js +0 -594
  718. package/examples/browser/vue/node_modules/source-map-js/package.json +0 -71
  719. package/examples/browser/vue/node_modules/source-map-js/source-map.d.ts +0 -104
  720. package/examples/browser/vue/node_modules/source-map-js/source-map.js +0 -8
  721. package/examples/browser/vue/node_modules/vite/LICENSE.md +0 -3423
  722. package/examples/browser/vue/node_modules/vite/README.md +0 -20
  723. package/examples/browser/vue/node_modules/vite/bin/openChrome.applescript +0 -95
  724. package/examples/browser/vue/node_modules/vite/bin/vite.js +0 -61
  725. package/examples/browser/vue/node_modules/vite/client.d.ts +0 -256
  726. package/examples/browser/vue/node_modules/vite/dist/client/client.mjs +0 -829
  727. package/examples/browser/vue/node_modules/vite/dist/client/env.mjs +0 -24
  728. package/examples/browser/vue/node_modules/vite/dist/node/chunks/dep-D-7KCb9p.js +0 -7960
  729. package/examples/browser/vue/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js +0 -67047
  730. package/examples/browser/vue/node_modules/vite/dist/node/chunks/dep-IQS-Za7F.js +0 -561
  731. package/examples/browser/vue/node_modules/vite/dist/node/chunks/dep-YkMKzX4u.js +0 -993
  732. package/examples/browser/vue/node_modules/vite/dist/node/chunks/dep-e9kYborm.js +0 -7004
  733. package/examples/browser/vue/node_modules/vite/dist/node/cli.js +0 -917
  734. package/examples/browser/vue/node_modules/vite/dist/node/constants.js +0 -113
  735. package/examples/browser/vue/node_modules/vite/dist/node/index.d.ts +0 -3627
  736. package/examples/browser/vue/node_modules/vite/dist/node/index.js +0 -261
  737. package/examples/browser/vue/node_modules/vite/dist/node/runtime.d.ts +0 -63
  738. package/examples/browser/vue/node_modules/vite/dist/node/runtime.js +0 -1066
  739. package/examples/browser/vue/node_modules/vite/dist/node/types.d-aGj9QkWt.d.ts +0 -281
  740. package/examples/browser/vue/node_modules/vite/dist/node-cjs/publicUtils.cjs +0 -6171
  741. package/examples/browser/vue/node_modules/vite/index.cjs +0 -60
  742. package/examples/browser/vue/node_modules/vite/index.d.cts +0 -6
  743. package/examples/browser/vue/node_modules/vite/package.json +0 -191
  744. package/examples/browser/vue/node_modules/vite/types/customEvent.d.ts +0 -39
  745. package/examples/browser/vue/node_modules/vite/types/hmrPayload.d.ts +0 -65
  746. package/examples/browser/vue/node_modules/vite/types/hot.d.ts +0 -36
  747. package/examples/browser/vue/node_modules/vite/types/import-meta.d.ts +0 -5
  748. package/examples/browser/vue/node_modules/vite/types/importGlob.d.ts +0 -75
  749. package/examples/browser/vue/node_modules/vite/types/importMeta.d.ts +0 -22
  750. package/examples/browser/vue/node_modules/vite/types/metadata.d.ts +0 -10
  751. package/examples/browser/vue/node_modules/vite/types/package.json +0 -4
  752. package/examples/browser/vue/node_modules/vue/LICENSE +0 -21
  753. package/examples/browser/vue/node_modules/vue/README.md +0 -62
  754. package/examples/browser/vue/node_modules/vue/compiler-sfc/index.browser.js +0 -1
  755. package/examples/browser/vue/node_modules/vue/compiler-sfc/index.browser.mjs +0 -1
  756. package/examples/browser/vue/node_modules/vue/compiler-sfc/index.d.mts +0 -1
  757. package/examples/browser/vue/node_modules/vue/compiler-sfc/index.d.ts +0 -1
  758. package/examples/browser/vue/node_modules/vue/compiler-sfc/index.js +0 -3
  759. package/examples/browser/vue/node_modules/vue/compiler-sfc/index.mjs +0 -3
  760. package/examples/browser/vue/node_modules/vue/compiler-sfc/package.json +0 -4
  761. package/examples/browser/vue/node_modules/vue/compiler-sfc/register-ts.js +0 -3
  762. package/examples/browser/vue/node_modules/vue/dist/vue.cjs.js +0 -80
  763. package/examples/browser/vue/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  764. package/examples/browser/vue/node_modules/vue/dist/vue.d.mts +0 -7
  765. package/examples/browser/vue/node_modules/vue/dist/vue.d.ts +0 -7
  766. package/examples/browser/vue/node_modules/vue/dist/vue.esm-browser.js +0 -18392
  767. package/examples/browser/vue/node_modules/vue/dist/vue.esm-browser.prod.js +0 -12
  768. package/examples/browser/vue/node_modules/vue/dist/vue.esm-bundler.js +0 -71
  769. package/examples/browser/vue/node_modules/vue/dist/vue.global.js +0 -18272
  770. package/examples/browser/vue/node_modules/vue/dist/vue.global.prod.js +0 -12
  771. package/examples/browser/vue/node_modules/vue/dist/vue.runtime.esm-browser.js +0 -12522
  772. package/examples/browser/vue/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +0 -6
  773. package/examples/browser/vue/node_modules/vue/dist/vue.runtime.esm-bundler.js +0 -26
  774. package/examples/browser/vue/node_modules/vue/dist/vue.runtime.global.js +0 -12574
  775. package/examples/browser/vue/node_modules/vue/dist/vue.runtime.global.prod.js +0 -6
  776. package/examples/browser/vue/node_modules/vue/index.js +0 -7
  777. package/examples/browser/vue/node_modules/vue/index.mjs +0 -1
  778. package/examples/browser/vue/node_modules/vue/jsx-runtime/index.d.ts +0 -25
  779. package/examples/browser/vue/node_modules/vue/jsx-runtime/index.js +0 -15
  780. package/examples/browser/vue/node_modules/vue/jsx-runtime/index.mjs +0 -12
  781. package/examples/browser/vue/node_modules/vue/jsx-runtime/package.json +0 -5
  782. package/examples/browser/vue/node_modules/vue/jsx.d.ts +0 -22
  783. package/examples/browser/vue/node_modules/vue/package.json +0 -112
  784. package/examples/browser/vue/node_modules/vue/server-renderer/index.d.mts +0 -1
  785. package/examples/browser/vue/node_modules/vue/server-renderer/index.d.ts +0 -1
  786. package/examples/browser/vue/node_modules/vue/server-renderer/index.js +0 -1
  787. package/examples/browser/vue/node_modules/vue/server-renderer/index.mjs +0 -1
  788. package/examples/browser/vue/node_modules/vue/server-renderer/package.json +0 -4
  789. package/examples/browser/vue/node_modules/vue-demi/LICENSE +0 -21
  790. package/examples/browser/vue/node_modules/vue-demi/README.md +0 -229
  791. package/examples/browser/vue/node_modules/vue-demi/bin/vue-demi-fix.js +0 -3
  792. package/examples/browser/vue/node_modules/vue-demi/bin/vue-demi-switch.js +0 -3
  793. package/examples/browser/vue/node_modules/vue-demi/lib/index.cjs +0 -29
  794. package/examples/browser/vue/node_modules/vue-demi/lib/index.d.ts +0 -22
  795. package/examples/browser/vue/node_modules/vue-demi/lib/index.iife.js +0 -126
  796. package/examples/browser/vue/node_modules/vue-demi/lib/index.mjs +0 -34
  797. package/examples/browser/vue/node_modules/vue-demi/lib/v2/index.cjs +0 -34
  798. package/examples/browser/vue/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  799. package/examples/browser/vue/node_modules/vue-demi/lib/v2/index.mjs +0 -49
  800. package/examples/browser/vue/node_modules/vue-demi/lib/v2.7/index.cjs +0 -60
  801. package/examples/browser/vue/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  802. package/examples/browser/vue/node_modules/vue-demi/lib/v2.7/index.mjs +0 -80
  803. package/examples/browser/vue/node_modules/vue-demi/lib/v3/index.cjs +0 -29
  804. package/examples/browser/vue/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  805. package/examples/browser/vue/node_modules/vue-demi/lib/v3/index.mjs +0 -34
  806. package/examples/browser/vue/node_modules/vue-demi/package.json +0 -47
  807. package/examples/browser/vue/node_modules/vue-demi/scripts/postinstall.js +0 -19
  808. package/examples/browser/vue/node_modules/vue-demi/scripts/switch-cli.js +0 -18
  809. package/examples/browser/vue/node_modules/vue-demi/scripts/utils.js +0 -62
  810. package/examples/browser/vue/node_modules/vue-router/LICENSE +0 -21
  811. package/examples/browser/vue/node_modules/vue-router/README.md +0 -111
  812. package/examples/browser/vue/node_modules/vue-router/dist/devtools-BLCumUwL.mjs +0 -1218
  813. package/examples/browser/vue/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  814. package/examples/browser/vue/node_modules/vue-router/dist/experimental/index.mjs +0 -754
  815. package/examples/browser/vue/node_modules/vue-router/dist/router-BbqN7H95.d.mts +0 -1928
  816. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.cjs +0 -2797
  817. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.d.mts +0 -393
  818. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.esm-browser.js +0 -2743
  819. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.esm-browser.prod.js +0 -6
  820. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.esm-bundler.js +0 -2
  821. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.global.js +0 -3040
  822. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.global.prod.js +0 -6
  823. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.mjs +0 -1557
  824. package/examples/browser/vue/node_modules/vue-router/dist/vue-router.prod.cjs +0 -23
  825. package/examples/browser/vue/node_modules/vue-router/index.js +0 -7
  826. package/examples/browser/vue/node_modules/vue-router/package.json +0 -154
  827. package/examples/browser/vue/node_modules/vue-router/vetur/attributes.json +0 -32
  828. package/examples/browser/vue/node_modules/vue-router/vetur/tags.json +0 -10
  829. package/examples/browser/vue/node_modules/vue-router/vue-router-auto-resolver.d.mts +0 -22
  830. package/examples/browser/vue/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
  831. package/examples/browser/vue/node_modules/vue-router/vue-router-auto.d.ts +0 -1
  832. package/examples/browser/vue/node_modules/vue-router/vue-router.node.mjs +0 -2
  833. package/examples/browser/vue/package-lock.json +0 -1276
  834. package/examples/browser/vue/package.json +0 -23
  835. package/examples/browser/vue/public/peerpigeon-browser.js +0 -13322
  836. package/examples/browser/vue/public/pigeonlogo.svg +0 -51
  837. package/examples/browser/vue/src/App-simple.vue +0 -21
  838. package/examples/browser/vue/src/App.vue +0 -423
  839. package/examples/browser/vue/src/components/CryptoView.vue +0 -1661
  840. package/examples/browser/vue/src/components/DHTView.vue +0 -1281
  841. package/examples/browser/vue/src/components/DebugView.vue +0 -1783
  842. package/examples/browser/vue/src/components/MediaView.vue +0 -1197
  843. package/examples/browser/vue/src/components/MessagingView.vue +0 -803
  844. package/examples/browser/vue/src/components/NetworkView.vue +0 -930
  845. package/examples/browser/vue/src/components/StorageView.vue +0 -1376
  846. package/examples/browser/vue/src/components/TestingView.vue +0 -794
  847. package/examples/browser/vue/src/main.js +0 -11
  848. package/examples/browser/vue/src/router.js +0 -63
  849. package/examples/browser/vue/src/stores/peerpigeon.js +0 -1334
  850. package/examples/browser/vue/test-vue-restructured-2.log +0 -18
  851. package/examples/browser/vue/test-vue-restructured-3.log +0 -18
  852. package/examples/browser/vue/vite.config.js +0 -22
  853. package/examples/debug-configuration.js +0 -171
  854. package/examples/hub-example.js +0 -189
  855. package/examples/multi-hub-test.js +0 -186
  856. package/examples/nativescript/README.md +0 -73
  857. package/examples/nativescript/app.js +0 -152
  858. package/examples/nativescript/package.json +0 -27
  859. package/examples/node/README.md +0 -110
  860. package/examples/node/basic-storage-example.js +0 -90
  861. package/examples/node/package.json +0 -17
  862. package/examples/node/storage-spaces-test.js +0 -329
  863. package/examples/node/storage-test.js +0 -655
  864. package/examples/node/test-crypto-media.js +0 -137
  865. package/examples/node/test-crypto.js +0 -146
  866. package/examples/node/test-node.js +0 -152
  867. package/examples/programmatic-namespace-example.js +0 -108
  868. package/examples/selective-streaming-demo.html +0 -698
  869. package/examples/standard-events-demo.js +0 -126
  870. package/examples/stream-file-transfer-demo.html +0 -935
  871. package/index.js +0 -30
  872. package/server/index.js +0 -2147
  873. package/server/start.js +0 -52
  874. package/src/CleanupManager.js +0 -183
  875. package/src/ConnectionManager.js +0 -1286
  876. package/src/CryptoManager.js +0 -743
  877. package/src/DebugLogger.js +0 -204
  878. package/src/DistributedStorageManager.js +0 -1741
  879. package/src/EnvironmentDetector.js +0 -600
  880. package/src/EventEmitter.js +0 -106
  881. package/src/EvictionManager.js +0 -260
  882. package/src/GossipManager.js +0 -726
  883. package/src/LexicalStorageInterface.js +0 -332
  884. package/src/MediaManager.js +0 -276
  885. package/src/MeshOptimizer.js +0 -182
  886. package/src/PeerConnection.js +0 -1850
  887. package/src/PeerDiscovery.js +0 -329
  888. package/src/PeerPigeonMesh.js +0 -2502
  889. package/src/PigeonRTC-browser.js +0 -247
  890. package/src/SignalingClient.js +0 -395
  891. package/src/SignalingHandler.js +0 -589
  892. package/src/StorageManager.js +0 -107
  893. package/src/TimerUtils.js +0 -75
  894. package/src/WebDHT-Simple.js +0 -389
  895. package/src/WebDHT.js +0 -474
  896. package/src/browser-entry.js +0 -68
@@ -1,2086 +0,0 @@
1
- /*
2
- @license
3
- Rollup.js v4.52.5
4
- Sat, 18 Oct 2025 06:53:02 GMT - commit 55a8fd5a70820f274921edf394efbbaa620f0962
5
-
6
- https://github.com/rollup/rollup
7
-
8
- Released under the MIT License.
9
- */
10
- import { parse, parseAsync } from '../../native.js';
11
- import { resolve, dirname, basename, extname } from 'node:path';
12
-
13
- // This file is generated by scripts/generate-node-types.js.
14
- // Do not edit this file directly.
15
- const ArrowFunctionExpression = 'ArrowFunctionExpression';
16
- const AwaitExpression = 'AwaitExpression';
17
- const BlockStatement = 'BlockStatement';
18
- const CallExpression = 'CallExpression';
19
- const CatchClause = 'CatchClause';
20
- const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
21
- const ExpressionStatement = 'ExpressionStatement';
22
- const FunctionExpression = 'FunctionExpression';
23
- const Identifier = 'Identifier';
24
- const ImportExpression = 'ImportExpression';
25
- const Literal = 'Literal';
26
- const MemberExpression = 'MemberExpression';
27
- const ObjectExpression = 'ObjectExpression';
28
- const PanicError = 'PanicError';
29
- const ParseError = 'ParseError';
30
- const Program = 'Program';
31
- const Property = 'Property';
32
- const RestElement = 'RestElement';
33
- const ReturnStatement = 'ReturnStatement';
34
- const StaticBlock = 'StaticBlock';
35
- const TemplateLiteral = 'TemplateLiteral';
36
- const VariableDeclarator = 'VariableDeclarator';
37
-
38
- const BLANK = Object.freeze(Object.create(null));
39
- const EMPTY_OBJECT = Object.freeze({});
40
- const EMPTY_ARRAY = Object.freeze([]);
41
- const EMPTY_SET = Object.freeze(new (class extends Set {
42
- add() {
43
- throw new Error('Cannot add to empty set');
44
- }
45
- })());
46
-
47
- // This file is generated by scripts/generate-string-constants.js.
48
- // Do not edit this file directly.
49
- const FIXED_STRINGS = [
50
- 'var',
51
- 'let',
52
- 'const',
53
- 'init',
54
- 'get',
55
- 'set',
56
- 'constructor',
57
- 'method',
58
- '-',
59
- '+',
60
- '!',
61
- '~',
62
- 'typeof',
63
- 'void',
64
- 'delete',
65
- '++',
66
- '--',
67
- '==',
68
- '!=',
69
- '===',
70
- '!==',
71
- '<',
72
- '<=',
73
- '>',
74
- '>=',
75
- '<<',
76
- '>>',
77
- '>>>',
78
- '+',
79
- '-',
80
- '*',
81
- '/',
82
- '%',
83
- '|',
84
- '^',
85
- '&',
86
- '||',
87
- '&&',
88
- 'in',
89
- 'instanceof',
90
- '**',
91
- '??',
92
- '=',
93
- '+=',
94
- '-=',
95
- '*=',
96
- '/=',
97
- '%=',
98
- '<<=',
99
- '>>=',
100
- '>>>=',
101
- '|=',
102
- '^=',
103
- '&=',
104
- '**=',
105
- '&&=',
106
- '||=',
107
- '??=',
108
- 'pure',
109
- 'noSideEffects',
110
- 'sourcemap',
111
- 'using',
112
- 'await using'
113
- ];
114
-
115
- const ANNOTATION_KEY = '_rollupAnnotations';
116
- const INVALID_ANNOTATION_KEY = '_rollupRemoved';
117
- const convertAnnotations = (position, buffer) => {
118
- if (position === 0)
119
- return EMPTY_ARRAY;
120
- const length = buffer[position++];
121
- const list = new Array(length);
122
- for (let index = 0; index < length; index++) {
123
- list[index] = convertAnnotation(buffer[position++], buffer);
124
- }
125
- return list;
126
- };
127
- const convertAnnotation = (position, buffer) => {
128
- const start = buffer[position++];
129
- const end = buffer[position++];
130
- const type = FIXED_STRINGS[buffer[position]];
131
- return { end, start, type };
132
- };
133
-
134
- /** @typedef {import('./types').Location} Location */
135
-
136
- /**
137
- * @param {import('./types').Range} range
138
- * @param {number} index
139
- */
140
- function rangeContains(range, index) {
141
- return range.start <= index && index < range.end;
142
- }
143
-
144
- /**
145
- * @param {string} source
146
- * @param {import('./types').Options} [options]
147
- */
148
- function getLocator(source, options = {}) {
149
- const { offsetLine = 0, offsetColumn = 0 } = options;
150
-
151
- let start = 0;
152
- const ranges = source.split('\n').map((line, i) => {
153
- const end = start + line.length + 1;
154
-
155
- /** @type {import('./types').Range} */
156
- const range = { start, end, line: i };
157
-
158
- start = end;
159
- return range;
160
- });
161
-
162
- let i = 0;
163
-
164
- /**
165
- * @param {string | number} search
166
- * @param {number} [index]
167
- * @returns {Location | undefined}
168
- */
169
- function locator(search, index) {
170
- if (typeof search === 'string') {
171
- search = source.indexOf(search, index ?? 0);
172
- }
173
-
174
- if (search === -1) return undefined;
175
-
176
- let range = ranges[i];
177
-
178
- const d = search >= range.end ? 1 : -1;
179
-
180
- while (range) {
181
- if (rangeContains(range, search)) {
182
- return {
183
- line: offsetLine + range.line,
184
- column: offsetColumn + search - range.start,
185
- character: search
186
- };
187
- }
188
-
189
- i += d;
190
- range = ranges[i];
191
- }
192
- }
193
-
194
- return locator;
195
- }
196
-
197
- /**
198
- * @param {string} source
199
- * @param {string | number} search
200
- * @param {import('./types').Options} [options]
201
- * @returns {Location | undefined}
202
- */
203
- function locate(source, search, options) {
204
- return getLocator(source, options)(search, options && options.startIndex);
205
- }
206
-
207
- function spaces(index) {
208
- let result = '';
209
- while (index--)
210
- result += ' ';
211
- return result;
212
- }
213
- function tabsToSpaces(value) {
214
- return value.replace(/^\t+/, match => match.split('\t').join(' '));
215
- }
216
- const LINE_TRUNCATE_LENGTH = 120;
217
- const MIN_CHARACTERS_SHOWN_AFTER_LOCATION = 10;
218
- const ELLIPSIS = '...';
219
- function getCodeFrame(source, line, column) {
220
- let lines = source.split('\n');
221
- // Needed if a plugin did not generate correct sourcemaps
222
- if (line > lines.length)
223
- return '';
224
- const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length +
225
- MIN_CHARACTERS_SHOWN_AFTER_LOCATION +
226
- ELLIPSIS.length, LINE_TRUNCATE_LENGTH);
227
- const frameStart = Math.max(0, line - 3);
228
- let frameEnd = Math.min(line + 2, lines.length);
229
- lines = lines.slice(frameStart, frameEnd);
230
- while (!/\S/.test(lines[lines.length - 1])) {
231
- lines.pop();
232
- frameEnd -= 1;
233
- }
234
- const digits = String(frameEnd).length;
235
- return lines
236
- .map((sourceLine, index) => {
237
- const isErrorLine = frameStart + index + 1 === line;
238
- let lineNumber = String(index + frameStart + 1);
239
- while (lineNumber.length < digits)
240
- lineNumber = ` ${lineNumber}`;
241
- let displayedLine = tabsToSpaces(sourceLine);
242
- if (displayedLine.length > maxLineLength) {
243
- displayedLine = `${displayedLine.slice(0, maxLineLength - ELLIPSIS.length)}${ELLIPSIS}`;
244
- }
245
- if (isErrorLine) {
246
- const indicator = spaces(digits + 2 + tabsToSpaces(sourceLine.slice(0, column)).length) + '^';
247
- return `${lineNumber}: ${displayedLine}\n${indicator}`;
248
- }
249
- return `${lineNumber}: ${displayedLine}`;
250
- })
251
- .join('\n');
252
- }
253
-
254
- const LOGLEVEL_SILENT = 'silent';
255
- const LOGLEVEL_ERROR = 'error';
256
- const LOGLEVEL_WARN = 'warn';
257
- const LOGLEVEL_INFO = 'info';
258
- const LOGLEVEL_DEBUG = 'debug';
259
- const logLevelPriority = {
260
- [LOGLEVEL_DEBUG]: 0,
261
- [LOGLEVEL_INFO]: 1,
262
- [LOGLEVEL_SILENT]: 3,
263
- [LOGLEVEL_WARN]: 2
264
- };
265
-
266
- const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
267
- const RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
268
- function isAbsolute(path) {
269
- return ABSOLUTE_PATH_REGEX.test(path);
270
- }
271
- function isRelative(path) {
272
- return RELATIVE_PATH_REGEX.test(path);
273
- }
274
- const BACKSLASH_REGEX = /\\/g;
275
- function normalize(path) {
276
- return path.replace(BACKSLASH_REGEX, '/');
277
- }
278
-
279
- function printQuotedStringList(list, verbs) {
280
- const isSingleItem = list.length <= 1;
281
- const quotedList = list.map(item => `"${item}"`);
282
- let output = isSingleItem
283
- ? quotedList[0]
284
- : `${quotedList.slice(0, -1).join(', ')} and ${quotedList.slice(-1)[0]}`;
285
- if (verbs) {
286
- output += ` ${isSingleItem ? verbs[0] : verbs[1]}`;
287
- }
288
- return output;
289
- }
290
-
291
- const ANY_SLASH_REGEX = /[/\\]/;
292
- function relative(from, to) {
293
- const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);
294
- const toParts = to.split(ANY_SLASH_REGEX).filter(Boolean);
295
- if (fromParts[0] === '.')
296
- fromParts.shift();
297
- if (toParts[0] === '.')
298
- toParts.shift();
299
- while (fromParts[0] && toParts[0] && fromParts[0] === toParts[0]) {
300
- fromParts.shift();
301
- toParts.shift();
302
- }
303
- while (toParts[0] === '..' && fromParts.length > 0) {
304
- toParts.shift();
305
- fromParts.pop();
306
- }
307
- while (fromParts.pop()) {
308
- toParts.unshift('..');
309
- }
310
- return toParts.join('/');
311
- }
312
-
313
- function getAliasName(id) {
314
- const base = basename(id);
315
- return base.slice(0, Math.max(0, base.length - extname(id).length));
316
- }
317
- function relativeId(id) {
318
- if (!isAbsolute(id))
319
- return id;
320
- return relative(resolve(), id);
321
- }
322
- function isPathFragment(name) {
323
- // starting with "/", "./", "../", "C:/"
324
- return (name[0] === '/' || (name[0] === '.' && (name[1] === '/' || name[1] === '.')) || isAbsolute(name));
325
- }
326
- const UPPER_DIR_REGEX = /^(\.\.\/)*\.\.$/;
327
- function getImportPath(importerId, targetPath, stripJsExtension, ensureFileName) {
328
- while (targetPath.startsWith('../')) {
329
- targetPath = targetPath.slice(3);
330
- importerId = '_/' + importerId;
331
- }
332
- let relativePath = normalize(relative(dirname(importerId), targetPath));
333
- if (stripJsExtension && relativePath.endsWith('.js')) {
334
- relativePath = relativePath.slice(0, -3);
335
- }
336
- if (ensureFileName) {
337
- if (relativePath === '')
338
- return '../' + basename(targetPath);
339
- if (UPPER_DIR_REGEX.test(relativePath)) {
340
- return [...relativePath.split('/'), '..', basename(targetPath)].join('/');
341
- }
342
- }
343
- return relativePath ? (relativePath.startsWith('..') ? relativePath : './' + relativePath) : '.';
344
- }
345
-
346
- function isValidUrl(url) {
347
- try {
348
- new URL(url);
349
- }
350
- catch {
351
- return false;
352
- }
353
- return true;
354
- }
355
- function getRollupUrl(snippet) {
356
- return `https://rollupjs.org/${snippet}`;
357
- }
358
- function addTrailingSlashIfMissed(url) {
359
- if (!url.endsWith('/')) {
360
- return url + '/';
361
- }
362
- return url;
363
- }
364
-
365
- // troubleshooting
366
- const URL_AVOIDING_EVAL = 'troubleshooting/#avoiding-eval';
367
- const URL_NAME_IS_NOT_EXPORTED = 'troubleshooting/#error-name-is-not-exported-by-module';
368
- const URL_THIS_IS_UNDEFINED = 'troubleshooting/#error-this-is-undefined';
369
- const URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY = 'troubleshooting/#warning-treating-module-as-external-dependency';
370
- const URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT = 'troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect';
371
- // configuration-options
372
- const URL_JSX = 'configuration-options/#jsx';
373
- const URL_OUTPUT_AMD_ID = 'configuration-options/#output-amd-id';
374
- const URL_OUTPUT_AMD_BASEPATH = 'configuration-options/#output-amd-basepath';
375
- const URL_OUTPUT_DIR = 'configuration-options/#output-dir';
376
- const URL_OUTPUT_EXPORTS = 'configuration-options/#output-exports';
377
- const URL_OUTPUT_EXTEND = 'configuration-options/#output-extend';
378
- const URL_OUTPUT_EXTERNALIMPORTATTRIBUTES = 'configuration-options/#output-externalimportattributes';
379
- const URL_OUTPUT_FORMAT = 'configuration-options/#output-format';
380
- const URL_OUTPUT_GENERATEDCODE = 'configuration-options/#output-generatedcode';
381
- const URL_OUTPUT_GLOBALS = 'configuration-options/#output-globals';
382
- const URL_OUTPUT_INLINEDYNAMICIMPORTS = 'configuration-options/#output-inlinedynamicimports';
383
- const URL_OUTPUT_INTEROP = 'configuration-options/#output-interop';
384
- const URL_OUTPUT_MANUALCHUNKS = 'configuration-options/#output-manualchunks';
385
- const URL_OUTPUT_NAME = 'configuration-options/#output-name';
386
- const URL_OUTPUT_SOURCEMAPBASEURL = 'configuration-options/#output-sourcemapbaseurl';
387
- const URL_OUTPUT_SOURCEMAPFILE = 'configuration-options/#output-sourcemapfile';
388
- const URL_PRESERVEENTRYSIGNATURES = 'configuration-options/#preserveentrysignatures';
389
- const URL_TREESHAKE = 'configuration-options/#treeshake';
390
- const URL_TREESHAKE_PURE = 'configuration-options/#pure';
391
- const URL_TREESHAKE_NOSIDEEFFECTS = 'configuration-options/#no-side-effects';
392
- const URL_TREESHAKE_MODULESIDEEFFECTS = 'configuration-options/#treeshake-modulesideeffects';
393
- const URL_WATCH = 'configuration-options/#watch';
394
- const URL_GENERATEBUNDLE = 'plugin-development/#generatebundle';
395
-
396
- function error(base) {
397
- throw base instanceof Error ? base : getRollupError(base);
398
- }
399
- function getRollupError(base) {
400
- augmentLogMessage(base);
401
- const errorInstance = Object.assign(new Error(base.message), base);
402
- Object.defineProperty(errorInstance, 'name', {
403
- value: 'RollupError',
404
- writable: true
405
- });
406
- return errorInstance;
407
- }
408
- function augmentCodeLocation(properties, pos, source, id) {
409
- if (typeof pos === 'object') {
410
- const { line, column } = pos;
411
- properties.loc = { column, file: id, line };
412
- }
413
- else {
414
- properties.pos = pos;
415
- const location = locate(source, pos, { offsetLine: 1 });
416
- if (!location) {
417
- return;
418
- }
419
- const { line, column } = location;
420
- properties.loc = { column, file: id, line };
421
- }
422
- if (properties.frame === undefined) {
423
- const { line, column } = properties.loc;
424
- properties.frame = getCodeFrame(source, line, column);
425
- }
426
- }
427
- const symbolAugmented = Symbol('augmented');
428
- function augmentLogMessage(log) {
429
- // Make sure to only augment the log message once
430
- if (!(log.plugin || log.loc) || log[symbolAugmented]) {
431
- return;
432
- }
433
- log[symbolAugmented] = true;
434
- let prefix = '';
435
- if (log.plugin) {
436
- prefix += `[plugin ${log.plugin}] `;
437
- }
438
- const id = log.id || log.loc?.file;
439
- if (id) {
440
- const position = log.loc ? ` (${log.loc.line}:${log.loc.column})` : '';
441
- prefix += `${relativeId(id)}${position}: `;
442
- }
443
- const oldMessage = log.message;
444
- log.message = prefix + log.message;
445
- tweakStackMessage(log, oldMessage);
446
- }
447
- // Error codes should be sorted alphabetically while errors should be sorted by
448
- // error code below
449
- const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CONST_REASSIGN = 'CONST_REASSIGN', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_JSX_EXPORT = 'MISSING_JSX_EXPORT', MISSING_NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', RESERVED_NAMESPACE = 'RESERVED_NAMESPACE', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR';
450
- function logAddonNotGenerated(message, hook, plugin) {
451
- return {
452
- code: ADDON_ERROR,
453
- message: `Could not retrieve "${hook}". Check configuration of plugin "${plugin}".
454
- \tError Message: ${message}`
455
- };
456
- }
457
- function logAlreadyClosed() {
458
- return {
459
- code: ALREADY_CLOSED,
460
- message: 'Bundle is already closed, no more calls to "generate" or "write" are allowed.'
461
- };
462
- }
463
- function logAmbiguousExternalNamespaces(binding, reexportingModule, usedModule, sources) {
464
- return {
465
- binding,
466
- code: AMBIGUOUS_EXTERNAL_NAMESPACES,
467
- ids: sources,
468
- message: `Ambiguous external namespace resolution: "${relativeId(reexportingModule)}" re-exports "${binding}" from one of the external modules ${printQuotedStringList(sources.map(module => relativeId(module)))}, guessing "${relativeId(usedModule)}".`,
469
- reexporter: reexportingModule
470
- };
471
- }
472
- function logAnonymousPluginCache() {
473
- return {
474
- code: ANONYMOUS_PLUGIN_CACHE,
475
- message: 'A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey.'
476
- };
477
- }
478
- function logAssetNotFinalisedForFileName(name) {
479
- return {
480
- code: ASSET_NOT_FINALISED,
481
- message: `Plugin error - Unable to get file name for asset "${name}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`
482
- };
483
- }
484
- function logAssetReferenceIdNotFoundForSetSource(assetReferenceId) {
485
- return {
486
- code: ASSET_NOT_FOUND,
487
- message: `Plugin error - Unable to set the source for unknown asset "${assetReferenceId}".`
488
- };
489
- }
490
- function logAssetSourceAlreadySet(name) {
491
- return {
492
- code: ASSET_SOURCE_ALREADY_SET,
493
- message: `Unable to set the source for asset "${name}", source already set.`
494
- };
495
- }
496
- function logNoAssetSourceSet(assetName) {
497
- return {
498
- code: ASSET_SOURCE_MISSING,
499
- message: `Plugin error creating asset "${assetName}" - no asset source set.`
500
- };
501
- }
502
- function logBadLoader(id) {
503
- return {
504
- code: BAD_LOADER,
505
- message: `Error loading "${relativeId(id)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`
506
- };
507
- }
508
- function logCannotCallNamespace(name) {
509
- return {
510
- code: CANNOT_CALL_NAMESPACE,
511
- message: `Cannot call a namespace ("${name}").`
512
- };
513
- }
514
- function logCannotEmitFromOptionsHook() {
515
- return {
516
- code: CANNOT_EMIT_FROM_OPTIONS_HOOK,
517
- message: `Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.`
518
- };
519
- }
520
- function logChunkNotGeneratedForFileName(name) {
521
- return {
522
- code: CHUNK_NOT_GENERATED,
523
- message: `Plugin error - Unable to get file name for emitted chunk "${name}". You can only get file names once chunks have been generated after the "renderStart" hook.`
524
- };
525
- }
526
- function logChunkInvalid({ fileName, code }, { pos, message }) {
527
- const errorProperties = {
528
- code: CHUNK_INVALID,
529
- message: `Chunk "${fileName}" is not valid JavaScript: ${message}.`
530
- };
531
- augmentCodeLocation(errorProperties, pos, code, fileName);
532
- return errorProperties;
533
- }
534
- function logCircularDependency(cyclePath) {
535
- return {
536
- code: CIRCULAR_DEPENDENCY,
537
- ids: cyclePath,
538
- message: `Circular dependency: ${cyclePath.map(relativeId).join(' -> ')}`
539
- };
540
- }
541
- function logCircularReexport(exportName, exporter) {
542
- return {
543
- code: CIRCULAR_REEXPORT,
544
- exporter,
545
- message: `"${exportName}" cannot be exported from "${relativeId(exporter)}" as it is a reexport that references itself.`
546
- };
547
- }
548
- function logCyclicCrossChunkReexport(exportName, exporter, reexporter, importer, preserveModules) {
549
- return {
550
- code: CYCLIC_CROSS_CHUNK_REEXPORT,
551
- exporter,
552
- id: importer,
553
- message: `Export "${exportName}" of module "${relativeId(exporter)}" was reexported through module "${relativeId(reexporter)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "${relativeId(importer)}" to point directly to the exporting module or ${preserveModules ? 'do not use "output.preserveModules"' : 'reconfigure "output.manualChunks"'} to ensure these modules end up in the same chunk.`,
554
- reexporter
555
- };
556
- }
557
- function logDeprecation(deprecation, urlSnippet, plugin) {
558
- return {
559
- code: DEPRECATED_FEATURE,
560
- message: deprecation,
561
- url: getRollupUrl(urlSnippet),
562
- ...({})
563
- };
564
- }
565
- function logConstVariableReassignError() {
566
- return {
567
- code: CONST_REASSIGN,
568
- message: 'Cannot reassign a variable declared with `const`'
569
- };
570
- }
571
- function logDuplicateArgumentNameError(name) {
572
- return {
573
- code: DUPLICATE_ARGUMENT_NAME,
574
- message: `Duplicate argument name "${name}"`
575
- };
576
- }
577
- function logDuplicateExportError(name) {
578
- return { code: DUPLICATE_EXPORT, message: `Duplicate export "${name}"` };
579
- }
580
- function logDuplicatePluginName(plugin) {
581
- return {
582
- code: DUPLICATE_PLUGIN_NAME,
583
- message: `The plugin name ${plugin} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`
584
- };
585
- }
586
- function logEmptyChunk(chunkName) {
587
- return {
588
- code: EMPTY_BUNDLE,
589
- message: `Generated an empty chunk: "${chunkName}".`,
590
- names: [chunkName]
591
- };
592
- }
593
- function logEval(id) {
594
- return {
595
- code: EVAL,
596
- id,
597
- message: `Use of eval in "${relativeId(id)}" is strongly discouraged as it poses security risks and may cause issues with minification.`,
598
- url: getRollupUrl(URL_AVOIDING_EVAL)
599
- };
600
- }
601
- function logExternalSyntheticExports(id, importer) {
602
- return {
603
- code: EXTERNAL_SYNTHETIC_EXPORTS,
604
- exporter: id,
605
- message: `External "${id}" cannot have "syntheticNamedExports" enabled (imported by "${relativeId(importer)}").`
606
- };
607
- }
608
- function logFileNameConflict(fileName) {
609
- return {
610
- code: FILE_NAME_CONFLICT,
611
- message: `The emitted file "${fileName}" overwrites a previously emitted file of the same name.`
612
- };
613
- }
614
- function logFileReferenceIdNotFoundForFilename(assetReferenceId) {
615
- return {
616
- code: FILE_NOT_FOUND,
617
- message: `Plugin error - Unable to get file name for unknown file "${assetReferenceId}".`
618
- };
619
- }
620
- function logFirstSideEffect(source, id, { line, column }) {
621
- return {
622
- code: FIRST_SIDE_EFFECT,
623
- message: `First side effect in ${relativeId(id)} is at (${line}:${column})\n${getCodeFrame(source, line, column)}`
624
- };
625
- }
626
- function logIllegalIdentifierAsName(name) {
627
- return {
628
- code: ILLEGAL_IDENTIFIER_AS_NAME,
629
- message: `Given name "${name}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`,
630
- url: getRollupUrl(URL_OUTPUT_EXTEND)
631
- };
632
- }
633
- function logIllegalImportReassignment(name, importingId) {
634
- return {
635
- code: ILLEGAL_REASSIGNMENT,
636
- message: `Illegal reassignment of import "${name}" in "${relativeId(importingId)}".`
637
- };
638
- }
639
- function logInconsistentImportAttributes(existingAttributes, newAttributes, source, importer) {
640
- return {
641
- code: INCONSISTENT_IMPORT_ATTRIBUTES,
642
- message: `Module "${relativeId(importer)}" tried to import "${relativeId(source)}" with ${formatAttributes(newAttributes)} attributes, but it was already imported elsewhere with ${formatAttributes(existingAttributes)} attributes. Please ensure that import attributes for the same module are always consistent.`
643
- };
644
- }
645
- const formatAttributes = (attributes) => {
646
- const entries = Object.entries(attributes);
647
- if (entries.length === 0)
648
- return 'no';
649
- return entries.map(([key, value]) => `"${key}": "${value}"`).join(', ');
650
- };
651
- function logInvalidAnnotation(comment, id, type) {
652
- return {
653
- code: INVALID_ANNOTATION,
654
- id,
655
- message: `A comment\n\n"${comment}"\n\nin "${relativeId(id)}" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.`,
656
- url: getRollupUrl(type === 'noSideEffects' ? URL_TREESHAKE_NOSIDEEFFECTS : URL_TREESHAKE_PURE)
657
- };
658
- }
659
- function logInputHookInOutputPlugin(pluginName, hookName) {
660
- return {
661
- code: INPUT_HOOK_IN_OUTPUT_PLUGIN,
662
- message: `The "${hookName}" hook used by the output plugin ${pluginName} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`
663
- };
664
- }
665
- function logCannotAssignModuleToChunk(moduleId, assignToAlias, currentAlias) {
666
- return {
667
- code: INVALID_CHUNK,
668
- message: `Cannot assign "${relativeId(moduleId)}" to the "${assignToAlias}" chunk as it is already in the "${currentAlias}" chunk.`
669
- };
670
- }
671
- function tweakStackMessage(error, oldMessage) {
672
- if (!error.stack) {
673
- return error;
674
- }
675
- error.stack = error.stack.replace(oldMessage, error.message);
676
- return error;
677
- }
678
- function logInvalidExportOptionValue(optionValue) {
679
- return {
680
- code: INVALID_EXPORT_OPTION,
681
- message: `"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${optionValue}".`,
682
- url: getRollupUrl(URL_OUTPUT_EXPORTS)
683
- };
684
- }
685
- function logIncompatibleExportOptionValue(optionValue, keys, entryModule) {
686
- return {
687
- code: INVALID_EXPORT_OPTION,
688
- message: `"${optionValue}" was specified for "output.exports", but entry module "${relativeId(entryModule)}" has the following exports: ${printQuotedStringList(keys)}`,
689
- url: getRollupUrl(URL_OUTPUT_EXPORTS)
690
- };
691
- }
692
- function logInternalIdCannotBeExternal(source, importer) {
693
- return {
694
- code: INVALID_EXTERNAL_ID,
695
- message: `"${source}" is imported as an external by "${relativeId(importer)}", but is already an existing non-external module id.`
696
- };
697
- }
698
- function logImportOptionsAreInvalid(importer) {
699
- return {
700
- code: INVALID_IMPORT_ATTRIBUTE,
701
- message: `Rollup could not statically analyze the options argument of a dynamic import in "${relativeId(importer)}". Dynamic import options need to be an object with a nested attributes object.`
702
- };
703
- }
704
- function logImportAttributeIsInvalid(importer) {
705
- return {
706
- code: INVALID_IMPORT_ATTRIBUTE,
707
- message: `Rollup could not statically analyze an import attribute of a dynamic import in "${relativeId(importer)}". Import attributes need to have string keys and values.`
708
- };
709
- }
710
- function logInvalidLogPosition(plugin) {
711
- return {
712
- code: INVALID_LOG_POSITION,
713
- message: `Plugin "${plugin}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`
714
- };
715
- }
716
- function logInvalidOption(option, urlSnippet, explanation, value) {
717
- return {
718
- code: INVALID_OPTION,
719
- message: `Invalid value ${value === undefined ? '' : `${JSON.stringify(value)} `}for option "${option}" - ${explanation}.`,
720
- url: getRollupUrl(urlSnippet)
721
- };
722
- }
723
- function logInvalidAddonPluginHook(hook, plugin) {
724
- return {
725
- code: INVALID_PLUGIN_HOOK,
726
- hook,
727
- message: `Error running plugin hook "${hook}" for plugin "${plugin}", expected a string, a function hook or an object with a "handler" string or function.`,
728
- plugin
729
- };
730
- }
731
- function logInvalidFunctionPluginHook(hook, plugin) {
732
- return {
733
- code: INVALID_PLUGIN_HOOK,
734
- hook,
735
- message: `Error running plugin hook "${hook}" for plugin "${plugin}", expected a function hook or an object with a "handler" function.`,
736
- plugin
737
- };
738
- }
739
- function logInvalidRollupPhaseForChunkEmission() {
740
- return {
741
- code: INVALID_ROLLUP_PHASE,
742
- message: `Cannot emit chunks after module loading has finished.`
743
- };
744
- }
745
- function logInvalidSetAssetSourceCall() {
746
- return {
747
- code: INVALID_SETASSETSOURCE,
748
- message: `setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook.`
749
- };
750
- }
751
- function logInvalidFormatForTopLevelAwait(id, format) {
752
- return {
753
- code: INVALID_TLA_FORMAT,
754
- id,
755
- message: `Module format "${format}" does not support top-level await. Use the "es" or "system" output formats rather.`
756
- };
757
- }
758
- function logMissingEntryExport(binding, exporter) {
759
- return {
760
- binding,
761
- code: MISSING_EXPORT,
762
- exporter,
763
- message: `Exported variable "${binding}" is not defined in "${relativeId(exporter)}".`,
764
- url: getRollupUrl(URL_NAME_IS_NOT_EXPORTED)
765
- };
766
- }
767
- function logMissingExport(binding, importingModule, exporter, missingButExportExists) {
768
- const baseLog = {
769
- binding,
770
- code: MISSING_EXPORT,
771
- exporter,
772
- id: importingModule,
773
- url: getRollupUrl(URL_NAME_IS_NOT_EXPORTED)
774
- };
775
- if (missingButExportExists) {
776
- return {
777
- ...baseLog,
778
- message: `Exported variable "${binding}" is not defined in "${relativeId(exporter)}", but it is imported by "${relativeId(importingModule)}".`
779
- };
780
- }
781
- const isJson = extname(exporter) === '.json';
782
- return {
783
- ...baseLog,
784
- message: `"${binding}" is not exported by "${relativeId(exporter)}", imported by "${relativeId(importingModule)}".${isJson ? ' (Note that you need @rollup/plugin-json to import JSON files)' : ''}`
785
- };
786
- }
787
- function logMissingGlobalName(externalId, guess) {
788
- return {
789
- code: MISSING_GLOBAL_NAME,
790
- id: externalId,
791
- message: `No name was provided for external module "${externalId}" in "output.globals" – guessing "${guess}".`,
792
- names: [guess],
793
- url: getRollupUrl(URL_OUTPUT_GLOBALS)
794
- };
795
- }
796
- function logImplicitDependantCannotBeExternal(unresolvedId, implicitlyLoadedBefore) {
797
- return {
798
- code: MISSING_IMPLICIT_DEPENDANT,
799
- message: `Module "${relativeId(unresolvedId)}" that should be implicitly loaded before "${relativeId(implicitlyLoadedBefore)}" cannot be external.`
800
- };
801
- }
802
- function logUnresolvedImplicitDependant(unresolvedId, implicitlyLoadedBefore) {
803
- return {
804
- code: MISSING_IMPLICIT_DEPENDANT,
805
- message: `Module "${relativeId(unresolvedId)}" that should be implicitly loaded before "${relativeId(implicitlyLoadedBefore)}" could not be resolved.`
806
- };
807
- }
808
- function logImplicitDependantIsNotIncluded(module) {
809
- const implicitDependencies = [...module.implicitlyLoadedBefore]
810
- .map(dependency => relativeId(dependency.id))
811
- .sort();
812
- return {
813
- code: MISSING_IMPLICIT_DEPENDANT,
814
- message: `Module "${relativeId(module.id)}" that should be implicitly loaded before ${printQuotedStringList(implicitDependencies)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`
815
- };
816
- }
817
- function logMissingJsxExport(name, exporter, importer) {
818
- return {
819
- code: MISSING_JSX_EXPORT,
820
- exporter,
821
- id: importer,
822
- message: `Export "${name}" is not defined in module "${relativeId(exporter)}" even though it is needed in "${relativeId(importer)}" to provide JSX syntax. Please check your "jsx" option.`,
823
- names: [name],
824
- url: getRollupUrl(URL_JSX)
825
- };
826
- }
827
- function logMissingNameOptionForIifeExport() {
828
- return {
829
- code: MISSING_NAME_OPTION_FOR_IIFE_EXPORT,
830
- message: `If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.`,
831
- url: getRollupUrl(URL_OUTPUT_NAME)
832
- };
833
- }
834
- function logMissingNameOptionForUmdExport() {
835
- return {
836
- code: MISSING_NAME_OPTION_FOR_IIFE_EXPORT,
837
- message: 'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.',
838
- url: getRollupUrl(URL_OUTPUT_NAME)
839
- };
840
- }
841
- function logMissingNodeBuiltins(externalBuiltins) {
842
- return {
843
- code: MISSING_NODE_BUILTINS,
844
- ids: externalBuiltins,
845
- message: `Creating a browser bundle that depends on Node.js built-in modules (${printQuotedStringList(externalBuiltins)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`
846
- };
847
- }
848
- function logMissingFileOrDirOption() {
849
- return {
850
- code: MISSING_OPTION,
851
- message: 'You must specify "output.file" or "output.dir" for the build.',
852
- url: getRollupUrl(URL_OUTPUT_DIR)
853
- };
854
- }
855
- function logMixedExport(facadeModuleId, name) {
856
- return {
857
- code: MIXED_EXPORTS,
858
- id: facadeModuleId,
859
- message: `Entry module "${relativeId(facadeModuleId)}" is using named and default exports together. Consumers of your bundle will have to use \`${name || 'chunk'}.default\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning.`,
860
- url: getRollupUrl(URL_OUTPUT_EXPORTS)
861
- };
862
- }
863
- function logModuleLevelDirective(directive, id) {
864
- return {
865
- code: MODULE_LEVEL_DIRECTIVE,
866
- id,
867
- message: `Module level directives cause errors when bundled, "${directive}" in "${relativeId(id)}" was ignored.`
868
- };
869
- }
870
- function logNamespaceConflict(binding, reexportingModuleId, sources) {
871
- return {
872
- binding,
873
- code: NAMESPACE_CONFLICT,
874
- ids: sources,
875
- message: `Conflicting namespaces: "${relativeId(reexportingModuleId)}" re-exports "${binding}" from one of the modules ${printQuotedStringList(sources.map(moduleId => relativeId(moduleId)))} (will be ignored).`,
876
- reexporter: reexportingModuleId
877
- };
878
- }
879
- function logNoTransformMapOrAstWithoutCode(pluginName) {
880
- return {
881
- code: NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,
882
- message: `The plugin "${pluginName}" returned a "map" or "ast" without returning ` +
883
- 'a "code". This will be ignored.'
884
- };
885
- }
886
- function logOptimizeChunkStatus(chunks, smallChunks, pointInTime) {
887
- return {
888
- code: OPTIMIZE_CHUNK_STATUS,
889
- message: `${pointInTime}, there are\n` +
890
- `${chunks} chunks, of which\n` +
891
- `${smallChunks} are below minChunkSize.`
892
- };
893
- }
894
- function logParseError(message, pos) {
895
- return { code: PARSE_ERROR, message, pos };
896
- }
897
- function logRedeclarationError(name) {
898
- return {
899
- code: REDECLARATION_ERROR,
900
- message: `Identifier "${name}" has already been declared`
901
- };
902
- }
903
- function logReservedNamespace(namespace) {
904
- return {
905
- code: RESERVED_NAMESPACE,
906
- message: `You have overridden reserved namespace "${namespace}"`
907
- };
908
- }
909
- function logModuleParseError(error, moduleId) {
910
- let message = error.message.replace(/ \(\d+:\d+\)$/, '');
911
- if (moduleId.endsWith('.json')) {
912
- message += ' (Note that you need @rollup/plugin-json to import JSON files)';
913
- }
914
- else if (!moduleId.endsWith('.js')) {
915
- message += ' (Note that you need plugins to import files that are not JavaScript)';
916
- }
917
- return tweakStackMessage({
918
- cause: error,
919
- code: PARSE_ERROR,
920
- id: moduleId,
921
- message,
922
- stack: error.stack
923
- }, error.message);
924
- }
925
- function logPluginError(error, plugin, { hook, id } = {}) {
926
- const code = error.code;
927
- if (!error.pluginCode &&
928
- code != null &&
929
- (typeof code !== 'string' || !code.startsWith('PLUGIN_'))) {
930
- error.pluginCode = code;
931
- }
932
- error.code = PLUGIN_ERROR;
933
- error.plugin = plugin;
934
- if (hook) {
935
- error.hook = hook;
936
- }
937
- if (id) {
938
- error.id = id;
939
- }
940
- return error;
941
- }
942
- function logShimmedExport(id, binding) {
943
- return {
944
- binding,
945
- code: SHIMMED_EXPORT,
946
- exporter: id,
947
- message: `Missing export "${binding}" has been shimmed in module "${relativeId(id)}".`
948
- };
949
- }
950
- function logSourcemapBroken(plugin) {
951
- return {
952
- code: SOURCEMAP_BROKEN,
953
- message: `Sourcemap is likely to be incorrect: a plugin (${plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,
954
- plugin,
955
- url: getRollupUrl(URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT)
956
- };
957
- }
958
- function logConflictingSourcemapSources(filename) {
959
- return {
960
- code: SOURCEMAP_BROKEN,
961
- message: `Multiple conflicting contents for sourcemap source ${filename}`
962
- };
963
- }
964
- function logInvalidSourcemapForError(error, id, column, line, pos) {
965
- return {
966
- cause: error,
967
- code: SOURCEMAP_ERROR,
968
- id,
969
- loc: {
970
- column,
971
- file: id,
972
- line
973
- },
974
- message: `Error when using sourcemap for reporting an error: ${error.message}`,
975
- pos
976
- };
977
- }
978
- function logSyntheticNamedExportsNeedNamespaceExport(id, syntheticNamedExportsOption) {
979
- return {
980
- code: SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,
981
- exporter: id,
982
- message: `Module "${relativeId(id)}" that is marked with \`syntheticNamedExports: ${JSON.stringify(syntheticNamedExportsOption)}\` needs ${typeof syntheticNamedExportsOption === 'string' && syntheticNamedExportsOption !== 'default'
983
- ? `an explicit export named "${syntheticNamedExportsOption}"`
984
- : 'a default export'} that does not reexport an unresolved named export of the same module.`
985
- };
986
- }
987
- function logThisIsUndefined() {
988
- return {
989
- code: THIS_IS_UNDEFINED,
990
- message: `The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten`,
991
- url: getRollupUrl(URL_THIS_IS_UNDEFINED)
992
- };
993
- }
994
- function logUnexpectedNamedImport(id, imported, isReexport) {
995
- const importType = isReexport ? 'reexport' : 'import';
996
- return {
997
- code: UNEXPECTED_NAMED_IMPORT,
998
- exporter: id,
999
- message: `The named export "${imported}" was ${importType}ed from the external module "${relativeId(id)}" even though its interop type is "defaultOnly". Either remove or change this ${importType} or change the value of the "output.interop" option.`,
1000
- url: getRollupUrl(URL_OUTPUT_INTEROP)
1001
- };
1002
- }
1003
- function logUnexpectedNamespaceReexport(id) {
1004
- return {
1005
- code: UNEXPECTED_NAMED_IMPORT,
1006
- exporter: id,
1007
- message: `There was a namespace "*" reexport from the external module "${relativeId(id)}" even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,
1008
- url: getRollupUrl(URL_OUTPUT_INTEROP)
1009
- };
1010
- }
1011
- function logUnknownOption(optionType, unknownOptions, validOptions) {
1012
- return {
1013
- code: UNKNOWN_OPTION,
1014
- message: `Unknown ${optionType}: ${unknownOptions.join(', ')}. Allowed options: ${validOptions.join(', ')}`
1015
- };
1016
- }
1017
- function logEntryCannotBeExternal(unresolvedId) {
1018
- return {
1019
- code: UNRESOLVED_ENTRY,
1020
- message: `Entry module "${relativeId(unresolvedId)}" cannot be external.`
1021
- };
1022
- }
1023
- function logExternalModulesCannotBeIncludedInManualChunks(source) {
1024
- return {
1025
- code: EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS,
1026
- message: `"${source}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`
1027
- };
1028
- }
1029
- function logExternalModulesCannotBeTransformedToModules(source) {
1030
- return {
1031
- code: EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES,
1032
- message: `${source} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`
1033
- };
1034
- }
1035
- function logUnresolvedEntry(unresolvedId) {
1036
- return {
1037
- code: UNRESOLVED_ENTRY,
1038
- message: `Could not resolve entry module "${relativeId(unresolvedId)}".`
1039
- };
1040
- }
1041
- function logUnresolvedImport(source, importer) {
1042
- return {
1043
- code: UNRESOLVED_IMPORT,
1044
- exporter: source,
1045
- id: importer,
1046
- message: `Could not resolve "${source}" from "${relativeId(importer)}"`
1047
- };
1048
- }
1049
- function logUnresolvedImportTreatedAsExternal(source, importer) {
1050
- return {
1051
- code: UNRESOLVED_IMPORT,
1052
- exporter: source,
1053
- id: importer,
1054
- message: `"${source}" is imported by "${relativeId(importer)}", but could not be resolved – treating it as an external dependency.`,
1055
- url: getRollupUrl(URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY)
1056
- };
1057
- }
1058
- function logUnusedExternalImports(externalId, names, importers) {
1059
- return {
1060
- code: UNUSED_EXTERNAL_IMPORT,
1061
- exporter: externalId,
1062
- ids: importers,
1063
- message: `${printQuotedStringList(names, [
1064
- 'is',
1065
- 'are'
1066
- ])} imported from external module "${externalId}" but never used in ${printQuotedStringList(importers.map(importer => relativeId(importer)))}.`,
1067
- names
1068
- };
1069
- }
1070
- function logFailedValidation(message) {
1071
- return {
1072
- code: VALIDATION_ERROR,
1073
- message
1074
- };
1075
- }
1076
- function warnDeprecation(deprecation, urlSnippet, activeDeprecation, options, plugin) {
1077
- warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations);
1078
- }
1079
- function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, log, strictDeprecations, plugin) {
1080
- if (activeDeprecation || strictDeprecations) {
1081
- const warning = logDeprecation(deprecation, urlSnippet);
1082
- if (strictDeprecations) {
1083
- return error(warning);
1084
- }
1085
- log(LOGLEVEL_WARN, warning);
1086
- }
1087
- }
1088
-
1089
- // This file is generated by scripts/generate-buffer-to-ast.js.
1090
- // Do not edit this file directly.
1091
- function convertProgram(buffer) {
1092
- const node = convertNode(0, buffer);
1093
- switch (node.type) {
1094
- case PanicError: {
1095
- return error(getRollupError(logParseError(node.message)));
1096
- }
1097
- case ParseError: {
1098
- return error(getRollupError(logParseError(node.message, node.start)));
1099
- }
1100
- default: {
1101
- return node;
1102
- }
1103
- }
1104
- }
1105
- /* eslint-disable sort-keys */
1106
- const nodeConverters = [
1107
- function panicError(position, buffer) {
1108
- return {
1109
- type: 'PanicError',
1110
- start: buffer[position],
1111
- end: buffer[position + 1],
1112
- message: buffer.convertString(buffer[position + 2])
1113
- };
1114
- },
1115
- function parseError(position, buffer) {
1116
- return {
1117
- type: 'ParseError',
1118
- start: buffer[position],
1119
- end: buffer[position + 1],
1120
- message: buffer.convertString(buffer[position + 2])
1121
- };
1122
- },
1123
- function arrayExpression(position, buffer) {
1124
- return {
1125
- type: 'ArrayExpression',
1126
- start: buffer[position],
1127
- end: buffer[position + 1],
1128
- elements: convertNodeList(buffer[position + 2], buffer)
1129
- };
1130
- },
1131
- function arrayPattern(position, buffer) {
1132
- return {
1133
- type: 'ArrayPattern',
1134
- start: buffer[position],
1135
- end: buffer[position + 1],
1136
- elements: convertNodeList(buffer[position + 2], buffer)
1137
- };
1138
- },
1139
- function arrowFunctionExpression(position, buffer) {
1140
- const flags = buffer[position + 2];
1141
- const annotations = convertAnnotations(buffer[position + 3], buffer);
1142
- return {
1143
- type: 'ArrowFunctionExpression',
1144
- start: buffer[position],
1145
- end: buffer[position + 1],
1146
- async: (flags & 1) === 1,
1147
- expression: (flags & 2) === 2,
1148
- generator: (flags & 4) === 4,
1149
- ...(annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {}),
1150
- params: convertNodeList(buffer[position + 4], buffer),
1151
- body: convertNode(buffer[position + 5], buffer),
1152
- id: null
1153
- };
1154
- },
1155
- function assignmentExpression(position, buffer) {
1156
- return {
1157
- type: 'AssignmentExpression',
1158
- start: buffer[position],
1159
- end: buffer[position + 1],
1160
- operator: FIXED_STRINGS[buffer[position + 2]],
1161
- left: convertNode(buffer[position + 3], buffer),
1162
- right: convertNode(buffer[position + 4], buffer)
1163
- };
1164
- },
1165
- function assignmentPattern(position, buffer) {
1166
- return {
1167
- type: 'AssignmentPattern',
1168
- start: buffer[position],
1169
- end: buffer[position + 1],
1170
- left: convertNode(buffer[position + 2], buffer),
1171
- right: convertNode(buffer[position + 3], buffer)
1172
- };
1173
- },
1174
- function awaitExpression(position, buffer) {
1175
- return {
1176
- type: 'AwaitExpression',
1177
- start: buffer[position],
1178
- end: buffer[position + 1],
1179
- argument: convertNode(buffer[position + 2], buffer)
1180
- };
1181
- },
1182
- function binaryExpression(position, buffer) {
1183
- return {
1184
- type: 'BinaryExpression',
1185
- start: buffer[position],
1186
- end: buffer[position + 1],
1187
- operator: FIXED_STRINGS[buffer[position + 2]],
1188
- left: convertNode(buffer[position + 3], buffer),
1189
- right: convertNode(buffer[position + 4], buffer)
1190
- };
1191
- },
1192
- function blockStatement(position, buffer) {
1193
- return {
1194
- type: 'BlockStatement',
1195
- start: buffer[position],
1196
- end: buffer[position + 1],
1197
- body: convertNodeList(buffer[position + 2], buffer)
1198
- };
1199
- },
1200
- function breakStatement(position, buffer) {
1201
- const labelPosition = buffer[position + 2];
1202
- return {
1203
- type: 'BreakStatement',
1204
- start: buffer[position],
1205
- end: buffer[position + 1],
1206
- label: labelPosition === 0 ? null : convertNode(labelPosition, buffer)
1207
- };
1208
- },
1209
- function callExpression(position, buffer) {
1210
- const flags = buffer[position + 2];
1211
- const annotations = convertAnnotations(buffer[position + 3], buffer);
1212
- return {
1213
- type: 'CallExpression',
1214
- start: buffer[position],
1215
- end: buffer[position + 1],
1216
- optional: (flags & 1) === 1,
1217
- ...(annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {}),
1218
- callee: convertNode(buffer[position + 4], buffer),
1219
- arguments: convertNodeList(buffer[position + 5], buffer)
1220
- };
1221
- },
1222
- function catchClause(position, buffer) {
1223
- const parameterPosition = buffer[position + 2];
1224
- return {
1225
- type: 'CatchClause',
1226
- start: buffer[position],
1227
- end: buffer[position + 1],
1228
- param: parameterPosition === 0 ? null : convertNode(parameterPosition, buffer),
1229
- body: convertNode(buffer[position + 3], buffer)
1230
- };
1231
- },
1232
- function chainExpression(position, buffer) {
1233
- return {
1234
- type: 'ChainExpression',
1235
- start: buffer[position],
1236
- end: buffer[position + 1],
1237
- expression: convertNode(buffer[position + 2], buffer)
1238
- };
1239
- },
1240
- function classBody(position, buffer) {
1241
- return {
1242
- type: 'ClassBody',
1243
- start: buffer[position],
1244
- end: buffer[position + 1],
1245
- body: convertNodeList(buffer[position + 2], buffer)
1246
- };
1247
- },
1248
- function classDeclaration(position, buffer) {
1249
- const idPosition = buffer[position + 3];
1250
- const superClassPosition = buffer[position + 4];
1251
- return {
1252
- type: 'ClassDeclaration',
1253
- start: buffer[position],
1254
- end: buffer[position + 1],
1255
- decorators: convertNodeList(buffer[position + 2], buffer),
1256
- id: idPosition === 0 ? null : convertNode(idPosition, buffer),
1257
- superClass: superClassPosition === 0 ? null : convertNode(superClassPosition, buffer),
1258
- body: convertNode(buffer[position + 5], buffer)
1259
- };
1260
- },
1261
- function classExpression(position, buffer) {
1262
- const idPosition = buffer[position + 3];
1263
- const superClassPosition = buffer[position + 4];
1264
- return {
1265
- type: 'ClassExpression',
1266
- start: buffer[position],
1267
- end: buffer[position + 1],
1268
- decorators: convertNodeList(buffer[position + 2], buffer),
1269
- id: idPosition === 0 ? null : convertNode(idPosition, buffer),
1270
- superClass: superClassPosition === 0 ? null : convertNode(superClassPosition, buffer),
1271
- body: convertNode(buffer[position + 5], buffer)
1272
- };
1273
- },
1274
- function conditionalExpression(position, buffer) {
1275
- return {
1276
- type: 'ConditionalExpression',
1277
- start: buffer[position],
1278
- end: buffer[position + 1],
1279
- test: convertNode(buffer[position + 2], buffer),
1280
- consequent: convertNode(buffer[position + 3], buffer),
1281
- alternate: convertNode(buffer[position + 4], buffer)
1282
- };
1283
- },
1284
- function continueStatement(position, buffer) {
1285
- const labelPosition = buffer[position + 2];
1286
- return {
1287
- type: 'ContinueStatement',
1288
- start: buffer[position],
1289
- end: buffer[position + 1],
1290
- label: labelPosition === 0 ? null : convertNode(labelPosition, buffer)
1291
- };
1292
- },
1293
- function debuggerStatement(position, buffer) {
1294
- return {
1295
- type: 'DebuggerStatement',
1296
- start: buffer[position],
1297
- end: buffer[position + 1]
1298
- };
1299
- },
1300
- function decorator(position, buffer) {
1301
- return {
1302
- type: 'Decorator',
1303
- start: buffer[position],
1304
- end: buffer[position + 1],
1305
- expression: convertNode(buffer[position + 2], buffer)
1306
- };
1307
- },
1308
- function directive(position, buffer) {
1309
- return {
1310
- type: 'ExpressionStatement',
1311
- start: buffer[position],
1312
- end: buffer[position + 1],
1313
- directive: buffer.convertString(buffer[position + 2]),
1314
- expression: convertNode(buffer[position + 3], buffer)
1315
- };
1316
- },
1317
- function doWhileStatement(position, buffer) {
1318
- return {
1319
- type: 'DoWhileStatement',
1320
- start: buffer[position],
1321
- end: buffer[position + 1],
1322
- body: convertNode(buffer[position + 2], buffer),
1323
- test: convertNode(buffer[position + 3], buffer)
1324
- };
1325
- },
1326
- function emptyStatement(position, buffer) {
1327
- return {
1328
- type: 'EmptyStatement',
1329
- start: buffer[position],
1330
- end: buffer[position + 1]
1331
- };
1332
- },
1333
- function exportAllDeclaration(position, buffer) {
1334
- const exportedPosition = buffer[position + 2];
1335
- return {
1336
- type: 'ExportAllDeclaration',
1337
- start: buffer[position],
1338
- end: buffer[position + 1],
1339
- exported: exportedPosition === 0 ? null : convertNode(exportedPosition, buffer),
1340
- source: convertNode(buffer[position + 3], buffer),
1341
- attributes: convertNodeList(buffer[position + 4], buffer)
1342
- };
1343
- },
1344
- function exportDefaultDeclaration(position, buffer) {
1345
- return {
1346
- type: 'ExportDefaultDeclaration',
1347
- start: buffer[position],
1348
- end: buffer[position + 1],
1349
- declaration: convertNode(buffer[position + 2], buffer)
1350
- };
1351
- },
1352
- function exportNamedDeclaration(position, buffer) {
1353
- const sourcePosition = buffer[position + 3];
1354
- const declarationPosition = buffer[position + 5];
1355
- return {
1356
- type: 'ExportNamedDeclaration',
1357
- start: buffer[position],
1358
- end: buffer[position + 1],
1359
- specifiers: convertNodeList(buffer[position + 2], buffer),
1360
- source: sourcePosition === 0 ? null : convertNode(sourcePosition, buffer),
1361
- attributes: convertNodeList(buffer[position + 4], buffer),
1362
- declaration: declarationPosition === 0 ? null : convertNode(declarationPosition, buffer)
1363
- };
1364
- },
1365
- function exportSpecifier(position, buffer) {
1366
- const local = convertNode(buffer[position + 2], buffer);
1367
- const exportedPosition = buffer[position + 3];
1368
- return {
1369
- type: 'ExportSpecifier',
1370
- start: buffer[position],
1371
- end: buffer[position + 1],
1372
- local,
1373
- exported: exportedPosition === 0 ? { ...local } : convertNode(exportedPosition, buffer)
1374
- };
1375
- },
1376
- function expressionStatement(position, buffer) {
1377
- return {
1378
- type: 'ExpressionStatement',
1379
- start: buffer[position],
1380
- end: buffer[position + 1],
1381
- expression: convertNode(buffer[position + 2], buffer)
1382
- };
1383
- },
1384
- function forInStatement(position, buffer) {
1385
- return {
1386
- type: 'ForInStatement',
1387
- start: buffer[position],
1388
- end: buffer[position + 1],
1389
- left: convertNode(buffer[position + 2], buffer),
1390
- right: convertNode(buffer[position + 3], buffer),
1391
- body: convertNode(buffer[position + 4], buffer)
1392
- };
1393
- },
1394
- function forOfStatement(position, buffer) {
1395
- const flags = buffer[position + 2];
1396
- return {
1397
- type: 'ForOfStatement',
1398
- start: buffer[position],
1399
- end: buffer[position + 1],
1400
- await: (flags & 1) === 1,
1401
- left: convertNode(buffer[position + 3], buffer),
1402
- right: convertNode(buffer[position + 4], buffer),
1403
- body: convertNode(buffer[position + 5], buffer)
1404
- };
1405
- },
1406
- function forStatement(position, buffer) {
1407
- const initPosition = buffer[position + 2];
1408
- const testPosition = buffer[position + 3];
1409
- const updatePosition = buffer[position + 4];
1410
- return {
1411
- type: 'ForStatement',
1412
- start: buffer[position],
1413
- end: buffer[position + 1],
1414
- init: initPosition === 0 ? null : convertNode(initPosition, buffer),
1415
- test: testPosition === 0 ? null : convertNode(testPosition, buffer),
1416
- update: updatePosition === 0 ? null : convertNode(updatePosition, buffer),
1417
- body: convertNode(buffer[position + 5], buffer)
1418
- };
1419
- },
1420
- function functionDeclaration(position, buffer) {
1421
- const flags = buffer[position + 2];
1422
- const annotations = convertAnnotations(buffer[position + 3], buffer);
1423
- const idPosition = buffer[position + 4];
1424
- return {
1425
- type: 'FunctionDeclaration',
1426
- start: buffer[position],
1427
- end: buffer[position + 1],
1428
- async: (flags & 1) === 1,
1429
- generator: (flags & 2) === 2,
1430
- ...(annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {}),
1431
- id: idPosition === 0 ? null : convertNode(idPosition, buffer),
1432
- params: convertNodeList(buffer[position + 5], buffer),
1433
- body: convertNode(buffer[position + 6], buffer),
1434
- expression: false
1435
- };
1436
- },
1437
- function functionExpression(position, buffer) {
1438
- const flags = buffer[position + 2];
1439
- const annotations = convertAnnotations(buffer[position + 3], buffer);
1440
- const idPosition = buffer[position + 4];
1441
- return {
1442
- type: 'FunctionExpression',
1443
- start: buffer[position],
1444
- end: buffer[position + 1],
1445
- async: (flags & 1) === 1,
1446
- generator: (flags & 2) === 2,
1447
- ...(annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {}),
1448
- id: idPosition === 0 ? null : convertNode(idPosition, buffer),
1449
- params: convertNodeList(buffer[position + 5], buffer),
1450
- body: convertNode(buffer[position + 6], buffer),
1451
- expression: false
1452
- };
1453
- },
1454
- function identifier(position, buffer) {
1455
- return {
1456
- type: 'Identifier',
1457
- start: buffer[position],
1458
- end: buffer[position + 1],
1459
- name: buffer.convertString(buffer[position + 2])
1460
- };
1461
- },
1462
- function ifStatement(position, buffer) {
1463
- const alternatePosition = buffer[position + 4];
1464
- return {
1465
- type: 'IfStatement',
1466
- start: buffer[position],
1467
- end: buffer[position + 1],
1468
- test: convertNode(buffer[position + 2], buffer),
1469
- consequent: convertNode(buffer[position + 3], buffer),
1470
- alternate: alternatePosition === 0 ? null : convertNode(alternatePosition, buffer)
1471
- };
1472
- },
1473
- function importAttribute(position, buffer) {
1474
- return {
1475
- type: 'ImportAttribute',
1476
- start: buffer[position],
1477
- end: buffer[position + 1],
1478
- key: convertNode(buffer[position + 2], buffer),
1479
- value: convertNode(buffer[position + 3], buffer)
1480
- };
1481
- },
1482
- function importDeclaration(position, buffer) {
1483
- return {
1484
- type: 'ImportDeclaration',
1485
- start: buffer[position],
1486
- end: buffer[position + 1],
1487
- specifiers: convertNodeList(buffer[position + 2], buffer),
1488
- source: convertNode(buffer[position + 3], buffer),
1489
- attributes: convertNodeList(buffer[position + 4], buffer)
1490
- };
1491
- },
1492
- function importDefaultSpecifier(position, buffer) {
1493
- return {
1494
- type: 'ImportDefaultSpecifier',
1495
- start: buffer[position],
1496
- end: buffer[position + 1],
1497
- local: convertNode(buffer[position + 2], buffer)
1498
- };
1499
- },
1500
- function importExpression(position, buffer) {
1501
- const optionsPosition = buffer[position + 3];
1502
- return {
1503
- type: 'ImportExpression',
1504
- start: buffer[position],
1505
- end: buffer[position + 1],
1506
- source: convertNode(buffer[position + 2], buffer),
1507
- options: optionsPosition === 0 ? null : convertNode(optionsPosition, buffer)
1508
- };
1509
- },
1510
- function importNamespaceSpecifier(position, buffer) {
1511
- return {
1512
- type: 'ImportNamespaceSpecifier',
1513
- start: buffer[position],
1514
- end: buffer[position + 1],
1515
- local: convertNode(buffer[position + 2], buffer)
1516
- };
1517
- },
1518
- function importSpecifier(position, buffer) {
1519
- const importedPosition = buffer[position + 2];
1520
- const local = convertNode(buffer[position + 3], buffer);
1521
- return {
1522
- type: 'ImportSpecifier',
1523
- start: buffer[position],
1524
- end: buffer[position + 1],
1525
- imported: importedPosition === 0 ? { ...local } : convertNode(importedPosition, buffer),
1526
- local
1527
- };
1528
- },
1529
- function jsxAttribute(position, buffer) {
1530
- const valuePosition = buffer[position + 3];
1531
- return {
1532
- type: 'JSXAttribute',
1533
- start: buffer[position],
1534
- end: buffer[position + 1],
1535
- name: convertNode(buffer[position + 2], buffer),
1536
- value: valuePosition === 0 ? null : convertNode(valuePosition, buffer)
1537
- };
1538
- },
1539
- function jsxClosingElement(position, buffer) {
1540
- return {
1541
- type: 'JSXClosingElement',
1542
- start: buffer[position],
1543
- end: buffer[position + 1],
1544
- name: convertNode(buffer[position + 2], buffer)
1545
- };
1546
- },
1547
- function jsxClosingFragment(position, buffer) {
1548
- return {
1549
- type: 'JSXClosingFragment',
1550
- start: buffer[position],
1551
- end: buffer[position + 1]
1552
- };
1553
- },
1554
- function jsxElement(position, buffer) {
1555
- const closingElementPosition = buffer[position + 4];
1556
- return {
1557
- type: 'JSXElement',
1558
- start: buffer[position],
1559
- end: buffer[position + 1],
1560
- openingElement: convertNode(buffer[position + 2], buffer),
1561
- children: convertNodeList(buffer[position + 3], buffer),
1562
- closingElement: closingElementPosition === 0 ? null : convertNode(closingElementPosition, buffer)
1563
- };
1564
- },
1565
- function jsxEmptyExpression(position, buffer) {
1566
- return {
1567
- type: 'JSXEmptyExpression',
1568
- start: buffer[position],
1569
- end: buffer[position + 1]
1570
- };
1571
- },
1572
- function jsxExpressionContainer(position, buffer) {
1573
- return {
1574
- type: 'JSXExpressionContainer',
1575
- start: buffer[position],
1576
- end: buffer[position + 1],
1577
- expression: convertNode(buffer[position + 2], buffer)
1578
- };
1579
- },
1580
- function jsxFragment(position, buffer) {
1581
- return {
1582
- type: 'JSXFragment',
1583
- start: buffer[position],
1584
- end: buffer[position + 1],
1585
- openingFragment: convertNode(buffer[position + 2], buffer),
1586
- children: convertNodeList(buffer[position + 3], buffer),
1587
- closingFragment: convertNode(buffer[position + 4], buffer)
1588
- };
1589
- },
1590
- function jsxIdentifier(position, buffer) {
1591
- return {
1592
- type: 'JSXIdentifier',
1593
- start: buffer[position],
1594
- end: buffer[position + 1],
1595
- name: buffer.convertString(buffer[position + 2])
1596
- };
1597
- },
1598
- function jsxMemberExpression(position, buffer) {
1599
- return {
1600
- type: 'JSXMemberExpression',
1601
- start: buffer[position],
1602
- end: buffer[position + 1],
1603
- object: convertNode(buffer[position + 2], buffer),
1604
- property: convertNode(buffer[position + 3], buffer)
1605
- };
1606
- },
1607
- function jsxNamespacedName(position, buffer) {
1608
- return {
1609
- type: 'JSXNamespacedName',
1610
- start: buffer[position],
1611
- end: buffer[position + 1],
1612
- namespace: convertNode(buffer[position + 2], buffer),
1613
- name: convertNode(buffer[position + 3], buffer)
1614
- };
1615
- },
1616
- function jsxOpeningElement(position, buffer) {
1617
- const flags = buffer[position + 2];
1618
- return {
1619
- type: 'JSXOpeningElement',
1620
- start: buffer[position],
1621
- end: buffer[position + 1],
1622
- selfClosing: (flags & 1) === 1,
1623
- name: convertNode(buffer[position + 3], buffer),
1624
- attributes: convertNodeList(buffer[position + 4], buffer)
1625
- };
1626
- },
1627
- function jsxOpeningFragment(position, buffer) {
1628
- return {
1629
- type: 'JSXOpeningFragment',
1630
- start: buffer[position],
1631
- end: buffer[position + 1],
1632
- attributes: [],
1633
- selfClosing: false
1634
- };
1635
- },
1636
- function jsxSpreadAttribute(position, buffer) {
1637
- return {
1638
- type: 'JSXSpreadAttribute',
1639
- start: buffer[position],
1640
- end: buffer[position + 1],
1641
- argument: convertNode(buffer[position + 2], buffer)
1642
- };
1643
- },
1644
- function jsxSpreadChild(position, buffer) {
1645
- return {
1646
- type: 'JSXSpreadChild',
1647
- start: buffer[position],
1648
- end: buffer[position + 1],
1649
- expression: convertNode(buffer[position + 2], buffer)
1650
- };
1651
- },
1652
- function jsxText(position, buffer) {
1653
- return {
1654
- type: 'JSXText',
1655
- start: buffer[position],
1656
- end: buffer[position + 1],
1657
- value: buffer.convertString(buffer[position + 2]),
1658
- raw: buffer.convertString(buffer[position + 3])
1659
- };
1660
- },
1661
- function labeledStatement(position, buffer) {
1662
- return {
1663
- type: 'LabeledStatement',
1664
- start: buffer[position],
1665
- end: buffer[position + 1],
1666
- label: convertNode(buffer[position + 2], buffer),
1667
- body: convertNode(buffer[position + 3], buffer)
1668
- };
1669
- },
1670
- function literalBigInt(position, buffer) {
1671
- const bigint = buffer.convertString(buffer[position + 2]);
1672
- return {
1673
- type: 'Literal',
1674
- start: buffer[position],
1675
- end: buffer[position + 1],
1676
- bigint,
1677
- raw: buffer.convertString(buffer[position + 3]),
1678
- value: BigInt(bigint)
1679
- };
1680
- },
1681
- function literalBoolean(position, buffer) {
1682
- const flags = buffer[position + 2];
1683
- const value = (flags & 1) === 1;
1684
- return {
1685
- type: 'Literal',
1686
- start: buffer[position],
1687
- end: buffer[position + 1],
1688
- value,
1689
- raw: value ? 'true' : 'false'
1690
- };
1691
- },
1692
- function literalNull(position, buffer) {
1693
- return {
1694
- type: 'Literal',
1695
- start: buffer[position],
1696
- end: buffer[position + 1],
1697
- raw: 'null',
1698
- value: null
1699
- };
1700
- },
1701
- function literalNumber(position, buffer) {
1702
- const rawPosition = buffer[position + 2];
1703
- return {
1704
- type: 'Literal',
1705
- start: buffer[position],
1706
- end: buffer[position + 1],
1707
- raw: rawPosition === 0 ? undefined : buffer.convertString(rawPosition),
1708
- value: new DataView(buffer.buffer).getFloat64((position + 3) << 2, true)
1709
- };
1710
- },
1711
- function literalRegExp(position, buffer) {
1712
- const flags = buffer.convertString(buffer[position + 2]);
1713
- const pattern = buffer.convertString(buffer[position + 3]);
1714
- return {
1715
- type: 'Literal',
1716
- start: buffer[position],
1717
- end: buffer[position + 1],
1718
- raw: `/${pattern}/${flags}`,
1719
- regex: { flags, pattern },
1720
- value: new RegExp(pattern, flags)
1721
- };
1722
- },
1723
- function literalString(position, buffer) {
1724
- const rawPosition = buffer[position + 3];
1725
- return {
1726
- type: 'Literal',
1727
- start: buffer[position],
1728
- end: buffer[position + 1],
1729
- value: buffer.convertString(buffer[position + 2]),
1730
- raw: rawPosition === 0 ? undefined : buffer.convertString(rawPosition)
1731
- };
1732
- },
1733
- function logicalExpression(position, buffer) {
1734
- return {
1735
- type: 'LogicalExpression',
1736
- start: buffer[position],
1737
- end: buffer[position + 1],
1738
- operator: FIXED_STRINGS[buffer[position + 2]],
1739
- left: convertNode(buffer[position + 3], buffer),
1740
- right: convertNode(buffer[position + 4], buffer)
1741
- };
1742
- },
1743
- function memberExpression(position, buffer) {
1744
- const flags = buffer[position + 2];
1745
- return {
1746
- type: 'MemberExpression',
1747
- start: buffer[position],
1748
- end: buffer[position + 1],
1749
- computed: (flags & 1) === 1,
1750
- optional: (flags & 2) === 2,
1751
- object: convertNode(buffer[position + 3], buffer),
1752
- property: convertNode(buffer[position + 4], buffer)
1753
- };
1754
- },
1755
- function metaProperty(position, buffer) {
1756
- return {
1757
- type: 'MetaProperty',
1758
- start: buffer[position],
1759
- end: buffer[position + 1],
1760
- meta: convertNode(buffer[position + 2], buffer),
1761
- property: convertNode(buffer[position + 3], buffer)
1762
- };
1763
- },
1764
- function methodDefinition(position, buffer) {
1765
- const flags = buffer[position + 2];
1766
- return {
1767
- type: 'MethodDefinition',
1768
- start: buffer[position],
1769
- end: buffer[position + 1],
1770
- static: (flags & 1) === 1,
1771
- computed: (flags & 2) === 2,
1772
- decorators: convertNodeList(buffer[position + 3], buffer),
1773
- key: convertNode(buffer[position + 4], buffer),
1774
- value: convertNode(buffer[position + 5], buffer),
1775
- kind: FIXED_STRINGS[buffer[position + 6]]
1776
- };
1777
- },
1778
- function newExpression(position, buffer) {
1779
- const annotations = convertAnnotations(buffer[position + 2], buffer);
1780
- return {
1781
- type: 'NewExpression',
1782
- start: buffer[position],
1783
- end: buffer[position + 1],
1784
- ...(annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {}),
1785
- callee: convertNode(buffer[position + 3], buffer),
1786
- arguments: convertNodeList(buffer[position + 4], buffer)
1787
- };
1788
- },
1789
- function objectExpression(position, buffer) {
1790
- return {
1791
- type: 'ObjectExpression',
1792
- start: buffer[position],
1793
- end: buffer[position + 1],
1794
- properties: convertNodeList(buffer[position + 2], buffer)
1795
- };
1796
- },
1797
- function objectPattern(position, buffer) {
1798
- return {
1799
- type: 'ObjectPattern',
1800
- start: buffer[position],
1801
- end: buffer[position + 1],
1802
- properties: convertNodeList(buffer[position + 2], buffer)
1803
- };
1804
- },
1805
- function privateIdentifier(position, buffer) {
1806
- return {
1807
- type: 'PrivateIdentifier',
1808
- start: buffer[position],
1809
- end: buffer[position + 1],
1810
- name: buffer.convertString(buffer[position + 2])
1811
- };
1812
- },
1813
- function program(position, buffer) {
1814
- const invalidAnnotations = convertAnnotations(buffer[position + 3], buffer);
1815
- return {
1816
- type: 'Program',
1817
- start: buffer[position],
1818
- end: buffer[position + 1],
1819
- body: convertNodeList(buffer[position + 2], buffer),
1820
- ...(invalidAnnotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: invalidAnnotations } : {}),
1821
- sourceType: 'module'
1822
- };
1823
- },
1824
- function property(position, buffer) {
1825
- const flags = buffer[position + 2];
1826
- const keyPosition = buffer[position + 3];
1827
- const value = convertNode(buffer[position + 4], buffer);
1828
- return {
1829
- type: 'Property',
1830
- start: buffer[position],
1831
- end: buffer[position + 1],
1832
- method: (flags & 1) === 1,
1833
- shorthand: (flags & 2) === 2,
1834
- computed: (flags & 4) === 4,
1835
- key: keyPosition === 0 ? { ...value } : convertNode(keyPosition, buffer),
1836
- value,
1837
- kind: FIXED_STRINGS[buffer[position + 5]]
1838
- };
1839
- },
1840
- function propertyDefinition(position, buffer) {
1841
- const flags = buffer[position + 2];
1842
- const valuePosition = buffer[position + 5];
1843
- return {
1844
- type: 'PropertyDefinition',
1845
- start: buffer[position],
1846
- end: buffer[position + 1],
1847
- static: (flags & 1) === 1,
1848
- computed: (flags & 2) === 2,
1849
- decorators: convertNodeList(buffer[position + 3], buffer),
1850
- key: convertNode(buffer[position + 4], buffer),
1851
- value: valuePosition === 0 ? null : convertNode(valuePosition, buffer)
1852
- };
1853
- },
1854
- function restElement(position, buffer) {
1855
- return {
1856
- type: 'RestElement',
1857
- start: buffer[position],
1858
- end: buffer[position + 1],
1859
- argument: convertNode(buffer[position + 2], buffer)
1860
- };
1861
- },
1862
- function returnStatement(position, buffer) {
1863
- const argumentPosition = buffer[position + 2];
1864
- return {
1865
- type: 'ReturnStatement',
1866
- start: buffer[position],
1867
- end: buffer[position + 1],
1868
- argument: argumentPosition === 0 ? null : convertNode(argumentPosition, buffer)
1869
- };
1870
- },
1871
- function sequenceExpression(position, buffer) {
1872
- return {
1873
- type: 'SequenceExpression',
1874
- start: buffer[position],
1875
- end: buffer[position + 1],
1876
- expressions: convertNodeList(buffer[position + 2], buffer)
1877
- };
1878
- },
1879
- function spreadElement(position, buffer) {
1880
- return {
1881
- type: 'SpreadElement',
1882
- start: buffer[position],
1883
- end: buffer[position + 1],
1884
- argument: convertNode(buffer[position + 2], buffer)
1885
- };
1886
- },
1887
- function staticBlock(position, buffer) {
1888
- return {
1889
- type: 'StaticBlock',
1890
- start: buffer[position],
1891
- end: buffer[position + 1],
1892
- body: convertNodeList(buffer[position + 2], buffer)
1893
- };
1894
- },
1895
- function superElement(position, buffer) {
1896
- return {
1897
- type: 'Super',
1898
- start: buffer[position],
1899
- end: buffer[position + 1]
1900
- };
1901
- },
1902
- function switchCase(position, buffer) {
1903
- const testPosition = buffer[position + 2];
1904
- return {
1905
- type: 'SwitchCase',
1906
- start: buffer[position],
1907
- end: buffer[position + 1],
1908
- test: testPosition === 0 ? null : convertNode(testPosition, buffer),
1909
- consequent: convertNodeList(buffer[position + 3], buffer)
1910
- };
1911
- },
1912
- function switchStatement(position, buffer) {
1913
- return {
1914
- type: 'SwitchStatement',
1915
- start: buffer[position],
1916
- end: buffer[position + 1],
1917
- discriminant: convertNode(buffer[position + 2], buffer),
1918
- cases: convertNodeList(buffer[position + 3], buffer)
1919
- };
1920
- },
1921
- function taggedTemplateExpression(position, buffer) {
1922
- return {
1923
- type: 'TaggedTemplateExpression',
1924
- start: buffer[position],
1925
- end: buffer[position + 1],
1926
- tag: convertNode(buffer[position + 2], buffer),
1927
- quasi: convertNode(buffer[position + 3], buffer)
1928
- };
1929
- },
1930
- function templateElement(position, buffer) {
1931
- const flags = buffer[position + 2];
1932
- const cookedPosition = buffer[position + 3];
1933
- const cooked = cookedPosition === 0 ? undefined : buffer.convertString(cookedPosition);
1934
- const raw = buffer.convertString(buffer[position + 4]);
1935
- return {
1936
- type: 'TemplateElement',
1937
- start: buffer[position],
1938
- end: buffer[position + 1],
1939
- tail: (flags & 1) === 1,
1940
- value: { cooked, raw }
1941
- };
1942
- },
1943
- function templateLiteral(position, buffer) {
1944
- return {
1945
- type: 'TemplateLiteral',
1946
- start: buffer[position],
1947
- end: buffer[position + 1],
1948
- quasis: convertNodeList(buffer[position + 2], buffer),
1949
- expressions: convertNodeList(buffer[position + 3], buffer)
1950
- };
1951
- },
1952
- function thisExpression(position, buffer) {
1953
- return {
1954
- type: 'ThisExpression',
1955
- start: buffer[position],
1956
- end: buffer[position + 1]
1957
- };
1958
- },
1959
- function throwStatement(position, buffer) {
1960
- return {
1961
- type: 'ThrowStatement',
1962
- start: buffer[position],
1963
- end: buffer[position + 1],
1964
- argument: convertNode(buffer[position + 2], buffer)
1965
- };
1966
- },
1967
- function tryStatement(position, buffer) {
1968
- const handlerPosition = buffer[position + 3];
1969
- const finalizerPosition = buffer[position + 4];
1970
- return {
1971
- type: 'TryStatement',
1972
- start: buffer[position],
1973
- end: buffer[position + 1],
1974
- block: convertNode(buffer[position + 2], buffer),
1975
- handler: handlerPosition === 0 ? null : convertNode(handlerPosition, buffer),
1976
- finalizer: finalizerPosition === 0 ? null : convertNode(finalizerPosition, buffer)
1977
- };
1978
- },
1979
- function unaryExpression(position, buffer) {
1980
- return {
1981
- type: 'UnaryExpression',
1982
- start: buffer[position],
1983
- end: buffer[position + 1],
1984
- operator: FIXED_STRINGS[buffer[position + 2]],
1985
- argument: convertNode(buffer[position + 3], buffer),
1986
- prefix: true
1987
- };
1988
- },
1989
- function updateExpression(position, buffer) {
1990
- const flags = buffer[position + 2];
1991
- return {
1992
- type: 'UpdateExpression',
1993
- start: buffer[position],
1994
- end: buffer[position + 1],
1995
- prefix: (flags & 1) === 1,
1996
- operator: FIXED_STRINGS[buffer[position + 3]],
1997
- argument: convertNode(buffer[position + 4], buffer)
1998
- };
1999
- },
2000
- function variableDeclaration(position, buffer) {
2001
- return {
2002
- type: 'VariableDeclaration',
2003
- start: buffer[position],
2004
- end: buffer[position + 1],
2005
- kind: FIXED_STRINGS[buffer[position + 2]],
2006
- declarations: convertNodeList(buffer[position + 3], buffer)
2007
- };
2008
- },
2009
- function variableDeclarator(position, buffer) {
2010
- const initPosition = buffer[position + 3];
2011
- return {
2012
- type: 'VariableDeclarator',
2013
- start: buffer[position],
2014
- end: buffer[position + 1],
2015
- id: convertNode(buffer[position + 2], buffer),
2016
- init: initPosition === 0 ? null : convertNode(initPosition, buffer)
2017
- };
2018
- },
2019
- function whileStatement(position, buffer) {
2020
- return {
2021
- type: 'WhileStatement',
2022
- start: buffer[position],
2023
- end: buffer[position + 1],
2024
- test: convertNode(buffer[position + 2], buffer),
2025
- body: convertNode(buffer[position + 3], buffer)
2026
- };
2027
- },
2028
- function yieldExpression(position, buffer) {
2029
- const flags = buffer[position + 2];
2030
- const argumentPosition = buffer[position + 3];
2031
- return {
2032
- type: 'YieldExpression',
2033
- start: buffer[position],
2034
- end: buffer[position + 1],
2035
- delegate: (flags & 1) === 1,
2036
- argument: argumentPosition === 0 ? null : convertNode(argumentPosition, buffer)
2037
- };
2038
- }
2039
- ];
2040
- function convertNode(position, buffer) {
2041
- const nodeType = buffer[position];
2042
- const converter = nodeConverters[nodeType];
2043
- /* istanbul ignore if: This should never be executed but is a safeguard against faulty buffers */
2044
- if (!converter) {
2045
- console.trace();
2046
- throw new Error(`Unknown node type: ${nodeType}`);
2047
- }
2048
- return converter(position + 1, buffer);
2049
- }
2050
- function convertNodeList(position, buffer) {
2051
- if (position === 0)
2052
- return EMPTY_ARRAY;
2053
- const length = buffer[position++];
2054
- const list = new Array(length);
2055
- for (let index = 0; index < length; index++) {
2056
- const nodePosition = buffer[position++];
2057
- list[index] = nodePosition ? convertNode(nodePosition, buffer) : null;
2058
- }
2059
- return list;
2060
- }
2061
-
2062
- function getAstBuffer(astBuffer) {
2063
- const array = new Uint32Array(astBuffer.buffer);
2064
- let convertString;
2065
- if (typeof Buffer !== 'undefined' && astBuffer instanceof Buffer) {
2066
- convertString = (position) => {
2067
- const length = array[position++];
2068
- const bytePosition = position << 2;
2069
- return astBuffer.toString('utf8', bytePosition, bytePosition + length);
2070
- };
2071
- }
2072
- else {
2073
- const textDecoder = new TextDecoder();
2074
- convertString = (position) => {
2075
- const length = array[position++];
2076
- const bytePosition = position << 2;
2077
- return textDecoder.decode(astBuffer.subarray(bytePosition, bytePosition + length));
2078
- };
2079
- }
2080
- return Object.assign(array, { convertString });
2081
- }
2082
-
2083
- const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(parse(input, allowReturnOutsideFunction, jsx)));
2084
- const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
2085
-
2086
- export { ANNOTATION_KEY, ArrowFunctionExpression, AwaitExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, FunctionExpression, INVALID_ANNOTATION_KEY, Identifier, ImportExpression, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, MemberExpression, ObjectExpression, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingEntryExport, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };