@elmethis/vue 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/dist/components/ag-ui/message/ElmAgUiMessageUser.stories.d.ts +6 -0
  4. package/dist/components/ag-ui/message/ElmAgUiMessageUser.vue.d.ts +8 -0
  5. package/dist/components/code/ElmCodeBlock.stories.d.ts +9 -0
  6. package/dist/components/code/ElmCodeBlock.vue.d.ts +48 -0
  7. package/dist/components/code/ElmCodeBlock.vue.mjs +23 -0
  8. package/dist/components/code/ElmCodeBlock.vue2.mjs +134 -0
  9. package/dist/components/code/ElmCodeBlock.vue3.mjs +43 -0
  10. package/dist/components/code/ElmKatex.stories.d.ts +8 -0
  11. package/dist/components/code/ElmKatex.vue.d.ts +20 -0
  12. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  13. package/dist/components/code/ElmKatex.vue2.mjs +68 -0
  14. package/dist/components/code/ElmKatex.vue3.mjs +20 -0
  15. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  16. package/dist/components/code/ElmMermaid.vue.d.ts +7 -0
  17. package/dist/components/code/ElmMermaid.vue.mjs +10 -0
  18. package/dist/components/code/ElmMermaid.vue2.mjs +59 -0
  19. package/dist/components/code/ElmMermaid.vue3.mjs +26 -0
  20. package/dist/components/code/ElmShikiHighlighter.stories.d.ts +6 -0
  21. package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
  22. package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
  23. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +55 -0
  24. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
  25. package/dist/components/code/shikiInstance.d.ts +2 -0
  26. package/dist/components/code/shikiInstance.mjs +76 -0
  27. package/dist/components/containments/ElmColumn.stories.d.ts +6 -0
  28. package/dist/components/containments/ElmColumn.vue.d.ts +19 -0
  29. package/dist/components/containments/ElmColumnList.vue.d.ts +19 -0
  30. package/dist/components/containments/ElmConfirmModal.stories.d.ts +6 -0
  31. package/dist/components/containments/ElmConfirmModal.vue.d.ts +37 -0
  32. package/dist/components/containments/ElmConfirmModal.vue.mjs +10 -0
  33. package/dist/components/containments/ElmConfirmModal.vue2.mjs +98 -0
  34. package/dist/components/containments/ElmConfirmModal.vue3.mjs +23 -0
  35. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  36. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
  37. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  38. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  39. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +26 -0
  40. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  41. package/dist/components/containments/ElmModal.vue.d.ts +34 -0
  42. package/dist/components/containments/ElmModal.vue.mjs +10 -0
  43. package/dist/components/containments/ElmModal.vue2.mjs +56 -0
  44. package/dist/components/containments/ElmModal.vue3.mjs +23 -0
  45. package/dist/components/containments/ElmParallax.stories.d.ts +6 -0
  46. package/dist/components/containments/ElmParallax.vue.d.ts +6 -0
  47. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  48. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  49. package/dist/components/containments/ElmParallax.vue3.mjs +20 -0
  50. package/dist/components/containments/ElmSimpleTooltip.stories.d.ts +7 -0
  51. package/dist/components/containments/ElmSimpleTooltip.vue.d.ts +21 -0
  52. package/dist/components/containments/ElmSimpleTooltip.vue.mjs +10 -0
  53. package/dist/components/containments/ElmSimpleTooltip.vue2.mjs +37 -0
  54. package/dist/components/containments/ElmSimpleTooltip.vue3.mjs +26 -0
  55. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  56. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  57. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  58. package/dist/components/containments/ElmSnackbar.vue2.mjs +41 -0
  59. package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
  60. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  61. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +23 -0
  62. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  63. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
  64. package/dist/components/containments/ElmToggle.stories.d.ts +7 -0
  65. package/dist/components/containments/ElmToggle.vue.d.ts +41 -0
  66. package/dist/components/containments/ElmToggle.vue.mjs +10 -0
  67. package/dist/components/containments/ElmToggle.vue2.mjs +106 -0
  68. package/dist/components/containments/ElmToggle.vue3.mjs +44 -0
  69. package/dist/components/containments/ElmTooltip.stories.d.ts +6 -0
  70. package/dist/components/containments/ElmTooltip.vue.d.ts +40 -0
  71. package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
  72. package/dist/components/containments/ElmTooltip.vue2.mjs +56 -0
  73. package/dist/components/containments/ElmTooltip.vue3.mjs +26 -0
  74. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  75. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  76. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  77. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  78. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  79. package/dist/components/data/ElmMultiProgress.vue3.mjs +23 -0
  80. package/dist/components/data/ElmProgress.stories.d.ts +10 -0
  81. package/dist/components/data/ElmProgress.vue.d.ts +38 -0
  82. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  83. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  84. package/dist/components/data/ElmProgress.vue3.mjs +32 -0
  85. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  86. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  87. package/dist/components/data/ElmStatusMessage.vue.mjs +23 -0
  88. package/dist/components/data/ElmStatusMessage.vue2.mjs +76 -0
  89. package/dist/components/data/ElmStatusMessage.vue3.mjs +20 -0
  90. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  91. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  92. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  93. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  94. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +18 -0
  95. package/dist/components/fallback/ElmRectangleWave.stories.d.ts +6 -0
  96. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +4 -0
  97. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  98. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  99. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +21 -0
  100. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  101. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  102. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  103. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  104. package/dist/components/fallback/ElmSpinner.vue3.mjs +24 -0
  105. package/dist/components/fallback/ElmUnsupportedBlock.stories.d.ts +6 -0
  106. package/dist/components/fallback/ElmUnsupportedBlock.vue.d.ts +5 -0
  107. package/dist/components/fallback/ElmUnsupportedBlock.vue.mjs +10 -0
  108. package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +46 -0
  109. package/dist/components/fallback/ElmUnsupportedBlock.vue3.mjs +29 -0
  110. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  111. package/dist/components/form/ElmButton.vue.d.ts +42 -0
  112. package/dist/components/form/ElmButton.vue.mjs +23 -0
  113. package/dist/components/form/ElmButton.vue2.mjs +71 -0
  114. package/dist/components/form/ElmButton.vue3.mjs +39 -0
  115. package/dist/components/form/ElmCheckbox.stories.d.ts +6 -0
  116. package/dist/components/form/ElmCheckbox.vue.d.ts +26 -0
  117. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  118. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  119. package/dist/components/form/ElmCheckbox.vue3.mjs +34 -0
  120. package/dist/components/form/ElmSelect.stories.d.ts +6 -0
  121. package/dist/components/form/ElmSelect.vue.d.ts +48 -0
  122. package/dist/components/form/ElmSelect.vue.mjs +10 -0
  123. package/dist/components/form/ElmSelect.vue2.mjs +145 -0
  124. package/dist/components/form/ElmSelect.vue3.mjs +56 -0
  125. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  126. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  127. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  128. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  129. package/dist/components/form/ElmSwitch.vue3.mjs +28 -0
  130. package/dist/components/form/ElmTextField.stories.d.ts +7 -0
  131. package/dist/components/form/ElmTextField.vue.d.ts +33 -0
  132. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  133. package/dist/components/form/ElmTextField.vue2.mjs +150 -0
  134. package/dist/components/form/ElmTextField.vue3.mjs +49 -0
  135. package/dist/components/form/ElmValidation.stories.d.ts +6 -0
  136. package/dist/components/form/ElmValidation.vue.d.ts +9 -0
  137. package/dist/components/form/ElmValidation.vue.mjs +10 -0
  138. package/dist/components/form/ElmValidation.vue2.mjs +34 -0
  139. package/dist/components/form/ElmValidation.vue3.mjs +20 -0
  140. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  141. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  142. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  143. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  144. package/dist/components/icon/ElmArrowIcon.vue3.mjs +29 -0
  145. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  146. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  147. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  148. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +47 -0
  149. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +26 -0
  150. package/dist/components/icon/ElmCubeIcon.stories.d.ts +6 -0
  151. package/dist/components/icon/ElmCubeIcon.vue.d.ts +10 -0
  152. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  153. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  154. package/dist/components/icon/ElmCubeIcon.vue3.mjs +24 -0
  155. package/dist/components/icon/ElmDotLoadingIcon.stories.d.ts +6 -0
  156. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +18 -0
  157. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  158. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  159. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +26 -0
  160. package/dist/components/icon/ElmInlineIcon.stories.d.ts +6 -0
  161. package/dist/components/icon/ElmInlineIcon.vue.d.ts +12 -0
  162. package/dist/components/icon/ElmInlineIcon.vue.mjs +10 -0
  163. package/dist/components/icon/ElmInlineIcon.vue2.mjs +27 -0
  164. package/dist/components/icon/ElmInlineIcon.vue3.mjs +20 -0
  165. package/dist/components/icon/ElmLanguageIcon.stories.d.ts +6 -0
  166. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +15 -0
  167. package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
  168. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +147 -0
  169. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +20 -0
  170. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  171. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  172. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  173. package/dist/components/icon/ElmLoginIcon.vue2.mjs +36 -0
  174. package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
  175. package/dist/components/icon/ElmMdiIcon.stories.d.ts +6 -0
  176. package/dist/components/icon/ElmMdiIcon.vue.d.ts +11 -0
  177. package/dist/components/icon/ElmMdiIcon.vue.mjs +10 -0
  178. package/dist/components/icon/ElmMdiIcon.vue2.mjs +34 -0
  179. package/dist/components/icon/ElmMdiIcon.vue3.mjs +20 -0
  180. package/dist/components/icon/ElmSquareLoadingIcon.stories.d.ts +6 -0
  181. package/dist/components/icon/ElmSquareLoadingIcon.vue.d.ts +10 -0
  182. package/dist/components/icon/ElmSquareLoadingIcon.vue.mjs +10 -0
  183. package/dist/components/icon/ElmSquareLoadingIcon.vue2.mjs +37 -0
  184. package/dist/components/icon/ElmSquareLoadingIcon.vue3.mjs +26 -0
  185. package/dist/components/icon/ElmToggleTheme.stories.d.ts +6 -0
  186. package/dist/components/icon/ElmToggleTheme.vue.d.ts +11 -0
  187. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  188. package/dist/components/icon/ElmToggleTheme.vue2.mjs +41 -0
  189. package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
  190. package/dist/components/icon/languages/Bash.vue.d.ts +7 -0
  191. package/dist/components/icon/languages/Bash.vue.mjs +10 -0
  192. package/dist/components/icon/languages/Bash.vue2.mjs +34 -0
  193. package/dist/components/icon/languages/Bash.vue3.mjs +20 -0
  194. package/dist/components/icon/languages/C.vue.d.ts +7 -0
  195. package/dist/components/icon/languages/C.vue.mjs +34 -0
  196. package/dist/components/icon/languages/C.vue2.mjs +4 -0
  197. package/dist/components/icon/languages/Cplusplus.vue.d.ts +7 -0
  198. package/dist/components/icon/languages/Cplusplus.vue.mjs +38 -0
  199. package/dist/components/icon/languages/Cplusplus.vue2.mjs +4 -0
  200. package/dist/components/icon/languages/Csharp.vue.d.ts +7 -0
  201. package/dist/components/icon/languages/Csharp.vue.mjs +34 -0
  202. package/dist/components/icon/languages/Csharp.vue2.mjs +4 -0
  203. package/dist/components/icon/languages/Css.vue.d.ts +7 -0
  204. package/dist/components/icon/languages/Css.vue.mjs +26 -0
  205. package/dist/components/icon/languages/Css.vue2.mjs +4 -0
  206. package/dist/components/icon/languages/Go.vue.d.ts +7 -0
  207. package/dist/components/icon/languages/Go.vue.mjs +32 -0
  208. package/dist/components/icon/languages/Go.vue2.mjs +4 -0
  209. package/dist/components/icon/languages/Html.vue.d.ts +7 -0
  210. package/dist/components/icon/languages/Html.vue.mjs +38 -0
  211. package/dist/components/icon/languages/Html.vue2.mjs +4 -0
  212. package/dist/components/icon/languages/Java.vue.d.ts +7 -0
  213. package/dist/components/icon/languages/Java.vue.mjs +23 -0
  214. package/dist/components/icon/languages/Java.vue2.mjs +4 -0
  215. package/dist/components/icon/languages/Javascript.vue.d.ts +7 -0
  216. package/dist/components/icon/languages/Javascript.vue.mjs +30 -0
  217. package/dist/components/icon/languages/Javascript.vue2.mjs +4 -0
  218. package/dist/components/icon/languages/Json.vue.d.ts +7 -0
  219. package/dist/components/icon/languages/Json.vue.mjs +23 -0
  220. package/dist/components/icon/languages/Json.vue2.mjs +4 -0
  221. package/dist/components/icon/languages/Kotlin.vue.d.ts +7 -0
  222. package/dist/components/icon/languages/Kotlin.vue.mjs +23 -0
  223. package/dist/components/icon/languages/Kotlin.vue2.mjs +4 -0
  224. package/dist/components/icon/languages/Lua.vue.d.ts +7 -0
  225. package/dist/components/icon/languages/Lua.vue.mjs +34 -0
  226. package/dist/components/icon/languages/Lua.vue2.mjs +4 -0
  227. package/dist/components/icon/languages/Npm.vue.d.ts +7 -0
  228. package/dist/components/icon/languages/Npm.vue.mjs +30 -0
  229. package/dist/components/icon/languages/Npm.vue2.mjs +4 -0
  230. package/dist/components/icon/languages/Python.vue.d.ts +7 -0
  231. package/dist/components/icon/languages/Python.vue.mjs +23 -0
  232. package/dist/components/icon/languages/Python.vue2.mjs +4 -0
  233. package/dist/components/icon/languages/Rust.vue.d.ts +7 -0
  234. package/dist/components/icon/languages/Rust.vue.mjs +24 -0
  235. package/dist/components/icon/languages/Rust.vue2.mjs +4 -0
  236. package/dist/components/icon/languages/Sql.vue.d.ts +7 -0
  237. package/dist/components/icon/languages/Sql.vue.mjs +26 -0
  238. package/dist/components/icon/languages/Sql.vue2.mjs +4 -0
  239. package/dist/components/icon/languages/Terraform.vue.d.ts +7 -0
  240. package/dist/components/icon/languages/Terraform.vue.mjs +36 -0
  241. package/dist/components/icon/languages/Terraform.vue2.mjs +4 -0
  242. package/dist/components/icon/languages/Typescript.vue.d.ts +7 -0
  243. package/dist/components/icon/languages/Typescript.vue.mjs +30 -0
  244. package/dist/components/icon/languages/Typescript.vue2.mjs +4 -0
  245. package/dist/components/media/ElmFile.stories.d.ts +6 -0
  246. package/dist/components/media/ElmFile.vue.d.ts +21 -0
  247. package/dist/components/media/ElmFile.vue.mjs +10 -0
  248. package/dist/components/media/ElmFile.vue2.mjs +79 -0
  249. package/dist/components/media/ElmFile.vue3.mjs +23 -0
  250. package/dist/components/media/ElmImage.stories.d.ts +9 -0
  251. package/dist/components/media/ElmImage.vue.d.ts +27 -0
  252. package/dist/components/media/ElmImage.vue.mjs +10 -0
  253. package/dist/components/media/ElmImage.vue2.mjs +142 -0
  254. package/dist/components/media/ElmImage.vue3.mjs +35 -0
  255. package/dist/components/navigation/ElmBookmark.stories.d.ts +12 -0
  256. package/dist/components/navigation/ElmBookmark.vue.d.ts +53 -0
  257. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  258. package/dist/components/navigation/ElmBookmark.vue2.mjs +116 -0
  259. package/dist/components/navigation/ElmBookmark.vue3.mjs +41 -0
  260. package/dist/components/navigation/ElmBreadcrumb.stories.d.ts +7 -0
  261. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +19 -0
  262. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  263. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +65 -0
  264. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +24 -0
  265. package/dist/components/navigation/ElmPagetop.stories.d.ts +6 -0
  266. package/dist/components/navigation/ElmPagetop.vue.d.ts +10 -0
  267. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  268. package/dist/components/navigation/ElmPagetop.vue2.mjs +52 -0
  269. package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
  270. package/dist/components/navigation/ElmTableOfContents.stories.d.ts +7 -0
  271. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +9 -0
  272. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  273. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +45 -0
  274. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +23 -0
  275. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  276. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  277. package/dist/components/others/ElmColorSample.vue.mjs +23 -0
  278. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  279. package/dist/components/others/ElmColorSample.vue3.mjs +21 -0
  280. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  281. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  282. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  283. package/dist/components/others/ElmColorTable.vue2.mjs +49 -0
  284. package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
  285. package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +23 -0
  286. package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +6 -0
  287. package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +10 -0
  288. package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +189 -0
  289. package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -0
  290. package/dist/components/others/ElmMarkdown.stories.d.ts +6 -0
  291. package/dist/components/others/ElmMarkdown.vue.d.ts +5 -0
  292. package/dist/components/others/ElmMarkdown.vue.mjs +255 -0
  293. package/dist/components/others/ElmMarkdown.vue2.mjs +4 -0
  294. package/dist/components/others/ElmTyping.stories.d.ts +6 -0
  295. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  296. package/dist/components/table/ElmTable.stories.d.ts +6 -0
  297. package/dist/components/table/ElmTable.vue.d.ts +46 -0
  298. package/dist/components/table/ElmTable.vue.mjs +10 -0
  299. package/dist/components/table/ElmTable.vue2.mjs +62 -0
  300. package/dist/components/table/ElmTable.vue3.mjs +27 -0
  301. package/dist/components/table/ElmTableBody.vue.d.ts +22 -0
  302. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  303. package/dist/components/table/ElmTableBody.vue2.mjs +4 -0
  304. package/dist/components/table/ElmTableCell.vue.d.ts +33 -0
  305. package/dist/components/table/ElmTableCell.vue.mjs +10 -0
  306. package/dist/components/table/ElmTableCell.vue2.mjs +28 -0
  307. package/dist/components/table/ElmTableCell.vue3.mjs +26 -0
  308. package/dist/components/table/ElmTableHeader.vue.d.ts +22 -0
  309. package/dist/components/table/ElmTableHeader.vue.mjs +10 -0
  310. package/dist/components/table/ElmTableHeader.vue2.mjs +17 -0
  311. package/dist/components/table/ElmTableHeader.vue3.mjs +20 -0
  312. package/dist/components/table/ElmTableRow.vue.d.ts +22 -0
  313. package/dist/components/table/ElmTableRow.vue.mjs +10 -0
  314. package/dist/components/table/ElmTableRow.vue2.mjs +20 -0
  315. package/dist/components/table/ElmTableRow.vue3.mjs +21 -0
  316. package/dist/components/template/ElmTemplate.stories.d.ts +6 -0
  317. package/dist/components/template/ElmTemplate.vue.d.ts +4 -0
  318. package/dist/components/typography/ElmBlockQuote.stories.d.ts +6 -0
  319. package/dist/components/typography/ElmBlockQuote.vue.d.ts +24 -0
  320. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  321. package/dist/components/typography/ElmBlockQuote.vue2.mjs +64 -0
  322. package/dist/components/typography/ElmBlockQuote.vue3.mjs +26 -0
  323. package/dist/components/typography/ElmCallout.stories.d.ts +11 -0
  324. package/dist/components/typography/ElmCallout.vue.d.ts +30 -0
  325. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  326. package/dist/components/typography/ElmCallout.vue2.mjs +58 -0
  327. package/dist/components/typography/ElmCallout.vue3.mjs +23 -0
  328. package/dist/components/typography/ElmDivider.stories.d.ts +6 -0
  329. package/dist/components/typography/ElmDivider.vue.d.ts +11 -0
  330. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  331. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  332. package/dist/components/typography/ElmDivider.vue3.mjs +20 -0
  333. package/dist/components/typography/ElmFragmentIdentifier.stories.d.ts +6 -0
  334. package/dist/components/typography/ElmFragmentIdentifier.vue.d.ts +8 -0
  335. package/dist/components/typography/ElmFragmentIdentifier.vue.mjs +10 -0
  336. package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +27 -0
  337. package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +20 -0
  338. package/dist/components/typography/ElmHeading.stories.d.ts +7 -0
  339. package/dist/components/typography/ElmHeading.vue.d.ts +49 -0
  340. package/dist/components/typography/ElmHeading.vue.mjs +10 -0
  341. package/dist/components/typography/ElmHeading.vue2.mjs +95 -0
  342. package/dist/components/typography/ElmHeading.vue3.mjs +39 -0
  343. package/dist/components/typography/ElmInlineText.stories.d.ts +12 -0
  344. package/dist/components/typography/ElmInlineText.vue.d.ts +85 -0
  345. package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
  346. package/dist/components/typography/ElmInlineText.vue2.mjs +158 -0
  347. package/dist/components/typography/ElmInlineText.vue3.mjs +35 -0
  348. package/dist/components/typography/ElmList.stories.d.ts +8 -0
  349. package/dist/components/typography/ElmList.vue.d.ts +31 -0
  350. package/dist/components/typography/ElmList.vue.mjs +36 -0
  351. package/dist/components/typography/ElmList.vue3.mjs +17 -0
  352. package/dist/components/typography/ElmParagraph.stories.d.ts +6 -0
  353. package/dist/components/typography/ElmParagraph.vue.d.ts +23 -0
  354. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  355. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  356. package/dist/components/typography/ElmParagraph.vue3.mjs +20 -0
  357. package/dist/components/typography/ElmTypingAnimation.stories.d.ts +6 -0
  358. package/dist/components/typography/ElmTypingAnimation.vue.d.ts +21 -0
  359. package/dist/components/typography/ElmTypingAnimation.vue.mjs +10 -0
  360. package/dist/components/typography/ElmTypingAnimation.vue2.mjs +49 -0
  361. package/dist/components/typography/ElmTypingAnimation.vue3.mjs +26 -0
  362. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  363. package/dist/hooks/useElmethisTheme.mjs +43 -0
  364. package/dist/hooks/useTyping.d.ts +17 -0
  365. package/dist/hooks/useTyping.mjs +37 -0
  366. package/dist/index.d.ts +120 -0
  367. package/dist/index.mjs +137 -0
  368. package/dist/node_modules/.pnpm/marked@16.4.1/node_modules/marked/lib/marked.esm.mjs +1099 -0
  369. package/dist/styles/heading.module.scss.mjs +20 -0
  370. package/dist/styles/text.module.scss.mjs +20 -0
  371. package/dist/styles/transition-fade.module.scss.mjs +27 -0
  372. package/package.json +62 -0
@@ -0,0 +1,1099 @@
1
+ function L() {
2
+ return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
3
+ }
4
+ var T = L();
5
+ function G(u3) {
6
+ T = u3;
7
+ }
8
+ var I = { exec: () => null };
9
+ function h(u3, e = "") {
10
+ let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r, i) => {
11
+ let s = typeof i == "string" ? i : i.source;
12
+ return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
13
+ }, getRegex: () => new RegExp(t, e) };
14
+ return n;
15
+ }
16
+ var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h(ie).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(), we = h(ie).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).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 = h("^ {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(), ae = h(j).replace("hr", E).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = { ...K, lheading: we, table: re, paragraph: h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Me = { ...K, html: h(`^ *(?: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(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
17
+ ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", new RegExp("\\[(?:[^\\[\\]`]|(?<!`)(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("code", new RegExp("(?<!`)(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h(/^<(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(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h("^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", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K, gfm: Le, pedantic: Me }, M = { normal: X, gfm: N, breaks: Xe, pedantic: We };
18
+ var Je = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (u3) => Je[u3];
19
+ function w(u3, e) {
20
+ if (e) {
21
+ if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
22
+ } else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
23
+ return u3;
24
+ }
25
+ function J(u3) {
26
+ try {
27
+ u3 = encodeURI(u3).replace(m.percentDecode, "%");
28
+ } catch {
29
+ return null;
30
+ }
31
+ return u3;
32
+ }
33
+ function V(u3, e) {
34
+ let t = u3.replace(m.findPipe, (i, s, o) => {
35
+ let a = false, l = s;
36
+ for (; --l >= 0 && o[l] === "\\"; ) a = !a;
37
+ return a ? "|" : " |";
38
+ }), n = t.split(m.splitPipe), r = 0;
39
+ if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
40
+ else for (; n.length < e; ) n.push("");
41
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(m.slashPipe, "|");
42
+ return n;
43
+ }
44
+ function z(u3, e, t) {
45
+ let n = u3.length;
46
+ if (n === 0) return "";
47
+ let r = 0;
48
+ for (; r < n; ) {
49
+ let i = u3.charAt(n - r - 1);
50
+ if (i === e && true) r++;
51
+ else break;
52
+ }
53
+ return u3.slice(0, n - r);
54
+ }
55
+ function fe(u3, e) {
56
+ if (u3.indexOf(e[1]) === -1) return -1;
57
+ let t = 0;
58
+ for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
59
+ else if (u3[n] === e[0]) t++;
60
+ else if (u3[n] === e[1] && (t--, t < 0)) return n;
61
+ return t > 0 ? -2 : -1;
62
+ }
63
+ function me(u3, e, t, n, r) {
64
+ let i = e.href, s = e.title || null, o = u3[1].replace(r.other.outputLinkReplace, "$1");
65
+ n.state.inLink = true;
66
+ let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: o, tokens: n.inlineTokens(o) };
67
+ return n.state.inLink = false, a;
68
+ }
69
+ function Ve(u3, e, t) {
70
+ let n = u3.match(t.other.indentCodeCompensation);
71
+ if (n === null) return e;
72
+ let r = n[1];
73
+ return e.split(`
74
+ `).map((i) => {
75
+ let s = i.match(t.other.beginningSpace);
76
+ if (s === null) return i;
77
+ let [o] = s;
78
+ return o.length >= r.length ? i.slice(r.length) : i;
79
+ }).join(`
80
+ `);
81
+ }
82
+ var y = class {
83
+ options;
84
+ rules;
85
+ lexer;
86
+ constructor(e) {
87
+ this.options = e || T;
88
+ }
89
+ space(e) {
90
+ let t = this.rules.block.newline.exec(e);
91
+ if (t && t[0].length > 0) return { type: "space", raw: t[0] };
92
+ }
93
+ code(e) {
94
+ let t = this.rules.block.code.exec(e);
95
+ if (t) {
96
+ let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
97
+ return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : z(n, `
98
+ `) };
99
+ }
100
+ }
101
+ fences(e) {
102
+ let t = this.rules.block.fences.exec(e);
103
+ if (t) {
104
+ let n = t[0], r = Ve(n, t[3] || "", this.rules);
105
+ return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
106
+ }
107
+ }
108
+ heading(e) {
109
+ let t = this.rules.block.heading.exec(e);
110
+ if (t) {
111
+ let n = t[2].trim();
112
+ if (this.rules.other.endingHash.test(n)) {
113
+ let r = z(n, "#");
114
+ (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
115
+ }
116
+ return { type: "heading", raw: t[0], depth: t[1].length, text: n, tokens: this.lexer.inline(n) };
117
+ }
118
+ }
119
+ hr(e) {
120
+ let t = this.rules.block.hr.exec(e);
121
+ if (t) return { type: "hr", raw: z(t[0], `
122
+ `) };
123
+ }
124
+ blockquote(e) {
125
+ let t = this.rules.block.blockquote.exec(e);
126
+ if (t) {
127
+ let n = z(t[0], `
128
+ `).split(`
129
+ `), r = "", i = "", s = [];
130
+ for (; n.length > 0; ) {
131
+ let o = false, a = [], l;
132
+ for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
133
+ else if (!o) a.push(n[l]);
134
+ else break;
135
+ n = n.slice(l);
136
+ let c = a.join(`
137
+ `), p = c.replace(this.rules.other.blockquoteSetextReplace, `
138
+ $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
139
+ r = r ? `${r}
140
+ ${c}` : c, i = i ? `${i}
141
+ ${p}` : p;
142
+ let g = this.lexer.state.top;
143
+ if (this.lexer.state.top = true, this.lexer.blockTokens(p, s, true), this.lexer.state.top = g, n.length === 0) break;
144
+ let d = s.at(-1);
145
+ if (d?.type === "code") break;
146
+ if (d?.type === "blockquote") {
147
+ let R = d, f = R.raw + `
148
+ ` + n.join(`
149
+ `), O = this.blockquote(f);
150
+ s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
151
+ break;
152
+ } else if (d?.type === "list") {
153
+ let R = d, f = R.raw + `
154
+ ` + n.join(`
155
+ `), O = this.list(f);
156
+ s[s.length - 1] = O, r = r.substring(0, r.length - d.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
157
+ `);
158
+ continue;
159
+ }
160
+ }
161
+ return { type: "blockquote", raw: r, tokens: s, text: i };
162
+ }
163
+ }
164
+ list(e) {
165
+ let t = this.rules.block.list.exec(e);
166
+ if (t) {
167
+ let n = t[1].trim(), r = n.length > 1, i = { type: "list", raw: "", ordered: r, start: r ? +n.slice(0, -1) : "", loose: false, items: [] };
168
+ n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
169
+ let s = this.rules.other.listItemRegex(n), o = false;
170
+ for (; e; ) {
171
+ let l = false, c = "", p = "";
172
+ if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
173
+ c = t[0], e = e.substring(c.length);
174
+ let g = t[2].split(`
175
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d = e.split(`
176
+ `, 1)[0], R = !g.trim(), f = 0;
177
+ if (this.options.pedantic ? (f = 2, p = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, p = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(d) && (c += d + `
178
+ `, e = e.substring(d.length + 1), l = true), !l) {
179
+ let H = this.rules.other.nextBulletRegex(f), ee = this.rules.other.hrRegex(f), te = this.rules.other.fencesBeginRegex(f), ne = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f);
180
+ for (; e; ) {
181
+ let Z = e.split(`
182
+ `, 1)[0], A;
183
+ if (d = Z, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), A = d) : A = d.replace(this.rules.other.tabCharGlobal, " "), te.test(d) || ne.test(d) || xe.test(d) || H.test(d) || ee.test(d)) break;
184
+ if (A.search(this.rules.other.nonSpaceChar) >= f || !d.trim()) p += `
185
+ ` + A.slice(f);
186
+ else {
187
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
188
+ p += `
189
+ ` + d;
190
+ }
191
+ !R && !d.trim() && (R = true), c += Z + `
192
+ `, e = e.substring(Z.length + 1), g = A.slice(f);
193
+ }
194
+ }
195
+ i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c) && (o = true));
196
+ let O = null, Y;
197
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c, task: !!O, checked: Y, loose: false, text: p, tokens: [] }), i.raw += c;
198
+ }
199
+ let a = i.items.at(-1);
200
+ if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
201
+ else return;
202
+ i.raw = i.raw.trimEnd();
203
+ for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
204
+ let c = i.items[l].tokens.filter((g) => g.type === "space"), p = c.length > 0 && c.some((g) => this.rules.other.anyLine.test(g.raw));
205
+ i.loose = p;
206
+ }
207
+ if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
208
+ return i;
209
+ }
210
+ }
211
+ html(e) {
212
+ let t = this.rules.block.html.exec(e);
213
+ if (t) return { type: "html", block: true, raw: t[0], pre: t[1] === "pre" || t[1] === "script" || t[1] === "style", text: t[0] };
214
+ }
215
+ def(e) {
216
+ let t = this.rules.block.def.exec(e);
217
+ if (t) {
218
+ let n = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), r = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
219
+ return { type: "def", tag: n, raw: t[0], href: r, title: i };
220
+ }
221
+ }
222
+ table(e) {
223
+ let t = this.rules.block.table.exec(e);
224
+ if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
225
+ let n = V(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
226
+ `) : [], s = { type: "table", raw: t[0], header: [], align: [], rows: [] };
227
+ if (n.length === r.length) {
228
+ for (let o of r) this.rules.other.tableAlignRight.test(o) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s.align.push("left") : s.align.push(null);
229
+ for (let o = 0; o < n.length; o++) s.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s.align[o] });
230
+ for (let o of i) s.rows.push(V(o, s.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s.align[l] })));
231
+ return s;
232
+ }
233
+ }
234
+ lheading(e) {
235
+ let t = this.rules.block.lheading.exec(e);
236
+ if (t) return { type: "heading", raw: t[0], depth: t[2].charAt(0) === "=" ? 1 : 2, text: t[1], tokens: this.lexer.inline(t[1]) };
237
+ }
238
+ paragraph(e) {
239
+ let t = this.rules.block.paragraph.exec(e);
240
+ if (t) {
241
+ let n = t[1].charAt(t[1].length - 1) === `
242
+ ` ? t[1].slice(0, -1) : t[1];
243
+ return { type: "paragraph", raw: t[0], text: n, tokens: this.lexer.inline(n) };
244
+ }
245
+ }
246
+ text(e) {
247
+ let t = this.rules.block.text.exec(e);
248
+ if (t) return { type: "text", raw: t[0], text: t[0], tokens: this.lexer.inline(t[0]) };
249
+ }
250
+ escape(e) {
251
+ let t = this.rules.inline.escape.exec(e);
252
+ if (t) return { type: "escape", raw: t[0], text: t[1] };
253
+ }
254
+ tag(e) {
255
+ let t = this.rules.inline.tag.exec(e);
256
+ if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = true : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = false), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = true : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = false), { type: "html", raw: t[0], inLink: this.lexer.state.inLink, inRawBlock: this.lexer.state.inRawBlock, block: false, text: t[0] };
257
+ }
258
+ link(e) {
259
+ let t = this.rules.inline.link.exec(e);
260
+ if (t) {
261
+ let n = t[2].trim();
262
+ if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
263
+ if (!this.rules.other.endAngleBracket.test(n)) return;
264
+ let s = z(n.slice(0, -1), "\\");
265
+ if ((n.length - s.length) % 2 === 0) return;
266
+ } else {
267
+ let s = fe(t[2], "()");
268
+ if (s === -2) return;
269
+ if (s > -1) {
270
+ let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
271
+ t[2] = t[2].substring(0, s), t[0] = t[0].substring(0, a).trim(), t[3] = "";
272
+ }
273
+ }
274
+ let r = t[2], i = "";
275
+ if (this.options.pedantic) {
276
+ let s = this.rules.other.pedanticHrefTitle.exec(r);
277
+ s && (r = s[1], i = s[3]);
278
+ } else i = t[3] ? t[3].slice(1, -1) : "";
279
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
280
+ }
281
+ }
282
+ reflink(e, t) {
283
+ let n;
284
+ if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
285
+ let r = (n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "), i = t[r.toLowerCase()];
286
+ if (!i) {
287
+ let s = n[0].charAt(0);
288
+ return { type: "text", raw: s, text: s };
289
+ }
290
+ return me(n, i, n[0], this.lexer, this.rules);
291
+ }
292
+ }
293
+ emStrong(e, t, n = "") {
294
+ let r = this.rules.inline.emStrongLDelim.exec(e);
295
+ if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
296
+ if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
297
+ let s = [...r[0]].length - 1, o, a, l = s, c = 0, p = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
298
+ for (p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null; ) {
299
+ if (o = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !o) continue;
300
+ if (a = [...o].length, r[3] || r[4]) {
301
+ l += a;
302
+ continue;
303
+ } else if ((r[5] || r[6]) && s % 3 && !((s + a) % 3)) {
304
+ c += a;
305
+ continue;
306
+ }
307
+ if (l -= a, l > 0) continue;
308
+ a = Math.min(a, a + l + c);
309
+ let g = [...r[0]][0].length, d = e.slice(0, s + r.index + g + a);
310
+ if (Math.min(s, a) % 2) {
311
+ let f = d.slice(1, -1);
312
+ return { type: "em", raw: d, text: f, tokens: this.lexer.inlineTokens(f) };
313
+ }
314
+ let R = d.slice(2, -2);
315
+ return { type: "strong", raw: d, text: R, tokens: this.lexer.inlineTokens(R) };
316
+ }
317
+ }
318
+ }
319
+ codespan(e) {
320
+ let t = this.rules.inline.code.exec(e);
321
+ if (t) {
322
+ let n = t[2].replace(this.rules.other.newLineCharGlobal, " "), r = this.rules.other.nonSpaceChar.test(n), i = this.rules.other.startingSpaceChar.test(n) && this.rules.other.endingSpaceChar.test(n);
323
+ return r && i && (n = n.substring(1, n.length - 1)), { type: "codespan", raw: t[0], text: n };
324
+ }
325
+ }
326
+ br(e) {
327
+ let t = this.rules.inline.br.exec(e);
328
+ if (t) return { type: "br", raw: t[0] };
329
+ }
330
+ del(e) {
331
+ let t = this.rules.inline.del.exec(e);
332
+ if (t) return { type: "del", raw: t[0], text: t[2], tokens: this.lexer.inlineTokens(t[2]) };
333
+ }
334
+ autolink(e) {
335
+ let t = this.rules.inline.autolink.exec(e);
336
+ if (t) {
337
+ let n, r;
338
+ return t[2] === "@" ? (n = t[1], r = "mailto:" + n) : (n = t[1], r = n), { type: "link", raw: t[0], text: n, href: r, tokens: [{ type: "text", raw: n, text: n }] };
339
+ }
340
+ }
341
+ url(e) {
342
+ let t;
343
+ if (t = this.rules.inline.url.exec(e)) {
344
+ let n, r;
345
+ if (t[2] === "@") n = t[0], r = "mailto:" + n;
346
+ else {
347
+ let i;
348
+ do
349
+ i = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
350
+ while (i !== t[0]);
351
+ n = t[0], t[1] === "www." ? r = "http://" + t[0] : r = t[0];
352
+ }
353
+ return { type: "link", raw: t[0], text: n, href: r, tokens: [{ type: "text", raw: n, text: n }] };
354
+ }
355
+ }
356
+ inlineText(e) {
357
+ let t = this.rules.inline.text.exec(e);
358
+ if (t) {
359
+ let n = this.lexer.state.inRawBlock;
360
+ return { type: "text", raw: t[0], text: t[0], escaped: n };
361
+ }
362
+ }
363
+ };
364
+ var x = class u {
365
+ tokens;
366
+ options;
367
+ state;
368
+ tokenizer;
369
+ inlineQueue;
370
+ constructor(e) {
371
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
372
+ let t = { other: m, block: C.normal, inline: M.normal };
373
+ this.options.pedantic ? (t.block = C.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
374
+ }
375
+ static get rules() {
376
+ return { block: C, inline: M };
377
+ }
378
+ static lex(e, t) {
379
+ return new u(t).lex(e);
380
+ }
381
+ static lexInline(e, t) {
382
+ return new u(t).inlineTokens(e);
383
+ }
384
+ lex(e) {
385
+ e = e.replace(m.carriageReturn, `
386
+ `), this.blockTokens(e, this.tokens);
387
+ for (let t = 0; t < this.inlineQueue.length; t++) {
388
+ let n = this.inlineQueue[t];
389
+ this.inlineTokens(n.src, n.tokens);
390
+ }
391
+ return this.inlineQueue = [], this.tokens;
392
+ }
393
+ blockTokens(e, t = [], n = false) {
394
+ for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e; ) {
395
+ let r;
396
+ if (this.options.extensions?.block?.some((s) => (r = s.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), true) : false)) continue;
397
+ if (r = this.tokenizer.space(e)) {
398
+ e = e.substring(r.raw.length);
399
+ let s = t.at(-1);
400
+ r.raw.length === 1 && s !== void 0 ? s.raw += `
401
+ ` : t.push(r);
402
+ continue;
403
+ }
404
+ if (r = this.tokenizer.code(e)) {
405
+ e = e.substring(r.raw.length);
406
+ let s = t.at(-1);
407
+ s?.type === "paragraph" || s?.type === "text" ? (s.raw += (s.raw.endsWith(`
408
+ `) ? "" : `
409
+ `) + r.raw, s.text += `
410
+ ` + r.text, this.inlineQueue.at(-1).src = s.text) : t.push(r);
411
+ continue;
412
+ }
413
+ if (r = this.tokenizer.fences(e)) {
414
+ e = e.substring(r.raw.length), t.push(r);
415
+ continue;
416
+ }
417
+ if (r = this.tokenizer.heading(e)) {
418
+ e = e.substring(r.raw.length), t.push(r);
419
+ continue;
420
+ }
421
+ if (r = this.tokenizer.hr(e)) {
422
+ e = e.substring(r.raw.length), t.push(r);
423
+ continue;
424
+ }
425
+ if (r = this.tokenizer.blockquote(e)) {
426
+ e = e.substring(r.raw.length), t.push(r);
427
+ continue;
428
+ }
429
+ if (r = this.tokenizer.list(e)) {
430
+ e = e.substring(r.raw.length), t.push(r);
431
+ continue;
432
+ }
433
+ if (r = this.tokenizer.html(e)) {
434
+ e = e.substring(r.raw.length), t.push(r);
435
+ continue;
436
+ }
437
+ if (r = this.tokenizer.def(e)) {
438
+ e = e.substring(r.raw.length);
439
+ let s = t.at(-1);
440
+ s?.type === "paragraph" || s?.type === "text" ? (s.raw += (s.raw.endsWith(`
441
+ `) ? "" : `
442
+ `) + r.raw, s.text += `
443
+ ` + r.raw, this.inlineQueue.at(-1).src = s.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = { href: r.href, title: r.title }, t.push(r));
444
+ continue;
445
+ }
446
+ if (r = this.tokenizer.table(e)) {
447
+ e = e.substring(r.raw.length), t.push(r);
448
+ continue;
449
+ }
450
+ if (r = this.tokenizer.lheading(e)) {
451
+ e = e.substring(r.raw.length), t.push(r);
452
+ continue;
453
+ }
454
+ let i = e;
455
+ if (this.options.extensions?.startBlock) {
456
+ let s = 1 / 0, o = e.slice(1), a;
457
+ this.options.extensions.startBlock.forEach((l) => {
458
+ a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s = Math.min(s, a));
459
+ }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
460
+ }
461
+ if (this.state.top && (r = this.tokenizer.paragraph(i))) {
462
+ let s = t.at(-1);
463
+ n && s?.type === "paragraph" ? (s.raw += (s.raw.endsWith(`
464
+ `) ? "" : `
465
+ `) + r.raw, s.text += `
466
+ ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
467
+ continue;
468
+ }
469
+ if (r = this.tokenizer.text(e)) {
470
+ e = e.substring(r.raw.length);
471
+ let s = t.at(-1);
472
+ s?.type === "text" ? (s.raw += (s.raw.endsWith(`
473
+ `) ? "" : `
474
+ `) + r.raw, s.text += `
475
+ ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r);
476
+ continue;
477
+ }
478
+ if (e) {
479
+ let s = "Infinite loop on byte: " + e.charCodeAt(0);
480
+ if (this.options.silent) {
481
+ console.error(s);
482
+ break;
483
+ } else throw new Error(s);
484
+ }
485
+ }
486
+ return this.state.top = true, t;
487
+ }
488
+ inline(e, t = []) {
489
+ return this.inlineQueue.push({ src: e, tokens: t }), t;
490
+ }
491
+ inlineTokens(e, t = []) {
492
+ let n = e, r = null;
493
+ if (this.tokens.links) {
494
+ let o = Object.keys(this.tokens.links);
495
+ if (o.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) o.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));
496
+ }
497
+ for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
498
+ for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
499
+ n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
500
+ let i = false, s = "";
501
+ for (; e; ) {
502
+ i || (s = ""), i = false;
503
+ let o;
504
+ if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
505
+ if (o = this.tokenizer.escape(e)) {
506
+ e = e.substring(o.raw.length), t.push(o);
507
+ continue;
508
+ }
509
+ if (o = this.tokenizer.tag(e)) {
510
+ e = e.substring(o.raw.length), t.push(o);
511
+ continue;
512
+ }
513
+ if (o = this.tokenizer.link(e)) {
514
+ e = e.substring(o.raw.length), t.push(o);
515
+ continue;
516
+ }
517
+ if (o = this.tokenizer.reflink(e, this.tokens.links)) {
518
+ e = e.substring(o.raw.length);
519
+ let l = t.at(-1);
520
+ o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
521
+ continue;
522
+ }
523
+ if (o = this.tokenizer.emStrong(e, n, s)) {
524
+ e = e.substring(o.raw.length), t.push(o);
525
+ continue;
526
+ }
527
+ if (o = this.tokenizer.codespan(e)) {
528
+ e = e.substring(o.raw.length), t.push(o);
529
+ continue;
530
+ }
531
+ if (o = this.tokenizer.br(e)) {
532
+ e = e.substring(o.raw.length), t.push(o);
533
+ continue;
534
+ }
535
+ if (o = this.tokenizer.del(e)) {
536
+ e = e.substring(o.raw.length), t.push(o);
537
+ continue;
538
+ }
539
+ if (o = this.tokenizer.autolink(e)) {
540
+ e = e.substring(o.raw.length), t.push(o);
541
+ continue;
542
+ }
543
+ if (!this.state.inLink && (o = this.tokenizer.url(e))) {
544
+ e = e.substring(o.raw.length), t.push(o);
545
+ continue;
546
+ }
547
+ let a = e;
548
+ if (this.options.extensions?.startInline) {
549
+ let l = 1 / 0, c = e.slice(1), p;
550
+ this.options.extensions.startInline.forEach((g) => {
551
+ p = g.call({ lexer: this }, c), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
552
+ }), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
553
+ }
554
+ if (o = this.tokenizer.inlineText(a)) {
555
+ e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s = o.raw.slice(-1)), i = true;
556
+ let l = t.at(-1);
557
+ l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
558
+ continue;
559
+ }
560
+ if (e) {
561
+ let l = "Infinite loop on byte: " + e.charCodeAt(0);
562
+ if (this.options.silent) {
563
+ console.error(l);
564
+ break;
565
+ } else throw new Error(l);
566
+ }
567
+ }
568
+ return t;
569
+ }
570
+ };
571
+ var P = class {
572
+ options;
573
+ parser;
574
+ constructor(e) {
575
+ this.options = e || T;
576
+ }
577
+ space(e) {
578
+ return "";
579
+ }
580
+ code({ text: e, lang: t, escaped: n }) {
581
+ let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
582
+ `;
583
+ return r ? '<pre><code class="language-' + w(r) + '">' + (n ? i : w(i, true)) + `</code></pre>
584
+ ` : "<pre><code>" + (n ? i : w(i, true)) + `</code></pre>
585
+ `;
586
+ }
587
+ blockquote({ tokens: e }) {
588
+ return `<blockquote>
589
+ ${this.parser.parse(e)}</blockquote>
590
+ `;
591
+ }
592
+ html({ text: e }) {
593
+ return e;
594
+ }
595
+ def(e) {
596
+ return "";
597
+ }
598
+ heading({ tokens: e, depth: t }) {
599
+ return `<h${t}>${this.parser.parseInline(e)}</h${t}>
600
+ `;
601
+ }
602
+ hr(e) {
603
+ return `<hr>
604
+ `;
605
+ }
606
+ list(e) {
607
+ let t = e.ordered, n = e.start, r = "";
608
+ for (let o = 0; o < e.items.length; o++) {
609
+ let a = e.items[o];
610
+ r += this.listitem(a);
611
+ }
612
+ let i = t ? "ol" : "ul", s = t && n !== 1 ? ' start="' + n + '"' : "";
613
+ return "<" + i + s + `>
614
+ ` + r + "</" + i + `>
615
+ `;
616
+ }
617
+ listitem(e) {
618
+ let t = "";
619
+ if (e.task) {
620
+ let n = this.checkbox({ checked: !!e.checked });
621
+ e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + w(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = true)) : e.tokens.unshift({ type: "text", raw: n + " ", text: n + " ", escaped: true }) : t += n + " ";
622
+ }
623
+ return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
624
+ `;
625
+ }
626
+ checkbox({ checked: e }) {
627
+ return "<input " + (e ? 'checked="" ' : "") + 'disabled="" type="checkbox">';
628
+ }
629
+ paragraph({ tokens: e }) {
630
+ return `<p>${this.parser.parseInline(e)}</p>
631
+ `;
632
+ }
633
+ table(e) {
634
+ let t = "", n = "";
635
+ for (let i = 0; i < e.header.length; i++) n += this.tablecell(e.header[i]);
636
+ t += this.tablerow({ text: n });
637
+ let r = "";
638
+ for (let i = 0; i < e.rows.length; i++) {
639
+ let s = e.rows[i];
640
+ n = "";
641
+ for (let o = 0; o < s.length; o++) n += this.tablecell(s[o]);
642
+ r += this.tablerow({ text: n });
643
+ }
644
+ return r && (r = `<tbody>${r}</tbody>`), `<table>
645
+ <thead>
646
+ ` + t + `</thead>
647
+ ` + r + `</table>
648
+ `;
649
+ }
650
+ tablerow({ text: e }) {
651
+ return `<tr>
652
+ ${e}</tr>
653
+ `;
654
+ }
655
+ tablecell(e) {
656
+ let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
657
+ return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
658
+ `;
659
+ }
660
+ strong({ tokens: e }) {
661
+ return `<strong>${this.parser.parseInline(e)}</strong>`;
662
+ }
663
+ em({ tokens: e }) {
664
+ return `<em>${this.parser.parseInline(e)}</em>`;
665
+ }
666
+ codespan({ text: e }) {
667
+ return `<code>${w(e, true)}</code>`;
668
+ }
669
+ br(e) {
670
+ return "<br>";
671
+ }
672
+ del({ tokens: e }) {
673
+ return `<del>${this.parser.parseInline(e)}</del>`;
674
+ }
675
+ link({ href: e, title: t, tokens: n }) {
676
+ let r = this.parser.parseInline(n), i = J(e);
677
+ if (i === null) return r;
678
+ e = i;
679
+ let s = '<a href="' + e + '"';
680
+ return t && (s += ' title="' + w(t) + '"'), s += ">" + r + "</a>", s;
681
+ }
682
+ image({ href: e, title: t, text: n, tokens: r }) {
683
+ r && (n = this.parser.parseInline(r, this.parser.textRenderer));
684
+ let i = J(e);
685
+ if (i === null) return w(n);
686
+ e = i;
687
+ let s = `<img src="${e}" alt="${n}"`;
688
+ return t && (s += ` title="${w(t)}"`), s += ">", s;
689
+ }
690
+ text(e) {
691
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
692
+ }
693
+ };
694
+ var $ = class {
695
+ strong({ text: e }) {
696
+ return e;
697
+ }
698
+ em({ text: e }) {
699
+ return e;
700
+ }
701
+ codespan({ text: e }) {
702
+ return e;
703
+ }
704
+ del({ text: e }) {
705
+ return e;
706
+ }
707
+ html({ text: e }) {
708
+ return e;
709
+ }
710
+ text({ text: e }) {
711
+ return e;
712
+ }
713
+ link({ text: e }) {
714
+ return "" + e;
715
+ }
716
+ image({ text: e }) {
717
+ return "" + e;
718
+ }
719
+ br() {
720
+ return "";
721
+ }
722
+ };
723
+ var b = class u2 {
724
+ options;
725
+ renderer;
726
+ textRenderer;
727
+ constructor(e) {
728
+ this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
729
+ }
730
+ static parse(e, t) {
731
+ return new u2(t).parse(e);
732
+ }
733
+ static parseInline(e, t) {
734
+ return new u2(t).parseInline(e);
735
+ }
736
+ parse(e, t = true) {
737
+ let n = "";
738
+ for (let r = 0; r < e.length; r++) {
739
+ let i = e[r];
740
+ if (this.options.extensions?.renderers?.[i.type]) {
741
+ let o = i, a = this.options.extensions.renderers[o.type].call({ parser: this }, o);
742
+ if (a !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
743
+ n += a || "";
744
+ continue;
745
+ }
746
+ }
747
+ let s = i;
748
+ switch (s.type) {
749
+ case "space": {
750
+ n += this.renderer.space(s);
751
+ continue;
752
+ }
753
+ case "hr": {
754
+ n += this.renderer.hr(s);
755
+ continue;
756
+ }
757
+ case "heading": {
758
+ n += this.renderer.heading(s);
759
+ continue;
760
+ }
761
+ case "code": {
762
+ n += this.renderer.code(s);
763
+ continue;
764
+ }
765
+ case "table": {
766
+ n += this.renderer.table(s);
767
+ continue;
768
+ }
769
+ case "blockquote": {
770
+ n += this.renderer.blockquote(s);
771
+ continue;
772
+ }
773
+ case "list": {
774
+ n += this.renderer.list(s);
775
+ continue;
776
+ }
777
+ case "html": {
778
+ n += this.renderer.html(s);
779
+ continue;
780
+ }
781
+ case "def": {
782
+ n += this.renderer.def(s);
783
+ continue;
784
+ }
785
+ case "paragraph": {
786
+ n += this.renderer.paragraph(s);
787
+ continue;
788
+ }
789
+ case "text": {
790
+ let o = s, a = this.renderer.text(o);
791
+ for (; r + 1 < e.length && e[r + 1].type === "text"; ) o = e[++r], a += `
792
+ ` + this.renderer.text(o);
793
+ t ? n += this.renderer.paragraph({ type: "paragraph", raw: a, text: a, tokens: [{ type: "text", raw: a, text: a, escaped: true }] }) : n += a;
794
+ continue;
795
+ }
796
+ default: {
797
+ let o = 'Token with "' + s.type + '" type was not found.';
798
+ if (this.options.silent) return console.error(o), "";
799
+ throw new Error(o);
800
+ }
801
+ }
802
+ }
803
+ return n;
804
+ }
805
+ parseInline(e, t = this.renderer) {
806
+ let n = "";
807
+ for (let r = 0; r < e.length; r++) {
808
+ let i = e[r];
809
+ if (this.options.extensions?.renderers?.[i.type]) {
810
+ let o = this.options.extensions.renderers[i.type].call({ parser: this }, i);
811
+ if (o !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
812
+ n += o || "";
813
+ continue;
814
+ }
815
+ }
816
+ let s = i;
817
+ switch (s.type) {
818
+ case "escape": {
819
+ n += t.text(s);
820
+ break;
821
+ }
822
+ case "html": {
823
+ n += t.html(s);
824
+ break;
825
+ }
826
+ case "link": {
827
+ n += t.link(s);
828
+ break;
829
+ }
830
+ case "image": {
831
+ n += t.image(s);
832
+ break;
833
+ }
834
+ case "strong": {
835
+ n += t.strong(s);
836
+ break;
837
+ }
838
+ case "em": {
839
+ n += t.em(s);
840
+ break;
841
+ }
842
+ case "codespan": {
843
+ n += t.codespan(s);
844
+ break;
845
+ }
846
+ case "br": {
847
+ n += t.br(s);
848
+ break;
849
+ }
850
+ case "del": {
851
+ n += t.del(s);
852
+ break;
853
+ }
854
+ case "text": {
855
+ n += t.text(s);
856
+ break;
857
+ }
858
+ default: {
859
+ let o = 'Token with "' + s.type + '" type was not found.';
860
+ if (this.options.silent) return console.error(o), "";
861
+ throw new Error(o);
862
+ }
863
+ }
864
+ }
865
+ return n;
866
+ }
867
+ };
868
+ var S = class {
869
+ options;
870
+ block;
871
+ constructor(e) {
872
+ this.options = e || T;
873
+ }
874
+ static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
875
+ static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
876
+ preprocess(e) {
877
+ return e;
878
+ }
879
+ postprocess(e) {
880
+ return e;
881
+ }
882
+ processAllTokens(e) {
883
+ return e;
884
+ }
885
+ emStrongMask(e) {
886
+ return e;
887
+ }
888
+ provideLexer() {
889
+ return this.block ? x.lex : x.lexInline;
890
+ }
891
+ provideParser() {
892
+ return this.block ? b.parse : b.parseInline;
893
+ }
894
+ };
895
+ var B = class {
896
+ defaults = L();
897
+ options = this.setOptions;
898
+ parse = this.parseMarkdown(true);
899
+ parseInline = this.parseMarkdown(false);
900
+ Parser = b;
901
+ Renderer = P;
902
+ TextRenderer = $;
903
+ Lexer = x;
904
+ Tokenizer = y;
905
+ Hooks = S;
906
+ constructor(...e) {
907
+ this.use(...e);
908
+ }
909
+ walkTokens(e, t) {
910
+ let n = [];
911
+ for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
912
+ case "table": {
913
+ let i = r;
914
+ for (let s of i.header) n = n.concat(this.walkTokens(s.tokens, t));
915
+ for (let s of i.rows) for (let o of s) n = n.concat(this.walkTokens(o.tokens, t));
916
+ break;
917
+ }
918
+ case "list": {
919
+ let i = r;
920
+ n = n.concat(this.walkTokens(i.items, t));
921
+ break;
922
+ }
923
+ default: {
924
+ let i = r;
925
+ this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((s) => {
926
+ let o = i[s].flat(1 / 0);
927
+ n = n.concat(this.walkTokens(o, t));
928
+ }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
929
+ }
930
+ }
931
+ return n;
932
+ }
933
+ use(...e) {
934
+ let t = this.defaults.extensions || { renderers: {}, childTokens: {} };
935
+ return e.forEach((n) => {
936
+ let r = { ...n };
937
+ if (r.async = this.defaults.async || r.async || false, n.extensions && (n.extensions.forEach((i) => {
938
+ if (!i.name) throw new Error("extension name required");
939
+ if ("renderer" in i) {
940
+ let s = t.renderers[i.name];
941
+ s ? t.renderers[i.name] = function(...o) {
942
+ let a = i.renderer.apply(this, o);
943
+ return a === false && (a = s.apply(this, o)), a;
944
+ } : t.renderers[i.name] = i.renderer;
945
+ }
946
+ if ("tokenizer" in i) {
947
+ if (!i.level || i.level !== "block" && i.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
948
+ let s = t[i.level];
949
+ s ? s.unshift(i.tokenizer) : t[i.level] = [i.tokenizer], i.start && (i.level === "block" ? t.startBlock ? t.startBlock.push(i.start) : t.startBlock = [i.start] : i.level === "inline" && (t.startInline ? t.startInline.push(i.start) : t.startInline = [i.start]));
950
+ }
951
+ "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
952
+ }), r.extensions = t), n.renderer) {
953
+ let i = this.defaults.renderer || new P(this.defaults);
954
+ for (let s in n.renderer) {
955
+ if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
956
+ if (["options", "parser"].includes(s)) continue;
957
+ let o = s, a = n.renderer[o], l = i[o];
958
+ i[o] = (...c) => {
959
+ let p = a.apply(i, c);
960
+ return p === false && (p = l.apply(i, c)), p || "";
961
+ };
962
+ }
963
+ r.renderer = i;
964
+ }
965
+ if (n.tokenizer) {
966
+ let i = this.defaults.tokenizer || new y(this.defaults);
967
+ for (let s in n.tokenizer) {
968
+ if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
969
+ if (["options", "rules", "lexer"].includes(s)) continue;
970
+ let o = s, a = n.tokenizer[o], l = i[o];
971
+ i[o] = (...c) => {
972
+ let p = a.apply(i, c);
973
+ return p === false && (p = l.apply(i, c)), p;
974
+ };
975
+ }
976
+ r.tokenizer = i;
977
+ }
978
+ if (n.hooks) {
979
+ let i = this.defaults.hooks || new S();
980
+ for (let s in n.hooks) {
981
+ if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
982
+ if (["options", "block"].includes(s)) continue;
983
+ let o = s, a = n.hooks[o], l = i[o];
984
+ S.passThroughHooks.has(s) ? i[o] = (c) => {
985
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return (async () => {
986
+ let g = await a.call(i, c);
987
+ return l.call(i, g);
988
+ })();
989
+ let p = a.call(i, c);
990
+ return l.call(i, p);
991
+ } : i[o] = (...c) => {
992
+ if (this.defaults.async) return (async () => {
993
+ let g = await a.apply(i, c);
994
+ return g === false && (g = await l.apply(i, c)), g;
995
+ })();
996
+ let p = a.apply(i, c);
997
+ return p === false && (p = l.apply(i, c)), p;
998
+ };
999
+ }
1000
+ r.hooks = i;
1001
+ }
1002
+ if (n.walkTokens) {
1003
+ let i = this.defaults.walkTokens, s = n.walkTokens;
1004
+ r.walkTokens = function(o) {
1005
+ let a = [];
1006
+ return a.push(s.call(this, o)), i && (a = a.concat(i.call(this, o))), a;
1007
+ };
1008
+ }
1009
+ this.defaults = { ...this.defaults, ...r };
1010
+ }), this;
1011
+ }
1012
+ setOptions(e) {
1013
+ return this.defaults = { ...this.defaults, ...e }, this;
1014
+ }
1015
+ lexer(e, t) {
1016
+ return x.lex(e, t ?? this.defaults);
1017
+ }
1018
+ parser(e, t) {
1019
+ return b.parse(e, t ?? this.defaults);
1020
+ }
1021
+ parseMarkdown(e) {
1022
+ return (n, r) => {
1023
+ let i = { ...r }, s = { ...this.defaults, ...i }, o = this.onError(!!s.silent, !!s.async);
1024
+ if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1025
+ if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
1026
+ if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
1027
+ if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async) return (async () => {
1028
+ let a = s.hooks ? await s.hooks.preprocess(n) : n, c = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s), p = s.hooks ? await s.hooks.processAllTokens(c) : c;
1029
+ s.walkTokens && await Promise.all(this.walkTokens(p, s.walkTokens));
1030
+ let d = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s);
1031
+ return s.hooks ? await s.hooks.postprocess(d) : d;
1032
+ })().catch(o);
1033
+ try {
1034
+ s.hooks && (n = s.hooks.preprocess(n));
1035
+ let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
1036
+ s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
1037
+ let p = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s);
1038
+ return s.hooks && (p = s.hooks.postprocess(p)), p;
1039
+ } catch (a) {
1040
+ return o(a);
1041
+ }
1042
+ };
1043
+ }
1044
+ onError(e, t) {
1045
+ return (n) => {
1046
+ if (n.message += `
1047
+ Please report this to https://github.com/markedjs/marked.`, e) {
1048
+ let r = "<p>An error occurred:</p><pre>" + w(n.message + "", true) + "</pre>";
1049
+ return t ? Promise.resolve(r) : r;
1050
+ }
1051
+ if (t) return Promise.reject(n);
1052
+ throw n;
1053
+ };
1054
+ }
1055
+ };
1056
+ var _ = new B();
1057
+ function k(u3, e) {
1058
+ return _.parse(u3, e);
1059
+ }
1060
+ k.options = k.setOptions = function(u3) {
1061
+ return _.setOptions(u3), k.defaults = _.defaults, G(k.defaults), k;
1062
+ };
1063
+ k.getDefaults = L;
1064
+ k.defaults = T;
1065
+ k.use = function(...u3) {
1066
+ return _.use(...u3), k.defaults = _.defaults, G(k.defaults), k;
1067
+ };
1068
+ k.walkTokens = function(u3, e) {
1069
+ return _.walkTokens(u3, e);
1070
+ };
1071
+ k.parseInline = _.parseInline;
1072
+ k.Parser = b;
1073
+ k.parser = b.parse;
1074
+ k.Renderer = P;
1075
+ k.TextRenderer = $;
1076
+ k.Lexer = x;
1077
+ k.lexer = x.lex;
1078
+ k.Tokenizer = y;
1079
+ k.Hooks = S;
1080
+ k.parse = k;
1081
+ k.options;
1082
+ k.setOptions;
1083
+ k.use;
1084
+ k.walkTokens;
1085
+ k.parseInline;
1086
+ b.parse;
1087
+ x.lex;
1088
+ export {
1089
+ S as Hooks,
1090
+ x as Lexer,
1091
+ B as Marked,
1092
+ b as Parser,
1093
+ P as Renderer,
1094
+ $ as TextRenderer,
1095
+ y as Tokenizer,
1096
+ T as defaults,
1097
+ L as getDefaults,
1098
+ k as marked
1099
+ };