impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/utilities.js +4 -0
  6. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +56 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  11. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  12. package/dist/components/data/ag-grid-react/index.js +115 -111
  13. package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
  14. package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
  15. package/dist/impact-nova-components.css +85 -0
  16. package/dist/impact-nova.css +1 -1
  17. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  18. package/dist/llms/rules/installation.js +1 -1
  19. package/dist/llms/rules/requirements.js +1 -1
  20. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  21. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  22. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  23. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  24. package/dist/node_modules/bail/index.js +7 -0
  25. package/dist/node_modules/ccount/index.js +12 -0
  26. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  27. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  28. package/dist/node_modules/devlop/lib/default.js +8 -0
  29. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  30. package/dist/node_modules/extend/index.js +43 -0
  31. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  32. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  33. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  34. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  35. package/dist/node_modules/is-plain-obj/index.js +9 -0
  36. package/dist/node_modules/longest-streak/index.js +12 -0
  37. package/dist/node_modules/markdown-table/index.js +75 -0
  38. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  39. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  40. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  41. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  42. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  43. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  44. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  45. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  46. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  47. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  76. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  77. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  78. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  79. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  80. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  81. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  82. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  83. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  84. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  85. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  86. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  87. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  88. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  89. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  90. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  91. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  92. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  93. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  94. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  95. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  96. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  97. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  98. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  99. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  100. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  101. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  102. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  103. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  104. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  105. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  106. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  107. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  108. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  109. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  110. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  111. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  112. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  113. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  114. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  115. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  116. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  117. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  118. package/dist/node_modules/micromark/lib/parse.js +32 -0
  119. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  120. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  144. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  145. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  146. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  147. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  148. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  149. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  150. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  151. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  152. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  153. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  154. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  155. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  156. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  157. package/dist/node_modules/micromark-util-character/index.js +39 -0
  158. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  159. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  160. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  161. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  162. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  163. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  164. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  165. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  166. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  167. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  168. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  169. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  170. package/dist/node_modules/property-information/index.js +12 -0
  171. package/dist/node_modules/property-information/lib/aria.js +61 -0
  172. package/dist/node_modules/property-information/lib/find.js +33 -0
  173. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  174. package/dist/node_modules/property-information/lib/html.js +378 -0
  175. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  176. package/dist/node_modules/property-information/lib/svg.js +568 -0
  177. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  178. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  179. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  180. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  181. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  182. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  183. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  184. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  185. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  186. package/dist/node_modules/property-information/lib/xml.js +11 -0
  187. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  188. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  189. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  190. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  191. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  192. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  193. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  194. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  195. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  196. package/dist/node_modules/trim-lines/index.js +28 -0
  197. package/dist/node_modules/trough/lib/index.js +60 -0
  198. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  199. package/dist/node_modules/unified/lib/index.js +529 -0
  200. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  201. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  202. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  203. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  204. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  205. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  206. package/dist/node_modules/vfile/lib/index.js +406 -0
  207. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  208. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  209. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  210. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  211. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  212. package/package.json +1 -1
@@ -0,0 +1,45 @@
1
+ import { factorySpace as h } from "../../micromark-factory-space/index.js";
2
+ import { markdownLineEndingOrSpace as m, markdownLineEnding as C, markdownSpace as c } from "../../micromark-util-character/index.js";
3
+ const l = {
4
+ name: "tasklistCheck",
5
+ tokenize: L
6
+ };
7
+ function g() {
8
+ return {
9
+ text: {
10
+ 91: l
11
+ }
12
+ };
13
+ }
14
+ function L(n, i, r) {
15
+ const k = this;
16
+ return e;
17
+ function e(t) {
18
+ return (
19
+ // Exit if there’s stuff before.
20
+ k.previous !== null || // Exit if not in the first content that is the first child of a list
21
+ // item.
22
+ !k._gfmTasklistFirstContentOfListItem ? r(t) : (n.enter("taskListCheck"), n.enter("taskListCheckMarker"), n.consume(t), n.exit("taskListCheckMarker"), u)
23
+ );
24
+ }
25
+ function u(t) {
26
+ return m(t) ? (n.enter("taskListCheckValueUnchecked"), n.consume(t), n.exit("taskListCheckValueUnchecked"), a) : t === 88 || t === 120 ? (n.enter("taskListCheckValueChecked"), n.consume(t), n.exit("taskListCheckValueChecked"), a) : r(t);
27
+ }
28
+ function a(t) {
29
+ return t === 93 ? (n.enter("taskListCheckMarker"), n.consume(t), n.exit("taskListCheckMarker"), n.exit("taskListCheck"), s) : r(t);
30
+ }
31
+ function s(t) {
32
+ return C(t) ? i(t) : c(t) ? n.check({
33
+ tokenize: o
34
+ }, i, r)(t) : r(t);
35
+ }
36
+ }
37
+ function o(n, i, r) {
38
+ return h(n, k, "whitespace");
39
+ function k(e) {
40
+ return e === null ? r(e) : i(e);
41
+ }
42
+ }
43
+ export {
44
+ g as gfmTaskListItem
45
+ };
@@ -0,0 +1,31 @@
1
+ import { asciiControl as h, markdownLineEnding as B, markdownLineEndingOrSpace as C } from "../micromark-util-character/index.js";
2
+ function F(r, a, S, i, g, t, E, m, w) {
3
+ const N = w || Number.POSITIVE_INFINITY;
4
+ let x = 0;
5
+ return b;
6
+ function b(n) {
7
+ return n === 60 ? (r.enter(i), r.enter(g), r.enter(t), r.consume(n), r.exit(t), I) : n === null || n === 32 || n === 41 || h(n) ? S(n) : (r.enter(i), r.enter(E), r.enter(m), r.enter("chunkString", {
8
+ contentType: "string"
9
+ }), u(n));
10
+ }
11
+ function I(n) {
12
+ return n === 62 ? (r.enter(t), r.consume(n), r.exit(t), r.exit(g), r.exit(i), a) : (r.enter(m), r.enter("chunkString", {
13
+ contentType: "string"
14
+ }), l(n));
15
+ }
16
+ function l(n) {
17
+ return n === 62 ? (r.exit("chunkString"), r.exit(m), I(n)) : n === null || n === 60 || B(n) ? S(n) : (r.consume(n), n === 92 ? L : l);
18
+ }
19
+ function L(n) {
20
+ return n === 60 || n === 62 || n === 92 ? (r.consume(n), l) : l(n);
21
+ }
22
+ function u(n) {
23
+ return !x && (n === null || n === 41 || C(n)) ? (r.exit("chunkString"), r.exit(m), r.exit(E), r.exit(i), a(n)) : x < N && n === 40 ? (r.consume(n), x++, u) : n === 41 ? (r.consume(n), x--, u) : n === null || n === 32 || n === 40 || h(n) ? S(n) : (r.consume(n), n === 92 ? O : u);
24
+ }
25
+ function O(n) {
26
+ return n === 40 || n === 41 || n === 92 ? (r.consume(n), u) : u(n);
27
+ }
28
+ }
29
+ export {
30
+ F as factoryDestination
31
+ };
@@ -0,0 +1,28 @@
1
+ import { markdownLineEnding as g, markdownSpace as p } from "../micromark-util-character/index.js";
2
+ function w(r, h, E, x, i, m) {
3
+ const S = this;
4
+ let t = 0, l;
5
+ return b;
6
+ function b(n) {
7
+ return r.enter(x), r.enter(i), r.consume(n), r.exit(i), r.enter(m), a;
8
+ }
9
+ function a(n) {
10
+ return t > 999 || n === null || n === 91 || n === 93 && !l || // To do: remove in the future once we’ve switched from
11
+ // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
12
+ // which doesn’t need this.
13
+ // Hidden footnotes hook.
14
+ /* c8 ignore next 3 */
15
+ n === 94 && !t && "_hiddenFootnoteSupport" in S.parser.constructs ? E(n) : n === 93 ? (r.exit(m), r.enter(i), r.consume(n), r.exit(i), r.exit(x), h) : g(n) ? (r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), a) : (r.enter("chunkString", {
16
+ contentType: "string"
17
+ }), u(n));
18
+ }
19
+ function u(n) {
20
+ return n === null || n === 91 || n === 93 || g(n) || t++ > 999 ? (r.exit("chunkString"), a(n)) : (r.consume(n), l || (l = !p(n)), n === 92 ? o : u);
21
+ }
22
+ function o(n) {
23
+ return n === 91 || n === 92 || n === 93 ? (r.consume(n), t++, u) : u(n);
24
+ }
25
+ }
26
+ export {
27
+ w as factoryLabel
28
+ };
@@ -0,0 +1,29 @@
1
+ import { markdownSpace as o } from "../micromark-util-character/index.js";
2
+ function s(t, e, f, i) {
3
+ const m = i ? i - 1 : 1 / 0;
4
+ let p = 0;
5
+ return u;
6
+ function u(r) {
7
+ return o(r) ? (t.enter(f), a(r)) : e(r);
8
+ }
9
+ function a(r) {
10
+ return o(r) && p++ < m ? (t.consume(r), a) : (t.exit(f), e(r));
11
+ }
12
+ }
13
+ function S(t, e, f, i, m, p) {
14
+ let u = 0;
15
+ return a;
16
+ function a(n) {
17
+ return o(n) ? (t.enter(i), r(n)) : x(n);
18
+ }
19
+ function r(n) {
20
+ return o(n) && u < p ? (t.consume(n), u++, r) : (t.exit(i), x(n));
21
+ }
22
+ function x(n) {
23
+ return u >= m ? e(n) : f(n);
24
+ }
25
+ }
26
+ export {
27
+ s as factorySpace,
28
+ S as factorySpaceMinMax
29
+ };
@@ -0,0 +1,26 @@
1
+ import { factorySpace as k } from "../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as E } from "../micromark-util-character/index.js";
3
+ function B(r, S, m, x, u, a) {
4
+ let i;
5
+ return h;
6
+ function h(n) {
7
+ return n === 34 || n === 39 || n === 40 ? (r.enter(x), r.enter(u), r.consume(n), r.exit(u), i = n === 40 ? 41 : n, g) : m(n);
8
+ }
9
+ function g(n) {
10
+ return n === i ? (r.enter(u), r.consume(n), r.exit(u), r.exit(x), S) : (r.enter(a), l(n));
11
+ }
12
+ function l(n) {
13
+ return n === i ? (r.exit(a), g(i)) : n === null ? m(n) : E(n) ? (r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), k(r, l, "linePrefix")) : (r.enter("chunkString", {
14
+ contentType: "string"
15
+ }), t(n));
16
+ }
17
+ function t(n) {
18
+ return n === i || n === null || E(n) ? (r.exit("chunkString"), l(n)) : (r.consume(n), n === 92 ? b : t);
19
+ }
20
+ function b(n) {
21
+ return n === i || n === 92 ? (r.consume(n), t) : t(n);
22
+ }
23
+ }
24
+ export {
25
+ B as factoryTitle
26
+ };
@@ -0,0 +1,12 @@
1
+ import { factorySpace as u } from "../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as a, markdownSpace as o } from "../micromark-util-character/index.js";
3
+ function f(r, e) {
4
+ let t;
5
+ return i;
6
+ function i(n) {
7
+ return a(n) ? (r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), t = !0, i) : o(n) ? u(r, i, t ? "linePrefix" : "lineSuffix")(n) : e(n);
8
+ }
9
+ }
10
+ export {
11
+ f as factoryWhitespace
12
+ };
@@ -0,0 +1,39 @@
1
+ const c = i(/[A-Za-z]/), r = i(/[\dA-Za-z]/), a = i(/[#-'*+\--9=?A-Z^-~]/);
2
+ function s(n) {
3
+ return (
4
+ // Special whitespace codes (which have negative values), C0 and Control
5
+ // character DEL
6
+ n !== null && (n < 32 || n === 127)
7
+ );
8
+ }
9
+ const o = i(/\d/), e = i(/[\dA-Fa-f]/), l = i(/[!-/:-@[-`{-~]/);
10
+ function f(n) {
11
+ return n !== null && n < -2;
12
+ }
13
+ function p(n) {
14
+ return n !== null && (n < 0 || n === 32);
15
+ }
16
+ function A(n) {
17
+ return n === -2 || n === -1 || n === 32;
18
+ }
19
+ const g = i(new RegExp("\\p{P}|\\p{S}", "u")), h = i(/\s/);
20
+ function i(n) {
21
+ return u;
22
+ function u(t) {
23
+ return t !== null && t > -1 && n.test(String.fromCharCode(t));
24
+ }
25
+ }
26
+ export {
27
+ c as asciiAlpha,
28
+ r as asciiAlphanumeric,
29
+ a as asciiAtext,
30
+ s as asciiControl,
31
+ o as asciiDigit,
32
+ e as asciiHexDigit,
33
+ l as asciiPunctuation,
34
+ f as markdownLineEnding,
35
+ p as markdownLineEndingOrSpace,
36
+ A as markdownSpace,
37
+ g as unicodePunctuation,
38
+ h as unicodeWhitespace
39
+ };
@@ -0,0 +1,16 @@
1
+ function p(h, n, c, f) {
2
+ const l = h.length;
3
+ let u = 0, e;
4
+ if (n < 0 ? n = -n > l ? 0 : l + n : n = n > l ? l : n, c = c > 0 ? c : 0, f.length < 1e4)
5
+ e = Array.from(f), e.unshift(n, c), h.splice(...e);
6
+ else
7
+ for (c && h.splice(n, c); u < f.length; )
8
+ e = f.slice(u, u + 1e4), e.unshift(n, 0), h.splice(...e), u += 1e4, n += 1e4;
9
+ }
10
+ function g(h, n) {
11
+ return h.length > 0 ? (p(h, h.length, 0, n), h) : n;
12
+ }
13
+ export {
14
+ g as push,
15
+ p as splice
16
+ };
@@ -0,0 +1,10 @@
1
+ import { markdownLineEndingOrSpace as i, unicodeWhitespace as r, unicodePunctuation as t } from "../micromark-util-character/index.js";
2
+ function a(n) {
3
+ if (n === null || i(n) || r(n))
4
+ return 1;
5
+ if (t(n))
6
+ return 2;
7
+ }
8
+ export {
9
+ a as classifyCharacter
10
+ };
@@ -0,0 +1,36 @@
1
+ import { splice as a } from "../micromark-util-chunked/index.js";
2
+ const s = {}.hasOwnProperty;
3
+ function d(t) {
4
+ const e = {};
5
+ let n = -1;
6
+ for (; ++n < t.length; )
7
+ l(e, t[n]);
8
+ return e;
9
+ }
10
+ function l(t, e) {
11
+ let n;
12
+ for (n in e) {
13
+ const i = (s.call(t, n) ? t[n] : void 0) || (t[n] = {}), f = e[n];
14
+ let o;
15
+ if (f)
16
+ for (o in f) {
17
+ s.call(i, o) || (i[o] = []);
18
+ const r = f[o];
19
+ h(
20
+ // @ts-expect-error Looks like a list.
21
+ i[o],
22
+ Array.isArray(r) ? r : r ? [r] : []
23
+ );
24
+ }
25
+ }
26
+ }
27
+ function h(t, e) {
28
+ let n = -1;
29
+ const c = [];
30
+ for (; ++n < e.length; )
31
+ (e[n].add === "after" ? t : c).push(e[n]);
32
+ a(t, 0, 0, c);
33
+ }
34
+ export {
35
+ d as combineExtensions
36
+ };
@@ -0,0 +1,16 @@
1
+ function n(r, _) {
2
+ const e = Number.parseInt(r, _);
3
+ return (
4
+ // C0 except for HT, LF, FF, CR, space.
5
+ e < 9 || e === 11 || e > 13 && e < 32 || // Control character (DEL) of C0, and C1 controls.
6
+ e > 126 && e < 160 || // Lone high surrogates and low surrogates.
7
+ e > 55295 && e < 57344 || // Noncharacters.
8
+ e > 64975 && e < 65008 || /* eslint-disable no-bitwise */
9
+ (e & 65535) === 65535 || (e & 65535) === 65534 || /* eslint-enable no-bitwise */
10
+ // Out of range
11
+ e > 1114111 ? "�" : String.fromCodePoint(e)
12
+ );
13
+ }
14
+ export {
15
+ n as decodeNumericCharacterReference
16
+ };
@@ -0,0 +1,18 @@
1
+ import { decodeNamedCharacterReference as o } from "../decode-named-character-reference/index.dom.js";
2
+ import { decodeNumericCharacterReference as a } from "../micromark-util-decode-numeric-character-reference/index.js";
3
+ const n = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4
+ function m(r) {
5
+ return r.replace(n, f);
6
+ }
7
+ function f(r, c, e) {
8
+ if (c)
9
+ return c;
10
+ if (e.charCodeAt(0) === 35) {
11
+ const t = e.charCodeAt(1), d = t === 120 || t === 88;
12
+ return a(e.slice(d ? 2 : 1), d ? 16 : 10);
13
+ }
14
+ return o(e) || r;
15
+ }
16
+ export {
17
+ m as decodeString
18
+ };
@@ -0,0 +1,82 @@
1
+ class c {
2
+ /**
3
+ * Create a new edit map.
4
+ *
5
+ * @returns
6
+ * New instance.
7
+ */
8
+ constructor() {
9
+ this.index = /* @__PURE__ */ new Map(), this.map = [];
10
+ }
11
+ /**
12
+ * Create an edit: a remove and/or add at a certain place.
13
+ *
14
+ * @param {number} index
15
+ * Index at which to apply the edit.
16
+ * @param {number} remove
17
+ * Count of items to remove at the index.
18
+ * @param {Array<Event>} add
19
+ * Items to add at the index.
20
+ * @returns {undefined}
21
+ * Nothing.
22
+ */
23
+ add(i, t, s) {
24
+ l(this, i, t, s, !1);
25
+ }
26
+ /**
27
+ * Create an edit: but insert `add` before existing additions, instead of
28
+ * after them.
29
+ *
30
+ * @param {number} index
31
+ * Index at which to apply the edit.
32
+ * @param {number} remove
33
+ * Count of items to remove at the index.
34
+ * @param {Array<Event>} add
35
+ * Items to add at the index.
36
+ * @returns {undefined}
37
+ * Nothing.
38
+ */
39
+ addBefore(i, t, s) {
40
+ l(this, i, t, s, !0);
41
+ }
42
+ /**
43
+ * Done, change the events.
44
+ *
45
+ * @param {Array<Event>} events
46
+ * List of events to apply the edits to.
47
+ * @returns {undefined}
48
+ * Nothing.
49
+ */
50
+ consume(i) {
51
+ if (this.map.sort(function(e, p) {
52
+ return e[0] - p[0];
53
+ }), this.map.length === 0)
54
+ return;
55
+ let t = this.map.length;
56
+ const s = [];
57
+ for (; t > 0; )
58
+ t -= 1, s.push(i.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), i.length = this.map[t][0];
59
+ s.push(i.slice()), i.length = 0;
60
+ let h = s.pop();
61
+ for (; h; ) {
62
+ for (const e of h)
63
+ i.push(e);
64
+ h = s.pop();
65
+ }
66
+ this.map.length = 0, this.index.clear();
67
+ }
68
+ }
69
+ function l(n, i, t, s, h) {
70
+ if (t === 0 && s.length === 0)
71
+ return;
72
+ const e = n.index.get(i);
73
+ if (e) {
74
+ e[1] += t, h ? (s.push(...e[2]), e[2] = s) : e[2].push(...s);
75
+ return;
76
+ }
77
+ const p = [i, t, s];
78
+ n.map.push(p), n.index.set(i, p);
79
+ }
80
+ export {
81
+ c as EditMap
82
+ };
@@ -0,0 +1,68 @@
1
+ const e = [
2
+ "address",
3
+ "article",
4
+ "aside",
5
+ "base",
6
+ "basefont",
7
+ "blockquote",
8
+ "body",
9
+ "caption",
10
+ "center",
11
+ "col",
12
+ "colgroup",
13
+ "dd",
14
+ "details",
15
+ "dialog",
16
+ "dir",
17
+ "div",
18
+ "dl",
19
+ "dt",
20
+ "fieldset",
21
+ "figcaption",
22
+ "figure",
23
+ "footer",
24
+ "form",
25
+ "frame",
26
+ "frameset",
27
+ "h1",
28
+ "h2",
29
+ "h3",
30
+ "h4",
31
+ "h5",
32
+ "h6",
33
+ "head",
34
+ "header",
35
+ "hr",
36
+ "html",
37
+ "iframe",
38
+ "legend",
39
+ "li",
40
+ "link",
41
+ "main",
42
+ "menu",
43
+ "menuitem",
44
+ "nav",
45
+ "noframes",
46
+ "ol",
47
+ "optgroup",
48
+ "option",
49
+ "p",
50
+ "param",
51
+ "search",
52
+ "section",
53
+ "summary",
54
+ "table",
55
+ "tbody",
56
+ "td",
57
+ "tfoot",
58
+ "th",
59
+ "thead",
60
+ "title",
61
+ "tr",
62
+ "track",
63
+ "ul"
64
+ ], t = ["pre", "script", "style", "textarea"];
65
+ export {
66
+ e as htmlBlockNames,
67
+ t as htmlRawNames
68
+ };
@@ -0,0 +1,6 @@
1
+ function r(e) {
2
+ return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
3
+ }
4
+ export {
5
+ r as normalizeIdentifier
6
+ };
@@ -0,0 +1,12 @@
1
+ function c(o, e, r) {
2
+ const i = [];
3
+ let n = -1;
4
+ for (; ++n < o.length; ) {
5
+ const l = o[n].resolveAll;
6
+ l && !i.includes(l) && (e = l(e, r), i.push(l));
7
+ }
8
+ return e;
9
+ }
10
+ export {
11
+ c as resolveAll
12
+ };
@@ -0,0 +1,23 @@
1
+ import { asciiAlphanumeric as f } from "../micromark-util-character/index.js";
2
+ function h(t) {
3
+ const s = [];
4
+ let r = -1, n = 0, i = 0;
5
+ for (; ++r < t.length; ) {
6
+ const e = t.charCodeAt(r);
7
+ let o = "";
8
+ if (e === 37 && f(t.charCodeAt(r + 1)) && f(t.charCodeAt(r + 2)))
9
+ i = 2;
10
+ else if (e < 128)
11
+ /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(e)) || (o = String.fromCharCode(e));
12
+ else if (e > 55295 && e < 57344) {
13
+ const c = t.charCodeAt(r + 1);
14
+ e < 56320 && c > 56319 && c < 57344 ? (o = String.fromCharCode(e, c), i = 1) : o = "�";
15
+ } else
16
+ o = String.fromCharCode(e);
17
+ o && (s.push(t.slice(n, r), encodeURIComponent(o)), n = r + i + 1, o = ""), i && (r += i, i = 0);
18
+ }
19
+ return s.join("") + t.slice(n);
20
+ }
21
+ export {
22
+ h as normalizeUri
23
+ };
@@ -0,0 +1,55 @@
1
+ import { splice as I } from "../micromark-util-chunked/index.js";
2
+ import { SpliceBuffer as _ } from "./lib/splice-buffer.js";
3
+ function b(u) {
4
+ const c = {};
5
+ let e = -1, p, o, n, s, f, l, g;
6
+ const r = new _(u);
7
+ for (; ++e < r.length; ) {
8
+ for (; e in c; )
9
+ e = c[e];
10
+ if (p = r.get(e), e && p[1].type === "chunkFlow" && r.get(e - 1)[1].type === "listItemPrefix" && (l = p[1]._tokenizer.events, n = 0, n < l.length && l[n][1].type === "lineEndingBlank" && (n += 2), n < l.length && l[n][1].type === "content"))
11
+ for (; ++n < l.length && l[n][1].type !== "content"; )
12
+ l[n][1].type === "chunkText" && (l[n][1]._isInFirstContentOfListItem = !0, n++);
13
+ if (p[0] === "enter")
14
+ p[1].contentType && (Object.assign(c, x(r, e)), e = c[e], g = !0);
15
+ else if (p[1]._container) {
16
+ for (n = e, o = void 0; n--; )
17
+ if (s = r.get(n), s[1].type === "lineEnding" || s[1].type === "lineEndingBlank")
18
+ s[0] === "enter" && (o && (r.get(o)[1].type = "lineEndingBlank"), s[1].type = "lineEnding", o = n);
19
+ else if (!(s[1].type === "linePrefix" || s[1].type === "listItemIndent")) break;
20
+ o && (p[1].end = {
21
+ ...r.get(o)[1].start
22
+ }, f = r.slice(o, e), f.unshift(p), r.splice(o, e - o + 1, f));
23
+ }
24
+ }
25
+ return I(u, 0, Number.POSITIVE_INFINITY, r.slice(0)), !g;
26
+ }
27
+ function x(u, c) {
28
+ const e = u.get(c)[1], p = u.get(c)[2];
29
+ let o = c - 1;
30
+ const n = [];
31
+ let s = e._tokenizer;
32
+ s || (s = p.parser[e.contentType](e.start), e._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
33
+ const f = s.events, l = [], g = {};
34
+ let r, k, i = -1, t = e, a = 0, d = 0;
35
+ const h = [d];
36
+ for (; t; ) {
37
+ for (; u.get(++o)[1] !== t; )
38
+ ;
39
+ n.push(o), t._tokenizer || (r = p.sliceStream(t), t.next || r.push(null), k && s.defineSkip(t.start), t._isInFirstContentOfListItem && (s._gfmTasklistFirstContentOfListItem = !0), s.write(r), t._isInFirstContentOfListItem && (s._gfmTasklistFirstContentOfListItem = void 0)), k = t, t = t.next;
40
+ }
41
+ for (t = e; ++i < f.length; )
42
+ // Find a void token that includes a break.
43
+ f[i][0] === "exit" && f[i - 1][0] === "enter" && f[i][1].type === f[i - 1][1].type && f[i][1].start.line !== f[i][1].end.line && (d = i + 1, h.push(d), t._tokenizer = void 0, t.previous = void 0, t = t.next);
44
+ for (s.events = [], t ? (t._tokenizer = void 0, t.previous = void 0) : h.pop(), i = h.length; i--; ) {
45
+ const y = f.slice(h[i], h[i + 1]), m = n.pop();
46
+ l.push([m, m + y.length - 1]), u.splice(m, 2, y);
47
+ }
48
+ for (l.reverse(), i = -1; ++i < l.length; )
49
+ g[a + l[i][0]] = a + l[i][1], a += l[i][1] - l[i][0] - 1;
50
+ return g;
51
+ }
52
+ export {
53
+ _ as SpliceBuffer,
54
+ b as subtokenize
55
+ };