hermium 0.1.10 → 0.3.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 (216) hide show
  1. package/README.md +56 -0
  2. package/bin/hermium.mjs +201 -136
  3. package/dist/api.mjs +3513 -0
  4. package/dist/{web-server → server}/_chunks/ssr-renderer.mjs +1 -1
  5. package/dist/{web-server → server}/_libs/base-ui__react.mjs +338 -34
  6. package/dist/{web-server → server}/_libs/base-ui__utils.mjs +38 -33
  7. package/dist/server/_libs/comma-separated-tokens.mjs +10 -0
  8. package/dist/{web-server → server}/_libs/floating-ui__core.mjs +3 -3
  9. package/dist/{web-server → server}/_libs/floating-ui__dom.mjs +4 -4
  10. package/dist/{web-server → server}/_libs/floating-ui__react-dom.mjs +3 -3
  11. package/dist/{web-server → server}/_libs/floating-ui__utils.mjs +38 -38
  12. package/dist/{web-server → server}/_libs/h3.mjs +3 -3
  13. package/dist/server/_libs/hast-util-is-element.mjs +75 -0
  14. package/dist/{web-server → server}/_libs/hast-util-to-jsx-runtime.mjs +2 -2
  15. package/dist/server/_libs/hast-util-to-text.mjs +305 -0
  16. package/dist/server/_libs/highlight.js.mjs +14756 -0
  17. package/dist/server/_libs/lowlight.mjs +262 -0
  18. package/dist/{web-server → server}/_libs/mdast-util-from-markdown.mjs +1 -1
  19. package/dist/{web-server → server}/_libs/mdast-util-gfm-autolink-literal+[...].mjs +2 -2
  20. package/dist/{web-server → server}/_libs/mdast-util-to-hast.mjs +1 -1
  21. package/dist/{web-server → server}/_libs/micromark-core-commonmark.mjs +24 -24
  22. package/dist/{web-server → server}/_libs/micromark-extension-gfm-autolink-literal+[...].mjs +1 -1
  23. package/dist/{web-server → server}/_libs/micromark-extension-gfm-footnote+[...].mjs +2 -2
  24. package/dist/{web-server → server}/_libs/micromark-extension-gfm-table.mjs +1 -1
  25. package/dist/{web-server → server}/_libs/micromark-extension-gfm-task-list-item+[...].mjs +1 -1
  26. package/dist/{web-server → server}/_libs/micromark-factory-destination.mjs +1 -1
  27. package/dist/{web-server → server}/_libs/micromark-factory-label.mjs +1 -1
  28. package/dist/{web-server → server}/_libs/micromark-factory-space.mjs +1 -1
  29. package/dist/{web-server → server}/_libs/micromark-factory-whitespace.mjs +1 -1
  30. package/dist/{web-server → server}/_libs/micromark-util-character.mjs +12 -12
  31. package/dist/{web-server → server}/_libs/micromark-util-classify-character+[...].mjs +1 -1
  32. package/dist/{web-server → server}/_libs/micromark-util-html-tag-name.mjs +2 -2
  33. package/dist/{web-server → server}/_libs/micromark-util-sanitize-uri.mjs +1 -1
  34. package/dist/{web-server → server}/_libs/micromark.mjs +3 -3
  35. package/dist/{web-server → server}/_libs/property-information.mjs +2 -3
  36. package/dist/{web-server → server}/_libs/react-dom.mjs +1 -1
  37. package/dist/{web-server → server}/_libs/react.mjs +42 -42
  38. package/dist/server/_libs/rehype-highlight.mjs +94 -0
  39. package/dist/server/_libs/space-separated-tokens.mjs +6 -0
  40. package/dist/server/_libs/tabler__icons-react.mjs +140 -0
  41. package/dist/server/_libs/tailwind-merge.mjs +3255 -0
  42. package/dist/server/_libs/tanstack__history.mjs +29 -0
  43. package/dist/{web-server → server}/_libs/tanstack__react-router.mjs +3 -3
  44. package/dist/{web-server → server}/_libs/tanstack__router-core.mjs +47 -741
  45. package/dist/server/_libs/unist-util-find-after.mjs +41 -0
  46. package/dist/{web-server → server}/_libs/unist-util-position.mjs +2 -2
  47. package/dist/{web-server → server}/_libs/use-sync-external-store.mjs +1 -1
  48. package/dist/server/_libs/zustand.mjs +43 -0
  49. package/dist/server/_ssr/ChatInputBlock-Bu2-iop_.mjs +220 -0
  50. package/dist/server/_ssr/MarkdownMessage-CNS7OSKN.mjs +68 -0
  51. package/dist/server/_ssr/chat._sessionId-P02iSfut.mjs +477 -0
  52. package/dist/{web-server/_ssr/index-CoDfv1vI.mjs → server/_ssr/chat.index-BYB_48NC.mjs} +6 -8
  53. package/dist/server/_ssr/index-C1mT_2d8.mjs +4890 -0
  54. package/dist/server/_ssr/index-DFV9_oCk.mjs +43 -0
  55. package/dist/server/_ssr/memory-CW_fSOG9.mjs +257 -0
  56. package/dist/{web-server/_ssr/router-CS6Zq3md.mjs → server/_ssr/router-CUAfx91O.mjs} +1009 -1108
  57. package/dist/server/_ssr/settings-DoXurzvn.mjs +10 -0
  58. package/dist/server/_ssr/skills-Cs7A5ZwO.mjs +422 -0
  59. package/dist/server/_ssr/theme-BK4-7E2h.mjs +42 -0
  60. package/dist/server/_ssr/usage-Bs2-LXGz.mjs +298 -0
  61. package/dist/server/_tanstack-start-manifest_v-C7Upe2TI.mjs +4 -0
  62. package/dist/server/index.mjs +502 -240
  63. package/package.json +4 -3
  64. package/dist/public/assets/IconAlertCircle-BW147gsG.js +0 -1
  65. package/dist/public/assets/IconAlertTriangle-DCoTLVSd.js +0 -1
  66. package/dist/public/assets/IconCheck-DAO7Fpl9.js +0 -1
  67. package/dist/public/assets/IconCode-BqfTl5wU.js +0 -1
  68. package/dist/public/assets/IconLoader2-B_pehSXN.js +0 -1
  69. package/dist/public/assets/IconRefresh-BbMGoMV8.js +0 -1
  70. package/dist/public/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
  71. package/dist/public/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
  72. package/dist/public/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
  73. package/dist/public/assets/index-BL9a2Xg9.js +0 -1
  74. package/dist/public/assets/index-BSwXjgjr.js +0 -1
  75. package/dist/public/assets/index-BWl8tn18.js +0 -1
  76. package/dist/public/assets/index-CQh8SXb2.js +0 -94
  77. package/dist/public/assets/index-Cxd-kSUY.js +0 -1
  78. package/dist/public/assets/index-DA5SH--7.js +0 -2
  79. package/dist/public/assets/index-DCHbvtBS.js +0 -1
  80. package/dist/public/assets/index-DCYXJZEe.js +0 -1
  81. package/dist/public/assets/index-DFDfp0ca.js +0 -1
  82. package/dist/public/assets/index-GuAAqSCJ.js +0 -14
  83. package/dist/public/assets/index-WIDirTHx.js +0 -29
  84. package/dist/public/assets/index-X3XZcAzy.js +0 -1
  85. package/dist/public/assets/input-7TQEEJq6.js +0 -1
  86. package/dist/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  87. package/dist/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  88. package/dist/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  89. package/dist/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  90. package/dist/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  91. package/dist/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  92. package/dist/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  93. package/dist/public/assets/models-BlUb1eaf.js +0 -1
  94. package/dist/public/assets/styles-PHtUFHUr.css +0 -1
  95. package/dist/public/assets/switch-B_iYUUM3.js +0 -1
  96. package/dist/public/assets/syntax-highlighter-DcBYfnEK.js +0 -6
  97. package/dist/public/assets/textarea-Dm4aaRqS.js +0 -1
  98. package/dist/public/favicon.ico +0 -0
  99. package/dist/public/favicon.png +0 -0
  100. package/dist/public/manifest.json +0 -25
  101. package/dist/public/nous-logo.png +0 -0
  102. package/dist/public/robots.txt +0 -3
  103. package/dist/web-server/_libs/babel__runtime.mjs +0 -237
  104. package/dist/web-server/_libs/character-entities-legacy.mjs +0 -111
  105. package/dist/web-server/_libs/character-reference-invalid.mjs +0 -33
  106. package/dist/web-server/_libs/comma-separated-tokens.mjs +0 -31
  107. package/dist/web-server/_libs/cookie-es.mjs +0 -44
  108. package/dist/web-server/_libs/hast-util-parse-selector.mjs +0 -39
  109. package/dist/web-server/_libs/hastscript.mjs +0 -200
  110. package/dist/web-server/_libs/is-alphabetical.mjs +0 -7
  111. package/dist/web-server/_libs/is-alphanumerical.mjs +0 -8
  112. package/dist/web-server/_libs/is-decimal.mjs +0 -7
  113. package/dist/web-server/_libs/is-hexadecimal.mjs +0 -7
  114. package/dist/web-server/_libs/lowlight.mjs +0 -1
  115. package/dist/web-server/_libs/parse-entities.mjs +0 -245
  116. package/dist/web-server/_libs/react-syntax-highlighter.mjs +0 -941
  117. package/dist/web-server/_libs/refractor.mjs +0 -2425
  118. package/dist/web-server/_libs/seroval-plugins.mjs +0 -58
  119. package/dist/web-server/_libs/seroval.mjs +0 -1775
  120. package/dist/web-server/_libs/space-separated-tokens.mjs +0 -11
  121. package/dist/web-server/_libs/tabler__icons-react.mjs +0 -233
  122. package/dist/web-server/_libs/tanstack__history.mjs +0 -204
  123. package/dist/web-server/_libs/tanstack__query-core.mjs +0 -2552
  124. package/dist/web-server/_libs/tanstack__react-query.mjs +0 -190
  125. package/dist/web-server/_libs/zod.mjs +0 -3915
  126. package/dist/web-server/_libs/zustand.mjs +0 -343
  127. package/dist/web-server/_ssr/index--Bo2_ipW.mjs +0 -277
  128. package/dist/web-server/_ssr/index-BEvygh5x.mjs +0 -612
  129. package/dist/web-server/_ssr/index-BFaKxYfN.mjs +0 -40
  130. package/dist/web-server/_ssr/index-BdrMzRTd.mjs +0 -513
  131. package/dist/web-server/_ssr/index-Cwp8Gyl1.mjs +0 -1812
  132. package/dist/web-server/_ssr/index-DQsfKYjV.mjs +0 -449
  133. package/dist/web-server/_ssr/index-Dbs9k8Ea.mjs +0 -251
  134. package/dist/web-server/_ssr/index-Dk93oyZD.mjs +0 -213
  135. package/dist/web-server/_ssr/index-KNJ7huw_.mjs +0 -369
  136. package/dist/web-server/_ssr/index.mjs +0 -1558
  137. package/dist/web-server/_ssr/input-BV1DMASc.mjs +0 -20
  138. package/dist/web-server/_ssr/models-MzrvbL2i.mjs +0 -43
  139. package/dist/web-server/_ssr/start-HYkvq4Ni.mjs +0 -4
  140. package/dist/web-server/_ssr/switch-Bd-Sg0HG.mjs +0 -33
  141. package/dist/web-server/_ssr/syntax-highlighter-5vezNTce.mjs +0 -62
  142. package/dist/web-server/_ssr/textarea-CB4kQp9w.mjs +0 -18
  143. package/dist/web-server/_tanstack-start-manifest_v-m5lY48LR.mjs +0 -4
  144. package/dist/web-server/index.mjs +0 -611
  145. /package/dist/{web-server → server}/__23tanstack-start-plugin-adapters-Cwee5PKy.mjs +0 -0
  146. /package/dist/{web-server → server}/_libs/bail.mjs +0 -0
  147. /package/dist/{web-server → server}/_libs/ccount.mjs +0 -0
  148. /package/dist/{web-server → server}/_libs/character-entities.mjs +0 -0
  149. /package/dist/{web-server → server}/_libs/class-variance-authority.mjs +0 -0
  150. /package/dist/{web-server → server}/_libs/clsx.mjs +0 -0
  151. /package/dist/{web-server/_libs/croner.mjs → server/_libs/cookie-es.mjs} +0 -0
  152. /package/dist/{web-server/_libs/crossws.mjs → server/_libs/croner.mjs} +0 -0
  153. /package/dist/{web-server/_libs/fault.mjs → server/_libs/crossws.mjs} +0 -0
  154. /package/dist/{web-server → server}/_libs/decode-named-character-reference+[...].mjs +0 -0
  155. /package/dist/{web-server → server}/_libs/devlop.mjs +0 -0
  156. /package/dist/{web-server → server}/_libs/escape-string-regexp.mjs +0 -0
  157. /package/dist/{web-server → server}/_libs/estree-util-is-identifier-name.mjs +0 -0
  158. /package/dist/{web-server → server}/_libs/extend.mjs +0 -0
  159. /package/dist/{web-server → server}/_libs/hast-util-whitespace.mjs +0 -0
  160. /package/dist/{web-server → server}/_libs/hookable.mjs +0 -0
  161. /package/dist/{web-server → server}/_libs/html-url-attributes.mjs +0 -0
  162. /package/dist/{web-server → server}/_libs/inline-style-parser.mjs +0 -0
  163. /package/dist/{web-server → server}/_libs/is-plain-obj.mjs +0 -0
  164. /package/dist/{web-server → server}/_libs/isbot.mjs +0 -0
  165. /package/dist/{web-server → server}/_libs/longest-streak.mjs +0 -0
  166. /package/dist/{web-server → server}/_libs/markdown-table.mjs +0 -0
  167. /package/dist/{web-server → server}/_libs/mdast-util-find-and-replace.mjs +0 -0
  168. /package/dist/{web-server → server}/_libs/mdast-util-gfm-footnote.mjs +0 -0
  169. /package/dist/{web-server → server}/_libs/mdast-util-gfm-strikethrough.mjs +0 -0
  170. /package/dist/{web-server → server}/_libs/mdast-util-gfm-table.mjs +0 -0
  171. /package/dist/{web-server → server}/_libs/mdast-util-gfm-task-list-item.mjs +0 -0
  172. /package/dist/{web-server → server}/_libs/mdast-util-gfm.mjs +0 -0
  173. /package/dist/{web-server → server}/_libs/mdast-util-phrasing.mjs +0 -0
  174. /package/dist/{web-server → server}/_libs/mdast-util-to-markdown.mjs +0 -0
  175. /package/dist/{web-server → server}/_libs/mdast-util-to-string.mjs +0 -0
  176. /package/dist/{web-server → server}/_libs/micromark-extension-gfm-strikethrough+[...].mjs +0 -0
  177. /package/dist/{web-server → server}/_libs/micromark-extension-gfm-tagfilter+[...].mjs +0 -0
  178. /package/dist/{web-server → server}/_libs/micromark-extension-gfm.mjs +0 -0
  179. /package/dist/{web-server → server}/_libs/micromark-factory-title.mjs +0 -0
  180. /package/dist/{web-server → server}/_libs/micromark-util-chunked.mjs +0 -0
  181. /package/dist/{web-server → server}/_libs/micromark-util-combine-extensions+[...].mjs +0 -0
  182. /package/dist/{web-server → server}/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +0 -0
  183. /package/dist/{web-server → server}/_libs/micromark-util-decode-string.mjs +0 -0
  184. /package/dist/{web-server → server}/_libs/micromark-util-encode.mjs +0 -0
  185. /package/dist/{web-server → server}/_libs/micromark-util-normalize-identifier+[...].mjs +0 -0
  186. /package/dist/{web-server → server}/_libs/micromark-util-resolve-all.mjs +0 -0
  187. /package/dist/{web-server → server}/_libs/micromark-util-subtokenize.mjs +0 -0
  188. /package/dist/{web-server → server}/_libs/ocache.mjs +0 -0
  189. /package/dist/{web-server → server}/_libs/ohash.mjs +0 -0
  190. /package/dist/{web-server → server}/_libs/react-markdown.mjs +0 -0
  191. /package/dist/{web-server → server}/_libs/remark-gfm.mjs +0 -0
  192. /package/dist/{web-server → server}/_libs/remark-parse.mjs +0 -0
  193. /package/dist/{web-server → server}/_libs/remark-rehype.mjs +0 -0
  194. /package/dist/{web-server → server}/_libs/reselect.mjs +0 -0
  195. /package/dist/{web-server → server}/_libs/rou3.mjs +0 -0
  196. /package/dist/{web-server/_libs/format.mjs → server/_libs/seroval-plugins.mjs} +0 -0
  197. /package/dist/{web-server/_libs/highlight.js.mjs → server/_libs/seroval.mjs} +0 -0
  198. /package/dist/{web-server → server}/_libs/srvx.mjs +0 -0
  199. /package/dist/{web-server → server}/_libs/style-to-js.mjs +0 -0
  200. /package/dist/{web-server → server}/_libs/style-to-object.mjs +0 -0
  201. /package/dist/{web-server → server}/_libs/tanstack__react-store.mjs +0 -0
  202. /package/dist/{web-server → server}/_libs/tanstack__store.mjs +0 -0
  203. /package/dist/{web-server → server}/_libs/trim-lines.mjs +0 -0
  204. /package/dist/{web-server → server}/_libs/trough.mjs +0 -0
  205. /package/dist/{web-server → server}/_libs/ufo.mjs +0 -0
  206. /package/dist/{web-server → server}/_libs/unctx.mjs +0 -0
  207. /package/dist/{web-server → server}/_libs/ungap__structured-clone.mjs +0 -0
  208. /package/dist/{web-server → server}/_libs/unified.mjs +0 -0
  209. /package/dist/{web-server → server}/_libs/unist-util-is.mjs +0 -0
  210. /package/dist/{web-server → server}/_libs/unist-util-stringify-position.mjs +0 -0
  211. /package/dist/{web-server → server}/_libs/unist-util-visit-parents.mjs +0 -0
  212. /package/dist/{web-server → server}/_libs/unist-util-visit.mjs +0 -0
  213. /package/dist/{web-server → server}/_libs/unstorage.mjs +0 -0
  214. /package/dist/{web-server → server}/_libs/vfile-message.mjs +0 -0
  215. /package/dist/{web-server → server}/_libs/vfile.mjs +0 -0
  216. /package/dist/{web-server → server}/_libs/zwitch.mjs +0 -0
@@ -0,0 +1,262 @@
1
+ import { L as yaml, K as xml, J as wasm, I as vbnet, G as typescript, F as swift, E as sql, D as shell, C as scss, B as rust, A as ruby, z as r, y as pythonRepl, x as python, w as plaintext, v as phpTemplate, u as php, t as perl, s as objectivec, r as markdown, q as makefile, p as lua, o as less, n as kotlin, m as json, l as javascript, k as java, j as ini, i as graphql, h as go, g as diff, f as css, e as csharp, d as cpp, c, b as bash, a as arduino, H as HighlightJS } from "./highlight.js.mjs";
2
+ const grammars = {
3
+ arduino,
4
+ bash,
5
+ c,
6
+ cpp,
7
+ csharp,
8
+ css,
9
+ diff,
10
+ go,
11
+ graphql,
12
+ ini,
13
+ java,
14
+ javascript,
15
+ json,
16
+ kotlin,
17
+ less,
18
+ lua,
19
+ makefile,
20
+ markdown,
21
+ objectivec,
22
+ perl,
23
+ php,
24
+ "php-template": phpTemplate,
25
+ plaintext,
26
+ python,
27
+ "python-repl": pythonRepl,
28
+ r,
29
+ ruby,
30
+ rust,
31
+ scss,
32
+ shell,
33
+ sql,
34
+ swift,
35
+ typescript,
36
+ vbnet,
37
+ wasm,
38
+ xml,
39
+ yaml
40
+ };
41
+ const emptyOptions = {};
42
+ const defaultPrefix = "hljs-";
43
+ function createLowlight(grammars2) {
44
+ const high = HighlightJS.newInstance();
45
+ if (grammars2) {
46
+ register(grammars2);
47
+ }
48
+ return {
49
+ highlight,
50
+ highlightAuto,
51
+ listLanguages,
52
+ register,
53
+ registerAlias,
54
+ registered
55
+ };
56
+ function highlight(language, value, options) {
57
+ const settings = options || emptyOptions;
58
+ const prefix = typeof settings.prefix === "string" ? settings.prefix : defaultPrefix;
59
+ if (!high.getLanguage(language)) {
60
+ throw new Error("Unknown language: `" + language + "` is not registered");
61
+ }
62
+ high.configure({ __emitter: HastEmitter, classPrefix: prefix });
63
+ const result = (
64
+ /** @type {HighlightResult & {_emitter: HastEmitter}} */
65
+ high.highlight(value, { ignoreIllegals: true, language })
66
+ );
67
+ if (result.errorRaised) {
68
+ throw new Error("Could not highlight with `Highlight.js`", {
69
+ cause: result.errorRaised
70
+ });
71
+ }
72
+ const root = result._emitter.root;
73
+ const data = (
74
+ /** @type {RootData} */
75
+ root.data
76
+ );
77
+ data.language = result.language;
78
+ data.relevance = result.relevance;
79
+ return root;
80
+ }
81
+ function highlightAuto(value, options) {
82
+ const settings = options || emptyOptions;
83
+ const subset = settings.subset || listLanguages();
84
+ let index = -1;
85
+ let relevance = 0;
86
+ let result;
87
+ while (++index < subset.length) {
88
+ const name = subset[index];
89
+ if (!high.getLanguage(name)) continue;
90
+ const current = highlight(name, value, options);
91
+ if (current.data && current.data.relevance !== void 0 && current.data.relevance > relevance) {
92
+ relevance = current.data.relevance;
93
+ result = current;
94
+ }
95
+ }
96
+ return result || {
97
+ type: "root",
98
+ children: [],
99
+ data: { language: void 0, relevance }
100
+ };
101
+ }
102
+ function listLanguages() {
103
+ return high.listLanguages();
104
+ }
105
+ function register(grammarsOrName, grammar) {
106
+ if (typeof grammarsOrName === "string") {
107
+ high.registerLanguage(grammarsOrName, grammar);
108
+ } else {
109
+ let name;
110
+ for (name in grammarsOrName) {
111
+ if (Object.hasOwn(grammarsOrName, name)) {
112
+ high.registerLanguage(name, grammarsOrName[name]);
113
+ }
114
+ }
115
+ }
116
+ }
117
+ function registerAlias(aliasesOrName, alias) {
118
+ if (typeof aliasesOrName === "string") {
119
+ high.registerAliases(
120
+ // Note: copy needed because hljs doesn’t accept readonly arrays yet.
121
+ typeof alias === "string" ? alias : [...alias],
122
+ { languageName: aliasesOrName }
123
+ );
124
+ } else {
125
+ let key;
126
+ for (key in aliasesOrName) {
127
+ if (Object.hasOwn(aliasesOrName, key)) {
128
+ const aliases = aliasesOrName[key];
129
+ high.registerAliases(
130
+ // Note: copy needed because hljs doesn’t accept readonly arrays yet.
131
+ typeof aliases === "string" ? aliases : [...aliases],
132
+ { languageName: key }
133
+ );
134
+ }
135
+ }
136
+ }
137
+ }
138
+ function registered(aliasOrName) {
139
+ return Boolean(high.getLanguage(aliasOrName));
140
+ }
141
+ }
142
+ class HastEmitter {
143
+ /**
144
+ * @param {Readonly<HljsOptions>} options
145
+ * Configuration.
146
+ * @returns
147
+ * Instance.
148
+ */
149
+ constructor(options) {
150
+ this.options = options;
151
+ this.root = {
152
+ type: "root",
153
+ children: [],
154
+ data: { language: void 0, relevance: 0 }
155
+ };
156
+ this.stack = [this.root];
157
+ }
158
+ /**
159
+ * @param {string} value
160
+ * Text to add.
161
+ * @returns {undefined}
162
+ * Nothing.
163
+ *
164
+ */
165
+ addText(value) {
166
+ if (value === "") return;
167
+ const current = this.stack[this.stack.length - 1];
168
+ const tail = current.children[current.children.length - 1];
169
+ if (tail && tail.type === "text") {
170
+ tail.value += value;
171
+ } else {
172
+ current.children.push({ type: "text", value });
173
+ }
174
+ }
175
+ /**
176
+ *
177
+ * @param {unknown} rawName
178
+ * Name to add.
179
+ * @returns {undefined}
180
+ * Nothing.
181
+ */
182
+ startScope(rawName) {
183
+ this.openNode(String(rawName));
184
+ }
185
+ /**
186
+ * @returns {undefined}
187
+ * Nothing.
188
+ */
189
+ endScope() {
190
+ this.closeNode();
191
+ }
192
+ /**
193
+ * @param {HastEmitter} other
194
+ * Other emitter.
195
+ * @param {string} name
196
+ * Name of the sublanguage.
197
+ * @returns {undefined}
198
+ * Nothing.
199
+ */
200
+ __addSublanguage(other, name) {
201
+ const current = this.stack[this.stack.length - 1];
202
+ const results = (
203
+ /** @type {Array<ElementContent>} */
204
+ other.root.children
205
+ );
206
+ if (name) {
207
+ current.children.push({
208
+ type: "element",
209
+ tagName: "span",
210
+ properties: { className: [name] },
211
+ children: results
212
+ });
213
+ } else {
214
+ current.children.push(...results);
215
+ }
216
+ }
217
+ /**
218
+ * @param {string} name
219
+ * Name to add.
220
+ * @returns {undefined}
221
+ * Nothing.
222
+ */
223
+ openNode(name) {
224
+ const self = this;
225
+ const className = name.split(".").map(function(d, i) {
226
+ return i ? d + "_".repeat(i) : self.options.classPrefix + d;
227
+ });
228
+ const current = this.stack[this.stack.length - 1];
229
+ const child = {
230
+ type: "element",
231
+ tagName: "span",
232
+ properties: { className },
233
+ children: []
234
+ };
235
+ current.children.push(child);
236
+ this.stack.push(child);
237
+ }
238
+ /**
239
+ * @returns {undefined}
240
+ * Nothing.
241
+ */
242
+ closeNode() {
243
+ this.stack.pop();
244
+ }
245
+ /**
246
+ * @returns {undefined}
247
+ * Nothing.
248
+ */
249
+ finalize() {
250
+ }
251
+ /**
252
+ * @returns {string}
253
+ * Nothing.
254
+ */
255
+ toHTML() {
256
+ return "";
257
+ }
258
+ }
259
+ export {
260
+ createLowlight as c,
261
+ grammars as g
262
+ };
@@ -2,7 +2,7 @@ import { d as decodeNumericCharacterReference } from "./micromark-util-decode-nu
2
2
  import { d as decodeString } from "./micromark-util-decode-string.mjs";
3
3
  import { n as normalizeIdentifier } from "./micromark-util-normalize-identifier+[...].mjs";
4
4
  import { d as decodeNamedCharacterReference } from "./decode-named-character-reference+[...].mjs";
5
- import { p as postprocess, a as parse, b as preprocess } from "./micromark.mjs";
5
+ import { a as postprocess, p as parse, b as preprocess } from "./micromark.mjs";
6
6
  import { s as stringifyPosition } from "./unist-util-stringify-position.mjs";
7
7
  import { t as toString } from "./mdast-util-to-string.mjs";
8
8
  const own = {}.hasOwnProperty;
@@ -1,6 +1,6 @@
1
1
  import { c as ccount } from "./ccount.mjs";
2
2
  import { o as ok } from "./devlop.mjs";
3
- import { u as unicodeWhitespace, d as unicodePunctuation } from "./micromark-util-character.mjs";
3
+ import { j as unicodeWhitespace, u as unicodePunctuation } from "./micromark-util-character.mjs";
4
4
  import { f as findAndReplace } from "./mdast-util-find-and-replace.mjs";
5
5
  const inConstruct = "phrasing";
6
6
  const notInConstruct = ["autolink", "link", "image", "label"];
@@ -74,7 +74,7 @@ function transformGfmAutolinkLiterals(tree) {
74
74
  tree,
75
75
  [
76
76
  [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
77
- [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), findEmail]
77
+ [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]
78
78
  ],
79
79
  { ignore: ["link", "linkReference"] }
80
80
  );
@@ -1,6 +1,6 @@
1
1
  import { s as structuredClone } from "./ungap__structured-clone.mjs";
2
2
  import { n as normalizeUri } from "./micromark-util-sanitize-uri.mjs";
3
- import { p as pointStart, a as pointEnd, b as position } from "./unist-util-position.mjs";
3
+ import { a as pointStart, p as pointEnd, b as position } from "./unist-util-position.mjs";
4
4
  import { t as trimLines } from "./trim-lines.mjs";
5
5
  import { v as visit } from "./unist-util-visit.mjs";
6
6
  function blockquote(state, node) {
@@ -1,7 +1,7 @@
1
1
  import { p as push, s as splice } from "./micromark-util-chunked.mjs";
2
2
  import { c as classifyCharacter } from "./micromark-util-classify-character+[...].mjs";
3
3
  import { r as resolveAll } from "./micromark-util-resolve-all.mjs";
4
- import { e as asciiAlpha, a as asciiAlphanumeric, f as asciiControl, g as asciiAtext, b as markdownSpace, m as markdownLineEnding, h as asciiPunctuation, i as asciiHexDigit, j as asciiDigit, c as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
4
+ import { a as asciiAlpha, b as asciiAlphanumeric, d as asciiControl, c as asciiAtext, i as markdownSpace, m as markdownLineEnding, g as asciiPunctuation, f as asciiHexDigit, e as asciiDigit, h as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
5
5
  import { f as factorySpace } from "./micromark-factory-space.mjs";
6
6
  import { d as decodeNamedCharacterReference } from "./decode-named-character-reference+[...].mjs";
7
7
  import { s as subtokenize } from "./micromark-util-subtokenize.mjs";
@@ -10,7 +10,7 @@ import { f as factoryLabel } from "./micromark-factory-label.mjs";
10
10
  import { f as factoryTitle } from "./micromark-factory-title.mjs";
11
11
  import { f as factoryWhitespace } from "./micromark-factory-whitespace.mjs";
12
12
  import { n as normalizeIdentifier } from "./micromark-util-normalize-identifier+[...].mjs";
13
- import { h as htmlRawNames, a as htmlBlockNames } from "./micromark-util-html-tag-name.mjs";
13
+ import { a as htmlRawNames, h as htmlBlockNames } from "./micromark-util-html-tag-name.mjs";
14
14
  const attention = {
15
15
  name: "attention",
16
16
  resolveAll: resolveAllAttention,
@@ -2234,26 +2234,26 @@ function tokenizeSetextUnderline(effects, ok, nok) {
2234
2234
  }
2235
2235
  }
2236
2236
  export {
2237
- blockQuote as a,
2238
- blankLine as b,
2239
- content as c,
2240
- definition as d,
2241
- codeFenced as e,
2242
- headingAtx as f,
2243
- codeIndented as g,
2244
- htmlFlow as h,
2245
- attention as i,
2246
- characterEscape as j,
2247
- characterReference as k,
2248
- list as l,
2249
- codeText as m,
2250
- labelEnd as n,
2251
- hardBreakEscape as o,
2252
- labelStartLink as p,
2253
- autolink as q,
2254
- htmlText as r,
2255
- setextUnderline as s,
2256
- thematicBreak as t,
2257
- labelStartImage as u,
2258
- lineEnding as v
2237
+ attention as a,
2238
+ autolink as b,
2239
+ blankLine as c,
2240
+ blockQuote as d,
2241
+ characterEscape as e,
2242
+ characterReference as f,
2243
+ codeFenced as g,
2244
+ codeIndented as h,
2245
+ codeText as i,
2246
+ content as j,
2247
+ definition as k,
2248
+ hardBreakEscape as l,
2249
+ headingAtx as m,
2250
+ htmlFlow as n,
2251
+ htmlText as o,
2252
+ labelEnd as p,
2253
+ labelStartImage as q,
2254
+ labelStartLink as r,
2255
+ lineEnding as s,
2256
+ list as t,
2257
+ setextUnderline as u,
2258
+ thematicBreak as v
2259
2259
  };
@@ -1,4 +1,4 @@
1
- import { a as asciiAlphanumeric, e as asciiAlpha, c as markdownLineEndingOrSpace, u as unicodeWhitespace, d as unicodePunctuation, f as asciiControl } from "./micromark-util-character.mjs";
1
+ import { b as asciiAlphanumeric, a as asciiAlpha, h as markdownLineEndingOrSpace, j as unicodeWhitespace, u as unicodePunctuation, d as asciiControl } from "./micromark-util-character.mjs";
2
2
  const wwwPrefix = {
3
3
  tokenize: tokenizeWwwPrefix,
4
4
  partial: true
@@ -1,7 +1,7 @@
1
1
  import { f as factorySpace } from "./micromark-factory-space.mjs";
2
- import { c as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
2
+ import { h as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
3
3
  import { n as normalizeIdentifier } from "./micromark-util-normalize-identifier+[...].mjs";
4
- import { b as blankLine } from "./micromark-core-commonmark.mjs";
4
+ import { c as blankLine } from "./micromark-core-commonmark.mjs";
5
5
  const indent = {
6
6
  tokenize: tokenizeIndent,
7
7
  partial: true
@@ -1,5 +1,5 @@
1
1
  import { f as factorySpace } from "./micromark-factory-space.mjs";
2
- import { m as markdownLineEnding, b as markdownSpace, c as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
2
+ import { m as markdownLineEnding, i as markdownSpace, h as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
3
3
  class EditMap {
4
4
  /**
5
5
  * Create a new edit map.
@@ -1,5 +1,5 @@
1
1
  import { f as factorySpace } from "./micromark-factory-space.mjs";
2
- import { c as markdownLineEndingOrSpace, m as markdownLineEnding, b as markdownSpace } from "./micromark-util-character.mjs";
2
+ import { h as markdownLineEndingOrSpace, m as markdownLineEnding, i as markdownSpace } from "./micromark-util-character.mjs";
3
3
  const tasklistCheck = {
4
4
  name: "tasklistCheck",
5
5
  tokenize: tokenizeTasklistCheck
@@ -1,4 +1,4 @@
1
- import { f as asciiControl, m as markdownLineEnding, c as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
1
+ import { d as asciiControl, m as markdownLineEnding, h as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
2
2
  function factoryDestination(effects, ok, nok, type, literalType, literalMarkerType, rawType, stringType, max) {
3
3
  const limit = max || Number.POSITIVE_INFINITY;
4
4
  let balance = 0;
@@ -1,4 +1,4 @@
1
- import { m as markdownLineEnding, b as markdownSpace } from "./micromark-util-character.mjs";
1
+ import { m as markdownLineEnding, i as markdownSpace } from "./micromark-util-character.mjs";
2
2
  function factoryLabel(effects, ok, nok, type, markerType, stringType) {
3
3
  const self = this;
4
4
  let size = 0;
@@ -1,4 +1,4 @@
1
- import { b as markdownSpace } from "./micromark-util-character.mjs";
1
+ import { i as markdownSpace } from "./micromark-util-character.mjs";
2
2
  function factorySpace(effects, ok, type, max) {
3
3
  const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
4
4
  let size = 0;
@@ -1,5 +1,5 @@
1
1
  import { f as factorySpace } from "./micromark-factory-space.mjs";
2
- import { m as markdownLineEnding, b as markdownSpace } from "./micromark-util-character.mjs";
2
+ import { m as markdownLineEnding, i as markdownSpace } from "./micromark-util-character.mjs";
3
3
  function factoryWhitespace(effects, ok) {
4
4
  let seen;
5
5
  return start;
@@ -20,7 +20,7 @@ function markdownLineEndingOrSpace(code) {
20
20
  function markdownSpace(code) {
21
21
  return code === -2 || code === -1 || code === 32;
22
22
  }
23
- const unicodePunctuation = regexCheck(new RegExp("\\p{P}|\\p{S}", "u"));
23
+ const unicodePunctuation = regexCheck(/\p{P}|\p{S}/u);
24
24
  const unicodeWhitespace = regexCheck(/\s/);
25
25
  function regexCheck(regex) {
26
26
  return check;
@@ -29,16 +29,16 @@ function regexCheck(regex) {
29
29
  }
30
30
  }
31
31
  export {
32
- asciiAlphanumeric as a,
33
- markdownSpace as b,
34
- markdownLineEndingOrSpace as c,
35
- unicodePunctuation as d,
36
- asciiAlpha as e,
37
- asciiControl as f,
38
- asciiAtext as g,
39
- asciiPunctuation as h,
40
- asciiHexDigit as i,
41
- asciiDigit as j,
32
+ asciiAlpha as a,
33
+ asciiAlphanumeric as b,
34
+ asciiAtext as c,
35
+ asciiControl as d,
36
+ asciiDigit as e,
37
+ asciiHexDigit as f,
38
+ asciiPunctuation as g,
39
+ markdownLineEndingOrSpace as h,
40
+ markdownSpace as i,
41
+ unicodeWhitespace as j,
42
42
  markdownLineEnding as m,
43
- unicodeWhitespace as u
43
+ unicodePunctuation as u
44
44
  };
@@ -1,4 +1,4 @@
1
- import { c as markdownLineEndingOrSpace, u as unicodeWhitespace, d as unicodePunctuation } from "./micromark-util-character.mjs";
1
+ import { h as markdownLineEndingOrSpace, j as unicodeWhitespace, u as unicodePunctuation } from "./micromark-util-character.mjs";
2
2
  function classifyCharacter(code) {
3
3
  if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) {
4
4
  return 1;
@@ -64,6 +64,6 @@ const htmlBlockNames = [
64
64
  ];
65
65
  const htmlRawNames = ["pre", "script", "style", "textarea"];
66
66
  export {
67
- htmlBlockNames as a,
68
- htmlRawNames as h
67
+ htmlRawNames as a,
68
+ htmlBlockNames as h
69
69
  };
@@ -1,4 +1,4 @@
1
- import { a as asciiAlphanumeric } from "./micromark-util-character.mjs";
1
+ import { b as asciiAlphanumeric } from "./micromark-util-character.mjs";
2
2
  function normalizeUri(value) {
3
3
  const result = [];
4
4
  let index = -1;
@@ -2,7 +2,7 @@ import { c as combineExtensions } from "./micromark-util-combine-extensions+[...
2
2
  import { f as factorySpace } from "./micromark-factory-space.mjs";
3
3
  import { m as markdownLineEnding } from "./micromark-util-character.mjs";
4
4
  import { s as splice, p as push } from "./micromark-util-chunked.mjs";
5
- import { b as blankLine, c as content$1, d as definition, a as blockQuote, l as list, e as codeFenced, t as thematicBreak, s as setextUnderline, h as htmlFlow, f as headingAtx, g as codeIndented, i as attention, j as characterEscape, k as characterReference, m as codeText, n as labelEnd, o as hardBreakEscape, p as labelStartLink, q as autolink, r as htmlText, u as labelStartImage, v as lineEnding } from "./micromark-core-commonmark.mjs";
5
+ import { c as blankLine, j as content$1, k as definition, d as blockQuote, t as list, g as codeFenced, v as thematicBreak, u as setextUnderline, n as htmlFlow, m as headingAtx, h as codeIndented, a as attention, e as characterEscape, f as characterReference, i as codeText, p as labelEnd, l as hardBreakEscape, r as labelStartLink, b as autolink, o as htmlText, q as labelStartImage, s as lineEnding } from "./micromark-core-commonmark.mjs";
6
6
  import { r as resolveAll } from "./micromark-util-resolve-all.mjs";
7
7
  import { s as subtokenize } from "./micromark-util-subtokenize.mjs";
8
8
  const content = {
@@ -900,7 +900,7 @@ function preprocess() {
900
900
  }
901
901
  }
902
902
  export {
903
- parse as a,
903
+ postprocess as a,
904
904
  preprocess as b,
905
- postprocess as p
905
+ parse as p
906
906
  };
@@ -1202,9 +1202,8 @@ function camelcase($0) {
1202
1202
  const html = merge([aria, html$1, xlink, xmlns, xml], "html");
1203
1203
  const svg = merge([aria, svg$1, xlink, xmlns, xml], "svg");
1204
1204
  export {
1205
- hastToReact as a,
1205
+ html as a,
1206
1206
  find as f,
1207
- html as h,
1208
- normalize as n,
1207
+ hastToReact as h,
1209
1208
  svg as s
1210
1209
  };
@@ -2,7 +2,7 @@ import require$$0 from "util";
2
2
  import require$$1 from "crypto";
3
3
  import require$$2 from "async_hooks";
4
4
  import require$$5 from "stream";
5
- import { a as requireReact, g as getDefaultExportFromCjs } from "./react.mjs";
5
+ import { b as requireReact, g as getDefaultExportFromCjs } from "./react.mjs";
6
6
  var reactDom = { exports: {} };
7
7
  var reactDom_production = {};
8
8
  var hasRequiredReactDom_production;
@@ -22,6 +22,46 @@ function _mergeNamespaces(n, m) {
22
22
  function getDefaultExportFromCjs(x) {
23
23
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
24
24
  }
25
+ var jsxRuntime = { exports: {} };
26
+ var reactJsxRuntime_production = {};
27
+ var hasRequiredReactJsxRuntime_production;
28
+ function requireReactJsxRuntime_production() {
29
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
30
+ hasRequiredReactJsxRuntime_production = 1;
31
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
32
+ function jsxProd(type, config, maybeKey) {
33
+ var key = null;
34
+ void 0 !== maybeKey && (key = "" + maybeKey);
35
+ void 0 !== config.key && (key = "" + config.key);
36
+ if ("key" in config) {
37
+ maybeKey = {};
38
+ for (var propName in config)
39
+ "key" !== propName && (maybeKey[propName] = config[propName]);
40
+ } else maybeKey = config;
41
+ config = maybeKey.ref;
42
+ return {
43
+ $$typeof: REACT_ELEMENT_TYPE,
44
+ type,
45
+ key,
46
+ ref: void 0 !== config ? config : null,
47
+ props: maybeKey
48
+ };
49
+ }
50
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
51
+ reactJsxRuntime_production.jsx = jsxProd;
52
+ reactJsxRuntime_production.jsxs = jsxProd;
53
+ return reactJsxRuntime_production;
54
+ }
55
+ var hasRequiredJsxRuntime;
56
+ function requireJsxRuntime() {
57
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
58
+ hasRequiredJsxRuntime = 1;
59
+ {
60
+ jsxRuntime.exports = requireReactJsxRuntime_production();
61
+ }
62
+ return jsxRuntime.exports;
63
+ }
64
+ var jsxRuntimeExports = requireJsxRuntime();
25
65
  var react = { exports: {} };
26
66
  var react_production = {};
27
67
  var hasRequiredReact_production;
@@ -463,50 +503,10 @@ const React$1 = /* @__PURE__ */ _mergeNamespaces({
463
503
  __proto__: null,
464
504
  default: React
465
505
  }, [reactExports]);
466
- var jsxRuntime = { exports: {} };
467
- var reactJsxRuntime_production = {};
468
- var hasRequiredReactJsxRuntime_production;
469
- function requireReactJsxRuntime_production() {
470
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
471
- hasRequiredReactJsxRuntime_production = 1;
472
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
473
- function jsxProd(type, config, maybeKey) {
474
- var key = null;
475
- void 0 !== maybeKey && (key = "" + maybeKey);
476
- void 0 !== config.key && (key = "" + config.key);
477
- if ("key" in config) {
478
- maybeKey = {};
479
- for (var propName in config)
480
- "key" !== propName && (maybeKey[propName] = config[propName]);
481
- } else maybeKey = config;
482
- config = maybeKey.ref;
483
- return {
484
- $$typeof: REACT_ELEMENT_TYPE,
485
- type,
486
- key,
487
- ref: void 0 !== config ? config : null,
488
- props: maybeKey
489
- };
490
- }
491
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
492
- reactJsxRuntime_production.jsx = jsxProd;
493
- reactJsxRuntime_production.jsxs = jsxProd;
494
- return reactJsxRuntime_production;
495
- }
496
- var hasRequiredJsxRuntime;
497
- function requireJsxRuntime() {
498
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
499
- hasRequiredJsxRuntime = 1;
500
- {
501
- jsxRuntime.exports = requireReactJsxRuntime_production();
502
- }
503
- return jsxRuntime.exports;
504
- }
505
- var jsxRuntimeExports = requireJsxRuntime();
506
506
  export {
507
507
  React as R,
508
- requireReact as a,
509
- React$1 as b,
508
+ React$1 as a,
509
+ requireReact as b,
510
510
  getDefaultExportFromCjs as g,
511
511
  jsxRuntimeExports as j,
512
512
  reactExports as r