@histoire/app 1.0.0-beta.1 → 1.0.0-beta.3

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 (1625) hide show
  1. package/dist/app/style/README.md +167 -0
  2. package/dist/app/style/controls.css +28 -0
  3. package/dist/app/style/density.css +38 -0
  4. package/dist/app/style/document.pcss +60 -0
  5. package/dist/app/style/fonts.pcss +1 -0
  6. package/dist/app/style/main.css +25 -0
  7. package/dist/app/style/theme.css +117 -0
  8. package/dist/app/style/tokens.pcss +135 -0
  9. package/dist/bundle-embed-dev.js +6 -0
  10. package/dist/bundle-embed.js +6 -0
  11. package/dist/bundle-main-dev.js +1 -1
  12. package/dist/bundle-main.js +2 -1
  13. package/dist/bundle-sandbox-dev.js +3 -2
  14. package/dist/bundle-sandbox.js +3 -2
  15. package/dist/bundled/api.js +1 -12
  16. package/dist/bundled/app.css +183 -75
  17. package/dist/bundled/chunks/AboutSection-mX7J6xrz.js +42 -0
  18. package/dist/bundled/chunks/AgentCursor-DcVxonMC.js +124 -0
  19. package/dist/bundled/chunks/AgentLogo-C2uXqX04.js +69 -0
  20. package/dist/bundled/chunks/AgentPlanApproval-22I_Lbhn.js +693 -0
  21. package/dist/bundled/chunks/AgentsSection-DWmUKCX-.js +1126 -0
  22. package/dist/bundled/chunks/AiPanel-BICtbtCE.js +1130 -0
  23. package/dist/bundled/chunks/AppearanceSection-maVgcfMk.js +306 -0
  24. package/dist/bundled/chunks/BasePopover-B3Y5H1gd.js +307 -0
  25. package/dist/bundled/chunks/CommentsCanvasOverlay-DhqtbJNX.js +955 -0
  26. package/dist/bundled/chunks/DevBrowseStatus-B6cLRu19.js +48 -0
  27. package/dist/bundled/chunks/DocsTab-PpFKAC6Q.js +31 -0
  28. package/dist/bundled/chunks/EmbedDialog-B70Zo-PZ.js +475 -0
  29. package/dist/bundled/chunks/EventsTab-DLVYcX1N.js +37 -0
  30. package/dist/bundled/chunks/GeneralSection-dvmJUgqN.js +84 -0
  31. package/dist/bundled/chunks/HomeCard-JYU5jbs7.js +24 -0
  32. package/dist/bundled/chunks/InspectionPanel-DDuT3guJ.js +584 -0
  33. package/dist/bundled/chunks/InspectorGuideLink-7Ui_Y2Wd.js +28 -0
  34. package/dist/bundled/chunks/MarkdownPage-D_LpsCvG.js +349 -0
  35. package/dist/bundled/chunks/MarketplaceUpdateBody-BtLPpA7F.js +300 -0
  36. package/dist/bundled/chunks/MarketplaceView-C1sVFRsq.js +2798 -0
  37. package/dist/bundled/chunks/MatrixInspector-wqkJJnuf.js +893 -0
  38. package/dist/bundled/chunks/MatrixView-D-Snu47M.js +646 -0
  39. package/dist/bundled/chunks/MatrixVisualActions-D3b-cp7N.js +70 -0
  40. package/dist/bundled/chunks/McpActivity-r2CFr-ny.js +136 -0
  41. package/dist/bundled/chunks/McpSection-swh7qlM0.js +76 -0
  42. package/dist/bundled/chunks/MenuItem-BYRJG5YA.js +59 -0
  43. package/dist/bundled/chunks/NeedsAttention-Cf6ihlT0.js +77 -0
  44. package/dist/bundled/chunks/PermissionPrompt-CXTPfiIu.js +128 -0
  45. package/dist/bundled/chunks/PluginTile-CfplGy7m.js +97 -0
  46. package/dist/bundled/chunks/PluginsSection-Dhv2haa3.js +858 -0
  47. package/dist/bundled/chunks/PopoverDivider-vLxqs_KP.js +13 -0
  48. package/dist/bundled/chunks/PopoverTitle-zikHVKQE.js +12 -0
  49. package/dist/bundled/chunks/SaveToProject-F-tQZKCG.js +206 -0
  50. package/dist/bundled/chunks/ScreenshotPopover-BZ37-dfK.js +725 -0
  51. package/dist/bundled/chunks/SettingsChoices-BoESgi62.js +19 -0
  52. package/dist/bundled/chunks/SettingsPage-D6ZOAgS9.js +174 -0
  53. package/dist/bundled/chunks/SettingsRow-C4lda-j7.js +22 -0
  54. package/dist/bundled/chunks/ShortcutsSection-EK2-e56v.js +43 -0
  55. package/dist/bundled/chunks/StoryInspector-DCNgw0x8.js +1197 -0
  56. package/dist/bundled/chunks/TestsPanel-D1USqA8I.js +1264 -0
  57. package/dist/bundled/chunks/TestsSection-CIkkHlyK.js +33 -0
  58. package/dist/bundled/chunks/TestsTab-ykf9zwmG.js +50 -0
  59. package/dist/bundled/chunks/ThreadMessage-DxrvoIea.js +2426 -0
  60. package/dist/bundled/chunks/ToolbarPopover-CXizdbQq.js +276 -0
  61. package/dist/bundled/chunks/ViewportsSection-D6mpKTSM.js +203 -0
  62. package/dist/bundled/chunks/VisualViewer-BQqfw1ov.js +888 -0
  63. package/dist/bundled/chunks/WorkbenchErrorState-D97EoY89.js +48 -0
  64. package/dist/bundled/chunks/WorkbenchGuideLink-COO1XNvp.js +26 -0
  65. package/dist/bundled/chunks/WorkbenchLoadingState-CLA8IBL6.js +50 -0
  66. package/dist/bundled/chunks/WorkbenchPaneHeader-DBuiBHTT.js +15 -0
  67. package/dist/bundled/chunks/WorkbenchPaneList-cOz9-XSR.js +13 -0
  68. package/dist/bundled/chunks/WorkbenchPaneToolbar-DEYUs_bD.js +12 -0
  69. package/dist/bundled/chunks/WorkbenchPanelAction-SLby10Vh.js +100 -0
  70. package/dist/bundled/chunks/WorkbenchVirtualList-HCZiNo7p.js +67 -0
  71. package/dist/bundled/chunks/agents-Cnoa7KRp.js +318 -0
  72. package/dist/bundled/chunks/agents-http-BjeGJFYE.js +27 -0
  73. package/dist/bundled/chunks/ai-threads-3QfVXZ43.js +402 -0
  74. package/dist/bundled/chunks/background-CUUIkZVL.js +76 -0
  75. package/dist/bundled/chunks/canvas-settings-Cw7AXzFG.js +119 -0
  76. package/dist/bundled/chunks/capture-DxD6llwl.js +20 -0
  77. package/dist/bundled/chunks/catalog-UvMhynPX.js +39 -0
  78. package/dist/bundled/chunks/catalog-target-BN1NsBKA.js +9 -0
  79. package/dist/bundled/chunks/color-scheme-zLURTKoT.js +97 -0
  80. package/dist/bundled/chunks/content-view-ChEpdsxh.js +15 -0
  81. package/dist/bundled/chunks/context-menu-Cw2xQKsM.js +121 -0
  82. package/dist/bundled/chunks/controls-DpdwHd4q.js +23264 -0
  83. package/dist/bundled/chunks/controls-view-CtDADD0e.js +358 -0
  84. package/dist/bundled/chunks/events-Dhp302xE.js +30 -0
  85. package/dist/bundled/chunks/explorer-view-B717fDtg.js +285 -0
  86. package/dist/bundled/chunks/extensions-BtOjYv3e.js +6283 -0
  87. package/dist/bundled/chunks/extensions-DY0LLiE_.js +42 -0
  88. package/dist/bundled/chunks/frame-ledger-C67dpCuY.js +3405 -0
  89. package/dist/bundled/chunks/frame-owner-Di8_BWb0.js +22 -0
  90. package/dist/bundled/chunks/frame-screenshot-IEmQR7TR.js +84 -0
  91. package/dist/bundled/chunks/http-json-B3BE0tJj.js +37 -0
  92. package/dist/bundled/chunks/icons-DoUVE4X3.js +128 -0
  93. package/dist/bundled/chunks/internal-BOzwU0KU.js +49 -0
  94. package/dist/bundled/chunks/keyboard-DWsKh2rn.js +93 -0
  95. package/dist/bundled/chunks/local-mount-CQ14I_16.js +199 -0
  96. package/dist/bundled/chunks/marketplace-BE5IMmf3.js +951 -0
  97. package/dist/bundled/chunks/matrix-BPPIGW-q.js +770 -0
  98. package/dist/bundled/chunks/mcp-CbWZxLuC.js +212 -0
  99. package/dist/bundled/chunks/measure-owner-BJxCiOYZ.js +36 -0
  100. package/dist/bundled/chunks/measurement-BPE7RMeb.js +237 -0
  101. package/dist/bundled/chunks/model-CIFxQfDH.js +744 -0
  102. package/dist/bundled/chunks/navigation-view-Co43QbrR.js +20 -0
  103. package/dist/bundled/chunks/ownership-BVQ3d672.js +48 -0
  104. package/dist/bundled/chunks/presets-config-CfdpjV2k.js +173 -0
  105. package/dist/bundled/chunks/project-config-Di_IAjjN.js +190 -0
  106. package/dist/bundled/chunks/purify.es-DhaLjfsW.js +2463 -0
  107. package/dist/bundled/chunks/rolldown-runtime-D8jQpDG7.js +12 -0
  108. package/dist/bundled/chunks/sandbox-shared-CwPQj187.js +1178 -0
  109. package/dist/bundled/chunks/screenshot-file-5sIH6A7o.js +22 -0
  110. package/dist/bundled/chunks/screenshot-targets-1TJFnTQJ.js +21 -0
  111. package/dist/bundled/chunks/selection-BTc1fRMu.js +35 -0
  112. package/dist/bundled/chunks/settings-B8QvkMcW.js +173 -0
  113. package/dist/bundled/chunks/settings-BbefKI5N.js +35 -0
  114. package/dist/bundled/chunks/shell-VHlsl1Wj.js +15 -0
  115. package/dist/bundled/chunks/shell-extensions-BRqMTtWV.js +29 -0
  116. package/dist/bundled/chunks/shell-registry-dTiCKXFh.js +66 -0
  117. package/dist/bundled/chunks/shortcuts-BPetXlYX.js +84 -0
  118. package/dist/bundled/chunks/src-CDZfcmuw.js +451 -0
  119. package/dist/bundled/chunks/status-C0sxyPzj.js +48 -0
  120. package/dist/bundled/chunks/tests-view-RYpujVD_.js +33 -0
  121. package/dist/bundled/chunks/ui-channel-BPYj8uw2.js +36 -0
  122. package/dist/bundled/chunks/use-install-plan-D0tiW2wu.js +184 -0
  123. package/dist/bundled/chunks/visual-nnXRPOP8.js +611 -0
  124. package/dist/bundled/chunks/workbench-plugin-id-BgjbPURy.js +7 -0
  125. package/dist/bundled/controls.js +1 -0
  126. package/dist/bundled/index.js +15557 -33
  127. package/dist/bundled/sandbox.js +1 -87
  128. package/dist/embed/EmbedDocument.vue.js +4 -0
  129. package/dist/embed/EmbedDocument.vue_vue_type_script_setup_true_lang.js +52 -0
  130. package/dist/embed/_virtual/_plugin-vue_export-helper.js +7 -0
  131. package/dist/embed/_virtual/_rolldown/runtime.js +12 -0
  132. package/dist/embed/adapters/channels.d.ts +34 -0
  133. package/dist/embed/adapters/channels.js +105 -0
  134. package/dist/embed/adapters/content-surface.d.ts +1 -0
  135. package/dist/embed/adapters/content-surface.js +9 -0
  136. package/dist/embed/adapters/content-view.d.ts +6 -0
  137. package/dist/embed/adapters/content-view.js +16 -0
  138. package/dist/embed/adapters/controls-replica.d.ts +10 -0
  139. package/dist/embed/adapters/controls-replica.js +294 -0
  140. package/dist/embed/adapters/controls-view.d.ts +7 -0
  141. package/dist/embed/adapters/controls-view.js +69 -0
  142. package/dist/embed/adapters/controls.d.ts +1 -0
  143. package/dist/embed/adapters/controls.js +8 -0
  144. package/dist/embed/adapters/document.d.ts +24 -0
  145. package/dist/embed/adapters/document.js +48 -0
  146. package/dist/embed/adapters/explorer-session.d.ts +13 -0
  147. package/dist/embed/adapters/explorer-session.js +204 -0
  148. package/dist/embed/adapters/explorer-view.d.ts +9 -0
  149. package/dist/embed/adapters/explorer-view.js +84 -0
  150. package/dist/embed/adapters/explorer.d.ts +1 -0
  151. package/dist/embed/adapters/explorer.js +9 -0
  152. package/dist/embed/adapters/geometry.d.ts +1 -0
  153. package/dist/embed/adapters/geometry.js +1 -0
  154. package/dist/embed/adapters/layout.d.ts +14 -0
  155. package/dist/embed/adapters/layout.js +109 -0
  156. package/dist/embed/adapters/lazy-surface.d.ts +3 -0
  157. package/dist/embed/adapters/lazy-surface.js +52 -0
  158. package/dist/embed/adapters/local-mount.d.ts +3 -0
  159. package/dist/embed/adapters/local-mount.js +180 -0
  160. package/dist/embed/adapters/navigation-surface.d.ts +1 -0
  161. package/dist/embed/adapters/navigation-surface.js +14 -0
  162. package/dist/embed/adapters/navigation-view.d.ts +7 -0
  163. package/dist/embed/adapters/navigation-view.js +23 -0
  164. package/dist/embed/adapters/preview.d.ts +1 -0
  165. package/dist/embed/adapters/preview.js +5 -0
  166. package/dist/embed/adapters/runtime-frame.d.ts +14 -0
  167. package/dist/embed/adapters/runtime-frame.js +476 -0
  168. package/dist/embed/adapters/runtime-layout.d.ts +23 -0
  169. package/dist/embed/adapters/runtime-layout.js +44 -0
  170. package/dist/embed/adapters/runtime-loading.d.ts +30 -0
  171. package/dist/embed/adapters/runtime-loading.js +57 -0
  172. package/dist/embed/adapters/runtime-readiness.d.ts +14 -0
  173. package/dist/embed/adapters/runtime-readiness.js +53 -0
  174. package/dist/embed/adapters/runtime-requests.d.ts +12 -0
  175. package/dist/embed/adapters/runtime-requests.js +114 -0
  176. package/dist/embed/adapters/runtime-revision.d.ts +9 -0
  177. package/dist/embed/adapters/runtime-revision.js +29 -0
  178. package/dist/embed/adapters/sandbox-urls.d.ts +24 -0
  179. package/dist/embed/adapters/sandbox-urls.js +41 -0
  180. package/dist/embed/adapters/stale-preview.d.ts +14 -0
  181. package/dist/embed/adapters/stale-preview.js +56 -0
  182. package/dist/embed/adapters/state-presets.d.ts +28 -0
  183. package/dist/embed/adapters/state-presets.js +108 -0
  184. package/dist/embed/adapters/state.d.ts +11 -0
  185. package/dist/embed/adapters/state.js +29 -0
  186. package/dist/embed/adapters/test-workers.d.ts +30 -0
  187. package/dist/embed/adapters/test-workers.js +133 -0
  188. package/dist/embed/adapters/tests-surface.d.ts +1 -0
  189. package/dist/embed/adapters/tests-surface.js +9 -0
  190. package/dist/embed/adapters/tests-view.d.ts +7 -0
  191. package/dist/embed/adapters/tests-view.js +34 -0
  192. package/dist/embed/adapters/tests.d.ts +8 -0
  193. package/dist/embed/adapters/tests.js +21 -0
  194. package/dist/embed/app/standalone/presets.js +67 -0
  195. package/dist/embed/app.css +175 -0
  196. package/dist/embed/capabilities.d.ts +5 -0
  197. package/dist/embed/capabilities.js +23 -0
  198. package/dist/embed/color-scheme.d.ts +6 -0
  199. package/dist/embed/color-scheme.js +10 -0
  200. package/dist/embed/commands.d.ts +9 -0
  201. package/dist/embed/commands.js +118 -0
  202. package/dist/embed/descriptor.d.ts +7 -0
  203. package/dist/embed/descriptor.js +47 -0
  204. package/dist/embed/direct.d.ts +4 -0
  205. package/dist/embed/direct.js +55 -0
  206. package/dist/embed/document.css +11 -0
  207. package/dist/embed/fetch.d.ts +4 -0
  208. package/dist/embed/fetch.js +66 -0
  209. package/dist/embed/handshake.d.ts +7 -0
  210. package/dist/embed/handshake.js +174 -0
  211. package/dist/embed/index.d.ts +14 -0
  212. package/dist/embed/index.js +36 -0
  213. package/dist/embed/lifecycle.d.ts +7 -0
  214. package/dist/embed/lifecycle.js +32 -0
  215. package/dist/embed/node_modules/.pnpm/@codemirror_commands@6.10.1/node_modules/@codemirror/commands/dist/index.js +1567 -0
  216. package/dist/embed/node_modules/.pnpm/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +28 -0
  217. package/dist/embed/node_modules/.pnpm/@codemirror_language@6.12.1/node_modules/@codemirror/language/dist/index.js +1737 -0
  218. package/dist/embed/node_modules/.pnpm/@codemirror_lint@6.9.2/node_modules/@codemirror/lint/dist/index.js +559 -0
  219. package/dist/embed/node_modules/.pnpm/@codemirror_state@6.5.3/node_modules/@codemirror/state/dist/index.js +3351 -0
  220. package/dist/embed/node_modules/.pnpm/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +119 -0
  221. package/dist/embed/node_modules/.pnpm/@codemirror_view@6.39.9/node_modules/@codemirror/view/dist/index.js +8856 -0
  222. package/dist/embed/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +1521 -0
  223. package/dist/embed/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +874 -0
  224. package/dist/embed/node_modules/.pnpm/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.js +52 -0
  225. package/dist/embed/node_modules/.pnpm/@lezer_lr@1.4.7/node_modules/@lezer/lr/dist/index.js +1446 -0
  226. package/dist/embed/node_modules/.pnpm/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js +71 -0
  227. package/dist/embed/node_modules/.pnpm/@shikijs_core@3.21.0/node_modules/@shikijs/core/dist/index.js +1775 -0
  228. package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/index.js +387 -0
  229. package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +6 -0
  230. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/abap.js +2 -0
  231. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -0
  232. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ada.js +2 -0
  233. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-expression.js +2 -0
  234. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-html.js +16 -0
  235. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -0
  236. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-template.js +10 -0
  237. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -0
  238. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template-blocks.js +10 -0
  239. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template.js +5 -0
  240. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-ts.js +18 -0
  241. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apache.js +2 -0
  242. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apex.js +2 -0
  243. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apl.js +16 -0
  244. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/applescript.js +2 -0
  245. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ara.js +2 -0
  246. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asciidoc.js +2 -0
  247. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asm.js +2 -0
  248. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/astro.js +18 -0
  249. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/awk.js +2 -0
  250. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ballerina.js +2 -0
  251. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bat.js +2 -0
  252. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/beancount.js +2 -0
  253. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/berry.js +2 -0
  254. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bibtex.js +2 -0
  255. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bicep.js +2 -0
  256. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/blade.js +20 -0
  257. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bsl.js +5 -0
  258. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c.js +2 -0
  259. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c3.js +2 -0
  260. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cadence.js +2 -0
  261. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cairo.js +5 -0
  262. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clarity.js +2 -0
  263. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clojure.js +2 -0
  264. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cmake.js +2 -0
  265. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cobol.js +10 -0
  266. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeowners.js +2 -0
  267. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeql.js +2 -0
  268. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coffee.js +5 -0
  269. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/common-lisp.js +2 -0
  270. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coq.js +2 -0
  271. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp-macro.js +12 -0
  272. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp.js +14 -0
  273. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/crystal.js +18 -0
  274. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csharp.js +2 -0
  275. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/css.js +2 -0
  276. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csv.js +2 -0
  277. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cue.js +2 -0
  278. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cypher.js +2 -0
  279. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/d.js +2 -0
  280. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dart.js +2 -0
  281. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dax.js +2 -0
  282. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/desktop.js +2 -0
  283. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/diff.js +2 -0
  284. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/docker.js +2 -0
  285. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dotenv.js +2 -0
  286. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dream-maker.js +2 -0
  287. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/edge.js +12 -0
  288. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elixir.js +5 -0
  289. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elm.js +5 -0
  290. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -0
  291. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erb.js +10 -0
  292. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erlang.js +5 -0
  293. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-css.js +12 -0
  294. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-glsl.js +12 -0
  295. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-html.js +12 -0
  296. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-sql.js +10 -0
  297. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -0
  298. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fennel.js +2 -0
  299. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fish.js +2 -0
  300. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fluent.js +2 -0
  301. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -0
  302. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -0
  303. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fsharp.js +5 -0
  304. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdresource.js +10 -0
  305. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdscript.js +2 -0
  306. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdshader.js +2 -0
  307. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/genie.js +2 -0
  308. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gherkin.js +2 -0
  309. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-commit.js +5 -0
  310. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-rebase.js +5 -0
  311. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gleam.js +2 -0
  312. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-js.js +14 -0
  313. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-ts.js +14 -0
  314. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glsl.js +5 -0
  315. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gn.js +2 -0
  316. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gnuplot.js +2 -0
  317. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/go.js +2 -0
  318. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/graphql.js +14 -0
  319. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/groovy.js +2 -0
  320. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hack.js +10 -0
  321. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haml.js +10 -0
  322. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/handlebars.js +14 -0
  323. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haskell.js +2 -0
  324. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haxe.js +2 -0
  325. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hcl.js +2 -0
  326. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hjson.js +2 -0
  327. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hlsl.js +2 -0
  328. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html-derivative.js +5 -0
  329. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html.js +10 -0
  330. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/http.js +14 -0
  331. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hurl.js +12 -0
  332. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hxml.js +5 -0
  333. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hy.js +2 -0
  334. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/imba.js +2 -0
  335. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ini.js +2 -0
  336. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/java.js +2 -0
  337. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/javascript.js +2 -0
  338. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja-html.js +5 -0
  339. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja.js +5 -0
  340. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jison.js +5 -0
  341. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json.js +2 -0
  342. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json5.js +2 -0
  343. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonc.js +2 -0
  344. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonl.js +2 -0
  345. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonnet.js +2 -0
  346. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jssm.js +2 -0
  347. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsx.js +2 -0
  348. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/julia.js +16 -0
  349. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kdl.js +2 -0
  350. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kotlin.js +2 -0
  351. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kusto.js +2 -0
  352. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/latex.js +5 -0
  353. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lean.js +2 -0
  354. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/less.js +2 -0
  355. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/liquid.js +14 -0
  356. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/llvm.js +2 -0
  357. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/log.js +2 -0
  358. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/logo.js +2 -0
  359. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lua.js +5 -0
  360. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/luau.js +2 -0
  361. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/make.js +2 -0
  362. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -0
  363. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -0
  364. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown.js +2 -0
  365. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/marko.js +14 -0
  366. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/matlab.js +2 -0
  367. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdc.js +12 -0
  368. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdx.js +2 -0
  369. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mermaid.js +2 -0
  370. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mipsasm.js +2 -0
  371. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mojo.js +2 -0
  372. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/moonbit.js +2 -0
  373. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/move.js +2 -0
  374. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/narrat.js +2 -0
  375. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nextflow.js +2 -0
  376. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nginx.js +5 -0
  377. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nim.js +20 -0
  378. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nix.js +5 -0
  379. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nushell.js +2 -0
  380. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-c.js +2 -0
  381. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -0
  382. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ocaml.js +2 -0
  383. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/openscad.js +2 -0
  384. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pascal.js +2 -0
  385. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/perl.js +16 -0
  386. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/php.js +18 -0
  387. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pkl.js +2 -0
  388. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/plsql.js +2 -0
  389. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/po.js +2 -0
  390. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/polar.js +2 -0
  391. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/postcss.js +2 -0
  392. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powerquery.js +2 -0
  393. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powershell.js +2 -0
  394. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prisma.js +2 -0
  395. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prolog.js +2 -0
  396. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/proto.js +2 -0
  397. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pug.js +12 -0
  398. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/puppet.js +2 -0
  399. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/purescript.js +2 -0
  400. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/python.js +2 -0
  401. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qml.js +5 -0
  402. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qmldir.js +2 -0
  403. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qss.js +2 -0
  404. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/r.js +2 -0
  405. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/racket.js +2 -0
  406. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/raku.js +2 -0
  407. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/razor.js +10 -0
  408. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/reg.js +2 -0
  409. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/regexp.js +2 -0
  410. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rel.js +2 -0
  411. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/riscv.js +2 -0
  412. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rosmsg.js +2 -0
  413. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rst.js +22 -0
  414. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ruby.js +30 -0
  415. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rust.js +2 -0
  416. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sas.js +5 -0
  417. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sass.js +2 -0
  418. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scala.js +2 -0
  419. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scheme.js +2 -0
  420. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scss.js +5 -0
  421. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sdbl.js +2 -0
  422. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shaderlab.js +5 -0
  423. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellscript.js +2 -0
  424. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellsession.js +5 -0
  425. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/smalltalk.js +2 -0
  426. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/solidity.js +2 -0
  427. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/soy.js +5 -0
  428. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sparql.js +5 -0
  429. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/splunk.js +2 -0
  430. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sql.js +2 -0
  431. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ssh-config.js +2 -0
  432. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stata.js +5 -0
  433. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stylus.js +2 -0
  434. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/svelte.js +14 -0
  435. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/swift.js +2 -0
  436. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/system-verilog.js +2 -0
  437. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/systemd.js +2 -0
  438. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/talonscript.js +2 -0
  439. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tasl.js +2 -0
  440. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tcl.js +2 -0
  441. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/templ.js +12 -0
  442. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/terraform.js +2 -0
  443. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tex.js +5 -0
  444. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/toml.js +2 -0
  445. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ts-tags.js +18 -0
  446. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsv.js +2 -0
  447. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsx.js +2 -0
  448. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/turtle.js +2 -0
  449. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/twig.js +18 -0
  450. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typescript.js +2 -0
  451. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typespec.js +2 -0
  452. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typst.js +2 -0
  453. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/v.js +2 -0
  454. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vala.js +2 -0
  455. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vb.js +2 -0
  456. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/verilog.js +2 -0
  457. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vhdl.js +2 -0
  458. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/viml.js +2 -0
  459. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-directives.js +2 -0
  460. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-html.js +5 -0
  461. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -0
  462. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -0
  463. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-vine.js +18 -0
  464. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue.js +26 -0
  465. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vyper.js +2 -0
  466. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wasm.js +2 -0
  467. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wenyan.js +2 -0
  468. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wgsl.js +2 -0
  469. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wikitext.js +2 -0
  470. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wit.js +2 -0
  471. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wolfram.js +2 -0
  472. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
  473. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xsl.js +5 -0
  474. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/yaml.js +2 -0
  475. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zenscript.js +2 -0
  476. package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zig.js +2 -0
  477. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/andromeeda.js +3 -0
  478. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/aurora-x.js +3 -0
  479. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/ayu-dark.js +3 -0
  480. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +3 -0
  481. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-latte.js +3 -0
  482. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +3 -0
  483. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +3 -0
  484. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dark-plus.js +3 -0
  485. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula-soft.js +3 -0
  486. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula.js +3 -0
  487. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-dark.js +3 -0
  488. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-light.js +3 -0
  489. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-default.js +3 -0
  490. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +3 -0
  491. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +3 -0
  492. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark.js +3 -0
  493. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-default.js +3 -0
  494. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +3 -0
  495. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light.js +3 -0
  496. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +3 -0
  497. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +3 -0
  498. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +3 -0
  499. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +3 -0
  500. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +3 -0
  501. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +3 -0
  502. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/houston.js +3 -0
  503. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +3 -0
  504. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +3 -0
  505. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-wave.js +3 -0
  506. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/laserwave.js +3 -0
  507. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/light-plus.js +3 -0
  508. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-darker.js +3 -0
  509. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-lighter.js +3 -0
  510. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-ocean.js +3 -0
  511. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-palenight.js +3 -0
  512. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme.js +3 -0
  513. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-dark.js +3 -0
  514. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-light.js +3 -0
  515. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/monokai.js +3 -0
  516. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/night-owl.js +3 -0
  517. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/nord.js +3 -0
  518. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-dark-pro.js +3 -0
  519. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-light.js +3 -0
  520. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/plastic.js +3 -0
  521. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/poimandres.js +3 -0
  522. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/red.js +3 -0
  523. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +3 -0
  524. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-moon.js +3 -0
  525. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine.js +3 -0
  526. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-dark.js +3 -0
  527. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-ochin.js +3 -0
  528. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/snazzy-light.js +3 -0
  529. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-dark.js +3 -0
  530. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-light.js +3 -0
  531. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/synthwave-84.js +3 -0
  532. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/tokyo-night.js +3 -0
  533. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vesper.js +3 -0
  534. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-black.js +3 -0
  535. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-dark.js +3 -0
  536. package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-light.js +3 -0
  537. package/dist/embed/node_modules/.pnpm/@shikijs_types@3.21.0/node_modules/@shikijs/types/dist/index.js +8 -0
  538. package/dist/embed/node_modules/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +2320 -0
  539. package/dist/embed/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +23 -0
  540. package/dist/embed/node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +261 -0
  541. package/dist/embed/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +115 -0
  542. package/dist/embed/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +16 -0
  543. package/dist/embed/node_modules/.pnpm/crelt@1.0.6/node_modules/crelt/index.js +23 -0
  544. package/dist/embed/node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.js +2463 -0
  545. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +33 -0
  546. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +23 -0
  547. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +125 -0
  548. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +50 -0
  549. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +25 -0
  550. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +23 -0
  551. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +26 -0
  552. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +238 -0
  553. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +268 -0
  554. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +39 -0
  555. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +97 -0
  556. package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +42 -0
  557. package/dist/embed/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +27 -0
  558. package/dist/embed/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +29 -0
  559. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +25 -0
  560. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +60 -0
  561. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +80 -0
  562. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +315 -0
  563. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +14 -0
  564. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +561 -0
  565. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +14 -0
  566. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +13 -0
  567. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +52 -0
  568. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +48 -0
  569. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +32 -0
  570. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +25 -0
  571. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +26 -0
  572. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +23 -0
  573. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +18 -0
  574. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +14 -0
  575. package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +13 -0
  576. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/bundle-full.js +13 -0
  577. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/index.js +7 -0
  578. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/langs.js +1248 -0
  579. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/themes.js +365 -0
  580. package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/wasm.js +1 -0
  581. package/dist/embed/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +13 -0
  582. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +18 -0
  583. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +77 -0
  584. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +21 -0
  585. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +40 -0
  586. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +15 -0
  587. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +15 -0
  588. package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +35 -0
  589. package/dist/embed/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod/src/style-mod.js +92 -0
  590. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScroller.vue_vue_type_script_setup_true_lang-yssX6Q5B.js +130 -0
  591. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScrollerItem.vue_vue_type_script_setup_true_lang-qh6MY0wl.js +37 -0
  592. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi.js +202 -0
  593. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScroller.js +705 -0
  594. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScrollerItem.js +47 -0
  595. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/dynamicScrollerMeasurement-Cq5NQLJa.js +122 -0
  596. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/keyField-D6okV6nC.js +15 -0
  597. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/scroller.css_vue_type_style_index_0_src_true_lang--7gJ3zh_.js +100 -0
  598. package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/useRecycleScroller-D_RDrEg2.js +805 -0
  599. package/dist/embed/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js +101 -0
  600. package/dist/embed/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +105 -0
  601. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue.js +4 -0
  602. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue_vue_type_script_setup_true_lang.js +43 -0
  603. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue.js +4 -0
  604. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue_vue_type_script_setup_true_lang.js +50 -0
  605. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue.js +4 -0
  606. package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue_vue_type_script_setup_true_lang.js +40 -0
  607. package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue.js +6 -0
  608. package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue_vue_type_script_setup_true_lang.js +78 -0
  609. package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue.js +6 -0
  610. package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue_vue_type_script_setup_true_lang.js +50 -0
  611. package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue.js +4 -0
  612. package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue_vue_type_script_setup_true_lang.js +79 -0
  613. package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue.js +4 -0
  614. package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue_vue_type_script_setup_true_lang.js +46 -0
  615. package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue.js +4 -0
  616. package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue_vue_type_script_setup_true_lang.js +85 -0
  617. package/dist/embed/packages/histoire-controls/src/components/design-tokens/HstTokenGrid.vue.js +1 -0
  618. package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue.js +6 -0
  619. package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue_vue_type_script_setup_true_lang.js +146 -0
  620. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue.js +6 -0
  621. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue_vue_type_script_setup_true_lang.js +175 -0
  622. package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditorAsync.js +22 -0
  623. package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue.js +4 -0
  624. package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue_vue_type_script_setup_true_lang.js +107 -0
  625. package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue.js +4 -0
  626. package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue_vue_type_script_setup_true_lang.js +207 -0
  627. package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue.js +4 -0
  628. package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue_vue_type_script_setup_true_lang.js +78 -0
  629. package/dist/embed/packages/histoire-controls/src/components/slider/HstSlider.vue.js +1 -0
  630. package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue.js +4 -0
  631. package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue_vue_type_script_setup_true_lang.js +67 -0
  632. package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue.js +4 -0
  633. package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue_vue_type_script_setup_true_lang.js +65 -0
  634. package/dist/embed/packages/histoire-controls/src/context.js +17 -0
  635. package/dist/embed/packages/histoire-controls/src/field.js +43 -0
  636. package/dist/embed/packages/histoire-controls/src/index.js +30 -0
  637. package/dist/embed/packages/histoire-controls/src/loading/LoadingDelayBoundary.js +13 -0
  638. package/dist/embed/packages/histoire-controls/src/loading/use-loading-delay.js +24 -0
  639. package/dist/embed/packages/histoire-controls/src/model.js +28 -0
  640. package/dist/embed/packages/histoire-controls/src/options.js +12 -0
  641. package/dist/embed/packages/histoire-controls/src/overlay/appearance.js +64 -0
  642. package/dist/embed/packages/histoire-controls/src/overlay/focus.js +81 -0
  643. package/dist/embed/packages/histoire-controls/src/overlay/tooltip.js +116 -0
  644. package/dist/embed/packages/histoire-controls/src/utils.js +15 -0
  645. package/dist/embed/packages/histoire-vue/src/components/controls/GenericControls.js +40 -0
  646. package/dist/embed/packages/histoire-vue/src/components/controls/HistoireControls.js +203 -0
  647. package/dist/embed/packages/histoire-vue/src/components/controls/PresetMenu.js +267 -0
  648. package/dist/embed/packages/histoire-vue/src/components/controls/PropControl.js +85 -0
  649. package/dist/embed/packages/histoire-vue/src/components/controls/StateControl.js +34 -0
  650. package/dist/embed/packages/histoire-vue/src/components/controls/StatePresets.js +127 -0
  651. package/dist/embed/packages/histoire-vue/src/components/controls/edit.js +80 -0
  652. package/dist/embed/packages/histoire-vue/src/components/controls/editor.js +29 -0
  653. package/dist/embed/packages/histoire-vue/src/components/docs/HistoireDocs.js +149 -0
  654. package/dist/embed/packages/histoire-vue/src/components/docs/anchors.js +21 -0
  655. package/dist/embed/packages/histoire-vue/src/components/docs/content.js +12 -0
  656. package/dist/embed/packages/histoire-vue/src/components/docs/links.js +81 -0
  657. package/dist/embed/packages/histoire-vue/src/components/docs/sanitize.js +30 -0
  658. package/dist/embed/packages/histoire-vue/src/components/embed/EmbedPanels.js +64 -0
  659. package/dist/embed/packages/histoire-vue/src/components/embed/HistoireEmbed.js +99 -0
  660. package/dist/embed/packages/histoire-vue/src/components/embed/geometry.js +39 -0
  661. package/dist/embed/packages/histoire-vue/src/components/events/HistoireEvents.js +116 -0
  662. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerNavigation.js +23 -0
  663. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPanels.js +121 -0
  664. package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPreview.js +136 -0
  665. package/dist/embed/packages/histoire-vue/src/components/explorer/HistoireExplorer.js +58 -0
  666. package/dist/embed/packages/histoire-vue/src/components/explorer/panel-tabs.js +69 -0
  667. package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionOutlet.js +48 -0
  668. package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionView.js +76 -0
  669. package/dist/embed/packages/histoire-vue/src/components/extensions/panel-action.js +33 -0
  670. package/dist/embed/packages/histoire-vue/src/components/extensions/state-renderer.js +65 -0
  671. package/dist/embed/packages/histoire-vue/src/components/extensions/view-lifecycle.js +109 -0
  672. package/dist/embed/packages/histoire-vue/src/components/extensions/workbench-components.js +134 -0
  673. package/dist/embed/packages/histoire-vue/src/components/preview/HistoirePreview.js +5 -0
  674. package/dist/embed/packages/histoire-vue/src/components/preview/surface.js +130 -0
  675. package/dist/embed/packages/histoire-vue/src/components/search/HistoireSearch.js +106 -0
  676. package/dist/embed/packages/histoire-vue/src/components/source/HistoireSource.js +147 -0
  677. package/dist/embed/packages/histoire-vue/src/components/source/content.js +15 -0
  678. package/dist/embed/packages/histoire-vue/src/components/source/highlight.js +32 -0
  679. package/dist/embed/packages/histoire-vue/src/components/source/render.js +15 -0
  680. package/dist/embed/packages/histoire-vue/src/components/tests/HistoireTests.js +119 -0
  681. package/dist/embed/packages/histoire-vue/src/components/tests/TestsRunActions.js +186 -0
  682. package/dist/embed/packages/histoire-vue/src/components/tests/render.js +147 -0
  683. package/dist/embed/packages/histoire-vue/src/components/toolbar/HistoireToolbar.js +145 -0
  684. package/dist/embed/packages/histoire-vue/src/components/toolbar/ToolbarExtensions.js +89 -0
  685. package/dist/embed/packages/histoire-vue/src/components/toolbar/groups.js +25 -0
  686. package/dist/embed/packages/histoire-vue/src/components/tree/HistoireStoryTree.js +90 -0
  687. package/dist/embed/packages/histoire-vue/src/composables/snapshot.js +11 -0
  688. package/dist/embed/packages/histoire-vue/src/content/controller.js +66 -0
  689. package/dist/embed/packages/histoire-vue/src/foundation/VirtualList.js +156 -0
  690. package/dist/embed/packages/histoire-vue/src/foundation/floating.js +80 -0
  691. package/dist/embed/packages/histoire-vue/src/foundation/parts.js +18 -0
  692. package/dist/embed/packages/histoire-vue/src/overlays/OverlayHost.js +138 -0
  693. package/dist/embed/packages/histoire-vue/src/overlays/geometry.js +14 -0
  694. package/dist/embed/packages/histoire-vue/src/overlays/menu-bounds.js +46 -0
  695. package/dist/embed/packages/histoire-vue/src/provider/HistoireProvider.js +198 -0
  696. package/dist/embed/packages/histoire-vue/src/provider/context.js +17 -0
  697. package/dist/embed/packages/histoire-vue/src/provider/extensions.js +150 -0
  698. package/dist/embed/packages/histoire-vue/src/provider/panels.js +51 -0
  699. package/dist/embed/packages/histoire-vue/src/provider/plugin-shortcuts.js +75 -0
  700. package/dist/embed/packages/histoire-vue/src/provider/shortcuts.js +56 -0
  701. package/dist/embed/packages/histoire-vue/src/provider/theme.js +23 -0
  702. package/dist/embed/packages/histoire-vue/src/search/navigation.js +51 -0
  703. package/dist/embed/packages/histoire-vue/src/tests/collector.js +49 -0
  704. package/dist/embed/packages/histoire-vue/src/tests/controller.js +114 -0
  705. package/dist/embed/packages/histoire-vue/src/tests/model.js +29 -0
  706. package/dist/embed/search-match.d.ts +23 -0
  707. package/dist/embed/search-match.js +51 -0
  708. package/dist/embed/search.d.ts +5 -0
  709. package/dist/embed/search.js +54 -0
  710. package/dist/embed/source.d.ts +4 -0
  711. package/dist/embed/source.js +151 -0
  712. package/dist/embed/subscriptions.d.ts +10 -0
  713. package/dist/embed/subscriptions.js +49 -0
  714. package/dist/embed/surfaces.d.ts +44 -0
  715. package/dist/embed/surfaces.js +22 -0
  716. package/dist/embed/types.d.ts +24 -0
  717. package/dist/embed/view-session.d.ts +16 -0
  718. package/dist/embed/view-session.js +196 -0
  719. package/dist/fonts/SOURCES.txt +2 -0
  720. package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  721. package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  722. package/dist/fonts/jetbrains-mono.LICENSE +93 -0
  723. package/dist/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
  724. package/dist/fonts/manrope-latin-wght-normal.woff2 +0 -0
  725. package/dist/fonts/manrope.LICENSE +93 -0
  726. package/dist/style.css +8195 -2836
  727. package/package.json +34 -14
  728. package/postcss-scope-wrapper.cjs +21 -22
  729. package/postcss.config.cjs +2 -4
  730. package/scripts/asset-path.mjs +8 -0
  731. package/scripts/copy.mjs +4 -5
  732. package/scripts/generate-fonts.mjs +42 -0
  733. package/scripts/generate-icons.mjs +28 -0
  734. package/scripts/module-file-name.mjs +8 -0
  735. package/scripts/watchAndCopy.mjs +8 -5
  736. package/src/app/App.vue +27 -167
  737. package/src/app/api.ts +8 -1
  738. package/src/app/components/agents/AgentLogo.vue +31 -0
  739. package/src/app/components/agents/PermissionPrompt.vue +74 -0
  740. package/src/app/components/base/BaseButton.vue +13 -23
  741. package/src/app/components/base/BaseChip.vue +21 -0
  742. package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
  743. package/src/app/components/base/overflow/BaseOverflowToolbar.vue +111 -0
  744. package/src/app/components/base/overflow/BaseOverflowToolbarItem.vue +36 -0
  745. package/src/app/components/base/overflow/context.ts +47 -0
  746. package/src/app/components/base/overflow/fit.ts +28 -0
  747. package/src/app/components/base/overflow/layout.ts +174 -0
  748. package/src/app/components/base/overflow/measurement.ts +70 -0
  749. package/src/app/components/base/overflow/presentation.ts +12 -0
  750. package/src/app/components/base/popover/BasePopover.vue +147 -0
  751. package/src/app/components/base/popover/PopoverDivider.vue +12 -0
  752. package/src/app/components/base/popover/PopoverError.vue +12 -0
  753. package/src/app/components/base/popover/PopoverMeta.vue +10 -0
  754. package/src/app/components/base/popover/PopoverRow.vue +19 -0
  755. package/src/app/components/base/popover/PopoverTitle.vue +16 -0
  756. package/src/app/components/base/popover/overlay.ts +21 -0
  757. package/src/app/components/base/popover/position.ts +54 -0
  758. package/src/app/components/base/popover/scope.ts +45 -0
  759. package/src/app/components/base/use-menu-keyboard.ts +61 -0
  760. package/src/app/components/canvas/AgentCursor.vue +66 -0
  761. package/src/app/components/canvas/CanvasFrame.vue +206 -0
  762. package/src/app/components/canvas/CanvasHeader.vue +35 -0
  763. package/src/app/components/canvas/CanvasHintBar.vue +16 -0
  764. package/src/app/components/canvas/CanvasHintButton.vue +18 -0
  765. package/src/app/components/canvas/CanvasHintItem.vue +16 -0
  766. package/src/app/components/canvas/CanvasHintKey.vue +10 -0
  767. package/src/app/components/canvas/CanvasLoadingIndicator.vue +9 -0
  768. package/src/app/components/canvas/CanvasMatrixPrimary.vue +147 -0
  769. package/src/app/components/canvas/CanvasMeasureHint.vue +57 -0
  770. package/src/app/components/canvas/CanvasReplicaPreview.vue +88 -0
  771. package/src/app/components/canvas/CanvasSingleVariant.vue +75 -0
  772. package/src/app/components/canvas/CanvasStatus.vue +53 -0
  773. package/src/app/components/canvas/CanvasViewport.vue +302 -0
  774. package/src/app/components/canvas/CollectErrorCard.vue +22 -0
  775. package/src/app/components/canvas/FrameGrid.vue +14 -0
  776. package/src/app/components/canvas/FrameList.vue +14 -0
  777. package/src/app/components/canvas/FramePaddingAligners.vue +44 -0
  778. package/src/app/components/canvas/MeasureBoxModel.vue +47 -0
  779. package/src/app/components/canvas/MeasureGuides.vue +30 -0
  780. package/src/app/components/canvas/MeasureOverlay.vue +252 -0
  781. package/src/app/components/canvas/SingleVariantResizeHandle.vue +11 -0
  782. package/src/app/components/canvas/SingleVariantResizeHandles.vue +134 -0
  783. package/src/app/components/canvas/active-tool.ts +9 -0
  784. package/src/app/components/canvas/agent-cursor.ts +57 -0
  785. package/src/app/components/canvas/canvas-extensions.ts +87 -0
  786. package/src/app/components/canvas/canvas-header-editor.ts +84 -0
  787. package/src/app/components/canvas/canvas-overlay-occlusion.ts +20 -0
  788. package/src/app/components/canvas/canvas-startup-activity.ts +46 -0
  789. package/src/app/components/canvas/content-measure.ts +92 -0
  790. package/src/app/components/canvas/content-sizes.ts +37 -0
  791. package/src/app/components/canvas/frame-activation.ts +49 -0
  792. package/src/app/components/canvas/frame-admission.ts +42 -0
  793. package/src/app/components/canvas/frame-badges.ts +74 -0
  794. package/src/app/components/canvas/frame-focus.ts +31 -0
  795. package/src/app/components/canvas/frame-interactions.ts +81 -0
  796. package/src/app/components/canvas/frame-layout.ts +179 -0
  797. package/src/app/components/canvas/frame-menu.ts +13 -0
  798. package/src/app/components/canvas/frame-props-override.ts +108 -0
  799. package/src/app/components/canvas/frame-registration.ts +12 -0
  800. package/src/app/components/canvas/frame-replica.ts +34 -0
  801. package/src/app/components/canvas/frame-requests.ts +8 -0
  802. package/src/app/components/canvas/frame-runtime.ts +100 -0
  803. package/src/app/components/canvas/frame-selection.ts +90 -0
  804. package/src/app/components/canvas/frame-source.ts +10 -0
  805. package/src/app/components/canvas/frame-startup-coordinator.ts +250 -0
  806. package/src/app/components/canvas/frame-startup-lifecycle.ts +197 -0
  807. package/src/app/components/canvas/frame-state.ts +92 -0
  808. package/src/app/components/canvas/frame-target.ts +21 -0
  809. package/src/app/components/canvas/frames/acquire-story-frame.ts +240 -0
  810. package/src/app/components/canvas/frames/frame-leases.ts +204 -0
  811. package/src/app/components/canvas/frames/frame-ledger.ts +79 -0
  812. package/src/app/components/canvas/frames/story-frame-session.ts +156 -0
  813. package/src/app/components/canvas/frames/viewport-frames.ts +49 -0
  814. package/src/app/components/canvas/matrix/MatrixAvailabilityState.vue +51 -0
  815. package/src/app/components/canvas/matrix/MatrixAxisBar.vue +32 -0
  816. package/src/app/components/canvas/matrix/MatrixAxisEntry.vue +85 -0
  817. package/src/app/components/canvas/matrix/MatrixAxisForm.vue +16 -0
  818. package/src/app/components/canvas/matrix/MatrixAxisFormActions.vue +12 -0
  819. package/src/app/components/canvas/matrix/MatrixBaseProp.vue +59 -0
  820. package/src/app/components/canvas/matrix/MatrixCell.vue +113 -0
  821. package/src/app/components/canvas/matrix/MatrixCustomAxes.vue +71 -0
  822. package/src/app/components/canvas/matrix/MatrixCustomValues.vue +52 -0
  823. package/src/app/components/canvas/matrix/MatrixInspector.vue +124 -0
  824. package/src/app/components/canvas/matrix/MatrixNumericValues.vue +95 -0
  825. package/src/app/components/canvas/matrix/MatrixView.vue +125 -0
  826. package/src/app/components/canvas/matrix/MatrixVisualActions.vue +52 -0
  827. package/src/app/components/canvas/matrix/matrix-layout.ts +81 -0
  828. package/src/app/components/canvas/matrix/matrix-registration.ts +42 -0
  829. package/src/app/components/canvas/matrix/matrix-selection.ts +18 -0
  830. package/src/app/components/canvas/measure-controller.ts +205 -0
  831. package/src/app/components/canvas/measure-geometry.ts +158 -0
  832. package/src/app/components/canvas/measure-labels.ts +130 -0
  833. package/src/app/components/canvas/measure-owner.ts +31 -0
  834. package/src/app/components/canvas/overlays/CanvasPluginLayers.vue +22 -0
  835. package/src/app/components/canvas/overlays/FrameLayer.vue +28 -0
  836. package/src/app/components/canvas/overlays/OverlayItem.vue +26 -0
  837. package/src/app/components/canvas/overlays/OverlayLayer.vue +32 -0
  838. package/src/app/components/canvas/overlays/frame-overlays.ts +83 -0
  839. package/src/app/components/canvas/pan/usePanZoom.ts +147 -0
  840. package/src/app/components/canvas/pan/usePointerPan.ts +99 -0
  841. package/src/app/components/canvas/pan/useSpacePan.ts +89 -0
  842. package/src/app/components/canvas/sandbox-boot-gate.ts +63 -0
  843. package/src/app/components/canvas/single-resize.ts +194 -0
  844. package/src/app/components/canvas/single-viewport.ts +46 -0
  845. package/src/app/components/canvas/single-zoom.ts +10 -0
  846. package/src/app/components/canvas/snapshots/capture.ts +107 -0
  847. package/src/app/components/canvas/snapshots/document.ts +24 -0
  848. package/src/app/components/canvas/snapshots/store.ts +127 -0
  849. package/src/app/components/canvas/snapshots/useFrameSnapshot.ts +98 -0
  850. package/src/app/components/canvas/story-frame-size.ts +15 -0
  851. package/src/app/components/canvas/story-view-binding.ts +187 -0
  852. package/src/app/components/canvas/toolbar/ArrangeSwitch.vue +25 -0
  853. package/src/app/components/canvas/toolbar/BackgroundPicker.vue +77 -0
  854. package/src/app/components/canvas/toolbar/CanvasToolbar.vue +157 -0
  855. package/src/app/components/canvas/toolbar/PluginToolbarItem.vue +74 -0
  856. package/src/app/components/canvas/toolbar/ScreenshotPopover.vue +195 -0
  857. package/src/app/components/canvas/toolbar/ScreenshotSetup.vue +193 -0
  858. package/src/app/components/canvas/toolbar/SearchMatchStepper.vue +27 -0
  859. package/src/app/components/canvas/toolbar/ToolSwitch.vue +38 -0
  860. package/src/app/components/canvas/toolbar/ToolbarButton.vue +52 -0
  861. package/src/app/components/canvas/toolbar/ToolbarPopover.vue +57 -0
  862. package/src/app/components/canvas/toolbar/ViewportMenu.vue +135 -0
  863. package/src/app/components/canvas/toolbar/ZoomMenu.vue +60 -0
  864. package/src/app/components/canvas/toolbar/bounds.ts +30 -0
  865. package/src/app/components/canvas/toolbar/session-settings.ts +16 -0
  866. package/src/app/components/canvas/toolbar/settings.ts +25 -0
  867. package/src/app/components/canvas/toolbar/shortcuts.ts +20 -0
  868. package/src/app/components/canvas/toolbar/use-screenshot-setup.ts +183 -0
  869. package/src/app/components/canvas/toolbar/viewport-size.ts +34 -0
  870. package/src/app/components/canvas/tools/PluginToolLayer.vue +50 -0
  871. package/src/app/components/canvas/tools/plugin-tool.ts +158 -0
  872. package/src/app/components/canvas/tools/plugin-tools.ts +134 -0
  873. package/src/app/components/canvas/useCanvasContentSizing.ts +69 -0
  874. package/src/app/components/canvas/useCanvasGeometry.ts +99 -0
  875. package/src/app/components/canvas/useCanvasHeaderOcclusion.ts +52 -0
  876. package/src/app/components/canvas/useCanvasPan.ts +46 -0
  877. package/src/app/components/canvas/useCanvasVariantSize.ts +40 -0
  878. package/src/app/components/canvas/useSingleVariantGeometry.ts +35 -0
  879. package/src/app/components/canvas/useSingleVariantPan.ts +78 -0
  880. package/src/app/components/canvas/useSingleVariantZoom.ts +58 -0
  881. package/src/app/components/canvas/viewport-events.ts +105 -0
  882. package/src/app/components/canvas/views/PluginCanvasView.vue +59 -0
  883. package/src/app/components/canvas/views/canvas-views.ts +119 -0
  884. package/src/app/components/canvas/views/view-input.ts +20 -0
  885. package/src/app/components/command/CommandPrompts.vue +31 -23
  886. package/src/app/components/command/PromptSelect.vue +27 -23
  887. package/src/app/components/command/PromptText.vue +10 -8
  888. package/src/app/components/comments/CommentComposer.vue +78 -0
  889. package/src/app/components/comments/CommentContext.vue +56 -0
  890. package/src/app/components/comments/CommentContextChip.vue +21 -0
  891. package/src/app/components/comments/CommentPin.vue +31 -0
  892. package/src/app/components/comments/CommentThread.vue +113 -0
  893. package/src/app/components/comments/CommentsCanvasOverlay.vue +172 -0
  894. package/src/app/components/comments/capture.ts +45 -0
  895. package/src/app/components/comments/destination.ts +45 -0
  896. package/src/app/components/comments/dismiss-outside.ts +44 -0
  897. package/src/app/components/comments/frame-geometry.ts +28 -0
  898. package/src/app/components/comments/pick.ts +83 -0
  899. package/src/app/components/comments/presentation.ts +85 -0
  900. package/src/app/components/comments/prompt/AgentPrompt.vue +188 -0
  901. package/src/app/components/comments/prompt/AttachMenuPanel.vue +67 -0
  902. package/src/app/components/comments/prompt/AttachmentStrip.vue +54 -0
  903. package/src/app/components/comments/prompt/AttachmentTile.vue +41 -0
  904. package/src/app/components/comments/prompt/AttachmentViewer.vue +37 -0
  905. package/src/app/components/comments/prompt/ContextChip.vue +28 -0
  906. package/src/app/components/comments/prompt/PromptAttachMenu.vue +52 -0
  907. package/src/app/components/comments/prompt/PromptMenu.vue +51 -0
  908. package/src/app/components/comments/prompt/PromptSuggestions.vue +33 -0
  909. package/src/app/components/comments/prompt/SessionPicker.vue +49 -0
  910. package/src/app/components/comments/prompt/SessionPopover.vue +21 -0
  911. package/src/app/components/comments/prompt/SessionRadioList.vue +30 -0
  912. package/src/app/components/comments/prompt/SessionSettings.vue +71 -0
  913. package/src/app/components/comments/prompt/actions.ts +85 -0
  914. package/src/app/components/comments/prompt/attachment-meta.ts +28 -0
  915. package/src/app/components/comments/prompt/attachments.ts +121 -0
  916. package/src/app/components/comments/prompt/autogrow.ts +20 -0
  917. package/src/app/components/comments/prompt/menu-trigger.ts +28 -0
  918. package/src/app/components/comments/prompt/plan-follow-up.ts +23 -0
  919. package/src/app/components/comments/prompt/session-labels.ts +36 -0
  920. package/src/app/components/comments/prompt/suggestions.ts +140 -0
  921. package/src/app/components/comments/reply-draft.ts +42 -0
  922. package/src/app/components/comments/thread/AgentActivityPhase.vue +46 -0
  923. package/src/app/components/comments/thread/AgentDisclosure.vue +12 -0
  924. package/src/app/components/comments/thread/AgentLiveTail.vue +54 -0
  925. package/src/app/components/comments/thread/AgentMarkdown.vue +32 -0
  926. package/src/app/components/comments/thread/AgentPlan.vue +39 -0
  927. package/src/app/components/comments/thread/AgentPlanDecision.vue +29 -0
  928. package/src/app/components/comments/thread/ThreadMessage.vue +70 -0
  929. package/src/app/components/comments/thread/activity-phases.ts +105 -0
  930. package/src/app/components/comments/thread/markdown.ts +32 -0
  931. package/src/app/components/comments/thread/questions/AgentElicitation.vue +34 -0
  932. package/src/app/components/comments/thread/questions/AgentPendingInput.vue +67 -0
  933. package/src/app/components/comments/thread/questions/AgentPlanApproval.vue +36 -0
  934. package/src/app/components/comments/thread/questions/ElicitationField.vue +74 -0
  935. package/src/app/components/comments/thread/questions/ElicitationForm.vue +54 -0
  936. package/src/app/components/comments/thread/questions/ElicitationLink.vue +64 -0
  937. package/src/app/components/comments/thread/questions/ElicitationOptions.vue +101 -0
  938. package/src/app/components/comments/thread/questions/QuestionActions.vue +12 -0
  939. package/src/app/components/comments/thread/questions/QuestionInput.vue +3 -0
  940. package/src/app/components/comments/thread/questions/QuestionOption.vue +13 -0
  941. package/src/app/components/comments/thread/questions/QuestionOptionLabel.vue +12 -0
  942. package/src/app/components/comments/thread/questions/elicitation-fields.ts +66 -0
  943. package/src/app/components/comments/thread/questions/use-expiry-countdown.ts +31 -0
  944. package/src/app/components/comments/thread/stick-to-bottom.ts +43 -0
  945. package/src/app/components/embed/EmbedDialog.vue +204 -0
  946. package/src/app/components/embed/EmbedMenu.vue +38 -0
  947. package/src/app/components/embed/actions.ts +21 -0
  948. package/src/app/components/embed/controller.ts +74 -0
  949. package/src/app/components/embed/snippets.ts +124 -0
  950. package/src/app/components/extensions/ExtensionOutlet.vue +58 -0
  951. package/src/app/components/extensions/ExtensionView.vue +79 -0
  952. package/src/app/components/extensions/workbench-components.ts +23 -0
  953. package/src/app/components/inspector/DocsTab.vue +20 -0
  954. package/src/app/components/inspector/EventsBadge.vue +9 -0
  955. package/src/app/components/inspector/EventsTab.vue +29 -0
  956. package/src/app/components/inspector/InspectorExtensionOutlet.vue +31 -0
  957. package/src/app/components/inspector/InspectorGuideLink.vue +21 -0
  958. package/src/app/components/inspector/InspectorHeader.vue +36 -0
  959. package/src/app/components/inspector/InspectorTabs.vue +103 -0
  960. package/src/app/components/inspector/PropsTab.vue +33 -0
  961. package/src/app/components/inspector/SourceAction.vue +14 -0
  962. package/src/app/components/inspector/SourceDrawer.vue +188 -0
  963. package/src/app/components/inspector/StoryInspector.vue +149 -0
  964. package/src/app/components/inspector/TestsBadge.vue +14 -0
  965. package/src/app/components/inspector/TestsTab.vue +29 -0
  966. package/src/app/components/inspector/builtins.ts +36 -0
  967. package/src/app/components/inspector/inspection/InspectionAccessibility.vue +56 -0
  968. package/src/app/components/inspector/inspection/InspectionComponents.vue +48 -0
  969. package/src/app/components/inspector/inspection/InspectionPanel.vue +107 -0
  970. package/src/app/components/inspector/inspection/frame-owner.ts +13 -0
  971. package/src/app/components/inspector/inspection/picker.ts +80 -0
  972. package/src/app/components/inspector/inspection/plugin.ts +111 -0
  973. package/src/app/components/inspector/inspection/use-inspection.ts +227 -0
  974. package/src/app/components/inspector/model.ts +79 -0
  975. package/src/app/components/inspector/plugin-tabs.ts +78 -0
  976. package/src/app/components/inspector/state.ts +131 -0
  977. package/src/app/components/inspector/tab-overflow.ts +127 -0
  978. package/src/app/components/lists/WorkbenchVirtualList.vue +41 -0
  979. package/src/app/components/marketplace/browse/CatalogState.vue +32 -0
  980. package/src/app/components/marketplace/browse/CollectionRow.vue +36 -0
  981. package/src/app/components/marketplace/browse/DiscoverHero.vue +43 -0
  982. package/src/app/components/marketplace/browse/FacetPanel.vue +73 -0
  983. package/src/app/components/marketplace/browse/MarketplaceAll.vue +46 -0
  984. package/src/app/components/marketplace/browse/MarketplaceDiscover.vue +53 -0
  985. package/src/app/components/marketplace/browse/MatchText.vue +28 -0
  986. package/src/app/components/marketplace/browse/NoResults.vue +63 -0
  987. package/src/app/components/marketplace/browse/PluginCard.vue +61 -0
  988. package/src/app/components/marketplace/browse/PluginInstallAction.vue +22 -0
  989. package/src/app/components/marketplace/browse/ResultsBar.vue +38 -0
  990. package/src/app/components/marketplace/browse/catalog-client.ts +52 -0
  991. package/src/app/components/marketplace/browse/catalog-collections.ts +37 -0
  992. package/src/app/components/marketplace/browse/labels.ts +11 -0
  993. package/src/app/components/marketplace/browse/plugin-actions.ts +7 -0
  994. package/src/app/components/marketplace/browse/use-catalog-filters.ts +50 -0
  995. package/src/app/components/marketplace/browse/use-catalog-query.ts +67 -0
  996. package/src/app/components/marketplace/detail/ChangelogTab.vue +31 -0
  997. package/src/app/components/marketplace/detail/DetailHeader.vue +91 -0
  998. package/src/app/components/marketplace/detail/MarketplaceDetail.vue +83 -0
  999. package/src/app/components/marketplace/detail/MetaList.vue +76 -0
  1000. package/src/app/components/marketplace/detail/OptionsTab.vue +48 -0
  1001. package/src/app/components/marketplace/detail/OverviewTab.vue +31 -0
  1002. package/src/app/components/marketplace/detail/VersionsTab.vue +24 -0
  1003. package/src/app/components/marketplace/detail/use-plugin-detail.ts +48 -0
  1004. package/src/app/components/marketplace/install/CommandBlock.vue +15 -0
  1005. package/src/app/components/marketplace/install/ConfigDiff.vue +23 -0
  1006. package/src/app/components/marketplace/install/FailureStep.vue +59 -0
  1007. package/src/app/components/marketplace/install/InstallFooter.vue +17 -0
  1008. package/src/app/components/marketplace/install/ManualStep.vue +87 -0
  1009. package/src/app/components/marketplace/install/MarketplaceInstall.vue +121 -0
  1010. package/src/app/components/marketplace/install/OptionField.vue +46 -0
  1011. package/src/app/components/marketplace/install/OptionsStep.vue +43 -0
  1012. package/src/app/components/marketplace/install/OutputLog.vue +22 -0
  1013. package/src/app/components/marketplace/install/ProgressStep.vue +60 -0
  1014. package/src/app/components/marketplace/install/ReviewStep.vue +75 -0
  1015. package/src/app/components/marketplace/install/WizardSteps.vue +27 -0
  1016. package/src/app/components/marketplace/install/manual-instructions.ts +18 -0
  1017. package/src/app/components/marketplace/install/use-copy.ts +15 -0
  1018. package/src/app/components/marketplace/install/use-install-plan.ts +59 -0
  1019. package/src/app/components/marketplace/install/use-install-wizard.ts +166 -0
  1020. package/src/app/components/marketplace/shell/MarketplaceHeader.vue +46 -0
  1021. package/src/app/components/marketplace/shell/MarketplaceModal.vue +52 -0
  1022. package/src/app/components/marketplace/shell/MarketplaceView.vue +16 -0
  1023. package/src/app/components/marketplace/shell/PluginTile.vue +44 -0
  1024. package/src/app/components/marketplace/shell/compatibility-reason.ts +4 -0
  1025. package/src/app/components/marketplace/shell/job-progress-label.ts +22 -0
  1026. package/src/app/components/marketplace/shell/marketplace-jobs.ts +115 -0
  1027. package/src/app/components/marketplace/shell/marketplace-prefs.ts +18 -0
  1028. package/src/app/components/marketplace/shell/marketplace-reads.ts +16 -0
  1029. package/src/app/components/marketplace/shell/marketplace-services.ts +17 -0
  1030. package/src/app/components/marketplace/shell/use-marketplace-keys.ts +34 -0
  1031. package/src/app/components/marketplace/shell/workbench-plugin-id.ts +5 -0
  1032. package/src/app/components/marketplace/spotlight/MarketplaceSpotlightHost.vue +10 -0
  1033. package/src/app/components/marketplace/spotlight/SpotlightCard.vue +95 -0
  1034. package/src/app/components/marketplace/spotlight/use-post-install-spotlight.ts +173 -0
  1035. package/src/app/components/marketplace/spotlight/use-spotlight-targets.ts +80 -0
  1036. package/src/app/components/marketplace/update/MarketplaceUpdateBody.vue +98 -0
  1037. package/src/app/components/marketplace/update/MarketplaceUpdateDialog.vue +40 -0
  1038. package/src/app/components/marketplace/update/ReleaseNotes.vue +27 -0
  1039. package/src/app/components/marketplace/update/use-update-dialog.ts +118 -0
  1040. package/src/app/components/menu/ContextMenu.vue +118 -0
  1041. package/src/app/components/menu/MenuItem.vue +12 -0
  1042. package/src/app/components/menu/SubMenu.vue +48 -0
  1043. package/src/app/components/misc/HatchedPattern.vue +1 -11
  1044. package/src/app/components/pages/home/BrowseSections.vue +39 -0
  1045. package/src/app/components/pages/home/DevBrowseStatus.vue +25 -0
  1046. package/src/app/components/pages/home/GuidesList.vue +31 -0
  1047. package/src/app/components/pages/home/HomeCard.vue +12 -0
  1048. package/src/app/components/pages/home/HomeHeader.vue +30 -0
  1049. package/src/app/components/pages/home/HomeHeading.vue +12 -0
  1050. package/src/app/components/pages/home/HomePage.vue +102 -0
  1051. package/src/app/components/pages/home/HomeRow.vue +18 -0
  1052. package/src/app/components/pages/home/HomeSearch.vue +22 -0
  1053. package/src/app/components/pages/home/NeedsAttention.vue +47 -0
  1054. package/src/app/components/pages/home/PluginHomeSections.vue +44 -0
  1055. package/src/app/components/pages/home/UpdatesList.vue +46 -0
  1056. package/src/app/components/pages/home/catalog.spec.ts +53 -0
  1057. package/src/app/components/pages/home/catalog.ts +59 -0
  1058. package/src/app/components/pages/home/ownership.spec.ts +14 -0
  1059. package/src/app/components/pages/home/ownership.ts +48 -0
  1060. package/src/app/components/pages/markdown/MarkdownOutline.vue +26 -0
  1061. package/src/app/components/pages/markdown/MarkdownPage.vue +141 -0
  1062. package/src/app/components/pages/markdown/MarkdownPager.vue +30 -0
  1063. package/src/app/components/pages/markdown/navigation.spec.ts +18 -0
  1064. package/src/app/components/pages/markdown/navigation.ts +9 -0
  1065. package/src/app/components/pages/markdown/outline-dom.spec.ts +28 -0
  1066. package/src/app/components/pages/markdown/outline-dom.ts +37 -0
  1067. package/src/app/components/pages/markdown/outline.ts +36 -0
  1068. package/src/app/components/pages/settings/AboutSection.vue +27 -0
  1069. package/src/app/components/pages/settings/AgentAdvancedSettings.vue +135 -0
  1070. package/src/app/components/pages/settings/AgentArgumentsField.vue +49 -0
  1071. package/src/app/components/pages/settings/AgentEnvironmentField.vue +67 -0
  1072. package/src/app/components/pages/settings/AgentLaunchField.vue +19 -0
  1073. package/src/app/components/pages/settings/AgentModelSettings.vue +51 -0
  1074. package/src/app/components/pages/settings/AgentPresetRow.vue +79 -0
  1075. package/src/app/components/pages/settings/AgentsSection.vue +149 -0
  1076. package/src/app/components/pages/settings/AppearanceSection.vue +60 -0
  1077. package/src/app/components/pages/settings/BackgroundsSection.vue +96 -0
  1078. package/src/app/components/pages/settings/GeneralSection.vue +33 -0
  1079. package/src/app/components/pages/settings/McpSection.vue +48 -0
  1080. package/src/app/components/pages/settings/PluginsSection.vue +109 -0
  1081. package/src/app/components/pages/settings/ProjectSourceBadge.vue +32 -0
  1082. package/src/app/components/pages/settings/SaveToProject.vue +71 -0
  1083. package/src/app/components/pages/settings/SettingsCard.vue +12 -0
  1084. package/src/app/components/pages/settings/SettingsChoices.vue +7 -0
  1085. package/src/app/components/pages/settings/SettingsNav.vue +35 -0
  1086. package/src/app/components/pages/settings/SettingsPage.vue +59 -0
  1087. package/src/app/components/pages/settings/SettingsRow.vue +20 -0
  1088. package/src/app/components/pages/settings/ShortcutsSection.vue +28 -0
  1089. package/src/app/components/pages/settings/TestsSection.vue +20 -0
  1090. package/src/app/components/pages/settings/ViewportsSection.vue +76 -0
  1091. package/src/app/components/pages/settings/plugins/InstalledPluginRow.vue +90 -0
  1092. package/src/app/components/pages/settings/plugins/MarketplacePrefs.vue +37 -0
  1093. package/src/app/components/pages/settings/plugins/PluginActionsMenu.vue +79 -0
  1094. package/src/app/components/pages/settings/plugins/PluginSettingsCard.vue +23 -0
  1095. package/src/app/components/pages/settings/plugins/builtin-logos.ts +15 -0
  1096. package/src/app/components/pages/settings/plugins/types.ts +4 -0
  1097. package/src/app/components/pages/settings/plugins/use-package-manager.ts +26 -0
  1098. package/src/app/components/pages/settings/plugins/use-plugin-updates.ts +85 -0
  1099. package/src/app/components/pages/settings/plugins/use-settings-jobs.ts +124 -0
  1100. package/src/app/components/pages/settings/project-config-preview.ts +27 -0
  1101. package/src/app/components/pages/settings/usePluginToggles.ts +111 -0
  1102. package/src/app/components/panes/ai/AiCreatedStories.vue +27 -0
  1103. package/src/app/components/panes/ai/AiPanel.vue +102 -0
  1104. package/src/app/components/panes/ai/AiThreadComposer.vue +71 -0
  1105. package/src/app/components/panes/ai/AiThreadHeader.vue +28 -0
  1106. package/src/app/components/panes/ai/AiThreadList.vue +78 -0
  1107. package/src/app/components/panes/ai/AiThreadView.vue +102 -0
  1108. package/src/app/components/panes/ai/created-stories.ts +33 -0
  1109. package/src/app/components/panes/mcp/McpActivity.vue +57 -0
  1110. package/src/app/components/panes/mcp/McpClients.vue +38 -0
  1111. package/src/app/components/panes/mcp/McpContent.vue +49 -0
  1112. package/src/app/components/panes/mcp/McpCurrentOperation.vue +36 -0
  1113. package/src/app/components/panes/mcp/McpEndpoint.vue +51 -0
  1114. package/src/app/components/panes/mcp/McpHistory.vue +39 -0
  1115. package/src/app/components/panes/search/SearchPanel.vue +288 -0
  1116. package/src/app/components/panes/search/SearchResultItem.vue +65 -0
  1117. package/src/app/components/panes/search/SearchResultList.vue +36 -0
  1118. package/src/app/components/panes/search/SearchScopes.vue +21 -0
  1119. package/src/app/components/panes/search/accessibility.ts +14 -0
  1120. package/src/app/components/panes/search/command-execution.ts +42 -0
  1121. package/src/app/components/panes/search/controller.ts +145 -0
  1122. package/src/app/components/panes/search/frame-navigation.ts +61 -0
  1123. package/src/app/components/panes/search/query.ts +114 -0
  1124. package/src/app/components/panes/stories/StoriesPanel.vue +299 -0
  1125. package/src/app/components/panes/stories/row-status.ts +49 -0
  1126. package/src/app/components/panes/stories/tree.spec.ts +79 -0
  1127. package/src/app/components/panes/stories/tree.ts +77 -0
  1128. package/src/app/components/panes/tests/FunctionalTestsPanel.vue +98 -0
  1129. package/src/app/components/panes/tests/TestsFilter.vue +15 -0
  1130. package/src/app/components/panes/tests/TestsPanel.vue +18 -0
  1131. package/src/app/components/panes/tests/TestsSummary.vue +34 -0
  1132. package/src/app/components/panes/tests/TestsTree.vue +122 -0
  1133. package/src/app/components/panes/tests/TestsTreeRow.vue +45 -0
  1134. package/src/app/components/panes/tests/capture.ts +22 -0
  1135. package/src/app/components/panes/tests/dev-runner.ts +48 -0
  1136. package/src/app/components/panes/tests/discovery.ts +201 -0
  1137. package/src/app/components/panes/tests/execution.ts +69 -0
  1138. package/src/app/components/panes/tests/model.ts +305 -0
  1139. package/src/app/components/panes/tests/projection.ts +86 -0
  1140. package/src/app/components/panes/tests/types.ts +96 -0
  1141. package/src/app/components/panes/visual/VisualImageLabel.vue +16 -0
  1142. package/src/app/components/panes/visual/VisualResultRow.vue +43 -0
  1143. package/src/app/components/panes/visual/VisualResultsList.vue +43 -0
  1144. package/src/app/components/panes/visual/VisualRunButton.vue +25 -0
  1145. package/src/app/components/panes/visual/VisualSlider.vue +91 -0
  1146. package/src/app/components/panes/visual/VisualTestsPanel.vue +112 -0
  1147. package/src/app/components/panes/visual/VisualTestsSummary.vue +37 -0
  1148. package/src/app/components/panes/visual/VisualViewer.vue +215 -0
  1149. package/src/app/components/panes/visual/VisualViewerActions.vue +41 -0
  1150. package/src/app/components/panes/visual/VisualViewerDock.vue +75 -0
  1151. package/src/app/components/panes/visual/VisualViewerDockButton.vue +15 -0
  1152. package/src/app/components/panes/visual/VisualViewerHeader.vue +86 -0
  1153. package/src/app/components/panes/visual/VisualViewerSurface.vue +19 -0
  1154. package/src/app/components/panes/visual/projection.ts +62 -0
  1155. package/src/app/components/panes/visual/status.ts +21 -0
  1156. package/src/app/components/panes/visual/viewer-focus.ts +24 -0
  1157. package/src/app/components/panes/visual/viewer-types.ts +5 -0
  1158. package/src/app/components/panes/visual/zoom.spec.ts +21 -0
  1159. package/src/app/components/panes/visual/zoom.ts +30 -0
  1160. package/src/app/components/shell/AppRail.vue +135 -0
  1161. package/src/app/components/shell/InspectorFrame.vue +31 -0
  1162. package/src/app/components/shell/PanelResizeHandle.vue +35 -0
  1163. package/src/app/components/shell/PluginPane.vue +22 -0
  1164. package/src/app/components/shell/RailButton.vue +45 -0
  1165. package/src/app/components/shell/ShellLayout.vue +104 -0
  1166. package/src/app/components/shell/SidePanelHost.vue +24 -0
  1167. package/src/app/components/shell/WorkbenchApp.vue +174 -0
  1168. package/src/app/components/shell/WorkbenchEmptyState.vue +39 -0
  1169. package/src/app/components/shell/WorkbenchErrorState.vue +37 -0
  1170. package/src/app/components/shell/WorkbenchGuideLink.vue +16 -0
  1171. package/src/app/components/shell/WorkbenchLoadingSkeleton.vue +22 -0
  1172. package/src/app/components/shell/WorkbenchLoadingState.vue +34 -0
  1173. package/src/app/components/shell/WorkbenchPaneHeader.vue +19 -0
  1174. package/src/app/components/shell/WorkbenchPaneList.vue +12 -0
  1175. package/src/app/components/shell/WorkbenchPaneToolbar.vue +17 -0
  1176. package/src/app/components/shell/WorkbenchPanelAction.vue +56 -0
  1177. package/src/app/components/shell/WorkbenchStateLayout.vue +36 -0
  1178. package/src/app/components/shell/panel-focus.ts +35 -0
  1179. package/src/app/components/shell/panel-resize.ts +83 -0
  1180. package/src/app/components/shell/rail-items.ts +63 -0
  1181. package/src/app/components/shell/shortcuts.ts +8 -0
  1182. package/src/app/components/story/GenericMountStory.vue +17 -3
  1183. package/src/app/components/story/GenericRenderStory.vue +21 -2
  1184. package/src/app/composables/agent-discovery.ts +25 -0
  1185. package/src/app/composables/canvas-settings.ts +141 -0
  1186. package/src/app/composables/context-menu.ts +156 -0
  1187. package/src/app/composables/controls-host.ts +100 -0
  1188. package/src/app/composables/extensions.ts +50 -0
  1189. package/src/app/composables/keyboard-input.ts +11 -0
  1190. package/src/app/composables/list-density.ts +14 -0
  1191. package/src/app/composables/selection.ts +25 -0
  1192. package/src/app/composables/shell-extensions.ts +40 -0
  1193. package/src/app/composables/shell.ts +18 -0
  1194. package/src/app/extensions/action-surfaces.ts +43 -0
  1195. package/src/app/extensions/canvas-service.ts +208 -0
  1196. package/src/app/extensions/commands.ts +26 -0
  1197. package/src/app/extensions/context.ts +9 -0
  1198. package/src/app/extensions/create-workbench-host.ts +137 -0
  1199. package/src/app/extensions/dev-events.ts +31 -0
  1200. package/src/app/extensions/frame-channels.ts +188 -0
  1201. package/src/app/extensions/frame-context.ts +209 -0
  1202. package/src/app/extensions/icons.ts +28 -0
  1203. package/src/app/extensions/menus.ts +138 -0
  1204. package/src/app/extensions/navigation.ts +144 -0
  1205. package/src/app/extensions/plugins.ts +7 -0
  1206. package/src/app/extensions/shell-registry.ts +87 -0
  1207. package/src/app/extensions/shortcuts.ts +54 -0
  1208. package/src/app/extensions/standalone.ts +50 -0
  1209. package/src/app/extensions/storage.ts +47 -0
  1210. package/src/app/extensions/sync.ts +57 -0
  1211. package/src/app/extensions/tests-service.ts +63 -0
  1212. package/src/app/extensions/toolbar.ts +79 -0
  1213. package/src/app/index.ts +10 -30
  1214. package/src/app/plugin.ts +37 -48
  1215. package/src/app/sandbox.ts +19 -101
  1216. package/src/app/standalone/arrangement.ts +49 -0
  1217. package/src/app/standalone/build-info.ts +10 -0
  1218. package/src/app/standalone/client-actions.ts +58 -0
  1219. package/src/app/standalone/commands.ts +115 -0
  1220. package/src/app/standalone/document.ts +30 -0
  1221. package/src/app/standalone/editable-state.ts +79 -0
  1222. package/src/app/standalone/error-handler.ts +15 -0
  1223. package/src/app/standalone/folders.ts +62 -0
  1224. package/src/app/standalone/markdown-transition.ts +46 -0
  1225. package/src/app/standalone/mount.ts +123 -0
  1226. package/src/app/standalone/navigation.ts +116 -0
  1227. package/src/app/standalone/preferences.ts +36 -0
  1228. package/src/app/standalone/presets.ts +70 -0
  1229. package/src/app/standalone/runtime-binding.ts +57 -0
  1230. package/src/app/standalone/runtime-tests.ts +46 -0
  1231. package/src/app/standalone/selection.ts +76 -0
  1232. package/src/app/standalone/session.ts +32 -0
  1233. package/src/app/standalone/tests.ts +14 -0
  1234. package/src/app/standalone/ui-visibility-menu.ts +27 -0
  1235. package/src/app/standalone/ui-visibility.ts +72 -0
  1236. package/src/app/standalone/workbench-dev.ts +208 -0
  1237. package/src/app/standalone/workbench-navigation.ts +48 -0
  1238. package/src/app/standalone/workbench-stores.ts +54 -0
  1239. package/src/app/standalone/workbench-thread-actions.ts +46 -0
  1240. package/src/app/standalone/workbench-types.ts +39 -0
  1241. package/src/app/standalone/workbench-visual.ts +74 -0
  1242. package/src/app/standalone/workbench.ts +301 -0
  1243. package/src/app/stores/agent-threads.ts +170 -0
  1244. package/src/app/stores/agents-catalog.ts +100 -0
  1245. package/src/app/stores/agents.ts +201 -0
  1246. package/src/app/stores/ai-threads.ts +151 -0
  1247. package/src/app/stores/canvas-arrangement.ts +44 -0
  1248. package/src/app/stores/canvas-preferences.ts +77 -0
  1249. package/src/app/stores/canvas-types.ts +54 -0
  1250. package/src/app/stores/canvas.ts +300 -0
  1251. package/src/app/stores/events.ts +12 -8
  1252. package/src/app/stores/marketplace.ts +229 -0
  1253. package/src/app/stores/matrix-axis-editor.ts +43 -0
  1254. package/src/app/stores/matrix-domains.ts +55 -0
  1255. package/src/app/stores/matrix-preferences.ts +85 -0
  1256. package/src/app/stores/matrix-runtime.ts +106 -0
  1257. package/src/app/stores/matrix.ts +267 -0
  1258. package/src/app/stores/mcp-activity.ts +70 -0
  1259. package/src/app/stores/mcp.ts +170 -0
  1260. package/src/app/stores/presets-config.ts +202 -0
  1261. package/src/app/stores/project-config.ts +170 -0
  1262. package/src/app/stores/project-save-persistence.ts +59 -0
  1263. package/src/app/stores/settings.ts +139 -0
  1264. package/src/app/stores/shell-widths.ts +51 -0
  1265. package/src/app/stores/shell.ts +249 -0
  1266. package/src/app/stores/story-canvas-views.ts +62 -0
  1267. package/src/app/stores/thread-drafts.ts +128 -0
  1268. package/src/app/stores/visual-approval.ts +73 -0
  1269. package/src/app/stores/visual-collection.ts +76 -0
  1270. package/src/app/stores/visual-refresh.ts +31 -0
  1271. package/src/app/stores/visual-transport.ts +85 -0
  1272. package/src/app/stores/visual.ts +293 -0
  1273. package/src/app/style/README.md +167 -0
  1274. package/src/app/style/controls.css +28 -0
  1275. package/src/app/style/density.css +38 -0
  1276. package/src/app/style/document.pcss +60 -0
  1277. package/src/app/style/fonts.pcss +1 -0
  1278. package/src/app/style/main.css +25 -0
  1279. package/src/app/style/theme.css +117 -0
  1280. package/src/app/style/tokens.pcss +135 -0
  1281. package/src/app/types.ts +3 -9
  1282. package/src/app/util/agent-catalog-rows.ts +31 -0
  1283. package/src/app/util/agent-command.ts +9 -0
  1284. package/src/app/util/agents-http.ts +25 -0
  1285. package/src/app/util/agents-transport.ts +24 -0
  1286. package/src/app/util/background.ts +63 -0
  1287. package/src/app/util/builtin-commands.ts +27 -0
  1288. package/src/app/util/catalog-target.ts +17 -0
  1289. package/src/app/util/comments-http.ts +38 -0
  1290. package/src/app/util/const.ts +29 -4
  1291. package/src/app/util/controls-appearance.ts +2 -0
  1292. package/src/app/util/controls-document.ts +26 -0
  1293. package/src/app/util/controls-overlay-anchor.ts +14 -0
  1294. package/src/app/util/dark.ts +45 -17
  1295. package/src/app/util/dev-event-api.ts +236 -0
  1296. package/src/app/util/docs.ts +13 -17
  1297. package/src/app/util/dynamic-source.ts +20 -0
  1298. package/src/app/util/event-payload.ts +30 -0
  1299. package/src/app/util/events.ts +32 -17
  1300. package/src/app/util/frame-actions.ts +204 -0
  1301. package/src/app/util/frame-screenshot.ts +68 -0
  1302. package/src/app/util/frame-variant-source.ts +111 -0
  1303. package/src/app/util/host-channel.ts +148 -0
  1304. package/src/app/util/hot.ts +5 -0
  1305. package/src/app/util/http-json.ts +30 -0
  1306. package/src/app/util/keyboard.ts +1 -82
  1307. package/src/app/util/mapping.ts +26 -5
  1308. package/src/app/util/marketplace-client.ts +180 -0
  1309. package/src/app/util/marketplace-preferences.ts +6 -0
  1310. package/src/app/util/matrix-numeric.ts +19 -0
  1311. package/src/app/util/matrix-values.ts +72 -0
  1312. package/src/app/util/matrix.ts +172 -0
  1313. package/src/app/util/preview-settings.ts +4 -0
  1314. package/src/app/util/runtime-events.ts +101 -0
  1315. package/src/app/util/screenshot-file.ts +32 -0
  1316. package/src/app/util/screenshot-targets.ts +14 -0
  1317. package/src/app/util/shortcuts.ts +111 -0
  1318. package/src/app/util/story-component.ts +51 -0
  1319. package/src/app/util/ui-channel.ts +49 -0
  1320. package/src/app/util/variant-selection.ts +43 -0
  1321. package/src/app/util/vitest-mocker-shim.ts +27 -0
  1322. package/src/bundle-embed-dev.js +6 -0
  1323. package/src/bundle-embed.js +6 -0
  1324. package/src/bundle-main-dev.js +1 -1
  1325. package/src/bundle-main.js +2 -1
  1326. package/src/bundle-sandbox-dev.js +3 -2
  1327. package/src/bundle-sandbox.js +3 -2
  1328. package/src/embed/EmbedDocument.vue +29 -0
  1329. package/src/embed/adapters/channels.ts +113 -0
  1330. package/src/embed/adapters/content-surface.ts +12 -0
  1331. package/src/embed/adapters/content-view.ts +12 -0
  1332. package/src/embed/adapters/controls-replica.ts +281 -0
  1333. package/src/embed/adapters/controls-view.ts +56 -0
  1334. package/src/embed/adapters/controls.ts +8 -0
  1335. package/src/embed/adapters/document.ts +46 -0
  1336. package/src/embed/adapters/explorer-session.ts +171 -0
  1337. package/src/embed/adapters/explorer-view.ts +65 -0
  1338. package/src/embed/adapters/explorer.ts +9 -0
  1339. package/src/embed/adapters/geometry.ts +2 -0
  1340. package/src/embed/adapters/layout.ts +92 -0
  1341. package/src/embed/adapters/lazy-surface.ts +50 -0
  1342. package/src/embed/adapters/local-mount.ts +137 -0
  1343. package/src/embed/adapters/navigation-surface.ts +11 -0
  1344. package/src/embed/adapters/navigation-view.ts +12 -0
  1345. package/src/embed/adapters/preview.ts +5 -0
  1346. package/src/embed/adapters/runtime-frame.ts +342 -0
  1347. package/src/embed/adapters/runtime-layout.ts +58 -0
  1348. package/src/embed/adapters/runtime-loading.ts +66 -0
  1349. package/src/embed/adapters/runtime-readiness.ts +53 -0
  1350. package/src/embed/adapters/runtime-requests.ts +58 -0
  1351. package/src/embed/adapters/runtime-revision.ts +32 -0
  1352. package/src/embed/adapters/sandbox-urls.ts +58 -0
  1353. package/src/embed/adapters/stale-preview.ts +59 -0
  1354. package/src/embed/adapters/state-presets.ts +134 -0
  1355. package/src/embed/adapters/state.ts +24 -0
  1356. package/src/embed/adapters/test-workers.ts +189 -0
  1357. package/src/embed/adapters/tests-surface.ts +9 -0
  1358. package/src/embed/adapters/tests-view.ts +34 -0
  1359. package/src/embed/adapters/tests.ts +27 -0
  1360. package/src/embed/capabilities.ts +12 -0
  1361. package/src/embed/color-scheme.ts +8 -0
  1362. package/src/embed/commands.ts +111 -0
  1363. package/src/embed/descriptor.ts +43 -0
  1364. package/src/embed/direct.ts +49 -0
  1365. package/src/embed/document.css +11 -0
  1366. package/src/embed/fetch.ts +61 -0
  1367. package/src/embed/handshake.ts +142 -0
  1368. package/src/embed/index.ts +36 -0
  1369. package/src/embed/lifecycle.ts +37 -0
  1370. package/src/embed/search-match.ts +50 -0
  1371. package/src/embed/search.ts +33 -0
  1372. package/src/embed/source.ts +129 -0
  1373. package/src/embed/subscriptions.ts +38 -0
  1374. package/src/embed/surfaces.ts +64 -0
  1375. package/src/embed/types.ts +26 -0
  1376. package/src/embed/view-session.ts +153 -0
  1377. package/src/embed/virtual.d.ts +13 -0
  1378. package/src/embed/vue.d.ts +6 -0
  1379. package/src/virtual.d.ts +70 -0
  1380. package/tsconfig.embed.json +11 -0
  1381. package/tsconfig.json +10 -9
  1382. package/tsconfig.workbench.json +12 -0
  1383. package/vite.config.ts +48 -21
  1384. package/vite.embed.config.ts +53 -0
  1385. package/LICENSE +0 -21
  1386. package/dist/app/style/floating.pcss +0 -34
  1387. package/dist/app/style/main.pcss +0 -100
  1388. package/dist/app/style/sandbox.css +0 -24
  1389. package/dist/app/style/transitions.pcss +0 -51
  1390. package/dist/bundled/App.vue.js +0 -5
  1391. package/dist/bundled/App.vue2.js +0 -167
  1392. package/dist/bundled/_virtual/_plugin-vue_export-helper.js +0 -10
  1393. package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
  1394. package/dist/bundled/assets/histoire-text.svg.js +0 -4
  1395. package/dist/bundled/assets/histoire.svg.js +0 -4
  1396. package/dist/bundled/components/HomeView.vue.js +0 -5
  1397. package/dist/bundled/components/HomeView.vue2.js +0 -66
  1398. package/dist/bundled/components/app/AppHeader.vue.js +0 -5
  1399. package/dist/bundled/components/app/AppHeader.vue2.js +0 -71
  1400. package/dist/bundled/components/app/AppLogo.vue.js +0 -5
  1401. package/dist/bundled/components/app/AppLogo.vue2.js +0 -29
  1402. package/dist/bundled/components/app/Breadcrumb.vue.js +0 -8
  1403. package/dist/bundled/components/app/Breadcrumb.vue2.js +0 -91
  1404. package/dist/bundled/components/app/HomeCounter.vue.js +0 -5
  1405. package/dist/bundled/components/app/HomeCounter.vue2.js +0 -42
  1406. package/dist/bundled/components/app/InitialLoading.vue.js +0 -5
  1407. package/dist/bundled/components/app/InitialLoading.vue2.js +0 -51
  1408. package/dist/bundled/components/app/MobileOverlay.vue.js +0 -5
  1409. package/dist/bundled/components/app/MobileOverlay.vue2.js +0 -45
  1410. package/dist/bundled/components/base/BaseButton.vue.js +0 -5
  1411. package/dist/bundled/components/base/BaseButton.vue2.js +0 -39
  1412. package/dist/bundled/components/base/BaseCheckbox.vue.js +0 -5
  1413. package/dist/bundled/components/base/BaseCheckbox.vue2.js +0 -78
  1414. package/dist/bundled/components/base/BaseEmpty.vue.js +0 -14
  1415. package/dist/bundled/components/base/BaseIcon.vue.js +0 -8
  1416. package/dist/bundled/components/base/BaseIcon.vue2.js +0 -29
  1417. package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +0 -5
  1418. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +0 -20
  1419. package/dist/bundled/components/base/BaseListItem.vue.js +0 -5
  1420. package/dist/bundled/components/base/BaseListItem.vue2.js +0 -33
  1421. package/dist/bundled/components/base/BaseListItemLink.vue.js +0 -33
  1422. package/dist/bundled/components/base/BaseListItemLink.vue2.js +0 -26
  1423. package/dist/bundled/components/base/BaseOverflowMenu.vue.js +0 -5
  1424. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +0 -100
  1425. package/dist/bundled/components/base/BaseOverflowTab.vue.js +0 -36
  1426. package/dist/bundled/components/base/BaseOverflowTab.vue2.js +0 -18
  1427. package/dist/bundled/components/base/BaseSelect.vue.js +0 -5
  1428. package/dist/bundled/components/base/BaseSelect.vue2.js +0 -77
  1429. package/dist/bundled/components/base/BaseSplitPane.vue.js +0 -8
  1430. package/dist/bundled/components/base/BaseSplitPane.vue2.js +0 -183
  1431. package/dist/bundled/components/base/BaseTab.vue.js +0 -36
  1432. package/dist/bundled/components/base/BaseTab.vue2.js +0 -18
  1433. package/dist/bundled/components/base/BaseTag.vue.js +0 -13
  1434. package/dist/bundled/components/command/CommandPrompts.vue.js +0 -5
  1435. package/dist/bundled/components/command/CommandPrompts.vue2.js +0 -91
  1436. package/dist/bundled/components/command/CommandPromptsModal.vue.js +0 -5
  1437. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +0 -45
  1438. package/dist/bundled/components/command/PromptSelect.vue.js +0 -5
  1439. package/dist/bundled/components/command/PromptSelect.vue2.js +0 -142
  1440. package/dist/bundled/components/command/PromptText.vue.js +0 -5
  1441. package/dist/bundled/components/command/PromptText.vue2.js +0 -67
  1442. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +0 -40
  1443. package/dist/bundled/components/misc/HatchedPattern.vue.js +0 -12
  1444. package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +0 -5
  1445. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +0 -72
  1446. package/dist/bundled/components/panel/ControlsComponentProps.vue.js +0 -5
  1447. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +0 -45
  1448. package/dist/bundled/components/panel/ControlsComponentState.vue.js +0 -5
  1449. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +0 -41
  1450. package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +0 -5
  1451. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +0 -46
  1452. package/dist/bundled/components/panel/PaneTabs.vue.js +0 -5
  1453. package/dist/bundled/components/panel/PaneTabs.vue2.js +0 -114
  1454. package/dist/bundled/components/panel/StatePresets.vue.js +0 -5
  1455. package/dist/bundled/components/panel/StatePresets.vue2.js +0 -193
  1456. package/dist/bundled/components/panel/StoryControls.vue.js +0 -5
  1457. package/dist/bundled/components/panel/StoryControls.vue2.js +0 -87
  1458. package/dist/bundled/components/panel/StoryDocs.vue.js +0 -7
  1459. package/dist/bundled/components/panel/StoryDocs.vue2.js +0 -161
  1460. package/dist/bundled/components/panel/StoryEvent.vue.js +0 -5
  1461. package/dist/bundled/components/panel/StoryEvent.vue2.js +0 -59
  1462. package/dist/bundled/components/panel/StoryEvents.vue.js +0 -5
  1463. package/dist/bundled/components/panel/StoryEvents.vue2.js +0 -53
  1464. package/dist/bundled/components/panel/StorySidePanel.vue.js +0 -5
  1465. package/dist/bundled/components/panel/StorySidePanel.vue2.js +0 -83
  1466. package/dist/bundled/components/panel/StorySourceCode.vue.js +0 -8
  1467. package/dist/bundled/components/panel/StorySourceCode.vue2.js +0 -204
  1468. package/dist/bundled/components/search/SearchItem.vue.js +0 -8
  1469. package/dist/bundled/components/search/SearchItem.vue2.js +0 -93
  1470. package/dist/bundled/components/search/SearchItemContent.vue.js +0 -5
  1471. package/dist/bundled/components/search/SearchItemContent.vue2.js +0 -71
  1472. package/dist/bundled/components/search/SearchLoading.vue.js +0 -5
  1473. package/dist/bundled/components/search/SearchLoading.vue2.js +0 -21
  1474. package/dist/bundled/components/search/SearchModal.vue.js +0 -5
  1475. package/dist/bundled/components/search/SearchModal.vue2.js +0 -51
  1476. package/dist/bundled/components/search/SearchPane.vue.js +0 -5
  1477. package/dist/bundled/components/search/SearchPane.vue2.js +0 -272
  1478. package/dist/bundled/components/search/search-docs-data.js +0 -11
  1479. package/dist/bundled/components/search/search-title-data.js +0 -11
  1480. package/dist/bundled/components/story/GenericMountStory.vue.js +0 -5
  1481. package/dist/bundled/components/story/GenericMountStory.vue2.js +0 -34
  1482. package/dist/bundled/components/story/GenericRenderStory.vue.js +0 -5
  1483. package/dist/bundled/components/story/GenericRenderStory.vue2.js +0 -39
  1484. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +0 -8
  1485. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +0 -207
  1486. package/dist/bundled/components/story/StoryVariantGrid.vue.js +0 -5
  1487. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +0 -146
  1488. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +0 -8
  1489. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +0 -153
  1490. package/dist/bundled/components/story/StoryVariantListItem.vue.js +0 -8
  1491. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +0 -55
  1492. package/dist/bundled/components/story/StoryVariantSingle.vue.js +0 -8
  1493. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +0 -107
  1494. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +0 -5
  1495. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +0 -70
  1496. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +0 -5
  1497. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +0 -128
  1498. package/dist/bundled/components/story/StoryVariantSingleView.vue.js +0 -5
  1499. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +0 -66
  1500. package/dist/bundled/components/story/StoryView.vue.js +0 -5
  1501. package/dist/bundled/components/story/StoryView.vue2.js +0 -104
  1502. package/dist/bundled/components/story/StoryViewer.vue.js +0 -8
  1503. package/dist/bundled/components/story/StoryViewer.vue2.js +0 -55
  1504. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +0 -5
  1505. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +0 -31
  1506. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +0 -8
  1507. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +0 -98
  1508. package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +0 -5
  1509. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +0 -36
  1510. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +0 -5
  1511. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +0 -127
  1512. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +0 -5
  1513. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +0 -27
  1514. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +0 -5
  1515. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +0 -26
  1516. package/dist/bundled/components/tree/StoryGroup.vue.js +0 -5
  1517. package/dist/bundled/components/tree/StoryGroup.vue2.js +0 -74
  1518. package/dist/bundled/components/tree/StoryList.vue.js +0 -5
  1519. package/dist/bundled/components/tree/StoryList.vue2.js +0 -41
  1520. package/dist/bundled/components/tree/StoryListFolder.vue.js +0 -8
  1521. package/dist/bundled/components/tree/StoryListFolder.vue2.js +0 -86
  1522. package/dist/bundled/components/tree/StoryListItem.vue.js +0 -8
  1523. package/dist/bundled/components/tree/StoryListItem.vue2.js +0 -69
  1524. package/dist/bundled/plugin.js +0 -49
  1525. package/dist/bundled/router.js +0 -32
  1526. package/dist/bundled/stores/command.js +0 -25
  1527. package/dist/bundled/stores/events.js +0 -29
  1528. package/dist/bundled/stores/folder.js +0 -54
  1529. package/dist/bundled/stores/preview-settings.js +0 -19
  1530. package/dist/bundled/stores/story.js +0 -43
  1531. package/dist/bundled/util/commands.js +0 -57
  1532. package/dist/bundled/util/config.js +0 -8
  1533. package/dist/bundled/util/const.js +0 -10
  1534. package/dist/bundled/util/dark.js +0 -28
  1535. package/dist/bundled/util/docs.js +0 -26
  1536. package/dist/bundled/util/env.js +0 -4
  1537. package/dist/bundled/util/events.js +0 -33
  1538. package/dist/bundled/util/keyboard.js +0 -90
  1539. package/dist/bundled/util/mapping.js +0 -70
  1540. package/dist/bundled/util/open-in-editor.js +0 -6
  1541. package/dist/bundled/util/preview-settings.js +0 -21
  1542. package/dist/bundled/util/responsive.js +0 -6
  1543. package/dist/bundled/util/sandbox.js +0 -11
  1544. package/dist/bundled/util/scroll.js +0 -31
  1545. package/dist/bundled/util/select.js +0 -28
  1546. package/dist/bundled/util/state.js +0 -41
  1547. package/dist/bundled/util/tooltip.js +0 -15
  1548. package/dist/bundled/util/variant.js +0 -21
  1549. package/src/app/components/HomeView.vue +0 -61
  1550. package/src/app/components/app/AppHeader.vue +0 -65
  1551. package/src/app/components/app/AppLogo.vue +0 -25
  1552. package/src/app/components/app/Breadcrumb.vue +0 -98
  1553. package/src/app/components/app/HomeCounter.vue +0 -39
  1554. package/src/app/components/app/InitialLoading.vue +0 -44
  1555. package/src/app/components/app/MobileOverlay.vue +0 -33
  1556. package/src/app/components/base/BaseCheckbox.vue +0 -76
  1557. package/src/app/components/base/BaseCopyIcon.vue +0 -34
  1558. package/src/app/components/base/BaseEmpty.vue +0 -21
  1559. package/src/app/components/base/BaseIcon.vue +0 -31
  1560. package/src/app/components/base/BaseListItem.vue +0 -30
  1561. package/src/app/components/base/BaseListItemLink.vue +0 -56
  1562. package/src/app/components/base/BaseOverflowMenu.vue +0 -119
  1563. package/src/app/components/base/BaseOverflowTab.vue +0 -47
  1564. package/src/app/components/base/BaseSelect.vue +0 -75
  1565. package/src/app/components/base/BaseSplitPane.vue +0 -244
  1566. package/src/app/components/base/BaseTab.vue +0 -47
  1567. package/src/app/components/base/BaseTag.vue +0 -5
  1568. package/src/app/components/command/CommandPromptsModal.vue +0 -41
  1569. package/src/app/components/misc/CheckerboardPattern.vue +0 -32
  1570. package/src/app/components/panel/ControlsComponentPropItem.vue +0 -73
  1571. package/src/app/components/panel/ControlsComponentProps.vue +0 -34
  1572. package/src/app/components/panel/ControlsComponentState.vue +0 -38
  1573. package/src/app/components/panel/ControlsComponentStateItem.vue +0 -44
  1574. package/src/app/components/panel/PaneTabs.vue +0 -84
  1575. package/src/app/components/panel/StatePresets.vue +0 -199
  1576. package/src/app/components/panel/StoryControls.vue +0 -97
  1577. package/src/app/components/panel/StoryDocs.vue +0 -202
  1578. package/src/app/components/panel/StoryEvent.vue +0 -54
  1579. package/src/app/components/panel/StoryEvents.vue +0 -48
  1580. package/src/app/components/panel/StorySidePanel.vue +0 -76
  1581. package/src/app/components/panel/StorySourceCode.vue +0 -248
  1582. package/src/app/components/search/SearchItem.vue +0 -89
  1583. package/src/app/components/search/SearchItemContent.vue +0 -67
  1584. package/src/app/components/search/SearchLoading.vue +0 -16
  1585. package/src/app/components/search/SearchModal.vue +0 -44
  1586. package/src/app/components/search/SearchPane.vue +0 -319
  1587. package/src/app/components/search/search-docs-data.ts +0 -9
  1588. package/src/app/components/search/search-title-data.ts +0 -9
  1589. package/src/app/components/search/types.ts +0 -4
  1590. package/src/app/components/story/StoryResponsivePreview.vue +0 -216
  1591. package/src/app/components/story/StoryVariantGrid.vue +0 -169
  1592. package/src/app/components/story/StoryVariantGridItem.vue +0 -163
  1593. package/src/app/components/story/StoryVariantListItem.vue +0 -52
  1594. package/src/app/components/story/StoryVariantSingle.vue +0 -105
  1595. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +0 -66
  1596. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +0 -143
  1597. package/src/app/components/story/StoryVariantSingleView.vue +0 -61
  1598. package/src/app/components/story/StoryView.vue +0 -110
  1599. package/src/app/components/story/StoryViewer.vue +0 -52
  1600. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +0 -23
  1601. package/src/app/components/toolbar/ToolbarBackground.vue +0 -81
  1602. package/src/app/components/toolbar/ToolbarNewTab.vue +0 -29
  1603. package/src/app/components/toolbar/ToolbarResponsiveSize.vue +0 -82
  1604. package/src/app/components/toolbar/ToolbarTextDirection.vue +0 -19
  1605. package/src/app/components/toolbar/ToolbarTitle.vue +0 -21
  1606. package/src/app/components/tree/StoryGroup.vue +0 -73
  1607. package/src/app/components/tree/StoryList.vue +0 -35
  1608. package/src/app/components/tree/StoryListFolder.vue +0 -88
  1609. package/src/app/components/tree/StoryListItem.vue +0 -72
  1610. package/src/app/router.ts +0 -29
  1611. package/src/app/stores/command.ts +0 -26
  1612. package/src/app/stores/folder.ts +0 -63
  1613. package/src/app/stores/preview-settings.ts +0 -18
  1614. package/src/app/stores/story.ts +0 -47
  1615. package/src/app/style/floating.pcss +0 -34
  1616. package/src/app/style/main.pcss +0 -100
  1617. package/src/app/style/sandbox.css +0 -24
  1618. package/src/app/style/transitions.pcss +0 -51
  1619. package/src/app/util/commands.ts +0 -57
  1620. package/src/app/util/responsive.ts +0 -3
  1621. package/src/app/util/sandbox.ts +0 -9
  1622. package/src/app/util/scroll.ts +0 -32
  1623. package/src/app/util/tooltip.ts +0 -13
  1624. package/src/app/util/variant.ts +0 -21
  1625. package/tailwind.config.cjs +0 -137
@@ -0,0 +1,1775 @@
1
+ import { ShikiError as ShikiError$1 } from "../../../../../@shikijs_types@3.21.0/node_modules/@shikijs/types/dist/index.js";
2
+ import { EncodedTokenMetadata, FontStyle, INITIAL, Registry as Registry$1, Theme } from "../../../../../@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js";
3
+ import { toHtml } from "../../../../../hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js";
4
+ // ../../node_modules/.pnpm/@shikijs+core@3.21.0/node_modules/@shikijs/core/dist/index.mjs
5
+ function resolveColorReplacements(theme, options) {
6
+ const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
7
+ const themeName = typeof theme === "string" ? theme : theme.name;
8
+ for (const [key, value] of Object.entries(options?.colorReplacements || {})) if (typeof value === "string") replacements[key] = value;
9
+ else if (key === themeName) Object.assign(replacements, value);
10
+ return replacements;
11
+ }
12
+ function applyColorReplacements(color, replacements) {
13
+ if (!color) return color;
14
+ return replacements?.[color?.toLowerCase()] || color;
15
+ }
16
+ function toArray(x) {
17
+ return Array.isArray(x) ? x : [x];
18
+ }
19
+ async function normalizeGetter(p) {
20
+ return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
21
+ }
22
+ function isPlainLang(lang) {
23
+ return !lang || [
24
+ "plaintext",
25
+ "txt",
26
+ "text",
27
+ "plain"
28
+ ].includes(lang);
29
+ }
30
+ function isSpecialLang(lang) {
31
+ return lang === "ansi" || isPlainLang(lang);
32
+ }
33
+ function isNoneTheme(theme) {
34
+ return theme === "none";
35
+ }
36
+ function isSpecialTheme(theme) {
37
+ return isNoneTheme(theme);
38
+ }
39
+ function addClassToHast(node, className) {
40
+ if (!className) return node;
41
+ node.properties ||= {};
42
+ node.properties.class ||= [];
43
+ if (typeof node.properties.class === "string") node.properties.class = node.properties.class.split(/\s+/g);
44
+ if (!Array.isArray(node.properties.class)) node.properties.class = [];
45
+ const targets = Array.isArray(className) ? className : className.split(/\s+/g);
46
+ for (const c of targets) if (c && !node.properties.class.includes(c)) node.properties.class.push(c);
47
+ return node;
48
+ }
49
+ function splitLines(code, preserveEnding = false) {
50
+ if (code.length === 0) return [["", 0]];
51
+ const parts = code.split(/(\r?\n)/g);
52
+ let index = 0;
53
+ const lines = [];
54
+ for (let i = 0; i < parts.length; i += 2) {
55
+ const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
56
+ lines.push([line, index]);
57
+ index += parts[i].length;
58
+ index += parts[i + 1]?.length || 0;
59
+ }
60
+ return lines;
61
+ }
62
+ function createPositionConverter(code) {
63
+ const lines = splitLines(code, true).map(([line]) => line);
64
+ function indexToPos(index) {
65
+ if (index === code.length) return {
66
+ line: lines.length - 1,
67
+ character: lines[lines.length - 1].length
68
+ };
69
+ let character = index;
70
+ let line = 0;
71
+ for (const lineText of lines) {
72
+ if (character < lineText.length) break;
73
+ character -= lineText.length;
74
+ line++;
75
+ }
76
+ return {
77
+ line,
78
+ character
79
+ };
80
+ }
81
+ function posToIndex(line, character) {
82
+ let index = 0;
83
+ for (let i = 0; i < line; i++) index += lines[i].length;
84
+ index += character;
85
+ return index;
86
+ }
87
+ return {
88
+ lines,
89
+ indexToPos,
90
+ posToIndex
91
+ };
92
+ }
93
+ function guessEmbeddedLanguages(code, _lang, highlighter) {
94
+ const langs = /* @__PURE__ */ new Set();
95
+ for (const match of code.matchAll(/:?lang=["']([^"']+)["']/g)) {
96
+ const lang = match[1].toLowerCase().trim();
97
+ if (lang) langs.add(lang);
98
+ }
99
+ for (const match of code.matchAll(/(?:```|~~~)([\w-]+)/g)) {
100
+ const lang = match[1].toLowerCase().trim();
101
+ if (lang) langs.add(lang);
102
+ }
103
+ for (const match of code.matchAll(/\\begin\{([\w-]+)\}/g)) {
104
+ const lang = match[1].toLowerCase().trim();
105
+ if (lang) langs.add(lang);
106
+ }
107
+ for (const match of code.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
108
+ const fullType = match[1].toLowerCase().trim();
109
+ const lang = fullType.includes("/") ? fullType.split("/").pop() : fullType;
110
+ if (lang) langs.add(lang);
111
+ }
112
+ if (!highlighter) return Array.from(langs);
113
+ const bundle = highlighter.getBundledLanguages();
114
+ return Array.from(langs).filter((l) => l && bundle[l]);
115
+ }
116
+ var DEFAULT_COLOR_LIGHT_DARK = "light-dark()";
117
+ var COLOR_KEYS = ["color", "background-color"];
118
+ function splitToken(token, offsets) {
119
+ let lastOffset = 0;
120
+ const tokens = [];
121
+ for (const offset of offsets) {
122
+ if (offset > lastOffset) tokens.push({
123
+ ...token,
124
+ content: token.content.slice(lastOffset, offset),
125
+ offset: token.offset + lastOffset
126
+ });
127
+ lastOffset = offset;
128
+ }
129
+ if (lastOffset < token.content.length) tokens.push({
130
+ ...token,
131
+ content: token.content.slice(lastOffset),
132
+ offset: token.offset + lastOffset
133
+ });
134
+ return tokens;
135
+ }
136
+ function splitTokens(tokens, breakpoints) {
137
+ const sorted = Array.from(breakpoints instanceof Set ? breakpoints : new Set(breakpoints)).sort((a, b) => a - b);
138
+ if (!sorted.length) return tokens;
139
+ return tokens.map((line) => {
140
+ return line.flatMap((token) => {
141
+ const breakpointsInToken = sorted.filter((i) => token.offset < i && i < token.offset + token.content.length).map((i) => i - token.offset).sort((a, b) => a - b);
142
+ if (!breakpointsInToken.length) return token;
143
+ return splitToken(token, breakpointsInToken);
144
+ });
145
+ });
146
+ }
147
+ function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColor, colorsRendering = "css-vars") {
148
+ const token = {
149
+ content: merged.content,
150
+ explanation: merged.explanation,
151
+ offset: merged.offset
152
+ };
153
+ const styles = variantsOrder.map((t) => getTokenStyleObject(merged.variants[t]));
154
+ const styleKeys = new Set(styles.flatMap((t) => Object.keys(t)));
155
+ const mergedStyles = {};
156
+ const varKey = (idx, key) => {
157
+ const keyName = key === "color" ? "" : key === "background-color" ? "-bg" : `-${key}`;
158
+ return cssVariablePrefix + variantsOrder[idx] + (key === "color" ? "" : keyName);
159
+ };
160
+ styles.forEach((cur, idx) => {
161
+ for (const key of styleKeys) {
162
+ const value = cur[key] || "inherit";
163
+ if (idx === 0 && defaultColor && COLOR_KEYS.includes(key)) {
164
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && styles.length > 1) {
165
+ const lightIndex = variantsOrder.findIndex((t) => t === "light");
166
+ const darkIndex = variantsOrder.findIndex((t) => t === "dark");
167
+ if (lightIndex === -1 || darkIndex === -1) throw new ShikiError$1("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
168
+ const lightValue = styles[lightIndex][key] || "inherit";
169
+ const darkValue = styles[darkIndex][key] || "inherit";
170
+ mergedStyles[key] = `light-dark(${lightValue}, ${darkValue})`;
171
+ if (colorsRendering === "css-vars") mergedStyles[varKey(idx, key)] = value;
172
+ } else mergedStyles[key] = value;
173
+ } else if (colorsRendering === "css-vars") mergedStyles[varKey(idx, key)] = value;
174
+ }
175
+ });
176
+ token.htmlStyle = mergedStyles;
177
+ return token;
178
+ }
179
+ function getTokenStyleObject(token) {
180
+ const styles = {};
181
+ if (token.color) styles.color = token.color;
182
+ if (token.bgColor) styles["background-color"] = token.bgColor;
183
+ if (token.fontStyle) {
184
+ if (token.fontStyle & FontStyle.Italic) styles["font-style"] = "italic";
185
+ if (token.fontStyle & FontStyle.Bold) styles["font-weight"] = "bold";
186
+ const decorations = [];
187
+ if (token.fontStyle & FontStyle.Underline) decorations.push("underline");
188
+ if (token.fontStyle & FontStyle.Strikethrough) decorations.push("line-through");
189
+ if (decorations.length) styles["text-decoration"] = decorations.join(" ");
190
+ }
191
+ return styles;
192
+ }
193
+ function stringifyTokenStyle(token) {
194
+ if (typeof token === "string") return token;
195
+ return Object.entries(token).map(([key, value]) => `${key}:${value}`).join(";");
196
+ }
197
+ var _grammarStateMap = /* @__PURE__ */ new WeakMap();
198
+ function setLastGrammarStateToMap(keys, state) {
199
+ _grammarStateMap.set(keys, state);
200
+ }
201
+ function getLastGrammarStateFromMap(keys) {
202
+ return _grammarStateMap.get(keys);
203
+ }
204
+ var GrammarState = class GrammarState {
205
+ /**
206
+ * Theme to Stack mapping
207
+ */
208
+ _stacks = {};
209
+ lang;
210
+ get themes() {
211
+ return Object.keys(this._stacks);
212
+ }
213
+ get theme() {
214
+ return this.themes[0];
215
+ }
216
+ get _stack() {
217
+ return this._stacks[this.theme];
218
+ }
219
+ /**
220
+ * Static method to create a initial grammar state.
221
+ */
222
+ static initial(lang, themes) {
223
+ return new GrammarState(Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])), lang);
224
+ }
225
+ constructor(...args) {
226
+ if (args.length === 2) {
227
+ const [stacksMap, lang] = args;
228
+ this.lang = lang;
229
+ this._stacks = stacksMap;
230
+ } else {
231
+ const [stack, lang, theme] = args;
232
+ this.lang = lang;
233
+ this._stacks = { [theme]: stack };
234
+ }
235
+ }
236
+ /**
237
+ * Get the internal stack object.
238
+ * @internal
239
+ */
240
+ getInternalStack(theme = this.theme) {
241
+ return this._stacks[theme];
242
+ }
243
+ getScopes(theme = this.theme) {
244
+ return getScopes(this._stacks[theme]);
245
+ }
246
+ toJSON() {
247
+ return {
248
+ lang: this.lang,
249
+ theme: this.theme,
250
+ themes: this.themes,
251
+ scopes: this.getScopes()
252
+ };
253
+ }
254
+ };
255
+ function getScopes(stack) {
256
+ const scopes = [];
257
+ const visited = /* @__PURE__ */ new Set();
258
+ function pushScope(stack2) {
259
+ if (visited.has(stack2)) return;
260
+ visited.add(stack2);
261
+ const name = stack2?.nameScopesList?.scopeName;
262
+ if (name) scopes.push(name);
263
+ if (stack2.parent) pushScope(stack2.parent);
264
+ }
265
+ pushScope(stack);
266
+ return scopes;
267
+ }
268
+ function getGrammarStack(state, theme) {
269
+ if (!(state instanceof GrammarState)) throw new ShikiError$1("Invalid grammar state");
270
+ return state.getInternalStack(theme);
271
+ }
272
+ function transformerDecorations() {
273
+ const map = /* @__PURE__ */ new WeakMap();
274
+ function getContext(shiki) {
275
+ if (!map.has(shiki.meta)) {
276
+ let normalizePosition = function(p) {
277
+ if (typeof p === "number") {
278
+ if (p < 0 || p > shiki.source.length) throw new ShikiError$1(`Invalid decoration offset: ${p}. Code length: ${shiki.source.length}`);
279
+ return {
280
+ ...converter.indexToPos(p),
281
+ offset: p
282
+ };
283
+ } else {
284
+ const line = converter.lines[p.line];
285
+ if (line === void 0) throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Lines length: ${converter.lines.length}`);
286
+ let character = p.character;
287
+ if (character < 0) character = line.length + character;
288
+ if (character < 0 || character > line.length) throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Line ${p.line} length: ${line.length}`);
289
+ return {
290
+ ...p,
291
+ character,
292
+ offset: converter.posToIndex(p.line, character)
293
+ };
294
+ }
295
+ };
296
+ const converter = createPositionConverter(shiki.source);
297
+ const decorations = (shiki.options.decorations || []).map((d) => ({
298
+ ...d,
299
+ start: normalizePosition(d.start),
300
+ end: normalizePosition(d.end)
301
+ }));
302
+ verifyIntersections(decorations);
303
+ map.set(shiki.meta, {
304
+ decorations,
305
+ converter,
306
+ source: shiki.source
307
+ });
308
+ }
309
+ return map.get(shiki.meta);
310
+ }
311
+ return {
312
+ name: "shiki:decorations",
313
+ tokens(tokens) {
314
+ if (!this.options.decorations?.length) return;
315
+ return splitTokens(tokens, getContext(this).decorations.flatMap((d) => [d.start.offset, d.end.offset]));
316
+ },
317
+ code(codeEl) {
318
+ if (!this.options.decorations?.length) return;
319
+ const ctx = getContext(this);
320
+ const lines = Array.from(codeEl.children).filter((i) => i.type === "element" && i.tagName === "span");
321
+ if (lines.length !== ctx.converter.lines.length) throw new ShikiError$1(`Number of lines in code element (${lines.length}) does not match the number of lines in the source (${ctx.converter.lines.length}). Failed to apply decorations.`);
322
+ function applyLineSection(line, start, end, decoration) {
323
+ const lineEl = lines[line];
324
+ let text = "";
325
+ let startIndex = -1;
326
+ let endIndex = -1;
327
+ if (start === 0) startIndex = 0;
328
+ if (end === 0) endIndex = 0;
329
+ if (end === Number.POSITIVE_INFINITY) endIndex = lineEl.children.length;
330
+ if (startIndex === -1 || endIndex === -1) for (let i = 0; i < lineEl.children.length; i++) {
331
+ text += stringify(lineEl.children[i]);
332
+ if (startIndex === -1 && text.length === start) startIndex = i + 1;
333
+ if (endIndex === -1 && text.length === end) endIndex = i + 1;
334
+ }
335
+ if (startIndex === -1) throw new ShikiError$1(`Failed to find start index for decoration ${JSON.stringify(decoration.start)}`);
336
+ if (endIndex === -1) throw new ShikiError$1(`Failed to find end index for decoration ${JSON.stringify(decoration.end)}`);
337
+ const children = lineEl.children.slice(startIndex, endIndex);
338
+ if (!decoration.alwaysWrap && children.length === lineEl.children.length) applyDecoration(lineEl, decoration, "line");
339
+ else if (!decoration.alwaysWrap && children.length === 1 && children[0].type === "element") applyDecoration(children[0], decoration, "token");
340
+ else {
341
+ const wrapper = {
342
+ type: "element",
343
+ tagName: "span",
344
+ properties: {},
345
+ children
346
+ };
347
+ applyDecoration(wrapper, decoration, "wrapper");
348
+ lineEl.children.splice(startIndex, children.length, wrapper);
349
+ }
350
+ }
351
+ function applyLine(line, decoration) {
352
+ lines[line] = applyDecoration(lines[line], decoration, "line");
353
+ }
354
+ function applyDecoration(el, decoration, type) {
355
+ const properties = decoration.properties || {};
356
+ const transform = decoration.transform || ((i) => i);
357
+ el.tagName = decoration.tagName || "span";
358
+ el.properties = {
359
+ ...el.properties,
360
+ ...properties,
361
+ class: el.properties.class
362
+ };
363
+ if (decoration.properties?.class) addClassToHast(el, decoration.properties.class);
364
+ el = transform(el, type) || el;
365
+ return el;
366
+ }
367
+ const lineApplies = [];
368
+ const sorted = ctx.decorations.sort((a, b) => b.start.offset - a.start.offset || a.end.offset - b.end.offset);
369
+ for (const decoration of sorted) {
370
+ const { start, end } = decoration;
371
+ if (start.line === end.line) applyLineSection(start.line, start.character, end.character, decoration);
372
+ else if (start.line < end.line) {
373
+ applyLineSection(start.line, start.character, Number.POSITIVE_INFINITY, decoration);
374
+ for (let i = start.line + 1; i < end.line; i++) lineApplies.unshift(() => applyLine(i, decoration));
375
+ applyLineSection(end.line, 0, end.character, decoration);
376
+ }
377
+ }
378
+ lineApplies.forEach((i) => i());
379
+ }
380
+ };
381
+ }
382
+ function verifyIntersections(items) {
383
+ for (let i = 0; i < items.length; i++) {
384
+ const foo = items[i];
385
+ if (foo.start.offset > foo.end.offset) throw new ShikiError$1(`Invalid decoration range: ${JSON.stringify(foo.start)} - ${JSON.stringify(foo.end)}`);
386
+ for (let j = i + 1; j < items.length; j++) {
387
+ const bar = items[j];
388
+ const isFooHasBarStart = foo.start.offset <= bar.start.offset && bar.start.offset < foo.end.offset;
389
+ const isFooHasBarEnd = foo.start.offset < bar.end.offset && bar.end.offset <= foo.end.offset;
390
+ const isBarHasFooStart = bar.start.offset <= foo.start.offset && foo.start.offset < bar.end.offset;
391
+ const isBarHasFooEnd = bar.start.offset < foo.end.offset && foo.end.offset <= bar.end.offset;
392
+ if (isFooHasBarStart || isFooHasBarEnd || isBarHasFooStart || isBarHasFooEnd) {
393
+ if (isFooHasBarStart && isFooHasBarEnd) continue;
394
+ if (isBarHasFooStart && isBarHasFooEnd) continue;
395
+ if (isBarHasFooStart && foo.start.offset === foo.end.offset) continue;
396
+ if (isFooHasBarEnd && bar.start.offset === bar.end.offset) continue;
397
+ throw new ShikiError$1(`Decorations ${JSON.stringify(foo.start)} and ${JSON.stringify(bar.start)} intersect.`);
398
+ }
399
+ }
400
+ }
401
+ }
402
+ function stringify(el) {
403
+ if (el.type === "text") return el.value;
404
+ if (el.type === "element") return el.children.map(stringify).join("");
405
+ return "";
406
+ }
407
+ var builtInTransformers = [/* @__PURE__ */ transformerDecorations()];
408
+ function getTransformers(options) {
409
+ const transformers = sortTransformersByEnforcement(options.transformers || []);
410
+ return [
411
+ ...transformers.pre,
412
+ ...transformers.normal,
413
+ ...transformers.post,
414
+ ...builtInTransformers
415
+ ];
416
+ }
417
+ function sortTransformersByEnforcement(transformers) {
418
+ const pre = [];
419
+ const post = [];
420
+ const normal = [];
421
+ for (const transformer of transformers) switch (transformer.enforce) {
422
+ case "pre":
423
+ pre.push(transformer);
424
+ break;
425
+ case "post":
426
+ post.push(transformer);
427
+ break;
428
+ default: normal.push(transformer);
429
+ }
430
+ return {
431
+ pre,
432
+ post,
433
+ normal
434
+ };
435
+ }
436
+ var namedColors = [
437
+ "black",
438
+ "red",
439
+ "green",
440
+ "yellow",
441
+ "blue",
442
+ "magenta",
443
+ "cyan",
444
+ "white",
445
+ "brightBlack",
446
+ "brightRed",
447
+ "brightGreen",
448
+ "brightYellow",
449
+ "brightBlue",
450
+ "brightMagenta",
451
+ "brightCyan",
452
+ "brightWhite"
453
+ ];
454
+ var decorations = {
455
+ 1: "bold",
456
+ 2: "dim",
457
+ 3: "italic",
458
+ 4: "underline",
459
+ 7: "reverse",
460
+ 8: "hidden",
461
+ 9: "strikethrough"
462
+ };
463
+ function findSequence(value, position) {
464
+ const nextEscape = value.indexOf("\x1B", position);
465
+ if (nextEscape !== -1) {
466
+ if (value[nextEscape + 1] === "[") {
467
+ const nextClose = value.indexOf("m", nextEscape);
468
+ if (nextClose !== -1) return {
469
+ sequence: value.substring(nextEscape + 2, nextClose).split(";"),
470
+ startPosition: nextEscape,
471
+ position: nextClose + 1
472
+ };
473
+ }
474
+ }
475
+ return { position: value.length };
476
+ }
477
+ function parseColor(sequence) {
478
+ const colorMode = sequence.shift();
479
+ if (colorMode === "2") {
480
+ const rgb = sequence.splice(0, 3).map((x) => Number.parseInt(x));
481
+ if (rgb.length !== 3 || rgb.some((x) => Number.isNaN(x))) return;
482
+ return {
483
+ type: "rgb",
484
+ rgb
485
+ };
486
+ } else if (colorMode === "5") {
487
+ const index = sequence.shift();
488
+ if (index) return {
489
+ type: "table",
490
+ index: Number(index)
491
+ };
492
+ }
493
+ }
494
+ function parseSequence(sequence) {
495
+ const commands = [];
496
+ while (sequence.length > 0) {
497
+ const code = sequence.shift();
498
+ if (!code) continue;
499
+ const codeInt = Number.parseInt(code);
500
+ if (Number.isNaN(codeInt)) continue;
501
+ if (codeInt === 0) commands.push({ type: "resetAll" });
502
+ else if (codeInt <= 9) {
503
+ if (decorations[codeInt]) commands.push({
504
+ type: "setDecoration",
505
+ value: decorations[codeInt]
506
+ });
507
+ } else if (codeInt <= 29) {
508
+ const decoration = decorations[codeInt - 20];
509
+ if (decoration) {
510
+ commands.push({
511
+ type: "resetDecoration",
512
+ value: decoration
513
+ });
514
+ if (decoration === "dim") commands.push({
515
+ type: "resetDecoration",
516
+ value: "bold"
517
+ });
518
+ }
519
+ } else if (codeInt <= 37) commands.push({
520
+ type: "setForegroundColor",
521
+ value: {
522
+ type: "named",
523
+ name: namedColors[codeInt - 30]
524
+ }
525
+ });
526
+ else if (codeInt === 38) {
527
+ const color = parseColor(sequence);
528
+ if (color) commands.push({
529
+ type: "setForegroundColor",
530
+ value: color
531
+ });
532
+ } else if (codeInt === 39) commands.push({ type: "resetForegroundColor" });
533
+ else if (codeInt <= 47) commands.push({
534
+ type: "setBackgroundColor",
535
+ value: {
536
+ type: "named",
537
+ name: namedColors[codeInt - 40]
538
+ }
539
+ });
540
+ else if (codeInt === 48) {
541
+ const color = parseColor(sequence);
542
+ if (color) commands.push({
543
+ type: "setBackgroundColor",
544
+ value: color
545
+ });
546
+ } else if (codeInt === 49) commands.push({ type: "resetBackgroundColor" });
547
+ else if (codeInt === 53) commands.push({
548
+ type: "setDecoration",
549
+ value: "overline"
550
+ });
551
+ else if (codeInt === 55) commands.push({
552
+ type: "resetDecoration",
553
+ value: "overline"
554
+ });
555
+ else if (codeInt >= 90 && codeInt <= 97) commands.push({
556
+ type: "setForegroundColor",
557
+ value: {
558
+ type: "named",
559
+ name: namedColors[codeInt - 90 + 8]
560
+ }
561
+ });
562
+ else if (codeInt >= 100 && codeInt <= 107) commands.push({
563
+ type: "setBackgroundColor",
564
+ value: {
565
+ type: "named",
566
+ name: namedColors[codeInt - 100 + 8]
567
+ }
568
+ });
569
+ }
570
+ return commands;
571
+ }
572
+ function createAnsiSequenceParser() {
573
+ let foreground = null;
574
+ let background = null;
575
+ let decorations2 = /* @__PURE__ */ new Set();
576
+ return { parse(value) {
577
+ const tokens = [];
578
+ let position = 0;
579
+ do {
580
+ const findResult = findSequence(value, position);
581
+ const text = findResult.sequence ? value.substring(position, findResult.startPosition) : value.substring(position);
582
+ if (text.length > 0) tokens.push({
583
+ value: text,
584
+ foreground,
585
+ background,
586
+ decorations: new Set(decorations2)
587
+ });
588
+ if (findResult.sequence) {
589
+ const commands = parseSequence(findResult.sequence);
590
+ for (const styleToken of commands) if (styleToken.type === "resetAll") {
591
+ foreground = null;
592
+ background = null;
593
+ decorations2.clear();
594
+ } else if (styleToken.type === "resetForegroundColor") foreground = null;
595
+ else if (styleToken.type === "resetBackgroundColor") background = null;
596
+ else if (styleToken.type === "resetDecoration") decorations2.delete(styleToken.value);
597
+ for (const styleToken of commands) if (styleToken.type === "setForegroundColor") foreground = styleToken.value;
598
+ else if (styleToken.type === "setBackgroundColor") background = styleToken.value;
599
+ else if (styleToken.type === "setDecoration") decorations2.add(styleToken.value);
600
+ }
601
+ position = findResult.position;
602
+ } while (position < value.length);
603
+ return tokens;
604
+ } };
605
+ }
606
+ var defaultNamedColorsMap = {
607
+ black: "#000000",
608
+ red: "#bb0000",
609
+ green: "#00bb00",
610
+ yellow: "#bbbb00",
611
+ blue: "#0000bb",
612
+ magenta: "#ff00ff",
613
+ cyan: "#00bbbb",
614
+ white: "#eeeeee",
615
+ brightBlack: "#555555",
616
+ brightRed: "#ff5555",
617
+ brightGreen: "#00ff00",
618
+ brightYellow: "#ffff55",
619
+ brightBlue: "#5555ff",
620
+ brightMagenta: "#ff55ff",
621
+ brightCyan: "#55ffff",
622
+ brightWhite: "#ffffff"
623
+ };
624
+ function createColorPalette(namedColorsMap = defaultNamedColorsMap) {
625
+ function namedColor(name) {
626
+ return namedColorsMap[name];
627
+ }
628
+ function rgbColor(rgb) {
629
+ return `#${rgb.map((x) => Math.max(0, Math.min(x, 255)).toString(16).padStart(2, "0")).join("")}`;
630
+ }
631
+ let colorTable;
632
+ function getColorTable() {
633
+ if (colorTable) return colorTable;
634
+ colorTable = [];
635
+ for (let i = 0; i < namedColors.length; i++) colorTable.push(namedColor(namedColors[i]));
636
+ let levels = [
637
+ 0,
638
+ 95,
639
+ 135,
640
+ 175,
641
+ 215,
642
+ 255
643
+ ];
644
+ for (let r = 0; r < 6; r++) for (let g = 0; g < 6; g++) for (let b = 0; b < 6; b++) colorTable.push(rgbColor([
645
+ levels[r],
646
+ levels[g],
647
+ levels[b]
648
+ ]));
649
+ let level = 8;
650
+ for (let i = 0; i < 24; i++, level += 10) colorTable.push(rgbColor([
651
+ level,
652
+ level,
653
+ level
654
+ ]));
655
+ return colorTable;
656
+ }
657
+ function tableColor(index) {
658
+ return getColorTable()[index];
659
+ }
660
+ function value(color) {
661
+ switch (color.type) {
662
+ case "named": return namedColor(color.name);
663
+ case "rgb": return rgbColor(color.rgb);
664
+ case "table": return tableColor(color.index);
665
+ }
666
+ }
667
+ return { value };
668
+ }
669
+ var defaultAnsiColors = {
670
+ black: "#000000",
671
+ red: "#cd3131",
672
+ green: "#0DBC79",
673
+ yellow: "#E5E510",
674
+ blue: "#2472C8",
675
+ magenta: "#BC3FBC",
676
+ cyan: "#11A8CD",
677
+ white: "#E5E5E5",
678
+ brightBlack: "#666666",
679
+ brightRed: "#F14C4C",
680
+ brightGreen: "#23D18B",
681
+ brightYellow: "#F5F543",
682
+ brightBlue: "#3B8EEA",
683
+ brightMagenta: "#D670D6",
684
+ brightCyan: "#29B8DB",
685
+ brightWhite: "#FFFFFF"
686
+ };
687
+ function tokenizeAnsiWithTheme(theme, fileContents, options) {
688
+ const colorReplacements = resolveColorReplacements(theme, options);
689
+ const lines = splitLines(fileContents);
690
+ const colorPalette = createColorPalette(Object.fromEntries(namedColors.map((name) => {
691
+ const key = `terminal.ansi${name[0].toUpperCase()}${name.substring(1)}`;
692
+ return [name, theme.colors?.[key] || defaultAnsiColors[name]];
693
+ })));
694
+ const parser = createAnsiSequenceParser();
695
+ return lines.map((line) => parser.parse(line[0]).map((token) => {
696
+ let color;
697
+ let bgColor;
698
+ if (token.decorations.has("reverse")) {
699
+ color = token.background ? colorPalette.value(token.background) : theme.bg;
700
+ bgColor = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
701
+ } else {
702
+ color = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
703
+ bgColor = token.background ? colorPalette.value(token.background) : void 0;
704
+ }
705
+ color = applyColorReplacements(color, colorReplacements);
706
+ bgColor = applyColorReplacements(bgColor, colorReplacements);
707
+ if (token.decorations.has("dim")) color = dimColor(color);
708
+ let fontStyle = FontStyle.None;
709
+ if (token.decorations.has("bold")) fontStyle |= FontStyle.Bold;
710
+ if (token.decorations.has("italic")) fontStyle |= FontStyle.Italic;
711
+ if (token.decorations.has("underline")) fontStyle |= FontStyle.Underline;
712
+ if (token.decorations.has("strikethrough")) fontStyle |= FontStyle.Strikethrough;
713
+ return {
714
+ content: token.value,
715
+ offset: line[1],
716
+ color,
717
+ bgColor,
718
+ fontStyle
719
+ };
720
+ }));
721
+ }
722
+ function dimColor(color) {
723
+ const hexMatch = color.match(/#([0-9a-f]{3,8})/i);
724
+ if (hexMatch) {
725
+ const hex = hexMatch[1];
726
+ if (hex.length === 8) {
727
+ const alpha = Math.round(Number.parseInt(hex.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
728
+ return `#${hex.slice(0, 6)}${alpha}`;
729
+ } else if (hex.length === 6) return `#${hex}80`;
730
+ else if (hex.length === 4) {
731
+ const r = hex[0];
732
+ const g = hex[1];
733
+ const b = hex[2];
734
+ const a = hex[3];
735
+ return `#${r}${r}${g}${g}${b}${b}${Math.round(Number.parseInt(`${a}${a}`, 16) / 2).toString(16).padStart(2, "0")}`;
736
+ } else if (hex.length === 3) {
737
+ const r = hex[0];
738
+ const g = hex[1];
739
+ const b = hex[2];
740
+ return `#${r}${r}${g}${g}${b}${b}80`;
741
+ }
742
+ }
743
+ const cssVarMatch = color.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
744
+ if (cssVarMatch) return `var(${cssVarMatch[1]}-dim)`;
745
+ return color;
746
+ }
747
+ function codeToTokensBase(internal, code, options = {}) {
748
+ const { theme: themeName = internal.getLoadedThemes()[0] } = options;
749
+ const lang = internal.resolveLangAlias(options.lang || "text");
750
+ if (isPlainLang(lang) || isNoneTheme(themeName)) return splitLines(code).map((line) => [{
751
+ content: line[0],
752
+ offset: line[1]
753
+ }]);
754
+ const { theme, colorMap } = internal.setTheme(themeName);
755
+ if (lang === "ansi") return tokenizeAnsiWithTheme(theme, code, options);
756
+ const _grammar = internal.getLanguage(options.lang || "text");
757
+ if (options.grammarState) {
758
+ if (options.grammarState.lang !== _grammar.name) throw new ShikiError$1(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
759
+ if (!options.grammarState.themes.includes(theme.name)) throw new ShikiError$1(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
760
+ }
761
+ return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
762
+ }
763
+ function getLastGrammarState(...args) {
764
+ if (args.length === 2) return getLastGrammarStateFromMap(args[1]);
765
+ const [internal, code, options = {}] = args;
766
+ const { lang = "text", theme: themeName = internal.getLoadedThemes()[0] } = options;
767
+ if (isPlainLang(lang) || isNoneTheme(themeName)) throw new ShikiError$1("Plain language does not have grammar state");
768
+ if (lang === "ansi") throw new ShikiError$1("ANSI language does not have grammar state");
769
+ const { theme, colorMap } = internal.setTheme(themeName);
770
+ const _grammar = internal.getLanguage(lang);
771
+ return new GrammarState(_tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack, _grammar.name, theme.name);
772
+ }
773
+ function tokenizeWithTheme(code, grammar, theme, colorMap, options) {
774
+ const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
775
+ const grammarState = new GrammarState(result.stateStack, grammar.name, theme.name);
776
+ setLastGrammarStateToMap(result.tokens, grammarState);
777
+ return result.tokens;
778
+ }
779
+ function _tokenizeWithTheme(code, grammar, theme, colorMap, options) {
780
+ const colorReplacements = resolveColorReplacements(theme, options);
781
+ const { tokenizeMaxLineLength = 0, tokenizeTimeLimit = 500 } = options;
782
+ const lines = splitLines(code);
783
+ let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(options.grammarContextCode, grammar, theme, colorMap, {
784
+ ...options,
785
+ grammarState: void 0,
786
+ grammarContextCode: void 0
787
+ }).stateStack : INITIAL;
788
+ let actual = [];
789
+ const final = [];
790
+ for (let i = 0, len = lines.length; i < len; i++) {
791
+ const [line, lineOffset] = lines[i];
792
+ if (line === "") {
793
+ actual = [];
794
+ final.push([]);
795
+ continue;
796
+ }
797
+ if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
798
+ actual = [];
799
+ final.push([{
800
+ content: line,
801
+ offset: lineOffset,
802
+ color: "",
803
+ fontStyle: 0
804
+ }]);
805
+ continue;
806
+ }
807
+ let resultWithScopes;
808
+ let tokensWithScopes;
809
+ let tokensWithScopesIndex;
810
+ if (options.includeExplanation) {
811
+ resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
812
+ tokensWithScopes = resultWithScopes.tokens;
813
+ tokensWithScopesIndex = 0;
814
+ }
815
+ const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
816
+ const tokensLength = result.tokens.length / 2;
817
+ for (let j = 0; j < tokensLength; j++) {
818
+ const startIndex = result.tokens[2 * j];
819
+ const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
820
+ if (startIndex === nextStartIndex) continue;
821
+ const metadata = result.tokens[2 * j + 1];
822
+ const color = applyColorReplacements(colorMap[EncodedTokenMetadata.getForeground(metadata)], colorReplacements);
823
+ const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
824
+ const token = {
825
+ content: line.substring(startIndex, nextStartIndex),
826
+ offset: lineOffset + startIndex,
827
+ color,
828
+ fontStyle
829
+ };
830
+ if (options.includeExplanation) {
831
+ const themeSettingsSelectors = [];
832
+ if (options.includeExplanation !== "scopeName") for (const setting of theme.settings) {
833
+ let selectors;
834
+ switch (typeof setting.scope) {
835
+ case "string":
836
+ selectors = setting.scope.split(/,/).map((scope) => scope.trim());
837
+ break;
838
+ case "object":
839
+ selectors = setting.scope;
840
+ break;
841
+ default: continue;
842
+ }
843
+ themeSettingsSelectors.push({
844
+ settings: setting,
845
+ selectors: selectors.map((selector) => selector.split(/ /))
846
+ });
847
+ }
848
+ token.explanation = [];
849
+ let offset = 0;
850
+ while (startIndex + offset < nextStartIndex) {
851
+ const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
852
+ const tokenWithScopesText = line.substring(tokenWithScopes.startIndex, tokenWithScopes.endIndex);
853
+ offset += tokenWithScopesText.length;
854
+ token.explanation.push({
855
+ content: tokenWithScopesText,
856
+ scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(tokenWithScopes.scopes) : explainThemeScopesFull(themeSettingsSelectors, tokenWithScopes.scopes)
857
+ });
858
+ tokensWithScopesIndex += 1;
859
+ }
860
+ }
861
+ actual.push(token);
862
+ }
863
+ final.push(actual);
864
+ actual = [];
865
+ stateStack = result.ruleStack;
866
+ }
867
+ return {
868
+ tokens: final,
869
+ stateStack
870
+ };
871
+ }
872
+ function explainThemeScopesNameOnly(scopes) {
873
+ return scopes.map((scope) => ({ scopeName: scope }));
874
+ }
875
+ function explainThemeScopesFull(themeSelectors, scopes) {
876
+ const result = [];
877
+ for (let i = 0, len = scopes.length; i < len; i++) {
878
+ const scope = scopes[i];
879
+ result[i] = {
880
+ scopeName: scope,
881
+ themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
882
+ };
883
+ }
884
+ return result;
885
+ }
886
+ function matchesOne(selector, scope) {
887
+ return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
888
+ }
889
+ function matches(selectors, scope, parentScopes) {
890
+ if (!matchesOne(selectors[selectors.length - 1], scope)) return false;
891
+ let selectorParentIndex = selectors.length - 2;
892
+ let parentIndex = parentScopes.length - 1;
893
+ while (selectorParentIndex >= 0 && parentIndex >= 0) {
894
+ if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex])) selectorParentIndex -= 1;
895
+ parentIndex -= 1;
896
+ }
897
+ if (selectorParentIndex === -1) return true;
898
+ return false;
899
+ }
900
+ function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
901
+ const result = [];
902
+ for (const { selectors, settings } of themeSettingsSelectors) for (const selectorPieces of selectors) if (matches(selectorPieces, scope, parentScopes)) {
903
+ result.push(settings);
904
+ break;
905
+ }
906
+ return result;
907
+ }
908
+ function codeToTokensWithThemes(internal, code, options) {
909
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
910
+ color: i[0],
911
+ theme: i[1]
912
+ }));
913
+ const themedTokens = themes.map((t) => {
914
+ const tokens2 = codeToTokensBase(internal, code, {
915
+ ...options,
916
+ theme: t.theme
917
+ });
918
+ return {
919
+ tokens: tokens2,
920
+ state: getLastGrammarStateFromMap(tokens2),
921
+ theme: typeof t.theme === "string" ? t.theme : t.theme.name
922
+ };
923
+ });
924
+ const tokens = syncThemesTokenization(...themedTokens.map((i) => i.tokens));
925
+ const mergedTokens = tokens[0].map((line, lineIdx) => line.map((_token, tokenIdx) => {
926
+ const mergedToken = {
927
+ content: _token.content,
928
+ variants: {},
929
+ offset: _token.offset
930
+ };
931
+ if ("includeExplanation" in options && options.includeExplanation) mergedToken.explanation = _token.explanation;
932
+ tokens.forEach((t, themeIdx) => {
933
+ const { content: _, explanation: __, offset: ___, ...styles } = t[lineIdx][tokenIdx];
934
+ mergedToken.variants[themes[themeIdx].color] = styles;
935
+ });
936
+ return mergedToken;
937
+ }));
938
+ const mergedGrammarState = themedTokens[0].state ? new GrammarState(Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])), themedTokens[0].state.lang) : void 0;
939
+ if (mergedGrammarState) setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
940
+ return mergedTokens;
941
+ }
942
+ function syncThemesTokenization(...themes) {
943
+ const outThemes = themes.map(() => []);
944
+ const count = themes.length;
945
+ for (let i = 0; i < themes[0].length; i++) {
946
+ const lines = themes.map((t) => t[i]);
947
+ const outLines = outThemes.map(() => []);
948
+ outThemes.forEach((t, i2) => t.push(outLines[i2]));
949
+ const indexes = lines.map(() => 0);
950
+ const current = lines.map((l) => l[0]);
951
+ while (current.every((t) => t)) {
952
+ const minLength = Math.min(...current.map((t) => t.content.length));
953
+ for (let n = 0; n < count; n++) {
954
+ const token = current[n];
955
+ if (token.content.length === minLength) {
956
+ outLines[n].push(token);
957
+ indexes[n] += 1;
958
+ current[n] = lines[n][indexes[n]];
959
+ } else {
960
+ outLines[n].push({
961
+ ...token,
962
+ content: token.content.slice(0, minLength)
963
+ });
964
+ current[n] = {
965
+ ...token,
966
+ content: token.content.slice(minLength),
967
+ offset: token.offset + minLength
968
+ };
969
+ }
970
+ }
971
+ }
972
+ }
973
+ return outThemes;
974
+ }
975
+ function codeToTokens(internal, code, options) {
976
+ let bg;
977
+ let fg;
978
+ let tokens;
979
+ let themeName;
980
+ let rootStyle;
981
+ let grammarState;
982
+ if ("themes" in options) {
983
+ const { defaultColor = "light", cssVariablePrefix = "--shiki-", colorsRendering = "css-vars" } = options;
984
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
985
+ color: i[0],
986
+ theme: i[1]
987
+ })).sort((a, b) => a.color === defaultColor ? -1 : b.color === defaultColor ? 1 : 0);
988
+ if (themes.length === 0) throw new ShikiError$1("`themes` option must not be empty");
989
+ const themeTokens = codeToTokensWithThemes(internal, code, options);
990
+ grammarState = getLastGrammarStateFromMap(themeTokens);
991
+ if (defaultColor && DEFAULT_COLOR_LIGHT_DARK !== defaultColor && !themes.find((t) => t.color === defaultColor)) throw new ShikiError$1(`\`themes\` option must contain the defaultColor key \`${defaultColor}\``);
992
+ const themeRegs = themes.map((t) => internal.getTheme(t.theme));
993
+ const themesOrder = themes.map((t) => t.color);
994
+ tokens = themeTokens.map((line) => line.map((token) => flatTokenVariants(token, themesOrder, cssVariablePrefix, defaultColor, colorsRendering)));
995
+ if (grammarState) setLastGrammarStateToMap(tokens, grammarState);
996
+ const themeColorReplacements = themes.map((t) => resolveColorReplacements(t.theme, options));
997
+ fg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "fg", colorsRendering);
998
+ bg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "bg", colorsRendering);
999
+ themeName = `shiki-themes ${themeRegs.map((t) => t.name).join(" ")}`;
1000
+ rootStyle = defaultColor ? void 0 : [fg, bg].join(";");
1001
+ } else if ("theme" in options) {
1002
+ const colorReplacements = resolveColorReplacements(options.theme, options);
1003
+ tokens = codeToTokensBase(internal, code, options);
1004
+ const _theme = internal.getTheme(options.theme);
1005
+ bg = applyColorReplacements(_theme.bg, colorReplacements);
1006
+ fg = applyColorReplacements(_theme.fg, colorReplacements);
1007
+ themeName = _theme.name;
1008
+ grammarState = getLastGrammarStateFromMap(tokens);
1009
+ } else throw new ShikiError$1("Invalid options, either `theme` or `themes` must be provided");
1010
+ return {
1011
+ tokens,
1012
+ fg,
1013
+ bg,
1014
+ themeName,
1015
+ rootStyle,
1016
+ grammarState
1017
+ };
1018
+ }
1019
+ function mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, property, colorsRendering) {
1020
+ return themes.map((t, idx) => {
1021
+ const value = applyColorReplacements(themeRegs[idx][property], themeColorReplacements[idx]) || "inherit";
1022
+ const cssVar = `${cssVariablePrefix + t.color}${property === "bg" ? "-bg" : ""}:${value}`;
1023
+ if (idx === 0 && defaultColor) {
1024
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && themes.length > 1) {
1025
+ const lightIndex = themes.findIndex((t2) => t2.color === "light");
1026
+ const darkIndex = themes.findIndex((t2) => t2.color === "dark");
1027
+ if (lightIndex === -1 || darkIndex === -1) throw new ShikiError$1("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
1028
+ return `light-dark(${applyColorReplacements(themeRegs[lightIndex][property], themeColorReplacements[lightIndex]) || "inherit"}, ${applyColorReplacements(themeRegs[darkIndex][property], themeColorReplacements[darkIndex]) || "inherit"});${cssVar}`;
1029
+ }
1030
+ return value;
1031
+ }
1032
+ if (colorsRendering === "css-vars") return cssVar;
1033
+ return null;
1034
+ }).filter((i) => !!i).join(";");
1035
+ }
1036
+ function codeToHast(internal, code, options, transformerContext = {
1037
+ meta: {},
1038
+ options,
1039
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
1040
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
1041
+ }) {
1042
+ let input = code;
1043
+ for (const transformer of getTransformers(options)) input = transformer.preprocess?.call(transformerContext, input, options) || input;
1044
+ let { tokens, fg, bg, themeName, rootStyle, grammarState } = codeToTokens(internal, input, options);
1045
+ const { mergeWhitespaces = true, mergeSameStyleTokens = false } = options;
1046
+ if (mergeWhitespaces === true) tokens = mergeWhitespaceTokens(tokens);
1047
+ else if (mergeWhitespaces === "never") tokens = splitWhitespaceTokens(tokens);
1048
+ if (mergeSameStyleTokens) tokens = mergeAdjacentStyledTokens(tokens);
1049
+ const contextSource = {
1050
+ ...transformerContext,
1051
+ get source() {
1052
+ return input;
1053
+ }
1054
+ };
1055
+ for (const transformer of getTransformers(options)) tokens = transformer.tokens?.call(contextSource, tokens) || tokens;
1056
+ return tokensToHast(tokens, {
1057
+ ...options,
1058
+ fg,
1059
+ bg,
1060
+ themeName,
1061
+ rootStyle: options.rootStyle === false ? false : options.rootStyle ?? rootStyle
1062
+ }, contextSource, grammarState);
1063
+ }
1064
+ function tokensToHast(tokens, options, transformerContext, grammarState = getLastGrammarStateFromMap(tokens)) {
1065
+ const transformers = getTransformers(options);
1066
+ const lines = [];
1067
+ const root = {
1068
+ type: "root",
1069
+ children: []
1070
+ };
1071
+ const { structure = "classic", tabindex = "0" } = options;
1072
+ const properties = { class: `shiki ${options.themeName || ""}` };
1073
+ if (options.rootStyle !== false) {
1074
+ if (options.rootStyle != null) properties.style = options.rootStyle;
1075
+ else properties.style = `background-color:${options.bg};color:${options.fg}`;
1076
+ }
1077
+ if (tabindex !== false && tabindex != null) properties.tabindex = tabindex.toString();
1078
+ for (const [key, value] of Object.entries(options.meta || {})) if (!key.startsWith("_")) properties[key] = value;
1079
+ let preNode = {
1080
+ type: "element",
1081
+ tagName: "pre",
1082
+ properties,
1083
+ children: [],
1084
+ data: options.data
1085
+ };
1086
+ let codeNode = {
1087
+ type: "element",
1088
+ tagName: "code",
1089
+ properties: {},
1090
+ children: lines
1091
+ };
1092
+ const lineNodes = [];
1093
+ const context = {
1094
+ ...transformerContext,
1095
+ structure,
1096
+ addClassToHast,
1097
+ get source() {
1098
+ return transformerContext.source;
1099
+ },
1100
+ get tokens() {
1101
+ return tokens;
1102
+ },
1103
+ get options() {
1104
+ return options;
1105
+ },
1106
+ get root() {
1107
+ return root;
1108
+ },
1109
+ get pre() {
1110
+ return preNode;
1111
+ },
1112
+ get code() {
1113
+ return codeNode;
1114
+ },
1115
+ get lines() {
1116
+ return lineNodes;
1117
+ }
1118
+ };
1119
+ tokens.forEach((line, idx) => {
1120
+ if (idx) {
1121
+ if (structure === "inline") root.children.push({
1122
+ type: "element",
1123
+ tagName: "br",
1124
+ properties: {},
1125
+ children: []
1126
+ });
1127
+ else if (structure === "classic") lines.push({
1128
+ type: "text",
1129
+ value: "\n"
1130
+ });
1131
+ }
1132
+ let lineNode = {
1133
+ type: "element",
1134
+ tagName: "span",
1135
+ properties: { class: "line" },
1136
+ children: []
1137
+ };
1138
+ let col = 0;
1139
+ for (const token of line) {
1140
+ let tokenNode = {
1141
+ type: "element",
1142
+ tagName: "span",
1143
+ properties: { ...token.htmlAttrs },
1144
+ children: [{
1145
+ type: "text",
1146
+ value: token.content
1147
+ }]
1148
+ };
1149
+ const style = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
1150
+ if (style) tokenNode.properties.style = style;
1151
+ for (const transformer of transformers) tokenNode = transformer?.span?.call(context, tokenNode, idx + 1, col, lineNode, token) || tokenNode;
1152
+ if (structure === "inline") root.children.push(tokenNode);
1153
+ else if (structure === "classic") lineNode.children.push(tokenNode);
1154
+ col += token.content.length;
1155
+ }
1156
+ if (structure === "classic") {
1157
+ for (const transformer of transformers) lineNode = transformer?.line?.call(context, lineNode, idx + 1) || lineNode;
1158
+ lineNodes.push(lineNode);
1159
+ lines.push(lineNode);
1160
+ } else if (structure === "inline") lineNodes.push(lineNode);
1161
+ });
1162
+ if (structure === "classic") {
1163
+ for (const transformer of transformers) codeNode = transformer?.code?.call(context, codeNode) || codeNode;
1164
+ preNode.children.push(codeNode);
1165
+ for (const transformer of transformers) preNode = transformer?.pre?.call(context, preNode) || preNode;
1166
+ root.children.push(preNode);
1167
+ } else if (structure === "inline") {
1168
+ const syntheticLines = [];
1169
+ let currentLine = {
1170
+ type: "element",
1171
+ tagName: "span",
1172
+ properties: { class: "line" },
1173
+ children: []
1174
+ };
1175
+ for (const child of root.children) if (child.type === "element" && child.tagName === "br") {
1176
+ syntheticLines.push(currentLine);
1177
+ currentLine = {
1178
+ type: "element",
1179
+ tagName: "span",
1180
+ properties: { class: "line" },
1181
+ children: []
1182
+ };
1183
+ } else if (child.type === "element" || child.type === "text") currentLine.children.push(child);
1184
+ syntheticLines.push(currentLine);
1185
+ let transformedCode = {
1186
+ type: "element",
1187
+ tagName: "code",
1188
+ properties: {},
1189
+ children: syntheticLines
1190
+ };
1191
+ for (const transformer of transformers) transformedCode = transformer?.code?.call(context, transformedCode) || transformedCode;
1192
+ root.children = [];
1193
+ for (let i = 0; i < transformedCode.children.length; i++) {
1194
+ if (i > 0) root.children.push({
1195
+ type: "element",
1196
+ tagName: "br",
1197
+ properties: {},
1198
+ children: []
1199
+ });
1200
+ const line = transformedCode.children[i];
1201
+ if (line.type === "element") root.children.push(...line.children);
1202
+ }
1203
+ }
1204
+ let result = root;
1205
+ for (const transformer of transformers) result = transformer?.root?.call(context, result) || result;
1206
+ if (grammarState) setLastGrammarStateToMap(result, grammarState);
1207
+ return result;
1208
+ }
1209
+ function mergeWhitespaceTokens(tokens) {
1210
+ return tokens.map((line) => {
1211
+ const newLine = [];
1212
+ let carryOnContent = "";
1213
+ let firstOffset;
1214
+ line.forEach((token, idx) => {
1215
+ const couldMerge = !(token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough));
1216
+ if (couldMerge && token.content.match(/^\s+$/) && line[idx + 1]) {
1217
+ if (firstOffset === void 0) firstOffset = token.offset;
1218
+ carryOnContent += token.content;
1219
+ } else if (carryOnContent) {
1220
+ if (couldMerge) newLine.push({
1221
+ ...token,
1222
+ offset: firstOffset,
1223
+ content: carryOnContent + token.content
1224
+ });
1225
+ else newLine.push({
1226
+ content: carryOnContent,
1227
+ offset: firstOffset
1228
+ }, token);
1229
+ firstOffset = void 0;
1230
+ carryOnContent = "";
1231
+ } else newLine.push(token);
1232
+ });
1233
+ return newLine;
1234
+ });
1235
+ }
1236
+ function splitWhitespaceTokens(tokens) {
1237
+ return tokens.map((line) => {
1238
+ return line.flatMap((token) => {
1239
+ if (token.content.match(/^\s+$/)) return token;
1240
+ const match = token.content.match(/^(\s*)(.*?)(\s*)$/);
1241
+ if (!match) return token;
1242
+ const [, leading, content, trailing] = match;
1243
+ if (!leading && !trailing) return token;
1244
+ const expanded = [{
1245
+ ...token,
1246
+ offset: token.offset + leading.length,
1247
+ content
1248
+ }];
1249
+ if (leading) expanded.unshift({
1250
+ content: leading,
1251
+ offset: token.offset
1252
+ });
1253
+ if (trailing) expanded.push({
1254
+ content: trailing,
1255
+ offset: token.offset + leading.length + content.length
1256
+ });
1257
+ return expanded;
1258
+ });
1259
+ });
1260
+ }
1261
+ function mergeAdjacentStyledTokens(tokens) {
1262
+ return tokens.map((line) => {
1263
+ const newLine = [];
1264
+ for (const token of line) {
1265
+ if (newLine.length === 0) {
1266
+ newLine.push({ ...token });
1267
+ continue;
1268
+ }
1269
+ const prevToken = newLine[newLine.length - 1];
1270
+ const prevStyle = stringifyTokenStyle(prevToken.htmlStyle || getTokenStyleObject(prevToken));
1271
+ const currentStyle = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
1272
+ const isPrevDecorated = prevToken.fontStyle && (prevToken.fontStyle & FontStyle.Underline || prevToken.fontStyle & FontStyle.Strikethrough);
1273
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
1274
+ if (!isPrevDecorated && !isDecorated && prevStyle === currentStyle) prevToken.content += token.content;
1275
+ else newLine.push({ ...token });
1276
+ }
1277
+ return newLine;
1278
+ });
1279
+ }
1280
+ var hastToHtml = toHtml;
1281
+ function codeToHtml(internal, code, options) {
1282
+ const context = {
1283
+ meta: {},
1284
+ options,
1285
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
1286
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
1287
+ };
1288
+ let result = hastToHtml(codeToHast(internal, code, options, context));
1289
+ for (const transformer of getTransformers(options)) result = transformer.postprocess?.call(context, result, options) || result;
1290
+ return result;
1291
+ }
1292
+ var VSCODE_FALLBACK_EDITOR_FG = {
1293
+ light: "#333333",
1294
+ dark: "#bbbbbb"
1295
+ };
1296
+ var VSCODE_FALLBACK_EDITOR_BG = {
1297
+ light: "#fffffe",
1298
+ dark: "#1e1e1e"
1299
+ };
1300
+ var RESOLVED_KEY = "__shiki_resolved";
1301
+ function normalizeTheme(rawTheme) {
1302
+ if (rawTheme?.[RESOLVED_KEY]) return rawTheme;
1303
+ const theme = { ...rawTheme };
1304
+ if (theme.tokenColors && !theme.settings) {
1305
+ theme.settings = theme.tokenColors;
1306
+ delete theme.tokenColors;
1307
+ }
1308
+ theme.type ||= "dark";
1309
+ theme.colorReplacements = { ...theme.colorReplacements };
1310
+ theme.settings ||= [];
1311
+ let { bg, fg } = theme;
1312
+ if (!bg || !fg) {
1313
+ const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
1314
+ if (globalSetting?.settings?.foreground) fg = globalSetting.settings.foreground;
1315
+ if (globalSetting?.settings?.background) bg = globalSetting.settings.background;
1316
+ if (!fg && theme?.colors?.["editor.foreground"]) fg = theme.colors["editor.foreground"];
1317
+ if (!bg && theme?.colors?.["editor.background"]) bg = theme.colors["editor.background"];
1318
+ if (!fg) fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
1319
+ if (!bg) bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
1320
+ theme.fg = fg;
1321
+ theme.bg = bg;
1322
+ }
1323
+ if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) theme.settings.unshift({ settings: {
1324
+ foreground: theme.fg,
1325
+ background: theme.bg
1326
+ } });
1327
+ let replacementCount = 0;
1328
+ const replacementMap = /* @__PURE__ */ new Map();
1329
+ function getReplacementColor(value) {
1330
+ if (replacementMap.has(value)) return replacementMap.get(value);
1331
+ replacementCount += 1;
1332
+ const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
1333
+ if (theme.colorReplacements?.[`#${hex}`]) return getReplacementColor(value);
1334
+ replacementMap.set(value, hex);
1335
+ return hex;
1336
+ }
1337
+ theme.settings = theme.settings.map((setting) => {
1338
+ const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
1339
+ const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
1340
+ if (!replaceFg && !replaceBg) return setting;
1341
+ const clone = {
1342
+ ...setting,
1343
+ settings: { ...setting.settings }
1344
+ };
1345
+ if (replaceFg) {
1346
+ const replacement = getReplacementColor(setting.settings.foreground);
1347
+ theme.colorReplacements[replacement] = setting.settings.foreground;
1348
+ clone.settings.foreground = replacement;
1349
+ }
1350
+ if (replaceBg) {
1351
+ const replacement = getReplacementColor(setting.settings.background);
1352
+ theme.colorReplacements[replacement] = setting.settings.background;
1353
+ clone.settings.background = replacement;
1354
+ }
1355
+ return clone;
1356
+ });
1357
+ for (const key of Object.keys(theme.colors || {})) if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
1358
+ if (!theme.colors[key]?.startsWith("#")) {
1359
+ const replacement = getReplacementColor(theme.colors[key]);
1360
+ theme.colorReplacements[replacement] = theme.colors[key];
1361
+ theme.colors[key] = replacement;
1362
+ }
1363
+ }
1364
+ Object.defineProperty(theme, RESOLVED_KEY, {
1365
+ enumerable: false,
1366
+ writable: false,
1367
+ value: true
1368
+ });
1369
+ return theme;
1370
+ }
1371
+ async function resolveLangs(langs) {
1372
+ return Array.from(new Set((await Promise.all(langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r])))).flat()));
1373
+ }
1374
+ async function resolveThemes(themes) {
1375
+ return (await Promise.all(themes.map(async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))))).filter((i) => !!i);
1376
+ }
1377
+ var _emitDeprecation = 3;
1378
+ var _emitError = false;
1379
+ function warnDeprecated(message, version = 3) {
1380
+ if (!_emitDeprecation) return;
1381
+ if (typeof _emitDeprecation === "number" && version > _emitDeprecation) return;
1382
+ if (_emitError) throw new Error(`[SHIKI DEPRECATE]: ${message}`);
1383
+ else console.trace(`[SHIKI DEPRECATE]: ${message}`);
1384
+ }
1385
+ var ShikiError = class extends Error {
1386
+ constructor(message) {
1387
+ super(message);
1388
+ this.name = "ShikiError";
1389
+ }
1390
+ };
1391
+ function resolveLangAlias(name, alias) {
1392
+ if (!alias) return name;
1393
+ if (alias[name]) {
1394
+ const resolved = /* @__PURE__ */ new Set([name]);
1395
+ while (alias[name]) {
1396
+ name = alias[name];
1397
+ if (resolved.has(name)) throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
1398
+ resolved.add(name);
1399
+ }
1400
+ }
1401
+ return name;
1402
+ }
1403
+ var Registry = class extends Registry$1 {
1404
+ constructor(_resolver, _themes, _langs, _alias = {}) {
1405
+ super(_resolver);
1406
+ this._resolver = _resolver;
1407
+ this._themes = _themes;
1408
+ this._langs = _langs;
1409
+ this._alias = _alias;
1410
+ this._themes.map((t) => this.loadTheme(t));
1411
+ this.loadLanguages(this._langs);
1412
+ }
1413
+ _resolvedThemes = /* @__PURE__ */ new Map();
1414
+ _resolvedGrammars = /* @__PURE__ */ new Map();
1415
+ _langMap = /* @__PURE__ */ new Map();
1416
+ _langGraph = /* @__PURE__ */ new Map();
1417
+ _textmateThemeCache = /* @__PURE__ */ new WeakMap();
1418
+ _loadedThemesCache = null;
1419
+ _loadedLanguagesCache = null;
1420
+ getTheme(theme) {
1421
+ if (typeof theme === "string") return this._resolvedThemes.get(theme);
1422
+ else return this.loadTheme(theme);
1423
+ }
1424
+ loadTheme(theme) {
1425
+ const _theme = normalizeTheme(theme);
1426
+ if (_theme.name) {
1427
+ this._resolvedThemes.set(_theme.name, _theme);
1428
+ this._loadedThemesCache = null;
1429
+ }
1430
+ return _theme;
1431
+ }
1432
+ getLoadedThemes() {
1433
+ if (!this._loadedThemesCache) this._loadedThemesCache = [...this._resolvedThemes.keys()];
1434
+ return this._loadedThemesCache;
1435
+ }
1436
+ setTheme(theme) {
1437
+ let textmateTheme = this._textmateThemeCache.get(theme);
1438
+ if (!textmateTheme) {
1439
+ textmateTheme = Theme.createFromRawTheme(theme);
1440
+ this._textmateThemeCache.set(theme, textmateTheme);
1441
+ }
1442
+ this._syncRegistry.setTheme(textmateTheme);
1443
+ }
1444
+ getGrammar(name) {
1445
+ name = resolveLangAlias(name, this._alias);
1446
+ return this._resolvedGrammars.get(name);
1447
+ }
1448
+ loadLanguage(lang) {
1449
+ if (this.getGrammar(lang.name)) return;
1450
+ const embeddedLazilyBy = new Set([...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name)));
1451
+ this._resolver.addLanguage(lang);
1452
+ const grammarConfig = {
1453
+ balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
1454
+ unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
1455
+ };
1456
+ this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
1457
+ const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
1458
+ g.name = lang.name;
1459
+ this._resolvedGrammars.set(lang.name, g);
1460
+ if (lang.aliases) lang.aliases.forEach((alias) => {
1461
+ this._alias[alias] = lang.name;
1462
+ });
1463
+ this._loadedLanguagesCache = null;
1464
+ if (embeddedLazilyBy.size) for (const e of embeddedLazilyBy) {
1465
+ this._resolvedGrammars.delete(e.name);
1466
+ this._loadedLanguagesCache = null;
1467
+ this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
1468
+ this._syncRegistry?._grammars?.delete(e.scopeName);
1469
+ this.loadLanguage(this._langMap.get(e.name));
1470
+ }
1471
+ }
1472
+ dispose() {
1473
+ super.dispose();
1474
+ this._resolvedThemes.clear();
1475
+ this._resolvedGrammars.clear();
1476
+ this._langMap.clear();
1477
+ this._langGraph.clear();
1478
+ this._loadedThemesCache = null;
1479
+ }
1480
+ loadLanguages(langs) {
1481
+ for (const lang of langs) this.resolveEmbeddedLanguages(lang);
1482
+ const langsGraphArray = Array.from(this._langGraph.entries());
1483
+ const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
1484
+ if (missingLangs.length) {
1485
+ const dependents = langsGraphArray.filter(([_, lang]) => {
1486
+ if (!lang) return false;
1487
+ return (lang.embeddedLanguages || lang.embeddedLangs)?.some((l) => missingLangs.map(([name]) => name).includes(l));
1488
+ }).filter((lang) => !missingLangs.includes(lang));
1489
+ throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
1490
+ }
1491
+ for (const [_, lang] of langsGraphArray) this._resolver.addLanguage(lang);
1492
+ for (const [_, lang] of langsGraphArray) this.loadLanguage(lang);
1493
+ }
1494
+ getLoadedLanguages() {
1495
+ if (!this._loadedLanguagesCache) this._loadedLanguagesCache = [.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])];
1496
+ return this._loadedLanguagesCache;
1497
+ }
1498
+ resolveEmbeddedLanguages(lang) {
1499
+ this._langMap.set(lang.name, lang);
1500
+ this._langGraph.set(lang.name, lang);
1501
+ const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
1502
+ if (embedded) for (const embeddedLang of embedded) this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
1503
+ }
1504
+ };
1505
+ var Resolver = class {
1506
+ _langs = /* @__PURE__ */ new Map();
1507
+ _scopeToLang = /* @__PURE__ */ new Map();
1508
+ _injections = /* @__PURE__ */ new Map();
1509
+ _onigLib;
1510
+ constructor(engine, langs) {
1511
+ this._onigLib = {
1512
+ createOnigScanner: (patterns) => engine.createScanner(patterns),
1513
+ createOnigString: (s) => engine.createString(s)
1514
+ };
1515
+ langs.forEach((i) => this.addLanguage(i));
1516
+ }
1517
+ get onigLib() {
1518
+ return this._onigLib;
1519
+ }
1520
+ getLangRegistration(langIdOrAlias) {
1521
+ return this._langs.get(langIdOrAlias);
1522
+ }
1523
+ loadGrammar(scopeName) {
1524
+ return this._scopeToLang.get(scopeName);
1525
+ }
1526
+ addLanguage(l) {
1527
+ this._langs.set(l.name, l);
1528
+ if (l.aliases) l.aliases.forEach((a) => {
1529
+ this._langs.set(a, l);
1530
+ });
1531
+ this._scopeToLang.set(l.scopeName, l);
1532
+ if (l.injectTo) l.injectTo.forEach((i) => {
1533
+ if (!this._injections.get(i)) this._injections.set(i, []);
1534
+ this._injections.get(i).push(l.scopeName);
1535
+ });
1536
+ }
1537
+ getInjections(scopeName) {
1538
+ const scopeParts = scopeName.split(".");
1539
+ let injections = [];
1540
+ for (let i = 1; i <= scopeParts.length; i++) {
1541
+ const subScopeName = scopeParts.slice(0, i).join(".");
1542
+ injections = [...injections, ...this._injections.get(subScopeName) || []];
1543
+ }
1544
+ return injections;
1545
+ }
1546
+ };
1547
+ var instancesCount = 0;
1548
+ function createShikiInternalSync(options) {
1549
+ instancesCount += 1;
1550
+ if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0) console.warn(`[Shiki] ${instancesCount} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
1551
+ let isDisposed = false;
1552
+ if (!options.engine) throw new ShikiError("`engine` option is required for synchronous mode");
1553
+ const langs = (options.langs || []).flat(1);
1554
+ const themes = (options.themes || []).flat(1).map(normalizeTheme);
1555
+ const _registry = new Registry(new Resolver(options.engine, langs), themes, langs, options.langAlias);
1556
+ let _lastTheme;
1557
+ function resolveLangAlias$1(name) {
1558
+ return resolveLangAlias(name, options.langAlias);
1559
+ }
1560
+ function getLanguage(name) {
1561
+ ensureNotDisposed();
1562
+ const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
1563
+ if (!_lang) throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
1564
+ return _lang;
1565
+ }
1566
+ function getTheme(name) {
1567
+ if (name === "none") return {
1568
+ bg: "",
1569
+ fg: "",
1570
+ name: "none",
1571
+ settings: [],
1572
+ type: "dark"
1573
+ };
1574
+ ensureNotDisposed();
1575
+ const _theme = _registry.getTheme(name);
1576
+ if (!_theme) throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
1577
+ return _theme;
1578
+ }
1579
+ function setTheme(name) {
1580
+ ensureNotDisposed();
1581
+ const theme = getTheme(name);
1582
+ if (_lastTheme !== name) {
1583
+ _registry.setTheme(theme);
1584
+ _lastTheme = name;
1585
+ }
1586
+ return {
1587
+ theme,
1588
+ colorMap: _registry.getColorMap()
1589
+ };
1590
+ }
1591
+ function getLoadedThemes() {
1592
+ ensureNotDisposed();
1593
+ return _registry.getLoadedThemes();
1594
+ }
1595
+ function getLoadedLanguages() {
1596
+ ensureNotDisposed();
1597
+ return _registry.getLoadedLanguages();
1598
+ }
1599
+ function loadLanguageSync(...langs2) {
1600
+ ensureNotDisposed();
1601
+ _registry.loadLanguages(langs2.flat(1));
1602
+ }
1603
+ async function loadLanguage(...langs2) {
1604
+ return loadLanguageSync(await resolveLangs(langs2));
1605
+ }
1606
+ function loadThemeSync(...themes2) {
1607
+ ensureNotDisposed();
1608
+ for (const theme of themes2.flat(1)) _registry.loadTheme(theme);
1609
+ }
1610
+ async function loadTheme(...themes2) {
1611
+ ensureNotDisposed();
1612
+ return loadThemeSync(await resolveThemes(themes2));
1613
+ }
1614
+ function ensureNotDisposed() {
1615
+ if (isDisposed) throw new ShikiError("Shiki instance has been disposed");
1616
+ }
1617
+ function dispose() {
1618
+ if (isDisposed) return;
1619
+ isDisposed = true;
1620
+ _registry.dispose();
1621
+ instancesCount -= 1;
1622
+ }
1623
+ return {
1624
+ setTheme,
1625
+ getTheme,
1626
+ getLanguage,
1627
+ getLoadedThemes,
1628
+ getLoadedLanguages,
1629
+ resolveLangAlias: resolveLangAlias$1,
1630
+ loadLanguage,
1631
+ loadLanguageSync,
1632
+ loadTheme,
1633
+ loadThemeSync,
1634
+ dispose,
1635
+ [Symbol.dispose]: dispose
1636
+ };
1637
+ }
1638
+ async function createShikiInternal(options) {
1639
+ if (!options.engine) warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
1640
+ const [themes, langs, engine] = await Promise.all([
1641
+ resolveThemes(options.themes || []),
1642
+ resolveLangs(options.langs || []),
1643
+ options.engine
1644
+ ]);
1645
+ return createShikiInternalSync({
1646
+ ...options,
1647
+ themes,
1648
+ langs,
1649
+ engine
1650
+ });
1651
+ }
1652
+ async function createHighlighterCore(options) {
1653
+ const internal = await createShikiInternal(options);
1654
+ return {
1655
+ getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
1656
+ codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
1657
+ codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
1658
+ codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
1659
+ codeToHast: (code, options2) => codeToHast(internal, code, options2),
1660
+ codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
1661
+ getBundledLanguages: () => ({}),
1662
+ getBundledThemes: () => ({}),
1663
+ ...internal,
1664
+ getInternalContext: () => internal
1665
+ };
1666
+ }
1667
+ function createBundledHighlighter(options) {
1668
+ const bundledLanguages = options.langs;
1669
+ const bundledThemes = options.themes;
1670
+ const engine = options.engine;
1671
+ async function createHighlighter(options2) {
1672
+ function resolveLang(lang) {
1673
+ if (typeof lang === "string") {
1674
+ lang = options2.langAlias?.[lang] || lang;
1675
+ if (isSpecialLang(lang)) return [];
1676
+ const bundle = bundledLanguages[lang];
1677
+ if (!bundle) throw new ShikiError$1(`Language \`${lang}\` is not included in this bundle. You may want to load it from external source.`);
1678
+ return bundle;
1679
+ }
1680
+ return lang;
1681
+ }
1682
+ function resolveTheme(theme) {
1683
+ if (isSpecialTheme(theme)) return "none";
1684
+ if (typeof theme === "string") {
1685
+ const bundle = bundledThemes[theme];
1686
+ if (!bundle) throw new ShikiError$1(`Theme \`${theme}\` is not included in this bundle. You may want to load it from external source.`);
1687
+ return bundle;
1688
+ }
1689
+ return theme;
1690
+ }
1691
+ const _themes = (options2.themes ?? []).map((i) => resolveTheme(i));
1692
+ const langs = (options2.langs ?? []).map((i) => resolveLang(i));
1693
+ const core = await createHighlighterCore({
1694
+ engine: options2.engine ?? engine(),
1695
+ ...options2,
1696
+ themes: _themes,
1697
+ langs
1698
+ });
1699
+ return {
1700
+ ...core,
1701
+ loadLanguage(...langs2) {
1702
+ return core.loadLanguage(...langs2.map(resolveLang));
1703
+ },
1704
+ loadTheme(...themes) {
1705
+ return core.loadTheme(...themes.map(resolveTheme));
1706
+ },
1707
+ getBundledLanguages() {
1708
+ return bundledLanguages;
1709
+ },
1710
+ getBundledThemes() {
1711
+ return bundledThemes;
1712
+ }
1713
+ };
1714
+ }
1715
+ return createHighlighter;
1716
+ }
1717
+ function makeSingletonHighlighter(createHighlighter) {
1718
+ let _shiki;
1719
+ async function getSingletonHighlighter(options = {}) {
1720
+ if (!_shiki) {
1721
+ _shiki = createHighlighter({
1722
+ ...options,
1723
+ themes: [],
1724
+ langs: []
1725
+ });
1726
+ const s = await _shiki;
1727
+ await Promise.all([s.loadTheme(...options.themes || []), s.loadLanguage(...options.langs || [])]);
1728
+ return s;
1729
+ } else {
1730
+ const s = await _shiki;
1731
+ await Promise.all([s.loadTheme(...options.themes || []), s.loadLanguage(...options.langs || [])]);
1732
+ return s;
1733
+ }
1734
+ }
1735
+ return getSingletonHighlighter;
1736
+ }
1737
+ function createSingletonShorthands(createHighlighter, config) {
1738
+ const getSingletonHighlighter = makeSingletonHighlighter(createHighlighter);
1739
+ async function get(code, options) {
1740
+ const shiki = await getSingletonHighlighter({
1741
+ langs: [options.lang],
1742
+ themes: "theme" in options ? [options.theme] : Object.values(options.themes)
1743
+ });
1744
+ const langs = await config?.guessEmbeddedLanguages?.(code, options.lang, shiki);
1745
+ if (langs) await shiki.loadLanguage(...langs);
1746
+ return shiki;
1747
+ }
1748
+ return {
1749
+ getSingletonHighlighter(options) {
1750
+ return getSingletonHighlighter(options);
1751
+ },
1752
+ async codeToHtml(code, options) {
1753
+ return (await get(code, options)).codeToHtml(code, options);
1754
+ },
1755
+ async codeToHast(code, options) {
1756
+ return (await get(code, options)).codeToHast(code, options);
1757
+ },
1758
+ async codeToTokens(code, options) {
1759
+ return (await get(code, options)).codeToTokens(code, options);
1760
+ },
1761
+ async codeToTokensBase(code, options) {
1762
+ return (await get(code, options)).codeToTokensBase(code, options);
1763
+ },
1764
+ async codeToTokensWithThemes(code, options) {
1765
+ return (await get(code, options)).codeToTokensWithThemes(code, options);
1766
+ },
1767
+ async getLastGrammarState(code, options) {
1768
+ return (await getSingletonHighlighter({
1769
+ langs: [options.lang],
1770
+ themes: [options.theme]
1771
+ })).getLastGrammarState(code, options);
1772
+ }
1773
+ };
1774
+ }
1775
+ export { ShikiError$1 as ShikiError, addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createBundledHighlighter, createHighlighterCore, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, flatTokenVariants, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, makeSingletonHighlighter, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated };