@loopstack/loopstack-studio 0.25.1 → 0.25.2

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 (1667) hide show
  1. package/dist/_virtual/rolldown_runtime.js +20 -0
  2. package/dist/api/auth.js +2 -4
  3. package/dist/api/client.js +7 -9
  4. package/dist/api/config.js +2 -4
  5. package/dist/api/dashboard.js +2 -4
  6. package/dist/api/documents.js +2 -4
  7. package/dist/api/index.js +19 -21
  8. package/dist/api/processor.js +2 -4
  9. package/dist/api/secrets.js +2 -4
  10. package/dist/api/workflows.js +2 -4
  11. package/dist/api/workspaces.js +2 -4
  12. package/dist/app/EnvironmentEmbedRoot.js +31 -24
  13. package/dist/components/ai-elements/code-block.js +71 -53
  14. package/dist/components/ai-elements/message.js +82 -41
  15. package/dist/components/ai-elements/prompt-input.js +253 -162
  16. package/dist/components/ai-elements/reasoning.js +116 -78
  17. package/dist/components/ai-elements/shimmer.js +35 -23
  18. package/dist/components/ai-elements/sources.js +58 -29
  19. package/dist/components/data-table/ConfirmDialog.js +30 -14
  20. package/dist/components/data-table/DataList.js +198 -138
  21. package/dist/components/data-table/DataTable.js +234 -168
  22. package/dist/components/data-table/DataTableBatchAction.js +27 -18
  23. package/dist/components/data-table/DataTableFilters.js +78 -53
  24. package/dist/components/data-table/DataTablePagination.js +104 -72
  25. package/dist/components/data-table/DataTableToolbar.js +65 -53
  26. package/dist/components/dynamic-form/ArrayController.js +103 -85
  27. package/dist/components/dynamic-form/CodeContent.js +36 -28
  28. package/dist/components/dynamic-form/Form.js +56 -43
  29. package/dist/components/dynamic-form/FormBody.js +10 -12
  30. package/dist/components/dynamic-form/FormElement.js +41 -31
  31. package/dist/components/dynamic-form/FormElementHeader.js +20 -12
  32. package/dist/components/dynamic-form/InputController.js +38 -36
  33. package/dist/components/dynamic-form/MarkdownContent.js +74 -53
  34. package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
  35. package/dist/components/dynamic-form/ObjectController.js +32 -24
  36. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
  37. package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
  38. package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
  39. package/dist/components/dynamic-form/fields/InputField.js +90 -62
  40. package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
  41. package/dist/components/dynamic-form/fields/RadioField.js +62 -46
  42. package/dist/components/dynamic-form/fields/SelectField.js +58 -40
  43. package/dist/components/dynamic-form/fields/SliderField.js +100 -94
  44. package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
  45. package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
  46. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
  47. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
  48. package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
  49. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
  50. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
  51. package/dist/components/feedback/ErrorAlert.js +17 -11
  52. package/dist/components/feedback/ErrorBoundary.js +14 -16
  53. package/dist/components/feedback/ErrorSnackbar.js +30 -13
  54. package/dist/components/feedback/LoadingCentered.js +28 -15
  55. package/dist/components/feedback/Snackbar.js +44 -43
  56. package/dist/components/feedback/index.js +5 -5
  57. package/dist/components/index.js +47 -47
  58. package/dist/components/layout/MainLayout.js +25 -17
  59. package/dist/components/layout/StudioSidebar.js +202 -132
  60. package/dist/components/lists/CustomListView.js +74 -49
  61. package/dist/components/lists/ListView.js +102 -66
  62. package/dist/components/loopstack-elements/link.js +104 -65
  63. package/dist/components/loopstack-elements/tool.js +142 -70
  64. package/dist/components/messages/CompletionMessagePaper.js +85 -53
  65. package/dist/components/page/PageBreadcrumbs.js +83 -64
  66. package/dist/components/ui/DiscordLogo.js +22 -16
  67. package/dist/components/ui/GoogleLogo.js +44 -40
  68. package/dist/components/ui/accordion.js +52 -31
  69. package/dist/components/ui/alert-dialog.js +109 -59
  70. package/dist/components/ui/alert.js +36 -22
  71. package/dist/components/ui/avatar.js +35 -21
  72. package/dist/components/ui/badge.js +17 -13
  73. package/dist/components/ui/breadcrumb.js +82 -46
  74. package/dist/components/ui/button-group.js +5 -5
  75. package/dist/components/ui/button.js +21 -17
  76. package/dist/components/ui/card.js +74 -40
  77. package/dist/components/ui/checkbox.js +23 -17
  78. package/dist/components/ui/collapsible.js +25 -17
  79. package/dist/components/ui/command.js +2 -1
  80. package/dist/components/ui/context-menu.js +52 -32
  81. package/dist/components/ui/dialog.js +107 -62
  82. package/dist/components/ui/drawer.js +99 -54
  83. package/dist/components/ui/dropdown-menu.js +159 -91
  84. package/dist/components/ui/hover-card.js +2 -1
  85. package/dist/components/ui/input-group.js +56 -36
  86. package/dist/components/ui/input.js +15 -11
  87. package/dist/components/ui/label.js +15 -11
  88. package/dist/components/ui/popover.js +38 -25
  89. package/dist/components/ui/radio-group.js +33 -22
  90. package/dist/components/ui/scroll-area.js +43 -28
  91. package/dist/components/ui/select.js +134 -73
  92. package/dist/components/ui/separator.js +17 -13
  93. package/dist/components/ui/sheet.js +105 -60
  94. package/dist/components/ui/sidebar.js +451 -269
  95. package/dist/components/ui/skeleton.js +14 -10
  96. package/dist/components/ui/slider.js +15 -17
  97. package/dist/components/ui/switch.js +21 -15
  98. package/dist/components/ui/table.js +85 -46
  99. package/dist/components/ui/tabs.js +45 -26
  100. package/dist/components/ui/textarea.js +14 -10
  101. package/dist/components/ui/tooltip.js +41 -26
  102. package/dist/components/ui-widgets/UiActions.js +37 -30
  103. package/dist/components/ui-widgets/UiWidget.js +46 -34
  104. package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
  105. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
  106. package/dist/components/ui-widgets/widgets/SandboxRun.js +26 -19
  107. package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
  108. package/dist/events/api-client-events.js +2 -4
  109. package/dist/events/sse-client-events.js +2 -4
  110. package/dist/features/code-explorer/CodeExplorer.js +2 -1
  111. package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
  112. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
  113. package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
  114. package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
  115. package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
  116. package/dist/features/code-explorer/index.js +1 -1
  117. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  118. package/dist/features/code-explorer/utils/fileIcons.js +39 -41
  119. package/dist/features/dashboard/Dashboard.js +121 -79
  120. package/dist/features/dashboard/RunItem.js +68 -50
  121. package/dist/features/dashboard/RunList.js +28 -17
  122. package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
  123. package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
  124. package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
  125. package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
  126. package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
  127. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
  128. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
  129. package/dist/features/debug/index.js +3 -3
  130. package/dist/features/debug/lib/edge-paths.js +31 -33
  131. package/dist/features/debug/lib/flow-utils.js +145 -147
  132. package/dist/features/documents/DocumentRenderer.js +77 -73
  133. package/dist/features/documents/components/DocumentItem.js +24 -21
  134. package/dist/features/documents/components/DocumentList.js +45 -39
  135. package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
  136. package/dist/features/documents/document-details/DocumentDetails.js +413 -298
  137. package/dist/features/documents/document-details/PromptDetails.js +142 -105
  138. package/dist/features/documents/index.js +4 -4
  139. package/dist/features/documents/renderers/AiMessage.js +48 -39
  140. package/dist/features/documents/renderers/AiMessageContent.js +164 -108
  141. package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
  142. package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
  143. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
  144. package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
  145. package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
  146. package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
  147. package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
  148. package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
  149. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
  150. package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
  151. package/dist/features/documents/renderers/SecretInputRenderer.js +35 -37
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
  153. package/dist/features/documents/renderers/useDocumentTransition.js +7 -9
  154. package/dist/features/health/LocalHealthCheck.js +53 -54
  155. package/dist/features/health/index.js +1 -1
  156. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  157. package/dist/features/oauth/OAuthPromptRenderer.js +197 -148
  158. package/dist/features/oauth/index.js +2 -2
  159. package/dist/features/oauth/useOAuthPopup.js +71 -52
  160. package/dist/features/runs/Runs.js +187 -145
  161. package/dist/features/workbench/Workbench.js +98 -72
  162. package/dist/features/workbench/WorkflowItem.js +68 -49
  163. package/dist/features/workbench/WorkflowList.js +66 -51
  164. package/dist/features/workbench/components/NewRunDialog.js +309 -212
  165. package/dist/features/workbench/components/RemoteFileTabsBar.js +17 -18
  166. package/dist/features/workbench/components/RemoteFileTree.js +85 -54
  167. package/dist/features/workbench/components/WorkbenchFilesPanel.js +63 -52
  168. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +51 -34
  169. package/dist/features/workbench/components/WorkbenchFlowPanel.js +44 -35
  170. package/dist/features/workbench/components/WorkbenchIconSidebar.js +68 -50
  171. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +49 -51
  172. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +172 -143
  173. package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
  174. package/dist/features/workbench/components/WorkflowForms.js +23 -17
  175. package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
  176. package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
  177. package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
  178. package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
  179. package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
  180. package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
  181. package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
  182. package/dist/features/workbench/index.js +7 -7
  183. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +138 -123
  184. package/dist/features/workbench/providers/ScrollProvider.js +19 -15
  185. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -76
  186. package/dist/features/workspaces/Workspaces.js +226 -161
  187. package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
  188. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +25 -27
  189. package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
  190. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
  191. package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
  192. package/dist/features/workspaces/components/WorkspaceHomePage.js +80 -59
  193. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
  194. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
  195. package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
  196. package/dist/features/workspaces/index.js +3 -3
  197. package/dist/hooks/index.js +6 -6
  198. package/dist/hooks/query-keys.js +31 -33
  199. package/dist/hooks/use-mobile.js +11 -12
  200. package/dist/hooks/useApi.js +14 -16
  201. package/dist/hooks/useAuth.js +53 -38
  202. package/dist/hooks/useConfig.js +37 -26
  203. package/dist/hooks/useDashboard.js +15 -12
  204. package/dist/hooks/useDebounce.js +11 -12
  205. package/dist/hooks/useDocuments.js +35 -23
  206. package/dist/hooks/useFiles.js +2 -1
  207. package/dist/hooks/useProcessor.js +17 -14
  208. package/dist/hooks/useSecrets.js +64 -45
  209. package/dist/hooks/useWorkflows.js +161 -109
  210. package/dist/hooks/useWorkspaces.js +123 -83
  211. package/dist/index.d.ts +1304 -0
  212. package/dist/index.js +80 -80
  213. package/dist/lib/requireParam.js +2 -4
  214. package/dist/lib/utils.js +5 -7
  215. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
  216. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
  217. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
  218. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
  219. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
  220. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
  221. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +2 -4
  222. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
  223. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
  224. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
  225. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
  226. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
  227. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
  228. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1913 -1812
  229. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
  230. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
  231. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
  232. package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
  233. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
  234. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
  235. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
  236. package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
  237. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
  238. package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
  239. package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
  240. package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
  241. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
  242. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
  243. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
  244. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
  245. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
  246. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
  247. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
  248. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
  249. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
  250. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
  251. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
  252. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
  253. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
  254. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
  255. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
  260. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
  261. package/dist/node_modules/@shikijs/core/dist/index.js +1119 -583
  262. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +148 -163
  263. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
  264. package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
  265. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
  266. package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
  267. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
  268. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
  269. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
  270. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
  271. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
  272. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
  273. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
  274. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
  275. package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
  276. package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
  277. package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
  278. package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
  279. package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
  280. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
  281. package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
  282. package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
  283. package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
  284. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
  285. package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
  286. package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
  287. package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
  288. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
  289. package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
  290. package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
  291. package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
  292. package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
  293. package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
  294. package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
  295. package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
  296. package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
  297. package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
  298. package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
  299. package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
  300. package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
  301. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
  302. package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
  303. package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
  304. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
  305. package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
  306. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
  307. package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
  308. package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
  309. package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
  310. package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
  311. package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
  312. package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
  313. package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
  314. package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
  315. package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
  316. package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
  317. package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
  318. package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
  319. package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
  320. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
  321. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
  322. package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
  323. package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
  324. package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
  325. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
  326. package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
  327. package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
  328. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
  329. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
  330. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
  331. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
  332. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
  333. package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
  334. package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
  335. package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
  336. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
  337. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
  338. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
  339. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
  340. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
  341. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
  342. package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
  343. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
  344. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
  345. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
  346. package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
  347. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
  348. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
  349. package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
  350. package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
  351. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
  352. package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
  353. package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
  354. package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
  355. package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
  356. package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
  357. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
  358. package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
  359. package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
  360. package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
  361. package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
  362. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
  363. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
  364. package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
  365. package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
  366. package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
  367. package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
  368. package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
  369. package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
  370. package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
  371. package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
  372. package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
  373. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
  374. package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
  375. package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
  376. package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
  377. package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
  378. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
  379. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
  380. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
  381. package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
  382. package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
  383. package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
  384. package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
  385. package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
  386. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
  387. package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
  388. package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
  389. package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
  390. package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
  391. package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
  392. package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
  393. package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
  394. package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
  395. package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
  396. package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
  397. package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
  398. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
  399. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
  400. package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
  401. package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
  402. package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
  403. package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
  404. package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
  405. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
  406. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
  407. package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
  408. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
  409. package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
  410. package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
  411. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
  412. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
  413. package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
  414. package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
  415. package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
  416. package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
  417. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
  418. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
  419. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
  420. package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
  421. package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
  422. package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
  423. package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
  424. package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
  425. package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
  426. package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
  427. package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
  428. package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
  429. package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
  430. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
  431. package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
  432. package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
  433. package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
  434. package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
  435. package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
  436. package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
  437. package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
  438. package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
  439. package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
  440. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
  441. package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
  442. package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
  443. package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
  444. package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
  445. package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
  446. package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
  447. package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
  448. package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
  449. package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
  450. package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
  451. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
  452. package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
  453. package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
  454. package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
  455. package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
  456. package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
  457. package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
  458. package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
  459. package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
  460. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
  461. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
  462. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
  463. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
  464. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
  465. package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
  466. package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
  467. package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
  468. package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
  469. package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
  470. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
  471. package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
  472. package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
  473. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
  474. package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
  475. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
  476. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
  477. package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
  478. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
  479. package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
  480. package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
  481. package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
  482. package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
  483. package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
  484. package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
  485. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
  486. package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
  487. package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
  488. package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
  489. package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
  490. package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
  491. package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
  492. package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
  493. package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
  494. package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
  495. package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
  496. package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
  497. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
  498. package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
  499. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
  500. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
  501. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
  502. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
  503. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
  504. package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
  505. package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
  506. package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
  507. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
  508. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
  509. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
  510. package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
  511. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
  512. package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
  513. package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
  514. package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
  515. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
  516. package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
  517. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
  518. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
  519. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
  520. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
  521. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
  522. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
  523. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
  524. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
  525. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
  526. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
  527. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
  528. package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
  529. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
  530. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
  531. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
  532. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
  533. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
  534. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
  535. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
  536. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
  537. package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
  538. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
  539. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
  540. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
  541. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
  542. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
  543. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
  544. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
  545. package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
  546. package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
  547. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
  548. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
  549. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
  550. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
  551. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
  552. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
  553. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
  554. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
  555. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
  556. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
  557. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
  558. package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
  559. package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
  560. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
  561. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
  562. package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
  563. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
  564. package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
  565. package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
  566. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
  567. package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
  568. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
  569. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
  570. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
  571. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
  572. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
  573. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
  574. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
  575. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
  576. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
  577. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
  578. package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
  579. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
  580. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
  581. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
  582. package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
  583. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
  584. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  585. package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
  586. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  587. package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
  588. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
  589. package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
  590. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
  591. package/dist/node_modules/bail/index.js +2 -4
  592. package/dist/node_modules/ccount/index.js +2 -4
  593. package/dist/node_modules/character-entities-html4/index.js +2 -4
  594. package/dist/node_modules/character-entities-legacy/index.js +2 -4
  595. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  596. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
  597. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
  598. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
  599. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
  600. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
  601. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
  602. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
  603. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
  604. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
  605. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
  606. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
  607. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
  608. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
  609. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
  610. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
  611. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
  612. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
  613. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
  614. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
  615. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
  616. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
  617. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
  618. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
  619. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
  620. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
  621. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
  622. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
  623. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
  624. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
  625. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
  626. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
  627. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
  628. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
  629. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
  630. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
  631. package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
  632. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
  633. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  634. package/dist/node_modules/classcat/index.js +3 -5
  635. package/dist/node_modules/comma-separated-tokens/index.js +3 -5
  636. package/dist/node_modules/cose-base/cose-base.js +21 -21
  637. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
  638. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
  639. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
  640. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
  641. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +4 -6
  642. package/dist/node_modules/d3/src/index.js +95 -95
  643. package/dist/node_modules/d3-array/src/ascending.js +2 -4
  644. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  645. package/dist/node_modules/d3-array/src/bisector.js +6 -8
  646. package/dist/node_modules/d3-array/src/descending.js +2 -4
  647. package/dist/node_modules/d3-array/src/max.js +2 -4
  648. package/dist/node_modules/d3-array/src/min.js +2 -4
  649. package/dist/node_modules/d3-array/src/number.js +2 -4
  650. package/dist/node_modules/d3-array/src/range.js +2 -4
  651. package/dist/node_modules/d3-array/src/ticks.js +11 -13
  652. package/dist/node_modules/d3-axis/src/axis.js +46 -48
  653. package/dist/node_modules/d3-axis/src/identity.js +2 -4
  654. package/dist/node_modules/d3-brush/src/brush.js +4 -6
  655. package/dist/node_modules/d3-color/src/color.js +84 -86
  656. package/dist/node_modules/d3-color/src/define.js +3 -5
  657. package/dist/node_modules/d3-color/src/lab.js +43 -45
  658. package/dist/node_modules/d3-color/src/math.js +2 -4
  659. package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
  660. package/dist/node_modules/d3-drag/src/constant.js +2 -4
  661. package/dist/node_modules/d3-drag/src/drag.js +75 -77
  662. package/dist/node_modules/d3-drag/src/event.js +3 -5
  663. package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
  664. package/dist/node_modules/d3-drag/src/noevent.js +4 -6
  665. package/dist/node_modules/d3-ease/src/cubic.js +2 -4
  666. package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
  667. package/dist/node_modules/d3-format/src/exponent.js +4 -6
  668. package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
  669. package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
  670. package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
  671. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
  672. package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
  673. package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
  674. package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
  675. package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
  676. package/dist/node_modules/d3-format/src/identity.js +2 -4
  677. package/dist/node_modules/d3-format/src/locale.js +31 -33
  678. package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
  679. package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
  680. package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
  681. package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
  682. package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
  683. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
  684. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
  685. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
  686. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
  687. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
  688. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
  689. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
  690. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
  691. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
  692. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
  693. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
  694. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
  695. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
  696. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
  697. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
  698. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
  699. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
  700. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
  701. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
  702. package/dist/node_modules/d3-interpolate/src/array.js +4 -6
  703. package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
  704. package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
  705. package/dist/node_modules/d3-interpolate/src/color.js +17 -19
  706. package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
  707. package/dist/node_modules/d3-interpolate/src/date.js +2 -4
  708. package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
  709. package/dist/node_modules/d3-interpolate/src/number.js +2 -4
  710. package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
  711. package/dist/node_modules/d3-interpolate/src/object.js +4 -6
  712. package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
  713. package/dist/node_modules/d3-interpolate/src/round.js +2 -4
  714. package/dist/node_modules/d3-interpolate/src/string.js +14 -16
  715. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
  716. package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
  717. package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
  718. package/dist/node_modules/d3-interpolate/src/value.js +12 -14
  719. package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
  720. package/dist/node_modules/d3-path/src/path.js +14 -16
  721. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
  722. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
  723. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
  724. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
  725. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
  726. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
  727. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
  728. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
  729. package/dist/node_modules/d3-sankey/src/align.js +10 -12
  730. package/dist/node_modules/d3-sankey/src/constant.js +2 -4
  731. package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
  732. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
  733. package/dist/node_modules/d3-scale/src/band.js +9 -11
  734. package/dist/node_modules/d3-scale/src/constant.js +2 -4
  735. package/dist/node_modules/d3-scale/src/continuous.js +47 -49
  736. package/dist/node_modules/d3-scale/src/init.js +2 -4
  737. package/dist/node_modules/d3-scale/src/linear.js +13 -15
  738. package/dist/node_modules/d3-scale/src/nice.js +2 -4
  739. package/dist/node_modules/d3-scale/src/number.js +2 -4
  740. package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
  741. package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
  742. package/dist/node_modules/d3-scale/src/time.js +34 -36
  743. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
  744. package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
  745. package/dist/node_modules/d3-selection/src/array.js +2 -4
  746. package/dist/node_modules/d3-selection/src/constant.js +2 -4
  747. package/dist/node_modules/d3-selection/src/creator.js +10 -12
  748. package/dist/node_modules/d3-selection/src/matcher.js +3 -5
  749. package/dist/node_modules/d3-selection/src/namespace.js +5 -7
  750. package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
  751. package/dist/node_modules/d3-selection/src/pointer.js +4 -6
  752. package/dist/node_modules/d3-selection/src/select.js +4 -6
  753. package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
  754. package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
  755. package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
  756. package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
  757. package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
  758. package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
  759. package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
  760. package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
  761. package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
  762. package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
  763. package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
  764. package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
  765. package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
  766. package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
  767. package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
  768. package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
  769. package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
  770. package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
  771. package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
  772. package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
  773. package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
  774. package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
  775. package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
  776. package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
  777. package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
  778. package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
  779. package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
  780. package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
  781. package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
  782. package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
  783. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
  784. package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
  785. package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
  786. package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
  787. package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
  788. package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
  789. package/dist/node_modules/d3-selection/src/selector.js +4 -6
  790. package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
  791. package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
  792. package/dist/node_modules/d3-selection/src/window.js +2 -4
  793. package/dist/node_modules/d3-shape/src/arc.js +36 -38
  794. package/dist/node_modules/d3-shape/src/array.js +2 -3
  795. package/dist/node_modules/d3-shape/src/constant.js +2 -4
  796. package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
  797. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
  798. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
  799. package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
  800. package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
  801. package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
  802. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
  803. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
  804. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
  805. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
  806. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
  807. package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
  808. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
  809. package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
  810. package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
  811. package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
  812. package/dist/node_modules/d3-shape/src/descending.js +2 -4
  813. package/dist/node_modules/d3-shape/src/identity.js +2 -4
  814. package/dist/node_modules/d3-shape/src/line.js +17 -19
  815. package/dist/node_modules/d3-shape/src/math.js +6 -8
  816. package/dist/node_modules/d3-shape/src/noop.js +2 -4
  817. package/dist/node_modules/d3-shape/src/path.js +4 -6
  818. package/dist/node_modules/d3-shape/src/pie.js +13 -15
  819. package/dist/node_modules/d3-shape/src/point.js +3 -5
  820. package/dist/node_modules/d3-time/src/day.js +15 -17
  821. package/dist/node_modules/d3-time/src/duration.js +2 -4
  822. package/dist/node_modules/d3-time/src/hour.js +14 -16
  823. package/dist/node_modules/d3-time/src/interval.js +5 -7
  824. package/dist/node_modules/d3-time/src/millisecond.js +5 -7
  825. package/dist/node_modules/d3-time/src/minute.js +14 -16
  826. package/dist/node_modules/d3-time/src/month.js +12 -14
  827. package/dist/node_modules/d3-time/src/second.js +7 -9
  828. package/dist/node_modules/d3-time/src/ticks.js +64 -66
  829. package/dist/node_modules/d3-time/src/week.js +19 -21
  830. package/dist/node_modules/d3-time/src/year.js +8 -10
  831. package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
  832. package/dist/node_modules/d3-time-format/src/locale.js +344 -346
  833. package/dist/node_modules/d3-timer/src/timeout.js +4 -6
  834. package/dist/node_modules/d3-timer/src/timer.js +31 -33
  835. package/dist/node_modules/d3-transition/src/index.js +2 -2
  836. package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
  837. package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
  838. package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
  839. package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
  840. package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
  841. package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
  842. package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
  843. package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
  844. package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
  845. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
  846. package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
  847. package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
  848. package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
  849. package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
  850. package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
  851. package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
  852. package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
  853. package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
  854. package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
  855. package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
  856. package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
  857. package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
  858. package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
  859. package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
  860. package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
  861. package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
  862. package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
  863. package/dist/node_modules/d3-zoom/src/constant.js +2 -4
  864. package/dist/node_modules/d3-zoom/src/event.js +2 -4
  865. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  866. package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
  867. package/dist/node_modules/d3-zoom/src/transform.js +10 -12
  868. package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
  869. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
  870. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
  871. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
  872. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
  873. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
  874. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
  875. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
  876. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
  877. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
  878. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
  879. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
  880. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
  881. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
  882. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
  883. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
  884. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
  885. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
  886. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
  887. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
  888. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
  889. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
  890. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
  891. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
  892. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
  893. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
  894. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
  895. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
  896. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
  897. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
  898. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
  899. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +4 -6
  900. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
  901. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
  902. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
  903. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
  904. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
  905. package/dist/node_modules/dayjs/dayjs.min.js +4 -6
  906. package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
  907. package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
  908. package/dist/node_modules/dayjs/plugin/duration.js +4 -6
  909. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
  910. package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
  911. package/dist/node_modules/devlop/lib/default.js +2 -4
  912. package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
  913. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
  914. package/dist/node_modules/entities/dist/esm/decode.js +85 -87
  915. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
  916. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
  917. package/dist/node_modules/extend/index.js +6 -9
  918. package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
  919. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
  920. package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
  921. package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
  922. package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
  923. package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
  924. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
  925. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
  926. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
  927. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +249 -250
  928. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
  929. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
  930. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
  931. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +15 -17
  932. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
  933. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
  934. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
  935. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
  936. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
  937. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
  938. package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
  939. package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
  940. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
  941. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
  942. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
  943. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
  944. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
  945. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
  946. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
  947. package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
  948. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
  949. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
  950. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
  951. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
  952. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
  953. package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
  954. package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
  955. package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
  956. package/dist/node_modules/hastscript/lib/create-h.js +24 -26
  957. package/dist/node_modules/hastscript/lib/index.js +5 -7
  958. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
  959. package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
  960. package/dist/node_modules/html-void-elements/index.js +2 -4
  961. package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
  962. package/dist/node_modules/internmap/src/index.js +20 -22
  963. package/dist/node_modules/katex/dist/katex.js +2307 -2301
  964. package/dist/node_modules/khroma/dist/channels/index.js +21 -23
  965. package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
  966. package/dist/node_modules/khroma/dist/channels/type.js +5 -7
  967. package/dist/node_modules/khroma/dist/color/hex.js +8 -10
  968. package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
  969. package/dist/node_modules/khroma/dist/color/index.js +15 -17
  970. package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
  971. package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
  972. package/dist/node_modules/khroma/dist/constants.js +5 -7
  973. package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
  974. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
  975. package/dist/node_modules/khroma/dist/methods/change.js +7 -9
  976. package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
  977. package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
  978. package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
  979. package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
  980. package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
  981. package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
  982. package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
  983. package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
  984. package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
  985. package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
  986. package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
  987. package/dist/node_modules/khroma/dist/utils/index.js +8 -10
  988. package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
  989. package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
  990. package/dist/node_modules/langium/lib/default-module.js +64 -66
  991. package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
  992. package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
  993. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
  994. package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
  995. package/dist/node_modules/langium/lib/index.js +182 -0
  996. package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
  997. package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
  998. package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
  999. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
  1000. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
  1001. package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
  1002. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
  1003. package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
  1004. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1005. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
  1006. package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
  1007. package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
  1008. package/dist/node_modules/langium/lib/references/linker.js +103 -104
  1009. package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
  1010. package/dist/node_modules/langium/lib/references/references.js +51 -53
  1011. package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
  1012. package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
  1013. package/dist/node_modules/langium/lib/references/scope.js +56 -27
  1014. package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
  1015. package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
  1016. package/dist/node_modules/langium/lib/service-registry.js +5 -7
  1017. package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
  1018. package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
  1019. package/dist/node_modules/langium/lib/utils/caching.js +42 -33
  1020. package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
  1021. package/dist/node_modules/langium/lib/utils/collections.js +33 -35
  1022. package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
  1023. package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
  1024. package/dist/node_modules/langium/lib/utils/errors.js +9 -8
  1025. package/dist/node_modules/langium/lib/utils/event.js +5 -7
  1026. package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
  1027. package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
  1028. package/dist/node_modules/langium/lib/utils/index.js +53 -0
  1029. package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
  1030. package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
  1031. package/dist/node_modules/langium/lib/utils/stream.js +153 -155
  1032. package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
  1033. package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
  1034. package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
  1035. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
  1036. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
  1037. package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
  1038. package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
  1039. package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
  1040. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
  1041. package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
  1042. package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
  1043. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
  1044. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
  1045. package/dist/node_modules/layout-base/layout-base.js +4 -6
  1046. package/dist/node_modules/lodash/_Symbol.js +7 -0
  1047. package/dist/node_modules/lodash/_baseGetTag.js +13 -0
  1048. package/dist/node_modules/lodash/_baseTrim.js +11 -0
  1049. package/dist/node_modules/lodash/_freeGlobal.js +6 -0
  1050. package/dist/node_modules/lodash/_getRawTag.js +17 -0
  1051. package/dist/node_modules/lodash/_objectToString.js +10 -0
  1052. package/dist/node_modules/lodash/_root.js +8 -0
  1053. package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
  1054. package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
  1055. package/dist/node_modules/lodash/isObject.js +10 -0
  1056. package/dist/node_modules/lodash/isObjectLike.js +9 -0
  1057. package/dist/node_modules/lodash/isSymbol.js +12 -0
  1058. package/dist/node_modules/lodash/now.js +10 -0
  1059. package/dist/node_modules/lodash/toNumber.js +22 -0
  1060. package/dist/node_modules/lodash-es/_DataView.js +4 -6
  1061. package/dist/node_modules/lodash-es/_Hash.js +13 -14
  1062. package/dist/node_modules/lodash-es/_ListCache.js +13 -14
  1063. package/dist/node_modules/lodash-es/_Map.js +4 -6
  1064. package/dist/node_modules/lodash-es/_MapCache.js +13 -14
  1065. package/dist/node_modules/lodash-es/_Promise.js +4 -6
  1066. package/dist/node_modules/lodash-es/_Set.js +4 -6
  1067. package/dist/node_modules/lodash-es/_SetCache.js +9 -10
  1068. package/dist/node_modules/lodash-es/_Stack.js +11 -12
  1069. package/dist/node_modules/lodash-es/_Symbol.js +3 -5
  1070. package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
  1071. package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
  1072. package/dist/node_modules/lodash-es/_apply.js +3 -4
  1073. package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
  1074. package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
  1075. package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
  1076. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
  1077. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
  1078. package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
  1079. package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
  1080. package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
  1081. package/dist/node_modules/lodash-es/_arraySome.js +3 -4
  1082. package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
  1083. package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
  1084. package/dist/node_modules/lodash-es/_assignValue.js +7 -8
  1085. package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
  1086. package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
  1087. package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
  1088. package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
  1089. package/dist/node_modules/lodash-es/_baseClone.js +50 -51
  1090. package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
  1091. package/dist/node_modules/lodash-es/_baseEach.js +4 -6
  1092. package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
  1093. package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
  1094. package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
  1095. package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
  1096. package/dist/node_modules/lodash-es/_baseFor.js +3 -5
  1097. package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
  1098. package/dist/node_modules/lodash-es/_baseGet.js +7 -8
  1099. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
  1100. package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
  1101. package/dist/node_modules/lodash-es/_baseGt.js +3 -4
  1102. package/dist/node_modules/lodash-es/_baseHas.js +5 -6
  1103. package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
  1104. package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
  1105. package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
  1106. package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
  1107. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
  1108. package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
  1109. package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
  1110. package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
  1111. package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
  1112. package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
  1113. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
  1114. package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
  1115. package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
  1116. package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
  1117. package/dist/node_modules/lodash-es/_baseLt.js +3 -4
  1118. package/dist/node_modules/lodash-es/_baseMap.js +7 -8
  1119. package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
  1120. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
  1121. package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
  1122. package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
  1123. package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
  1124. package/dist/node_modules/lodash-es/_basePick.js +7 -8
  1125. package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
  1126. package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
  1127. package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
  1128. package/dist/node_modules/lodash-es/_baseRange.js +5 -6
  1129. package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
  1130. package/dist/node_modules/lodash-es/_baseRest.js +7 -8
  1131. package/dist/node_modules/lodash-es/_baseSet.js +13 -14
  1132. package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
  1133. package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
  1134. package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
  1135. package/dist/node_modules/lodash-es/_baseToString.js +12 -13
  1136. package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
  1137. package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
  1138. package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
  1139. package/dist/node_modules/lodash-es/_baseValues.js +5 -6
  1140. package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
  1141. package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
  1142. package/dist/node_modules/lodash-es/_castFunction.js +5 -6
  1143. package/dist/node_modules/lodash-es/_castPath.js +8 -9
  1144. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
  1145. package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
  1146. package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
  1147. package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
  1148. package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
  1149. package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
  1150. package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
  1151. package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
  1152. package/dist/node_modules/lodash-es/_copyArray.js +3 -4
  1153. package/dist/node_modules/lodash-es/_copyObject.js +6 -7
  1154. package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
  1155. package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
  1156. package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
  1157. package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
  1158. package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
  1159. package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
  1160. package/dist/node_modules/lodash-es/_createFind.js +9 -10
  1161. package/dist/node_modules/lodash-es/_createRange.js +7 -8
  1162. package/dist/node_modules/lodash-es/_createSet.js +7 -9
  1163. package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
  1164. package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
  1165. package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
  1166. package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
  1167. package/dist/node_modules/lodash-es/_flatRest.js +7 -8
  1168. package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
  1169. package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
  1170. package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
  1171. package/dist/node_modules/lodash-es/_getMapData.js +5 -6
  1172. package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
  1173. package/dist/node_modules/lodash-es/_getNative.js +7 -8
  1174. package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
  1175. package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
  1176. package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
  1177. package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
  1178. package/dist/node_modules/lodash-es/_getTag.js +19 -21
  1179. package/dist/node_modules/lodash-es/_getValue.js +3 -4
  1180. package/dist/node_modules/lodash-es/_hasPath.js +12 -13
  1181. package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
  1182. package/dist/node_modules/lodash-es/_hashClear.js +5 -6
  1183. package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
  1184. package/dist/node_modules/lodash-es/_hashGet.js +8 -9
  1185. package/dist/node_modules/lodash-es/_hashHas.js +6 -7
  1186. package/dist/node_modules/lodash-es/_hashSet.js +6 -7
  1187. package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
  1188. package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
  1189. package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
  1190. package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
  1191. package/dist/node_modules/lodash-es/_isIndex.js +5 -6
  1192. package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
  1193. package/dist/node_modules/lodash-es/_isKey.js +8 -9
  1194. package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
  1195. package/dist/node_modules/lodash-es/_isMasked.js +8 -9
  1196. package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
  1197. package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
  1198. package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
  1199. package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
  1200. package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
  1201. package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
  1202. package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
  1203. package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
  1204. package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
  1205. package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
  1206. package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
  1207. package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
  1208. package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
  1209. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
  1210. package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
  1211. package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
  1212. package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
  1213. package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
  1214. package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
  1215. package/dist/node_modules/lodash-es/_objectToString.js +5 -6
  1216. package/dist/node_modules/lodash-es/_overArg.js +3 -4
  1217. package/dist/node_modules/lodash-es/_overRest.js +8 -9
  1218. package/dist/node_modules/lodash-es/_root.js +3 -5
  1219. package/dist/node_modules/lodash-es/_safeGet.js +3 -4
  1220. package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
  1221. package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
  1222. package/dist/node_modules/lodash-es/_setToArray.js +3 -4
  1223. package/dist/node_modules/lodash-es/_setToString.js +4 -6
  1224. package/dist/node_modules/lodash-es/_shortOut.js +6 -7
  1225. package/dist/node_modules/lodash-es/_stackClear.js +5 -6
  1226. package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
  1227. package/dist/node_modules/lodash-es/_stackGet.js +3 -4
  1228. package/dist/node_modules/lodash-es/_stackHas.js +3 -4
  1229. package/dist/node_modules/lodash-es/_stackSet.js +10 -11
  1230. package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
  1231. package/dist/node_modules/lodash-es/_stringSize.js +7 -8
  1232. package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
  1233. package/dist/node_modules/lodash-es/_toKey.js +7 -8
  1234. package/dist/node_modules/lodash-es/_toSource.js +7 -8
  1235. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
  1236. package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
  1237. package/dist/node_modules/lodash-es/clone.js +6 -7
  1238. package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
  1239. package/dist/node_modules/lodash-es/constant.js +3 -4
  1240. package/dist/node_modules/lodash-es/defaults.js +11 -13
  1241. package/dist/node_modules/lodash-es/eq.js +3 -4
  1242. package/dist/node_modules/lodash-es/filter.js +8 -9
  1243. package/dist/node_modules/lodash-es/find.js +4 -6
  1244. package/dist/node_modules/lodash-es/findIndex.js +9 -10
  1245. package/dist/node_modules/lodash-es/flatMap.js +6 -7
  1246. package/dist/node_modules/lodash-es/flatten.js +5 -6
  1247. package/dist/node_modules/lodash-es/forEach.js +8 -9
  1248. package/dist/node_modules/lodash-es/forIn.js +7 -8
  1249. package/dist/node_modules/lodash-es/forOwn.js +6 -7
  1250. package/dist/node_modules/lodash-es/get.js +5 -6
  1251. package/dist/node_modules/lodash-es/has.js +6 -7
  1252. package/dist/node_modules/lodash-es/hasIn.js +6 -7
  1253. package/dist/node_modules/lodash-es/identity.js +3 -4
  1254. package/dist/node_modules/lodash-es/isArguments.js +6 -8
  1255. package/dist/node_modules/lodash-es/isArray.js +2 -4
  1256. package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
  1257. package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
  1258. package/dist/node_modules/lodash-es/isBuffer.js +4 -6
  1259. package/dist/node_modules/lodash-es/isEmpty.js +17 -18
  1260. package/dist/node_modules/lodash-es/isFunction.js +9 -10
  1261. package/dist/node_modules/lodash-es/isLength.js +5 -6
  1262. package/dist/node_modules/lodash-es/isMap.js +5 -7
  1263. package/dist/node_modules/lodash-es/isObject.js +3 -4
  1264. package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
  1265. package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
  1266. package/dist/node_modules/lodash-es/isSet.js +5 -7
  1267. package/dist/node_modules/lodash-es/isString.js +8 -9
  1268. package/dist/node_modules/lodash-es/isSymbol.js +7 -8
  1269. package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
  1270. package/dist/node_modules/lodash-es/isUndefined.js +3 -4
  1271. package/dist/node_modules/lodash-es/keys.js +7 -8
  1272. package/dist/node_modules/lodash-es/keysIn.js +7 -8
  1273. package/dist/node_modules/lodash-es/last.js +3 -4
  1274. package/dist/node_modules/lodash-es/map.js +8 -9
  1275. package/dist/node_modules/lodash-es/mapValues.js +8 -9
  1276. package/dist/node_modules/lodash-es/max.js +7 -8
  1277. package/dist/node_modules/lodash-es/memoize.js +8 -9
  1278. package/dist/node_modules/lodash-es/merge.js +5 -7
  1279. package/dist/node_modules/lodash-es/min.js +7 -8
  1280. package/dist/node_modules/lodash-es/minBy.js +7 -8
  1281. package/dist/node_modules/lodash-es/noop.js +3 -4
  1282. package/dist/node_modules/lodash-es/now.js +4 -6
  1283. package/dist/node_modules/lodash-es/pick.js +5 -7
  1284. package/dist/node_modules/lodash-es/property.js +8 -9
  1285. package/dist/node_modules/lodash-es/range.js +3 -5
  1286. package/dist/node_modules/lodash-es/reduce.js +10 -11
  1287. package/dist/node_modules/lodash-es/size.js +12 -13
  1288. package/dist/node_modules/lodash-es/sortBy.js +7 -9
  1289. package/dist/node_modules/lodash-es/stubArray.js +3 -4
  1290. package/dist/node_modules/lodash-es/stubFalse.js +3 -4
  1291. package/dist/node_modules/lodash-es/toFinite.js +6 -7
  1292. package/dist/node_modules/lodash-es/toInteger.js +5 -6
  1293. package/dist/node_modules/lodash-es/toNumber.js +13 -14
  1294. package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
  1295. package/dist/node_modules/lodash-es/toString.js +5 -6
  1296. package/dist/node_modules/lodash-es/union.js +7 -9
  1297. package/dist/node_modules/lodash-es/uniqBy.js +6 -7
  1298. package/dist/node_modules/lodash-es/uniqueId.js +7 -8
  1299. package/dist/node_modules/lodash-es/values.js +6 -7
  1300. package/dist/node_modules/lodash-es/zipObject.js +6 -7
  1301. package/dist/node_modules/longest-streak/index.js +2 -4
  1302. package/dist/node_modules/markdown-table/index.js +9 -11
  1303. package/dist/node_modules/marked/lib/marked.esm.js +685 -687
  1304. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
  1305. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
  1306. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
  1307. package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
  1308. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
  1309. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
  1310. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
  1311. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
  1312. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
  1313. package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
  1314. package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
  1315. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
  1316. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
  1317. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
  1318. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
  1319. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
  1320. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
  1321. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
  1322. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
  1323. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
  1324. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
  1325. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
  1326. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
  1327. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
  1328. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
  1329. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
  1330. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
  1337. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
  1338. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
  1339. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
  1340. package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
  1341. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
  1342. package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
  1343. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
  1344. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
  1345. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
  1346. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
  1347. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
  1348. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
  1349. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
  1350. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
  1351. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
  1352. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
  1353. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
  1354. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
  1355. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
  1356. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
  1357. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
  1376. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
  1377. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
  1378. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
  1379. package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
  1380. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
  1381. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
  1382. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
  1383. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
  1384. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
  1385. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
  1386. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
  1387. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
  1388. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
  1389. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
  1390. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
  1391. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
  1392. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
  1393. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
  1394. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
  1428. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
  1429. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
  1430. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
  1431. package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
  1432. package/dist/node_modules/micromark/lib/constructs.js +79 -80
  1433. package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
  1434. package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
  1435. package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
  1436. package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
  1437. package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
  1438. package/dist/node_modules/micromark/lib/parse.js +18 -20
  1439. package/dist/node_modules/micromark/lib/postprocess.js +4 -6
  1440. package/dist/node_modules/micromark/lib/preprocess.js +4 -6
  1441. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
  1442. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
  1443. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
  1444. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
  1445. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
  1446. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
  1447. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
  1448. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
  1449. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
  1450. package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
  1451. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
  1452. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
  1453. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
  1454. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
  1455. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
  1456. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
  1457. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
  1458. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
  1459. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
  1460. package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
  1461. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
  1462. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
  1463. package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
  1464. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
  1465. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
  1466. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
  1467. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
  1468. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
  1469. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
  1470. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
  1471. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
  1472. package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
  1473. package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
  1474. package/dist/node_modules/micromark-factory-destination/index.js +8 -10
  1475. package/dist/node_modules/micromark-factory-label/index.js +5 -7
  1476. package/dist/node_modules/micromark-factory-space/index.js +5 -7
  1477. package/dist/node_modules/micromark-factory-title/index.js +6 -8
  1478. package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
  1479. package/dist/node_modules/micromark-util-character/index.js +12 -14
  1480. package/dist/node_modules/micromark-util-chunked/index.js +4 -6
  1481. package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
  1482. package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
  1483. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
  1484. package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
  1485. package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
  1486. package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
  1487. package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
  1488. package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
  1489. package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
  1490. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
  1491. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1492. package/dist/node_modules/nanoid/index.browser.js +4 -6
  1493. package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
  1494. package/dist/node_modules/property-information/index.js +23 -25
  1495. package/dist/node_modules/property-information/lib/aria.js +39 -41
  1496. package/dist/node_modules/property-information/lib/find.js +16 -18
  1497. package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
  1498. package/dist/node_modules/property-information/lib/html.js +94 -96
  1499. package/dist/node_modules/property-information/lib/normalize.js +2 -4
  1500. package/dist/node_modules/property-information/lib/svg.js +77 -79
  1501. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
  1502. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
  1503. package/dist/node_modules/property-information/lib/util/create.js +8 -10
  1504. package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
  1505. package/dist/node_modules/property-information/lib/util/info.js +3 -5
  1506. package/dist/node_modules/property-information/lib/util/merge.js +4 -6
  1507. package/dist/node_modules/property-information/lib/util/schema.js +3 -5
  1508. package/dist/node_modules/property-information/lib/util/types.js +14 -15
  1509. package/dist/node_modules/property-information/lib/xlink.js +3 -5
  1510. package/dist/node_modules/property-information/lib/xml.js +3 -5
  1511. package/dist/node_modules/property-information/lib/xmlns.js +5 -7
  1512. package/dist/node_modules/rehype-harden/dist/index.js +45 -47
  1513. package/dist/node_modules/rehype-katex/lib/index.js +23 -25
  1514. package/dist/node_modules/rehype-raw/lib/index.js +4 -6
  1515. package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
  1516. package/dist/node_modules/remark-gfm/lib/index.js +7 -9
  1517. package/dist/node_modules/remark-math/lib/index.js +7 -9
  1518. package/dist/node_modules/remark-parse/lib/index.js +4 -6
  1519. package/dist/node_modules/remark-rehype/lib/index.js +5 -7
  1520. package/dist/node_modules/remend/dist/index.js +324 -326
  1521. package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
  1522. package/dist/node_modules/shiki/dist/bundle-full.js +11 -13
  1523. package/dist/node_modules/shiki/dist/{langs-bundle-full-DfKZStlK.js → langs.js} +6 -8
  1524. package/dist/node_modules/shiki/dist/themes.js +4 -6
  1525. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1526. package/dist/node_modules/space-separated-tokens/index.js +3 -5
  1527. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
  1528. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
  1529. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1530. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
  1531. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
  1532. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
  1533. package/dist/node_modules/stringify-entities/lib/core.js +16 -18
  1534. package/dist/node_modules/stringify-entities/lib/index.js +5 -7
  1535. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
  1536. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
  1537. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
  1538. package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
  1539. package/dist/node_modules/style-to-js/cjs/index.js +7 -9
  1540. package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
  1541. package/dist/node_modules/style-to-object/cjs/index.js +6 -8
  1542. package/dist/node_modules/stylis/src/Enum.js +2 -4
  1543. package/dist/node_modules/stylis/src/Parser.js +36 -38
  1544. package/dist/node_modules/stylis/src/Serializer.js +15 -17
  1545. package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
  1546. package/dist/node_modules/stylis/src/Utility.js +15 -17
  1547. package/dist/node_modules/trim-lines/index.js +8 -10
  1548. package/dist/node_modules/trough/lib/index.js +4 -6
  1549. package/dist/node_modules/ts-dedent/esm/index.js +2 -4
  1550. package/dist/node_modules/unified/lib/callable-instance.js +2 -4
  1551. package/dist/node_modules/unified/lib/index.js +101 -102
  1552. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
  1553. package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
  1554. package/dist/node_modules/unist-util-is/lib/index.js +29 -31
  1555. package/dist/node_modules/unist-util-position/lib/index.js +5 -7
  1556. package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
  1557. package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
  1558. package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
  1559. package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
  1560. package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
  1561. package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
  1562. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
  1563. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
  1564. package/dist/node_modules/vaul/dist/index.js +274 -276
  1565. package/dist/node_modules/vfile/lib/index.js +42 -44
  1566. package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
  1567. package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
  1568. package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
  1569. package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
  1570. package/dist/node_modules/vfile-location/lib/index.js +5 -7
  1571. package/dist/node_modules/vfile-message/lib/index.js +5 -7
  1572. package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
  1573. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
  1574. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
  1575. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
  1576. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
  1577. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
  1578. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
  1579. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
  1580. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
  1581. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
  1582. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
  1583. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
  1584. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
  1585. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
  1586. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
  1587. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
  1588. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
  1589. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
  1590. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
  1591. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
  1592. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
  1593. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
  1594. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
  1595. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
  1596. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
  1597. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
  1598. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
  1599. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
  1600. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
  1601. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
  1602. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
  1603. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
  1604. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
  1605. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
  1615. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
  1616. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
  1617. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
  1618. package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
  1619. package/dist/node_modules/web-namespaces/index.js +2 -4
  1620. package/dist/node_modules/zwitch/index.js +5 -7
  1621. package/dist/packages/contracts/dist/enums/index.js +12 -14
  1622. package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
  1623. package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
  1624. package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
  1625. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
  1626. package/dist/pages/DashboardPage.js +99 -55
  1627. package/dist/pages/DebugPage.js +17 -12
  1628. package/dist/pages/DebugWorkflowDetailsPage.js +119 -91
  1629. package/dist/pages/DebugWorkflowsPage.js +37 -39
  1630. package/dist/pages/EmbedWorkbenchPage.js +62 -48
  1631. package/dist/pages/PreviewWorkbenchPage.js +324 -243
  1632. package/dist/pages/RunsListPage.js +61 -44
  1633. package/dist/pages/RunsPage.js +48 -31
  1634. package/dist/pages/StudioLandingPage.js +132 -97
  1635. package/dist/pages/WorkbenchPage.js +86 -56
  1636. package/dist/pages/WorkflowDebugPage.js +110 -74
  1637. package/dist/pages/WorkspacePage.js +115 -72
  1638. package/dist/pages/WorkspaceRunsPage.js +70 -43
  1639. package/dist/pages/WorkspacesPage.js +35 -24
  1640. package/dist/providers/ComponentOverridesProvider.js +12 -9
  1641. package/dist/providers/InvalidationEventsProvider.js +35 -33
  1642. package/dist/providers/QueryProvider.js +18 -14
  1643. package/dist/providers/SseProvider.js +29 -28
  1644. package/dist/providers/StudioProvider.js +19 -14
  1645. package/dist/routing/LocalRouter.js +9 -6
  1646. package/dist/services/createApiClient.js +5 -7
  1647. package/dist/services/eventEmitter.js +2 -3
  1648. package/dist/services/index.js +2 -2
  1649. package/dist/types/ai.types.js +5 -7
  1650. package/package.json +33 -33
  1651. package/dist/_virtual/_rolldown/runtime.js +0 -20
  1652. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
  1653. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
  1654. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
  1655. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
  1656. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
  1657. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
  1658. package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
  1659. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
  1660. package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
  1661. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
  1662. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
  1663. package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
  1664. package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
  1665. package/dist/node_modules/@shikijs/primitive/dist/index.js +0 -540
  1666. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +0 -17
  1667. package/dist/node_modules/shiki/dist/engine-oniguruma.js +0 -7
@@ -1,27 +1,26 @@
1
1
  "use client";
2
- import { SKIP as e, visitParents as t } from "../../unist-util-visit-parents/lib/index.js";
3
- import { visit as n } from "../../unist-util-visit/lib/index.js";
4
- import r from "../../remark-gfm/lib/index.js";
5
- import { harden as i } from "../../rehype-harden/dist/index.js";
6
- import a from "../../rehype-raw/lib/index.js";
7
- import { defaultSchema as o } from "../../hast-util-sanitize/lib/schema.js";
8
- import s from "../../rehype-sanitize/lib/index.js";
9
- import { $e as c } from "../../remend/dist/index.js";
10
- import { toJsxRuntime as l } from "../../hast-util-to-jsx-runtime/lib/index.js";
11
- import { urlAttributes as u } from "../../html-url-attributes/lib/index.js";
12
- import d from "../../remark-parse/lib/index.js";
13
- import f from "../../remark-rehype/lib/index.js";
14
- import { unified as p } from "../../unified/lib/index.js";
15
- import { x as m } from "../node_modules/marked/lib/marked.esm.js";
16
- import { Suspense as h, cloneElement as g, createContext as _, createElement as v, isValidElement as y, lazy as b, memo as x, useCallback as S, useContext as C, useEffect as w, useId as ee, useMemo as T, useRef as E, useState as D, useTransition as te } from "react";
17
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
18
- import { clsx as j } from "clsx";
19
- import { twMerge as M } from "tailwind-merge";
20
- import { createPortal as N } from "react-dom";
21
- //#region ../../node_modules/streamdown/dist/chunk-BO2N2NFS.js
22
- var P = 300, F = "300px", ne = 500;
23
- function re(e = {}) {
24
- let { immediate: t = !1, debounceDelay: n = P, rootMargin: r = F, idleTimeout: i = ne } = e, [a, o] = D(!1), s = E(null), c = E(null), l = E(null), u = T(() => (e) => {
2
+ import { SKIP, visitParents } from "../../unist-util-visit-parents/lib/index.js";
3
+ import { visit } from "../../unist-util-visit/lib/index.js";
4
+ import remarkGfm from "../../remark-gfm/lib/index.js";
5
+ import { harden } from "../../rehype-harden/dist/index.js";
6
+ import rehypeRaw from "../../rehype-raw/lib/index.js";
7
+ import { defaultSchema } from "../../hast-util-sanitize/lib/schema.js";
8
+ import rehypeSanitize from "../../rehype-sanitize/lib/index.js";
9
+ import { $e } from "../../remend/dist/index.js";
10
+ import { toJsxRuntime } from "../../hast-util-to-jsx-runtime/lib/index.js";
11
+ import { urlAttributes } from "../../html-url-attributes/lib/index.js";
12
+ import remarkParse from "../../remark-parse/lib/index.js";
13
+ import remarkRehype from "../../remark-rehype/lib/index.js";
14
+ import { unified } from "../../unified/lib/index.js";
15
+ import { x } from "../node_modules/marked/lib/marked.esm.js";
16
+ import { Suspense, cloneElement, createContext, createElement, isValidElement, lazy, memo, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useTransition } from "react";
17
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
18
+ import { clsx } from "clsx";
19
+ import { twMerge } from "tailwind-merge";
20
+ import { createPortal } from "react-dom";
21
+ var Bn = 300, An = "300px", On = 500;
22
+ function Rt(e = {}) {
23
+ let { immediate: t = !1, debounceDelay: n = Bn, rootMargin: r = An, idleTimeout: i = On } = e, [a, o] = useState(!1), s = useRef(null), c = useRef(null), l = useRef(null), u = useMemo(() => (e) => {
25
24
  let t = Date.now();
26
25
  return window.setTimeout(() => {
27
26
  e({
@@ -29,10 +28,10 @@ function re(e = {}) {
29
28
  timeRemaining: () => Math.max(0, 50 - (Date.now() - t))
30
29
  });
31
30
  }, 1);
32
- }, []), d = T(() => typeof window < "u" && window.requestIdleCallback ? (e, t) => window.requestIdleCallback(e, t) : u, [u]), f = T(() => typeof window < "u" && window.cancelIdleCallback ? (e) => window.cancelIdleCallback(e) : (e) => {
31
+ }, []), d = useMemo(() => typeof window < "u" && window.requestIdleCallback ? (e, t) => window.requestIdleCallback(e, t) : u, [u]), f = useMemo(() => typeof window < "u" && window.cancelIdleCallback ? (e) => window.cancelIdleCallback(e) : (e) => {
33
32
  clearTimeout(e);
34
33
  }, []);
35
- return w(() => {
34
+ return useEffect(() => {
36
35
  if (t) {
37
36
  o(!0);
38
37
  return;
@@ -77,24 +76,24 @@ function re(e = {}) {
77
76
  containerRef: s
78
77
  };
79
78
  }
80
- var ie = /\s/, ae = /^\s+$/, oe = new Set([
79
+ var St = /\s/, Fn = /^\s+$/, zn = new Set([
81
80
  "code",
82
81
  "pre",
83
82
  "svg",
84
83
  "math",
85
84
  "annotation"
86
- ]), I = (e) => typeof e == "object" && !!e && "type" in e && e.type === "element", se = (e) => e.some((e) => I(e) && oe.has(e.tagName)), L = (e) => {
85
+ ]), _n = (e) => typeof e == "object" && !!e && "type" in e && e.type === "element", qn = (e) => e.some((e) => _n(e) && zn.has(e.tagName)), $n = (e) => {
87
86
  let t = [], n = "", r = !1;
88
87
  for (let i of e) {
89
- let e = ie.test(i);
88
+ let e = St.test(i);
90
89
  e !== r && n && (t.push(n), n = ""), n += i, r = e;
91
90
  }
92
91
  return n && t.push(n), t;
93
- }, ce = (e) => {
92
+ }, Wn = (e) => {
94
93
  let t = [], n = "";
95
- for (let r of e) ie.test(r) ? n += r : (n &&= (t.push(n), ""), t.push(r));
94
+ for (let r of e) St.test(r) ? n += r : (n &&= (t.push(n), ""), t.push(r));
96
95
  return n && t.push(n), t;
97
- }, R = (e, t, n, r, i, a) => {
96
+ }, Zn = (e, t, n, r, i, a) => {
98
97
  let o = `--sd-animation:sd-${t};--sd-duration:${i ? 0 : n}ms;--sd-easing:${r}`;
99
98
  return a && (o += `;--sd-delay:${a}ms`), {
100
99
  type: "element",
@@ -108,10 +107,10 @@ var ie = /\s/, ae = /^\s+$/, oe = new Set([
108
107
  value: e
109
108
  }]
110
109
  };
111
- }, z = (t, n, r, i, a) => {
110
+ }, Xn = (t, n, r, i, a) => {
112
111
  let o = n.at(-1);
113
112
  if (!(o && "children" in o)) return;
114
- if (se(n)) return e;
113
+ if (qn(n)) return SKIP;
115
114
  let s = o, c = s.children.indexOf(t);
116
115
  if (c === -1) return;
117
116
  let l = t.value;
@@ -119,18 +118,18 @@ var ie = /\s/, ae = /^\s+$/, oe = new Set([
119
118
  a.count += l.length;
120
119
  return;
121
120
  }
122
- let u = r.sep === "char" ? ce(l) : L(l), d = i.prevContentLength, f = u.map((e) => {
121
+ let u = r.sep === "char" ? Wn(l) : $n(l), d = i.prevContentLength, f = u.map((e) => {
123
122
  let t = a.count;
124
- if (a.count += e.length, ae.test(e)) return {
123
+ if (a.count += e.length, Fn.test(e)) return {
125
124
  type: "text",
126
125
  value: e
127
126
  };
128
127
  let n = d > 0 && t < d, i = n ? 0 : a.newIndex++ * r.stagger;
129
- return R(e, r.animation, r.duration, r.easing, n, i);
128
+ return Zn(e, r.animation, r.duration, r.easing, n, i);
130
129
  });
131
130
  return s.children.splice(c, 1, ...f), c + f.length;
132
- }, B = 0;
133
- function le(e) {
131
+ }, Jn = 0;
132
+ function be(e) {
134
133
  let n = {
135
134
  animation: e?.animation ?? "fadeIn",
136
135
  duration: e?.duration ?? 150,
@@ -140,12 +139,12 @@ function le(e) {
140
139
  }, r = {
141
140
  prevContentLength: 0,
142
141
  lastRenderCharCount: 0
143
- }, i = B++, a = () => (e) => {
142
+ }, i = Jn++, a = () => (e) => {
144
143
  let i = {
145
144
  count: 0,
146
145
  newIndex: 0
147
146
  };
148
- t(e, "text", (e, t) => z(e, t, n, r, i)), r.lastRenderCharCount = i.count, r.prevContentLength = 0;
147
+ visitParents(e, "text", (e, t) => Xn(e, t, n, r, i)), r.lastRenderCharCount = i.count, r.prevContentLength = 0;
149
148
  };
150
149
  return Object.defineProperty(a, "name", { value: `rehypeAnimate$${i}` }), {
151
150
  name: "animate",
@@ -160,15 +159,15 @@ function le(e) {
160
159
  }
161
160
  };
162
161
  }
163
- le();
164
- var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
162
+ be();
163
+ var et = createContext(!1), tt = () => useContext(et), he = (...e) => twMerge(clsx(e)), Gn = (e, t) => {
165
164
  if (!e || !t) return t;
166
165
  let n = `${e}:`;
167
166
  return t.split(/\s+/).filter(Boolean).map((t) => t.startsWith(n) ? t : `${e}:${t}`).join(" ");
168
- }, pe = (e) => e ? (...t) => fe(e, M(j(t))) : V, H = (e, t, n) => {
167
+ }, Dt = (e) => e ? (...t) => Gn(e, twMerge(clsx(t))) : he, W = (e, t, n) => {
169
168
  let r = typeof t == "string" && n.startsWith("text/csv") ? "" : "", i = typeof t == "string" ? new Blob([r + t], { type: n }) : t, a = URL.createObjectURL(i), o = document.createElement("a");
170
169
  o.href = a, o.download = e, document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(a);
171
- }, me = _(V), U = () => C(me), W = V("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), he = (e) => {
170
+ }, Ee = createContext(he), y = () => useContext(Ee), tr = he("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), or = (e) => {
172
171
  let t = {};
173
172
  for (let n of e.split(";")) {
174
173
  let e = n.indexOf(":");
@@ -178,32 +177,32 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
178
177
  }
179
178
  }
180
179
  return t;
181
- }, G = x(({ children: e, result: t, language: n, className: r, startLine: i, lineNumbers: a = !0, ...o }) => {
182
- let s = U(), c = T(() => s(W), [s]), l = T(() => {
180
+ }, At = memo(({ children: e, result: t, language: n, className: r, startLine: i, lineNumbers: a = !0, ...o }) => {
181
+ let s = y(), c = useMemo(() => s(tr), [s]), l = useMemo(() => {
183
182
  let e = {};
184
- return t.bg && (e["--sdm-bg"] = t.bg), t.fg && (e["--sdm-fg"] = t.fg), t.rootStyle && Object.assign(e, he(t.rootStyle)), e;
183
+ return t.bg && (e["--sdm-bg"] = t.bg), t.fg && (e["--sdm-fg"] = t.fg), t.rootStyle && Object.assign(e, or(t.rootStyle)), e;
185
184
  }, [
186
185
  t.bg,
187
186
  t.fg,
188
187
  t.rootStyle
189
188
  ]);
190
- return k("div", {
189
+ return jsx("div", {
191
190
  className: s(r, "overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),
192
191
  "data-language": n,
193
192
  "data-streamdown": "code-block-body",
194
193
  ...o,
195
- children: k("pre", {
194
+ children: jsx("pre", {
196
195
  className: s(r, "bg-[var(--sdm-bg,inherit]", "dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),
197
196
  style: l,
198
- children: k("code", {
197
+ children: jsx("code", {
199
198
  className: a ? s("[counter-increment:line_0] [counter-reset:line]") : void 0,
200
199
  style: a && i && i > 1 ? { counterReset: `line ${i - 1}` } : void 0,
201
- children: t.tokens.map((e, t) => k("span", {
200
+ children: t.tokens.map((e, t) => jsx("span", {
202
201
  className: a ? c : void 0,
203
202
  children: e.length === 0 || e.length === 1 && e[0].content === "" ? "\n" : e.map((e, t) => {
204
203
  let n = {}, r = !!e.bgColor;
205
204
  if (e.color && (n["--sdm-c"] = e.color), e.bgColor && (n["--sdm-tbg"] = e.bgColor), e.htmlStyle) for (let [t, i] of Object.entries(e.htmlStyle)) t === "color" ? n["--sdm-c"] = i : t === "background-color" ? (n["--sdm-tbg"] = i, r = !0) : n[t] = i;
206
- return k("span", {
205
+ return jsx("span", {
207
206
  className: s("text-[var(--sdm-c,inherit)]", "dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]", r && "bg-[var(--sdm-tbg)]", r && "dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),
208
207
  style: n,
209
208
  ...e.htmlAttrs,
@@ -214,8 +213,8 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
214
213
  })
215
214
  })
216
215
  });
217
- }, (e, t) => e.result === t.result && e.language === t.language && e.className === t.className && e.startLine === t.startLine && e.lineNumbers === t.lineNumbers), K = ({ className: e, language: t, style: n, isIncomplete: r, ...i }) => k("div", {
218
- className: U()("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e),
216
+ }, (e, t) => e.result === t.result && e.language === t.language && e.className === t.className && e.startLine === t.startLine && e.lineNumbers === t.lineNumbers), ot = ({ className: e, language: t, style: n, isIncomplete: r, ...i }) => jsx("div", {
217
+ className: y()("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e),
219
218
  "data-incomplete": r || void 0,
220
219
  "data-language": t,
221
220
  "data-streamdown": "code-block",
@@ -225,23 +224,23 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
225
224
  ...n
226
225
  },
227
226
  ...i
228
- }), ge = _({ code: "" }), _e = () => C(ge), q = ({ language: e }) => {
229
- let t = U();
230
- return k("div", {
227
+ }), nt = createContext({ code: "" }), He = () => useContext(nt), rt = ({ language: e }) => {
228
+ let t = y();
229
+ return jsx("div", {
231
230
  className: t("flex h-8 items-center text-muted-foreground text-xs"),
232
231
  "data-language": e,
233
232
  "data-streamdown": "code-block-header",
234
- children: k("span", {
233
+ children: jsx("span", {
235
234
  className: t("ml-1 font-mono lowercase"),
236
235
  children: e
237
236
  })
238
237
  });
239
- }, ve = (e) => {
238
+ }, lr = (e) => {
240
239
  let t = e.length;
241
240
  for (; t > 0 && e[t - 1] === "\n";) t--;
242
241
  return e.slice(0, t);
243
- }, ye = b(() => import("./highlighted-body-OFNGDK62.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), be = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: o, ...s }) => {
244
- let c = U(), l = T(() => ve(e), [e]), u = T(() => ({
242
+ }, cr = lazy(() => import("./highlighted-body-OFNGDK62.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), st = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: o, ...s }) => {
243
+ let c = y(), l = useMemo(() => lr(e), [e]), u = useMemo(() => ({
245
244
  bg: "transparent",
246
245
  fg: "inherit",
247
246
  tokens: l.split("\n").map((e) => [{
@@ -252,23 +251,23 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
252
251
  offset: 0
253
252
  }])
254
253
  }), [l]);
255
- return k(ge.Provider, {
254
+ return jsx(nt.Provider, {
256
255
  value: { code: e },
257
- children: A(K, {
256
+ children: jsxs(ot, {
258
257
  isIncomplete: i,
259
258
  language: t,
260
259
  children: [
261
- k(q, { language: t }),
262
- r ? k("div", {
260
+ jsx(rt, { language: t }),
261
+ r ? jsx("div", {
263
262
  className: c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
264
- children: k("div", {
263
+ children: jsx("div", {
265
264
  className: c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
266
265
  "data-streamdown": "code-block-actions",
267
266
  children: r
268
267
  })
269
268
  }) : null,
270
- k(h, {
271
- fallback: k(G, {
269
+ jsx(Suspense, {
270
+ fallback: jsx(At, {
272
271
  className: n,
273
272
  language: t,
274
273
  lineNumbers: o,
@@ -276,7 +275,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
276
275
  startLine: a,
277
276
  ...s
278
277
  }),
279
- children: k(ye, {
278
+ children: jsx(cr, {
280
279
  className: n,
281
280
  code: l,
282
281
  language: t,
@@ -289,64 +288,64 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
289
288
  ]
290
289
  })
291
290
  });
292
- }, J = {
293
- CheckIcon: (e) => k("svg", {
291
+ }, we = {
292
+ CheckIcon: (e) => jsx("svg", {
294
293
  color: "currentColor",
295
294
  height: 16,
296
295
  strokeLinejoin: "round",
297
296
  viewBox: "0 0 16 16",
298
297
  width: 16,
299
298
  ...e,
300
- children: k("path", {
299
+ children: jsx("path", {
301
300
  clipRule: "evenodd",
302
301
  d: "M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",
303
302
  fill: "currentColor",
304
303
  fillRule: "evenodd"
305
304
  })
306
305
  }),
307
- CopyIcon: (e) => k("svg", {
306
+ CopyIcon: (e) => jsx("svg", {
308
307
  color: "currentColor",
309
308
  height: 16,
310
309
  strokeLinejoin: "round",
311
310
  viewBox: "0 0 16 16",
312
311
  width: 16,
313
312
  ...e,
314
- children: k("path", {
313
+ children: jsx("path", {
315
314
  clipRule: "evenodd",
316
315
  d: "M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",
317
316
  fill: "currentColor",
318
317
  fillRule: "evenodd"
319
318
  })
320
319
  }),
321
- DownloadIcon: (e) => k("svg", {
320
+ DownloadIcon: (e) => jsx("svg", {
322
321
  color: "currentColor",
323
322
  height: 16,
324
323
  strokeLinejoin: "round",
325
324
  viewBox: "0 0 16 16",
326
325
  width: 16,
327
326
  ...e,
328
- children: k("path", {
327
+ children: jsx("path", {
329
328
  clipRule: "evenodd",
330
329
  d: "M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",
331
330
  fill: "currentColor",
332
331
  fillRule: "evenodd"
333
332
  })
334
333
  }),
335
- ExternalLinkIcon: (e) => k("svg", {
334
+ ExternalLinkIcon: (e) => jsx("svg", {
336
335
  color: "currentColor",
337
336
  height: 16,
338
337
  strokeLinejoin: "round",
339
338
  viewBox: "0 0 16 16",
340
339
  width: 16,
341
340
  ...e,
342
- children: k("path", {
341
+ children: jsx("path", {
343
342
  clipRule: "evenodd",
344
343
  d: "M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",
345
344
  fill: "currentColor",
346
345
  fillRule: "evenodd"
347
346
  })
348
347
  }),
349
- Loader2Icon: (e) => A("svg", {
348
+ Loader2Icon: (e) => jsxs("svg", {
350
349
  color: "currentColor",
351
350
  height: 16,
352
351
  strokeLinejoin: "round",
@@ -354,60 +353,60 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
354
353
  width: 16,
355
354
  ...e,
356
355
  children: [
357
- k("path", {
356
+ jsx("path", {
358
357
  d: "M8 0V4",
359
358
  stroke: "currentColor",
360
359
  strokeWidth: "1.5"
361
360
  }),
362
- k("path", {
361
+ jsx("path", {
363
362
  d: "M8 16V12",
364
363
  opacity: "0.5",
365
364
  stroke: "currentColor",
366
365
  strokeWidth: "1.5"
367
366
  }),
368
- k("path", {
367
+ jsx("path", {
369
368
  d: "M3.29773 1.52783L5.64887 4.7639",
370
369
  opacity: "0.9",
371
370
  stroke: "currentColor",
372
371
  strokeWidth: "1.5"
373
372
  }),
374
- k("path", {
373
+ jsx("path", {
375
374
  d: "M12.7023 1.52783L10.3511 4.7639",
376
375
  opacity: "0.1",
377
376
  stroke: "currentColor",
378
377
  strokeWidth: "1.5"
379
378
  }),
380
- k("path", {
379
+ jsx("path", {
381
380
  d: "M12.7023 14.472L10.3511 11.236",
382
381
  opacity: "0.4",
383
382
  stroke: "currentColor",
384
383
  strokeWidth: "1.5"
385
384
  }),
386
- k("path", {
385
+ jsx("path", {
387
386
  d: "M3.29773 14.472L5.64887 11.236",
388
387
  opacity: "0.6",
389
388
  stroke: "currentColor",
390
389
  strokeWidth: "1.5"
391
390
  }),
392
- k("path", {
391
+ jsx("path", {
393
392
  d: "M15.6085 5.52783L11.8043 6.7639",
394
393
  opacity: "0.2",
395
394
  stroke: "currentColor",
396
395
  strokeWidth: "1.5"
397
396
  }),
398
- k("path", {
397
+ jsx("path", {
399
398
  d: "M0.391602 10.472L4.19583 9.23598",
400
399
  opacity: "0.7",
401
400
  stroke: "currentColor",
402
401
  strokeWidth: "1.5"
403
402
  }),
404
- k("path", {
403
+ jsx("path", {
405
404
  d: "M15.6085 10.4722L11.8043 9.2361",
406
405
  opacity: "0.3",
407
406
  stroke: "currentColor",
408
407
  strokeWidth: "1.5"
409
408
  }),
410
- k("path", {
409
+ jsx("path", {
411
410
  d: "M0.391602 5.52783L4.19583 6.7639",
412
411
  opacity: "0.8",
413
412
  stroke: "currentColor",
@@ -415,96 +414,96 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
415
414
  })
416
415
  ]
417
416
  }),
418
- Maximize2Icon: (e) => k("svg", {
417
+ Maximize2Icon: (e) => jsx("svg", {
419
418
  color: "currentColor",
420
419
  height: 16,
421
420
  strokeLinejoin: "round",
422
421
  viewBox: "0 0 16 16",
423
422
  width: 16,
424
423
  ...e,
425
- children: k("path", {
424
+ children: jsx("path", {
426
425
  clipRule: "evenodd",
427
426
  d: "M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",
428
427
  fill: "currentColor",
429
428
  fillRule: "evenodd"
430
429
  })
431
430
  }),
432
- RotateCcwIcon: (e) => k("svg", {
431
+ RotateCcwIcon: (e) => jsx("svg", {
433
432
  color: "currentColor",
434
433
  height: 16,
435
434
  strokeLinejoin: "round",
436
435
  viewBox: "0 0 16 16",
437
436
  width: 16,
438
437
  ...e,
439
- children: k("path", {
438
+ children: jsx("path", {
440
439
  clipRule: "evenodd",
441
440
  d: "M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",
442
441
  fill: "currentColor",
443
442
  fillRule: "evenodd"
444
443
  })
445
444
  }),
446
- XIcon: (e) => k("svg", {
445
+ XIcon: (e) => jsx("svg", {
447
446
  color: "currentColor",
448
447
  height: 16,
449
448
  strokeLinejoin: "round",
450
449
  viewBox: "0 0 16 16",
451
450
  width: 16,
452
451
  ...e,
453
- children: k("path", {
452
+ children: jsx("path", {
454
453
  clipRule: "evenodd",
455
454
  d: "M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",
456
455
  fill: "currentColor",
457
456
  fillRule: "evenodd"
458
457
  })
459
458
  }),
460
- ZoomInIcon: (e) => k("svg", {
459
+ ZoomInIcon: (e) => jsx("svg", {
461
460
  color: "currentColor",
462
461
  height: 16,
463
462
  strokeLinejoin: "round",
464
463
  viewBox: "0 0 16 16",
465
464
  width: 16,
466
465
  ...e,
467
- children: k("path", {
466
+ children: jsx("path", {
468
467
  clipRule: "evenodd",
469
468
  d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",
470
469
  fill: "currentColor",
471
470
  fillRule: "evenodd"
472
471
  })
473
472
  }),
474
- ZoomOutIcon: (e) => k("svg", {
473
+ ZoomOutIcon: (e) => jsx("svg", {
475
474
  color: "currentColor",
476
475
  height: 16,
477
476
  strokeLinejoin: "round",
478
477
  viewBox: "0 0 16 16",
479
478
  width: 16,
480
479
  ...e,
481
- children: k("path", {
480
+ children: jsx("path", {
482
481
  clipRule: "evenodd",
483
482
  d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",
484
483
  fill: "currentColor",
485
484
  fillRule: "evenodd"
486
485
  })
487
486
  })
488
- }, xe = _(J), Se = (e, t) => {
487
+ }, Ut = createContext(we), fr = (e, t) => {
489
488
  if (e === t) return !0;
490
489
  if (!(e && t)) return e === t;
491
490
  let n = Object.keys(e), r = Object.keys(t);
492
491
  return n.length === r.length ? n.every((n) => e[n] === t[n]) : !1;
493
- }, Ce = ({ icons: e, children: t }) => {
494
- let n = E(e), r = E(e ? {
495
- ...J,
492
+ }, at = ({ icons: e, children: t }) => {
493
+ let n = useRef(e), r = useRef(e ? {
494
+ ...we,
496
495
  ...e
497
- } : J);
498
- Se(n.current, e) || (n.current = e, r.current = e ? {
499
- ...J,
496
+ } : we);
497
+ fr(n.current, e) || (n.current = e, r.current = e ? {
498
+ ...we,
500
499
  ...e
501
- } : J);
500
+ } : we);
502
501
  let i = r.current;
503
- return k(xe.Provider, {
502
+ return jsx(Ut.Provider, {
504
503
  value: i,
505
504
  children: t
506
505
  });
507
- }, Y = () => C(xe), we = {
506
+ }, L = () => useContext(Ut), De = {
508
507
  copyCode: "Copy Code",
509
508
  downloadFile: "Download file",
510
509
  downloadDiagram: "Download diagram",
@@ -534,8 +533,8 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
534
533
  copyLink: "Copy link",
535
534
  copied: "Copied",
536
535
  openLink: "Open link"
537
- }, Te = _(we), X = () => C(Te), Ee = ({ onCopy: e, onError: t, timeout: n = 2e3, children: r, className: i, code: a, ...o }) => {
538
- let s = U(), [c, l] = D(!1), u = E(0), { code: d } = _e(), { isAnimating: f } = C($), p = X(), m = a ?? d, h = async () => {
536
+ }, Be = createContext(De), D = () => useContext(Be), Ae = ({ onCopy: e, onError: t, timeout: n = 2e3, children: r, className: i, code: a, ...o }) => {
537
+ let s = y(), [c, l] = useState(!1), u = useRef(0), { code: d } = He(), { isAnimating: f } = useContext(R), p = D(), m = a ?? d, h = async () => {
539
538
  var r;
540
539
  if (typeof window > "u" || !((r = navigator == null ? void 0 : navigator.clipboard) != null && r.writeText)) {
541
540
  t?.(/* @__PURE__ */ Error("Clipboard API not available"));
@@ -547,11 +546,11 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
547
546
  t?.(e);
548
547
  }
549
548
  };
550
- w(() => () => {
549
+ useEffect(() => () => {
551
550
  window.clearTimeout(u.current);
552
551
  }, []);
553
- let g = Y(), _ = c ? g.CheckIcon : g.CopyIcon;
554
- return k("button", {
552
+ let g = L(), _ = c ? g.CheckIcon : g.CopyIcon;
553
+ return jsx("button", {
555
554
  className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
556
555
  "data-streamdown": "code-block-copy-button",
557
556
  disabled: f,
@@ -559,9 +558,9 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
559
558
  title: p.copyCode,
560
559
  type: "button",
561
560
  ...o,
562
- children: r ?? k(_, { size: 14 })
561
+ children: r ?? jsx(_, { size: 14 })
563
562
  });
564
- }, De = {
563
+ }, Yt = {
565
564
  "1c": "1c",
566
565
  "1c-query": "1cq",
567
566
  abap: "abap",
@@ -868,111 +867,111 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
868
867
  zig: "zig",
869
868
  zsh: "zsh",
870
869
  文言: "wy"
871
- }, Oe = ({ onDownload: e, onError: t, language: n, children: r, className: i, code: a, ...o }) => {
872
- let s = U(), { code: c } = _e(), { isAnimating: l } = C($), u = X(), d = Y(), f = a ?? c, p = `file.${n && n in De ? De[n] : "txt"}`;
873
- return k("button", {
870
+ }, it = ({ onDownload: e, onError: t, language: n, children: r, className: i, code: a, ...o }) => {
871
+ let s = y(), { code: c } = He(), { isAnimating: l } = useContext(R), u = D(), d = L(), f = a ?? c, p = `file.${n && n in Yt ? Yt[n] : "txt"}`, m = () => {
872
+ try {
873
+ W(p, f, "text/plain"), e?.();
874
+ } catch (e) {
875
+ t?.(e);
876
+ }
877
+ };
878
+ return jsx("button", {
874
879
  className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
875
880
  "data-streamdown": "code-block-download-button",
876
881
  disabled: l,
877
- onClick: () => {
878
- try {
879
- H(p, f, "text/plain"), e?.();
880
- } catch (e) {
881
- t?.(e);
882
- }
883
- },
882
+ onClick: m,
884
883
  title: u.downloadFile,
885
884
  type: "button",
886
885
  ...o,
887
- children: r ?? k(d.DownloadIcon, { size: 14 })
886
+ children: r ?? jsx(d.DownloadIcon, { size: 14 })
888
887
  });
889
- }, ke = () => {
890
- let { Loader2Icon: e } = Y(), t = U();
891
- return A("div", {
888
+ }, Oe = () => {
889
+ let { Loader2Icon: e } = L(), t = y();
890
+ return jsxs("div", {
892
891
  className: t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),
893
- children: [k("div", { className: t("h-[46px] w-full bg-muted/80") }), k("div", {
892
+ children: [jsx("div", { className: t("h-[46px] w-full bg-muted/80") }), jsx("div", {
894
893
  className: t("flex w-full items-center justify-center p-4"),
895
- children: k(e, { className: t("size-4 animate-spin") })
894
+ children: jsx(e, { className: t("size-4 animate-spin") })
896
895
  })]
897
896
  });
898
- }, Ae = /\.[^/.]+$/, je = ({ node: e, className: t, src: n, alt: r, onLoad: i, onError: a, ...o }) => {
899
- let { DownloadIcon: s } = Y(), c = U(), l = E(null), [u, d] = D(!1), [f, p] = D(!1), m = X(), h = o.width != null || o.height != null, g = (u || h) && !f, _ = f && !h;
900
- w(() => {
897
+ }, Mr = /\.[^/.]+$/, oo = ({ node: e, className: t, src: n, alt: r, onLoad: i, onError: a, ...o }) => {
898
+ let { DownloadIcon: s } = L(), c = y(), l = useRef(null), [u, d] = useState(!1), [f, p] = useState(!1), m = D(), h = o.width != null || o.height != null, g = (u || h) && !f, _ = f && !h;
899
+ useEffect(() => {
901
900
  let e = l.current;
902
901
  if (e != null && e.complete) {
903
902
  let t = e.naturalWidth > 0;
904
903
  d(t), p(!t);
905
904
  }
906
905
  }, []);
907
- let v = S((e) => {
906
+ let v = useCallback((e) => {
908
907
  d(!0), p(!1), i?.(e);
909
- }, [i]), y = S((e) => {
908
+ }, [i]), b = useCallback((e) => {
910
909
  d(!1), p(!0), a?.(e);
911
- }, [a]), b = async () => {
910
+ }, [a]), S = async () => {
912
911
  if (n) try {
913
912
  let e = await (await fetch(n)).blob(), t = new URL(n, window.location.origin).pathname.split("/").pop() || "", i = t.split(".").pop(), a = t.includes(".") && i !== void 0 && i.length <= 4, o = "";
914
913
  if (a) o = t;
915
914
  else {
916
915
  let n = e.type, i = "png";
917
- n.includes("jpeg") || n.includes("jpg") ? i = "jpg" : n.includes("png") ? i = "png" : n.includes("svg") ? i = "svg" : n.includes("gif") ? i = "gif" : n.includes("webp") && (i = "webp"), o = `${(r || t || "image").replace(Ae, "")}.${i}`;
916
+ n.includes("jpeg") || n.includes("jpg") ? i = "jpg" : n.includes("png") ? i = "png" : n.includes("svg") ? i = "svg" : n.includes("gif") ? i = "gif" : n.includes("webp") && (i = "webp"), o = `${(r || t || "image").replace(Mr, "")}.${i}`;
918
917
  }
919
- H(o, e, e.type);
918
+ W(o, e, e.type);
920
919
  } catch {
921
920
  window.open(n, "_blank");
922
921
  }
923
922
  };
924
- return n ? A("div", {
923
+ return n ? jsxs("div", {
925
924
  className: c("group relative my-4 inline-block"),
926
925
  "data-streamdown": "image-wrapper",
927
926
  children: [
928
- k("img", {
927
+ jsx("img", {
929
928
  alt: r,
930
929
  className: c("max-w-full rounded-lg", _ && "hidden", t),
931
930
  "data-streamdown": "image",
932
- onError: y,
931
+ onError: b,
933
932
  onLoad: v,
934
933
  ref: l,
935
934
  src: n,
936
935
  ...o
937
936
  }),
938
- _ && k("span", {
937
+ _ && jsx("span", {
939
938
  className: c("text-muted-foreground text-xs italic"),
940
939
  "data-streamdown": "image-fallback",
941
940
  children: m.imageNotAvailable
942
941
  }),
943
- k("div", { className: c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block") }),
944
- g && k("button", {
942
+ jsx("div", { className: c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block") }),
943
+ g && jsx("button", {
945
944
  className: c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background", "opacity-0 group-hover:opacity-100"),
946
- onClick: b,
945
+ onClick: S,
947
946
  title: m.downloadImage,
948
947
  type: "button",
949
- children: k(s, { size: 14 })
948
+ children: jsx(s, { size: 14 })
950
949
  })
951
950
  ]
952
951
  }) : null;
953
- }, Z = 0, Me = () => {
954
- Z += 1, Z === 1 && (document.body.style.overflow = "hidden");
955
- }, Ne = () => {
956
- Z = Math.max(0, Z - 1), Z === 0 && (document.body.style.overflow = "");
957
- }, Pe = ({ url: e, isOpen: t, onClose: n, onConfirm: r }) => {
958
- let { CheckIcon: i, CopyIcon: a, ExternalLinkIcon: o, XIcon: s } = Y(), c = U(), [l, u] = D(!1), d = X(), f = S(async () => {
952
+ }, ke = 0, le = () => {
953
+ ke += 1, ke === 1 && (document.body.style.overflow = "hidden");
954
+ }, ce = () => {
955
+ ke = Math.max(0, ke - 1), ke === 0 && (document.body.style.overflow = "");
956
+ }, so = ({ url: e, isOpen: t, onClose: n, onConfirm: r }) => {
957
+ let { CheckIcon: i, CopyIcon: a, ExternalLinkIcon: o, XIcon: s } = L(), c = y(), [l, u] = useState(!1), d = D(), f = useCallback(async () => {
959
958
  try {
960
959
  await navigator.clipboard.writeText(e), u(!0), setTimeout(() => u(!1), 2e3);
961
960
  } catch {}
962
- }, [e]), p = S(() => {
961
+ }, [e]), p = useCallback(() => {
963
962
  r(), n();
964
963
  }, [r, n]);
965
- return w(() => {
964
+ return useEffect(() => {
966
965
  if (t) {
967
- Me();
966
+ le();
968
967
  let e = (e) => {
969
968
  e.key === "Escape" && n();
970
969
  };
971
970
  return document.addEventListener("keydown", e), () => {
972
- document.removeEventListener("keydown", e), Ne();
971
+ document.removeEventListener("keydown", e), ce();
973
972
  };
974
973
  }
975
- }, [t, n]), t ? k("div", {
974
+ }, [t, n]), t ? jsx("div", {
976
975
  className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),
977
976
  "data-streamdown": "link-safety-modal",
978
977
  onClick: n,
@@ -981,55 +980,55 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
981
980
  },
982
981
  role: "button",
983
982
  tabIndex: 0,
984
- children: A("div", {
983
+ children: jsxs("div", {
985
984
  className: c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),
986
985
  onClick: (e) => e.stopPropagation(),
987
986
  onKeyDown: (e) => e.stopPropagation(),
988
987
  role: "presentation",
989
988
  children: [
990
- k("button", {
989
+ jsx("button", {
991
990
  className: c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
992
991
  onClick: n,
993
992
  title: d.close,
994
993
  type: "button",
995
- children: k(s, { size: 16 })
994
+ children: jsx(s, { size: 16 })
996
995
  }),
997
- A("div", {
996
+ jsxs("div", {
998
997
  className: c("flex flex-col gap-2"),
999
- children: [A("div", {
998
+ children: [jsxs("div", {
1000
999
  className: c("flex items-center gap-2 font-semibold text-lg"),
1001
- children: [k(o, { size: 20 }), k("span", { children: d.openExternalLink })]
1002
- }), k("p", {
1000
+ children: [jsx(o, { size: 20 }), jsx("span", { children: d.openExternalLink })]
1001
+ }), jsx("p", {
1003
1002
  className: c("text-muted-foreground text-sm"),
1004
1003
  children: d.externalLinkWarning
1005
1004
  })]
1006
1005
  }),
1007
- k("div", {
1006
+ jsx("div", {
1008
1007
  className: c("break-all rounded-md bg-muted p-3 font-mono text-sm", e.length > 100 && "max-h-32 overflow-y-auto"),
1009
1008
  children: e
1010
1009
  }),
1011
- A("div", {
1010
+ jsxs("div", {
1012
1011
  className: c("flex gap-2"),
1013
- children: [k("button", {
1012
+ children: [jsx("button", {
1014
1013
  className: c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),
1015
1014
  onClick: f,
1016
1015
  type: "button",
1017
- children: l ? A(O, { children: [k(i, { size: 14 }), k("span", { children: d.copied })] }) : A(O, { children: [k(a, { size: 14 }), k("span", { children: d.copyLink })] })
1018
- }), A("button", {
1016
+ children: l ? jsxs(Fragment$1, { children: [jsx(i, { size: 14 }), jsx("span", { children: d.copied })] }) : jsxs(Fragment$1, { children: [jsx(a, { size: 14 }), jsx("span", { children: d.copyLink })] })
1017
+ }), jsxs("button", {
1019
1018
  className: c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),
1020
1019
  onClick: p,
1021
1020
  type: "button",
1022
- children: [k(o, { size: 14 }), k("span", { children: d.openLink })]
1021
+ children: [jsx(o, { size: 14 }), jsx("span", { children: d.openLink })]
1023
1022
  })]
1024
1023
  })
1025
1024
  ]
1026
1025
  })
1027
1026
  }) : null;
1028
- }, Fe = _(null), Ie = () => C(Fe), Le = () => Ie()?.code ?? null, Re = () => Ie()?.mermaid ?? null, ze = (e) => {
1027
+ }, Ve = createContext(null), ct = () => useContext(Ve), Li = () => ct()?.code ?? null, de = () => ct()?.mermaid ?? null, ao = (e) => {
1029
1028
  var t;
1030
- let n = Ie();
1029
+ let n = ct();
1031
1030
  return n != null && n.renderers && e && (t = n.renderers.find((t) => Array.isArray(t.language) ? t.language.includes(e) : t.language === e)) != null ? t : null;
1032
- }, Be = (e, t) => new Promise((t, n) => {
1031
+ }, io = (e, t) => new Promise((t, n) => {
1033
1032
  let r = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(e))), i = new Image();
1034
1033
  i.crossOrigin = "anonymous", i.onload = () => {
1035
1034
  let e = document.createElement("canvas"), r = i.width * 5, a = i.height * 5;
@@ -1047,11 +1046,11 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1047
1046
  t(e);
1048
1047
  }, "image/png");
1049
1048
  }, i.onerror = () => n(/* @__PURE__ */ Error("Failed to load SVG image")), i.src = r;
1050
- }), Ve = ({ chart: e, children: t, className: n, onDownload: r, config: i, onError: a }) => {
1051
- let o = U(), [s, c] = D(!1), l = E(null), { isAnimating: u } = C($), d = Y(), f = Re(), p = X(), m = async (t) => {
1049
+ }), co = ({ chart: e, children: t, className: n, onDownload: r, config: i, onError: a }) => {
1050
+ let o = y(), [s, c] = useState(!1), l = useRef(null), { isAnimating: u } = useContext(R), d = L(), f = de(), p = D(), m = async (t) => {
1052
1051
  try {
1053
1052
  if (t === "mmd") {
1054
- H("diagram.mmd", e, "text/plain"), c(!1), r?.(t);
1053
+ W("diagram.mmd", e, "text/plain"), c(!1), r?.(t);
1055
1054
  return;
1056
1055
  }
1057
1056
  if (!f) {
@@ -1064,18 +1063,18 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1064
1063
  return;
1065
1064
  }
1066
1065
  if (t === "svg") {
1067
- H("diagram.svg", l, "image/svg+xml"), c(!1), r?.(t);
1066
+ W("diagram.svg", l, "image/svg+xml"), c(!1), r?.(t);
1068
1067
  return;
1069
1068
  }
1070
1069
  if (t === "png") {
1071
- H("diagram.png", await Be(l), "image/png"), r?.(t), c(!1);
1070
+ W("diagram.png", await io(l), "image/png"), r?.(t), c(!1);
1072
1071
  return;
1073
1072
  }
1074
1073
  } catch (e) {
1075
1074
  a?.(e);
1076
1075
  }
1077
1076
  };
1078
- return w(() => {
1077
+ return useEffect(() => {
1079
1078
  let e = (e) => {
1080
1079
  let t = e.composedPath();
1081
1080
  l.current && !t.includes(l.current) && c(!1);
@@ -1083,34 +1082,34 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1083
1082
  return document.addEventListener("mousedown", e), () => {
1084
1083
  document.removeEventListener("mousedown", e);
1085
1084
  };
1086
- }, []), A("div", {
1085
+ }, []), jsxs("div", {
1087
1086
  className: o("relative"),
1088
1087
  ref: l,
1089
- children: [k("button", {
1088
+ children: [jsx("button", {
1090
1089
  className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", n),
1091
1090
  disabled: u,
1092
1091
  onClick: () => c(!s),
1093
1092
  title: p.downloadDiagram,
1094
1093
  type: "button",
1095
- children: t ?? k(d.DownloadIcon, { size: 14 })
1096
- }), s ? A("div", {
1094
+ children: t ?? jsx(d.DownloadIcon, { size: 14 })
1095
+ }), s ? jsxs("div", {
1097
1096
  className: o("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
1098
1097
  children: [
1099
- k("button", {
1098
+ jsx("button", {
1100
1099
  className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1101
1100
  onClick: () => m("svg"),
1102
1101
  title: p.downloadDiagramAsSvg,
1103
1102
  type: "button",
1104
1103
  children: p.mermaidFormatSvg
1105
1104
  }),
1106
- k("button", {
1105
+ jsx("button", {
1107
1106
  className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1108
1107
  onClick: () => m("png"),
1109
1108
  title: p.downloadDiagramAsPng,
1110
1109
  type: "button",
1111
1110
  children: p.mermaidFormatPng
1112
1111
  }),
1113
- k("button", {
1112
+ jsx("button", {
1114
1113
  className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1115
1114
  onClick: () => m("mmd"),
1116
1115
  title: p.downloadDiagramAsMmd,
@@ -1120,39 +1119,39 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1120
1119
  ]
1121
1120
  }) : null]
1122
1121
  });
1123
- }, He = ({ chart: e, config: t, onFullscreen: n, onExit: r, className: i, ...a }) => {
1124
- let { Maximize2Icon: o, XIcon: s } = Y(), c = U(), [l, u] = D(!1), { isAnimating: d, controls: f } = C($), p = X(), m = (() => {
1122
+ }, fo = ({ chart: e, config: t, onFullscreen: n, onExit: r, className: i, ...a }) => {
1123
+ let { Maximize2Icon: o, XIcon: s } = L(), c = y(), [l, u] = useState(!1), { isAnimating: d, controls: f } = useContext(R), p = D(), m = (() => {
1125
1124
  if (typeof f == "boolean") return f;
1126
1125
  let e = f.mermaid;
1127
1126
  return e === !1 ? !1 : e === !0 || e === void 0 ? !0 : e.panZoom !== !1;
1128
1127
  })(), h = () => {
1129
1128
  u(!l);
1130
1129
  };
1131
- return w(() => {
1130
+ return useEffect(() => {
1132
1131
  if (l) {
1133
- Me();
1132
+ le();
1134
1133
  let e = (e) => {
1135
1134
  e.key === "Escape" && u(!1);
1136
1135
  };
1137
1136
  return document.addEventListener("keydown", e), () => {
1138
- document.removeEventListener("keydown", e), Ne();
1137
+ document.removeEventListener("keydown", e), ce();
1139
1138
  };
1140
1139
  }
1141
- }, [l]), w(() => {
1140
+ }, [l]), useEffect(() => {
1142
1141
  l ? n?.() : r && r();
1143
1142
  }, [
1144
1143
  l,
1145
1144
  n,
1146
1145
  r
1147
- ]), A(O, { children: [k("button", {
1146
+ ]), jsxs(Fragment$1, { children: [jsx("button", {
1148
1147
  className: c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
1149
1148
  disabled: d,
1150
1149
  onClick: h,
1151
1150
  title: p.viewFullscreen,
1152
1151
  type: "button",
1153
1152
  ...a,
1154
- children: k(o, { size: 14 })
1155
- }), l ? N(A("div", {
1153
+ children: jsx(o, { size: 14 })
1154
+ }), l ? createPortal(jsxs("div", {
1156
1155
  className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),
1157
1156
  onClick: h,
1158
1157
  onKeyDown: (e) => {
@@ -1160,18 +1159,18 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1160
1159
  },
1161
1160
  role: "button",
1162
1161
  tabIndex: 0,
1163
- children: [k("button", {
1162
+ children: [jsx("button", {
1164
1163
  className: c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
1165
1164
  onClick: h,
1166
1165
  title: p.exitFullscreen,
1167
1166
  type: "button",
1168
- children: k(s, { size: 20 })
1169
- }), k("div", {
1167
+ children: jsx(s, { size: 20 })
1168
+ }), jsx("div", {
1170
1169
  className: c("flex size-full items-center justify-center p-4"),
1171
1170
  onClick: (e) => e.stopPropagation(),
1172
1171
  onKeyDown: (e) => e.stopPropagation(),
1173
1172
  role: "presentation",
1174
- children: k(Pn, {
1173
+ children: jsx(po, {
1175
1174
  chart: e,
1176
1175
  className: c("size-full [&_svg]:h-auto [&_svg]:w-auto"),
1177
1176
  config: t,
@@ -1180,7 +1179,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1180
1179
  })
1181
1180
  })]
1182
1181
  }), document.body) : null] });
1183
- }, Ue = (e) => {
1182
+ }, ue = (e) => {
1184
1183
  let t = [], n = [], r = e.querySelectorAll("thead th");
1185
1184
  for (let e of r) t.push(e.textContent?.trim() || "");
1186
1185
  let i = e.querySelectorAll("tbody tr");
@@ -1193,7 +1192,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1193
1192
  headers: t,
1194
1193
  rows: n
1195
1194
  };
1196
- }, We = (e) => {
1195
+ }, ne = (e) => {
1197
1196
  let { headers: t, rows: n } = e, r = (e) => {
1198
1197
  let t = !1, n = !1;
1199
1198
  for (let r of e) {
@@ -1208,7 +1207,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1208
1207
  t.length > 0 && (a[o] = t.map(r).join(","), o += 1);
1209
1208
  for (let e of n) a[o] = e.map(r).join(","), o += 1;
1210
1209
  return a.join("\n");
1211
- }, Ge = (e) => {
1210
+ }, dt = (e) => {
1212
1211
  let { headers: t, rows: n } = e, r = (e) => {
1213
1212
  let t = !1;
1214
1213
  for (let n of e) if (n === " " || n === "\n" || n === "\r") {
@@ -1223,7 +1222,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1223
1222
  t.length > 0 && (a[o] = t.map(r).join(" "), o += 1);
1224
1223
  for (let e of n) a[o] = e.map(r).join(" "), o += 1;
1225
1224
  return a.join("\n");
1226
- }, Ke = (e) => {
1225
+ }, je = (e) => {
1227
1226
  let t = !1;
1228
1227
  for (let n of e) if (n === "\\" || n === "|") {
1229
1228
  t = !0;
@@ -1233,22 +1232,22 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1233
1232
  let n = [];
1234
1233
  for (let t of e) t === "\\" ? n.push("\\\\") : t === "|" ? n.push("\\|") : n.push(t);
1235
1234
  return n.join("");
1236
- }, qe = (e) => {
1235
+ }, re = (e) => {
1237
1236
  let { headers: t, rows: n } = e;
1238
1237
  if (t.length === 0) return "";
1239
1238
  let r = Array(n.length + 2), i = 0;
1240
- r[i] = `| ${t.map((e) => Ke(e)).join(" | ")} |`, i += 1;
1239
+ r[i] = `| ${t.map((e) => je(e)).join(" | ")} |`, i += 1;
1241
1240
  let a = Array(t.length);
1242
1241
  for (let e = 0; e < t.length; e += 1) a[e] = "---";
1243
1242
  r[i] = `| ${a.join(" | ")} |`, i += 1;
1244
1243
  for (let e of n) if (e.length < t.length) {
1245
1244
  let n = Array(t.length);
1246
- for (let r = 0; r < t.length; r += 1) n[r] = r < e.length ? Ke(e[r]) : "";
1245
+ for (let r = 0; r < t.length; r += 1) n[r] = r < e.length ? je(e[r]) : "";
1247
1246
  r[i] = `| ${n.join(" | ")} |`, i += 1;
1248
- } else r[i] = `| ${e.map((e) => Ke(e)).join(" | ")} |`, i += 1;
1247
+ } else r[i] = `| ${e.map((e) => je(e)).join(" | ")} |`, i += 1;
1249
1248
  return r.join("\n");
1250
- }, Je = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
1251
- let a = U(), [o, s] = D(!1), [c, l] = D(!1), u = E(null), d = E(0), { isAnimating: f } = C($), p = X(), m = async (e) => {
1249
+ }, Te = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
1250
+ let a = y(), [o, s] = useState(!1), [c, l] = useState(!1), u = useRef(null), d = useRef(0), { isAnimating: f } = useContext(R), p = D(), m = async (e) => {
1252
1251
  var t;
1253
1252
  if (typeof window > "u" || !((t = navigator == null ? void 0 : navigator.clipboard) != null && t.write)) {
1254
1253
  r?.(/* @__PURE__ */ Error("Clipboard API not available"));
@@ -1260,11 +1259,11 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1260
1259
  r?.(/* @__PURE__ */ Error("Table not found"));
1261
1260
  return;
1262
1261
  }
1263
- let a = Ue(t), o = ({
1264
- csv: We,
1265
- tsv: Ge,
1266
- md: qe
1267
- }[e] || qe)(a), c = new ClipboardItem({
1262
+ let a = ue(t), o = ({
1263
+ csv: ne,
1264
+ tsv: dt,
1265
+ md: re
1266
+ }[e] || re)(a), c = new ClipboardItem({
1268
1267
  "text/plain": new Blob([o], { type: "text/plain" }),
1269
1268
  "text/html": new Blob([t.outerHTML], { type: "text/html" })
1270
1269
  });
@@ -1273,7 +1272,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1273
1272
  r?.(e);
1274
1273
  }
1275
1274
  };
1276
- w(() => {
1275
+ useEffect(() => {
1277
1276
  let e = (e) => {
1278
1277
  let t = e.composedPath();
1279
1278
  u.current && !t.includes(u.current) && s(!1);
@@ -1282,38 +1281,38 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1282
1281
  document.removeEventListener("mousedown", e), window.clearTimeout(d.current);
1283
1282
  };
1284
1283
  }, []);
1285
- let h = Y(), g = c ? h.CheckIcon : h.CopyIcon;
1286
- return A("div", {
1284
+ let h = L(), g = c ? h.CheckIcon : h.CopyIcon;
1285
+ return jsxs("div", {
1287
1286
  className: a("relative"),
1288
1287
  ref: u,
1289
- children: [k("button", {
1288
+ children: [jsx("button", {
1290
1289
  className: a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
1291
1290
  disabled: f,
1292
1291
  onClick: () => s(!o),
1293
1292
  title: p.copyTable,
1294
1293
  type: "button",
1295
- children: e ?? k(g, {
1294
+ children: e ?? jsx(g, {
1296
1295
  height: 14,
1297
1296
  width: 14
1298
1297
  })
1299
- }), o ? A("div", {
1298
+ }), o ? jsxs("div", {
1300
1299
  className: a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
1301
1300
  children: [
1302
- k("button", {
1301
+ jsx("button", {
1303
1302
  className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1304
1303
  onClick: () => m("md"),
1305
1304
  title: p.copyTableAsMarkdown,
1306
1305
  type: "button",
1307
1306
  children: p.tableFormatMarkdown
1308
1307
  }),
1309
- k("button", {
1308
+ jsx("button", {
1310
1309
  className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1311
1310
  onClick: () => m("csv"),
1312
1311
  title: p.copyTableAsCsv,
1313
1312
  type: "button",
1314
1313
  children: p.tableFormatCsv
1315
1314
  }),
1316
- k("button", {
1315
+ jsx("button", {
1317
1316
  className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1318
1317
  onClick: () => m("tsv"),
1319
1318
  title: p.copyTableAsTsv,
@@ -1323,21 +1322,21 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1323
1322
  ]
1324
1323
  }) : null]
1325
1324
  });
1326
- }, Ye = ({ children: e, className: t, onDownload: n, onError: r }) => {
1327
- let i = U(), [a, o] = D(!1), s = E(null), { isAnimating: c } = C($), l = X(), u = Y(), d = (e) => {
1325
+ }, Pe = ({ children: e, className: t, onDownload: n, onError: r }) => {
1326
+ let i = y(), [a, o] = useState(!1), s = useRef(null), { isAnimating: c } = useContext(R), l = D(), u = L(), d = (e) => {
1328
1327
  try {
1329
1328
  let t = (s.current?.closest("[data-streamdown=\"table-wrapper\"]"))?.querySelector("table");
1330
1329
  if (!t) {
1331
1330
  r?.(/* @__PURE__ */ Error("Table not found"));
1332
1331
  return;
1333
1332
  }
1334
- let i = Ue(t), a = e === "csv" ? We(i) : qe(i);
1335
- H(`table.${e === "csv" ? "csv" : "md"}`, a, e === "csv" ? "text/csv" : "text/markdown"), o(!1), n?.(e);
1333
+ let i = ue(t), a = e === "csv" ? ne(i) : re(i);
1334
+ W(`table.${e === "csv" ? "csv" : "md"}`, a, e === "csv" ? "text/csv" : "text/markdown"), o(!1), n?.(e);
1336
1335
  } catch (e) {
1337
1336
  r?.(e);
1338
1337
  }
1339
1338
  };
1340
- return w(() => {
1339
+ return useEffect(() => {
1341
1340
  let e = (e) => {
1342
1341
  let t = e.composedPath();
1343
1342
  s.current && !t.includes(s.current) && o(!1);
@@ -1345,25 +1344,25 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1345
1344
  return document.addEventListener("mousedown", e), () => {
1346
1345
  document.removeEventListener("mousedown", e);
1347
1346
  };
1348
- }, []), A("div", {
1347
+ }, []), jsxs("div", {
1349
1348
  className: i("relative"),
1350
1349
  ref: s,
1351
- children: [k("button", {
1350
+ children: [jsx("button", {
1352
1351
  className: i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
1353
1352
  disabled: c,
1354
1353
  onClick: () => o(!a),
1355
1354
  title: l.downloadTable,
1356
1355
  type: "button",
1357
- children: e ?? k(u.DownloadIcon, { size: 14 })
1358
- }), a ? A("div", {
1356
+ children: e ?? jsx(u.DownloadIcon, { size: 14 })
1357
+ }), a ? jsxs("div", {
1359
1358
  className: i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
1360
- children: [k("button", {
1359
+ children: [jsx("button", {
1361
1360
  className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1362
1361
  onClick: () => d("csv"),
1363
1362
  title: l.downloadTableAsCsv,
1364
1363
  type: "button",
1365
1364
  children: l.tableFormatCsv
1366
- }), k("button", {
1365
+ }), jsx("button", {
1367
1366
  className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1368
1367
  onClick: () => d("markdown"),
1369
1368
  title: l.downloadTableAsMarkdown,
@@ -1372,30 +1371,30 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1372
1371
  })]
1373
1372
  }) : null]
1374
1373
  });
1375
- }, Xe = ({ children: e, className: t, showCopy: n = !0, showDownload: r = !0 }) => {
1376
- let { Maximize2Icon: i, XIcon: a } = Y(), o = U(), [s, c] = D(!1), { isAnimating: l } = C($), u = X(), d = () => {
1374
+ }, Co = ({ children: e, className: t, showCopy: n = !0, showDownload: r = !0 }) => {
1375
+ let { Maximize2Icon: i, XIcon: a } = L(), o = y(), [s, c] = useState(!1), { isAnimating: l } = useContext(R), u = D(), d = () => {
1377
1376
  c(!0);
1378
1377
  }, f = () => {
1379
1378
  c(!1);
1380
1379
  };
1381
- return w(() => {
1380
+ return useEffect(() => {
1382
1381
  if (s) {
1383
- Me();
1382
+ le();
1384
1383
  let e = (e) => {
1385
1384
  e.key === "Escape" && c(!1);
1386
1385
  };
1387
1386
  return document.addEventListener("keydown", e), () => {
1388
- document.removeEventListener("keydown", e), Ne();
1387
+ document.removeEventListener("keydown", e), ce();
1389
1388
  };
1390
1389
  }
1391
- }, [s]), A(O, { children: [k("button", {
1390
+ }, [s]), jsxs(Fragment$1, { children: [jsx("button", {
1392
1391
  className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
1393
1392
  disabled: l,
1394
1393
  onClick: d,
1395
1394
  title: u.viewFullscreen,
1396
1395
  type: "button",
1397
- children: k(i, { size: 14 })
1398
- }), s ? N(k("div", {
1396
+ children: jsx(i, { size: 14 })
1397
+ }), s ? createPortal(jsx("div", {
1399
1398
  "aria-label": u.viewFullscreen,
1400
1399
  "aria-modal": "true",
1401
1400
  className: o("fixed inset-0 z-50 flex flex-col bg-background"),
@@ -1405,27 +1404,27 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1405
1404
  e.key === "Escape" && f();
1406
1405
  },
1407
1406
  role: "dialog",
1408
- children: A("div", {
1407
+ children: jsxs("div", {
1409
1408
  className: o("flex h-full flex-col"),
1410
1409
  onClick: (e) => e.stopPropagation(),
1411
1410
  onKeyDown: (e) => e.stopPropagation(),
1412
1411
  role: "presentation",
1413
- children: [A("div", {
1412
+ children: [jsxs("div", {
1414
1413
  className: o("flex items-center justify-end gap-1 p-4"),
1415
1414
  children: [
1416
- n ? k(Je, {}) : null,
1417
- r ? k(Ye, {}) : null,
1418
- k("button", {
1415
+ n ? jsx(Te, {}) : null,
1416
+ r ? jsx(Pe, {}) : null,
1417
+ jsx("button", {
1419
1418
  className: o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
1420
1419
  onClick: f,
1421
1420
  title: u.exitFullscreen,
1422
1421
  type: "button",
1423
- children: k(a, { size: 20 })
1422
+ children: jsx(a, { size: 20 })
1424
1423
  })
1425
1424
  ]
1426
- }), k("div", {
1425
+ }), jsx("div", {
1427
1426
  className: o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),
1428
- children: k("table", {
1427
+ children: jsx("table", {
1429
1428
  className: o("w-full border-collapse border border-border"),
1430
1429
  "data-streamdown": "table",
1431
1430
  children: e
@@ -1433,25 +1432,25 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1433
1432
  })]
1434
1433
  })
1435
1434
  }), document.body) : null] });
1436
- }, Ze = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...o }) => {
1437
- let s = U(), c = n && r, l = n && i, u = n && a, d = c || l || u;
1438
- return A("div", {
1435
+ }, vo = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...o }) => {
1436
+ let s = y(), c = n && r, l = n && i, u = n && a, d = c || l || u;
1437
+ return jsxs("div", {
1439
1438
  className: s("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),
1440
1439
  "data-streamdown": "table-wrapper",
1441
- children: [d ? A("div", {
1440
+ children: [d ? jsxs("div", {
1442
1441
  className: s("flex items-center justify-end gap-1"),
1443
1442
  children: [
1444
- c ? k(Je, {}) : null,
1445
- l ? k(Ye, {}) : null,
1446
- u ? k(Xe, {
1443
+ c ? jsx(Te, {}) : null,
1444
+ l ? jsx(Pe, {}) : null,
1445
+ u ? jsx(Co, {
1447
1446
  showCopy: c,
1448
1447
  showDownload: l,
1449
1448
  children: e
1450
1449
  }) : null
1451
1450
  ]
1452
- }) : null, k("div", {
1451
+ }) : null, jsx("div", {
1453
1452
  className: s("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),
1454
- children: k("table", {
1453
+ children: jsx("table", {
1455
1454
  className: s("w-full divide-y divide-border", t),
1456
1455
  "data-streamdown": "table",
1457
1456
  ...o,
@@ -1459,64 +1458,64 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
1459
1458
  })
1460
1459
  })]
1461
1460
  });
1462
- }, Qe = /startLine=(\d+)/, $e = /\bnoLineNumbers\b/, et = b(() => import("./mermaid-GHXKKRXX.js").then((e) => ({ default: e.Mermaid }))), tt = /language-([^\s]+)/;
1463
- function nt(e, t) {
1461
+ }, es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX.js").then((e) => ({ default: e.Mermaid }))), ns = /language-([^\s]+)/;
1462
+ function qe(e, t) {
1464
1463
  if (!(e != null && e.position || t != null && t.position)) return !0;
1465
1464
  if (!(e != null && e.position && t != null && t.position)) return !1;
1466
1465
  let n = e.position.start, r = t.position.start, i = e.position.end, a = t.position.end;
1467
1466
  return n?.line === r?.line && n?.column === r?.column && i?.line === a?.line && i?.column === a?.column;
1468
1467
  }
1469
- function Q(e, t) {
1470
- return e.className === t.className && nt(e.node, t.node);
1468
+ function E(e, t) {
1469
+ return e.className === t.className && qe(e.node, t.node);
1471
1470
  }
1472
- var rt = (e, t) => typeof e == "boolean" ? e : e[t] !== !1, it = (e, t) => {
1471
+ var ft = (e, t) => typeof e == "boolean" ? e : e[t] !== !1, pt = (e, t) => {
1473
1472
  if (typeof e == "boolean") return e;
1474
1473
  let n = e.table;
1475
1474
  return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
1476
- }, at = (e, t) => {
1475
+ }, To = (e, t) => {
1477
1476
  if (typeof e == "boolean") return e;
1478
1477
  let n = e.code;
1479
1478
  return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
1480
- }, ot = (e, t) => {
1479
+ }, Fe = (e, t) => {
1481
1480
  if (typeof e == "boolean") return e;
1482
1481
  let n = e.mermaid;
1483
1482
  return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
1484
- }, st = x(({ children: e, className: t, node: n, ...r }) => k("ol", {
1485
- className: U()("list-inside list-decimal whitespace-normal [li_&]:pl-6", t),
1483
+ }, bt = memo(({ children: e, className: t, node: n, ...r }) => jsx("ol", {
1484
+ className: y()("list-inside list-decimal whitespace-normal [li_&]:pl-6", t),
1486
1485
  "data-streamdown": "ordered-list",
1487
1486
  ...r,
1488
1487
  children: e
1489
- }), (e, t) => Q(e, t));
1490
- st.displayName = "MarkdownOl";
1491
- var ct = x(({ children: e, className: t, node: n, ...r }) => k("li", {
1492
- className: U()("py-1 [&>p]:inline", t),
1488
+ }), (e, t) => E(e, t));
1489
+ bt.displayName = "MarkdownOl";
1490
+ var Po = memo(({ children: e, className: t, node: n, ...r }) => jsx("li", {
1491
+ className: y()("py-1 [&>p]:inline", t),
1493
1492
  "data-streamdown": "list-item",
1494
1493
  ...r,
1495
1494
  children: e
1496
- }), (e, t) => e.className === t.className && nt(e.node, t.node));
1497
- ct.displayName = "MarkdownLi";
1498
- var lt = x(({ children: e, className: t, node: n, ...r }) => k("ul", {
1499
- className: U()("list-inside list-disc whitespace-normal [li_&]:pl-6", t),
1495
+ }), (e, t) => e.className === t.className && qe(e.node, t.node));
1496
+ Po.displayName = "MarkdownLi";
1497
+ var Mo = memo(({ children: e, className: t, node: n, ...r }) => jsx("ul", {
1498
+ className: y()("list-inside list-disc whitespace-normal [li_&]:pl-6", t),
1500
1499
  "data-streamdown": "unordered-list",
1501
1500
  ...r,
1502
1501
  children: e
1503
- }), (e, t) => Q(e, t));
1504
- lt.displayName = "MarkdownUl";
1505
- var ut = x(({ className: e, node: t, ...n }) => k("hr", {
1506
- className: U()("my-6 border-border", e),
1502
+ }), (e, t) => E(e, t));
1503
+ Mo.displayName = "MarkdownUl";
1504
+ var Io = memo(({ className: e, node: t, ...n }) => jsx("hr", {
1505
+ className: y()("my-6 border-border", e),
1507
1506
  "data-streamdown": "horizontal-rule",
1508
1507
  ...n
1509
- }), (e, t) => Q(e, t));
1510
- ut.displayName = "MarkdownHr";
1511
- var dt = x(({ children: e, className: t, node: n, ...r }) => k("span", {
1512
- className: U()("font-semibold", t),
1508
+ }), (e, t) => E(e, t));
1509
+ Io.displayName = "MarkdownHr";
1510
+ var No = memo(({ children: e, className: t, node: n, ...r }) => jsx("span", {
1511
+ className: y()("font-semibold", t),
1513
1512
  "data-streamdown": "strong",
1514
1513
  ...r,
1515
1514
  children: e
1516
- }), (e, t) => Q(e, t));
1517
- dt.displayName = "MarkdownStrong";
1518
- var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
1519
- let a = U(), { linkSafety: o } = C($), [s, c] = D(!1), l = n === "streamdown:incomplete-link", u = S(async (e) => {
1515
+ }), (e, t) => E(e, t));
1516
+ No.displayName = "MarkdownStrong";
1517
+ var Lo = memo(({ children: e, className: t, href: n, node: r, ...i }) => {
1518
+ let a = y(), { linkSafety: o } = useContext(R), [s, c] = useState(!1), l = n === "streamdown:incomplete-link", u = useCallback(async (e) => {
1520
1519
  if (!(!(o != null && o.enabled && n) || l)) {
1521
1520
  if (e.preventDefault(), o.onLinkCheck && await o.onLinkCheck(n)) {
1522
1521
  window.open(n, "_blank", "noreferrer");
@@ -1528,9 +1527,9 @@ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
1528
1527
  o,
1529
1528
  n,
1530
1529
  l
1531
- ]), d = S(() => {
1530
+ ]), d = useCallback(() => {
1532
1531
  n && window.open(n, "_blank", "noreferrer");
1533
- }, [n]), f = S(() => {
1532
+ }, [n]), f = useCallback(() => {
1534
1533
  c(!1);
1535
1534
  }, []), p = {
1536
1535
  url: n ?? "",
@@ -1538,14 +1537,14 @@ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
1538
1537
  onClose: f,
1539
1538
  onConfirm: d
1540
1539
  };
1541
- return o != null && o.enabled && n ? A(O, { children: [k("button", {
1540
+ return o != null && o.enabled && n ? jsxs(Fragment$1, { children: [jsx("button", {
1542
1541
  className: a("wrap-anywhere appearance-none text-left font-medium text-primary underline", t),
1543
1542
  "data-incomplete": l,
1544
1543
  "data-streamdown": "link",
1545
1544
  onClick: u,
1546
1545
  type: "button",
1547
1546
  children: e
1548
- }), o.renderModal ? o.renderModal(p) : k(Pe, { ...p })] }) : k("a", {
1547
+ }), o.renderModal ? o.renderModal(p) : jsx(so, { ...p })] }) : jsx("a", {
1549
1548
  className: a("wrap-anywhere font-medium text-primary underline", t),
1550
1549
  "data-incomplete": l,
1551
1550
  "data-streamdown": "link",
@@ -1555,127 +1554,127 @@ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
1555
1554
  ...i,
1556
1555
  children: e
1557
1556
  });
1558
- }, (e, t) => Q(e, t) && e.href === t.href);
1559
- ft.displayName = "MarkdownA";
1560
- var pt = x(({ children: e, className: t, node: n, ...r }) => k("h1", {
1561
- className: U()("mt-6 mb-2 font-semibold text-3xl", t),
1557
+ }, (e, t) => E(e, t) && e.href === t.href);
1558
+ Lo.displayName = "MarkdownA";
1559
+ var Ro = memo(({ children: e, className: t, node: n, ...r }) => jsx("h1", {
1560
+ className: y()("mt-6 mb-2 font-semibold text-3xl", t),
1562
1561
  "data-streamdown": "heading-1",
1563
1562
  ...r,
1564
1563
  children: e
1565
- }), (e, t) => Q(e, t));
1566
- pt.displayName = "MarkdownH1";
1567
- var mt = x(({ children: e, className: t, node: n, ...r }) => k("h2", {
1568
- className: U()("mt-6 mb-2 font-semibold text-2xl", t),
1564
+ }), (e, t) => E(e, t));
1565
+ Ro.displayName = "MarkdownH1";
1566
+ var So = memo(({ children: e, className: t, node: n, ...r }) => jsx("h2", {
1567
+ className: y()("mt-6 mb-2 font-semibold text-2xl", t),
1569
1568
  "data-streamdown": "heading-2",
1570
1569
  ...r,
1571
1570
  children: e
1572
- }), (e, t) => Q(e, t));
1573
- mt.displayName = "MarkdownH2";
1574
- var ht = x(({ children: e, className: t, node: n, ...r }) => k("h3", {
1575
- className: U()("mt-6 mb-2 font-semibold text-xl", t),
1571
+ }), (e, t) => E(e, t));
1572
+ So.displayName = "MarkdownH2";
1573
+ var Eo = memo(({ children: e, className: t, node: n, ...r }) => jsx("h3", {
1574
+ className: y()("mt-6 mb-2 font-semibold text-xl", t),
1576
1575
  "data-streamdown": "heading-3",
1577
1576
  ...r,
1578
1577
  children: e
1579
- }), (e, t) => Q(e, t));
1580
- ht.displayName = "MarkdownH3";
1581
- var gt = x(({ children: e, className: t, node: n, ...r }) => k("h4", {
1582
- className: U()("mt-6 mb-2 font-semibold text-lg", t),
1578
+ }), (e, t) => E(e, t));
1579
+ Eo.displayName = "MarkdownH3";
1580
+ var Ho = memo(({ children: e, className: t, node: n, ...r }) => jsx("h4", {
1581
+ className: y()("mt-6 mb-2 font-semibold text-lg", t),
1583
1582
  "data-streamdown": "heading-4",
1584
1583
  ...r,
1585
1584
  children: e
1586
- }), (e, t) => Q(e, t));
1587
- gt.displayName = "MarkdownH4";
1588
- var _t = x(({ children: e, className: t, node: n, ...r }) => k("h5", {
1589
- className: U()("mt-6 mb-2 font-semibold text-base", t),
1585
+ }), (e, t) => E(e, t));
1586
+ Ho.displayName = "MarkdownH4";
1587
+ var Do = memo(({ children: e, className: t, node: n, ...r }) => jsx("h5", {
1588
+ className: y()("mt-6 mb-2 font-semibold text-base", t),
1590
1589
  "data-streamdown": "heading-5",
1591
1590
  ...r,
1592
1591
  children: e
1593
- }), (e, t) => Q(e, t));
1594
- _t.displayName = "MarkdownH5";
1595
- var vt = x(({ children: e, className: t, node: n, ...r }) => k("h6", {
1596
- className: U()("mt-6 mb-2 font-semibold text-sm", t),
1592
+ }), (e, t) => E(e, t));
1593
+ Do.displayName = "MarkdownH5";
1594
+ var Bo = memo(({ children: e, className: t, node: n, ...r }) => jsx("h6", {
1595
+ className: y()("mt-6 mb-2 font-semibold text-sm", t),
1597
1596
  "data-streamdown": "heading-6",
1598
1597
  ...r,
1599
1598
  children: e
1600
- }), (e, t) => Q(e, t));
1601
- vt.displayName = "MarkdownH6";
1602
- var yt = x(({ children: e, className: t, node: n, ...r }) => {
1603
- let { controls: i } = C($);
1604
- return k(Ze, {
1599
+ }), (e, t) => E(e, t));
1600
+ Bo.displayName = "MarkdownH6";
1601
+ var Ao = memo(({ children: e, className: t, node: n, ...r }) => {
1602
+ let { controls: i } = useContext(R);
1603
+ return jsx(vo, {
1605
1604
  className: t,
1606
- showControls: rt(i, "table"),
1607
- showCopy: it(i, "copy"),
1608
- showDownload: it(i, "download"),
1609
- showFullscreen: it(i, "fullscreen"),
1605
+ showControls: ft(i, "table"),
1606
+ showCopy: pt(i, "copy"),
1607
+ showDownload: pt(i, "download"),
1608
+ showFullscreen: pt(i, "fullscreen"),
1610
1609
  ...r,
1611
1610
  children: e
1612
1611
  });
1613
- }, (e, t) => Q(e, t));
1614
- yt.displayName = "MarkdownTable";
1615
- var bt = x(({ children: e, className: t, node: n, ...r }) => k("thead", {
1616
- className: U()("bg-muted/80", t),
1612
+ }, (e, t) => E(e, t));
1613
+ Ao.displayName = "MarkdownTable";
1614
+ var Oo = memo(({ children: e, className: t, node: n, ...r }) => jsx("thead", {
1615
+ className: y()("bg-muted/80", t),
1617
1616
  "data-streamdown": "table-header",
1618
1617
  ...r,
1619
1618
  children: e
1620
- }), (e, t) => Q(e, t));
1621
- bt.displayName = "MarkdownThead";
1622
- var xt = x(({ children: e, className: t, node: n, ...r }) => k("tbody", {
1623
- className: U()("divide-y divide-border", t),
1619
+ }), (e, t) => E(e, t));
1620
+ Oo.displayName = "MarkdownThead";
1621
+ var Vo = memo(({ children: e, className: t, node: n, ...r }) => jsx("tbody", {
1622
+ className: y()("divide-y divide-border", t),
1624
1623
  "data-streamdown": "table-body",
1625
1624
  ...r,
1626
1625
  children: e
1627
- }), (e, t) => Q(e, t));
1628
- xt.displayName = "MarkdownTbody";
1629
- var St = x(({ children: e, className: t, node: n, ...r }) => k("tr", {
1630
- className: U()("border-border", t),
1626
+ }), (e, t) => E(e, t));
1627
+ Vo.displayName = "MarkdownTbody";
1628
+ var jo = memo(({ children: e, className: t, node: n, ...r }) => jsx("tr", {
1629
+ className: y()("border-border", t),
1631
1630
  "data-streamdown": "table-row",
1632
1631
  ...r,
1633
1632
  children: e
1634
- }), (e, t) => Q(e, t));
1635
- St.displayName = "MarkdownTr";
1636
- var Ct = x(({ children: e, className: t, node: n, ...r }) => k("th", {
1637
- className: U()("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm", t),
1633
+ }), (e, t) => E(e, t));
1634
+ jo.displayName = "MarkdownTr";
1635
+ var Fo = memo(({ children: e, className: t, node: n, ...r }) => jsx("th", {
1636
+ className: y()("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm", t),
1638
1637
  "data-streamdown": "table-header-cell",
1639
1638
  ...r,
1640
1639
  children: e
1641
- }), (e, t) => Q(e, t));
1642
- Ct.displayName = "MarkdownTh";
1643
- var wt = x(({ children: e, className: t, node: n, ...r }) => k("td", {
1644
- className: U()("px-4 py-2 text-sm", t),
1640
+ }), (e, t) => E(e, t));
1641
+ Fo.displayName = "MarkdownTh";
1642
+ var zo = memo(({ children: e, className: t, node: n, ...r }) => jsx("td", {
1643
+ className: y()("px-4 py-2 text-sm", t),
1645
1644
  "data-streamdown": "table-cell",
1646
1645
  ...r,
1647
1646
  children: e
1648
- }), (e, t) => Q(e, t));
1649
- wt.displayName = "MarkdownTd";
1650
- var Tt = x(({ children: e, className: t, node: n, ...r }) => k("blockquote", {
1651
- className: U()("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic", t),
1647
+ }), (e, t) => E(e, t));
1648
+ zo.displayName = "MarkdownTd";
1649
+ var _o = memo(({ children: e, className: t, node: n, ...r }) => jsx("blockquote", {
1650
+ className: y()("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic", t),
1652
1651
  "data-streamdown": "blockquote",
1653
1652
  ...r,
1654
1653
  children: e
1655
- }), (e, t) => Q(e, t));
1656
- Tt.displayName = "MarkdownBlockquote";
1657
- var Et = x(({ children: e, className: t, node: n, ...r }) => k("sup", {
1658
- className: U()("text-sm", t),
1654
+ }), (e, t) => E(e, t));
1655
+ _o.displayName = "MarkdownBlockquote";
1656
+ var qo = memo(({ children: e, className: t, node: n, ...r }) => jsx("sup", {
1657
+ className: y()("text-sm", t),
1659
1658
  "data-streamdown": "superscript",
1660
1659
  ...r,
1661
1660
  children: e
1662
- }), (e, t) => Q(e, t));
1663
- Et.displayName = "MarkdownSup";
1664
- var Dt = x(({ children: e, className: t, node: n, ...r }) => k("sub", {
1665
- className: U()("text-sm", t),
1661
+ }), (e, t) => E(e, t));
1662
+ qo.displayName = "MarkdownSup";
1663
+ var $o = memo(({ children: e, className: t, node: n, ...r }) => jsx("sub", {
1664
+ className: y()("text-sm", t),
1666
1665
  "data-streamdown": "subscript",
1667
1666
  ...r,
1668
1667
  children: e
1669
- }), (e, t) => Q(e, t));
1670
- Dt.displayName = "MarkdownSub";
1671
- var Ot = x(({ children: e, className: t, node: n, ...r }) => {
1668
+ }), (e, t) => E(e, t));
1669
+ $o.displayName = "MarkdownSub";
1670
+ var Wo = memo(({ children: e, className: t, node: n, ...r }) => {
1672
1671
  if ("data-footnotes" in r) {
1673
1672
  let n = (e) => {
1674
- if (!y(e)) return !1;
1673
+ if (!isValidElement(e)) return !1;
1675
1674
  let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children], n = !1, r = !1;
1676
1675
  for (let e of t) if (e) {
1677
1676
  if (typeof e == "string") e.trim() !== "" && (n = !0);
1678
- else if (y(e)) if (e.props?.["data-footnote-backref"] !== void 0) r = !0;
1677
+ else if (isValidElement(e)) if (e.props?.["data-footnote-backref"] !== void 0) r = !0;
1679
1678
  else {
1680
1679
  let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children];
1681
1680
  for (let e of t) {
@@ -1683,7 +1682,7 @@ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
1683
1682
  n = !0;
1684
1683
  break;
1685
1684
  }
1686
- if (y(e) && e.props?.["data-footnote-backref"] === void 0) {
1685
+ if (isValidElement(e) && e.props?.["data-footnote-backref"] === void 0) {
1687
1686
  n = !0;
1688
1687
  break;
1689
1688
  }
@@ -1692,8 +1691,8 @@ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
1692
1691
  }
1693
1692
  return r && !n;
1694
1693
  }, i = Array.isArray(e) ? e.map((e) => {
1695
- if (!y(e)) return e;
1696
- if (e.type === st) {
1694
+ if (!isValidElement(e)) return e;
1695
+ if (e.type === bt) {
1697
1696
  let t = (Array.isArray(e.props.children) ? e.props.children : [e.props.children]).filter((e) => !n(e));
1698
1697
  return t.length === 0 ? null : {
1699
1698
  ...e,
@@ -1705,34 +1704,34 @@ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
1705
1704
  }
1706
1705
  return e;
1707
1706
  }) : e;
1708
- return (Array.isArray(i) ? i.some((e) => e !== null) : i !== null) ? k("section", {
1707
+ return (Array.isArray(i) ? i.some((e) => e !== null) : i !== null) ? jsx("section", {
1709
1708
  className: t,
1710
1709
  ...r,
1711
1710
  children: i
1712
1711
  }) : null;
1713
1712
  }
1714
- return k("section", {
1713
+ return jsx("section", {
1715
1714
  className: t,
1716
1715
  ...r,
1717
1716
  children: e
1718
1717
  });
1719
- }, (e, t) => Q(e, t));
1720
- Ot.displayName = "MarkdownSection";
1721
- var kt = x(({ node: e, className: t, children: n, ...r }) => {
1722
- let i = U(), a = !("data-block" in r), { mermaid: o, controls: s, lineNumbers: c } = C($), l = Re(), u = de(), d = (t?.match(tt))?.at(1) ?? "", f = ze(d);
1723
- if (a) return k("code", {
1718
+ }, (e, t) => E(e, t));
1719
+ Wo.displayName = "MarkdownSection";
1720
+ var Zo = memo(({ node: e, className: t, children: n, ...r }) => {
1721
+ let i = y(), a = !("data-block" in r), { mermaid: o, controls: s, lineNumbers: c } = useContext(R), l = de(), u = tt(), d = (t?.match(ns))?.at(1) ?? "", f = ao(d);
1722
+ if (a) return jsx("code", {
1724
1723
  className: i("rounded bg-muted px-1.5 py-0.5 font-mono text-sm", t),
1725
1724
  "data-streamdown": "inline-code",
1726
1725
  ...r,
1727
1726
  children: n
1728
1727
  });
1729
- let p = e?.properties?.metastring, m = p?.match(Qe), g = m ? Number.parseInt(m[1], 10) : void 0, _ = g !== void 0 && g >= 1 ? g : void 0, v = !(p && $e.test(p)) && c !== !1, b = "";
1730
- if (y(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? b = n.props.children : typeof n == "string" && (b = n), f) {
1728
+ let p = e?.properties?.metastring, m = p?.match(es), g = m ? Number.parseInt(m[1], 10) : void 0, _ = g !== void 0 && g >= 1 ? g : void 0, v = !(p && ts.test(p)) && c !== !1, S = "";
1729
+ if (isValidElement(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? S = n.props.children : typeof n == "string" && (S = n), f) {
1731
1730
  let e = f.component;
1732
- return k(h, {
1733
- fallback: k(ke, {}),
1734
- children: k(e, {
1735
- code: b,
1731
+ return jsx(Suspense, {
1732
+ fallback: jsx(Oe, {}),
1733
+ children: jsx(e, {
1734
+ code: S,
1736
1735
  isIncomplete: u,
1737
1736
  language: d,
1738
1737
  meta: p
@@ -1740,42 +1739,42 @@ var kt = x(({ node: e, className: t, children: n, ...r }) => {
1740
1739
  });
1741
1740
  }
1742
1741
  if (d === "mermaid" && l) {
1743
- let e = rt(s, "mermaid"), n = ot(s, "download"), r = ot(s, "copy"), a = ot(s, "fullscreen"), c = ot(s, "panZoom"), l = e && (n || r || a);
1744
- return k(h, {
1745
- fallback: k(ke, {}),
1746
- children: A("div", {
1742
+ let e = ft(s, "mermaid"), n = Fe(s, "download"), r = Fe(s, "copy"), a = Fe(s, "fullscreen"), c = Fe(s, "panZoom"), l = e && (n || r || a);
1743
+ return jsx(Suspense, {
1744
+ fallback: jsx(Oe, {}),
1745
+ children: jsxs("div", {
1747
1746
  className: i("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t),
1748
1747
  "data-streamdown": "mermaid-block",
1749
1748
  children: [
1750
- k("div", {
1749
+ jsx("div", {
1751
1750
  className: i("flex h-8 items-center text-muted-foreground text-xs"),
1752
- children: k("span", {
1751
+ children: jsx("span", {
1753
1752
  className: i("ml-1 font-mono lowercase"),
1754
1753
  children: "mermaid"
1755
1754
  })
1756
1755
  }),
1757
- l ? k("div", {
1756
+ l ? jsx("div", {
1758
1757
  className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
1759
- children: A("div", {
1758
+ children: jsxs("div", {
1760
1759
  className: i("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
1761
1760
  "data-streamdown": "mermaid-block-actions",
1762
1761
  children: [
1763
- n ? k(Ve, {
1764
- chart: b,
1762
+ n ? jsx(co, {
1763
+ chart: S,
1765
1764
  config: o?.config
1766
1765
  }) : null,
1767
- r ? k(Ee, { code: b }) : null,
1768
- a ? k(He, {
1769
- chart: b,
1766
+ r ? jsx(Ae, { code: S }) : null,
1767
+ a ? jsx(fo, {
1768
+ chart: S,
1770
1769
  config: o?.config
1771
1770
  }) : null
1772
1771
  ]
1773
1772
  })
1774
1773
  }) : null,
1775
- k("div", {
1774
+ jsx("div", {
1776
1775
  className: i("rounded-md border border-border bg-background"),
1777
- children: k(et, {
1778
- chart: b,
1776
+ children: jsx(os, {
1777
+ chart: S,
1779
1778
  config: o?.config,
1780
1779
  showControls: c
1781
1780
  })
@@ -1784,75 +1783,75 @@ var kt = x(({ node: e, className: t, children: n, ...r }) => {
1784
1783
  })
1785
1784
  });
1786
1785
  }
1787
- let x = rt(s, "code"), S = at(s, "download"), w = at(s, "copy");
1788
- return k(be, {
1786
+ let C = ft(s, "code"), w = To(s, "download"), ai = To(s, "copy");
1787
+ return jsx(st, {
1789
1788
  className: t,
1790
- code: b,
1789
+ code: S,
1791
1790
  isIncomplete: u,
1792
1791
  language: d,
1793
1792
  lineNumbers: v,
1794
1793
  startLine: _,
1795
- children: x ? A(O, { children: [S ? k(Oe, {
1796
- code: b,
1794
+ children: C ? jsxs(Fragment$1, { children: [w ? jsx(it, {
1795
+ code: S,
1797
1796
  language: d
1798
- }) : null, w ? k(Ee, {}) : null] }) : null
1797
+ }) : null, ai ? jsx(Ae, {}) : null] }) : null
1799
1798
  });
1800
- }, (e, t) => e.className === t.className && nt(e.node, t.node));
1801
- kt.displayName = "MarkdownCode";
1802
- var At = x(je, (e, t) => e.className === t.className && nt(e.node, t.node));
1803
- At.displayName = "MarkdownImg";
1804
- var jt = x(({ children: e, node: t, ...n }) => {
1799
+ }, (e, t) => e.className === t.className && qe(e.node, t.node));
1800
+ Zo.displayName = "MarkdownCode";
1801
+ var Xo = memo(oo, (e, t) => e.className === t.className && qe(e.node, t.node));
1802
+ Xo.displayName = "MarkdownImg";
1803
+ var Jo = memo(({ children: e, node: t, ...n }) => {
1805
1804
  let r = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
1806
- if (r.length === 1 && y(r[0])) {
1805
+ if (r.length === 1 && isValidElement(r[0])) {
1807
1806
  let t = r[0].props.node?.tagName;
1808
- if (t === "img" || t === "code" && "data-block" in r[0].props) return k(O, { children: e });
1807
+ if (t === "img" || t === "code" && "data-block" in r[0].props) return jsx(Fragment$1, { children: e });
1809
1808
  }
1810
- return k("p", {
1809
+ return jsx("p", {
1811
1810
  ...n,
1812
1811
  children: e
1813
1812
  });
1814
- }, (e, t) => Q(e, t));
1815
- jt.displayName = "MarkdownParagraph";
1816
- var Mt = {
1817
- ol: st,
1818
- li: ct,
1819
- ul: lt,
1820
- hr: ut,
1821
- strong: dt,
1822
- a: ft,
1823
- h1: pt,
1824
- h2: mt,
1825
- h3: ht,
1826
- h4: gt,
1827
- h5: _t,
1828
- h6: vt,
1829
- table: yt,
1830
- thead: bt,
1831
- tbody: xt,
1832
- tr: St,
1833
- th: Ct,
1834
- td: wt,
1835
- blockquote: Tt,
1836
- code: kt,
1837
- img: At,
1838
- pre: ({ children: e }) => y(e) ? g(e, { "data-block": "true" }) : e,
1839
- sup: Et,
1840
- sub: Dt,
1841
- p: jt,
1842
- section: Ot
1843
- }, Nt = /[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/, Pt = /\p{L}/u;
1844
- function Ft(e) {
1813
+ }, (e, t) => E(e, t));
1814
+ Jo.displayName = "MarkdownParagraph";
1815
+ var Ko = {
1816
+ ol: bt,
1817
+ li: Po,
1818
+ ul: Mo,
1819
+ hr: Io,
1820
+ strong: No,
1821
+ a: Lo,
1822
+ h1: Ro,
1823
+ h2: So,
1824
+ h3: Eo,
1825
+ h4: Ho,
1826
+ h5: Do,
1827
+ h6: Bo,
1828
+ table: Ao,
1829
+ thead: Oo,
1830
+ tbody: Vo,
1831
+ tr: jo,
1832
+ th: Fo,
1833
+ td: zo,
1834
+ blockquote: _o,
1835
+ code: Zo,
1836
+ img: Xo,
1837
+ pre: ({ children: e }) => isValidElement(e) ? cloneElement(e, { "data-block": "true" }) : e,
1838
+ sup: qo,
1839
+ sub: $o,
1840
+ p: Jo,
1841
+ section: Wo
1842
+ }, as = /[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/, is = /\p{L}/u;
1843
+ function $e$1(e) {
1845
1844
  let t = e.replace(/^#{1,6}\s+/gm, "").replace(/(\*{1,3}|_{1,3})/g, "").replace(/`[^`]*`/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/^[\s>*\-+\d.]+/gm, "");
1846
1845
  for (let e of t) {
1847
- if (Nt.test(e)) return "rtl";
1848
- if (Pt.test(e)) return "ltr";
1846
+ if (as.test(e)) return "rtl";
1847
+ if (is.test(e)) return "ltr";
1849
1848
  }
1850
1849
  return "ltr";
1851
1850
  }
1852
- var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/, Rt = (e) => {
1851
+ var ls = /^[ \t]{0,3}(`{3,}|~{3,})/, cs = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/, ht = (e) => {
1853
1852
  let t = e.split("\n"), n = null, r = 0;
1854
1853
  for (let e of t) {
1855
- let t = It.exec(e);
1854
+ let t = ls.exec(e);
1856
1855
  if (n === null) {
1857
1856
  if (t) {
1858
1857
  let e = t[1];
@@ -1864,21 +1863,21 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
1864
1863
  }
1865
1864
  }
1866
1865
  return n !== null;
1867
- }, zt = (e) => {
1866
+ }, Uo = (e) => {
1868
1867
  let t = e.split("\n");
1869
1868
  for (let e of t) {
1870
1869
  let t = e.trim();
1871
- if (t.length > 0 && t.includes("|") && Lt.test(t)) return !0;
1870
+ if (t.length > 0 && t.includes("|") && cs.test(t)) return !0;
1872
1871
  }
1873
1872
  return !1;
1874
- }, Bt = () => (e) => {
1875
- n(e, "html", (e, t, n) => {
1873
+ }, Go = () => (e) => {
1874
+ visit(e, "html", (e, t, n) => {
1876
1875
  !n || typeof t != "number" || (n.children[t] = {
1877
1876
  type: "text",
1878
1877
  value: e.value
1879
1878
  });
1880
1879
  });
1881
- }, Vt = [], Ht = { allowDangerousHtml: !0 }, Ut = /* @__PURE__ */ new WeakMap(), Wt = new class {
1880
+ }, Qo = [], en = { allowDangerousHtml: !0 }, We = /* @__PURE__ */ new WeakMap(), tn = new class {
1882
1881
  constructor() {
1883
1882
  this.cache = /* @__PURE__ */ new Map(), this.keyCache = /* @__PURE__ */ new WeakMap(), this.maxSize = 100;
1884
1883
  }
@@ -1898,13 +1897,13 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
1898
1897
  if (n > 0 && (t += ","), Array.isArray(r)) {
1899
1898
  let [e, n] = r;
1900
1899
  if (typeof e == "function") {
1901
- let n = Ut.get(e);
1902
- n || (n = e.name, Ut.set(e, n)), t += n;
1900
+ let n = We.get(e);
1901
+ n || (n = e.name, We.set(e, n)), t += n;
1903
1902
  } else t += String(e);
1904
1903
  t += ":", t += JSON.stringify(n);
1905
1904
  } else if (typeof r == "function") {
1906
- let e = Ut.get(r);
1907
- e || (e = r.name, Ut.set(r, e)), t += e;
1905
+ let e = We.get(r);
1906
+ e || (e = r.name, We.set(r, e)), t += e;
1908
1907
  } else t += String(r);
1909
1908
  }
1910
1909
  return t;
@@ -1926,52 +1925,52 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
1926
1925
  clear() {
1927
1926
  this.cache.clear();
1928
1927
  }
1929
- }(), Gt = (e) => {
1930
- let t = Kt(e), n = e.children || "";
1931
- return $t(t.runSync(t.parse(n), n), e);
1932
- }, Kt = (e) => {
1933
- let t = Wt.get(e);
1928
+ }(), Ct = (e) => {
1929
+ let t = ws(e), n = e.children || "";
1930
+ return Ps(t.runSync(t.parse(n), n), e);
1931
+ }, ws = (e) => {
1932
+ let t = tn.get(e);
1934
1933
  if (t) return t;
1935
- let n = Jt(e);
1936
- return Wt.set(e, n), n;
1937
- }, qt = (e) => e.some((e) => Array.isArray(e) ? e[0] === a : e === a), Jt = (e) => {
1938
- let t = e.rehypePlugins || Vt, n = e.remarkPlugins || Vt, r = qt(t) ? n : [...n, Bt], i = e.remarkRehypeOptions ? {
1939
- ...Ht,
1934
+ let n = ks(e);
1935
+ return tn.set(e, n), n;
1936
+ }, Cs = (e) => e.some((e) => Array.isArray(e) ? e[0] === rehypeRaw : e === rehypeRaw), ks = (e) => {
1937
+ let t = e.rehypePlugins || Qo, n = e.remarkPlugins || Qo, r = Cs(t) ? n : [...n, Go], i = e.remarkRehypeOptions ? {
1938
+ ...en,
1940
1939
  ...e.remarkRehypeOptions
1941
- } : Ht;
1942
- return p().use(d).use(r).use(f, i).use(t);
1943
- }, Yt = (e) => e, Xt = (e, t, n, r) => {
1940
+ } : en;
1941
+ return unified().use(remarkParse).use(r).use(remarkRehype, i).use(t);
1942
+ }, on = (e) => e, vs = (e, t, n, r) => {
1944
1943
  n ? e.children.splice(t, 1) : e.children[t] = {
1945
1944
  type: "text",
1946
1945
  value: r
1947
1946
  };
1948
- }, Zt = (e, t) => {
1949
- for (let n in u) if (Object.hasOwn(u, n) && Object.hasOwn(e.properties, n)) {
1950
- let r = e.properties[n], i = u[n];
1947
+ }, xs = (e, t) => {
1948
+ for (let n in urlAttributes) if (Object.hasOwn(urlAttributes, n) && Object.hasOwn(e.properties, n)) {
1949
+ let r = e.properties[n], i = urlAttributes[n];
1951
1950
  (i === null || i.includes(e.tagName)) && (e.properties[n] = t(String(r || ""), n, e) ?? void 0);
1952
1951
  }
1953
- }, Qt = (e, t, n, r, i, a) => {
1952
+ }, Ts = (e, t, n, r, i, a) => {
1954
1953
  let o = !1;
1955
1954
  return r ? o = !r.includes(e.tagName) : i && (o = i.includes(e.tagName)), !o && a && typeof t == "number" && (o = !a(e, t, n)), o;
1956
- }, $t = (e, t) => {
1955
+ }, Ps = (e, t) => {
1957
1956
  let { allowElement: r, allowedElements: i, disallowedElements: a, skipHtml: o, unwrapDisallowed: s, urlTransform: c } = t;
1958
1957
  if (r || i || a || o || c) {
1959
- let t = c || Yt;
1960
- n(e, (e, n, c) => {
1961
- if (e.type === "raw" && c && typeof n == "number") return Xt(c, n, o, e.value), n;
1962
- if (e.type === "element" && (Zt(e, t), Qt(e, n, c, i, a, r) && c && typeof n == "number")) return s && e.children ? c.children.splice(n, 1, ...e.children) : c.children.splice(n, 1), n;
1958
+ let t = c || on;
1959
+ visit(e, (e, n, c) => {
1960
+ if (e.type === "raw" && c && typeof n == "number") return vs(c, n, o, e.value), n;
1961
+ if (e.type === "element" && (xs(e, t), Ts(e, n, c, i, a, r) && c && typeof n == "number")) return s && e.children ? c.children.splice(n, 1, ...e.children) : c.children.splice(n, 1), n;
1963
1962
  });
1964
1963
  }
1965
- return l(e, {
1966
- Fragment: O,
1964
+ return toJsxRuntime(e, {
1965
+ Fragment: Fragment$1,
1967
1966
  components: t.components,
1968
1967
  ignoreInvalidStyle: !0,
1969
- jsx: k,
1970
- jsxs: A,
1968
+ jsx,
1969
+ jsxs,
1971
1970
  passKeys: !0,
1972
1971
  passNode: !0
1973
1972
  });
1974
- }, en = /\[\^[\w-]{1,200}\](?!:)/, tn = /\[\^[\w-]{1,200}\]:/, nn = /<(\w+)[\s>]/, rn = new Set([
1973
+ }, Is = /\[\^[\w-]{1,200}\](?!:)/, Ns = /\[\^[\w-]{1,200}\]:/, Ls = /<(\w+)[\s>]/, Rs = new Set([
1975
1974
  "area",
1976
1975
  "base",
1977
1976
  "br",
@@ -1986,53 +1985,53 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
1986
1985
  "source",
1987
1986
  "track",
1988
1987
  "wbr"
1989
- ]), an = /* @__PURE__ */ new Map(), on = /* @__PURE__ */ new Map(), sn = (e) => {
1990
- let t = e.toLowerCase(), n = an.get(t);
1988
+ ]), nn = /* @__PURE__ */ new Map(), rn = /* @__PURE__ */ new Map(), Ss = (e) => {
1989
+ let t = e.toLowerCase(), n = nn.get(t);
1991
1990
  if (n) return n;
1992
1991
  let r = RegExp(`<${t}(?=[\\s>/])[^>]*>`, "gi");
1993
- return an.set(t, r), r;
1994
- }, cn = (e) => {
1995
- let t = e.toLowerCase(), n = on.get(t);
1992
+ return nn.set(t, r), r;
1993
+ }, Es = (e) => {
1994
+ let t = e.toLowerCase(), n = rn.get(t);
1996
1995
  if (n) return n;
1997
1996
  let r = RegExp(`</${t}(?=[\\s>])[^>]*>`, "gi");
1998
- return on.set(t, r), r;
1999
- }, ln = (e, t) => {
2000
- if (rn.has(t.toLowerCase())) return 0;
2001
- let n = e.match(sn(t));
1997
+ return rn.set(t, r), r;
1998
+ }, sn = (e, t) => {
1999
+ if (Rs.has(t.toLowerCase())) return 0;
2000
+ let n = e.match(Ss(t));
2002
2001
  if (!n) return 0;
2003
2002
  let r = 0;
2004
2003
  for (let e of n) e.trimEnd().endsWith("/>") || (r += 1);
2005
2004
  return r;
2006
- }, un = (e, t) => {
2007
- let n = e.match(cn(t));
2005
+ }, an = (e, t) => {
2006
+ let n = e.match(Es(t));
2008
2007
  return n ? n.length : 0;
2009
- }, dn = (e) => {
2008
+ }, Hs = (e) => {
2010
2009
  let t = 0;
2011
2010
  for (let n = 0; n < e.length - 1; n += 1) e[n] === "$" && e[n + 1] === "$" && (t += 1, n += 1);
2012
2011
  return t;
2013
- }, fn = (e) => {
2014
- let t = en.test(e), n = tn.test(e);
2012
+ }, kt = (e) => {
2013
+ let t = Is.test(e), n = Ns.test(e);
2015
2014
  if (t || n) return [e];
2016
- let r = m.lex(e, { gfm: !0 }), i = [], a = [], o = !1;
2015
+ let r = x.lex(e, { gfm: !0 }), i = [], a = [], o = !1;
2017
2016
  for (let e of r) {
2018
2017
  let t = e.raw, n = i.length;
2019
2018
  if (a.length > 0) {
2020
2019
  i[n - 1] += t;
2021
- let e = a.at(-1), r = ln(t, e), o = un(t, e);
2020
+ let e = a.at(-1), r = sn(t, e), o = an(t, e);
2022
2021
  for (let t = 0; t < r; t += 1) a.push(e);
2023
2022
  for (let t = 0; t < o; t += 1) a.length > 0 && a.at(-1) === e && a.pop();
2024
2023
  continue;
2025
2024
  }
2026
2025
  if (e.type === "html" && e.block) {
2027
- let e = t.match(nn);
2026
+ let e = t.match(Ls);
2028
2027
  if (e) {
2029
2028
  let n = e[1];
2030
- ln(t, n) > un(t, n) && a.push(n);
2029
+ sn(t, n) > an(t, n) && a.push(n);
2031
2030
  }
2032
2031
  }
2033
2032
  if (n > 0 && !o) {
2034
2033
  let e = i[n - 1];
2035
- if (dn(e) % 2 == 1) {
2034
+ if (Hs(e) % 2 == 1) {
2036
2035
  i[n - 1] = e + t;
2037
2036
  continue;
2038
2037
  }
@@ -2040,7 +2039,7 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
2040
2039
  i.push(t), e.type !== "space" && (o = e.type === "code");
2041
2040
  }
2042
2041
  return i;
2043
- }, pn = (e, t) => {
2042
+ }, ln = (e, t) => {
2044
2043
  if (!t.length) return e;
2045
2044
  let n = e;
2046
2045
  for (let e of t) {
@@ -2054,79 +2053,79 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
2054
2053
  });
2055
2054
  }
2056
2055
  return n;
2057
- }, mn = /([\\`*_~[\]|])/g, hn = (e) => e.replace(mn, "\\$1"), gn = (e, t) => {
2056
+ }, Ds = /([\\`*_~[\]|])/g, Bs = (e) => e.replace(Ds, "\\$1"), cn = (e, t) => {
2058
2057
  if (!t.length) return e;
2059
2058
  let n = e;
2060
2059
  for (let e of t) {
2061
2060
  let t = RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`, "gi");
2062
- n = n.replace(t, (e, t, n, r) => t + hn(n).replace(/\n\n/g, "&#10;&#10;") + r);
2061
+ n = n.replace(t, (e, t, n, r) => t + Bs(n).replace(/\n\n/g, "&#10;&#10;") + r);
2063
2062
  }
2064
2063
  return n;
2065
- }, _n = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(_n).join("") : "", vn = (e) => (t) => {
2064
+ }, dn = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(dn).join("") : "", mn = (e) => (t) => {
2066
2065
  if (!e || e.length === 0) return;
2067
2066
  let r = new Set(e.map((e) => e.toLowerCase()));
2068
- n(t, "element", (e) => {
2067
+ visit(t, "element", (e) => {
2069
2068
  if (r.has(e.tagName.toLowerCase())) {
2070
- let t = _n(e);
2069
+ let t = dn(e);
2071
2070
  e.children = t ? [{
2072
2071
  type: "text",
2073
2072
  value: t
2074
2073
  }] : [];
2075
2074
  }
2076
2075
  });
2077
- }, yn = () => (e) => {
2078
- n(e, "code", (e) => {
2076
+ }, un = () => (e) => {
2077
+ visit(e, "code", (e) => {
2079
2078
  e.meta && (e.data = e.data ?? {}, e.data.hProperties = {
2080
2079
  ...e.data.hProperties ?? {},
2081
2080
  metastring: e.meta
2082
2081
  });
2083
2082
  });
2084
- }, bn = /^[ \t]*<[\w!/?-]/, xn = /(^|\n)[ \t]{4,}(?=<[\w!/?-])/g, Sn = (e) => typeof e != "string" || e.length === 0 || !bn.test(e) ? e : e.replace(xn, "$1"), Cn = {
2085
- ...o,
2083
+ }, Zs = /^[ \t]*<[\w!/?-]/, Xs = /(^|\n)[ \t]{4,}(?=<[\w!/?-])/g, Js = (e) => typeof e != "string" || e.length === 0 || !Zs.test(e) ? e : e.replace(Xs, "$1"), Ze = {
2084
+ ...defaultSchema,
2086
2085
  protocols: {
2087
- ...o.protocols,
2088
- href: [...o.protocols?.href ?? [], "tel"]
2086
+ ...defaultSchema.protocols,
2087
+ href: [...defaultSchema.protocols?.href ?? [], "tel"]
2089
2088
  },
2090
2089
  attributes: {
2091
- ...o.attributes,
2092
- code: [...o.attributes?.code ?? [], "metastring"]
2090
+ ...defaultSchema.attributes,
2091
+ code: [...defaultSchema.attributes?.code ?? [], "metastring"]
2093
2092
  }
2094
- }, wn = {
2095
- raw: a,
2096
- sanitize: [s, Cn],
2097
- harden: [i, {
2093
+ }, xt = {
2094
+ raw: rehypeRaw,
2095
+ sanitize: [rehypeSanitize, Ze],
2096
+ harden: [harden, {
2098
2097
  allowedImagePrefixes: ["*"],
2099
2098
  allowedLinkPrefixes: ["*"],
2100
2099
  allowedProtocols: ["*"],
2101
2100
  defaultOrigin: void 0,
2102
2101
  allowDataImages: !0
2103
2102
  }]
2104
- }, Tn = {
2105
- gfm: [r, {}],
2106
- codeMeta: yn
2107
- }, En = Object.values(wn), Dn = Object.values(Tn), On = {
2103
+ }, Ks = {
2104
+ gfm: [remarkGfm, {}],
2105
+ codeMeta: un
2106
+ }, gn = Object.values(xt), Us = Object.values(Ks), Gs = {
2108
2107
  block: " ▋",
2109
2108
  circle: " ●"
2110
- }, kn = ["github-light", "github-dark"], An = { enabled: !0 }, $ = _({
2111
- shikiTheme: kn,
2109
+ }, vn = ["github-light", "github-dark"], xn = { enabled: !0 }, R = createContext({
2110
+ shikiTheme: vn,
2112
2111
  controls: !0,
2113
2112
  isAnimating: !1,
2114
2113
  lineNumbers: !0,
2115
2114
  mode: "streaming",
2116
2115
  mermaid: void 0,
2117
- linkSafety: An
2118
- }), jn = x(({ content: e, shouldParseIncompleteMarkdown: t, shouldNormalizeHtmlIndentation: n, index: r, isIncomplete: i, dir: a, animatePlugin: o, ...s }) => {
2116
+ linkSafety: xn
2117
+ }), Tn = memo(({ content: e, shouldParseIncompleteMarkdown: t, shouldNormalizeHtmlIndentation: n, index: r, isIncomplete: i, dir: a, animatePlugin: o, ...s }) => {
2119
2118
  if (o) {
2120
2119
  let e = o.getLastRenderCharCount();
2121
2120
  o.setPrevContentLength(e);
2122
2121
  }
2123
- let c = typeof e == "string" && n ? Sn(e) : e, l = k(Gt, {
2122
+ let c = typeof e == "string" && n ? Js(e) : e, l = jsx(Ct, {
2124
2123
  ...s,
2125
2124
  children: c
2126
2125
  });
2127
- return k(ue.Provider, {
2126
+ return jsx(et.Provider, {
2128
2127
  value: i,
2129
- children: a ? k("div", {
2128
+ children: a ? jsx("div", {
2130
2129
  dir: a,
2131
2130
  style: { display: "contents" },
2132
2131
  children: l
@@ -2140,160 +2139,160 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
2140
2139
  }
2141
2140
  return !(e.rehypePlugins !== t.rehypePlugins || e.remarkPlugins !== t.remarkPlugins);
2142
2141
  });
2143
- jn.displayName = "Block";
2144
- var Mn = x(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: o = En, remarkPlugins: l = Dn, className: u, shikiTheme: d = kn, mermaid: f, controls: p = !0, isAnimating: m = !1, animated: h, BlockComponent: g = jn, parseMarkdownIntoBlocksFn: _ = fn, caret: y, plugins: b, remend: x, linkSafety: S = An, lineNumbers: C = !0, allowedTags: O, literalTagContent: j, translations: M, icons: N, prefix: P, onAnimationStart: F, onAnimationEnd: ne, ...re }) => {
2145
- let ie = ee(), [ae, oe] = te(), I = T(() => pe(P), [P]), se = E(null), L = E(F), ce = E(ne);
2146
- L.current = F, ce.current = ne, w(() => {
2142
+ Tn.displayName = "Block";
2143
+ var Qs = memo(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: o = gn, remarkPlugins: l = Us, className: u, shikiTheme: d = vn, mermaid: f, controls: p = !0, isAnimating: m = !1, animated: h, BlockComponent: g = Tn, parseMarkdownIntoBlocksFn: _ = kt, caret: b, plugins: S, remend: C, linkSafety: w = xn, lineNumbers: T = !0, allowedTags: k, literalTagContent: A, translations: j, icons: M, prefix: N, onAnimationStart: P, onAnimationEnd: F, ...I }) => {
2144
+ let z = useId(), [ci, li] = useTransition(), B = useMemo(() => Dt(N), [N]), V = useRef(null), H = useRef(P), U = useRef(F);
2145
+ H.current = P, U.current = F, useEffect(() => {
2147
2146
  var e, n, r;
2148
2147
  if (t === "static") return;
2149
- let i = se.current;
2150
- if (se.current = m, i === null) {
2151
- m && ((e = L.current) == null || e.call(L));
2148
+ let i = V.current;
2149
+ if (V.current = m, i === null) {
2150
+ m && ((e = H.current) == null || e.call(H));
2152
2151
  return;
2153
2152
  }
2154
- m && !i ? (n = L.current) == null || n.call(L) : !m && i && ((r = ce.current) == null || r.call(ce));
2153
+ m && !i ? (n = H.current) == null || n.call(H) : !m && i && ((r = U.current) == null || r.call(U));
2155
2154
  }, [m, t]);
2156
- let R = T(() => O ? Object.keys(O) : [], [O]), z = T(() => {
2155
+ let G = useMemo(() => k ? Object.keys(k) : [], [k]), K = useMemo(() => {
2157
2156
  if (typeof e != "string") return "";
2158
- let n = t === "streaming" && r ? c(e, x) : e;
2159
- return j && j.length > 0 && (n = gn(n, j)), R.length > 0 && (n = pn(n, R)), n;
2157
+ let n = t === "streaming" && r ? $e(e, C) : e;
2158
+ return A && A.length > 0 && (n = cn(n, A)), G.length > 0 && (n = ln(n, G)), n;
2160
2159
  }, [
2161
2160
  e,
2162
2161
  t,
2163
2162
  r,
2164
- x,
2165
- R,
2166
- j
2167
- ]), B = T(() => _(z), [z, _]), [ue, de] = D(B);
2168
- w(() => {
2169
- t === "streaming" && !W ? oe(() => {
2170
- de(B);
2171
- }) : de(B);
2172
- }, [B, t]);
2173
- let V = t === "streaming" ? ue : B, fe = T(() => n === "auto" ? V.map(Ft) : void 0, [V, n]), H = T(() => V.map((e, t) => `${ie}-${t}`), [V.length, ie]), U = T(() => h === !0 ? "true" : h ? JSON.stringify(h) : "", [h]), W = T(() => U ? U === "true" ? le() : le(h) : null, [U]), he = T(() => ({
2174
- shikiTheme: (b?.code)?.getThemes() ?? d,
2163
+ C,
2164
+ G,
2165
+ A
2166
+ ]), q = useMemo(() => _(K), [K, _]), [ui, J] = useState(q);
2167
+ useEffect(() => {
2168
+ t === "streaming" && !Z ? li(() => {
2169
+ J(q);
2170
+ }) : J(q);
2171
+ }, [q, t]);
2172
+ let Y = t === "streaming" ? ui : q, di = useMemo(() => n === "auto" ? Y.map($e$1) : void 0, [Y, n]), fi = useMemo(() => Y.map((e, t) => `${z}-${t}`), [Y.length, z]), X = useMemo(() => h === !0 ? "true" : h ? JSON.stringify(h) : "", [h]), Z = useMemo(() => X ? X === "true" ? be() : be(h) : null, [X]), Q = useMemo(() => ({
2173
+ shikiTheme: (S?.code)?.getThemes() ?? d,
2175
2174
  controls: p,
2176
2175
  isAnimating: m,
2177
- lineNumbers: C,
2176
+ lineNumbers: T,
2178
2177
  mode: t,
2179
2178
  mermaid: f,
2180
- linkSafety: S
2179
+ linkSafety: w
2181
2180
  }), [
2182
2181
  d,
2183
2182
  p,
2184
2183
  m,
2185
- C,
2184
+ T,
2186
2185
  t,
2187
2186
  f,
2188
- S,
2189
- b?.code
2190
- ]), G = T(() => ({
2191
- ...we,
2192
- ...M
2193
- }), [T(() => M ? JSON.stringify(M) : "", [M])]), K = T(() => {
2187
+ w,
2188
+ S?.code
2189
+ ]), pi = useMemo(() => ({
2190
+ ...De,
2191
+ ...j
2192
+ }), [useMemo(() => j ? JSON.stringify(j) : "", [j])]), mi = useMemo(() => {
2194
2193
  let { inlineCode: e, ...t } = a ?? {}, n = {
2195
- ...Mt,
2194
+ ...Ko,
2196
2195
  ...t
2197
2196
  };
2198
2197
  if (e) {
2199
2198
  let t = n.code;
2200
- n.code = (n) => "data-block" in n ? t ? v(t, n) : null : v(e, n);
2199
+ n.code = (n) => "data-block" in n ? t ? createElement(t, n) : null : createElement(e, n);
2201
2200
  }
2202
2201
  return n;
2203
- }, [a]), ge = T(() => {
2202
+ }, [a]), hi = useMemo(() => {
2204
2203
  let e = [];
2205
- return b != null && b.cjk && (e = [...e, ...b.cjk.remarkPluginsBefore]), e = [...e, ...l], b != null && b.cjk && (e = [...e, ...b.cjk.remarkPluginsAfter]), b != null && b.math && (e = [...e, b.math.remarkPlugin]), e;
2204
+ return S != null && S.cjk && (e = [...e, ...S.cjk.remarkPluginsBefore]), e = [...e, ...l], S != null && S.cjk && (e = [...e, ...S.cjk.remarkPluginsAfter]), S != null && S.math && (e = [...e, S.math.remarkPlugin]), e;
2206
2205
  }, [
2207
2206
  l,
2208
- b?.math,
2209
- b?.cjk
2210
- ]), _e = T(() => {
2207
+ S?.math,
2208
+ S?.cjk
2209
+ ]), gi = useMemo(() => {
2211
2210
  let e = o;
2212
- if (O && Object.keys(O).length > 0 && o === En) {
2211
+ if (k && Object.keys(k).length > 0 && o === gn) {
2213
2212
  let t = {
2214
- ...Cn,
2215
- tagNames: [...Cn.tagNames ?? [], ...Object.keys(O)],
2213
+ ...Ze,
2214
+ tagNames: [...Ze.tagNames ?? [], ...Object.keys(k)],
2216
2215
  attributes: {
2217
- ...Cn.attributes,
2218
- ...O
2216
+ ...Ze.attributes,
2217
+ ...k
2219
2218
  }
2220
2219
  };
2221
2220
  e = [
2222
- wn.raw,
2223
- [s, t],
2224
- wn.harden
2221
+ xt.raw,
2222
+ [rehypeSanitize, t],
2223
+ xt.harden
2225
2224
  ];
2226
2225
  }
2227
- return j && j.length > 0 && (e = [...e, [vn, j]]), b != null && b.math && (e = [...e, b.math.rehypePlugin]), W && m && (e = [...e, W.rehypePlugin]), e;
2226
+ return A && A.length > 0 && (e = [...e, [mn, A]]), S != null && S.math && (e = [...e, S.math.rehypePlugin]), Z && m && (e = [...e, Z.rehypePlugin]), e;
2228
2227
  }, [
2229
2228
  o,
2230
- b?.math,
2231
- W,
2229
+ S?.math,
2230
+ Z,
2232
2231
  m,
2233
- O,
2234
- j
2235
- ]), q = T(() => {
2236
- if (!m || V.length === 0) return !1;
2237
- let e = V.at(-1);
2238
- return Rt(e) || zt(e);
2239
- }, [m, V]), ve = T(() => y && m && !q ? { "--streamdown-caret": `"${On[y]}"` } : void 0, [
2240
- y,
2232
+ k,
2233
+ A
2234
+ ]), $ = useMemo(() => {
2235
+ if (!m || Y.length === 0) return !1;
2236
+ let e = Y.at(-1);
2237
+ return ht(e) || Uo(e);
2238
+ }, [m, Y]), _i = useMemo(() => b && m && !$ ? { "--streamdown-caret": `"${Gs[b]}"` } : void 0, [
2239
+ b,
2241
2240
  m,
2242
- q
2241
+ $
2243
2242
  ]);
2244
- return t === "static" ? k(Te.Provider, {
2245
- value: G,
2246
- children: k(Fe.Provider, {
2247
- value: b ?? null,
2248
- children: k($.Provider, {
2249
- value: he,
2250
- children: k(Ce, {
2251
- icons: N,
2252
- children: k(me.Provider, {
2253
- value: I,
2254
- children: k("div", {
2255
- className: I("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", u),
2256
- dir: n === "auto" ? Ft(z) : n,
2257
- children: k(Gt, {
2258
- components: K,
2259
- rehypePlugins: _e,
2260
- remarkPlugins: ge,
2261
- ...re,
2262
- children: z
2243
+ return t === "static" ? jsx(Be.Provider, {
2244
+ value: pi,
2245
+ children: jsx(Ve.Provider, {
2246
+ value: S ?? null,
2247
+ children: jsx(R.Provider, {
2248
+ value: Q,
2249
+ children: jsx(at, {
2250
+ icons: M,
2251
+ children: jsx(Ee.Provider, {
2252
+ value: B,
2253
+ children: jsx("div", {
2254
+ className: B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", u),
2255
+ dir: n === "auto" ? $e$1(K) : n,
2256
+ children: jsx(Ct, {
2257
+ components: mi,
2258
+ rehypePlugins: gi,
2259
+ remarkPlugins: hi,
2260
+ ...I,
2261
+ children: K
2263
2262
  })
2264
2263
  })
2265
2264
  })
2266
2265
  })
2267
2266
  })
2268
2267
  })
2269
- }) : k(Te.Provider, {
2270
- value: G,
2271
- children: k(Fe.Provider, {
2272
- value: b ?? null,
2273
- children: k($.Provider, {
2274
- value: he,
2275
- children: k(Ce, {
2276
- icons: N,
2277
- children: k(me.Provider, {
2278
- value: I,
2279
- children: A("div", {
2280
- className: I("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", y && !q ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null, u),
2281
- style: ve,
2282
- children: [V.length === 0 && y && m && k("span", {}), V.map((e, t) => {
2283
- let a = t === V.length - 1, o = m && a && Rt(e);
2284
- return k(g, {
2285
- animatePlugin: W,
2286
- components: K,
2268
+ }) : jsx(Be.Provider, {
2269
+ value: pi,
2270
+ children: jsx(Ve.Provider, {
2271
+ value: S ?? null,
2272
+ children: jsx(R.Provider, {
2273
+ value: Q,
2274
+ children: jsx(at, {
2275
+ icons: M,
2276
+ children: jsx(Ee.Provider, {
2277
+ value: B,
2278
+ children: jsxs("div", {
2279
+ className: B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", b && !$ ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null, u),
2280
+ style: _i,
2281
+ children: [Y.length === 0 && b && m && jsx("span", {}), Y.map((e, t) => {
2282
+ let a = t === Y.length - 1, o = m && a && ht(e);
2283
+ return jsx(g, {
2284
+ animatePlugin: Z,
2285
+ components: mi,
2287
2286
  content: e,
2288
- dir: fe?.[t] ?? (n === "auto" ? void 0 : n),
2287
+ dir: di?.[t] ?? (n === "auto" ? void 0 : n),
2289
2288
  index: t,
2290
2289
  isIncomplete: o,
2291
- rehypePlugins: _e,
2292
- remarkPlugins: ge,
2290
+ rehypePlugins: gi,
2291
+ remarkPlugins: hi,
2293
2292
  shouldNormalizeHtmlIndentation: i,
2294
2293
  shouldParseIncompleteMarkdown: r,
2295
- ...re
2296
- }, H[t]);
2294
+ ...I
2295
+ }, fi[t]);
2297
2296
  })]
2298
2297
  })
2299
2298
  })
@@ -2302,103 +2301,103 @@ var Mn = x(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdow
2302
2301
  })
2303
2302
  });
2304
2303
  }, (e, t) => e.children === t.children && e.shikiTheme === t.shikiTheme && e.isAnimating === t.isAnimating && e.animated === t.animated && e.mode === t.mode && e.plugins === t.plugins && e.className === t.className && e.linkSafety === t.linkSafety && e.lineNumbers === t.lineNumbers && e.normalizeHtmlIndentation === t.normalizeHtmlIndentation && e.literalTagContent === t.literalTagContent && JSON.stringify(e.translations) === JSON.stringify(t.translations) && e.prefix === t.prefix && e.dir === t.dir);
2305
- Mn.displayName = "Streamdown";
2304
+ Qs.displayName = "Streamdown";
2306
2305
  var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep: i = .1, showControls: a = !0, initialZoom: o = 1, fullscreen: s = !1 }) => {
2307
- let { RotateCcwIcon: c, ZoomInIcon: l, ZoomOutIcon: u } = Y(), d = U(), f = E(null), p = E(null), [m, h] = D(o), [g, _] = D({
2306
+ let { RotateCcwIcon: c, ZoomInIcon: l, ZoomOutIcon: u } = L(), d = y(), f = useRef(null), p = useRef(null), [m, h] = useState(o), [g, _] = useState({
2308
2307
  x: 0,
2309
2308
  y: 0
2310
- }), [v, y] = D(!1), [b, x] = D({
2309
+ }), [v, b] = useState(!1), [S, C] = useState({
2311
2310
  x: 0,
2312
2311
  y: 0
2313
- }), [C, ee] = D({
2312
+ }), [T, oi] = useState({
2314
2313
  x: 0,
2315
2314
  y: 0
2316
- }), T = S((e) => {
2315
+ }), O = useCallback((e) => {
2317
2316
  h((t) => Math.max(n, Math.min(r, t + e)));
2318
- }, [n, r]), te = S(() => {
2319
- T(i);
2320
- }, [T, i]), O = S(() => {
2321
- T(-i);
2322
- }, [T, i]), j = S(() => {
2317
+ }, [n, r]), si = useCallback(() => {
2318
+ O(i);
2319
+ }, [O, i]), k = useCallback(() => {
2320
+ O(-i);
2321
+ }, [O, i]), A = useCallback(() => {
2323
2322
  h(o), _({
2324
2323
  x: 0,
2325
2324
  y: 0
2326
2325
  });
2327
- }, [o]), M = S((e) => {
2328
- e.preventDefault(), T(e.deltaY > 0 ? -i : i);
2329
- }, [T, i]), N = S((e) => {
2326
+ }, [o]), j = useCallback((e) => {
2327
+ e.preventDefault(), O(e.deltaY > 0 ? -i : i);
2328
+ }, [O, i]), M = useCallback((e) => {
2330
2329
  if (e.button !== 0 || e.isPrimary === !1) return;
2331
- y(!0), x({
2330
+ b(!0), C({
2332
2331
  x: e.clientX,
2333
2332
  y: e.clientY
2334
- }), ee(g);
2333
+ }), oi(g);
2335
2334
  let t = e.currentTarget;
2336
2335
  t instanceof HTMLElement && t.setPointerCapture(e.pointerId);
2337
- }, [g]), P = S((e) => {
2336
+ }, [g]), N = useCallback((e) => {
2338
2337
  if (!v) return;
2339
2338
  e.preventDefault();
2340
- let t = e.clientX - b.x, n = e.clientY - b.y;
2339
+ let t = e.clientX - S.x, n = e.clientY - S.y;
2341
2340
  _({
2342
- x: C.x + t,
2343
- y: C.y + n
2341
+ x: T.x + t,
2342
+ y: T.y + n
2344
2343
  });
2345
2344
  }, [
2346
2345
  v,
2347
- b,
2348
- C
2349
- ]), F = S((e) => {
2350
- y(!1);
2346
+ S,
2347
+ T
2348
+ ]), P = useCallback((e) => {
2349
+ b(!1);
2351
2350
  let t = e.currentTarget;
2352
2351
  t instanceof HTMLElement && t.releasePointerCapture(e.pointerId);
2353
2352
  }, []);
2354
- return w(() => {
2353
+ return useEffect(() => {
2355
2354
  let e = f.current;
2356
- if (e) return e.addEventListener("wheel", M, { passive: !1 }), () => {
2357
- e.removeEventListener("wheel", M);
2355
+ if (e) return e.addEventListener("wheel", j, { passive: !1 }), () => {
2356
+ e.removeEventListener("wheel", j);
2358
2357
  };
2359
- }, [M]), w(() => {
2358
+ }, [j]), useEffect(() => {
2360
2359
  let e = p.current;
2361
- if (e && v) return document.body.style.userSelect = "none", e.addEventListener("pointermove", P, { passive: !1 }), e.addEventListener("pointerup", F), e.addEventListener("pointercancel", F), () => {
2362
- document.body.style.userSelect = "", e.removeEventListener("pointermove", P), e.removeEventListener("pointerup", F), e.removeEventListener("pointercancel", F);
2360
+ if (e && v) return document.body.style.userSelect = "none", e.addEventListener("pointermove", N, { passive: !1 }), e.addEventListener("pointerup", P), e.addEventListener("pointercancel", P), () => {
2361
+ document.body.style.userSelect = "", e.removeEventListener("pointermove", N), e.removeEventListener("pointerup", P), e.removeEventListener("pointercancel", P);
2363
2362
  };
2364
2363
  }, [
2365
2364
  v,
2366
- P,
2367
- F
2368
- ]), A("div", {
2365
+ N,
2366
+ P
2367
+ ]), jsxs("div", {
2369
2368
  className: d("relative flex flex-col", s ? "h-full w-full" : "min-h-28 w-full", t),
2370
2369
  ref: f,
2371
2370
  style: { cursor: v ? "grabbing" : "grab" },
2372
- children: [a ? A("div", {
2371
+ children: [a ? jsxs("div", {
2373
2372
  className: d("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", s ? "bottom-4 left-4" : "bottom-2 left-2"),
2374
2373
  children: [
2375
- k("button", {
2374
+ jsx("button", {
2376
2375
  className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),
2377
2376
  disabled: m >= r,
2378
- onClick: te,
2377
+ onClick: si,
2379
2378
  title: "Zoom in",
2380
2379
  type: "button",
2381
- children: k(l, { size: 16 })
2380
+ children: jsx(l, { size: 16 })
2382
2381
  }),
2383
- k("button", {
2382
+ jsx("button", {
2384
2383
  className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),
2385
2384
  disabled: m <= n,
2386
- onClick: O,
2385
+ onClick: k,
2387
2386
  title: "Zoom out",
2388
2387
  type: "button",
2389
- children: k(u, { size: 16 })
2388
+ children: jsx(u, { size: 16 })
2390
2389
  }),
2391
- k("button", {
2390
+ jsx("button", {
2392
2391
  className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),
2393
- onClick: j,
2392
+ onClick: A,
2394
2393
  title: "Reset zoom and pan",
2395
2394
  type: "button",
2396
- children: k(c, { size: 16 })
2395
+ children: jsx(c, { size: 16 })
2397
2396
  })
2398
2397
  ]
2399
- }) : null, k("div", {
2398
+ }) : null, jsx("div", {
2400
2399
  className: d("flex-1 origin-center transition-transform duration-150 ease-out", s ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"),
2401
- onPointerDown: N,
2400
+ onPointerDown: M,
2402
2401
  ref: p,
2403
2402
  role: "application",
2404
2403
  style: {
@@ -2410,10 +2409,10 @@ var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep
2410
2409
  children: e
2411
2410
  })]
2412
2411
  });
2413
- }, Pn = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
2414
- let a = U(), [o, s] = D(null), [c, l] = D(!1), [u, d] = D(""), [f, p] = D(""), [m, h] = D(0), { mermaid: g } = C($), _ = Re(), v = g?.errorComponent, { shouldRender: y, containerRef: b } = re({ immediate: r });
2415
- if (w(() => {
2416
- if (y) {
2412
+ }, po = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
2413
+ let a = y(), [o, s] = useState(null), [c, l] = useState(!1), [u, d] = useState(""), [f, p] = useState(""), [m, h] = useState(0), { mermaid: g } = useContext(R), _ = de(), v = g?.errorComponent, { shouldRender: b, containerRef: S } = Rt({ immediate: r });
2414
+ if (useEffect(() => {
2415
+ if (b) {
2417
2416
  if (!_) {
2418
2417
  s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
2419
2418
  return;
@@ -2434,67 +2433,66 @@ var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep
2434
2433
  e,
2435
2434
  n,
2436
2435
  m,
2437
- y,
2436
+ b,
2438
2437
  _
2439
- ]), !(y || u || f)) return k("div", {
2438
+ ]), !(b || u || f)) return jsx("div", {
2440
2439
  className: a("my-4 min-h-[200px]", t),
2441
- ref: b
2440
+ ref: S
2442
2441
  });
2443
- if (c && !u && !f) return k("div", {
2442
+ if (c && !u && !f) return jsx("div", {
2444
2443
  className: a("my-4 flex justify-center p-4", t),
2445
- ref: b,
2446
- children: A("div", {
2444
+ ref: S,
2445
+ children: jsxs("div", {
2447
2446
  className: a("flex items-center space-x-2 text-muted-foreground"),
2448
- children: [k("div", { className: a("h-4 w-4 animate-spin rounded-full border-current border-b-2") }), k("span", {
2447
+ children: [jsx("div", { className: a("h-4 w-4 animate-spin rounded-full border-current border-b-2") }), jsx("span", {
2449
2448
  className: a("text-sm"),
2450
2449
  children: "Loading diagram..."
2451
2450
  })]
2452
2451
  })
2453
2452
  });
2454
- if (o && !u && !f) return v ? k("div", {
2455
- ref: b,
2456
- children: k(v, {
2453
+ if (o && !u && !f) return v ? jsx("div", {
2454
+ ref: S,
2455
+ children: jsx(v, {
2457
2456
  chart: e,
2458
2457
  error: o,
2459
2458
  retry: () => h((e) => e + 1)
2460
2459
  })
2461
- }) : A("div", {
2460
+ }) : jsxs("div", {
2462
2461
  className: a("rounded-md bg-red-50 p-4", t),
2463
- ref: b,
2464
- children: [A("p", {
2462
+ ref: S,
2463
+ children: [jsxs("p", {
2465
2464
  className: a("font-mono text-red-700 text-sm"),
2466
2465
  children: ["Mermaid Error: ", o]
2467
- }), A("details", {
2466
+ }), jsxs("details", {
2468
2467
  className: a("mt-2"),
2469
- children: [k("summary", {
2468
+ children: [jsx("summary", {
2470
2469
  className: a("cursor-pointer text-red-600 text-xs"),
2471
2470
  children: "Show Code"
2472
- }), k("pre", {
2471
+ }), jsx("pre", {
2473
2472
  className: a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),
2474
2473
  children: e
2475
2474
  })]
2476
2475
  })]
2477
2476
  });
2478
- let x = u || f;
2479
- return k("div", {
2477
+ let C = u || f;
2478
+ return jsx("div", {
2480
2479
  className: a("size-full", t),
2481
2480
  "data-streamdown": "mermaid",
2482
- ref: b,
2483
- children: k(Nn, {
2481
+ ref: S,
2482
+ children: jsx(Nn, {
2484
2483
  className: a(r ? "size-full overflow-hidden" : "overflow-hidden", t),
2485
2484
  fullscreen: r,
2486
2485
  maxZoom: 3,
2487
2486
  minZoom: .5,
2488
2487
  showControls: i,
2489
2488
  zoomStep: .1,
2490
- children: k("div", {
2489
+ children: jsx("div", {
2491
2490
  "aria-label": "Mermaid chart",
2492
2491
  className: a("flex justify-center", r ? "size-full items-center" : null),
2493
- dangerouslySetInnerHTML: { __html: x },
2492
+ dangerouslySetInnerHTML: { __html: C },
2494
2493
  role: "img"
2495
2494
  })
2496
2495
  })
2497
2496
  });
2498
2497
  };
2499
- //#endregion
2500
- export { Ft as $e, Ee as Ae, G as At, we as De, Sn as Js, Tn as Ks, Le as Li, ke as Oe, Ye as Pe, Mn as Qs, $ as R, Je as Te, jn as Tn, le as be, Ge as dt, Oe as it, Ke as je, fn as kt, We as ne, Yt as on, K as ot, Pn as po, qe as re, q as rt, be as st, de as tt, Ue as ue, wn as xt };
2498
+ export { $e$1 as $e, Ae, At, De, Js, Ks, Li, Oe, Pe, Qs, R, Te, Tn, be, dt, it, je, kt, ne, on, ot, po, re, rt, st, tt, ue, xt };