@socialgen_user/socialgen 0.0.0-stage → 2.0.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 (655) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/CM9bCtzQ.js +1 -0
  3. package/.output/public/_nuxt/CQBXt-Xj.js +4 -0
  4. package/.output/public/_nuxt/DGzMDps5.js +1 -0
  5. package/.output/public/_nuxt/DKdpYrB7.js +1 -0
  6. package/.output/public/_nuxt/DoO7LZEh.js +1 -0
  7. package/.output/public/_nuxt/NcMxVlo_.js +1 -0
  8. package/.output/public/_nuxt/_LypH0D7.js +1 -0
  9. package/.output/public/_nuxt/_mode_.XsuGEG0A.css +1 -0
  10. package/.output/public/_nuxt/builds/latest.json +1 -0
  11. package/.output/public/_nuxt/builds/meta/a8a06f55-e1a4-4d58-a8ac-5c8f3e91d730.json +1 -0
  12. package/.output/public/_nuxt/error-404.DL_4WIao.css +1 -0
  13. package/.output/public/_nuxt/error-500.I1Dtv2V5.css +1 -0
  14. package/.output/public/_nuxt/pages.Df3hoeGN.css +1 -0
  15. package/.output/public/audio/cyber_future_tech.mp3 +0 -0
  16. package/.output/public/audio/dark_phonk_pulse.mp3 +0 -0
  17. package/.output/public/audio/deep_finance_groove.mp3 +0 -0
  18. package/.output/public/audio/lofi_viral_study.mp3 +0 -0
  19. package/.output/public/audio/motivation_cinematic.mp3 +0 -0
  20. package/.output/public/videos/cyber_blue.mp4 +0 -0
  21. package/.output/public/videos/cyber_matrix_stream.mp4 +0 -0
  22. package/.output/public/videos/cyber_pulse.mp4 +0 -0
  23. package/.output/public/videos/dark_luxury_particles.mp4 +0 -0
  24. package/.output/public/videos/default_bg.mp4 +0 -0
  25. package/.output/public/videos/emerald_flow.mp4 +0 -0
  26. package/.output/public/videos/financial_pulse_flow.mp4 +0 -0
  27. package/.output/public/videos/neon_cyber_grid.mp4 +0 -0
  28. package/.output/server/chunks/_/error-500.mjs +19 -0
  29. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  30. package/.output/server/chunks/_/nitro.mjs +5712 -0
  31. package/.output/server/chunks/_/nitro.mjs.map +1 -0
  32. package/.output/server/chunks/_/storage.mjs +44 -0
  33. package/.output/server/chunks/_/storage.mjs.map +1 -0
  34. package/.output/server/chunks/_/topicMatrix.mjs +147 -0
  35. package/.output/server/chunks/_/topicMatrix.mjs.map +1 -0
  36. package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs +399 -0
  37. package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs.map +1 -0
  38. package/.output/server/chunks/build/_mode_-MljTmkD8.mjs +65 -0
  39. package/.output/server/chunks/build/_mode_-MljTmkD8.mjs.map +1 -0
  40. package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs +8 -0
  41. package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs.map +1 -0
  42. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  43. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  44. package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs +8 -0
  45. package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs.map +1 -0
  46. package/.output/server/chunks/build/error-404-D7pndyXD.mjs +403 -0
  47. package/.output/server/chunks/build/error-404-D7pndyXD.mjs.map +1 -0
  48. package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs +8 -0
  49. package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs.map +1 -0
  50. package/.output/server/chunks/build/error-500-D0twnCBi.mjs +76 -0
  51. package/.output/server/chunks/build/error-500-D0twnCBi.mjs.map +1 -0
  52. package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs +8 -0
  53. package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs.map +1 -0
  54. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs +8 -0
  55. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs.map +1 -0
  56. package/.output/server/chunks/build/pages-BIiRN2UV.mjs +599 -0
  57. package/.output/server/chunks/build/pages-BIiRN2UV.mjs.map +1 -0
  58. package/.output/server/chunks/build/server.mjs +1115 -0
  59. package/.output/server/chunks/build/server.mjs.map +1 -0
  60. package/.output/server/chunks/build/styles.mjs +11 -0
  61. package/.output/server/chunks/build/styles.mjs.map +1 -0
  62. package/.output/server/chunks/build/v3-CmUYmHkx.mjs +22 -0
  63. package/.output/server/chunks/build/v3-CmUYmHkx.mjs.map +1 -0
  64. package/.output/server/chunks/routes/api/auto-topic.post.mjs +263 -0
  65. package/.output/server/chunks/routes/api/auto-topic.post.mjs.map +1 -0
  66. package/.output/server/chunks/routes/api/copy-prompt.get.mjs +125 -0
  67. package/.output/server/chunks/routes/api/copy-prompt.get.mjs.map +1 -0
  68. package/.output/server/chunks/routes/api/download.get.mjs +35 -0
  69. package/.output/server/chunks/routes/api/download.get.mjs.map +1 -0
  70. package/.output/server/chunks/routes/api/files/_...path_.get.mjs +36 -0
  71. package/.output/server/chunks/routes/api/files/_...path_.get.mjs.map +1 -0
  72. package/.output/server/chunks/routes/api/generate.post.mjs +441 -0
  73. package/.output/server/chunks/routes/api/generate.post.mjs.map +1 -0
  74. package/.output/server/chunks/routes/api/media.get.mjs +48 -0
  75. package/.output/server/chunks/routes/api/media.get.mjs.map +1 -0
  76. package/.output/server/chunks/routes/api/open-folder.post.mjs +29 -0
  77. package/.output/server/chunks/routes/api/open-folder.post.mjs.map +1 -0
  78. package/.output/server/chunks/routes/api/render-data.get.mjs +34 -0
  79. package/.output/server/chunks/routes/api/render-data.get.mjs.map +1 -0
  80. package/.output/server/chunks/routes/api/status.get.mjs +26 -0
  81. package/.output/server/chunks/routes/api/status.get.mjs.map +1 -0
  82. package/.output/server/chunks/routes/api/upload-media.post.mjs +75 -0
  83. package/.output/server/chunks/routes/api/upload-media.post.mjs.map +1 -0
  84. package/.output/server/chunks/routes/renderer.mjs +462 -0
  85. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  86. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  87. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  88. package/.output/server/index.mjs +39 -0
  89. package/.output/server/index.mjs.map +1 -0
  90. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
  91. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
  92. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
  93. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
  94. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
  95. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
  96. package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
  97. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode-codepoint.js +77 -0
  98. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode.js +568 -0
  99. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-html.js +7 -0
  100. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-xml.js +7 -0
  101. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/bin-trie-flags.js +21 -0
  102. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/decode-shared.js +31 -0
  103. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/package.json +3 -0
  104. package/.output/server/node_modules/.nitro/entities@7.0.1/package.json +120 -0
  105. package/.output/server/node_modules/.nitro/minimatch@5.1.9/lib/path.js +4 -0
  106. package/.output/server/node_modules/.nitro/minimatch@5.1.9/minimatch.js +996 -0
  107. package/.output/server/node_modules/.nitro/minimatch@5.1.9/package.json +35 -0
  108. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/assert-valid-pattern.js +14 -0
  109. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/ast.js +747 -0
  110. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/brace-expressions.js +152 -0
  111. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/escape.js +22 -0
  112. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/index.js +1023 -0
  113. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/package.json +3 -0
  114. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/unescape.js +24 -0
  115. package/.output/server/node_modules/.nitro/minimatch@9.0.9/package.json +82 -0
  116. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_duplex.js +131 -0
  117. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_passthrough.js +47 -0
  118. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_readable.js +1019 -0
  119. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_transform.js +214 -0
  120. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_writable.js +685 -0
  121. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/BufferList.js +78 -0
  122. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/destroy.js +84 -0
  123. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/stream.js +1 -0
  124. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/package.json +52 -0
  125. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/passthrough.js +1 -0
  126. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/readable.js +19 -0
  127. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/shims/process.js +19 -0
  128. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/add-abort-signal.js +52 -0
  129. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/buffer_list.js +157 -0
  130. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/compose.js +194 -0
  131. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/destroy.js +290 -0
  132. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplex.js +143 -0
  133. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplexify.js +378 -0
  134. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/end-of-stream.js +286 -0
  135. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/from.js +98 -0
  136. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/legacy.js +94 -0
  137. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/operators.js +457 -0
  138. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/passthrough.js +39 -0
  139. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/pipeline.js +471 -0
  140. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/readable.js +1290 -0
  141. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/state.js +39 -0
  142. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/transform.js +180 -0
  143. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/utils.js +327 -0
  144. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/writable.js +819 -0
  145. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/validators.js +530 -0
  146. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/errors.js +343 -0
  147. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/index.js +65 -0
  148. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/primordials.js +124 -0
  149. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util/inspect.js +55 -0
  150. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util.js +148 -0
  151. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream/promises.js +43 -0
  152. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream.js +143 -0
  153. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/package.json +89 -0
  154. package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/index.js +62 -0
  155. package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/package.json +37 -0
  156. package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/index.js +65 -0
  157. package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/package.json +51 -0
  158. package/.output/server/node_modules/.nitro/string_decoder@1.1.1/lib/string_decoder.js +296 -0
  159. package/.output/server/node_modules/.nitro/string_decoder@1.1.1/package.json +31 -0
  160. package/.output/server/node_modules/.nitro/string_decoder@1.3.0/lib/string_decoder.js +296 -0
  161. package/.output/server/node_modules/.nitro/string_decoder@1.3.0/package.json +34 -0
  162. package/.output/server/node_modules/@babel/parser/lib/index.js +14990 -0
  163. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  164. package/.output/server/node_modules/@google/genai/dist/node/index.mjs +32052 -0
  165. package/.output/server/node_modules/@google/genai/package.json +175 -0
  166. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6806 -0
  167. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  168. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
  169. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  170. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1460 -0
  171. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  172. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  173. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  174. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  175. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  176. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  177. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  178. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  179. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  180. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  181. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  182. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  183. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  184. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  185. package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  186. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1937 -0
  187. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  188. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7260 -0
  189. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  190. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1932 -0
  191. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  192. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
  193. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  194. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +657 -0
  195. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  196. package/.output/server/node_modules/abort-controller/dist/abort-controller.js +127 -0
  197. package/.output/server/node_modules/abort-controller/package.json +97 -0
  198. package/.output/server/node_modules/agent-base/dist/helpers.js +66 -0
  199. package/.output/server/node_modules/agent-base/dist/index.js +178 -0
  200. package/.output/server/node_modules/agent-base/package.json +46 -0
  201. package/.output/server/node_modules/archiver/index.js +84 -0
  202. package/.output/server/node_modules/archiver/lib/core.js +974 -0
  203. package/.output/server/node_modules/archiver/lib/error.js +40 -0
  204. package/.output/server/node_modules/archiver/lib/plugins/json.js +110 -0
  205. package/.output/server/node_modules/archiver/lib/plugins/tar.js +167 -0
  206. package/.output/server/node_modules/archiver/lib/plugins/zip.js +120 -0
  207. package/.output/server/node_modules/archiver/package.json +60 -0
  208. package/.output/server/node_modules/archiver-utils/file.js +209 -0
  209. package/.output/server/node_modules/archiver-utils/index.js +155 -0
  210. package/.output/server/node_modules/archiver-utils/package.json +48 -0
  211. package/.output/server/node_modules/async/dist/async.js +6061 -0
  212. package/.output/server/node_modules/async/package.json +75 -0
  213. package/.output/server/node_modules/b4a/index.js +193 -0
  214. package/.output/server/node_modules/b4a/package.json +54 -0
  215. package/.output/server/node_modules/balanced-match/index.js +62 -0
  216. package/.output/server/node_modules/balanced-match/package.json +48 -0
  217. package/.output/server/node_modules/base64-js/index.js +150 -0
  218. package/.output/server/node_modules/base64-js/package.json +47 -0
  219. package/.output/server/node_modules/bignumber.js/bignumber.js +2922 -0
  220. package/.output/server/node_modules/bignumber.js/package.json +60 -0
  221. package/.output/server/node_modules/brace-expansion/index.js +633 -0
  222. package/.output/server/node_modules/brace-expansion/package.json +52 -0
  223. package/.output/server/node_modules/buffer-crc32/dist/index.cjs +306 -0
  224. package/.output/server/node_modules/buffer-crc32/package.json +54 -0
  225. package/.output/server/node_modules/buffer-equal-constant-time/index.js +41 -0
  226. package/.output/server/node_modules/buffer-equal-constant-time/package.json +21 -0
  227. package/.output/server/node_modules/compress-commons/lib/archivers/archive-entry.js +16 -0
  228. package/.output/server/node_modules/compress-commons/lib/archivers/archive-output-stream.js +118 -0
  229. package/.output/server/node_modules/compress-commons/lib/archivers/zip/constants.js +71 -0
  230. package/.output/server/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js +101 -0
  231. package/.output/server/node_modules/compress-commons/lib/archivers/zip/unix-stat.js +53 -0
  232. package/.output/server/node_modules/compress-commons/lib/archivers/zip/util.js +74 -0
  233. package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js +413 -0
  234. package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js +437 -0
  235. package/.output/server/node_modules/compress-commons/lib/compress-commons.js +13 -0
  236. package/.output/server/node_modules/compress-commons/lib/util/index.js +27 -0
  237. package/.output/server/node_modules/compress-commons/package.json +46 -0
  238. package/.output/server/node_modules/core-util-is/lib/util.js +107 -0
  239. package/.output/server/node_modules/core-util-is/package.json +38 -0
  240. package/.output/server/node_modules/crc-32/crc32.js +115 -0
  241. package/.output/server/node_modules/crc-32/package.json +67 -0
  242. package/.output/server/node_modules/crc32-stream/lib/crc32-stream.js +48 -0
  243. package/.output/server/node_modules/crc32-stream/lib/deflate-crc32-stream.js +62 -0
  244. package/.output/server/node_modules/crc32-stream/lib/index.js +14 -0
  245. package/.output/server/node_modules/crc32-stream/package.json +45 -0
  246. package/.output/server/node_modules/data-uri-to-buffer/dist/index.js +53 -0
  247. package/.output/server/node_modules/data-uri-to-buffer/package.json +62 -0
  248. package/.output/server/node_modules/debug/package.json +64 -0
  249. package/.output/server/node_modules/debug/src/browser.js +272 -0
  250. package/.output/server/node_modules/debug/src/common.js +292 -0
  251. package/.output/server/node_modules/debug/src/index.js +10 -0
  252. package/.output/server/node_modules/debug/src/node.js +263 -0
  253. package/.output/server/node_modules/devalue/index.js +17 -0
  254. package/.output/server/node_modules/devalue/package.json +39 -0
  255. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  256. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  257. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  258. package/.output/server/node_modules/devalue/src/parse.js +279 -0
  259. package/.output/server/node_modules/devalue/src/stringify.js +433 -0
  260. package/.output/server/node_modules/devalue/src/uneval.js +698 -0
  261. package/.output/server/node_modules/devalue/src/utils.js +190 -0
  262. package/.output/server/node_modules/ecdsa-sig-formatter/package.json +46 -0
  263. package/.output/server/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  264. package/.output/server/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  265. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  266. package/.output/server/node_modules/estree-walker/package.json +37 -0
  267. package/.output/server/node_modules/event-target-shim/dist/event-target-shim.js +871 -0
  268. package/.output/server/node_modules/event-target-shim/package.json +82 -0
  269. package/.output/server/node_modules/events-universal/default.js +1 -0
  270. package/.output/server/node_modules/events-universal/package.json +39 -0
  271. package/.output/server/node_modules/extend/index.js +117 -0
  272. package/.output/server/node_modules/extend/package.json +42 -0
  273. package/.output/server/node_modules/fast-fifo/fixed-size.js +39 -0
  274. package/.output/server/node_modules/fast-fifo/index.js +48 -0
  275. package/.output/server/node_modules/fast-fifo/package.json +28 -0
  276. package/.output/server/node_modules/fetch-blob/file.js +49 -0
  277. package/.output/server/node_modules/fetch-blob/from.js +100 -0
  278. package/.output/server/node_modules/fetch-blob/index.js +250 -0
  279. package/.output/server/node_modules/fetch-blob/package.json +56 -0
  280. package/.output/server/node_modules/fetch-blob/streams.cjs +51 -0
  281. package/.output/server/node_modules/formdata-polyfill/esm.min.js +40 -0
  282. package/.output/server/node_modules/formdata-polyfill/package.json +50 -0
  283. package/.output/server/node_modules/gaxios/build/cjs/src/common.js +311 -0
  284. package/.output/server/node_modules/gaxios/build/cjs/src/gaxios.js +564 -0
  285. package/.output/server/node_modules/gaxios/build/cjs/src/index.js +48 -0
  286. package/.output/server/node_modules/gaxios/build/cjs/src/interceptor.js +22 -0
  287. package/.output/server/node_modules/gaxios/build/cjs/src/retry.js +165 -0
  288. package/.output/server/node_modules/gaxios/build/cjs/src/util.cjs +16 -0
  289. package/.output/server/node_modules/gaxios/package.json +105 -0
  290. package/.output/server/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
  291. package/.output/server/node_modules/gcp-metadata/build/src/index.js +402 -0
  292. package/.output/server/node_modules/gcp-metadata/package.json +77 -0
  293. package/.output/server/node_modules/glob/dist/commonjs/glob.js +247 -0
  294. package/.output/server/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  295. package/.output/server/node_modules/glob/dist/commonjs/ignore.js +119 -0
  296. package/.output/server/node_modules/glob/dist/commonjs/index.js +68 -0
  297. package/.output/server/node_modules/glob/dist/commonjs/package.json +3 -0
  298. package/.output/server/node_modules/glob/dist/commonjs/pattern.js +219 -0
  299. package/.output/server/node_modules/glob/dist/commonjs/processor.js +301 -0
  300. package/.output/server/node_modules/glob/dist/commonjs/walker.js +387 -0
  301. package/.output/server/node_modules/glob/package.json +99 -0
  302. package/.output/server/node_modules/google-auth-library/build/src/auth/authclient.js +286 -0
  303. package/.output/server/node_modules/google-auth-library/build/src/auth/awsclient.js +154 -0
  304. package/.output/server/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +213 -0
  305. package/.output/server/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +477 -0
  306. package/.output/server/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js +223 -0
  307. package/.output/server/node_modules/google-auth-library/build/src/auth/computeclient.js +118 -0
  308. package/.output/server/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +199 -0
  309. package/.output/server/node_modules/google-auth-library/build/src/auth/downscopedclient.js +273 -0
  310. package/.output/server/node_modules/google-auth-library/build/src/auth/envDetect.js +97 -0
  311. package/.output/server/node_modules/google-auth-library/build/src/auth/executable-response.js +178 -0
  312. package/.output/server/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +233 -0
  313. package/.output/server/node_modules/google-auth-library/build/src/auth/externalclient.js +68 -0
  314. package/.output/server/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +84 -0
  315. package/.output/server/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
  316. package/.output/server/node_modules/google-auth-library/build/src/auth/googleauth.js +921 -0
  317. package/.output/server/node_modules/google-auth-library/build/src/auth/iam.js +44 -0
  318. package/.output/server/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +131 -0
  319. package/.output/server/node_modules/google-auth-library/build/src/auth/idtokenclient.js +56 -0
  320. package/.output/server/node_modules/google-auth-library/build/src/auth/impersonated.js +197 -0
  321. package/.output/server/node_modules/google-auth-library/build/src/auth/jwtaccess.js +201 -0
  322. package/.output/server/node_modules/google-auth-library/build/src/auth/jwtclient.js +301 -0
  323. package/.output/server/node_modules/google-auth-library/build/src/auth/loginticket.js +60 -0
  324. package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2client.js +820 -0
  325. package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2common.js +189 -0
  326. package/.output/server/node_modules/google-auth-library/build/src/auth/passthrough.js +60 -0
  327. package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +220 -0
  328. package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +174 -0
  329. package/.output/server/node_modules/google-auth-library/build/src/auth/refreshclient.js +160 -0
  330. package/.output/server/node_modules/google-auth-library/build/src/auth/stscredentials.js +107 -0
  331. package/.output/server/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +71 -0
  332. package/.output/server/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +127 -0
  333. package/.output/server/node_modules/google-auth-library/build/src/crypto/crypto.js +54 -0
  334. package/.output/server/node_modules/google-auth-library/build/src/crypto/node/crypto.js +88 -0
  335. package/.output/server/node_modules/google-auth-library/build/src/crypto/shared.js +32 -0
  336. package/.output/server/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js +25 -0
  337. package/.output/server/node_modules/google-auth-library/build/src/gtoken/getCredentials.js +132 -0
  338. package/.output/server/node_modules/google-auth-library/build/src/gtoken/getToken.js +66 -0
  339. package/.output/server/node_modules/google-auth-library/build/src/gtoken/googleToken.js +125 -0
  340. package/.output/server/node_modules/google-auth-library/build/src/gtoken/jwsSign.js +54 -0
  341. package/.output/server/node_modules/google-auth-library/build/src/gtoken/revokeToken.js +34 -0
  342. package/.output/server/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js +97 -0
  343. package/.output/server/node_modules/google-auth-library/build/src/index.js +88 -0
  344. package/.output/server/node_modules/google-auth-library/build/src/shared.cjs +22 -0
  345. package/.output/server/node_modules/google-auth-library/build/src/util.js +176 -0
  346. package/.output/server/node_modules/google-auth-library/package.json +90 -0
  347. package/.output/server/node_modules/google-logging-utils/build/src/colours.js +81 -0
  348. package/.output/server/node_modules/google-logging-utils/build/src/index.js +31 -0
  349. package/.output/server/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
  350. package/.output/server/node_modules/google-logging-utils/package.json +45 -0
  351. package/.output/server/node_modules/graceful-fs/clone.js +23 -0
  352. package/.output/server/node_modules/graceful-fs/graceful-fs.js +448 -0
  353. package/.output/server/node_modules/graceful-fs/legacy-streams.js +118 -0
  354. package/.output/server/node_modules/graceful-fs/package.json +52 -0
  355. package/.output/server/node_modules/graceful-fs/polyfills.js +355 -0
  356. package/.output/server/node_modules/has-flag/index.js +8 -0
  357. package/.output/server/node_modules/has-flag/package.json +46 -0
  358. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  359. package/.output/server/node_modules/hookable/package.json +54 -0
  360. package/.output/server/node_modules/https-proxy-agent/dist/index.js +180 -0
  361. package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  362. package/.output/server/node_modules/https-proxy-agent/package.json +50 -0
  363. package/.output/server/node_modules/inherits/inherits.js +9 -0
  364. package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
  365. package/.output/server/node_modules/inherits/package.json +29 -0
  366. package/.output/server/node_modules/is-stream/index.js +28 -0
  367. package/.output/server/node_modules/is-stream/package.json +42 -0
  368. package/.output/server/node_modules/isarray/index.js +5 -0
  369. package/.output/server/node_modules/isarray/package.json +45 -0
  370. package/.output/server/node_modules/json-bigint/index.js +12 -0
  371. package/.output/server/node_modules/json-bigint/lib/parse.js +443 -0
  372. package/.output/server/node_modules/json-bigint/lib/stringify.js +384 -0
  373. package/.output/server/node_modules/json-bigint/package.json +34 -0
  374. package/.output/server/node_modules/jwa/index.js +266 -0
  375. package/.output/server/node_modules/jwa/package.json +37 -0
  376. package/.output/server/node_modules/jws/index.js +22 -0
  377. package/.output/server/node_modules/jws/lib/data-stream.js +55 -0
  378. package/.output/server/node_modules/jws/lib/sign-stream.js +83 -0
  379. package/.output/server/node_modules/jws/lib/tostring.js +10 -0
  380. package/.output/server/node_modules/jws/lib/verify-stream.js +125 -0
  381. package/.output/server/node_modules/jws/package.json +34 -0
  382. package/.output/server/node_modules/lazystream/lib/lazystream.js +54 -0
  383. package/.output/server/node_modules/lazystream/package.json +46 -0
  384. package/.output/server/node_modules/lodash/_Hash.js +32 -0
  385. package/.output/server/node_modules/lodash/_ListCache.js +32 -0
  386. package/.output/server/node_modules/lodash/_Map.js +7 -0
  387. package/.output/server/node_modules/lodash/_MapCache.js +32 -0
  388. package/.output/server/node_modules/lodash/_Set.js +7 -0
  389. package/.output/server/node_modules/lodash/_SetCache.js +27 -0
  390. package/.output/server/node_modules/lodash/_Symbol.js +6 -0
  391. package/.output/server/node_modules/lodash/_apply.js +21 -0
  392. package/.output/server/node_modules/lodash/_arrayIncludes.js +17 -0
  393. package/.output/server/node_modules/lodash/_arrayIncludesWith.js +22 -0
  394. package/.output/server/node_modules/lodash/_arrayLikeKeys.js +49 -0
  395. package/.output/server/node_modules/lodash/_arrayMap.js +21 -0
  396. package/.output/server/node_modules/lodash/_arrayPush.js +20 -0
  397. package/.output/server/node_modules/lodash/_assocIndexOf.js +21 -0
  398. package/.output/server/node_modules/lodash/_baseDifference.js +67 -0
  399. package/.output/server/node_modules/lodash/_baseFindIndex.js +24 -0
  400. package/.output/server/node_modules/lodash/_baseFlatten.js +38 -0
  401. package/.output/server/node_modules/lodash/_baseGetTag.js +28 -0
  402. package/.output/server/node_modules/lodash/_baseIndexOf.js +20 -0
  403. package/.output/server/node_modules/lodash/_baseIsArguments.js +18 -0
  404. package/.output/server/node_modules/lodash/_baseIsNaN.js +12 -0
  405. package/.output/server/node_modules/lodash/_baseIsNative.js +47 -0
  406. package/.output/server/node_modules/lodash/_baseIsTypedArray.js +60 -0
  407. package/.output/server/node_modules/lodash/_baseKeysIn.js +33 -0
  408. package/.output/server/node_modules/lodash/_baseRest.js +17 -0
  409. package/.output/server/node_modules/lodash/_baseSetToString.js +22 -0
  410. package/.output/server/node_modules/lodash/_baseTimes.js +20 -0
  411. package/.output/server/node_modules/lodash/_baseUnary.js +14 -0
  412. package/.output/server/node_modules/lodash/_baseUniq.js +72 -0
  413. package/.output/server/node_modules/lodash/_cacheHas.js +13 -0
  414. package/.output/server/node_modules/lodash/_coreJsData.js +6 -0
  415. package/.output/server/node_modules/lodash/_createSet.js +19 -0
  416. package/.output/server/node_modules/lodash/_defineProperty.js +11 -0
  417. package/.output/server/node_modules/lodash/_freeGlobal.js +4 -0
  418. package/.output/server/node_modules/lodash/_getMapData.js +18 -0
  419. package/.output/server/node_modules/lodash/_getNative.js +17 -0
  420. package/.output/server/node_modules/lodash/_getPrototype.js +6 -0
  421. package/.output/server/node_modules/lodash/_getRawTag.js +46 -0
  422. package/.output/server/node_modules/lodash/_getValue.js +13 -0
  423. package/.output/server/node_modules/lodash/_hashClear.js +15 -0
  424. package/.output/server/node_modules/lodash/_hashDelete.js +17 -0
  425. package/.output/server/node_modules/lodash/_hashGet.js +30 -0
  426. package/.output/server/node_modules/lodash/_hashHas.js +23 -0
  427. package/.output/server/node_modules/lodash/_hashSet.js +23 -0
  428. package/.output/server/node_modules/lodash/_isFlattenable.js +20 -0
  429. package/.output/server/node_modules/lodash/_isIndex.js +25 -0
  430. package/.output/server/node_modules/lodash/_isIterateeCall.js +30 -0
  431. package/.output/server/node_modules/lodash/_isKeyable.js +15 -0
  432. package/.output/server/node_modules/lodash/_isMasked.js +20 -0
  433. package/.output/server/node_modules/lodash/_isPrototype.js +18 -0
  434. package/.output/server/node_modules/lodash/_listCacheClear.js +13 -0
  435. package/.output/server/node_modules/lodash/_listCacheDelete.js +35 -0
  436. package/.output/server/node_modules/lodash/_listCacheGet.js +19 -0
  437. package/.output/server/node_modules/lodash/_listCacheHas.js +16 -0
  438. package/.output/server/node_modules/lodash/_listCacheSet.js +26 -0
  439. package/.output/server/node_modules/lodash/_mapCacheClear.js +21 -0
  440. package/.output/server/node_modules/lodash/_mapCacheDelete.js +18 -0
  441. package/.output/server/node_modules/lodash/_mapCacheGet.js +16 -0
  442. package/.output/server/node_modules/lodash/_mapCacheHas.js +16 -0
  443. package/.output/server/node_modules/lodash/_mapCacheSet.js +22 -0
  444. package/.output/server/node_modules/lodash/_nativeCreate.js +6 -0
  445. package/.output/server/node_modules/lodash/_nativeKeysIn.js +20 -0
  446. package/.output/server/node_modules/lodash/_nodeUtil.js +30 -0
  447. package/.output/server/node_modules/lodash/_objectToString.js +22 -0
  448. package/.output/server/node_modules/lodash/_overArg.js +15 -0
  449. package/.output/server/node_modules/lodash/_overRest.js +36 -0
  450. package/.output/server/node_modules/lodash/_root.js +9 -0
  451. package/.output/server/node_modules/lodash/_setCacheAdd.js +19 -0
  452. package/.output/server/node_modules/lodash/_setCacheHas.js +14 -0
  453. package/.output/server/node_modules/lodash/_setToArray.js +18 -0
  454. package/.output/server/node_modules/lodash/_setToString.js +14 -0
  455. package/.output/server/node_modules/lodash/_shortOut.js +37 -0
  456. package/.output/server/node_modules/lodash/_strictIndexOf.js +23 -0
  457. package/.output/server/node_modules/lodash/_toSource.js +26 -0
  458. package/.output/server/node_modules/lodash/constant.js +26 -0
  459. package/.output/server/node_modules/lodash/defaults.js +64 -0
  460. package/.output/server/node_modules/lodash/difference.js +33 -0
  461. package/.output/server/node_modules/lodash/eq.js +37 -0
  462. package/.output/server/node_modules/lodash/flatten.js +22 -0
  463. package/.output/server/node_modules/lodash/identity.js +21 -0
  464. package/.output/server/node_modules/lodash/isArguments.js +36 -0
  465. package/.output/server/node_modules/lodash/isArray.js +26 -0
  466. package/.output/server/node_modules/lodash/isArrayLike.js +33 -0
  467. package/.output/server/node_modules/lodash/isArrayLikeObject.js +33 -0
  468. package/.output/server/node_modules/lodash/isBuffer.js +38 -0
  469. package/.output/server/node_modules/lodash/isFunction.js +37 -0
  470. package/.output/server/node_modules/lodash/isLength.js +35 -0
  471. package/.output/server/node_modules/lodash/isObject.js +31 -0
  472. package/.output/server/node_modules/lodash/isObjectLike.js +29 -0
  473. package/.output/server/node_modules/lodash/isPlainObject.js +62 -0
  474. package/.output/server/node_modules/lodash/isTypedArray.js +27 -0
  475. package/.output/server/node_modules/lodash/keysIn.js +32 -0
  476. package/.output/server/node_modules/lodash/noop.js +17 -0
  477. package/.output/server/node_modules/lodash/package.json +19 -0
  478. package/.output/server/node_modules/lodash/stubFalse.js +18 -0
  479. package/.output/server/node_modules/lodash/union.js +26 -0
  480. package/.output/server/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
  481. package/.output/server/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  482. package/.output/server/node_modules/lru-cache/package.json +116 -0
  483. package/.output/server/node_modules/lucide-vue-next/dist/cjs/lucide-vue-next.js +21273 -0
  484. package/.output/server/node_modules/lucide-vue-next/package.json +64 -0
  485. package/.output/server/node_modules/minipass/dist/commonjs/index.js +1038 -0
  486. package/.output/server/node_modules/minipass/dist/commonjs/package.json +3 -0
  487. package/.output/server/node_modules/minipass/package.json +77 -0
  488. package/.output/server/node_modules/ms/index.js +162 -0
  489. package/.output/server/node_modules/ms/package.json +38 -0
  490. package/.output/server/node_modules/node-domexception/index.js +16 -0
  491. package/.output/server/node_modules/node-domexception/package.json +29 -0
  492. package/.output/server/node_modules/node-fetch/package.json +131 -0
  493. package/.output/server/node_modules/node-fetch/src/body.js +397 -0
  494. package/.output/server/node_modules/node-fetch/src/errors/abort-error.js +10 -0
  495. package/.output/server/node_modules/node-fetch/src/errors/base.js +17 -0
  496. package/.output/server/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
  497. package/.output/server/node_modules/node-fetch/src/headers.js +267 -0
  498. package/.output/server/node_modules/node-fetch/src/index.js +417 -0
  499. package/.output/server/node_modules/node-fetch/src/request.js +313 -0
  500. package/.output/server/node_modules/node-fetch/src/response.js +160 -0
  501. package/.output/server/node_modules/node-fetch/src/utils/get-search.js +9 -0
  502. package/.output/server/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
  503. package/.output/server/node_modules/node-fetch/src/utils/is.js +87 -0
  504. package/.output/server/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
  505. package/.output/server/node_modules/node-fetch/src/utils/referrer.js +340 -0
  506. package/.output/server/node_modules/normalize-path/index.js +35 -0
  507. package/.output/server/node_modules/normalize-path/package.json +77 -0
  508. package/.output/server/node_modules/p-retry/index.js +85 -0
  509. package/.output/server/node_modules/p-retry/package.json +51 -0
  510. package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
  511. package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
  512. package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
  513. package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
  514. package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
  515. package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
  516. package/.output/server/node_modules/parse5/dist/index.js +42 -0
  517. package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
  518. package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
  519. package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
  520. package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
  521. package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
  522. package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
  523. package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
  524. package/.output/server/node_modules/parse5/package.json +50 -0
  525. package/.output/server/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
  526. package/.output/server/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  527. package/.output/server/node_modules/path-scurry/package.json +89 -0
  528. package/.output/server/node_modules/playwright/index.mjs +18 -0
  529. package/.output/server/node_modules/playwright/package.json +50 -0
  530. package/.output/server/node_modules/playwright-core/browsers.json +52 -0
  531. package/.output/server/node_modules/playwright-core/index.js +17 -0
  532. package/.output/server/node_modules/playwright-core/index.mjs +28 -0
  533. package/.output/server/node_modules/playwright-core/lib/bootstrap.js +149 -0
  534. package/.output/server/node_modules/playwright-core/lib/coreBundle.js +78764 -0
  535. package/.output/server/node_modules/playwright-core/lib/utilsBundle.js +92408 -0
  536. package/.output/server/node_modules/playwright-core/package.json +34 -0
  537. package/.output/server/node_modules/process/index.js +2 -0
  538. package/.output/server/node_modules/process/package.json +27 -0
  539. package/.output/server/node_modules/process-nextick-args/index.js +45 -0
  540. package/.output/server/node_modules/process-nextick-args/package.json +25 -0
  541. package/.output/server/node_modules/readdir-glob/index.js +243 -0
  542. package/.output/server/node_modules/readdir-glob/package.json +43 -0
  543. package/.output/server/node_modules/retry/index.js +1 -0
  544. package/.output/server/node_modules/retry/lib/retry.js +100 -0
  545. package/.output/server/node_modules/retry/lib/retry_operation.js +162 -0
  546. package/.output/server/node_modules/retry/package.json +36 -0
  547. package/.output/server/node_modules/source-map-js/lib/array-set.js +123 -0
  548. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +136 -0
  549. package/.output/server/node_modules/source-map-js/lib/base64.js +68 -0
  550. package/.output/server/node_modules/source-map-js/lib/binary-search.js +115 -0
  551. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +84 -0
  552. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +211 -0
  553. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1314 -0
  554. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +486 -0
  555. package/.output/server/node_modules/source-map-js/lib/source-node.js +446 -0
  556. package/.output/server/node_modules/source-map-js/lib/util.js +613 -0
  557. package/.output/server/node_modules/source-map-js/package.json +78 -0
  558. package/.output/server/node_modules/source-map-js/source-map.js +10 -0
  559. package/.output/server/node_modules/streamx/index.js +1314 -0
  560. package/.output/server/node_modules/streamx/lib/errors.js +47 -0
  561. package/.output/server/node_modules/streamx/package.json +51 -0
  562. package/.output/server/node_modules/supports-color/index.js +135 -0
  563. package/.output/server/node_modules/supports-color/package.json +53 -0
  564. package/.output/server/node_modules/tar-stream/constants.js +14 -0
  565. package/.output/server/node_modules/tar-stream/extract.js +418 -0
  566. package/.output/server/node_modules/tar-stream/headers.js +322 -0
  567. package/.output/server/node_modules/tar-stream/index.js +2 -0
  568. package/.output/server/node_modules/tar-stream/pack.js +287 -0
  569. package/.output/server/node_modules/tar-stream/package.json +50 -0
  570. package/.output/server/node_modules/text-decoder/index.js +64 -0
  571. package/.output/server/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  572. package/.output/server/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
  573. package/.output/server/node_modules/text-decoder/package.json +39 -0
  574. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  575. package/.output/server/node_modules/ufo/package.json +48 -0
  576. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  577. package/.output/server/node_modules/unhead/dist/plugins.mjs +103 -0
  578. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  579. package/.output/server/node_modules/unhead/dist/server.mjs +191 -0
  580. package/.output/server/node_modules/unhead/dist/shared/unhead.0TIQaUam.mjs +244 -0
  581. package/.output/server/node_modules/unhead/dist/shared/unhead.AtIkjM2B.mjs +166 -0
  582. package/.output/server/node_modules/unhead/dist/shared/unhead.AvDFlk_u.mjs +39 -0
  583. package/.output/server/node_modules/unhead/dist/shared/unhead.B0o2oYhg.mjs +317 -0
  584. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  585. package/.output/server/node_modules/unhead/dist/shared/unhead.ByHeIeZd.mjs +184 -0
  586. package/.output/server/node_modules/unhead/dist/shared/unhead.C-69jnXc.mjs +44 -0
  587. package/.output/server/node_modules/unhead/dist/shared/unhead.ChXiQvI8.mjs +76 -0
  588. package/.output/server/node_modules/unhead/dist/shared/unhead.DWXHYkPf.mjs +366 -0
  589. package/.output/server/node_modules/unhead/dist/shared/unhead.h_KkEIE6.mjs +196 -0
  590. package/.output/server/node_modules/unhead/dist/shared/unhead.ylJpsHyA.mjs +255 -0
  591. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  592. package/.output/server/node_modules/unhead/package.json +106 -0
  593. package/.output/server/node_modules/util-deprecate/node.js +6 -0
  594. package/.output/server/node_modules/util-deprecate/package.json +27 -0
  595. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  596. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  597. package/.output/server/node_modules/vue/index.js +7 -0
  598. package/.output/server/node_modules/vue/index.mjs +1 -0
  599. package/.output/server/node_modules/vue/package.json +112 -0
  600. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  601. package/.output/server/node_modules/vue-bundle-renderer/dist/dependencies-VCG-RX19.mjs +118 -0
  602. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +673 -0
  603. package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
  604. package/.output/server/node_modules/vue-router/dist/devtools-C3Hva4Qk.mjs +1220 -0
  605. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1561 -0
  606. package/.output/server/node_modules/vue-router/package.json +156 -0
  607. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  608. package/.output/server/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
  609. package/.output/server/node_modules/web-streams-polyfill/package.json +83 -0
  610. package/.output/server/node_modules/ws/lib/buffer-util.js +142 -0
  611. package/.output/server/node_modules/ws/lib/constants.js +19 -0
  612. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  613. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  614. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  615. package/.output/server/node_modules/ws/lib/permessage-deflate.js +530 -0
  616. package/.output/server/node_modules/ws/lib/receiver.js +751 -0
  617. package/.output/server/node_modules/ws/lib/sender.js +610 -0
  618. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  619. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  620. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  621. package/.output/server/node_modules/ws/lib/websocket-server.js +565 -0
  622. package/.output/server/node_modules/ws/lib/websocket.js +1471 -0
  623. package/.output/server/node_modules/ws/package.json +74 -0
  624. package/.output/server/node_modules/ws/wrapper.mjs +21 -0
  625. package/.output/server/node_modules/zip-stream/index.js +187 -0
  626. package/.output/server/node_modules/zip-stream/package.json +49 -0
  627. package/.output/server/node_modules/zod/index.js +4 -0
  628. package/.output/server/node_modules/zod/package.json +118 -0
  629. package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
  630. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  631. package/.output/server/node_modules/zod/v3/external.js +6 -0
  632. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  633. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  634. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  635. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  636. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  637. package/.output/server/node_modules/zod/v3/types.js +3693 -0
  638. package/.output/server/package.json +99 -0
  639. package/README.md +81 -2
  640. package/bin/cli.js +138 -0
  641. package/data/history.json +17 -0
  642. package/package.json +39 -4
  643. package/public/audio/cyber_future_tech.mp3 +0 -0
  644. package/public/audio/dark_phonk_pulse.mp3 +0 -0
  645. package/public/audio/deep_finance_groove.mp3 +0 -0
  646. package/public/audio/lofi_viral_study.mp3 +0 -0
  647. package/public/audio/motivation_cinematic.mp3 +0 -0
  648. package/public/videos/cyber_blue.mp4 +0 -0
  649. package/public/videos/cyber_matrix_stream.mp4 +0 -0
  650. package/public/videos/cyber_pulse.mp4 +0 -0
  651. package/public/videos/dark_luxury_particles.mp4 +0 -0
  652. package/public/videos/default_bg.mp4 +0 -0
  653. package/public/videos/emerald_flow.mp4 +0 -0
  654. package/public/videos/financial_pulse_flow.mp4 +0 -0
  655. package/public/videos/neon_cyber_grid.mp4 +0 -0
@@ -0,0 +1,1314 @@
1
+ /* -*- Mode: js; js-indent-level: 2; -*- */
2
+ /*
3
+ * Copyright 2011 Mozilla Foundation and contributors
4
+ * Licensed under the New BSD license. See LICENSE or:
5
+ * http://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+
8
+ var util = require('./util');
9
+ var binarySearch = require('./binary-search');
10
+ var ArraySet = require('./array-set').ArraySet;
11
+ var base64VLQ = require('./base64-vlq');
12
+ var quickSort = require('./quick-sort').quickSort;
13
+
14
+ // Upper bound for a section's `offset.line` in an indexed source map. A flat
15
+ // map spends one ';' per generated line, so a tiny indexed map with a huge
16
+ // offset.line turns into a huge amount of work and memory once its mappings
17
+ // are copied into a SourceMapGenerator (CVE-2026-93749). Ten million lines is
18
+ // far beyond any real generated file. Columns are VLQ-encoded as deltas and
19
+ // don't amplify, so they only need to be valid integers.
20
+ var MAX_SECTION_OFFSET_LINE = 1e7;
21
+
22
+ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
23
+ var sourceMap = aSourceMap;
24
+ if (typeof aSourceMap === 'string') {
25
+ sourceMap = util.parseSourceMapInput(aSourceMap);
26
+ }
27
+
28
+ return sourceMap.sections != null
29
+ ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)
30
+ : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
31
+ }
32
+
33
+ SourceMapConsumer.fromSourceMap = function (aSourceMap, aSourceMapURL) {
34
+ return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
35
+ };
36
+
37
+ /**
38
+ * The version of the source mapping spec that we are consuming.
39
+ */
40
+ SourceMapConsumer.prototype._version = 3;
41
+
42
+ // `__generatedMappings` and `__originalMappings` are arrays that hold the
43
+ // parsed mapping coordinates from the source map's "mappings" attribute. They
44
+ // are lazily instantiated, accessed via the `_generatedMappings` and
45
+ // `_originalMappings` getters respectively, and we only parse the mappings
46
+ // and create these arrays once queried for a source location. We jump through
47
+ // these hoops because there can be many thousands of mappings, and parsing
48
+ // them is expensive, so we only want to do it if we must.
49
+ //
50
+ // Each object in the arrays is of the form:
51
+ //
52
+ // {
53
+ // generatedLine: The line number in the generated code,
54
+ // generatedColumn: The column number in the generated code,
55
+ // source: The path to the original source file that generated this
56
+ // chunk of code,
57
+ // originalLine: The line number in the original source that
58
+ // corresponds to this chunk of generated code,
59
+ // originalColumn: The column number in the original source that
60
+ // corresponds to this chunk of generated code,
61
+ // name: The name of the original symbol which generated this chunk of
62
+ // code.
63
+ // }
64
+ //
65
+ // All properties except for `generatedLine` and `generatedColumn` can be
66
+ // `null`.
67
+ //
68
+ // `_generatedMappings` is ordered by the generated positions.
69
+ //
70
+ // `_originalMappings` is ordered by the original positions.
71
+
72
+ SourceMapConsumer.prototype.__generatedMappings = null;
73
+ Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
74
+ configurable: true,
75
+ enumerable: true,
76
+ get: function () {
77
+ if (!this.__generatedMappings) {
78
+ this._parseMappings(this._mappings, this.sourceRoot);
79
+ }
80
+
81
+ return this.__generatedMappings;
82
+ },
83
+ });
84
+
85
+ SourceMapConsumer.prototype.__originalMappings = null;
86
+ Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
87
+ configurable: true,
88
+ enumerable: true,
89
+ get: function () {
90
+ if (!this.__originalMappings) {
91
+ this._parseMappings(this._mappings, this.sourceRoot);
92
+ }
93
+
94
+ return this.__originalMappings;
95
+ },
96
+ });
97
+
98
+ SourceMapConsumer.prototype._charIsMappingSeparator =
99
+ function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
100
+ var c = aStr.charAt(index);
101
+ return c === ';' || c === ',';
102
+ };
103
+
104
+ /**
105
+ * Parse the mappings in a string in to a data structure which we can easily
106
+ * query (the ordered arrays in the `this.__generatedMappings` and
107
+ * `this.__originalMappings` properties).
108
+ */
109
+ SourceMapConsumer.prototype._parseMappings =
110
+ function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
111
+ throw new Error('Subclasses must implement _parseMappings');
112
+ };
113
+
114
+ SourceMapConsumer.GENERATED_ORDER = 1;
115
+ SourceMapConsumer.ORIGINAL_ORDER = 2;
116
+
117
+ SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
118
+ SourceMapConsumer.LEAST_UPPER_BOUND = 2;
119
+
120
+ /**
121
+ * Iterate over each mapping between an original source/line/column and a
122
+ * generated line/column in this source map.
123
+ *
124
+ * @param Function aCallback
125
+ * The function that is called with each mapping.
126
+ * @param Object aContext
127
+ * Optional. If specified, this object will be the value of `this` every
128
+ * time that `aCallback` is called.
129
+ * @param aOrder
130
+ * Either `SourceMapConsumer.GENERATED_ORDER` or
131
+ * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
132
+ * iterate over the mappings sorted by the generated file's line/column
133
+ * order or the original's source/line/column order, respectively. Defaults to
134
+ * `SourceMapConsumer.GENERATED_ORDER`.
135
+ */
136
+ SourceMapConsumer.prototype.eachMapping =
137
+ function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
138
+ var context = aContext || null;
139
+ var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
140
+
141
+ var mappings;
142
+ switch (order) {
143
+ case SourceMapConsumer.GENERATED_ORDER:
144
+ mappings = this._generatedMappings;
145
+ break;
146
+ case SourceMapConsumer.ORIGINAL_ORDER:
147
+ mappings = this._originalMappings;
148
+ break;
149
+ default:
150
+ throw new Error('Unknown order of iteration.');
151
+ }
152
+
153
+ var sourceRoot = this.sourceRoot;
154
+ var boundCallback = aCallback.bind(context);
155
+ var names = this._names;
156
+ var sources = this._sources;
157
+ var sourceMapURL = this._sourceMapURL;
158
+
159
+ for (var i = 0, n = mappings.length; i < n; i++) {
160
+ var mapping = mappings[i];
161
+ var source = mapping.source === null ? null : sources.at(mapping.source);
162
+ if (source !== null) {
163
+ source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
164
+ }
165
+ boundCallback({
166
+ source: source,
167
+ generatedLine: mapping.generatedLine,
168
+ generatedColumn: mapping.generatedColumn,
169
+ originalLine: mapping.originalLine,
170
+ originalColumn: mapping.originalColumn,
171
+ name: mapping.name === null ? null : names.at(mapping.name),
172
+ });
173
+ }
174
+ };
175
+
176
+ /**
177
+ * Returns all generated line and column information for the original source,
178
+ * line, and column provided. If no column is provided, returns all mappings
179
+ * corresponding to a either the line we are searching for or the next
180
+ * closest line that has any mappings. Otherwise, returns all mappings
181
+ * corresponding to the given line and either the column we are searching for
182
+ * or the next closest column that has any offsets.
183
+ *
184
+ * The only argument is an object with the following properties:
185
+ *
186
+ * - source: The filename of the original source.
187
+ * - line: The line number in the original source. The line number is 1-based.
188
+ * - column: Optional. the column number in the original source.
189
+ * The column number is 0-based.
190
+ *
191
+ * and an array of objects is returned, each with the following properties:
192
+ *
193
+ * - line: The line number in the generated source, or null. The
194
+ * line number is 1-based.
195
+ * - column: The column number in the generated source, or null.
196
+ * The column number is 0-based.
197
+ */
198
+ SourceMapConsumer.prototype.allGeneratedPositionsFor =
199
+ function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
200
+ var line = util.getArg(aArgs, 'line');
201
+
202
+ // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
203
+ // returns the index of the closest mapping less than the needle. By
204
+ // setting needle.originalColumn to 0, we thus find the last mapping for
205
+ // the given line, provided such a mapping exists.
206
+ var needle = {
207
+ source: util.getArg(aArgs, 'source'),
208
+ originalLine: line,
209
+ originalColumn: util.getArg(aArgs, 'column', 0),
210
+ };
211
+
212
+ needle.source = this._findSourceIndex(needle.source);
213
+ if (needle.source < 0) {
214
+ return [];
215
+ }
216
+
217
+ var mappings = [];
218
+
219
+ var index = this._findMapping(
220
+ needle,
221
+ this._originalMappings,
222
+ 'originalLine',
223
+ 'originalColumn',
224
+ util.compareByOriginalPositions,
225
+ binarySearch.LEAST_UPPER_BOUND
226
+ );
227
+ if (index >= 0) {
228
+ var mapping = this._originalMappings[index];
229
+
230
+ if (aArgs.column === undefined) {
231
+ var originalLine = mapping.originalLine;
232
+
233
+ // Iterate until either we run out of mappings, or we run into
234
+ // a mapping for a different source or line than the one we found.
235
+ // Since mappings are sorted, this is guaranteed to find all mappings
236
+ // for the line we found. The source check also stops the search from
237
+ // continuing into the next source's mappings when this source has
238
+ // none at or after the requested line.
239
+ while (
240
+ mapping &&
241
+ mapping.source === needle.source &&
242
+ mapping.originalLine === originalLine
243
+ ) {
244
+ mappings.push({
245
+ line: util.getArg(mapping, 'generatedLine', null),
246
+ column: util.getArg(mapping, 'generatedColumn', null),
247
+ lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null),
248
+ });
249
+
250
+ mapping = this._originalMappings[++index];
251
+ }
252
+ } else {
253
+ var originalColumn = mapping.originalColumn;
254
+
255
+ // Iterate until either we run out of mappings, or we run into
256
+ // a mapping for a different source or line than the one we were
257
+ // searching for. Since mappings are sorted, this is guaranteed to find
258
+ // all mappings for the line we are searching for.
259
+ while (
260
+ mapping &&
261
+ mapping.source === needle.source &&
262
+ mapping.originalLine === line &&
263
+ mapping.originalColumn == originalColumn
264
+ ) {
265
+ mappings.push({
266
+ line: util.getArg(mapping, 'generatedLine', null),
267
+ column: util.getArg(mapping, 'generatedColumn', null),
268
+ lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null),
269
+ });
270
+
271
+ mapping = this._originalMappings[++index];
272
+ }
273
+ }
274
+ }
275
+
276
+ return mappings;
277
+ };
278
+
279
+ exports.SourceMapConsumer = SourceMapConsumer;
280
+
281
+ /**
282
+ * A BasicSourceMapConsumer instance represents a parsed source map which we can
283
+ * query for information about the original file positions by giving it a file
284
+ * position in the generated source.
285
+ *
286
+ * The first parameter is the raw source map (either as a JSON string, or
287
+ * already parsed to an object). According to the spec, source maps have the
288
+ * following attributes:
289
+ *
290
+ * - version: Which version of the source map spec this map is following.
291
+ * - sources: An array of URLs to the original source files.
292
+ * - names: An array of identifiers which can be referrenced by individual mappings.
293
+ * - sourceRoot: Optional. The URL root from which all sources are relative.
294
+ * - sourcesContent: Optional. An array of contents of the original source files.
295
+ * - mappings: A string of base64 VLQs which contain the actual mappings.
296
+ * - file: Optional. The generated file this source map is associated with.
297
+ *
298
+ * Here is an example source map, taken from the source map spec[0]:
299
+ *
300
+ * {
301
+ * version : 3,
302
+ * file: "out.js",
303
+ * sourceRoot : "",
304
+ * sources: ["foo.js", "bar.js"],
305
+ * names: ["src", "maps", "are", "fun"],
306
+ * mappings: "AA,AB;;ABCDE;"
307
+ * }
308
+ *
309
+ * The second parameter, if given, is a string whose value is the URL
310
+ * at which the source map was found. This URL is used to compute the
311
+ * sources array.
312
+ *
313
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
314
+ */
315
+ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
316
+ var sourceMap = aSourceMap;
317
+ if (typeof aSourceMap === 'string') {
318
+ sourceMap = util.parseSourceMapInput(aSourceMap);
319
+ }
320
+
321
+ var version = util.getArg(sourceMap, 'version');
322
+ var sources = util.getArg(sourceMap, 'sources');
323
+ // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
324
+ // requires the array) to play nice here.
325
+ var names = util.getArg(sourceMap, 'names', []);
326
+ var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
327
+ var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
328
+ var mappings = util.getArg(sourceMap, 'mappings');
329
+ var file = util.getArg(sourceMap, 'file', null);
330
+
331
+ // Once again, Sass deviates from the spec and supplies the version as a
332
+ // string rather than a number, so we use loose equality checking here.
333
+ if (version != this._version) {
334
+ throw new Error('Unsupported version: ' + version);
335
+ }
336
+
337
+ if (sourceRoot) {
338
+ sourceRoot = util.normalize(sourceRoot);
339
+ }
340
+
341
+ sources = sources
342
+ .map(String)
343
+ // Some source maps produce relative source paths like "./foo.js" instead of
344
+ // "foo.js". Normalize these first so that future comparisons will succeed.
345
+ // See bugzil.la/1090768.
346
+ .map(util.normalize)
347
+ // Always ensure that absolute sources are internally stored relative to
348
+ // the source root, if the source root is absolute. Not doing this would
349
+ // be particularly problematic when the source root is a prefix of the
350
+ // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
351
+ .map(function (source) {
352
+ return sourceRoot &&
353
+ util.isAbsolute(sourceRoot) &&
354
+ util.isAbsolute(source)
355
+ ? util.relative(sourceRoot, source)
356
+ : source;
357
+ });
358
+
359
+ // Pass `true` below to allow duplicate names and sources. While source maps
360
+ // are intended to be compressed and deduplicated, the TypeScript compiler
361
+ // sometimes generates source maps with duplicates in them. See Github issue
362
+ // #72 and bugzil.la/889492.
363
+ this._names = ArraySet.fromArray(names.map(String), true);
364
+ this._sources = ArraySet.fromArray(sources, true);
365
+
366
+ this._absoluteSources = this._sources.toArray().map(function (s) {
367
+ return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
368
+ });
369
+
370
+ this.sourceRoot = sourceRoot;
371
+ this.sourcesContent = sourcesContent;
372
+ this._mappings = mappings;
373
+ this._sourceMapURL = aSourceMapURL;
374
+ this.file = file;
375
+ }
376
+
377
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
378
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
379
+
380
+ /**
381
+ * Utility function to find the index of a source. Returns -1 if not
382
+ * found.
383
+ */
384
+ BasicSourceMapConsumer.prototype._findSourceIndex = function (aSource) {
385
+ var relativeSource = aSource;
386
+ if (this.sourceRoot != null) {
387
+ relativeSource = util.relative(this.sourceRoot, relativeSource);
388
+ }
389
+
390
+ if (this._sources.has(relativeSource)) {
391
+ return this._sources.indexOf(relativeSource);
392
+ }
393
+
394
+ // Maybe aSource is an absolute URL as returned by |sources|. In
395
+ // this case we can't simply undo the transform.
396
+ var i;
397
+ for (i = 0; i < this._absoluteSources.length; ++i) {
398
+ if (this._absoluteSources[i] == aSource) {
399
+ return i;
400
+ }
401
+ }
402
+
403
+ return -1;
404
+ };
405
+
406
+ /**
407
+ * Create a BasicSourceMapConsumer from a SourceMapGenerator.
408
+ *
409
+ * @param SourceMapGenerator aSourceMap
410
+ * The source map that will be consumed.
411
+ * @param String aSourceMapURL
412
+ * The URL at which the source map can be found (optional)
413
+ * @returns BasicSourceMapConsumer
414
+ */
415
+ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(
416
+ aSourceMap,
417
+ aSourceMapURL
418
+ ) {
419
+ var smc = Object.create(BasicSourceMapConsumer.prototype);
420
+
421
+ var names = (smc._names = ArraySet.fromArray(
422
+ aSourceMap._names.toArray(),
423
+ true
424
+ ));
425
+ var sources = (smc._sources = ArraySet.fromArray(
426
+ aSourceMap._sources.toArray(),
427
+ true
428
+ ));
429
+ smc.sourceRoot = aSourceMap._sourceRoot;
430
+ smc.sourcesContent = aSourceMap._generateSourcesContent(
431
+ smc._sources.toArray(),
432
+ smc.sourceRoot
433
+ );
434
+ smc.file = aSourceMap._file;
435
+ smc._sourceMapURL = aSourceMapURL;
436
+ smc._absoluteSources = smc._sources.toArray().map(function (s) {
437
+ return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
438
+ });
439
+
440
+ // Because we are modifying the entries (by converting string sources and
441
+ // names to indices into the sources and names ArraySets), we have to make
442
+ // a copy of the entry or else bad things happen. Shared mutable state
443
+ // strikes again! See github issue #191.
444
+
445
+ var generatedMappings = aSourceMap._mappings.toArray().slice();
446
+ var destGeneratedMappings = (smc.__generatedMappings = []);
447
+ var destOriginalMappings = (smc.__originalMappings = []);
448
+
449
+ for (var i = 0, length = generatedMappings.length; i < length; i++) {
450
+ var srcMapping = generatedMappings[i];
451
+ var destMapping = new Mapping();
452
+ destMapping.generatedLine = srcMapping.generatedLine;
453
+ destMapping.generatedColumn = srcMapping.generatedColumn;
454
+
455
+ if (srcMapping.source) {
456
+ destMapping.source = sources.indexOf(srcMapping.source);
457
+ destMapping.originalLine = srcMapping.originalLine;
458
+ destMapping.originalColumn = srcMapping.originalColumn;
459
+
460
+ if (srcMapping.name) {
461
+ destMapping.name = names.indexOf(srcMapping.name);
462
+ }
463
+
464
+ destOriginalMappings.push(destMapping);
465
+ }
466
+
467
+ destGeneratedMappings.push(destMapping);
468
+ }
469
+
470
+ quickSort(smc.__originalMappings, util.compareByOriginalPositions);
471
+
472
+ return smc;
473
+ };
474
+
475
+ /**
476
+ * The version of the source mapping spec that we are consuming.
477
+ */
478
+ BasicSourceMapConsumer.prototype._version = 3;
479
+
480
+ /**
481
+ * The list of original sources.
482
+ */
483
+ Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
484
+ get: function () {
485
+ return this._absoluteSources.slice();
486
+ },
487
+ });
488
+
489
+ /**
490
+ * Provide the JIT with a nice shape / hidden class.
491
+ */
492
+ function Mapping() {
493
+ this.generatedLine = 0;
494
+ this.generatedColumn = 0;
495
+ this.source = null;
496
+ this.originalLine = null;
497
+ this.originalColumn = null;
498
+ this.name = null;
499
+ }
500
+
501
+ /**
502
+ * Parse the mappings in a string in to a data structure which we can easily
503
+ * query (the ordered arrays in the `this.__generatedMappings` and
504
+ * `this.__originalMappings` properties).
505
+ */
506
+
507
+ const compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
508
+ function sortGenerated(array, start) {
509
+ let l = array.length;
510
+ let n = array.length - start;
511
+ if (n <= 1) {
512
+ return;
513
+ } else if (n == 2) {
514
+ let a = array[start];
515
+ let b = array[start + 1];
516
+ if (compareGenerated(a, b) > 0) {
517
+ array[start] = b;
518
+ array[start + 1] = a;
519
+ }
520
+ } else if (n < 20) {
521
+ for (let i = start; i < l; i++) {
522
+ for (let j = i; j > start; j--) {
523
+ let a = array[j - 1];
524
+ let b = array[j];
525
+ if (compareGenerated(a, b) <= 0) {
526
+ break;
527
+ }
528
+ array[j - 1] = b;
529
+ array[j] = a;
530
+ }
531
+ }
532
+ } else {
533
+ quickSort(array, compareGenerated, start);
534
+ }
535
+ }
536
+ BasicSourceMapConsumer.prototype._parseMappings =
537
+ function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
538
+ var generatedLine = 1;
539
+ var previousGeneratedColumn = 0;
540
+ var previousOriginalLine = 0;
541
+ var previousOriginalColumn = 0;
542
+ var previousSource = 0;
543
+ var previousName = 0;
544
+ var length = aStr.length;
545
+ var index = 0;
546
+ var cachedSegments = {};
547
+ var temp = {};
548
+ var originalMappings = [];
549
+ var generatedMappings = [];
550
+ var mapping, str, segment, end, value;
551
+
552
+ let subarrayStart = 0;
553
+ while (index < length) {
554
+ if (aStr.charAt(index) === ';') {
555
+ generatedLine++;
556
+ index++;
557
+ previousGeneratedColumn = 0;
558
+
559
+ sortGenerated(generatedMappings, subarrayStart);
560
+ subarrayStart = generatedMappings.length;
561
+ } else if (aStr.charAt(index) === ',') {
562
+ index++;
563
+ } else {
564
+ mapping = new Mapping();
565
+ mapping.generatedLine = generatedLine;
566
+
567
+ for (end = index; end < length; end++) {
568
+ if (this._charIsMappingSeparator(aStr, end)) {
569
+ break;
570
+ }
571
+ }
572
+ str = aStr.slice(index, end);
573
+
574
+ segment = [];
575
+ while (index < end) {
576
+ base64VLQ.decode(aStr, index, temp);
577
+ value = temp.value;
578
+ index = temp.rest;
579
+ segment.push(value);
580
+ }
581
+
582
+ if (segment.length === 2) {
583
+ throw new Error('Found a source, but no line and column');
584
+ }
585
+
586
+ if (segment.length === 3) {
587
+ throw new Error('Found a source and line, but no column');
588
+ }
589
+
590
+ // Generated column.
591
+ mapping.generatedColumn = previousGeneratedColumn + segment[0];
592
+ previousGeneratedColumn = mapping.generatedColumn;
593
+
594
+ if (segment.length > 1) {
595
+ // Original source.
596
+ mapping.source = previousSource + segment[1];
597
+ previousSource += segment[1];
598
+
599
+ // Original line.
600
+ mapping.originalLine = previousOriginalLine + segment[2];
601
+ previousOriginalLine = mapping.originalLine;
602
+ // Lines are stored 0-based
603
+ mapping.originalLine += 1;
604
+
605
+ // Original column.
606
+ mapping.originalColumn = previousOriginalColumn + segment[3];
607
+ previousOriginalColumn = mapping.originalColumn;
608
+
609
+ if (segment.length > 4) {
610
+ // Original name.
611
+ mapping.name = previousName + segment[4];
612
+ previousName += segment[4];
613
+ }
614
+ }
615
+
616
+ generatedMappings.push(mapping);
617
+ if (typeof mapping.originalLine === 'number') {
618
+ let currentSource = mapping.source;
619
+ while (originalMappings.length <= currentSource) {
620
+ originalMappings.push(null);
621
+ }
622
+ if (originalMappings[currentSource] === null) {
623
+ originalMappings[currentSource] = [];
624
+ }
625
+ originalMappings[currentSource].push(mapping);
626
+ }
627
+ }
628
+ }
629
+
630
+ sortGenerated(generatedMappings, subarrayStart);
631
+ this.__generatedMappings = generatedMappings;
632
+
633
+ // Sources without mappings have a null bucket. Leave those out, or the
634
+ // nulls end up in __originalMappings.
635
+ var sourceBuckets = [];
636
+ for (var i = 0; i < originalMappings.length; i++) {
637
+ if (originalMappings[i] != null) {
638
+ quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource);
639
+ sourceBuckets.push(originalMappings[i]);
640
+ }
641
+ }
642
+
643
+ // Spreading every bucket into a single concat call overflows the stack
644
+ // once a few hundred thousand sources have mappings, so concat at most
645
+ // 4096 buckets at a time. Most maps have fewer, and need a single call.
646
+ var sortedOriginalMappings = [];
647
+ for (var b = 0; b < sourceBuckets.length; b += 4096) {
648
+ sortedOriginalMappings = sortedOriginalMappings.concat(
649
+ ...sourceBuckets.slice(b, b + 4096)
650
+ );
651
+ }
652
+ this.__originalMappings = sortedOriginalMappings;
653
+ };
654
+
655
+ /**
656
+ * Find the mapping that best matches the hypothetical "needle" mapping that
657
+ * we are searching for in the given "haystack" of mappings.
658
+ */
659
+ BasicSourceMapConsumer.prototype._findMapping =
660
+ function SourceMapConsumer_findMapping(
661
+ aNeedle,
662
+ aMappings,
663
+ aLineName,
664
+ aColumnName,
665
+ aComparator,
666
+ aBias
667
+ ) {
668
+ // To return the position we are searching for, we must first find the
669
+ // mapping for the given position and then return the opposite position it
670
+ // points to. Because the mappings are sorted, we can use binary search to
671
+ // find the best mapping.
672
+
673
+ if (aNeedle[aLineName] <= 0) {
674
+ throw new TypeError(
675
+ 'Line must be greater than or equal to 1, got ' + aNeedle[aLineName]
676
+ );
677
+ }
678
+ if (aNeedle[aColumnName] < 0) {
679
+ throw new TypeError(
680
+ 'Column must be greater than or equal to 0, got ' + aNeedle[aColumnName]
681
+ );
682
+ }
683
+
684
+ return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
685
+ };
686
+
687
+ /**
688
+ * Compute the last column for each generated mapping. The last column is
689
+ * inclusive.
690
+ */
691
+ BasicSourceMapConsumer.prototype.computeColumnSpans =
692
+ function SourceMapConsumer_computeColumnSpans() {
693
+ for (var index = 0; index < this._generatedMappings.length; ++index) {
694
+ var mapping = this._generatedMappings[index];
695
+
696
+ // Mappings do not contain a field for the last generated columnt. We
697
+ // can come up with an optimistic estimate, however, by assuming that
698
+ // mappings are contiguous (i.e. given two consecutive mappings, the
699
+ // first mapping ends where the second one starts).
700
+ if (index + 1 < this._generatedMappings.length) {
701
+ var nextMapping = this._generatedMappings[index + 1];
702
+
703
+ if (mapping.generatedLine === nextMapping.generatedLine) {
704
+ mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
705
+ continue;
706
+ }
707
+ }
708
+
709
+ // The last mapping for each line spans the entire line.
710
+ mapping.lastGeneratedColumn = Infinity;
711
+ }
712
+ };
713
+
714
+ /**
715
+ * Returns the original source, line, and column information for the generated
716
+ * source's line and column positions provided. The only argument is an object
717
+ * with the following properties:
718
+ *
719
+ * - line: The line number in the generated source. The line number
720
+ * is 1-based.
721
+ * - column: The column number in the generated source. The column
722
+ * number is 0-based.
723
+ * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
724
+ * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
725
+ * closest element that is smaller than or greater than the one we are
726
+ * searching for, respectively, if the exact element cannot be found.
727
+ * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
728
+ *
729
+ * and an object is returned with the following properties:
730
+ *
731
+ * - source: The original source file, or null.
732
+ * - line: The line number in the original source, or null. The
733
+ * line number is 1-based.
734
+ * - column: The column number in the original source, or null. The
735
+ * column number is 0-based.
736
+ * - name: The original identifier, or null.
737
+ */
738
+ BasicSourceMapConsumer.prototype.originalPositionFor =
739
+ function SourceMapConsumer_originalPositionFor(aArgs) {
740
+ var needle = {
741
+ generatedLine: util.getArg(aArgs, 'line'),
742
+ generatedColumn: util.getArg(aArgs, 'column'),
743
+ };
744
+
745
+ var index = this._findMapping(
746
+ needle,
747
+ this._generatedMappings,
748
+ 'generatedLine',
749
+ 'generatedColumn',
750
+ util.compareByGeneratedPositionsDeflated,
751
+ util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
752
+ );
753
+
754
+ if (index >= 0) {
755
+ var mapping = this._generatedMappings[index];
756
+
757
+ if (mapping.generatedLine === needle.generatedLine) {
758
+ var source = util.getArg(mapping, 'source', null);
759
+ if (source !== null) {
760
+ source = this._sources.at(source);
761
+ source = util.computeSourceURL(
762
+ this.sourceRoot,
763
+ source,
764
+ this._sourceMapURL
765
+ );
766
+ }
767
+ var name = util.getArg(mapping, 'name', null);
768
+ if (name !== null) {
769
+ name = this._names.at(name);
770
+ }
771
+ return {
772
+ source: source,
773
+ line: util.getArg(mapping, 'originalLine', null),
774
+ column: util.getArg(mapping, 'originalColumn', null),
775
+ name: name,
776
+ };
777
+ }
778
+ }
779
+
780
+ return {
781
+ source: null,
782
+ line: null,
783
+ column: null,
784
+ name: null,
785
+ };
786
+ };
787
+
788
+ /**
789
+ * Return true if we have the source content for every source in the source
790
+ * map, false otherwise.
791
+ */
792
+ BasicSourceMapConsumer.prototype.hasContentsOfAllSources =
793
+ function BasicSourceMapConsumer_hasContentsOfAllSources() {
794
+ if (!this.sourcesContent) {
795
+ return false;
796
+ }
797
+ return (
798
+ this.sourcesContent.length >= this._sources.size() &&
799
+ !this.sourcesContent.some(function (sc) {
800
+ return sc == null;
801
+ })
802
+ );
803
+ };
804
+
805
+ /**
806
+ * Returns the original source content. The only argument is the url of the
807
+ * original source file. Returns null if no original source content is
808
+ * available.
809
+ */
810
+ BasicSourceMapConsumer.prototype.sourceContentFor =
811
+ function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
812
+ if (!this.sourcesContent) {
813
+ return null;
814
+ }
815
+
816
+ var index = this._findSourceIndex(aSource);
817
+ if (index >= 0) {
818
+ return this.sourcesContent[index];
819
+ }
820
+
821
+ var relativeSource = aSource;
822
+ if (this.sourceRoot != null) {
823
+ relativeSource = util.relative(this.sourceRoot, relativeSource);
824
+ }
825
+
826
+ var url;
827
+ if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
828
+ // XXX: file:// URIs and absolute paths lead to unexpected behavior for
829
+ // many users. We can help them out when they expect file:// URIs to
830
+ // behave like it would if they were running a local HTTP server. See
831
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
832
+ var fileUriAbsPath = relativeSource.replace(/^file:\/\//, '');
833
+ if (url.scheme == 'file' && this._sources.has(fileUriAbsPath)) {
834
+ return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
835
+ }
836
+
837
+ if (
838
+ (!url.path || url.path == '/') &&
839
+ this._sources.has('/' + relativeSource)
840
+ ) {
841
+ return this.sourcesContent[this._sources.indexOf('/' + relativeSource)];
842
+ }
843
+ }
844
+
845
+ // This function is used recursively from
846
+ // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
847
+ // don't want to throw if we can't find the source - we just want to
848
+ // return null, so we provide a flag to exit gracefully.
849
+ if (nullOnMissing) {
850
+ return null;
851
+ } else {
852
+ throw new Error('"' + relativeSource + '" is not in the SourceMap.');
853
+ }
854
+ };
855
+
856
+ /**
857
+ * Returns the generated line and column information for the original source,
858
+ * line, and column positions provided. The only argument is an object with
859
+ * the following properties:
860
+ *
861
+ * - source: The filename of the original source.
862
+ * - line: The line number in the original source. The line number
863
+ * is 1-based.
864
+ * - column: The column number in the original source. The column
865
+ * number is 0-based.
866
+ * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
867
+ * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
868
+ * closest element that is smaller than or greater than the one we are
869
+ * searching for, respectively, if the exact element cannot be found.
870
+ * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
871
+ *
872
+ * and an object is returned with the following properties:
873
+ *
874
+ * - line: The line number in the generated source, or null. The
875
+ * line number is 1-based.
876
+ * - column: The column number in the generated source, or null.
877
+ * The column number is 0-based.
878
+ */
879
+ BasicSourceMapConsumer.prototype.generatedPositionFor =
880
+ function SourceMapConsumer_generatedPositionFor(aArgs) {
881
+ var source = util.getArg(aArgs, 'source');
882
+ source = this._findSourceIndex(source);
883
+ if (source < 0) {
884
+ return {
885
+ line: null,
886
+ column: null,
887
+ lastColumn: null,
888
+ };
889
+ }
890
+
891
+ var needle = {
892
+ source: source,
893
+ originalLine: util.getArg(aArgs, 'line'),
894
+ originalColumn: util.getArg(aArgs, 'column'),
895
+ };
896
+
897
+ var index = this._findMapping(
898
+ needle,
899
+ this._originalMappings,
900
+ 'originalLine',
901
+ 'originalColumn',
902
+ util.compareByOriginalPositions,
903
+ util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
904
+ );
905
+
906
+ if (index >= 0) {
907
+ var mapping = this._originalMappings[index];
908
+
909
+ if (mapping.source === needle.source) {
910
+ return {
911
+ line: util.getArg(mapping, 'generatedLine', null),
912
+ column: util.getArg(mapping, 'generatedColumn', null),
913
+ lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null),
914
+ };
915
+ }
916
+ }
917
+
918
+ return {
919
+ line: null,
920
+ column: null,
921
+ lastColumn: null,
922
+ };
923
+ };
924
+
925
+ exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
926
+
927
+ /**
928
+ * An IndexedSourceMapConsumer instance represents a parsed source map which
929
+ * we can query for information. It differs from BasicSourceMapConsumer in
930
+ * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
931
+ * input.
932
+ *
933
+ * The first parameter is a raw source map (either as a JSON string, or already
934
+ * parsed to an object). According to the spec for indexed source maps, they
935
+ * have the following attributes:
936
+ *
937
+ * - version: Which version of the source map spec this map is following.
938
+ * - file: Optional. The generated file this source map is associated with.
939
+ * - sections: A list of section definitions.
940
+ *
941
+ * Each value under the "sections" field has two fields:
942
+ * - offset: The offset into the original specified at which this section
943
+ * begins to apply, defined as an object with a "line" and "column"
944
+ * field.
945
+ * - map: A source map definition. This source map could also be indexed,
946
+ * but doesn't have to be.
947
+ *
948
+ * Instead of the "map" field, it's also possible to have a "url" field
949
+ * specifying a URL to retrieve a source map from, but that's currently
950
+ * unsupported.
951
+ *
952
+ * Here's an example source map, taken from the source map spec[0], but
953
+ * modified to omit a section which uses the "url" field.
954
+ *
955
+ * {
956
+ * version : 3,
957
+ * file: "app.js",
958
+ * sections: [{
959
+ * offset: {line:100, column:10},
960
+ * map: {
961
+ * version : 3,
962
+ * file: "section.js",
963
+ * sources: ["foo.js", "bar.js"],
964
+ * names: ["src", "maps", "are", "fun"],
965
+ * mappings: "AAAA,E;;ABCDE;"
966
+ * }
967
+ * }],
968
+ * }
969
+ *
970
+ * The second parameter, if given, is a string whose value is the URL
971
+ * at which the source map was found. This URL is used to compute the
972
+ * sources array.
973
+ *
974
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
975
+ */
976
+ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
977
+ var sourceMap = aSourceMap;
978
+ if (typeof aSourceMap === 'string') {
979
+ sourceMap = util.parseSourceMapInput(aSourceMap);
980
+ }
981
+
982
+ var version = util.getArg(sourceMap, 'version');
983
+ var sections = util.getArg(sourceMap, 'sections');
984
+
985
+ if (version != this._version) {
986
+ throw new Error('Unsupported version: ' + version);
987
+ }
988
+
989
+ this._sources = new ArraySet();
990
+ this._names = new ArraySet();
991
+
992
+ var lastOffset = {
993
+ line: -1,
994
+ column: 0,
995
+ };
996
+ var maxOffsetLine = 0;
997
+ this._sections = sections.map(function (s) {
998
+ if (s.url) {
999
+ // The url field will require support for asynchronicity.
1000
+ // See https://github.com/mozilla/source-map/issues/16
1001
+ throw new Error('Support for url field in sections not implemented.');
1002
+ }
1003
+ var offset = util.getArg(s, 'offset');
1004
+ var offsetLine = util.getArg(offset, 'line');
1005
+ var offsetColumn = util.getArg(offset, 'column');
1006
+
1007
+ if (!isValidOffset(offsetLine) || !isValidOffset(offsetColumn)) {
1008
+ throw new Error(
1009
+ 'Section offset line and column must be non-negative integers.'
1010
+ );
1011
+ }
1012
+ if (offsetLine > MAX_SECTION_OFFSET_LINE) {
1013
+ throw new Error(
1014
+ 'Section offset line must not exceed ' + MAX_SECTION_OFFSET_LINE + '.'
1015
+ );
1016
+ }
1017
+
1018
+ if (
1019
+ offsetLine < lastOffset.line ||
1020
+ (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)
1021
+ ) {
1022
+ throw new Error('Section offsets must be ordered and non-overlapping.');
1023
+ }
1024
+ lastOffset = offset;
1025
+
1026
+ var consumer = new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL);
1027
+
1028
+ // Offsets of a nested indexed map add up with this one, so apply the
1029
+ // bound to the total.
1030
+ var totalOffsetLine = offsetLine + (consumer._maxOffsetLine || 0);
1031
+ if (totalOffsetLine > MAX_SECTION_OFFSET_LINE) {
1032
+ throw new Error(
1033
+ 'Section offset line must not exceed ' +
1034
+ MAX_SECTION_OFFSET_LINE +
1035
+ ', including offsets of nested sections.'
1036
+ );
1037
+ }
1038
+ if (totalOffsetLine > maxOffsetLine) {
1039
+ maxOffsetLine = totalOffsetLine;
1040
+ }
1041
+
1042
+ return {
1043
+ generatedOffset: {
1044
+ // The offset fields are 0-based, but we use 1-based indices when
1045
+ // encoding/decoding from VLQ.
1046
+ generatedLine: offsetLine + 1,
1047
+ generatedColumn: offsetColumn + 1,
1048
+ },
1049
+ consumer: consumer,
1050
+ };
1051
+ });
1052
+
1053
+ // The largest offset.line of any section, including nested sections.
1054
+ this._maxOffsetLine = maxOffsetLine;
1055
+ }
1056
+
1057
+ /**
1058
+ * Section offsets come from untrusted input and are used as line/column
1059
+ * numbers, so only accept non-negative safe integers (rejects NaN, Infinity,
1060
+ * strings, fractions, etc).
1061
+ */
1062
+ function isValidOffset(aValue) {
1063
+ return (
1064
+ typeof aValue === 'number' &&
1065
+ aValue >= 0 &&
1066
+ aValue <= 9007199254740991 && // Number.MAX_SAFE_INTEGER
1067
+ Math.floor(aValue) === aValue
1068
+ );
1069
+ }
1070
+
1071
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
1072
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
1073
+
1074
+ /**
1075
+ * The version of the source mapping spec that we are consuming.
1076
+ */
1077
+ IndexedSourceMapConsumer.prototype._version = 3;
1078
+
1079
+ /**
1080
+ * The list of original sources.
1081
+ */
1082
+ Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
1083
+ get: function () {
1084
+ var sources = [];
1085
+ for (var i = 0; i < this._sections.length; i++) {
1086
+ // Read the getter once per section: for a nested indexed map it is
1087
+ // itself this getter, and re-reading it per item is exponential in the
1088
+ // nesting depth (CVE-2026-93749).
1089
+ var sectionSources = this._sections[i].consumer.sources;
1090
+ for (var j = 0; j < sectionSources.length; j++) {
1091
+ sources.push(sectionSources[j]);
1092
+ }
1093
+ }
1094
+ return sources;
1095
+ },
1096
+ });
1097
+
1098
+ /**
1099
+ * Returns the original source, line, and column information for the generated
1100
+ * source's line and column positions provided. The only argument is an object
1101
+ * with the following properties:
1102
+ *
1103
+ * - line: The line number in the generated source. The line number
1104
+ * is 1-based.
1105
+ * - column: The column number in the generated source. The column
1106
+ * number is 0-based.
1107
+ *
1108
+ * and an object is returned with the following properties:
1109
+ *
1110
+ * - source: The original source file, or null.
1111
+ * - line: The line number in the original source, or null. The
1112
+ * line number is 1-based.
1113
+ * - column: The column number in the original source, or null. The
1114
+ * column number is 0-based.
1115
+ * - name: The original identifier, or null.
1116
+ */
1117
+ IndexedSourceMapConsumer.prototype.originalPositionFor =
1118
+ function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
1119
+ var needle = {
1120
+ generatedLine: util.getArg(aArgs, 'line'),
1121
+ generatedColumn: util.getArg(aArgs, 'column'),
1122
+ };
1123
+
1124
+ // Find the section containing the generated position we're trying to map
1125
+ // to an original position.
1126
+ var sectionIndex = binarySearch.search(
1127
+ needle,
1128
+ this._sections,
1129
+ function (needle, section) {
1130
+ var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
1131
+ if (cmp) {
1132
+ return cmp;
1133
+ }
1134
+
1135
+ // The needle's column is 0-based, generatedOffset.generatedColumn is
1136
+ // 1-based.
1137
+ return (
1138
+ needle.generatedColumn - (section.generatedOffset.generatedColumn - 1)
1139
+ );
1140
+ }
1141
+ );
1142
+ var section = this._sections[sectionIndex];
1143
+
1144
+ if (!section) {
1145
+ return {
1146
+ source: null,
1147
+ line: null,
1148
+ column: null,
1149
+ name: null,
1150
+ };
1151
+ }
1152
+
1153
+ return section.consumer.originalPositionFor({
1154
+ line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
1155
+ column:
1156
+ needle.generatedColumn -
1157
+ (section.generatedOffset.generatedLine === needle.generatedLine
1158
+ ? section.generatedOffset.generatedColumn - 1
1159
+ : 0),
1160
+ bias: aArgs.bias,
1161
+ });
1162
+ };
1163
+
1164
+ /**
1165
+ * Return true if we have the source content for every source in the source
1166
+ * map, false otherwise.
1167
+ */
1168
+ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources =
1169
+ function IndexedSourceMapConsumer_hasContentsOfAllSources() {
1170
+ return this._sections.every(function (s) {
1171
+ return s.consumer.hasContentsOfAllSources();
1172
+ });
1173
+ };
1174
+
1175
+ /**
1176
+ * Returns the original source content. The only argument is the url of the
1177
+ * original source file. Returns null if no original source content is
1178
+ * available.
1179
+ */
1180
+ IndexedSourceMapConsumer.prototype.sourceContentFor =
1181
+ function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
1182
+ for (var i = 0; i < this._sections.length; i++) {
1183
+ var section = this._sections[i];
1184
+
1185
+ var content = section.consumer.sourceContentFor(aSource, true);
1186
+ if (content || content === '') {
1187
+ return content;
1188
+ }
1189
+ }
1190
+ if (nullOnMissing) {
1191
+ return null;
1192
+ } else {
1193
+ throw new Error('"' + aSource + '" is not in the SourceMap.');
1194
+ }
1195
+ };
1196
+
1197
+ // SourceMapConsumer.prototype.allGeneratedPositionsFor and
1198
+ // BasicSourceMapConsumer.prototype.generatedPositionFor search
1199
+ // this._originalMappings, which holds the mappings of every section with
1200
+ // their generated positions already shifted by the section offset. They need
1201
+ // these two methods.
1202
+
1203
+ /**
1204
+ * Returns the index of a source in this._sources, which holds the URLs of
1205
+ * the sources that have mappings, or -1. Accepts any name a section
1206
+ * accepts: relative to the section's sourceRoot or a URL from `sources`.
1207
+ */
1208
+ IndexedSourceMapConsumer.prototype._findSourceIndex = function (aSource) {
1209
+ // this._sources is filled in by _parseMappings, which runs on first access
1210
+ // to the mappings.
1211
+ this._generatedMappings;
1212
+
1213
+ for (var i = 0; i < this._sections.length; i++) {
1214
+ var consumer = this._sections[i].consumer;
1215
+ var index = consumer._findSourceIndex(aSource);
1216
+ if (index === -1) {
1217
+ continue;
1218
+ }
1219
+
1220
+ // The same URL _parseMappings stores the source under.
1221
+ var url = util.computeSourceURL(
1222
+ consumer.sourceRoot,
1223
+ consumer._sources.at(index),
1224
+ this._sourceMapURL
1225
+ );
1226
+ if (this._sources.has(url)) {
1227
+ return this._sources.indexOf(url);
1228
+ }
1229
+ }
1230
+
1231
+ return -1;
1232
+ };
1233
+
1234
+ IndexedSourceMapConsumer.prototype._findMapping =
1235
+ BasicSourceMapConsumer.prototype._findMapping;
1236
+
1237
+ // Searching the mappings of all sections at once finds the closest mapping
1238
+ // across sections, the same as for the map without sections.
1239
+ IndexedSourceMapConsumer.prototype.generatedPositionFor =
1240
+ BasicSourceMapConsumer.prototype.generatedPositionFor;
1241
+
1242
+ // Computes the spans on this._generatedMappings, the offset-shifted mappings
1243
+ // of all sections, which the lookups above return. A mapping's span ends
1244
+ // where the next mapping starts, even if that one is in the next section.
1245
+ IndexedSourceMapConsumer.prototype.computeColumnSpans =
1246
+ BasicSourceMapConsumer.prototype.computeColumnSpans;
1247
+
1248
+ /**
1249
+ * Parse the mappings in a string in to a data structure which we can easily
1250
+ * query (the ordered arrays in the `this.__generatedMappings` and
1251
+ * `this.__originalMappings` properties).
1252
+ */
1253
+ IndexedSourceMapConsumer.prototype._parseMappings =
1254
+ function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
1255
+ this.__generatedMappings = [];
1256
+ this.__originalMappings = [];
1257
+ for (var i = 0; i < this._sections.length; i++) {
1258
+ var section = this._sections[i];
1259
+ var sectionMappings = section.consumer._generatedMappings;
1260
+ for (var j = 0; j < sectionMappings.length; j++) {
1261
+ var mapping = sectionMappings[j];
1262
+
1263
+ var source = section.consumer._sources.at(mapping.source);
1264
+ if (source !== null) {
1265
+ source = util.computeSourceURL(
1266
+ section.consumer.sourceRoot,
1267
+ source,
1268
+ this._sourceMapURL
1269
+ );
1270
+ }
1271
+ this._sources.add(source);
1272
+ source = this._sources.indexOf(source);
1273
+
1274
+ var name = null;
1275
+ if (mapping.name) {
1276
+ name = section.consumer._names.at(mapping.name);
1277
+ this._names.add(name);
1278
+ name = this._names.indexOf(name);
1279
+ }
1280
+
1281
+ // The mappings coming from the consumer for the section have
1282
+ // generated positions relative to the start of the section, so we
1283
+ // need to offset them to be relative to the start of the concatenated
1284
+ // generated file. The column offset only applies to the section's
1285
+ // first line.
1286
+ var adjustedMapping = {
1287
+ source: source,
1288
+ generatedLine:
1289
+ mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
1290
+ generatedColumn:
1291
+ mapping.generatedColumn +
1292
+ (mapping.generatedLine === 1
1293
+ ? section.generatedOffset.generatedColumn - 1
1294
+ : 0),
1295
+ originalLine: mapping.originalLine,
1296
+ originalColumn: mapping.originalColumn,
1297
+ name: name,
1298
+ };
1299
+
1300
+ this.__generatedMappings.push(adjustedMapping);
1301
+ if (typeof adjustedMapping.originalLine === 'number') {
1302
+ this.__originalMappings.push(adjustedMapping);
1303
+ }
1304
+ }
1305
+ }
1306
+
1307
+ quickSort(
1308
+ this.__generatedMappings,
1309
+ util.compareByGeneratedPositionsDeflated
1310
+ );
1311
+ quickSort(this.__originalMappings, util.compareByOriginalPositions);
1312
+ };
1313
+
1314
+ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;