@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,5 +1,4 @@
1
- //#region ../../node_modules/streamdown/node_modules/marked/lib/marked.esm.js
2
- function e() {
1
+ function M() {
3
2
  return {
4
3
  async: !1,
5
4
  breaks: !1,
@@ -13,28 +12,28 @@ function e() {
13
12
  walkTokens: null
14
13
  };
15
14
  }
16
- var t = e();
17
- function n(e) {
18
- t = e;
15
+ var O = M();
16
+ function G(e) {
17
+ O = e;
19
18
  }
20
- var r = { exec: () => null };
21
- function i(e, t = "") {
22
- let n = typeof e == "string" ? e : e.source, r = {
23
- replace: (e, t) => {
24
- let i = typeof t == "string" ? t : t.source;
25
- return i = i.replace(o.caret, "$1"), n = n.replace(e, i), r;
19
+ var _ = { exec: () => null };
20
+ function k(e, s = "") {
21
+ let c = typeof e == "string" ? e : e.source, l = {
22
+ replace: (e, s) => {
23
+ let u = typeof s == "string" ? s : s.source;
24
+ return u = u.replace(m.caret, "$1"), c = c.replace(e, u), l;
26
25
  },
27
- getRegex: () => new RegExp(n, t)
26
+ getRegex: () => new RegExp(c, s)
28
27
  };
29
- return r;
28
+ return l;
30
29
  }
31
- var a = (() => {
30
+ var be = (() => {
32
31
  try {
33
32
  return !0;
34
33
  } catch {
35
34
  return !1;
36
35
  }
37
- })(), o = {
36
+ })(), m = {
38
37
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
39
38
  outputLinkReplace: /\\([\[\]])/g,
40
39
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -75,7 +74,6 @@ var a = (() => {
75
74
  escapeReplace: /[&<>"']/g,
76
75
  escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
77
76
  escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
78
- unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
79
77
  caret: /(^|[^\[])\^/g,
80
78
  percentDecode: /%25/g,
81
79
  findPipe: /\|/g,
@@ -85,316 +83,316 @@ var a = (() => {
85
83
  spaceLine: /^ +$/gm,
86
84
  notSpaceStart: /^\S*/,
87
85
  endingNewline: /\n$/,
88
- listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
89
- nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
90
- hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
91
- fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
92
- headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
86
+ listItemRegex: (e) => /* @__PURE__ */ RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
87
+ nextBulletRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
88
+ hrRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
89
+ fencesBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
90
+ headingBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
93
91
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
94
- blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
95
- }, s = /^(?:[ \t]*(?:\n|$))+/, c = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, l = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, u = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, d = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, f = / {0,3}(?:[*+-]|\d{1,9}[.)])/, p = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, m = i(p).replace(/bull/g, f).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ee = i(p).replace(/bull/g, f).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), h = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, te = /^[^\n]+/, g = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ne = i(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", g).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), re = i(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, f).getRegex(), _ = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", v = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ie = i("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", v).replace("tag", _).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), y = i(h).replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _).getRegex(), b = {
96
- blockquote: i(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", y).getRegex(),
97
- code: c,
98
- def: ne,
99
- fences: l,
100
- heading: d,
101
- hr: u,
102
- html: ie,
103
- lheading: m,
104
- list: re,
105
- newline: s,
106
- paragraph: y,
107
- table: r,
108
- text: te
109
- }, x = i("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _).getRegex(), ae = {
110
- ...b,
111
- lheading: ee,
112
- table: x,
113
- paragraph: i(h).replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", x).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _).getRegex()
114
- }, oe = {
115
- ...b,
116
- html: i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", v).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
92
+ blockquoteBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
93
+ }, Re = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Q = / {0,3}(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie = k(se).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ye = k(se).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Q).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), K = {
94
+ blockquote: k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(),
95
+ code: Oe,
96
+ def: Se,
97
+ fences: Te,
98
+ heading: we,
99
+ hr: C,
100
+ html: _e,
101
+ lheading: ie,
102
+ list: $e,
103
+ newline: Re,
104
+ paragraph: oe,
105
+ table: _,
106
+ text: Pe
107
+ }, ne = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Me = {
108
+ ...K,
109
+ lheading: ye,
110
+ table: ne,
111
+ paragraph: k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex()
112
+ }, ze = {
113
+ ...K,
114
+ html: k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
117
115
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
118
116
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
119
- fences: r,
117
+ fences: _,
120
118
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
121
- paragraph: i(h).replace("hr", u).replace("heading", " *#{1,6} *[^\n]").replace("lheading", m).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
122
- }, se = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ce = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, S = /^( {2,}|\\)\n(?!\s*$)/, le = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, C = /[\p{P}\p{S}]/u, w = /[\s\p{P}\p{S}]/u, T = /[^\s\p{P}\p{S}]/u, ue = i(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, w).getRegex(), E = /(?!~)[\p{P}\p{S}]/u, de = /(?!~)[\s\p{P}\p{S}]/u, fe = /(?:[^\s\p{P}\p{S}]|~)/u, D = /(?![*_])[\p{P}\p{S}]/u, pe = /(?![*_])[\s\p{P}\p{S}]/u, me = /(?:[^\s\p{P}\p{S}]|[*_])/u, he = i(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", a ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), O = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ge = i(O, "u").replace(/punct/g, C).getRegex(), k = i(O, "u").replace(/punct/g, E).getRegex(), A = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", _e = i(A, "gu").replace(/notPunctSpace/g, T).replace(/punctSpace/g, w).replace(/punct/g, C).getRegex(), ve = i(A, "gu").replace(/notPunctSpace/g, fe).replace(/punctSpace/g, de).replace(/punct/g, E).getRegex(), ye = i("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, T).replace(/punctSpace/g, w).replace(/punct/g, C).getRegex(), be = i(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, D).getRegex(), xe = i("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, me).replace(/punctSpace/g, pe).replace(/punct/g, D).getRegex(), Se = i(/\\(punct)/, "gu").replace(/punct/g, C).getRegex(), j = i(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ce = i(v).replace("(?:-->|$)", "-->").getRegex(), we = i("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ce).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), M = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Te = i(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", M).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), N = i(/^!?\[(label)\]\[(ref)\]/).replace("label", M).replace("ref", g).getRegex(), P = i(/^!?\[(ref)\](?:\[\])?/).replace("ref", g).getRegex(), Ee = i("reflink|nolink(?!\\()", "g").replace("reflink", N).replace("nolink", P).getRegex(), F = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, I = {
123
- _backpedal: r,
124
- anyPunctuation: Se,
125
- autolink: j,
126
- blockSkip: he,
127
- br: S,
128
- code: ce,
129
- del: r,
130
- delLDelim: r,
131
- delRDelim: r,
132
- emStrongLDelim: ge,
133
- emStrongRDelimAst: _e,
134
- emStrongRDelimUnd: ye,
135
- escape: se,
136
- link: Te,
137
- nolink: P,
138
- punctuation: ue,
139
- reflink: N,
140
- reflinkSearch: Ee,
141
- tag: we,
142
- text: le,
143
- url: r
144
- }, De = {
145
- ...I,
146
- link: i(/^!?\[(label)\]\((.*?)\)/).replace("label", M).getRegex(),
147
- reflink: i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", M).getRegex()
148
- }, L = {
149
- ...I,
150
- emStrongRDelimAst: ve,
151
- emStrongLDelim: k,
152
- delLDelim: be,
153
- delRDelim: xe,
154
- url: i(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", F).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
119
+ paragraph: k(j).replace("hr", C).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
120
+ }, Ee = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, H = /[\s\p{P}\p{S}]/u, W = /[^\s\p{P}\p{S}]/u, Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, H).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, De = /(?:[^\s\p{P}\p{S}]|~)/u, qe = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ue = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ve = k(ue, "u").replace(/punct/g, z).getRegex(), He = k(ue, "u").replace(/punct/g, le).getRegex(), pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = k(pe, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Ge = k(pe, "gu").replace(/notPunctSpace/g, De).replace(/punctSpace/g, Be).replace(/punct/g, le).getRegex(), Ne = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Qe = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), Fe = k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Ue = k(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), Ke = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), We = k(U).replace("(?:-->|$)", "-->").getRegex(), Xe = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", We).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex(), he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), Ve = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex(), re = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = {
121
+ _backpedal: _,
122
+ anyPunctuation: Ue,
123
+ autolink: Ke,
124
+ blockSkip: qe,
125
+ br: ae,
126
+ code: Ie,
127
+ del: _,
128
+ delLDelim: _,
129
+ delRDelim: _,
130
+ emStrongLDelim: ve,
131
+ emStrongRDelimAst: Ze,
132
+ emStrongRDelimUnd: Ne,
133
+ escape: Ee,
134
+ link: Je,
135
+ nolink: he,
136
+ punctuation: Ce,
137
+ reflink: ce,
138
+ reflinkSearch: Ve,
139
+ tag: Xe,
140
+ text: Ae,
141
+ url: _
142
+ }, Ye = {
143
+ ...X,
144
+ link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
145
+ reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
146
+ }, N = {
147
+ ...X,
148
+ emStrongRDelimAst: Ge,
149
+ emStrongLDelim: He,
150
+ delLDelim: Qe,
151
+ delRDelim: Fe,
152
+ url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", re).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
155
153
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
156
154
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
157
- text: i(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", F).getRegex()
158
- }, Oe = {
159
- ...L,
160
- br: i(S).replace("{2,}", "*").getRegex(),
161
- text: i(L.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
162
- }, R = {
163
- normal: b,
164
- gfm: ae,
165
- pedantic: oe
166
- }, z = {
167
- normal: I,
168
- gfm: L,
169
- breaks: Oe,
170
- pedantic: De
171
- }, ke = {
155
+ text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", re).getRegex()
156
+ }, et = {
157
+ ...N,
158
+ br: k(ae).replace("{2,}", "*").getRegex(),
159
+ text: k(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
160
+ }, B = {
161
+ normal: K,
162
+ gfm: Me,
163
+ pedantic: ze
164
+ }, E = {
165
+ normal: X,
166
+ gfm: N,
167
+ breaks: et,
168
+ pedantic: Ye
169
+ }, tt = {
172
170
  "&": "&amp;",
173
171
  "<": "&lt;",
174
172
  ">": "&gt;",
175
173
  "\"": "&quot;",
176
174
  "'": "&#39;"
177
- }, B = (e) => ke[e];
178
- function V(e, t) {
179
- if (t) {
180
- if (o.escapeTest.test(e)) return e.replace(o.escapeReplace, B);
181
- } else if (o.escapeTestNoEncode.test(e)) return e.replace(o.escapeReplaceNoEncode, B);
175
+ }, ke = (e) => tt[e];
176
+ function T(e, s) {
177
+ if (s) {
178
+ if (m.escapeTest.test(e)) return e.replace(m.escapeReplace, ke);
179
+ } else if (m.escapeTestNoEncode.test(e)) return e.replace(m.escapeReplaceNoEncode, ke);
182
180
  return e;
183
181
  }
184
- function H(e) {
182
+ function J(e) {
185
183
  try {
186
- e = encodeURI(e).replace(o.percentDecode, "%");
184
+ e = encodeURI(e).replace(m.percentDecode, "%");
187
185
  } catch {
188
186
  return null;
189
187
  }
190
188
  return e;
191
189
  }
192
- function U(e, t) {
193
- let n = e.replace(o.findPipe, (e, t, n) => {
194
- let r = !1, i = t;
195
- for (; --i >= 0 && n[i] === "\\";) r = !r;
196
- return r ? "|" : " |";
197
- }).split(o.splitPipe), r = 0;
198
- if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
199
- else for (; n.length < t;) n.push("");
200
- for (; r < n.length; r++) n[r] = n[r].trim().replace(o.slashPipe, "|");
201
- return n;
190
+ function V(e, s) {
191
+ let c = e.replace(m.findPipe, (e, s, c) => {
192
+ let l = !1, u = s;
193
+ for (; --u >= 0 && c[u] === "\\";) l = !l;
194
+ return l ? "|" : " |";
195
+ }).split(m.splitPipe), l = 0;
196
+ if (c[0].trim() || c.shift(), c.length > 0 && !c.at(-1)?.trim() && c.pop(), s) if (c.length > s) c.splice(s);
197
+ else for (; c.length < s;) c.push("");
198
+ for (; l < c.length; l++) c[l] = c[l].trim().replace(m.slashPipe, "|");
199
+ return c;
202
200
  }
203
- function W(e, t, n) {
204
- let r = e.length;
205
- if (r === 0) return "";
206
- let i = 0;
207
- for (; i < r;) {
208
- let a = e.charAt(r - i - 1);
209
- if (a === t && !n) i++;
210
- else if (a !== t && n) i++;
201
+ function I(e, s, c) {
202
+ let l = e.length;
203
+ if (l === 0) return "";
204
+ let u = 0;
205
+ for (; u < l;) {
206
+ let d = e.charAt(l - u - 1);
207
+ if (d === s && !c) u++;
208
+ else if (d !== s && c) u++;
211
209
  else break;
212
210
  }
213
- return e.slice(0, r - i);
211
+ return e.slice(0, l - u);
214
212
  }
215
- function Ae(e, t) {
216
- if (e.indexOf(t[1]) === -1) return -1;
217
- let n = 0;
218
- for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
219
- else if (e[r] === t[0]) n++;
220
- else if (e[r] === t[1] && (n--, n < 0)) return r;
221
- return n > 0 ? -2 : -1;
213
+ function de(e, s) {
214
+ if (e.indexOf(s[1]) === -1) return -1;
215
+ let c = 0;
216
+ for (let l = 0; l < e.length; l++) if (e[l] === "\\") l++;
217
+ else if (e[l] === s[0]) c++;
218
+ else if (e[l] === s[1] && (c--, c < 0)) return l;
219
+ return c > 0 ? -2 : -1;
222
220
  }
223
- function je(e, t = 0) {
224
- let n = t, r = "";
225
- for (let t of e) if (t === " ") {
226
- let e = 4 - n % 4;
227
- r += " ".repeat(e), n += e;
228
- } else r += t, n++;
229
- return r;
221
+ function ge(e, s = 0) {
222
+ let c = s, l = "";
223
+ for (let s of e) if (s === " ") {
224
+ let e = 4 - c % 4;
225
+ l += " ".repeat(e), c += e;
226
+ } else l += s, c++;
227
+ return l;
230
228
  }
231
- function G(e, t, n, r, i) {
232
- let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
233
- r.state.inLink = !0;
234
- let c = {
229
+ function fe(e, s, c, l, u) {
230
+ let d = s.href, f = s.title || null, p = e[1].replace(u.other.outputLinkReplace, "$1");
231
+ l.state.inLink = !0;
232
+ let h = {
235
233
  type: e[0].charAt(0) === "!" ? "image" : "link",
236
- raw: n,
237
- href: a,
238
- title: o,
239
- text: s,
240
- tokens: r.inlineTokens(s)
234
+ raw: c,
235
+ href: d,
236
+ title: f,
237
+ text: p,
238
+ tokens: l.inlineTokens(p)
241
239
  };
242
- return r.state.inLink = !1, c;
240
+ return l.state.inLink = !1, h;
243
241
  }
244
- function Me(e, t, n) {
245
- let r = e.match(n.other.indentCodeCompensation);
246
- if (r === null) return t;
247
- let i = r[1];
248
- return t.split("\n").map((e) => {
249
- let t = e.match(n.other.beginningSpace);
250
- if (t === null) return e;
251
- let [r] = t;
252
- return r.length >= i.length ? e.slice(i.length) : e;
242
+ function nt(e, s, c) {
243
+ let l = e.match(c.other.indentCodeCompensation);
244
+ if (l === null) return s;
245
+ let u = l[1];
246
+ return s.split("\n").map((e) => {
247
+ let s = e.match(c.other.beginningSpace);
248
+ if (s === null) return e;
249
+ let [l] = s;
250
+ return l.length >= u.length ? e.slice(u.length) : e;
253
251
  }).join("\n");
254
252
  }
255
- var K = class {
253
+ var w = class {
256
254
  options;
257
255
  rules;
258
256
  lexer;
259
257
  constructor(e) {
260
- this.options = e || t;
258
+ this.options = e || O;
261
259
  }
262
260
  space(e) {
263
- let t = this.rules.block.newline.exec(e);
264
- if (t && t[0].length > 0) return {
261
+ let s = this.rules.block.newline.exec(e);
262
+ if (s && s[0].length > 0) return {
265
263
  type: "space",
266
- raw: t[0]
264
+ raw: s[0]
267
265
  };
268
266
  }
269
267
  code(e) {
270
- let t = this.rules.block.code.exec(e);
271
- if (t) {
272
- let e = t[0].replace(this.rules.other.codeRemoveIndent, "");
268
+ let s = this.rules.block.code.exec(e);
269
+ if (s) {
270
+ let e = s[0].replace(this.rules.other.codeRemoveIndent, "");
273
271
  return {
274
272
  type: "code",
275
- raw: t[0],
273
+ raw: s[0],
276
274
  codeBlockStyle: "indented",
277
- text: this.options.pedantic ? e : W(e, "\n")
275
+ text: this.options.pedantic ? e : I(e, "\n")
278
276
  };
279
277
  }
280
278
  }
281
279
  fences(e) {
282
- let t = this.rules.block.fences.exec(e);
283
- if (t) {
284
- let e = t[0], n = Me(e, t[3] || "", this.rules);
280
+ let s = this.rules.block.fences.exec(e);
281
+ if (s) {
282
+ let e = s[0], c = nt(e, s[3] || "", this.rules);
285
283
  return {
286
284
  type: "code",
287
285
  raw: e,
288
- lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
289
- text: n
286
+ lang: s[2] ? s[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : s[2],
287
+ text: c
290
288
  };
291
289
  }
292
290
  }
293
291
  heading(e) {
294
- let t = this.rules.block.heading.exec(e);
295
- if (t) {
296
- let e = t[2].trim();
292
+ let s = this.rules.block.heading.exec(e);
293
+ if (s) {
294
+ let e = s[2].trim();
297
295
  if (this.rules.other.endingHash.test(e)) {
298
- let t = W(e, "#");
299
- (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
296
+ let s = I(e, "#");
297
+ (this.options.pedantic || !s || this.rules.other.endingSpaceChar.test(s)) && (e = s.trim());
300
298
  }
301
299
  return {
302
300
  type: "heading",
303
- raw: t[0],
304
- depth: t[1].length,
301
+ raw: s[0],
302
+ depth: s[1].length,
305
303
  text: e,
306
304
  tokens: this.lexer.inline(e)
307
305
  };
308
306
  }
309
307
  }
310
308
  hr(e) {
311
- let t = this.rules.block.hr.exec(e);
312
- if (t) return {
309
+ let s = this.rules.block.hr.exec(e);
310
+ if (s) return {
313
311
  type: "hr",
314
- raw: W(t[0], "\n")
312
+ raw: I(s[0], "\n")
315
313
  };
316
314
  }
317
315
  blockquote(e) {
318
- let t = this.rules.block.blockquote.exec(e);
319
- if (t) {
320
- let e = W(t[0], "\n").split("\n"), n = "", r = "", i = [];
316
+ let s = this.rules.block.blockquote.exec(e);
317
+ if (s) {
318
+ let e = I(s[0], "\n").split("\n"), c = "", l = "", u = [];
321
319
  for (; e.length > 0;) {
322
- let t = !1, a = [], o;
323
- for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
324
- else if (!t) a.push(e[o]);
320
+ let s = !1, d = [], f;
321
+ for (f = 0; f < e.length; f++) if (this.rules.other.blockquoteStart.test(e[f])) d.push(e[f]), s = !0;
322
+ else if (!s) d.push(e[f]);
325
323
  else break;
326
- e = e.slice(o);
327
- let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
328
- n = n ? `${n}
329
- ${s}` : s, r = r ? `${r}
330
- ${c}` : c;
331
- let l = this.lexer.state.top;
332
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
333
- let u = i.at(-1);
334
- if (u?.type === "code") break;
335
- if (u?.type === "blockquote") {
336
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
337
- i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
324
+ e = e.slice(f);
325
+ let p = d.join("\n"), h = p.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
326
+ c = c ? `${c}
327
+ ${p}` : p, l = l ? `${l}
328
+ ${h}` : h;
329
+ let S = this.lexer.state.top;
330
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(h, u, !0), this.lexer.state.top = S, e.length === 0) break;
331
+ let D = u.at(-1);
332
+ if (D?.type === "code") break;
333
+ if (D?.type === "blockquote") {
334
+ let s = D, d = s.raw + "\n" + e.join("\n"), f = this.blockquote(d);
335
+ u[u.length - 1] = f, c = c.substring(0, c.length - s.raw.length) + f.raw, l = l.substring(0, l.length - s.text.length) + f.text;
338
336
  break;
339
- } else if (u?.type === "list") {
340
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
341
- i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
337
+ } else if (D?.type === "list") {
338
+ let s = D, d = s.raw + "\n" + e.join("\n"), f = this.list(d);
339
+ u[u.length - 1] = f, c = c.substring(0, c.length - D.raw.length) + f.raw, l = l.substring(0, l.length - s.raw.length) + f.raw, e = d.substring(u.at(-1).raw.length).split("\n");
342
340
  continue;
343
341
  }
344
342
  }
345
343
  return {
346
344
  type: "blockquote",
347
- raw: n,
348
- tokens: i,
349
- text: r
345
+ raw: c,
346
+ tokens: u,
347
+ text: l
350
348
  };
351
349
  }
352
350
  }
353
351
  list(e) {
354
- let t = this.rules.block.list.exec(e);
355
- if (t) {
356
- let n = t[1].trim(), r = n.length > 1, i = {
352
+ let s = this.rules.block.list.exec(e);
353
+ if (s) {
354
+ let c = s[1].trim(), l = c.length > 1, u = {
357
355
  type: "list",
358
356
  raw: "",
359
- ordered: r,
360
- start: r ? +n.slice(0, -1) : "",
357
+ ordered: l,
358
+ start: l ? +c.slice(0, -1) : "",
361
359
  loose: !1,
362
360
  items: []
363
361
  };
364
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
365
- let a = this.rules.other.listItemRegex(n), o = !1;
362
+ c = l ? `\\d{1,9}\\${c.slice(-1)}` : `\\${c}`, this.options.pedantic && (c = l ? c : "[*+-]");
363
+ let d = this.rules.other.listItemRegex(c), f = !1;
366
364
  for (; e;) {
367
- let n = !1, r = "", s = "";
368
- if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
369
- r = t[0], e = e.substring(r.length);
370
- let c = je(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
371
- if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
372
- let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
365
+ let c = !1, l = "", p = "";
366
+ if (!(s = d.exec(e)) || this.rules.block.hr.test(e)) break;
367
+ l = s[0], e = e.substring(l.length);
368
+ let h = ge(s[2].split("\n", 1)[0], s[1].length), S = e.split("\n", 1)[0], D = !h.trim(), A = 0;
369
+ if (this.options.pedantic ? (A = 2, p = h.trimStart()) : D ? A = s[1].length + 1 : (A = h.search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, p = h.slice(A), A += s[1].length), D && this.rules.other.blankLine.test(S) && (l += S + "\n", e = e.substring(S.length + 1), c = !0), !c) {
370
+ let s = this.rules.other.nextBulletRegex(A), c = this.rules.other.hrRegex(A), u = this.rules.other.fencesBeginRegex(A), d = this.rules.other.headingBeginRegex(A), f = this.rules.other.htmlBeginRegex(A), R = this.rules.other.blockquoteBeginRegex(A);
373
371
  for (; e;) {
374
- let p = e.split("\n", 1)[0], m;
375
- if (l = p, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), m = l) : m = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || f.test(l) || t.test(l) || n.test(l)) break;
376
- if (m.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + m.slice(d);
372
+ let Y = e.split("\n", 1)[0], Z;
373
+ if (S = Y, this.options.pedantic ? (S = S.replace(this.rules.other.listReplaceNesting, " "), Z = S) : Z = S.replace(this.rules.other.tabCharGlobal, " "), u.test(S) || d.test(S) || f.test(S) || R.test(S) || s.test(S) || c.test(S)) break;
374
+ if (Z.search(this.rules.other.nonSpaceChar) >= A || !S.trim()) p += "\n" + Z.slice(A);
377
375
  else {
378
- if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
379
- s += "\n" + l;
376
+ if (D || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || u.test(h) || d.test(h) || c.test(h)) break;
377
+ p += "\n" + S;
380
378
  }
381
- u = !l.trim(), r += p + "\n", e = e.substring(p.length + 1), c = m.slice(d);
379
+ D = !S.trim(), l += Y + "\n", e = e.substring(Y.length + 1), h = Z.slice(A);
382
380
  }
383
381
  }
384
- i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
382
+ u.loose || (f ? u.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (f = !0)), u.items.push({
385
383
  type: "list_item",
386
- raw: r,
387
- task: !!this.options.gfm && this.rules.other.listIsTask.test(s),
384
+ raw: l,
385
+ task: !!this.options.gfm && this.rules.other.listIsTask.test(p),
388
386
  loose: !1,
389
- text: s,
387
+ text: p,
390
388
  tokens: []
391
- }), i.raw += r;
389
+ }), u.raw += l;
392
390
  }
393
- let s = i.items.at(-1);
394
- if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
391
+ let p = u.items.at(-1);
392
+ if (p) p.raw = p.raw.trimEnd(), p.text = p.text.trimEnd();
395
393
  else return;
396
- i.raw = i.raw.trimEnd();
397
- for (let e of i.items) {
394
+ u.raw = u.raw.trimEnd();
395
+ for (let e of u.items) {
398
396
  if (this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []), e.task) {
399
397
  if (e.text = e.text.replace(this.rules.other.listReplaceTask, ""), e.tokens[0]?.type === "text" || e.tokens[0]?.type === "paragraph") {
400
398
  e.tokens[0].raw = e.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), e.tokens[0].text = e.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
@@ -403,259 +401,262 @@ ${c}` : c;
403
401
  break;
404
402
  }
405
403
  }
406
- let t = this.rules.other.listTaskCheckbox.exec(e.raw);
407
- if (t) {
408
- let n = {
404
+ let s = this.rules.other.listTaskCheckbox.exec(e.raw);
405
+ if (s) {
406
+ let c = {
409
407
  type: "checkbox",
410
- raw: t[0] + " ",
411
- checked: t[0] !== "[ ]"
408
+ raw: s[0] + " ",
409
+ checked: s[0] !== "[ ]"
412
410
  };
413
- e.checked = n.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = n.raw + e.tokens[0].raw, e.tokens[0].text = n.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(n)) : e.tokens.unshift({
411
+ e.checked = c.checked, u.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = c.raw + e.tokens[0].raw, e.tokens[0].text = c.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(c)) : e.tokens.unshift({
414
412
  type: "paragraph",
415
- raw: n.raw,
416
- text: n.raw,
417
- tokens: [n]
418
- }) : e.tokens.unshift(n);
413
+ raw: c.raw,
414
+ text: c.raw,
415
+ tokens: [c]
416
+ }) : e.tokens.unshift(c);
419
417
  }
420
418
  }
421
- if (!i.loose) {
422
- let t = e.tokens.filter((e) => e.type === "space");
423
- i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
419
+ if (!u.loose) {
420
+ let s = e.tokens.filter((e) => e.type === "space");
421
+ u.loose = s.length > 0 && s.some((e) => this.rules.other.anyLine.test(e.raw));
424
422
  }
425
423
  }
426
- if (i.loose) for (let e of i.items) {
424
+ if (u.loose) for (let e of u.items) {
427
425
  e.loose = !0;
428
- for (let t of e.tokens) t.type === "text" && (t.type = "paragraph");
426
+ for (let s of e.tokens) s.type === "text" && (s.type = "paragraph");
429
427
  }
430
- return i;
428
+ return u;
431
429
  }
432
430
  }
433
431
  html(e) {
434
- let t = this.rules.block.html.exec(e);
435
- if (t) return {
432
+ let s = this.rules.block.html.exec(e);
433
+ if (s) return {
436
434
  type: "html",
437
435
  block: !0,
438
- raw: t[0],
439
- pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
440
- text: t[0]
436
+ raw: s[0],
437
+ pre: s[1] === "pre" || s[1] === "script" || s[1] === "style",
438
+ text: s[0]
441
439
  };
442
440
  }
443
441
  def(e) {
444
- let t = this.rules.block.def.exec(e);
445
- if (t) {
446
- let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
442
+ let s = this.rules.block.def.exec(e);
443
+ if (s) {
444
+ let e = s[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), c = s[2] ? s[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", l = s[3] ? s[3].substring(1, s[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : s[3];
447
445
  return {
448
446
  type: "def",
449
447
  tag: e,
450
- raw: t[0],
451
- href: n,
452
- title: r
448
+ raw: s[0],
449
+ href: c,
450
+ title: l
453
451
  };
454
452
  }
455
453
  }
456
454
  table(e) {
457
- let t = this.rules.block.table.exec(e);
458
- if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
459
- let n = U(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
455
+ let s = this.rules.block.table.exec(e);
456
+ if (!s || !this.rules.other.tableDelimiter.test(s[2])) return;
457
+ let c = V(s[1]), l = s[2].replace(this.rules.other.tableAlignChars, "").split("|"), u = s[3]?.trim() ? s[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], d = {
460
458
  type: "table",
461
- raw: t[0],
459
+ raw: s[0],
462
460
  header: [],
463
461
  align: [],
464
462
  rows: []
465
463
  };
466
- if (n.length === r.length) {
467
- for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
468
- for (let e = 0; e < n.length; e++) a.header.push({
469
- text: n[e],
470
- tokens: this.lexer.inline(n[e]),
464
+ if (c.length === l.length) {
465
+ for (let e of l) this.rules.other.tableAlignRight.test(e) ? d.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? d.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? d.align.push("left") : d.align.push(null);
466
+ for (let e = 0; e < c.length; e++) d.header.push({
467
+ text: c[e],
468
+ tokens: this.lexer.inline(c[e]),
471
469
  header: !0,
472
- align: a.align[e]
470
+ align: d.align[e]
473
471
  });
474
- for (let e of i) a.rows.push(U(e, a.header.length).map((e, t) => ({
472
+ for (let e of u) d.rows.push(V(e, d.header.length).map((e, s) => ({
475
473
  text: e,
476
474
  tokens: this.lexer.inline(e),
477
475
  header: !1,
478
- align: a.align[t]
476
+ align: d.align[s]
479
477
  })));
480
- return a;
478
+ return d;
481
479
  }
482
480
  }
483
481
  lheading(e) {
484
- let t = this.rules.block.lheading.exec(e);
485
- if (t) return {
486
- type: "heading",
487
- raw: t[0],
488
- depth: t[2].charAt(0) === "=" ? 1 : 2,
489
- text: t[1],
490
- tokens: this.lexer.inline(t[1])
491
- };
482
+ let s = this.rules.block.lheading.exec(e);
483
+ if (s) {
484
+ let e = s[1].trim();
485
+ return {
486
+ type: "heading",
487
+ raw: s[0],
488
+ depth: s[2].charAt(0) === "=" ? 1 : 2,
489
+ text: e,
490
+ tokens: this.lexer.inline(e)
491
+ };
492
+ }
492
493
  }
493
494
  paragraph(e) {
494
- let t = this.rules.block.paragraph.exec(e);
495
- if (t) {
496
- let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
495
+ let s = this.rules.block.paragraph.exec(e);
496
+ if (s) {
497
+ let e = s[1].charAt(s[1].length - 1) === "\n" ? s[1].slice(0, -1) : s[1];
497
498
  return {
498
499
  type: "paragraph",
499
- raw: t[0],
500
+ raw: s[0],
500
501
  text: e,
501
502
  tokens: this.lexer.inline(e)
502
503
  };
503
504
  }
504
505
  }
505
506
  text(e) {
506
- let t = this.rules.block.text.exec(e);
507
- if (t) return {
507
+ let s = this.rules.block.text.exec(e);
508
+ if (s) return {
508
509
  type: "text",
509
- raw: t[0],
510
- text: t[0],
511
- tokens: this.lexer.inline(t[0])
510
+ raw: s[0],
511
+ text: s[0],
512
+ tokens: this.lexer.inline(s[0])
512
513
  };
513
514
  }
514
515
  escape(e) {
515
- let t = this.rules.inline.escape.exec(e);
516
- if (t) return {
516
+ let s = this.rules.inline.escape.exec(e);
517
+ if (s) return {
517
518
  type: "escape",
518
- raw: t[0],
519
- text: t[1]
519
+ raw: s[0],
520
+ text: s[1]
520
521
  };
521
522
  }
522
523
  tag(e) {
523
- let t = this.rules.inline.tag.exec(e);
524
- if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
524
+ let s = this.rules.inline.tag.exec(e);
525
+ if (s) return !this.lexer.state.inLink && this.rules.other.startATag.test(s[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(s[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(s[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(s[0]) && (this.lexer.state.inRawBlock = !1), {
525
526
  type: "html",
526
- raw: t[0],
527
+ raw: s[0],
527
528
  inLink: this.lexer.state.inLink,
528
529
  inRawBlock: this.lexer.state.inRawBlock,
529
530
  block: !1,
530
- text: t[0]
531
+ text: s[0]
531
532
  };
532
533
  }
533
534
  link(e) {
534
- let t = this.rules.inline.link.exec(e);
535
- if (t) {
536
- let e = t[2].trim();
535
+ let s = this.rules.inline.link.exec(e);
536
+ if (s) {
537
+ let e = s[2].trim();
537
538
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
538
539
  if (!this.rules.other.endAngleBracket.test(e)) return;
539
- let t = W(e.slice(0, -1), "\\");
540
- if ((e.length - t.length) % 2 == 0) return;
540
+ let s = I(e.slice(0, -1), "\\");
541
+ if ((e.length - s.length) % 2 == 0) return;
541
542
  } else {
542
- let e = Ae(t[2], "()");
543
+ let e = de(s[2], "()");
543
544
  if (e === -2) return;
544
545
  if (e > -1) {
545
- let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
546
- t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
546
+ let c = (s[0].indexOf("!") === 0 ? 5 : 4) + s[1].length + e;
547
+ s[2] = s[2].substring(0, e), s[0] = s[0].substring(0, c).trim(), s[3] = "";
547
548
  }
548
549
  }
549
- let n = t[2], r = "";
550
+ let c = s[2], l = "";
550
551
  if (this.options.pedantic) {
551
- let e = this.rules.other.pedanticHrefTitle.exec(n);
552
- e && (n = e[1], r = e[3]);
553
- } else r = t[3] ? t[3].slice(1, -1) : "";
554
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), G(t, {
555
- href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
556
- title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
557
- }, t[0], this.lexer, this.rules);
552
+ let e = this.rules.other.pedanticHrefTitle.exec(c);
553
+ e && (c = e[1], l = e[3]);
554
+ } else l = s[3] ? s[3].slice(1, -1) : "";
555
+ return c = c.trim(), this.rules.other.startAngleBracket.test(c) && (c = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? c.slice(1) : c.slice(1, -1)), fe(s, {
556
+ href: c && c.replace(this.rules.inline.anyPunctuation, "$1"),
557
+ title: l && l.replace(this.rules.inline.anyPunctuation, "$1")
558
+ }, s[0], this.lexer, this.rules);
558
559
  }
559
560
  }
560
- reflink(e, t) {
561
- let n;
562
- if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
563
- let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
561
+ reflink(e, s) {
562
+ let c;
563
+ if ((c = this.rules.inline.reflink.exec(e)) || (c = this.rules.inline.nolink.exec(e))) {
564
+ let e = s[(c[2] || c[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
564
565
  if (!e) {
565
- let e = n[0].charAt(0);
566
+ let e = c[0].charAt(0);
566
567
  return {
567
568
  type: "text",
568
569
  raw: e,
569
570
  text: e
570
571
  };
571
572
  }
572
- return G(n, e, n[0], this.lexer, this.rules);
573
+ return fe(c, e, c[0], this.lexer, this.rules);
573
574
  }
574
575
  }
575
- emStrong(e, t, n = "") {
576
- let r = this.rules.inline.emStrongLDelim.exec(e);
577
- if (!(!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !n || this.rules.inline.punctuation.exec(n))) {
578
- let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
579
- for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) != null;) {
580
- if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
581
- if (a = [...i].length, r[3] || r[4]) {
582
- o += a;
576
+ emStrong(e, s, c = "") {
577
+ let l = this.rules.inline.emStrongLDelim.exec(e);
578
+ if (!(!l || !l[1] && !l[2] && !l[3] && !l[4] || l[4] && c.match(this.rules.other.unicodeAlphaNumeric)) && (!(l[1] || l[3]) || !c || this.rules.inline.punctuation.exec(c))) {
579
+ let c = [...l[0]].length - 1, u, d, f = c, p = 0, h = l[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
580
+ for (h.lastIndex = 0, s = s.slice(-1 * e.length + c); (l = h.exec(s)) !== null;) {
581
+ if (u = l[1] || l[2] || l[3] || l[4] || l[5] || l[6], !u) continue;
582
+ if (d = [...u].length, l[3] || l[4]) {
583
+ f += d;
583
584
  continue;
584
- } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
585
- s += a;
585
+ } else if ((l[5] || l[6]) && c % 3 && !((c + d) % 3)) {
586
+ p += d;
586
587
  continue;
587
588
  }
588
- if (o -= a, o > 0) continue;
589
- a = Math.min(a, a + o + s);
590
- let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
591
- if (Math.min(n, a) % 2) {
592
- let e = c.slice(1, -1);
589
+ if (f -= d, f > 0) continue;
590
+ d = Math.min(d, d + f + p);
591
+ let s = [...l[0]][0].length, h = e.slice(0, c + l.index + s + d);
592
+ if (Math.min(c, d) % 2) {
593
+ let e = h.slice(1, -1);
593
594
  return {
594
595
  type: "em",
595
- raw: c,
596
+ raw: h,
596
597
  text: e,
597
598
  tokens: this.lexer.inlineTokens(e)
598
599
  };
599
600
  }
600
- let l = c.slice(2, -2);
601
+ let S = h.slice(2, -2);
601
602
  return {
602
603
  type: "strong",
603
- raw: c,
604
- text: l,
605
- tokens: this.lexer.inlineTokens(l)
604
+ raw: h,
605
+ text: S,
606
+ tokens: this.lexer.inlineTokens(S)
606
607
  };
607
608
  }
608
609
  }
609
610
  }
610
611
  codespan(e) {
611
- let t = this.rules.inline.code.exec(e);
612
- if (t) {
613
- let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
614
- return n && r && (e = e.substring(1, e.length - 1)), {
612
+ let s = this.rules.inline.code.exec(e);
613
+ if (s) {
614
+ let e = s[2].replace(this.rules.other.newLineCharGlobal, " "), c = this.rules.other.nonSpaceChar.test(e), l = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
615
+ return c && l && (e = e.substring(1, e.length - 1)), {
615
616
  type: "codespan",
616
- raw: t[0],
617
+ raw: s[0],
617
618
  text: e
618
619
  };
619
620
  }
620
621
  }
621
622
  br(e) {
622
- let t = this.rules.inline.br.exec(e);
623
- if (t) return {
623
+ let s = this.rules.inline.br.exec(e);
624
+ if (s) return {
624
625
  type: "br",
625
- raw: t[0]
626
+ raw: s[0]
626
627
  };
627
628
  }
628
- del(e, t, n = "") {
629
- let r = this.rules.inline.delLDelim.exec(e);
630
- if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
631
- let n = [...r[0]].length - 1, i, a, o = n, s = this.rules.inline.delRDelim;
632
- for (s.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = s.exec(t)) != null;) {
633
- if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i || (a = [...i].length, a !== n)) continue;
634
- if (r[3] || r[4]) {
635
- o += a;
629
+ del(e, s, c = "") {
630
+ let l = this.rules.inline.delLDelim.exec(e);
631
+ if (l && (!l[1] || !c || this.rules.inline.punctuation.exec(c))) {
632
+ let c = [...l[0]].length - 1, u, d, f = c, p = this.rules.inline.delRDelim;
633
+ for (p.lastIndex = 0, s = s.slice(-1 * e.length + c); (l = p.exec(s)) !== null;) {
634
+ if (u = l[1] || l[2] || l[3] || l[4] || l[5] || l[6], !u || (d = [...u].length, d !== c)) continue;
635
+ if (l[3] || l[4]) {
636
+ f += d;
636
637
  continue;
637
638
  }
638
- if (o -= a, o > 0) continue;
639
- a = Math.min(a, a + o);
640
- let t = [...r[0]][0].length, s = e.slice(0, n + r.index + t + a), c = s.slice(n, -n);
639
+ if (f -= d, f > 0) continue;
640
+ d = Math.min(d, d + f);
641
+ let s = [...l[0]][0].length, p = e.slice(0, c + l.index + s + d), h = p.slice(c, -c);
641
642
  return {
642
643
  type: "del",
643
- raw: s,
644
- text: c,
645
- tokens: this.lexer.inlineTokens(c)
644
+ raw: p,
645
+ text: h,
646
+ tokens: this.lexer.inlineTokens(h)
646
647
  };
647
648
  }
648
649
  }
649
650
  }
650
651
  autolink(e) {
651
- let t = this.rules.inline.autolink.exec(e);
652
- if (t) {
653
- let e, n;
654
- return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
652
+ let s = this.rules.inline.autolink.exec(e);
653
+ if (s) {
654
+ let e, c;
655
+ return s[2] === "@" ? (e = s[1], c = "mailto:" + e) : (e = s[1], c = e), {
655
656
  type: "link",
656
- raw: t[0],
657
+ raw: s[0],
657
658
  text: e,
658
- href: n,
659
+ href: c,
659
660
  tokens: [{
660
661
  type: "text",
661
662
  raw: e,
@@ -665,22 +666,22 @@ ${c}` : c;
665
666
  }
666
667
  }
667
668
  url(e) {
668
- let t;
669
- if (t = this.rules.inline.url.exec(e)) {
670
- let e, n;
671
- if (t[2] === "@") e = t[0], n = "mailto:" + e;
669
+ let s;
670
+ if (s = this.rules.inline.url.exec(e)) {
671
+ let e, c;
672
+ if (s[2] === "@") e = s[0], c = "mailto:" + e;
672
673
  else {
673
- let r;
674
+ let l;
674
675
  do
675
- r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
676
- while (r !== t[0]);
677
- e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
676
+ l = s[0], s[0] = this.rules.inline._backpedal.exec(s[0])?.[0] ?? "";
677
+ while (l !== s[0]);
678
+ e = s[0], c = s[1] === "www." ? "http://" + s[0] : s[0];
678
679
  }
679
680
  return {
680
681
  type: "link",
681
- raw: t[0],
682
+ raw: s[0],
682
683
  text: e,
683
- href: n,
684
+ href: c,
684
685
  tokens: [{
685
686
  type: "text",
686
687
  raw: e,
@@ -690,239 +691,240 @@ ${c}` : c;
690
691
  }
691
692
  }
692
693
  inlineText(e) {
693
- let t = this.rules.inline.text.exec(e);
694
- if (t) {
694
+ let s = this.rules.inline.text.exec(e);
695
+ if (s) {
695
696
  let e = this.lexer.state.inRawBlock;
696
697
  return {
697
698
  type: "text",
698
- raw: t[0],
699
- text: t[0],
699
+ raw: s[0],
700
+ text: s[0],
700
701
  escaped: e
701
702
  };
702
703
  }
703
704
  }
704
- }, q = class e {
705
+ }, x = class e {
705
706
  tokens;
706
707
  options;
707
708
  state;
708
709
  inlineQueue;
709
710
  tokenizer;
710
711
  constructor(e) {
711
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || t, this.options.tokenizer = this.options.tokenizer || new K(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
712
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new w(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
712
713
  inLink: !1,
713
714
  inRawBlock: !1,
714
715
  top: !0
715
716
  };
716
- let n = {
717
- other: o,
718
- block: R.normal,
719
- inline: z.normal
717
+ let c = {
718
+ other: m,
719
+ block: B.normal,
720
+ inline: E.normal
720
721
  };
721
- this.options.pedantic ? (n.block = R.pedantic, n.inline = z.pedantic) : this.options.gfm && (n.block = R.gfm, this.options.breaks ? n.inline = z.breaks : n.inline = z.gfm), this.tokenizer.rules = n;
722
+ this.options.pedantic ? (c.block = B.pedantic, c.inline = E.pedantic) : this.options.gfm && (c.block = B.gfm, this.options.breaks ? c.inline = E.breaks : c.inline = E.gfm), this.tokenizer.rules = c;
722
723
  }
723
724
  static get rules() {
724
725
  return {
725
- block: R,
726
- inline: z
726
+ block: B,
727
+ inline: E
727
728
  };
728
729
  }
729
- static lex(t, n) {
730
- return new e(n).lex(t);
730
+ static lex(s, c) {
731
+ return new e(c).lex(s);
731
732
  }
732
- static lexInline(t, n) {
733
- return new e(n).inlineTokens(t);
733
+ static lexInline(s, c) {
734
+ return new e(c).inlineTokens(s);
734
735
  }
735
736
  lex(e) {
736
- e = e.replace(o.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
737
+ e = e.replace(m.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
737
738
  for (let e = 0; e < this.inlineQueue.length; e++) {
738
- let t = this.inlineQueue[e];
739
- this.inlineTokens(t.src, t.tokens);
739
+ let s = this.inlineQueue[e];
740
+ this.inlineTokens(s.src, s.tokens);
740
741
  }
741
742
  return this.inlineQueue = [], this.tokens;
742
743
  }
743
- blockTokens(e, t = [], n = !1) {
744
- for (this.options.pedantic && (e = e.replace(o.tabCharGlobal, " ").replace(o.spaceLine, "")); e;) {
745
- let r;
746
- if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
747
- if (r = this.tokenizer.space(e)) {
748
- e = e.substring(r.raw.length);
749
- let n = t.at(-1);
750
- r.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(r);
744
+ blockTokens(e, s = [], c = !1) {
745
+ for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e;) {
746
+ let l;
747
+ if (this.options.extensions?.block?.some((c) => (l = c.call({ lexer: this }, e, s)) ? (e = e.substring(l.raw.length), s.push(l), !0) : !1)) continue;
748
+ if (l = this.tokenizer.space(e)) {
749
+ e = e.substring(l.raw.length);
750
+ let c = s.at(-1);
751
+ l.raw.length === 1 && c !== void 0 ? c.raw += "\n" : s.push(l);
751
752
  continue;
752
753
  }
753
- if (r = this.tokenizer.code(e)) {
754
- e = e.substring(r.raw.length);
755
- let n = t.at(-1);
756
- n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
754
+ if (l = this.tokenizer.code(e)) {
755
+ e = e.substring(l.raw.length);
756
+ let c = s.at(-1);
757
+ c?.type === "paragraph" || c?.type === "text" ? (c.raw += (c.raw.endsWith("\n") ? "" : "\n") + l.raw, c.text += "\n" + l.text, this.inlineQueue.at(-1).src = c.text) : s.push(l);
757
758
  continue;
758
759
  }
759
- if (r = this.tokenizer.fences(e)) {
760
- e = e.substring(r.raw.length), t.push(r);
760
+ if (l = this.tokenizer.fences(e)) {
761
+ e = e.substring(l.raw.length), s.push(l);
761
762
  continue;
762
763
  }
763
- if (r = this.tokenizer.heading(e)) {
764
- e = e.substring(r.raw.length), t.push(r);
764
+ if (l = this.tokenizer.heading(e)) {
765
+ e = e.substring(l.raw.length), s.push(l);
765
766
  continue;
766
767
  }
767
- if (r = this.tokenizer.hr(e)) {
768
- e = e.substring(r.raw.length), t.push(r);
768
+ if (l = this.tokenizer.hr(e)) {
769
+ e = e.substring(l.raw.length), s.push(l);
769
770
  continue;
770
771
  }
771
- if (r = this.tokenizer.blockquote(e)) {
772
- e = e.substring(r.raw.length), t.push(r);
772
+ if (l = this.tokenizer.blockquote(e)) {
773
+ e = e.substring(l.raw.length), s.push(l);
773
774
  continue;
774
775
  }
775
- if (r = this.tokenizer.list(e)) {
776
- e = e.substring(r.raw.length), t.push(r);
776
+ if (l = this.tokenizer.list(e)) {
777
+ e = e.substring(l.raw.length), s.push(l);
777
778
  continue;
778
779
  }
779
- if (r = this.tokenizer.html(e)) {
780
- e = e.substring(r.raw.length), t.push(r);
780
+ if (l = this.tokenizer.html(e)) {
781
+ e = e.substring(l.raw.length), s.push(l);
781
782
  continue;
782
783
  }
783
- if (r = this.tokenizer.def(e)) {
784
- e = e.substring(r.raw.length);
785
- let n = t.at(-1);
786
- n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = {
787
- href: r.href,
788
- title: r.title
789
- }, t.push(r));
784
+ if (l = this.tokenizer.def(e)) {
785
+ e = e.substring(l.raw.length);
786
+ let c = s.at(-1);
787
+ c?.type === "paragraph" || c?.type === "text" ? (c.raw += (c.raw.endsWith("\n") ? "" : "\n") + l.raw, c.text += "\n" + l.raw, this.inlineQueue.at(-1).src = c.text) : this.tokens.links[l.tag] || (this.tokens.links[l.tag] = {
788
+ href: l.href,
789
+ title: l.title
790
+ }, s.push(l));
790
791
  continue;
791
792
  }
792
- if (r = this.tokenizer.table(e)) {
793
- e = e.substring(r.raw.length), t.push(r);
793
+ if (l = this.tokenizer.table(e)) {
794
+ e = e.substring(l.raw.length), s.push(l);
794
795
  continue;
795
796
  }
796
- if (r = this.tokenizer.lheading(e)) {
797
- e = e.substring(r.raw.length), t.push(r);
797
+ if (l = this.tokenizer.lheading(e)) {
798
+ e = e.substring(l.raw.length), s.push(l);
798
799
  continue;
799
800
  }
800
- let i = e;
801
+ let u = e;
801
802
  if (this.options.extensions?.startBlock) {
802
- let t = Infinity, n = e.slice(1), r;
803
+ let s = Infinity, c = e.slice(1), l;
803
804
  this.options.extensions.startBlock.forEach((e) => {
804
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
805
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
805
+ l = e.call({ lexer: this }, c), typeof l == "number" && l >= 0 && (s = Math.min(s, l));
806
+ }), s < Infinity && s >= 0 && (u = e.substring(0, s + 1));
806
807
  }
807
- if (this.state.top && (r = this.tokenizer.paragraph(i))) {
808
- let a = t.at(-1);
809
- n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
808
+ if (this.state.top && (l = this.tokenizer.paragraph(u))) {
809
+ let d = s.at(-1);
810
+ c && d?.type === "paragraph" ? (d.raw += (d.raw.endsWith("\n") ? "" : "\n") + l.raw, d.text += "\n" + l.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = d.text) : s.push(l), c = u.length !== e.length, e = e.substring(l.raw.length);
810
811
  continue;
811
812
  }
812
- if (r = this.tokenizer.text(e)) {
813
- e = e.substring(r.raw.length);
814
- let n = t.at(-1);
815
- n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
813
+ if (l = this.tokenizer.text(e)) {
814
+ e = e.substring(l.raw.length);
815
+ let c = s.at(-1);
816
+ c?.type === "text" ? (c.raw += (c.raw.endsWith("\n") ? "" : "\n") + l.raw, c.text += "\n" + l.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = c.text) : s.push(l);
816
817
  continue;
817
818
  }
818
819
  if (e) {
819
- let t = "Infinite loop on byte: " + e.charCodeAt(0);
820
+ let s = "Infinite loop on byte: " + e.charCodeAt(0);
820
821
  if (this.options.silent) {
821
- console.error(t);
822
+ console.error(s);
822
823
  break;
823
- } else throw Error(t);
824
+ } else throw Error(s);
824
825
  }
825
826
  }
826
- return this.state.top = !0, t;
827
+ return this.state.top = !0, s;
827
828
  }
828
- inline(e, t = []) {
829
+ inline(e, s = []) {
829
830
  return this.inlineQueue.push({
830
831
  src: e,
831
- tokens: t
832
- }), t;
832
+ tokens: s
833
+ }), s;
833
834
  }
834
- inlineTokens(e, t = []) {
835
- let n = e, r = null;
835
+ inlineTokens(e, s = []) {
836
+ this.tokenizer.lexer = this;
837
+ let c = e, l = null;
836
838
  if (this.tokens.links) {
837
839
  let e = Object.keys(this.tokens.links);
838
- if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
840
+ if (e.length > 0) for (; (l = this.tokenizer.rules.inline.reflinkSearch.exec(c)) !== null;) e.includes(l[0].slice(l[0].lastIndexOf("[") + 1, -1)) && (c = c.slice(0, l.index) + "[" + "a".repeat(l[0].length - 2) + "]" + c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
839
841
  }
840
- for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
841
- let i;
842
- for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
843
- n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
844
- let a = !1, o = "";
842
+ for (; (l = this.tokenizer.rules.inline.anyPunctuation.exec(c)) !== null;) c = c.slice(0, l.index) + "++" + c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
843
+ let u;
844
+ for (; (l = this.tokenizer.rules.inline.blockSkip.exec(c)) !== null;) u = l[2] ? l[2].length : 0, c = c.slice(0, l.index + u) + "[" + "a".repeat(l[0].length - u - 2) + "]" + c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
845
+ c = this.options.hooks?.emStrongMask?.call({ lexer: this }, c) ?? c;
846
+ let d = !1, f = "";
845
847
  for (; e;) {
846
- a || (o = ""), a = !1;
847
- let r;
848
- if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
849
- if (r = this.tokenizer.escape(e)) {
850
- e = e.substring(r.raw.length), t.push(r);
848
+ d || (f = ""), d = !1;
849
+ let l;
850
+ if (this.options.extensions?.inline?.some((c) => (l = c.call({ lexer: this }, e, s)) ? (e = e.substring(l.raw.length), s.push(l), !0) : !1)) continue;
851
+ if (l = this.tokenizer.escape(e)) {
852
+ e = e.substring(l.raw.length), s.push(l);
851
853
  continue;
852
854
  }
853
- if (r = this.tokenizer.tag(e)) {
854
- e = e.substring(r.raw.length), t.push(r);
855
+ if (l = this.tokenizer.tag(e)) {
856
+ e = e.substring(l.raw.length), s.push(l);
855
857
  continue;
856
858
  }
857
- if (r = this.tokenizer.link(e)) {
858
- e = e.substring(r.raw.length), t.push(r);
859
+ if (l = this.tokenizer.link(e)) {
860
+ e = e.substring(l.raw.length), s.push(l);
859
861
  continue;
860
862
  }
861
- if (r = this.tokenizer.reflink(e, this.tokens.links)) {
862
- e = e.substring(r.raw.length);
863
- let n = t.at(-1);
864
- r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
863
+ if (l = this.tokenizer.reflink(e, this.tokens.links)) {
864
+ e = e.substring(l.raw.length);
865
+ let c = s.at(-1);
866
+ l.type === "text" && c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
865
867
  continue;
866
868
  }
867
- if (r = this.tokenizer.emStrong(e, n, o)) {
868
- e = e.substring(r.raw.length), t.push(r);
869
+ if (l = this.tokenizer.emStrong(e, c, f)) {
870
+ e = e.substring(l.raw.length), s.push(l);
869
871
  continue;
870
872
  }
871
- if (r = this.tokenizer.codespan(e)) {
872
- e = e.substring(r.raw.length), t.push(r);
873
+ if (l = this.tokenizer.codespan(e)) {
874
+ e = e.substring(l.raw.length), s.push(l);
873
875
  continue;
874
876
  }
875
- if (r = this.tokenizer.br(e)) {
876
- e = e.substring(r.raw.length), t.push(r);
877
+ if (l = this.tokenizer.br(e)) {
878
+ e = e.substring(l.raw.length), s.push(l);
877
879
  continue;
878
880
  }
879
- if (r = this.tokenizer.del(e, n, o)) {
880
- e = e.substring(r.raw.length), t.push(r);
881
+ if (l = this.tokenizer.del(e, c, f)) {
882
+ e = e.substring(l.raw.length), s.push(l);
881
883
  continue;
882
884
  }
883
- if (r = this.tokenizer.autolink(e)) {
884
- e = e.substring(r.raw.length), t.push(r);
885
+ if (l = this.tokenizer.autolink(e)) {
886
+ e = e.substring(l.raw.length), s.push(l);
885
887
  continue;
886
888
  }
887
- if (!this.state.inLink && (r = this.tokenizer.url(e))) {
888
- e = e.substring(r.raw.length), t.push(r);
889
+ if (!this.state.inLink && (l = this.tokenizer.url(e))) {
890
+ e = e.substring(l.raw.length), s.push(l);
889
891
  continue;
890
892
  }
891
- let i = e;
893
+ let u = e;
892
894
  if (this.options.extensions?.startInline) {
893
- let t = Infinity, n = e.slice(1), r;
895
+ let s = Infinity, c = e.slice(1), l;
894
896
  this.options.extensions.startInline.forEach((e) => {
895
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
896
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
897
+ l = e.call({ lexer: this }, c), typeof l == "number" && l >= 0 && (s = Math.min(s, l));
898
+ }), s < Infinity && s >= 0 && (u = e.substring(0, s + 1));
897
899
  }
898
- if (r = this.tokenizer.inlineText(i)) {
899
- e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
900
- let n = t.at(-1);
901
- n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
900
+ if (l = this.tokenizer.inlineText(u)) {
901
+ e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (f = l.raw.slice(-1)), d = !0;
902
+ let c = s.at(-1);
903
+ c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
902
904
  continue;
903
905
  }
904
906
  if (e) {
905
- let t = "Infinite loop on byte: " + e.charCodeAt(0);
907
+ let s = "Infinite loop on byte: " + e.charCodeAt(0);
906
908
  if (this.options.silent) {
907
- console.error(t);
909
+ console.error(s);
908
910
  break;
909
- } else throw Error(t);
911
+ } else throw Error(s);
910
912
  }
911
913
  }
912
- return t;
914
+ return s;
913
915
  }
914
- }, J = class {
916
+ }, y = class {
915
917
  options;
916
918
  parser;
917
919
  constructor(e) {
918
- this.options = e || t;
920
+ this.options = e || O;
919
921
  }
920
922
  space(e) {
921
923
  return "";
922
924
  }
923
- code({ text: e, lang: t, escaped: n }) {
924
- let r = (t || "").match(o.notSpaceStart)?.[0], i = e.replace(o.endingNewline, "") + "\n";
925
- return r ? "<pre><code class=\"language-" + V(r) + "\">" + (n ? i : V(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : V(i, !0)) + "</code></pre>\n";
925
+ code({ text: e, lang: s, escaped: c }) {
926
+ let l = (s || "").match(m.notSpaceStart)?.[0], u = e.replace(m.endingNewline, "") + "\n";
927
+ return l ? "<pre><code class=\"language-" + T(l) + "\">" + (c ? u : T(u, !0)) + "</code></pre>\n" : "<pre><code>" + (c ? u : T(u, !0)) + "</code></pre>\n";
926
928
  }
927
929
  blockquote({ tokens: e }) {
928
930
  return `<blockquote>
@@ -935,21 +937,21 @@ ${this.parser.parse(e)}</blockquote>
935
937
  def(e) {
936
938
  return "";
937
939
  }
938
- heading({ tokens: e, depth: t }) {
939
- return `<h${t}>${this.parser.parseInline(e)}</h${t}>
940
+ heading({ tokens: e, depth: s }) {
941
+ return `<h${s}>${this.parser.parseInline(e)}</h${s}>
940
942
  `;
941
943
  }
942
944
  hr(e) {
943
945
  return "<hr>\n";
944
946
  }
945
947
  list(e) {
946
- let t = e.ordered, n = e.start, r = "";
947
- for (let t = 0; t < e.items.length; t++) {
948
- let n = e.items[t];
949
- r += this.listitem(n);
948
+ let s = e.ordered, c = e.start, l = "";
949
+ for (let s = 0; s < e.items.length; s++) {
950
+ let c = e.items[s];
951
+ l += this.listitem(c);
950
952
  }
951
- let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
952
- return "<" + i + a + ">\n" + r + "</" + i + ">\n";
953
+ let u = s ? "ol" : "ul", d = s && c !== 1 ? " start=\"" + c + "\"" : "";
954
+ return "<" + u + d + ">\n" + l + "</" + u + ">\n";
953
955
  }
954
956
  listitem(e) {
955
957
  return `<li>${this.parser.parse(e.tokens)}</li>
@@ -963,17 +965,17 @@ ${this.parser.parse(e)}</blockquote>
963
965
  `;
964
966
  }
965
967
  table(e) {
966
- let t = "", n = "";
967
- for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
968
- t += this.tablerow({ text: n });
969
- let r = "";
970
- for (let t = 0; t < e.rows.length; t++) {
971
- let i = e.rows[t];
972
- n = "";
973
- for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
974
- r += this.tablerow({ text: n });
968
+ let s = "", c = "";
969
+ for (let s = 0; s < e.header.length; s++) c += this.tablecell(e.header[s]);
970
+ s += this.tablerow({ text: c });
971
+ let l = "";
972
+ for (let s = 0; s < e.rows.length; s++) {
973
+ let u = e.rows[s];
974
+ c = "";
975
+ for (let e = 0; e < u.length; e++) c += this.tablecell(u[e]);
976
+ l += this.tablerow({ text: c });
975
977
  }
976
- return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
978
+ return l &&= `<tbody>${l}</tbody>`, "<table>\n<thead>\n" + s + "</thead>\n" + l + "</table>\n";
977
979
  }
978
980
  tablerow({ text: e }) {
979
981
  return `<tr>
@@ -981,8 +983,8 @@ ${e}</tr>
981
983
  `;
982
984
  }
983
985
  tablecell(e) {
984
- let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
985
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
986
+ let s = this.parser.parseInline(e.tokens), c = e.header ? "th" : "td";
987
+ return (e.align ? `<${c} align="${e.align}">` : `<${c}>`) + s + `</${c}>
986
988
  `;
987
989
  }
988
990
  strong({ tokens: e }) {
@@ -992,7 +994,7 @@ ${e}</tr>
992
994
  return `<em>${this.parser.parseInline(e)}</em>`;
993
995
  }
994
996
  codespan({ text: e }) {
995
- return `<code>${V(e, !0)}</code>`;
997
+ return `<code>${T(e, !0)}</code>`;
996
998
  }
997
999
  br(e) {
998
1000
  return "<br>";
@@ -1000,25 +1002,25 @@ ${e}</tr>
1000
1002
  del({ tokens: e }) {
1001
1003
  return `<del>${this.parser.parseInline(e)}</del>`;
1002
1004
  }
1003
- link({ href: e, title: t, tokens: n }) {
1004
- let r = this.parser.parseInline(n), i = H(e);
1005
- if (i === null) return r;
1006
- e = i;
1007
- let a = "<a href=\"" + e + "\"";
1008
- return t && (a += " title=\"" + V(t) + "\""), a += ">" + r + "</a>", a;
1009
- }
1010
- image({ href: e, title: t, text: n, tokens: r }) {
1011
- r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1012
- let i = H(e);
1013
- if (i === null) return V(n);
1014
- e = i;
1015
- let a = `<img src="${e}" alt="${V(n)}"`;
1016
- return t && (a += ` title="${V(t)}"`), a += ">", a;
1005
+ link({ href: e, title: s, tokens: c }) {
1006
+ let l = this.parser.parseInline(c), u = J(e);
1007
+ if (u === null) return l;
1008
+ e = u;
1009
+ let d = "<a href=\"" + e + "\"";
1010
+ return s && (d += " title=\"" + T(s) + "\""), d += ">" + l + "</a>", d;
1011
+ }
1012
+ image({ href: e, title: s, text: c, tokens: l }) {
1013
+ l && (c = this.parser.parseInline(l, this.parser.textRenderer));
1014
+ let u = J(e);
1015
+ if (u === null) return T(c);
1016
+ e = u;
1017
+ let d = `<img src="${e}" alt="${T(c)}"`;
1018
+ return s && (d += ` title="${T(s)}"`), d += ">", d;
1017
1019
  }
1018
1020
  text(e) {
1019
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : V(e.text);
1021
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : T(e.text);
1020
1022
  }
1021
- }, Y = class {
1023
+ }, $ = class {
1022
1024
  strong({ text: e }) {
1023
1025
  return e;
1024
1026
  }
@@ -1049,26 +1051,27 @@ ${e}</tr>
1049
1051
  checkbox({ raw: e }) {
1050
1052
  return e;
1051
1053
  }
1052
- }, X = class e {
1054
+ }, b = class e {
1053
1055
  options;
1054
1056
  renderer;
1055
1057
  textRenderer;
1056
1058
  constructor(e) {
1057
- this.options = e || t, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Y();
1059
+ this.options = e || O, this.options.renderer = this.options.renderer || new y(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
1058
1060
  }
1059
- static parse(t, n) {
1060
- return new e(n).parse(t);
1061
+ static parse(s, c) {
1062
+ return new e(c).parse(s);
1061
1063
  }
1062
- static parseInline(t, n) {
1063
- return new e(n).parseInline(t);
1064
+ static parseInline(s, c) {
1065
+ return new e(c).parseInline(s);
1064
1066
  }
1065
1067
  parse(e) {
1066
- let t = "";
1067
- for (let n = 0; n < e.length; n++) {
1068
- let r = e[n];
1069
- if (this.options.extensions?.renderers?.[r.type]) {
1070
- let e = r, n = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1071
- if (n !== !1 || ![
1068
+ this.renderer.parser = this;
1069
+ let s = "";
1070
+ for (let c = 0; c < e.length; c++) {
1071
+ let l = e[c];
1072
+ if (this.options.extensions?.renderers?.[l.type]) {
1073
+ let e = l, c = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1074
+ if (c !== !1 || ![
1072
1075
  "space",
1073
1076
  "hr",
1074
1077
  "heading",
@@ -1081,63 +1084,64 @@ ${e}</tr>
1081
1084
  "paragraph",
1082
1085
  "text"
1083
1086
  ].includes(e.type)) {
1084
- t += n || "";
1087
+ s += c || "";
1085
1088
  continue;
1086
1089
  }
1087
1090
  }
1088
- let i = r;
1089
- switch (i.type) {
1091
+ let u = l;
1092
+ switch (u.type) {
1090
1093
  case "space":
1091
- t += this.renderer.space(i);
1094
+ s += this.renderer.space(u);
1092
1095
  break;
1093
1096
  case "hr":
1094
- t += this.renderer.hr(i);
1097
+ s += this.renderer.hr(u);
1095
1098
  break;
1096
1099
  case "heading":
1097
- t += this.renderer.heading(i);
1100
+ s += this.renderer.heading(u);
1098
1101
  break;
1099
1102
  case "code":
1100
- t += this.renderer.code(i);
1103
+ s += this.renderer.code(u);
1101
1104
  break;
1102
1105
  case "table":
1103
- t += this.renderer.table(i);
1106
+ s += this.renderer.table(u);
1104
1107
  break;
1105
1108
  case "blockquote":
1106
- t += this.renderer.blockquote(i);
1109
+ s += this.renderer.blockquote(u);
1107
1110
  break;
1108
1111
  case "list":
1109
- t += this.renderer.list(i);
1112
+ s += this.renderer.list(u);
1110
1113
  break;
1111
1114
  case "checkbox":
1112
- t += this.renderer.checkbox(i);
1115
+ s += this.renderer.checkbox(u);
1113
1116
  break;
1114
1117
  case "html":
1115
- t += this.renderer.html(i);
1118
+ s += this.renderer.html(u);
1116
1119
  break;
1117
1120
  case "def":
1118
- t += this.renderer.def(i);
1121
+ s += this.renderer.def(u);
1119
1122
  break;
1120
1123
  case "paragraph":
1121
- t += this.renderer.paragraph(i);
1124
+ s += this.renderer.paragraph(u);
1122
1125
  break;
1123
1126
  case "text":
1124
- t += this.renderer.text(i);
1127
+ s += this.renderer.text(u);
1125
1128
  break;
1126
1129
  default: {
1127
- let e = "Token with \"" + i.type + "\" type was not found.";
1130
+ let e = "Token with \"" + u.type + "\" type was not found.";
1128
1131
  if (this.options.silent) return console.error(e), "";
1129
1132
  throw Error(e);
1130
1133
  }
1131
1134
  }
1132
1135
  }
1133
- return t;
1134
- }
1135
- parseInline(e, t = this.renderer) {
1136
- let n = "";
1137
- for (let r = 0; r < e.length; r++) {
1138
- let i = e[r];
1139
- if (this.options.extensions?.renderers?.[i.type]) {
1140
- let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1136
+ return s;
1137
+ }
1138
+ parseInline(e, s = this.renderer) {
1139
+ this.renderer.parser = this;
1140
+ let c = "";
1141
+ for (let l = 0; l < e.length; l++) {
1142
+ let u = e[l];
1143
+ if (this.options.extensions?.renderers?.[u.type]) {
1144
+ let e = this.options.extensions.renderers[u.type].call({ parser: this }, u);
1141
1145
  if (e !== !1 || ![
1142
1146
  "escape",
1143
1147
  "html",
@@ -1149,60 +1153,60 @@ ${e}</tr>
1149
1153
  "br",
1150
1154
  "del",
1151
1155
  "text"
1152
- ].includes(i.type)) {
1153
- n += e || "";
1156
+ ].includes(u.type)) {
1157
+ c += e || "";
1154
1158
  continue;
1155
1159
  }
1156
1160
  }
1157
- let a = i;
1158
- switch (a.type) {
1161
+ let d = u;
1162
+ switch (d.type) {
1159
1163
  case "escape":
1160
- n += t.text(a);
1164
+ c += s.text(d);
1161
1165
  break;
1162
1166
  case "html":
1163
- n += t.html(a);
1167
+ c += s.html(d);
1164
1168
  break;
1165
1169
  case "link":
1166
- n += t.link(a);
1170
+ c += s.link(d);
1167
1171
  break;
1168
1172
  case "image":
1169
- n += t.image(a);
1173
+ c += s.image(d);
1170
1174
  break;
1171
1175
  case "checkbox":
1172
- n += t.checkbox(a);
1176
+ c += s.checkbox(d);
1173
1177
  break;
1174
1178
  case "strong":
1175
- n += t.strong(a);
1179
+ c += s.strong(d);
1176
1180
  break;
1177
1181
  case "em":
1178
- n += t.em(a);
1182
+ c += s.em(d);
1179
1183
  break;
1180
1184
  case "codespan":
1181
- n += t.codespan(a);
1185
+ c += s.codespan(d);
1182
1186
  break;
1183
1187
  case "br":
1184
- n += t.br(a);
1188
+ c += s.br(d);
1185
1189
  break;
1186
1190
  case "del":
1187
- n += t.del(a);
1191
+ c += s.del(d);
1188
1192
  break;
1189
1193
  case "text":
1190
- n += t.text(a);
1194
+ c += s.text(d);
1191
1195
  break;
1192
1196
  default: {
1193
- let e = "Token with \"" + a.type + "\" type was not found.";
1197
+ let e = "Token with \"" + d.type + "\" type was not found.";
1194
1198
  if (this.options.silent) return console.error(e), "";
1195
1199
  throw Error(e);
1196
1200
  }
1197
1201
  }
1198
1202
  }
1199
- return n;
1203
+ return c;
1200
1204
  }
1201
- }, Z = class {
1205
+ }, P = class {
1202
1206
  options;
1203
1207
  block;
1204
1208
  constructor(e) {
1205
- this.options = e || t;
1209
+ this.options = e || O;
1206
1210
  }
1207
1211
  static passThroughHooks = new Set([
1208
1212
  "preprocess",
@@ -1227,136 +1231,136 @@ ${e}</tr>
1227
1231
  emStrongMask(e) {
1228
1232
  return e;
1229
1233
  }
1230
- provideLexer() {
1231
- return this.block ? q.lex : q.lexInline;
1234
+ provideLexer(e = this.block) {
1235
+ return e ? x.lex : x.lexInline;
1232
1236
  }
1233
- provideParser() {
1234
- return this.block ? X.parse : X.parseInline;
1237
+ provideParser(e = this.block) {
1238
+ return e ? b.parse : b.parseInline;
1235
1239
  }
1236
- }, Q = new class {
1237
- defaults = e();
1240
+ }, L = new class {
1241
+ defaults = M();
1238
1242
  options = this.setOptions;
1239
1243
  parse = this.parseMarkdown(!0);
1240
1244
  parseInline = this.parseMarkdown(!1);
1241
- Parser = X;
1242
- Renderer = J;
1243
- TextRenderer = Y;
1244
- Lexer = q;
1245
- Tokenizer = K;
1246
- Hooks = Z;
1245
+ Parser = b;
1246
+ Renderer = y;
1247
+ TextRenderer = $;
1248
+ Lexer = x;
1249
+ Tokenizer = w;
1250
+ Hooks = P;
1247
1251
  constructor(...e) {
1248
1252
  this.use(...e);
1249
1253
  }
1250
- walkTokens(e, t) {
1251
- let n = [];
1252
- for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
1254
+ walkTokens(e, s) {
1255
+ let c = [];
1256
+ for (let l of e) switch (c = c.concat(s.call(this, l)), l.type) {
1253
1257
  case "table": {
1254
- let e = r;
1255
- for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
1256
- for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
1258
+ let e = l;
1259
+ for (let l of e.header) c = c.concat(this.walkTokens(l.tokens, s));
1260
+ for (let l of e.rows) for (let e of l) c = c.concat(this.walkTokens(e.tokens, s));
1257
1261
  break;
1258
1262
  }
1259
1263
  case "list": {
1260
- let e = r;
1261
- n = n.concat(this.walkTokens(e.items, t));
1264
+ let e = l;
1265
+ c = c.concat(this.walkTokens(e.items, s));
1262
1266
  break;
1263
1267
  }
1264
1268
  default: {
1265
- let e = r;
1266
- this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1267
- let i = e[r].flat(Infinity);
1268
- n = n.concat(this.walkTokens(i, t));
1269
- }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1269
+ let e = l;
1270
+ this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((l) => {
1271
+ let u = e[l].flat(Infinity);
1272
+ c = c.concat(this.walkTokens(u, s));
1273
+ }) : e.tokens && (c = c.concat(this.walkTokens(e.tokens, s)));
1270
1274
  }
1271
1275
  }
1272
- return n;
1276
+ return c;
1273
1277
  }
1274
1278
  use(...e) {
1275
- let t = this.defaults.extensions || {
1279
+ let s = this.defaults.extensions || {
1276
1280
  renderers: {},
1277
1281
  childTokens: {}
1278
1282
  };
1279
1283
  return e.forEach((e) => {
1280
- let n = { ...e };
1281
- if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
1284
+ let c = { ...e };
1285
+ if (c.async = this.defaults.async || c.async || !1, e.extensions && (e.extensions.forEach((e) => {
1282
1286
  if (!e.name) throw Error("extension name required");
1283
1287
  if ("renderer" in e) {
1284
- let n = t.renderers[e.name];
1285
- n ? t.renderers[e.name] = function(...t) {
1286
- let r = e.renderer.apply(this, t);
1287
- return r === !1 && (r = n.apply(this, t)), r;
1288
- } : t.renderers[e.name] = e.renderer;
1288
+ let c = s.renderers[e.name];
1289
+ c ? s.renderers[e.name] = function(...s) {
1290
+ let l = e.renderer.apply(this, s);
1291
+ return l === !1 && (l = c.apply(this, s)), l;
1292
+ } : s.renderers[e.name] = e.renderer;
1289
1293
  }
1290
1294
  if ("tokenizer" in e) {
1291
1295
  if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1292
- let n = t[e.level];
1293
- n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
1296
+ let c = s[e.level];
1297
+ c ? c.unshift(e.tokenizer) : s[e.level] = [e.tokenizer], e.start && (e.level === "block" ? s.startBlock ? s.startBlock.push(e.start) : s.startBlock = [e.start] : e.level === "inline" && (s.startInline ? s.startInline.push(e.start) : s.startInline = [e.start]));
1294
1298
  }
1295
- "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1296
- }), n.extensions = t), e.renderer) {
1297
- let t = this.defaults.renderer || new J(this.defaults);
1298
- for (let n in e.renderer) {
1299
- if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1300
- if (["options", "parser"].includes(n)) continue;
1301
- let r = n, i = e.renderer[r], a = t[r];
1302
- t[r] = (...e) => {
1303
- let n = i.apply(t, e);
1304
- return n === !1 && (n = a.apply(t, e)), n || "";
1299
+ "childTokens" in e && e.childTokens && (s.childTokens[e.name] = e.childTokens);
1300
+ }), c.extensions = s), e.renderer) {
1301
+ let s = this.defaults.renderer || new y(this.defaults);
1302
+ for (let c in e.renderer) {
1303
+ if (!(c in s)) throw Error(`renderer '${c}' does not exist`);
1304
+ if (["options", "parser"].includes(c)) continue;
1305
+ let l = c, u = e.renderer[l], d = s[l];
1306
+ s[l] = (...e) => {
1307
+ let c = u.apply(s, e);
1308
+ return c === !1 && (c = d.apply(s, e)), c || "";
1305
1309
  };
1306
1310
  }
1307
- n.renderer = t;
1311
+ c.renderer = s;
1308
1312
  }
1309
1313
  if (e.tokenizer) {
1310
- let t = this.defaults.tokenizer || new K(this.defaults);
1311
- for (let n in e.tokenizer) {
1312
- if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1314
+ let s = this.defaults.tokenizer || new w(this.defaults);
1315
+ for (let c in e.tokenizer) {
1316
+ if (!(c in s)) throw Error(`tokenizer '${c}' does not exist`);
1313
1317
  if ([
1314
1318
  "options",
1315
1319
  "rules",
1316
1320
  "lexer"
1317
- ].includes(n)) continue;
1318
- let r = n, i = e.tokenizer[r], a = t[r];
1319
- t[r] = (...e) => {
1320
- let n = i.apply(t, e);
1321
- return n === !1 && (n = a.apply(t, e)), n;
1321
+ ].includes(c)) continue;
1322
+ let l = c, u = e.tokenizer[l], d = s[l];
1323
+ s[l] = (...e) => {
1324
+ let c = u.apply(s, e);
1325
+ return c === !1 && (c = d.apply(s, e)), c;
1322
1326
  };
1323
1327
  }
1324
- n.tokenizer = t;
1328
+ c.tokenizer = s;
1325
1329
  }
1326
1330
  if (e.hooks) {
1327
- let t = this.defaults.hooks || new Z();
1328
- for (let n in e.hooks) {
1329
- if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1330
- if (["options", "block"].includes(n)) continue;
1331
- let r = n, i = e.hooks[r], a = t[r];
1332
- Z.passThroughHooks.has(n) ? t[r] = (e) => {
1333
- if (this.defaults.async && Z.passThroughHooksRespectAsync.has(n)) return (async () => {
1334
- let n = await i.call(t, e);
1335
- return a.call(t, n);
1331
+ let s = this.defaults.hooks || new P();
1332
+ for (let c in e.hooks) {
1333
+ if (!(c in s)) throw Error(`hook '${c}' does not exist`);
1334
+ if (["options", "block"].includes(c)) continue;
1335
+ let l = c, u = e.hooks[l], d = s[l];
1336
+ P.passThroughHooks.has(c) ? s[l] = (e) => {
1337
+ if (this.defaults.async && P.passThroughHooksRespectAsync.has(c)) return (async () => {
1338
+ let c = await u.call(s, e);
1339
+ return d.call(s, c);
1336
1340
  })();
1337
- let r = i.call(t, e);
1338
- return a.call(t, r);
1339
- } : t[r] = (...e) => {
1341
+ let l = u.call(s, e);
1342
+ return d.call(s, l);
1343
+ } : s[l] = (...e) => {
1340
1344
  if (this.defaults.async) return (async () => {
1341
- let n = await i.apply(t, e);
1342
- return n === !1 && (n = await a.apply(t, e)), n;
1345
+ let c = await u.apply(s, e);
1346
+ return c === !1 && (c = await d.apply(s, e)), c;
1343
1347
  })();
1344
- let n = i.apply(t, e);
1345
- return n === !1 && (n = a.apply(t, e)), n;
1348
+ let c = u.apply(s, e);
1349
+ return c === !1 && (c = d.apply(s, e)), c;
1346
1350
  };
1347
1351
  }
1348
- n.hooks = t;
1352
+ c.hooks = s;
1349
1353
  }
1350
1354
  if (e.walkTokens) {
1351
- let t = this.defaults.walkTokens, r = e.walkTokens;
1352
- n.walkTokens = function(e) {
1353
- let n = [];
1354
- return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
1355
+ let s = this.defaults.walkTokens, l = e.walkTokens;
1356
+ c.walkTokens = function(e) {
1357
+ let c = [];
1358
+ return c.push(l.call(this, e)), s && (c = c.concat(s.call(this, e))), c;
1355
1359
  };
1356
1360
  }
1357
1361
  this.defaults = {
1358
1362
  ...this.defaults,
1359
- ...n
1363
+ ...c
1360
1364
  };
1361
1365
  }), this;
1362
1366
  }
@@ -1366,58 +1370,57 @@ ${e}</tr>
1366
1370
  ...e
1367
1371
  }, this;
1368
1372
  }
1369
- lexer(e, t) {
1370
- return q.lex(e, t ?? this.defaults);
1373
+ lexer(e, s) {
1374
+ return x.lex(e, s ?? this.defaults);
1371
1375
  }
1372
- parser(e, t) {
1373
- return X.parse(e, t ?? this.defaults);
1376
+ parser(e, s) {
1377
+ return b.parse(e, s ?? this.defaults);
1374
1378
  }
1375
1379
  parseMarkdown(e) {
1376
- return (t, n) => {
1377
- let r = { ...n }, i = {
1380
+ return (s, c) => {
1381
+ let l = { ...c }, u = {
1378
1382
  ...this.defaults,
1379
- ...r
1380
- }, a = this.onError(!!i.silent, !!i.async);
1381
- if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1382
- if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1383
- if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1384
- if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
1385
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? q.lex : q.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1386
- i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
1387
- let o = await (i.hooks ? await i.hooks.provideParser() : e ? X.parse : X.parseInline)(a, i);
1388
- return i.hooks ? await i.hooks.postprocess(o) : o;
1389
- })().catch(a);
1383
+ ...l
1384
+ }, d = this.onError(!!u.silent, !!u.async);
1385
+ if (this.defaults.async === !0 && l.async === !1) return d(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1386
+ if (typeof s > "u" || s === null) return d(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1387
+ if (typeof s != "string") return d(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(s) + ", string expected"));
1388
+ if (u.hooks && (u.hooks.options = u, u.hooks.block = e), u.async) return (async () => {
1389
+ let c = u.hooks ? await u.hooks.preprocess(s) : s, l = await (u.hooks ? await u.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(c, u), d = u.hooks ? await u.hooks.processAllTokens(l) : l;
1390
+ u.walkTokens && await Promise.all(this.walkTokens(d, u.walkTokens));
1391
+ let f = await (u.hooks ? await u.hooks.provideParser(e) : e ? b.parse : b.parseInline)(d, u);
1392
+ return u.hooks ? await u.hooks.postprocess(f) : f;
1393
+ })().catch(d);
1390
1394
  try {
1391
- i.hooks && (t = i.hooks.preprocess(t));
1392
- let n = (i.hooks ? i.hooks.provideLexer() : e ? q.lex : q.lexInline)(t, i);
1393
- i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
1394
- let r = (i.hooks ? i.hooks.provideParser() : e ? X.parse : X.parseInline)(n, i);
1395
- return i.hooks && (r = i.hooks.postprocess(r)), r;
1395
+ u.hooks && (s = u.hooks.preprocess(s));
1396
+ let c = (u.hooks ? u.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(s, u);
1397
+ u.hooks && (c = u.hooks.processAllTokens(c)), u.walkTokens && this.walkTokens(c, u.walkTokens);
1398
+ let l = (u.hooks ? u.hooks.provideParser(e) : e ? b.parse : b.parseInline)(c, u);
1399
+ return u.hooks && (l = u.hooks.postprocess(l)), l;
1396
1400
  } catch (e) {
1397
- return a(e);
1401
+ return d(e);
1398
1402
  }
1399
1403
  };
1400
1404
  }
1401
- onError(e, t) {
1402
- return (n) => {
1403
- if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1404
- let e = "<p>An error occurred:</p><pre>" + V(n.message + "", !0) + "</pre>";
1405
- return t ? Promise.resolve(e) : e;
1405
+ onError(e, s) {
1406
+ return (c) => {
1407
+ if (c.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1408
+ let e = "<p>An error occurred:</p><pre>" + T(c.message + "", !0) + "</pre>";
1409
+ return s ? Promise.resolve(e) : e;
1406
1410
  }
1407
- if (t) return Promise.reject(n);
1408
- throw n;
1411
+ if (s) return Promise.reject(c);
1412
+ throw c;
1409
1413
  };
1410
1414
  }
1411
1415
  }();
1412
- function $(e, t) {
1413
- return Q.parse(e, t);
1416
+ function g(e, s) {
1417
+ return L.parse(e, s);
1414
1418
  }
1415
- $.options = $.setOptions = function(e) {
1416
- return Q.setOptions(e), $.defaults = Q.defaults, n($.defaults), $;
1417
- }, $.getDefaults = e, $.defaults = t, $.use = function(...e) {
1418
- return Q.use(...e), $.defaults = Q.defaults, n($.defaults), $;
1419
- }, $.walkTokens = function(e, t) {
1420
- return Q.walkTokens(e, t);
1421
- }, $.parseInline = Q.parseInline, $.Parser = X, $.parser = X.parse, $.Renderer = J, $.TextRenderer = Y, $.Lexer = q, $.lexer = q.lex, $.Tokenizer = K, $.Hooks = Z, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, X.parse, q.lex;
1422
- //#endregion
1423
- export { q as x };
1419
+ g.options = g.setOptions = function(e) {
1420
+ return L.setOptions(e), g.defaults = L.defaults, G(g.defaults), g;
1421
+ }, g.getDefaults = M, g.defaults = O, g.use = function(...e) {
1422
+ return L.use(...e), g.defaults = L.defaults, G(g.defaults), g;
1423
+ }, g.walkTokens = function(e, s) {
1424
+ return L.walkTokens(e, s);
1425
+ }, g.parseInline = L.parseInline, g.Parser = b, g.parser = b.parse, g.Renderer = y, g.TextRenderer = $, g.Lexer = x, g.lexer = x.lex, g.Tokenizer = w, g.Hooks = P, g.parse = g, g.options, g.setOptions, g.use, g.walkTokens, g.parseInline, b.parse, x.lex;
1426
+ export { x };