@easyv/biz-components 0.0.3 → 0.0.5

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 (134) hide show
  1. package/dist/_virtual/index.es2.js +2 -2
  2. package/dist/_virtual/index.es3.js +2 -2
  3. package/dist/_virtual/index.es4.js +2 -2
  4. package/dist/components/AiMessageRender/AiMessageRender.d.ts +5 -0
  5. package/dist/components/AiMessageRender/AiMessageRender.es.js +42 -37
  6. package/dist/components/AiMessageRender/AiMessageRender.es.js.map +1 -1
  7. package/dist/components/AiMessageRender/index.less.es.js +197 -0
  8. package/dist/components/AiMessageRender/index.less.es.js.map +1 -0
  9. package/dist/components/ShadowDom/ShadowDom.d.ts +2 -0
  10. package/dist/components/ShadowDom/ShadowDom.es.js +16 -14
  11. package/dist/components/ShadowDom/ShadowDom.es.js.map +1 -1
  12. package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js +64 -89
  13. package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js.map +1 -1
  14. package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js +13 -0
  15. package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js.map +1 -0
  16. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +1 -1
  17. package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js +9 -0
  18. package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js.map +1 -0
  19. package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js +13 -0
  20. package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js.map +1 -0
  21. package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js +76 -0
  22. package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js.map +1 -0
  23. package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js +71 -0
  24. package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -0
  25. package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js +131 -0
  26. package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js.map +1 -0
  27. package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js +96 -0
  28. package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js.map +1 -0
  29. package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +51 -0
  30. package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -0
  31. package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js +136 -0
  32. package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js.map +1 -0
  33. package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js +59 -0
  34. package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js.map +1 -0
  35. package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js +30 -0
  36. package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js.map +1 -0
  37. package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js +31 -0
  38. package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js.map +1 -0
  39. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js +16 -0
  40. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -0
  41. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +14 -0
  42. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -0
  43. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +45 -0
  44. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -0
  45. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js +35 -0
  46. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -0
  47. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +34 -0
  48. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -0
  49. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +35 -0
  50. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -0
  51. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js +11 -0
  52. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -0
  53. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +28 -0
  54. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -0
  55. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js +34 -0
  56. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -0
  57. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js +45 -0
  58. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js.map +1 -0
  59. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +23 -0
  60. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -0
  61. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +28 -0
  62. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -0
  63. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +51 -0
  64. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -0
  65. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js +23 -0
  66. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -0
  67. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js +36 -0
  68. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -0
  69. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js +8 -0
  70. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -0
  71. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +10 -0
  72. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -0
  73. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +34 -0
  74. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -0
  75. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +7 -0
  76. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -0
  77. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js +10 -0
  78. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -0
  79. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js +12 -0
  80. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -0
  81. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js +19 -0
  82. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -0
  83. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js +12 -0
  84. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -0
  85. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js +12 -0
  86. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -0
  87. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js +12 -0
  88. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -0
  89. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js +12 -0
  90. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -0
  91. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js +12 -0
  92. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -0
  93. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js +12 -0
  94. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -0
  95. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js +12 -0
  96. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -0
  97. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js +12 -0
  98. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -0
  99. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js +7 -0
  100. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js.map +1 -0
  101. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js +38 -0
  102. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -0
  103. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +10 -0
  104. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -0
  105. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js +14 -0
  106. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -0
  107. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +16 -0
  108. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -0
  109. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js +16 -0
  110. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -0
  111. package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js +194 -0
  112. package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js.map +1 -0
  113. package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js +193 -0
  114. package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js.map +1 -0
  115. package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js +68 -0
  116. package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js.map +1 -0
  117. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js +72 -0
  118. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js.map +1 -0
  119. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js +24 -0
  120. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js.map +1 -0
  121. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js +146 -0
  122. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js.map +1 -0
  123. package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js +46 -0
  124. package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js.map +1 -0
  125. package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js +19 -0
  126. package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js.map +1 -0
  127. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
  128. package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js +14 -0
  129. package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js.map +1 -0
  130. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +1 -1
  131. package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +1 -1
  132. package/package.json +5 -2
  133. package/dist/components/AiMessageRender/index.css.es.js +0 -17
  134. package/dist/components/AiMessageRender/index.css.es.js.map +0 -1
@@ -0,0 +1,136 @@
1
+ import { ok as k } from "../../../../devlop@1.1.0/node_modules/devlop/lib/default.es.js";
2
+ import { markdownTable as R } from "../../../../markdown-table@3.0.4/node_modules/markdown-table/index.es.js";
3
+ import { handle as D } from "../../../../mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js";
4
+ function M() {
5
+ return {
6
+ enter: {
7
+ table: v,
8
+ tableData: g,
9
+ tableHeader: g,
10
+ tableRow: _
11
+ },
12
+ exit: {
13
+ codeText: A,
14
+ table: y,
15
+ tableData: u,
16
+ tableHeader: u,
17
+ tableRow: u
18
+ }
19
+ };
20
+ }
21
+ function v(e) {
22
+ const l = e._align;
23
+ this.enter(
24
+ {
25
+ type: "table",
26
+ align: l.map(function(c) {
27
+ return c === "none" ? null : c;
28
+ }),
29
+ children: []
30
+ },
31
+ e
32
+ ), this.data.inTable = !0;
33
+ }
34
+ function y(e) {
35
+ this.exit(e), this.data.inTable = void 0;
36
+ }
37
+ function _(e) {
38
+ this.enter({ type: "tableRow", children: [] }, e);
39
+ }
40
+ function u(e) {
41
+ this.exit(e);
42
+ }
43
+ function g(e) {
44
+ this.enter({ type: "tableCell", children: [] }, e);
45
+ }
46
+ function A(e) {
47
+ let l = this.resume();
48
+ this.data.inTable && (l = l.replace(/\\([\\|])/g, B));
49
+ const c = this.stack[this.stack.length - 1];
50
+ k(c.type === "inlineCode"), c.value = l, this.exit(e);
51
+ }
52
+ function B(e, l) {
53
+ return l === "|" ? l : e;
54
+ }
55
+ function z(e) {
56
+ const l = e || {}, c = l.tableCellPadding, C = l.tablePipeAlign, x = l.stringLength, h = c ? " " : "|";
57
+ return {
58
+ unsafe: [
59
+ { character: "\r", inConstruct: "tableCell" },
60
+ { character: `
61
+ `, inConstruct: "tableCell" },
62
+ // A pipe, when followed by a tab or space (padding), or a dash or colon
63
+ // (unpadded delimiter row), could result in a table.
64
+ { atBreak: !0, character: "|", after: "[ :-]" },
65
+ // A pipe in a cell must be encoded.
66
+ { character: "|", inConstruct: "tableCell" },
67
+ // A colon must be followed by a dash, in which case it could start a
68
+ // delimiter row.
69
+ { atBreak: !0, character: ":", after: "-" },
70
+ // A delimiter row can also start with a dash, when followed by more
71
+ // dashes, a colon, or a pipe.
72
+ // This is a stricter version than the built in check for lists, thematic
73
+ // breaks, and setex heading underlines though:
74
+ // <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>
75
+ { atBreak: !0, character: "-", after: "[:|-]" }
76
+ ],
77
+ handlers: {
78
+ inlineCode: m,
79
+ table: T,
80
+ tableCell: b,
81
+ tableRow: p
82
+ }
83
+ };
84
+ function T(t, r, a, n) {
85
+ return d(w(t, a, n), t.align);
86
+ }
87
+ function p(t, r, a, n) {
88
+ const i = f(t, a, n), o = d([i]);
89
+ return o.slice(0, o.indexOf(`
90
+ `));
91
+ }
92
+ function b(t, r, a, n) {
93
+ const i = a.enter("tableCell"), o = a.enter("phrasing"), s = a.containerPhrasing(t, {
94
+ ...n,
95
+ before: h,
96
+ after: h
97
+ });
98
+ return o(), i(), s;
99
+ }
100
+ function d(t, r) {
101
+ return R(t, {
102
+ align: r,
103
+ // @ts-expect-error: `markdown-table` types should support `null`.
104
+ alignDelimiters: C,
105
+ // @ts-expect-error: `markdown-table` types should support `null`.
106
+ padding: c,
107
+ // @ts-expect-error: `markdown-table` types should support `null`.
108
+ stringLength: x
109
+ });
110
+ }
111
+ function w(t, r, a) {
112
+ const n = t.children;
113
+ let i = -1;
114
+ const o = [], s = r.enter("table");
115
+ for (; ++i < n.length; )
116
+ o[i] = f(n[i], r, a);
117
+ return s(), o;
118
+ }
119
+ function f(t, r, a) {
120
+ const n = t.children;
121
+ let i = -1;
122
+ const o = [], s = r.enter("tableRow");
123
+ for (; ++i < n.length; )
124
+ o[i] = b(n[i], t, r, a);
125
+ return s(), o;
126
+ }
127
+ function m(t, r, a) {
128
+ let n = D.inlineCode(t, r, a);
129
+ return a.stack.includes("tableCell") && (n = n.replace(/\|/g, "\\$&")), n;
130
+ }
131
+ }
132
+ export {
133
+ M as gfmTableFromMarkdown,
134
+ z as gfmTableToMarkdown
135
+ };
136
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Table} Table\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('mdast').TableRow} TableRow\n *\n * @typedef {import('markdown-table').Options} MarkdownTableOptions\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').State} State\n * @typedef {import('mdast-util-to-markdown').Info} Info\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [tableCellPadding=true]\n * Whether to add a space of padding between delimiters and cells (default:\n * `true`).\n * @property {boolean | null | undefined} [tablePipeAlign=true]\n * Whether to align the delimiters (default: `true`).\n * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]\n * Function to detect the length of table cell content, used when aligning\n * the delimiters between cells (optional).\n */\n\nimport {ok as assert} from 'devlop'\nimport {markdownTable} from 'markdown-table'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM tables in\n * markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM tables.\n */\nexport function gfmTableFromMarkdown() {\n return {\n enter: {\n table: enterTable,\n tableData: enterCell,\n tableHeader: enterCell,\n tableRow: enterRow\n },\n exit: {\n codeText: exitCodeText,\n table: exitTable,\n tableData: exit,\n tableHeader: exit,\n tableRow: exit\n }\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterTable(token) {\n const align = token._align\n assert(align, 'expected `_align` on table')\n this.enter(\n {\n type: 'table',\n align: align.map(function (d) {\n return d === 'none' ? null : d\n }),\n children: []\n },\n token\n )\n this.data.inTable = true\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitTable(token) {\n this.exit(token)\n this.data.inTable = undefined\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterRow(token) {\n this.enter({type: 'tableRow', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exit(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterCell(token) {\n this.enter({type: 'tableCell', children: []}, token)\n}\n\n// Overwrite the default code text data handler to unescape escaped pipes when\n// they are in tables.\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCodeText(token) {\n let value = this.resume()\n\n if (this.data.inTable) {\n value = value.replace(/\\\\([\\\\|])/g, replace)\n }\n\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'inlineCode')\n node.value = value\n this.exit(token)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @returns {string}\n */\nfunction replace($0, $1) {\n // Pipes work, backslashes don’t (but can’t escape pipes).\n return $1 === '|' ? $1 : $0\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM tables in\n * markdown.\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM tables.\n */\nexport function gfmTableToMarkdown(options) {\n const settings = options || {}\n const padding = settings.tableCellPadding\n const alignDelimiters = settings.tablePipeAlign\n const stringLength = settings.stringLength\n const around = padding ? ' ' : '|'\n\n return {\n unsafe: [\n {character: '\\r', inConstruct: 'tableCell'},\n {character: '\\n', inConstruct: 'tableCell'},\n // A pipe, when followed by a tab or space (padding), or a dash or colon\n // (unpadded delimiter row), could result in a table.\n {atBreak: true, character: '|', after: '[\\t :-]'},\n // A pipe in a cell must be encoded.\n {character: '|', inConstruct: 'tableCell'},\n // A colon must be followed by a dash, in which case it could start a\n // delimiter row.\n {atBreak: true, character: ':', after: '-'},\n // A delimiter row can also start with a dash, when followed by more\n // dashes, a colon, or a pipe.\n // This is a stricter version than the built in check for lists, thematic\n // breaks, and setex heading underlines though:\n // <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>\n {atBreak: true, character: '-', after: '[:|-]'}\n ],\n handlers: {\n inlineCode: inlineCodeWithTable,\n table: handleTable,\n tableCell: handleTableCell,\n tableRow: handleTableRow\n }\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {Table} node\n */\n function handleTable(node, _, state, info) {\n return serializeData(handleTableAsData(node, state, info), node.align)\n }\n\n /**\n * This function isn’t really used normally, because we handle rows at the\n * table level.\n * But, if someone passes in a table row, this ensures we make somewhat sense.\n *\n * @type {ToMarkdownHandle}\n * @param {TableRow} node\n */\n function handleTableRow(node, _, state, info) {\n const row = handleTableRowAsData(node, state, info)\n const value = serializeData([row])\n // `markdown-table` will always add an align row\n return value.slice(0, value.indexOf('\\n'))\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {TableCell} node\n */\n function handleTableCell(node, _, state, info) {\n const exit = state.enter('tableCell')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...info,\n before: around,\n after: around\n })\n subexit()\n exit()\n return value\n }\n\n /**\n * @param {Array<Array<string>>} matrix\n * @param {Array<string | null | undefined> | null | undefined} [align]\n */\n function serializeData(matrix, align) {\n return markdownTable(matrix, {\n align,\n // @ts-expect-error: `markdown-table` types should support `null`.\n alignDelimiters,\n // @ts-expect-error: `markdown-table` types should support `null`.\n padding,\n // @ts-expect-error: `markdown-table` types should support `null`.\n stringLength\n })\n }\n\n /**\n * @param {Table} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array<Array<string>>} */\n const result = []\n const subexit = state.enter('table')\n\n while (++index < children.length) {\n result[index] = handleTableRowAsData(children[index], state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @param {TableRow} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableRowAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array<string>} */\n const result = []\n const subexit = state.enter('tableRow')\n\n while (++index < children.length) {\n // Note: the positional info as used here is incorrect.\n // Making it correct would be impossible due to aligning cells?\n // And it would need copy/pasting `markdown-table` into this project.\n result[index] = handleTableCell(children[index], node, state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {InlineCode} node\n */\n function inlineCodeWithTable(node, parent, state) {\n let value = defaultHandlers.inlineCode(node, parent, state)\n\n if (state.stack.includes('tableCell')) {\n value = value.replace(/\\|/g, '\\\\$&')\n }\n\n return value\n }\n}\n"],"names":["gfmTableFromMarkdown","enterTable","enterCell","enterRow","exitCodeText","exitTable","exit","token","align","d","value","replace","node","assert","$0","$1","gfmTableToMarkdown","options","settings","padding","alignDelimiters","stringLength","around","inlineCodeWithTable","handleTable","handleTableCell","handleTableRow","_","state","info","serializeData","handleTableAsData","row","handleTableRowAsData","subexit","matrix","markdownTable","children","index","result","parent","defaultHandlers"],"mappings":";;;AA0CO,SAASA,IAAuB;AACrC,SAAO;AAAA,IACL,OAAO;AAAA,MACL,OAAOC;AAAA,MACP,WAAWC;AAAA,MACX,aAAaA;AAAA,MACb,UAAUC;AAAA,IACX;AAAA,IACD,MAAM;AAAA,MACJ,UAAUC;AAAA,MACV,OAAOC;AAAA,MACP,WAAWC;AAAA,MACX,aAAaA;AAAA,MACb,UAAUA;AAAA,IAChB;AAAA,EACA;AACA;AAMA,SAASL,EAAWM,GAAO;AACzB,QAAMC,IAAQD,EAAM;AAEpB,OAAK;AAAA,IACH;AAAA,MACE,MAAM;AAAA,MACN,OAAOC,EAAM,IAAI,SAAUC,GAAG;AAC5B,eAAOA,MAAM,SAAS,OAAOA;AAAA,MACrC,CAAO;AAAA,MACD,UAAU,CAAA;AAAA,IACX;AAAA,IACDF;AAAA,EACJ,GACE,KAAK,KAAK,UAAU;AACtB;AAMA,SAASF,EAAUE,GAAO;AACxB,OAAK,KAAKA,CAAK,GACf,KAAK,KAAK,UAAU;AACtB;AAMA,SAASJ,EAASI,GAAO;AACvB,OAAK,MAAM,EAAC,MAAM,YAAY,UAAU,CAAE,EAAA,GAAGA,CAAK;AACpD;AAMA,SAASD,EAAKC,GAAO;AACnB,OAAK,KAAKA,CAAK;AACjB;AAMA,SAASL,EAAUK,GAAO;AACxB,OAAK,MAAM,EAAC,MAAM,aAAa,UAAU,CAAE,EAAA,GAAGA,CAAK;AACrD;AAQA,SAASH,EAAaG,GAAO;AAC3B,MAAIG,IAAQ,KAAK,OAAM;AAEvB,EAAI,KAAK,KAAK,YACZA,IAAQA,EAAM,QAAQ,cAAcC,CAAO;AAG7C,QAAMC,IAAO,KAAK,MAAM,KAAK,MAAM,SAAS,CAAC;AAC7CC,EAAAA,EAAOD,EAAK,SAAS,YAAY,GACjCA,EAAK,QAAQF,GACb,KAAK,KAAKH,CAAK;AACjB;AAOA,SAASI,EAAQG,GAAIC,GAAI;AAEvB,SAAOA,MAAO,MAAMA,IAAKD;AAC3B;AAWO,SAASE,EAAmBC,GAAS;AAC1C,QAAMC,IAAWD,KAAW,CAAA,GACtBE,IAAUD,EAAS,kBACnBE,IAAkBF,EAAS,gBAC3BG,IAAeH,EAAS,cACxBI,IAASH,IAAU,MAAM;AAE/B,SAAO;AAAA,IACL,QAAQ;AAAA,MACN,EAAC,WAAW,MAAM,aAAa,YAAW;AAAA,MAC1C,EAAC,WAAW;AAAA,GAAM,aAAa,YAAW;AAAA;AAAA;AAAA,MAG1C,EAAC,SAAS,IAAM,WAAW,KAAK,OAAO,SAAS;AAAA;AAAA,MAEhD,EAAC,WAAW,KAAK,aAAa,YAAW;AAAA;AAAA;AAAA,MAGzC,EAAC,SAAS,IAAM,WAAW,KAAK,OAAO,IAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAM1C,EAAC,SAAS,IAAM,WAAW,KAAK,OAAO,QAAO;AAAA,IAC/C;AAAA,IACD,UAAU;AAAA,MACR,YAAYI;AAAA,MACZ,OAAOC;AAAA,MACP,WAAWC;AAAA,MACX,UAAUC;AAAA,IAChB;AAAA,EACA;AAME,WAASF,EAAYZ,GAAMe,GAAGC,GAAOC,GAAM;AACzC,WAAOC,EAAcC,EAAkBnB,GAAMgB,GAAOC,CAAI,GAAGjB,EAAK,KAAK;AAAA,EACzE;AAUE,WAASc,EAAed,GAAMe,GAAGC,GAAOC,GAAM;AAC5C,UAAMG,IAAMC,EAAqBrB,GAAMgB,GAAOC,CAAI,GAC5CnB,IAAQoB,EAAc,CAACE,CAAG,CAAC;AAEjC,WAAOtB,EAAM,MAAM,GAAGA,EAAM,QAAQ;AAAA,CAAI,CAAC;AAAA,EAC7C;AAME,WAASe,EAAgBb,GAAMe,GAAGC,GAAOC,GAAM;AAC7C,UAAMvB,IAAOsB,EAAM,MAAM,WAAW,GAC9BM,IAAUN,EAAM,MAAM,UAAU,GAChClB,IAAQkB,EAAM,kBAAkBhB,GAAM;AAAA,MAC1C,GAAGiB;AAAA,MACH,QAAQP;AAAA,MACR,OAAOA;AAAA,IACR,CAAA;AACD,WAAAY,EAAO,GACP5B,EAAI,GACGI;AAAA,EACX;AAME,WAASoB,EAAcK,GAAQ3B,GAAO;AACpC,WAAO4B,EAAcD,GAAQ;AAAA,MAC3B,OAAA3B;AAAA;AAAA,MAEA,iBAAAY;AAAA;AAAA,MAEA,SAAAD;AAAA;AAAA,MAEA,cAAAE;AAAA,IACD,CAAA;AAAA,EACL;AAOE,WAASU,EAAkBnB,GAAMgB,GAAOC,GAAM;AAC5C,UAAMQ,IAAWzB,EAAK;AACtB,QAAI0B,IAAQ;AAEZ,UAAMC,IAAS,CAAA,GACTL,IAAUN,EAAM,MAAM,OAAO;AAEnC,WAAO,EAAEU,IAAQD,EAAS;AACxB,MAAAE,EAAOD,CAAK,IAAIL,EAAqBI,EAASC,CAAK,GAAGV,GAAOC,CAAI;AAGnE,WAAAK,EAAO,GAEAK;AAAA,EACX;AAOE,WAASN,EAAqBrB,GAAMgB,GAAOC,GAAM;AAC/C,UAAMQ,IAAWzB,EAAK;AACtB,QAAI0B,IAAQ;AAEZ,UAAMC,IAAS,CAAA,GACTL,IAAUN,EAAM,MAAM,UAAU;AAEtC,WAAO,EAAEU,IAAQD,EAAS;AAIxB,MAAAE,EAAOD,CAAK,IAAIb,EAAgBY,EAASC,CAAK,GAAG1B,GAAMgB,GAAOC,CAAI;AAGpE,WAAAK,EAAO,GAEAK;AAAA,EACX;AAME,WAAShB,EAAoBX,GAAM4B,GAAQZ,GAAO;AAChD,QAAIlB,IAAQ+B,EAAgB,WAAW7B,GAAM4B,GAAQZ,CAAK;AAE1D,WAAIA,EAAM,MAAM,SAAS,WAAW,MAClClB,IAAQA,EAAM,QAAQ,OAAO,MAAM,IAG9BA;AAAA,EACX;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,59 @@
1
+ import { ok as l } from "../../../../devlop@1.1.0/node_modules/devlop/lib/default.es.js";
2
+ import { handle as f } from "../../../../mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js";
3
+ function y() {
4
+ return {
5
+ exit: {
6
+ taskListCheckValueChecked: h,
7
+ taskListCheckValueUnchecked: h,
8
+ paragraph: u
9
+ }
10
+ };
11
+ }
12
+ function b() {
13
+ return {
14
+ unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
15
+ handlers: { listItem: m }
16
+ };
17
+ }
18
+ function h(s) {
19
+ const e = this.stack[this.stack.length - 2];
20
+ l(e.type === "listItem"), e.checked = s.type === "taskListCheckValueChecked";
21
+ }
22
+ function u(s) {
23
+ const e = this.stack[this.stack.length - 2];
24
+ if (e && e.type === "listItem" && typeof e.checked == "boolean") {
25
+ const i = this.stack[this.stack.length - 1];
26
+ l(i.type === "paragraph");
27
+ const t = i.children[0];
28
+ if (t && t.type === "text") {
29
+ const a = e.children;
30
+ let c = -1, n;
31
+ for (; ++c < a.length; ) {
32
+ const r = a[c];
33
+ if (r.type === "paragraph") {
34
+ n = r;
35
+ break;
36
+ }
37
+ }
38
+ n === i && (t.value = t.value.slice(1), t.value.length === 0 ? i.children.shift() : i.position && t.position && typeof t.position.start.offset == "number" && (t.position.start.column++, t.position.start.offset++, i.position.start = Object.assign({}, t.position.start)));
39
+ }
40
+ }
41
+ this.exit(s);
42
+ }
43
+ function m(s, e, i, t) {
44
+ const a = s.children[0], c = typeof s.checked == "boolean" && a && a.type === "paragraph", n = "[" + (s.checked ? "x" : " ") + "] ", r = i.createTracker(t);
45
+ c && r.move(n);
46
+ let o = f.listItem(s, e, i, {
47
+ ...t,
48
+ ...r.current()
49
+ });
50
+ return c && (o = o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, k)), o;
51
+ function k(p) {
52
+ return p + n;
53
+ }
54
+ }
55
+ export {
56
+ y as gfmTaskListItemFromMarkdown,
57
+ b as gfmTaskListItemToMarkdown
58
+ };
59
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n */\n\nimport {ok as assert} from 'devlop'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM task\n * list items in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemFromMarkdown() {\n return {\n exit: {\n taskListCheckValueChecked: exitCheck,\n taskListCheckValueUnchecked: exitCheck,\n paragraph: exitParagraphWithTaskListItem\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM task list\n * items in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemToMarkdown() {\n return {\n unsafe: [{atBreak: true, character: '-', after: '[:|-]'}],\n handlers: {listItem: listItemWithTaskListItem}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCheck(token) {\n // We’re always in a paragraph, in a list item.\n const node = this.stack[this.stack.length - 2]\n assert(node.type === 'listItem')\n node.checked = token.type === 'taskListCheckValueChecked'\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitParagraphWithTaskListItem(token) {\n const parent = this.stack[this.stack.length - 2]\n\n if (\n parent &&\n parent.type === 'listItem' &&\n typeof parent.checked === 'boolean'\n ) {\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'paragraph')\n const head = node.children[0]\n\n if (head && head.type === 'text') {\n const siblings = parent.children\n let index = -1\n /** @type {Paragraph | undefined} */\n let firstParaghraph\n\n while (++index < siblings.length) {\n const sibling = siblings[index]\n if (sibling.type === 'paragraph') {\n firstParaghraph = sibling\n break\n }\n }\n\n if (firstParaghraph === node) {\n // Must start with a space or a tab.\n head.value = head.value.slice(1)\n\n if (head.value.length === 0) {\n node.children.shift()\n } else if (\n node.position &&\n head.position &&\n typeof head.position.start.offset === 'number'\n ) {\n head.position.start.column++\n head.position.start.offset++\n node.position.start = Object.assign({}, head.position.start)\n }\n }\n }\n }\n\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {ListItem} node\n */\nfunction listItemWithTaskListItem(node, parent, state, info) {\n const head = node.children[0]\n const checkable =\n typeof node.checked === 'boolean' && head && head.type === 'paragraph'\n const checkbox = '[' + (node.checked ? 'x' : ' ') + '] '\n const tracker = state.createTracker(info)\n\n if (checkable) {\n tracker.move(checkbox)\n }\n\n let value = defaultHandlers.listItem(node, parent, state, {\n ...info,\n ...tracker.current()\n })\n\n if (checkable) {\n value = value.replace(/^(?:[*+-]|\\d+\\.)([\\r\\n]| {1,3})/, check)\n }\n\n return value\n\n /**\n * @param {string} $0\n * @returns {string}\n */\n function check($0) {\n return $0 + checkbox\n }\n}\n"],"names":["gfmTaskListItemFromMarkdown","exitCheck","exitParagraphWithTaskListItem","gfmTaskListItemToMarkdown","listItemWithTaskListItem","token","node","assert","parent","head","siblings","index","firstParaghraph","sibling","state","info","checkable","checkbox","tracker","value","defaultHandlers","check","$0"],"mappings":";;AAoBO,SAASA,IAA8B;AAC5C,SAAO;AAAA,IACL,MAAM;AAAA,MACJ,2BAA2BC;AAAA,MAC3B,6BAA6BA;AAAA,MAC7B,WAAWC;AAAA,IACjB;AAAA,EACA;AACA;AASO,SAASC,IAA4B;AAC1C,SAAO;AAAA,IACL,QAAQ,CAAC,EAAC,SAAS,IAAM,WAAW,KAAK,OAAO,QAAO,CAAC;AAAA,IACxD,UAAU,EAAC,UAAUC,EAAwB;AAAA,EACjD;AACA;AAMA,SAASH,EAAUI,GAAO;AAExB,QAAMC,IAAO,KAAK,MAAM,KAAK,MAAM,SAAS,CAAC;AAC7CC,EAAAA,EAAOD,EAAK,SAAS,UAAU,GAC/BA,EAAK,UAAUD,EAAM,SAAS;AAChC;AAMA,SAASH,EAA8BG,GAAO;AAC5C,QAAMG,IAAS,KAAK,MAAM,KAAK,MAAM,SAAS,CAAC;AAE/C,MACEA,KACAA,EAAO,SAAS,cAChB,OAAOA,EAAO,WAAY,WAC1B;AACA,UAAMF,IAAO,KAAK,MAAM,KAAK,MAAM,SAAS,CAAC;AAC7CC,IAAAA,EAAOD,EAAK,SAAS,WAAW;AAChC,UAAMG,IAAOH,EAAK,SAAS,CAAC;AAE5B,QAAIG,KAAQA,EAAK,SAAS,QAAQ;AAChC,YAAMC,IAAWF,EAAO;AACxB,UAAIG,IAAQ,IAERC;AAEJ,aAAO,EAAED,IAAQD,EAAS,UAAQ;AAChC,cAAMG,IAAUH,EAASC,CAAK;AAC9B,YAAIE,EAAQ,SAAS,aAAa;AAChC,UAAAD,IAAkBC;AAClB;AAAA,QACV;AAAA,MACA;AAEM,MAAID,MAAoBN,MAEtBG,EAAK,QAAQA,EAAK,MAAM,MAAM,CAAC,GAE3BA,EAAK,MAAM,WAAW,IACxBH,EAAK,SAAS,MAAK,IAEnBA,EAAK,YACLG,EAAK,YACL,OAAOA,EAAK,SAAS,MAAM,UAAW,aAEtCA,EAAK,SAAS,MAAM,UACpBA,EAAK,SAAS,MAAM,UACpBH,EAAK,SAAS,QAAQ,OAAO,OAAO,IAAIG,EAAK,SAAS,KAAK;AAAA,IAGrE;AAAA,EACA;AAEE,OAAK,KAAKJ,CAAK;AACjB;AAMA,SAASD,EAAyBE,GAAME,GAAQM,GAAOC,GAAM;AAC3D,QAAMN,IAAOH,EAAK,SAAS,CAAC,GACtBU,IACJ,OAAOV,EAAK,WAAY,aAAaG,KAAQA,EAAK,SAAS,aACvDQ,IAAW,OAAOX,EAAK,UAAU,MAAM,OAAO,MAC9CY,IAAUJ,EAAM,cAAcC,CAAI;AAExC,EAAIC,KACFE,EAAQ,KAAKD,CAAQ;AAGvB,MAAIE,IAAQC,EAAgB,SAASd,GAAME,GAAQM,GAAO;AAAA,IACxD,GAAGC;AAAA,IACH,GAAGG,EAAQ,QAAO;AAAA,EACnB,CAAA;AAED,SAAIF,MACFG,IAAQA,EAAM,QAAQ,mCAAmCE,CAAK,IAGzDF;AAMP,WAASE,EAAMC,GAAI;AACjB,WAAOA,IAAKL;AAAA,EAChB;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,30 @@
1
+ import { gfmAutolinkLiteralFromMarkdown as r, gfmAutolinkLiteralToMarkdown as m } from "../../../../mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js";
2
+ import { gfmFootnoteFromMarkdown as t, gfmFootnoteToMarkdown as n } from "../../../../mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js";
3
+ import { gfmStrikethroughFromMarkdown as f, gfmStrikethroughToMarkdown as a } from "../../../../mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js";
4
+ import { gfmTableFromMarkdown as k, gfmTableToMarkdown as e } from "../../../../mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js";
5
+ import { gfmTaskListItemFromMarkdown as i, gfmTaskListItemToMarkdown as g } from "../../../../mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js";
6
+ function F() {
7
+ return [
8
+ r(),
9
+ t(),
10
+ f(),
11
+ k(),
12
+ i()
13
+ ];
14
+ }
15
+ function l(o) {
16
+ return {
17
+ extensions: [
18
+ m(),
19
+ n(o),
20
+ a(),
21
+ e(o),
22
+ g()
23
+ ]
24
+ };
25
+ }
26
+ export {
27
+ F as gfmFromMarkdown,
28
+ l as gfmToMarkdown
29
+ };
30
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js"],"sourcesContent":["/**\n * @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'\n * @import {Options} from 'mdast-util-gfm'\n * @import {Options as ToMarkdownExtension} from 'mdast-util-to-markdown'\n */\n\nimport {\n gfmAutolinkLiteralFromMarkdown,\n gfmAutolinkLiteralToMarkdown\n} from 'mdast-util-gfm-autolink-literal'\nimport {\n gfmFootnoteFromMarkdown,\n gfmFootnoteToMarkdown\n} from 'mdast-util-gfm-footnote'\nimport {\n gfmStrikethroughFromMarkdown,\n gfmStrikethroughToMarkdown\n} from 'mdast-util-gfm-strikethrough'\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\nimport {\n gfmTaskListItemFromMarkdown,\n gfmTaskListItemToMarkdown\n} from 'mdast-util-gfm-task-list-item'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @returns {Array<FromMarkdownExtension>}\n * Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmFromMarkdown() {\n return [\n gfmAutolinkLiteralFromMarkdown(),\n gfmFootnoteFromMarkdown(),\n gfmStrikethroughFromMarkdown(),\n gfmTableFromMarkdown(),\n gfmTaskListItemFromMarkdown()\n ]\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmToMarkdown(options) {\n return {\n extensions: [\n gfmAutolinkLiteralToMarkdown(),\n gfmFootnoteToMarkdown(options),\n gfmStrikethroughToMarkdown(),\n gfmTableToMarkdown(options),\n gfmTaskListItemToMarkdown()\n ]\n }\n}\n"],"names":["gfmFromMarkdown","gfmAutolinkLiteralFromMarkdown","gfmFootnoteFromMarkdown","gfmStrikethroughFromMarkdown","gfmTableFromMarkdown","gfmTaskListItemFromMarkdown","gfmToMarkdown","options","gfmAutolinkLiteralToMarkdown","gfmFootnoteToMarkdown","gfmStrikethroughToMarkdown","gfmTableToMarkdown","gfmTaskListItemToMarkdown"],"mappings":";;;;;AAgCO,SAASA,IAAkB;AAChC,SAAO;AAAA,IACLC,EAAgC;AAAA,IAChCC,EAAyB;AAAA,IACzBC,EAA8B;AAAA,IAC9BC,EAAsB;AAAA,IACtBC,EAA2B;AAAA,EAC/B;AACA;AAYO,SAASC,EAAcC,GAAS;AACrC,SAAO;AAAA,IACL,YAAY;AAAA,MACVC,EAA8B;AAAA,MAC9BC,EAAsBF,CAAO;AAAA,MAC7BG,EAA4B;AAAA,MAC5BC,EAAmBJ,CAAO;AAAA,MAC1BK,EAAyB;AAAA,IAC/B;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,31 @@
1
+ import { convert as e } from "../../../../unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js";
2
+ const n = (
3
+ /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
4
+ e([
5
+ "break",
6
+ "delete",
7
+ "emphasis",
8
+ // To do: next major: removed since footnotes were added to GFM.
9
+ "footnote",
10
+ "footnoteReference",
11
+ "image",
12
+ "imageReference",
13
+ "inlineCode",
14
+ // Enabled by `mdast-util-math`:
15
+ "inlineMath",
16
+ "link",
17
+ "linkReference",
18
+ // Enabled by `mdast-util-mdx`:
19
+ "mdxJsxTextElement",
20
+ // Enabled by `mdast-util-mdx`:
21
+ "mdxTextExpression",
22
+ "strong",
23
+ "text",
24
+ // Enabled by `mdast-util-directive`:
25
+ "textDirective"
26
+ ])
27
+ );
28
+ export {
29
+ n as phrasing
30
+ };
31
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Html} Html\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n */\n\nimport {convert} from 'unist-util-is'\n\n/**\n * Check if the given value is *phrasing content*.\n *\n * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @returns\n * Whether `value` is phrasing content.\n */\n\nexport const phrasing =\n /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */\n (\n convert([\n 'break',\n 'delete',\n 'emphasis',\n // To do: next major: removed since footnotes were added to GFM.\n 'footnote',\n 'footnoteReference',\n 'image',\n 'imageReference',\n 'inlineCode',\n // Enabled by `mdast-util-math`:\n 'inlineMath',\n 'link',\n 'linkReference',\n // Enabled by `mdast-util-mdx`:\n 'mdxJsxTextElement',\n // Enabled by `mdast-util-mdx`:\n 'mdxTextExpression',\n 'strong',\n 'text',\n // Enabled by `mdast-util-directive`:\n 'textDirective'\n ])\n )\n"],"names":["phrasing","convert"],"mappings":";AAkBY,MAACA;AAAA;AAAA,EAGTC,EAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,EACD,CAAA;AAAA;","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
1
+ function k(e, o, n, c) {
2
+ const t = n.enter("blockquote"), r = n.createTracker(c);
3
+ r.move("> "), r.shift(2);
4
+ const u = n.indentLines(
5
+ n.containerFlow(e, r.current()),
6
+ i
7
+ );
8
+ return t(), u;
9
+ }
10
+ function i(e, o, n) {
11
+ return ">" + (n ? "" : " ") + e;
12
+ }
13
+ export {
14
+ k as blockquote
15
+ };
16
+ //# sourceMappingURL=blockquote.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockquote.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js"],"sourcesContent":["/**\n * @import {Blockquote, Parents} from 'mdast'\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {Blockquote} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function blockquote(node, _, state, info) {\n const exit = state.enter('blockquote')\n const tracker = state.createTracker(info)\n tracker.move('> ')\n tracker.shift(2)\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return '>' + (blank ? '' : ' ') + line\n}\n"],"names":["blockquote","node","_","state","info","exit","tracker","value","map","line","blank"],"mappings":"AAYO,SAASA,EAAWC,GAAMC,GAAGC,GAAOC,GAAM;AAC/C,QAAMC,IAAOF,EAAM,MAAM,YAAY,GAC/BG,IAAUH,EAAM,cAAcC,CAAI;AACxC,EAAAE,EAAQ,KAAK,IAAI,GACjBA,EAAQ,MAAM,CAAC;AACf,QAAMC,IAAQJ,EAAM;AAAA,IAClBA,EAAM,cAAcF,GAAMK,EAAQ,QAAO,CAAE;AAAA,IAC3CE;AAAA,EACJ;AACE,SAAAH,EAAI,GACGE;AACT;AAGA,SAASC,EAAIC,GAAMP,GAAGQ,GAAO;AAC3B,SAAO,OAAOA,IAAQ,KAAK,OAAOD;AACpC;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ import { patternInScope as t } from "../util/pattern-in-scope.es.js";
2
+ function u(f, a, e, r) {
3
+ let n = -1;
4
+ for (; ++n < e.unsafe.length; )
5
+ if (e.unsafe[n].character === `
6
+ ` && t(e.stack, e.unsafe[n]))
7
+ return /[ \t]/.test(r.before) ? "" : " ";
8
+ return `\\
9
+ `;
10
+ }
11
+ export {
12
+ u as hardBreak
13
+ };
14
+ //# sourceMappingURL=break.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"break.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js"],"sourcesContent":["/**\n * @import {Break, Parents} from 'mdast'\n * @import {Info, State} from 'mdast-util-to-markdown'\n */\n\nimport {patternInScope} from '../util/pattern-in-scope.js'\n\n/**\n * @param {Break} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function hardBreak(_, _1, state, info) {\n let index = -1\n\n while (++index < state.unsafe.length) {\n // If we can’t put eols in this construct (setext headings, tables), use a\n // space instead.\n if (\n state.unsafe[index].character === '\\n' &&\n patternInScope(state.stack, state.unsafe[index])\n ) {\n return /[ \\t]/.test(info.before) ? '' : ' '\n }\n }\n\n return '\\\\\\n'\n}\n"],"names":["hardBreak","_","_1","state","info","index","patternInScope"],"mappings":";AAcO,SAASA,EAAUC,GAAGC,GAAIC,GAAOC,GAAM;AAC5C,MAAIC,IAAQ;AAEZ,SAAO,EAAEA,IAAQF,EAAM,OAAO;AAG5B,QACEA,EAAM,OAAOE,CAAK,EAAE,cAAc;AAAA,KAClCC,EAAeH,EAAM,OAAOA,EAAM,OAAOE,CAAK,CAAC;AAE/C,aAAO,QAAQ,KAAKD,EAAK,MAAM,IAAI,KAAK;AAI5C,SAAO;AAAA;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,45 @@
1
+ import { longestStreak as s } from "../../../../../longest-streak@3.1.0/node_modules/longest-streak/index.es.js";
2
+ import { formatCodeAsIndented as l } from "../util/format-code-as-indented.es.js";
3
+ import { checkFence as x } from "../util/check-fence.es.js";
4
+ function F(n, i, e, u) {
5
+ const m = x(e), t = n.value || "", f = m === "`" ? "GraveAccent" : "Tilde";
6
+ if (l(n, e)) {
7
+ const o = e.enter("codeIndented"), v = e.indentLines(t, p);
8
+ return o(), v;
9
+ }
10
+ const r = e.createTracker(u), a = m.repeat(Math.max(s(t, m) + 1, 3)), d = e.enter("codeFenced");
11
+ let c = r.move(a);
12
+ if (n.lang) {
13
+ const o = e.enter(`codeFencedLang${f}`);
14
+ c += r.move(
15
+ e.safe(n.lang, {
16
+ before: c,
17
+ after: " ",
18
+ encode: ["`"],
19
+ ...r.current()
20
+ })
21
+ ), o();
22
+ }
23
+ if (n.lang && n.meta) {
24
+ const o = e.enter(`codeFencedMeta${f}`);
25
+ c += r.move(" "), c += r.move(
26
+ e.safe(n.meta, {
27
+ before: c,
28
+ after: `
29
+ `,
30
+ encode: ["`"],
31
+ ...r.current()
32
+ })
33
+ ), o();
34
+ }
35
+ return c += r.move(`
36
+ `), t && (c += r.move(t + `
37
+ `)), c += r.move(a), d(), c;
38
+ }
39
+ function p(n, i, e) {
40
+ return (e ? "" : " ") + n;
41
+ }
42
+ export {
43
+ F as code
44
+ };
45
+ //# sourceMappingURL=code.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js"],"sourcesContent":["/**\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n * @import {Code, Parents} from 'mdast'\n */\n\nimport {longestStreak} from 'longest-streak'\nimport {formatCodeAsIndented} from '../util/format-code-as-indented.js'\nimport {checkFence} from '../util/check-fence.js'\n\n/**\n * @param {Code} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function code(node, _, state, info) {\n const marker = checkFence(state)\n const raw = node.value || ''\n const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'\n\n if (formatCodeAsIndented(node, state)) {\n const exit = state.enter('codeIndented')\n const value = state.indentLines(raw, map)\n exit()\n return value\n }\n\n const tracker = state.createTracker(info)\n const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3))\n const exit = state.enter('codeFenced')\n let value = tracker.move(sequence)\n\n if (node.lang) {\n const subexit = state.enter(`codeFencedLang${suffix}`)\n value += tracker.move(\n state.safe(node.lang, {\n before: value,\n after: ' ',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n if (node.lang && node.meta) {\n const subexit = state.enter(`codeFencedMeta${suffix}`)\n value += tracker.move(' ')\n value += tracker.move(\n state.safe(node.meta, {\n before: value,\n after: '\\n',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n value += tracker.move('\\n')\n\n if (raw) {\n value += tracker.move(raw + '\\n')\n }\n\n value += tracker.move(sequence)\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return (blank ? '' : ' ') + line\n}\n"],"names":["code","node","_","state","info","marker","checkFence","raw","suffix","formatCodeAsIndented","exit","value","map","tracker","sequence","longestStreak","subexit","line","blank"],"mappings":";;;AAgBO,SAASA,EAAKC,GAAMC,GAAGC,GAAOC,GAAM;AACzC,QAAMC,IAASC,EAAWH,CAAK,GACzBI,IAAMN,EAAK,SAAS,IACpBO,IAASH,MAAW,MAAM,gBAAgB;AAEhD,MAAII,EAAqBR,GAAME,CAAK,GAAG;AACrC,UAAMO,IAAOP,EAAM,MAAM,cAAc,GACjCQ,IAAQR,EAAM,YAAYI,GAAKK,CAAG;AACxC,WAAAF,EAAI,GACGC;AAAA,EACX;AAEE,QAAME,IAAUV,EAAM,cAAcC,CAAI,GAClCU,IAAWT,EAAO,OAAO,KAAK,IAAIU,EAAcR,GAAKF,CAAM,IAAI,GAAG,CAAC,CAAC,GACpEK,IAAOP,EAAM,MAAM,YAAY;AACrC,MAAIQ,IAAQE,EAAQ,KAAKC,CAAQ;AAEjC,MAAIb,EAAK,MAAM;AACb,UAAMe,IAAUb,EAAM,MAAM,iBAAiBK,CAAM,EAAE;AACrD,IAAAG,KAASE,EAAQ;AAAA,MACfV,EAAM,KAAKF,EAAK,MAAM;AAAA,QACpB,QAAQU;AAAA,QACR,OAAO;AAAA,QACP,QAAQ,CAAC,GAAG;AAAA,QACZ,GAAGE,EAAQ,QAAO;AAAA,MACnB,CAAA;AAAA,IACP,GACIG,EAAO;AAAA,EACX;AAEE,MAAIf,EAAK,QAAQA,EAAK,MAAM;AAC1B,UAAMe,IAAUb,EAAM,MAAM,iBAAiBK,CAAM,EAAE;AACrD,IAAAG,KAASE,EAAQ,KAAK,GAAG,GACzBF,KAASE,EAAQ;AAAA,MACfV,EAAM,KAAKF,EAAK,MAAM;AAAA,QACpB,QAAQU;AAAA,QACR,OAAO;AAAA;AAAA,QACP,QAAQ,CAAC,GAAG;AAAA,QACZ,GAAGE,EAAQ,QAAO;AAAA,MACnB,CAAA;AAAA,IACP,GACIG,EAAO;AAAA,EACX;AAEE,SAAAL,KAASE,EAAQ,KAAK;AAAA,CAAI,GAEtBN,MACFI,KAASE,EAAQ,KAAKN,IAAM;AAAA,CAAI,IAGlCI,KAASE,EAAQ,KAAKC,CAAQ,GAC9BJ,EAAI,GACGC;AACT;AAGA,SAASC,EAAIK,GAAMf,GAAGgB,GAAO;AAC3B,UAAQA,IAAQ,KAAK,UAAUD;AACjC;","x_google_ignoreList":[0]}
@@ -0,0 +1,35 @@
1
+ import { checkQuote as l } from "../util/check-quote.es.js";
2
+ function a(o, m, t, n) {
3
+ const f = l(t), u = f === '"' ? "Quote" : "Apostrophe", c = t.enter("definition");
4
+ let i = t.enter("label");
5
+ const e = t.createTracker(n);
6
+ let r = e.move("[");
7
+ return r += e.move(
8
+ t.safe(t.associationId(o), {
9
+ before: r,
10
+ after: "]",
11
+ ...e.current()
12
+ })
13
+ ), r += e.move("]: "), i(), // If there’s no url, or…
14
+ !o.url || // If there are control characters or whitespace.
15
+ /[\0- \u007F]/.test(o.url) ? (i = t.enter("destinationLiteral"), r += e.move("<"), r += e.move(
16
+ t.safe(o.url, { before: r, after: ">", ...e.current() })
17
+ ), r += e.move(">")) : (i = t.enter("destinationRaw"), r += e.move(
18
+ t.safe(o.url, {
19
+ before: r,
20
+ after: o.title ? " " : `
21
+ `,
22
+ ...e.current()
23
+ })
24
+ )), i(), o.title && (i = t.enter(`title${u}`), r += e.move(" " + f), r += e.move(
25
+ t.safe(o.title, {
26
+ before: r,
27
+ after: f,
28
+ ...e.current()
29
+ })
30
+ ), r += e.move(f), i()), c(), r;
31
+ }
32
+ export {
33
+ a as definition
34
+ };
35
+ //# sourceMappingURL=definition.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Definition, Parents} from 'mdast'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\n/**\n * @param {Definition} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function definition(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('definition')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n value += tracker.move(\n state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n )\n value += tracker.move(']: ')\n\n subexit()\n\n if (\n // If there’s no url, or…\n !node.url ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : '\\n',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n exit()\n\n return value\n}\n"],"names":["definition","node","_","state","info","quote","checkQuote","suffix","exit","subexit","tracker","value"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAGC,GAAOC,GAAM;AAC/C,QAAMC,IAAQC,EAAWH,CAAK,GACxBI,IAASF,MAAU,MAAM,UAAU,cACnCG,IAAOL,EAAM,MAAM,YAAY;AACrC,MAAIM,IAAUN,EAAM,MAAM,OAAO;AACjC,QAAMO,IAAUP,EAAM,cAAcC,CAAI;AACxC,MAAIO,IAAQD,EAAQ,KAAK,GAAG;AAC5B,SAAAC,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKA,EAAM,cAAcF,CAAI,GAAG;AAAA,MACpC,QAAQU;AAAA,MACR,OAAO;AAAA,MACP,GAAGD,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACL,GACEC,KAASD,EAAQ,KAAK,KAAK,GAE3BD,EAAO;AAAA,EAIL,CAACR,EAAK;AAAA,EAEN,eAAe,KAAKA,EAAK,GAAG,KAE5BQ,IAAUN,EAAM,MAAM,oBAAoB,GAC1CQ,KAASD,EAAQ,KAAK,GAAG,GACzBC,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK,EAAC,QAAQU,GAAO,OAAO,KAAK,GAAGD,EAAQ,QAAO,EAAE,CAAC;AAAA,EAC5E,GACIC,KAASD,EAAQ,KAAK,GAAG,MAGzBD,IAAUN,EAAM,MAAM,gBAAgB,GACtCQ,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK;AAAA,MACnB,QAAQU;AAAA,MACR,OAAOV,EAAK,QAAQ,MAAM;AAAA;AAAA,MAC1B,GAAGS,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACP,IAGED,EAAO,GAEHR,EAAK,UACPQ,IAAUN,EAAM,MAAM,QAAQI,CAAM,EAAE,GACtCI,KAASD,EAAQ,KAAK,MAAML,CAAK,GACjCM,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,OAAO;AAAA,MACrB,QAAQU;AAAA,MACR,OAAON;AAAA,MACP,GAAGK,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACP,GACIC,KAASD,EAAQ,KAAKL,CAAK,GAC3BI,EAAO,IAGTD,EAAI,GAEGG;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,34 @@
1
+ import { checkEmphasis as l } from "../util/check-emphasis.es.js";
2
+ import { encodeCharacterReference as h } from "../util/encode-character-reference.es.js";
3
+ import { encodeInfo as d } from "../util/encode-info.es.js";
4
+ k.peek = C;
5
+ function k(c, p, o, n) {
6
+ const r = l(o), u = o.enter("emphasis"), t = o.createTracker(n), i = t.move(r);
7
+ let e = t.move(
8
+ o.containerPhrasing(c, {
9
+ after: r,
10
+ before: i,
11
+ ...t.current()
12
+ })
13
+ );
14
+ const s = e.charCodeAt(0), a = d(
15
+ n.before.charCodeAt(n.before.length - 1),
16
+ s,
17
+ r
18
+ );
19
+ a.inside && (e = h(s) + e.slice(1));
20
+ const f = e.charCodeAt(e.length - 1), m = d(n.after.charCodeAt(0), f, r);
21
+ m.inside && (e = e.slice(0, -1) + h(f));
22
+ const b = t.move(r);
23
+ return u(), o.attentionEncodeSurroundingInfo = {
24
+ after: m.outside,
25
+ before: a.outside
26
+ }, i + e + b;
27
+ }
28
+ function C(c, p, o) {
29
+ return o.options.emphasis || "*";
30
+ }
31
+ export {
32
+ k as emphasis
33
+ };
34
+ //# sourceMappingURL=emphasis.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emphasis.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Emphasis, Parents} from 'mdast'\n */\n\nimport {checkEmphasis} from '../util/check-emphasis.js'\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {encodeInfo} from '../util/encode-info.js'\n\nemphasis.peek = emphasisPeek\n\n/**\n * @param {Emphasis} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function emphasis(node, _, state, info) {\n const marker = checkEmphasis(state)\n const exit = state.enter('emphasis')\n const tracker = state.createTracker(info)\n const before = tracker.move(marker)\n\n let between = tracker.move(\n state.containerPhrasing(node, {\n after: marker,\n before,\n ...tracker.current()\n })\n )\n const betweenHead = between.charCodeAt(0)\n const open = encodeInfo(\n info.before.charCodeAt(info.before.length - 1),\n betweenHead,\n marker\n )\n\n if (open.inside) {\n between = encodeCharacterReference(betweenHead) + between.slice(1)\n }\n\n const betweenTail = between.charCodeAt(between.length - 1)\n const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)\n\n if (close.inside) {\n between = between.slice(0, -1) + encodeCharacterReference(betweenTail)\n }\n\n const after = tracker.move(marker)\n\n exit()\n\n state.attentionEncodeSurroundingInfo = {\n after: close.outside,\n before: open.outside\n }\n return before + between + after\n}\n\n/**\n * @param {Emphasis} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction emphasisPeek(_, _1, state) {\n return state.options.emphasis || '*'\n}\n"],"names":["emphasis","emphasisPeek","node","_","state","info","marker","checkEmphasis","exit","tracker","before","between","betweenHead","open","encodeInfo","encodeCharacterReference","betweenTail","close","after","_1"],"mappings":";;;AASAA,EAAS,OAAOC;AAST,SAASD,EAASE,GAAMC,GAAGC,GAAOC,GAAM;AAC7C,QAAMC,IAASC,EAAcH,CAAK,GAC5BI,IAAOJ,EAAM,MAAM,UAAU,GAC7BK,IAAUL,EAAM,cAAcC,CAAI,GAClCK,IAASD,EAAQ,KAAKH,CAAM;AAElC,MAAIK,IAAUF,EAAQ;AAAA,IACpBL,EAAM,kBAAkBF,GAAM;AAAA,MAC5B,OAAOI;AAAA,MACP,QAAAI;AAAA,MACA,GAAGD,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACL;AACE,QAAMG,IAAcD,EAAQ,WAAW,CAAC,GAClCE,IAAOC;AAAA,IACXT,EAAK,OAAO,WAAWA,EAAK,OAAO,SAAS,CAAC;AAAA,IAC7CO;AAAA,IACAN;AAAA,EACJ;AAEE,EAAIO,EAAK,WACPF,IAAUI,EAAyBH,CAAW,IAAID,EAAQ,MAAM,CAAC;AAGnE,QAAMK,IAAcL,EAAQ,WAAWA,EAAQ,SAAS,CAAC,GACnDM,IAAQH,EAAWT,EAAK,MAAM,WAAW,CAAC,GAAGW,GAAaV,CAAM;AAEtE,EAAIW,EAAM,WACRN,IAAUA,EAAQ,MAAM,GAAG,EAAE,IAAII,EAAyBC,CAAW;AAGvE,QAAME,IAAQT,EAAQ,KAAKH,CAAM;AAEjC,SAAAE,EAAI,GAEJJ,EAAM,iCAAiC;AAAA,IACrC,OAAOa,EAAM;AAAA,IACb,QAAQJ,EAAK;AAAA,EACjB,GACSH,IAASC,IAAUO;AAC5B;AAQA,SAASjB,EAAaE,GAAGgB,GAAIf,GAAO;AAClC,SAAOA,EAAM,QAAQ,YAAY;AACnC;","x_google_ignoreList":[0]}
@@ -0,0 +1,35 @@
1
+ import { encodeCharacterReference as u } from "../util/encode-character-reference.es.js";
2
+ import { formatHeadingAsSetext as g } from "../util/format-heading-as-setext.es.js";
3
+ function d(r, m, e, o) {
4
+ const i = Math.max(Math.min(6, r.depth || 1), 1), c = e.createTracker(o);
5
+ if (g(r, e)) {
6
+ const s = e.enter("headingSetext"), x = e.enter("phrasing"), a = e.containerPhrasing(r, {
7
+ ...c.current(),
8
+ before: `
9
+ `,
10
+ after: `
11
+ `
12
+ });
13
+ return x(), s(), a + `
14
+ ` + (i === 1 ? "=" : "-").repeat(
15
+ // The whole size…
16
+ a.length - // Minus the position of the character after the last EOL (or
17
+ // 0 if there is none)…
18
+ (Math.max(a.lastIndexOf("\r"), a.lastIndexOf(`
19
+ `)) + 1)
20
+ );
21
+ }
22
+ const t = "#".repeat(i), f = e.enter("headingAtx"), h = e.enter("phrasing");
23
+ c.move(t + " ");
24
+ let n = e.containerPhrasing(r, {
25
+ before: "# ",
26
+ after: `
27
+ `,
28
+ ...c.current()
29
+ });
30
+ return /^[\t ]/.test(n) && (n = u(n.charCodeAt(0)) + n.slice(1)), n = n ? t + " " + n : t, e.options.closeAtx && (n += " " + t), h(), f(), n;
31
+ }
32
+ export {
33
+ d as heading
34
+ };
35
+ //# sourceMappingURL=heading.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Heading, Parents} from 'mdast'\n */\n\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {formatHeadingAsSetext} from '../util/format-heading-as-setext.js'\n\n/**\n * @param {Heading} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function heading(node, _, state, info) {\n const rank = Math.max(Math.min(6, node.depth || 1), 1)\n const tracker = state.createTracker(info)\n\n if (formatHeadingAsSetext(node, state)) {\n const exit = state.enter('headingSetext')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...tracker.current(),\n before: '\\n',\n after: '\\n'\n })\n subexit()\n exit()\n\n return (\n value +\n '\\n' +\n (rank === 1 ? '=' : '-').repeat(\n // The whole size…\n value.length -\n // Minus the position of the character after the last EOL (or\n // 0 if there is none)…\n (Math.max(value.lastIndexOf('\\r'), value.lastIndexOf('\\n')) + 1)\n )\n )\n }\n\n const sequence = '#'.repeat(rank)\n const exit = state.enter('headingAtx')\n const subexit = state.enter('phrasing')\n\n // Note: for proper tracking, we should reset the output positions when there\n // is no content returned, because then the space is not output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n tracker.move(sequence + ' ')\n\n let value = state.containerPhrasing(node, {\n before: '# ',\n after: '\\n',\n ...tracker.current()\n })\n\n if (/^[\\t ]/.test(value)) {\n // To do: what effect has the character reference on tracking?\n value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1)\n }\n\n value = value ? sequence + ' ' + value : sequence\n\n if (state.options.closeAtx) {\n value += ' ' + sequence\n }\n\n subexit()\n exit()\n\n return value\n}\n"],"names":["heading","node","_","state","info","rank","tracker","formatHeadingAsSetext","exit","subexit","value","sequence","encodeCharacterReference"],"mappings":";;AAeO,SAASA,EAAQC,GAAMC,GAAGC,GAAOC,GAAM;AAC5C,QAAMC,IAAO,KAAK,IAAI,KAAK,IAAI,GAAGJ,EAAK,SAAS,CAAC,GAAG,CAAC,GAC/CK,IAAUH,EAAM,cAAcC,CAAI;AAExC,MAAIG,EAAsBN,GAAME,CAAK,GAAG;AACtC,UAAMK,IAAOL,EAAM,MAAM,eAAe,GAClCM,IAAUN,EAAM,MAAM,UAAU,GAChCO,IAAQP,EAAM,kBAAkBF,GAAM;AAAA,MAC1C,GAAGK,EAAQ,QAAS;AAAA,MACpB,QAAQ;AAAA;AAAA,MACR,OAAO;AAAA;AAAA,IACR,CAAA;AACD,WAAAG,EAAO,GACPD,EAAI,GAGFE,IACA;AAAA,KACCL,MAAS,IAAI,MAAM,KAAK;AAAA;AAAA,MAEvBK,EAAM;AAAA;AAAA,OAGH,KAAK,IAAIA,EAAM,YAAY,IAAI,GAAGA,EAAM,YAAY;AAAA,CAAI,CAAC,IAAI;AAAA,IACxE;AAAA,EAEA;AAEE,QAAMC,IAAW,IAAI,OAAON,CAAI,GAC1BG,IAAOL,EAAM,MAAM,YAAY,GAC/BM,IAAUN,EAAM,MAAM,UAAU;AAMtC,EAAAG,EAAQ,KAAKK,IAAW,GAAG;AAE3B,MAAID,IAAQP,EAAM,kBAAkBF,GAAM;AAAA,IACxC,QAAQ;AAAA,IACR,OAAO;AAAA;AAAA,IACP,GAAGK,EAAQ,QAAO;AAAA,EACnB,CAAA;AAED,SAAI,SAAS,KAAKI,CAAK,MAErBA,IAAQE,EAAyBF,EAAM,WAAW,CAAC,CAAC,IAAIA,EAAM,MAAM,CAAC,IAGvEA,IAAQA,IAAQC,IAAW,MAAMD,IAAQC,GAErCR,EAAM,QAAQ,aAChBO,KAAS,MAAMC,IAGjBF,EAAO,GACPD,EAAI,GAEGE;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ t.peek = n;
2
+ function t(e) {
3
+ return e.value || "";
4
+ }
5
+ function n() {
6
+ return "<";
7
+ }
8
+ export {
9
+ t as html
10
+ };
11
+ //# sourceMappingURL=html.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js"],"sourcesContent":["/**\n * @import {Html} from 'mdast'\n */\n\nhtml.peek = htmlPeek\n\n/**\n * @param {Html} node\n * @returns {string}\n */\nexport function html(node) {\n return node.value || ''\n}\n\n/**\n * @returns {string}\n */\nfunction htmlPeek() {\n return '<'\n}\n"],"names":["html","htmlPeek","node"],"mappings":"AAIAA,EAAK,OAAOC;AAML,SAASD,EAAKE,GAAM;AACzB,SAAOA,EAAK,SAAS;AACvB;AAKA,SAASD,IAAW;AAClB,SAAO;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,28 @@
1
+ u.peek = k;
2
+ function u(n, m, e, l) {
3
+ const t = n.referenceType, a = e.enter("imageReference");
4
+ let f = e.enter("label");
5
+ const c = e.createTracker(l);
6
+ let r = c.move("![");
7
+ const o = e.safe(n.alt, {
8
+ before: r,
9
+ after: "]",
10
+ ...c.current()
11
+ });
12
+ r += c.move(o + "]["), f();
13
+ const s = e.stack;
14
+ e.stack = [], f = e.enter("reference");
15
+ const i = e.safe(e.associationId(n), {
16
+ before: r,
17
+ after: "]",
18
+ ...c.current()
19
+ });
20
+ return f(), e.stack = s, a(), t === "full" || !o || o !== i ? r += c.move(i + "]") : t === "shortcut" ? r = r.slice(0, -1) : r += c.move("]"), r;
21
+ }
22
+ function k() {
23
+ return "!";
24
+ }
25
+ export {
26
+ u as imageReference
27
+ };
28
+ //# sourceMappingURL=image-reference.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-reference.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {ImageReference, Parents} from 'mdast'\n */\n\nimageReference.peek = imageReferencePeek\n\n/**\n * @param {ImageReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function imageReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('imageReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n const alt = state.safe(node.alt, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(alt + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !alt || alt !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imageReferencePeek() {\n return '!'\n}\n"],"names":["imageReference","imageReferencePeek","node","_","state","info","type","exit","subexit","tracker","value","alt","stack","reference"],"mappings":"AAKAA,EAAe,OAAOC;AASf,SAASD,EAAeE,GAAMC,GAAGC,GAAOC,GAAM;AACnD,QAAMC,IAAOJ,EAAK,eACZK,IAAOH,EAAM,MAAM,gBAAgB;AACzC,MAAII,IAAUJ,EAAM,MAAM,OAAO;AACjC,QAAMK,IAAUL,EAAM,cAAcC,CAAI;AACxC,MAAIK,IAAQD,EAAQ,KAAK,IAAI;AAC7B,QAAME,IAAMP,EAAM,KAAKF,EAAK,KAAK;AAAA,IAC/B,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACnB,CAAA;AACD,EAAAC,KAASD,EAAQ,KAAKE,IAAM,IAAI,GAEhCH,EAAO;AAEP,QAAMI,IAAQR,EAAM;AACpB,EAAAA,EAAM,QAAQ,CAAA,GACdI,IAAUJ,EAAM,MAAM,WAAW;AAKjC,QAAMS,IAAYT,EAAM,KAAKA,EAAM,cAAcF,CAAI,GAAG;AAAA,IACtD,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACnB,CAAA;AACD,SAAAD,EAAO,GACPJ,EAAM,QAAQQ,GACdL,EAAI,GAEAD,MAAS,UAAU,CAACK,KAAOA,MAAQE,IACrCH,KAASD,EAAQ,KAAKI,IAAY,GAAG,IAC5BP,MAAS,aAElBI,IAAQA,EAAM,MAAM,GAAG,EAAE,IAEzBA,KAASD,EAAQ,KAAK,GAAG,GAGpBC;AACT;AAKA,SAAST,IAAqB;AAC5B,SAAO;AACT;","x_google_ignoreList":[0]}