@easyv/biz-components 0.0.1

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 (343) hide show
  1. package/dist/_virtual/_commonjsHelpers.es.js +9 -0
  2. package/dist/_virtual/_commonjsHelpers.es.js.map +1 -0
  3. package/dist/_virtual/index.es.js +5 -0
  4. package/dist/_virtual/index.es.js.map +1 -0
  5. package/dist/_virtual/index.es2.js +5 -0
  6. package/dist/_virtual/index.es2.js.map +1 -0
  7. package/dist/_virtual/index.es3.js +5 -0
  8. package/dist/_virtual/index.es3.js.map +1 -0
  9. package/dist/_virtual/index.es4.js +5 -0
  10. package/dist/_virtual/index.es4.js.map +1 -0
  11. package/dist/_virtual/index.es5.js +5 -0
  12. package/dist/_virtual/index.es5.js.map +1 -0
  13. package/dist/_virtual/jsx-runtime.es.js +5 -0
  14. package/dist/_virtual/jsx-runtime.es.js.map +1 -0
  15. package/dist/_virtual/react-is.development.es.js +5 -0
  16. package/dist/_virtual/react-is.development.es.js.map +1 -0
  17. package/dist/_virtual/react-is.production.min.es.js +5 -0
  18. package/dist/_virtual/react-is.production.min.es.js.map +1 -0
  19. package/dist/_virtual/react-jsx-runtime.development.es.js +5 -0
  20. package/dist/_virtual/react-jsx-runtime.development.es.js.map +1 -0
  21. package/dist/_virtual/react-jsx-runtime.production.min.es.js +5 -0
  22. package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +1 -0
  23. package/dist/_virtual/utilities.es.js +5 -0
  24. package/dist/_virtual/utilities.es.js.map +1 -0
  25. package/dist/components/AiMessageRender/AiMessageRender.d.ts +7 -0
  26. package/dist/components/AiMessageRender/AiMessageRender.es.js +47 -0
  27. package/dist/components/AiMessageRender/AiMessageRender.es.js.map +1 -0
  28. package/dist/components/AiMessageRender/index.css.es.js +17 -0
  29. package/dist/components/AiMessageRender/index.css.es.js.map +1 -0
  30. package/dist/components/AiMessageRender/index.d.ts +2 -0
  31. package/dist/components/AiMessageRender/types.d.ts +9 -0
  32. package/dist/components/Button/index.d.ts +21 -0
  33. package/dist/components/Button/index.es.js +23 -0
  34. package/dist/components/Button/index.es.js.map +1 -0
  35. package/dist/components/ShadowDom/ShadowDom.d.ts +7 -0
  36. package/dist/components/ShadowDom/ShadowDom.es.js +23 -0
  37. package/dist/components/ShadowDom/ShadowDom.es.js.map +1 -0
  38. package/dist/components/ShadowDom/index.d.ts +1 -0
  39. package/dist/components/index.d.ts +3 -0
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.es.js +9 -0
  42. package/dist/index.es.js.map +1 -0
  43. package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js +1160 -0
  44. package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js.map +1 -0
  45. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.es.js +63 -0
  46. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -0
  47. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js +12 -0
  48. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js.map +1 -0
  49. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.es.js +107 -0
  50. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -0
  51. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.es.js +14 -0
  52. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.es.js.map +1 -0
  53. package/dist/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.es.js +8 -0
  54. package/dist/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.es.js.map +1 -0
  55. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +43 -0
  56. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js.map +1 -0
  57. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +43 -0
  58. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js.map +1 -0
  59. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.es.js +10 -0
  60. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.es.js.map +1 -0
  61. package/dist/node_modules/.pnpm/decode-named-character-reference@1.1.0/node_modules/decode-named-character-reference/index.dom.es.js +15 -0
  62. package/dist/node_modules/.pnpm/decode-named-character-reference@1.1.0/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -0
  63. package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.es.js +9 -0
  64. package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.es.js.map +1 -0
  65. package/dist/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.es.js +8 -0
  66. package/dist/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.es.js.map +1 -0
  67. package/dist/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js +40 -0
  68. package/dist/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js.map +1 -0
  69. package/dist/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +303 -0
  70. package/dist/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js.map +1 -0
  71. package/dist/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.es.js +11 -0
  72. package/dist/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.es.js.map +1 -0
  73. package/dist/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.es.js +27 -0
  74. package/dist/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.es.js.map +1 -0
  75. package/dist/node_modules/.pnpm/inline-style-parser@0.2.4/node_modules/inline-style-parser/index.es.js +87 -0
  76. package/dist/node_modules/.pnpm/inline-style-parser@0.2.4/node_modules/inline-style-parser/index.es.js.map +1 -0
  77. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.es.js +10 -0
  78. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.es.js.map +1 -0
  79. package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.es.js +582 -0
  80. package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -0
  81. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.es.js +91 -0
  82. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -0
  83. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js +13 -0
  84. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -0
  85. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.es.js +9 -0
  86. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -0
  87. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +16 -0
  88. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -0
  89. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js +13 -0
  90. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -0
  91. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js +13 -0
  92. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -0
  93. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js +29 -0
  94. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -0
  95. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js +13 -0
  96. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -0
  97. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.es.js +10 -0
  98. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -0
  99. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js +15 -0
  100. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -0
  101. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.es.js +11 -0
  102. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -0
  103. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.es.js +59 -0
  104. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -0
  105. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js +15 -0
  106. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -0
  107. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js +20 -0
  108. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -0
  109. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.es.js +16 -0
  110. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -0
  111. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js +43 -0
  112. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -0
  113. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.es.js +22 -0
  114. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -0
  115. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js +13 -0
  116. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -0
  117. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.es.js +8 -0
  118. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -0
  119. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js +13 -0
  120. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -0
  121. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js +14 -0
  122. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -0
  123. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js +22 -0
  124. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -0
  125. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.es.js +33 -0
  126. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -0
  127. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.es.js +9 -0
  128. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -0
  129. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js +13 -0
  130. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -0
  131. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.es.js +11 -0
  132. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -0
  133. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.es.js +14 -0
  134. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -0
  135. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.es.js +105 -0
  136. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -0
  137. package/dist/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js +30 -0
  138. package/dist/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js.map +1 -0
  139. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.es.js +84 -0
  140. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.es.js.map +1 -0
  141. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.es.js +44 -0
  142. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.es.js.map +1 -0
  143. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.es.js +19 -0
  144. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.es.js.map +1 -0
  145. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.es.js +43 -0
  146. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.es.js.map +1 -0
  147. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.es.js +18 -0
  148. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.es.js.map +1 -0
  149. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.es.js +31 -0
  150. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.es.js.map +1 -0
  151. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.es.js +95 -0
  152. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.es.js.map +1 -0
  153. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.es.js +44 -0
  154. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.es.js.map +1 -0
  155. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.es.js +46 -0
  156. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.es.js.map +1 -0
  157. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.es.js +51 -0
  158. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.es.js.map +1 -0
  159. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.es.js +81 -0
  160. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.es.js.map +1 -0
  161. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.es.js +18 -0
  162. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.es.js.map +1 -0
  163. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.es.js +47 -0
  164. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.es.js.map +1 -0
  165. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.es.js +145 -0
  166. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.es.js.map +1 -0
  167. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.es.js +103 -0
  168. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.es.js.map +1 -0
  169. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.es.js +153 -0
  170. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.es.js.map +1 -0
  171. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.es.js +23 -0
  172. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.es.js.map +1 -0
  173. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.es.js +20 -0
  174. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.es.js.map +1 -0
  175. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.es.js +15 -0
  176. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.es.js.map +1 -0
  177. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.es.js +91 -0
  178. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.es.js.map +1 -0
  179. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.es.js +58 -0
  180. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.es.js.map +1 -0
  181. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.es.js +26 -0
  182. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.es.js.map +1 -0
  183. package/dist/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.es.js +32 -0
  184. package/dist/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.es.js.map +1 -0
  185. package/dist/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.es.js +29 -0
  186. package/dist/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.es.js.map +1 -0
  187. package/dist/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.es.js +16 -0
  188. package/dist/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.es.js.map +1 -0
  189. package/dist/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.es.js +27 -0
  190. package/dist/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.es.js.map +1 -0
  191. package/dist/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.es.js +13 -0
  192. package/dist/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.es.js.map +1 -0
  193. package/dist/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js +40 -0
  194. package/dist/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js.map +1 -0
  195. package/dist/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js +17 -0
  196. package/dist/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js.map +1 -0
  197. package/dist/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js +11 -0
  198. package/dist/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js.map +1 -0
  199. package/dist/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.es.js +37 -0
  200. package/dist/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.es.js.map +1 -0
  201. package/dist/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.es.js +17 -0
  202. package/dist/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.es.js.map +1 -0
  203. package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.es.js +19 -0
  204. package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.es.js.map +1 -0
  205. package/dist/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.es.js +69 -0
  206. package/dist/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.es.js.map +1 -0
  207. package/dist/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.es.js +7 -0
  208. package/dist/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.es.js.map +1 -0
  209. package/dist/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js +13 -0
  210. package/dist/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js.map +1 -0
  211. package/dist/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.es.js +24 -0
  212. package/dist/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.es.js.map +1 -0
  213. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.es.js +56 -0
  214. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.es.js.map +1 -0
  215. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.es.js +176 -0
  216. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.es.js.map +1 -0
  217. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.es.js +86 -0
  218. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.es.js.map +1 -0
  219. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.es.js +224 -0
  220. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.es.js.map +1 -0
  221. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.es.js +38 -0
  222. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.es.js.map +1 -0
  223. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.es.js +127 -0
  224. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.es.js.map +1 -0
  225. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.es.js +34 -0
  226. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.es.js.map +1 -0
  227. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.es.js +96 -0
  228. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.es.js.map +1 -0
  229. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.es.js +33 -0
  230. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.es.js.map +1 -0
  231. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.es.js +10 -0
  232. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.es.js.map +1 -0
  233. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.es.js +40 -0
  234. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.es.js.map +1 -0
  235. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js +55 -0
  236. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js.map +1 -0
  237. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js +55 -0
  238. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js.map +1 -0
  239. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js +53 -0
  240. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js.map +1 -0
  241. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js +330 -0
  242. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js.map +1 -0
  243. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +16 -0
  244. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js.map +1 -0
  245. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js +11 -0
  246. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js.map +1 -0
  247. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js +8 -0
  248. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js.map +1 -0
  249. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/index.es.js +13 -0
  250. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/index.es.js.map +1 -0
  251. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/aria.es.js +62 -0
  252. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/aria.es.js.map +1 -0
  253. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/find.es.js +34 -0
  254. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/find.es.js.map +1 -0
  255. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/hast-to-react.es.js +23 -0
  256. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/hast-to-react.es.js.map +1 -0
  257. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/html.es.js +369 -0
  258. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/html.es.js.map +1 -0
  259. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/normalize.es.js +7 -0
  260. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/normalize.es.js.map +1 -0
  261. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/svg.es.js +567 -0
  262. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/svg.es.js.map +1 -0
  263. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-insensitive-transform.es.js +8 -0
  264. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +1 -0
  265. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-sensitive-transform.es.js +7 -0
  266. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +1 -0
  267. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/create.es.js +20 -0
  268. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/create.es.js.map +1 -0
  269. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/defined-info.es.js +37 -0
  270. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/defined-info.es.js.map +1 -0
  271. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/info.es.js +29 -0
  272. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/info.es.js.map +1 -0
  273. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/merge.es.js +11 -0
  274. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/merge.es.js.map +1 -0
  275. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/schema.es.js +22 -0
  276. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/schema.es.js.map +1 -0
  277. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/types.es.js +15 -0
  278. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/types.es.js.map +1 -0
  279. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xlink.es.js +20 -0
  280. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xlink.es.js.map +1 -0
  281. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xml.es.js +12 -0
  282. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xml.es.js.map +1 -0
  283. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xmlns.es.js +12 -0
  284. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xmlns.es.js.map +1 -0
  285. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js +96 -0
  286. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js.map +1 -0
  287. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js +79 -0
  288. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js.map +1 -0
  289. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js +11 -0
  290. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js.map +1 -0
  291. package/dist/node_modules/.pnpm/react-markdown@10.1.0_@types_react@18.2.0_react@18.2.0/node_modules/react-markdown/lib/index.es.js +103 -0
  292. package/dist/node_modules/.pnpm/react-markdown@10.1.0_@types_react@18.2.0_react@18.2.0/node_modules/react-markdown/lib/index.es.js.map +1 -0
  293. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js +590 -0
  294. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -0
  295. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +29 -0
  296. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -0
  297. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.es.js +9 -0
  298. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.es.js.map +1 -0
  299. package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.es.js +20 -0
  300. package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.es.js.map +1 -0
  301. package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.es.js +19 -0
  302. package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.es.js.map +1 -0
  303. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.es.js +7 -0
  304. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.es.js.map +1 -0
  305. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +21 -0
  306. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js.map +1 -0
  307. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/utilities.es.js +17 -0
  308. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/utilities.es.js.map +1 -0
  309. package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +22 -0
  310. package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js.map +1 -0
  311. package/dist/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.es.js +29 -0
  312. package/dist/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.es.js.map +1 -0
  313. package/dist/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.es.js +61 -0
  314. package/dist/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.es.js.map +1 -0
  315. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.es.js +26 -0
  316. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.es.js.map +1 -0
  317. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js +530 -0
  318. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js.map +1 -0
  319. package/dist/node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js +85 -0
  320. package/dist/node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js.map +1 -0
  321. package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js +24 -0
  322. package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js.map +1 -0
  323. package/dist/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.es.js +16 -0
  324. package/dist/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.es.js.map +1 -0
  325. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.es.js +7 -0
  326. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -0
  327. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.es.js +57 -0
  328. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -0
  329. package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js +17 -0
  330. package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js.map +1 -0
  331. package/dist/node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.es.js +92 -0
  332. package/dist/node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.es.js.map +1 -0
  333. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.es.js +407 -0
  334. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.es.js.map +1 -0
  335. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.es.js +113 -0
  336. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.es.js.map +1 -0
  337. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.es.js +8 -0
  338. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.es.js.map +1 -0
  339. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.es.js +42 -0
  340. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.es.js.map +1 -0
  341. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.es.js +8 -0
  342. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.es.js.map +1 -0
  343. package/package.json +33 -0
@@ -0,0 +1,43 @@
1
+ function f(l, e, s) {
2
+ const n = l.all(e), a = s ? m(s) : o(e), r = {}, p = [];
3
+ if (typeof e.checked == "boolean") {
4
+ const t = n[0];
5
+ let i;
6
+ t && t.type === "element" && t.tagName === "p" ? i = t : (i = { type: "element", tagName: "p", properties: {}, children: [] }, n.unshift(i)), i.children.length > 0 && i.children.unshift({ type: "text", value: " " }), i.children.unshift({
7
+ type: "element",
8
+ tagName: "input",
9
+ properties: { type: "checkbox", checked: e.checked, disabled: !0 },
10
+ children: []
11
+ }), r.className = ["task-list-item"];
12
+ }
13
+ let c = -1;
14
+ for (; ++c < n.length; ) {
15
+ const t = n[c];
16
+ (a || c !== 0 || t.type !== "element" || t.tagName !== "p") && p.push({ type: "text", value: `
17
+ ` }), t.type === "element" && t.tagName === "p" && !a ? p.push(...t.children) : p.push(t);
18
+ }
19
+ const h = n[n.length - 1];
20
+ h && (a || h.type !== "element" || h.tagName !== "p") && p.push({ type: "text", value: `
21
+ ` });
22
+ const u = { type: "element", tagName: "li", properties: r, children: p };
23
+ return l.patch(e, u), l.applyData(e, u);
24
+ }
25
+ function m(l) {
26
+ let e = !1;
27
+ if (l.type === "list") {
28
+ e = l.spread || !1;
29
+ const s = l.children;
30
+ let n = -1;
31
+ for (; !e && ++n < s.length; )
32
+ e = o(s[n]);
33
+ }
34
+ return e;
35
+ }
36
+ function o(l) {
37
+ const e = l.spread;
38
+ return e ?? l.children.length > 1;
39
+ }
40
+ export {
41
+ f as listItem
42
+ };
43
+ //# sourceMappingURL=list-item.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array<ElementContent>} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: <https://github.com/sindresorhus/github-markdown-css>.\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === null || spread === undefined\n ? node.children.length > 1\n : spread\n}\n"],"names":["listItem","state","node","parent","results","loose","listLoose","listItemLoose","properties","children","head","paragraph","index","child","tail","result","spread"],"mappings":"AAwBO,SAASA,EAASC,GAAOC,GAAMC,GAAQ;AAC5C,QAAMC,IAAUH,EAAM,IAAIC,CAAI,GACxBG,IAAQF,IAASG,EAAUH,CAAM,IAAII,EAAcL,CAAI,GAEvDM,IAAa,CAAA,GAEbC,IAAW,CAAA;AAEjB,MAAI,OAAOP,EAAK,WAAY,WAAW;AACrC,UAAMQ,IAAON,EAAQ,CAAC;AAEtB,QAAIO;AAEJ,IAAID,KAAQA,EAAK,SAAS,aAAaA,EAAK,YAAY,MACtDC,IAAYD,KAEZC,IAAY,EAAC,MAAM,WAAW,SAAS,KAAK,YAAY,IAAI,UAAU,CAAE,EAAA,GACxEP,EAAQ,QAAQO,CAAS,IAGvBA,EAAU,SAAS,SAAS,KAC9BA,EAAU,SAAS,QAAQ,EAAC,MAAM,QAAQ,OAAO,IAAG,CAAC,GAGvDA,EAAU,SAAS,QAAQ;AAAA,MACzB,MAAM;AAAA,MACN,SAAS;AAAA,MACT,YAAY,EAAC,MAAM,YAAY,SAAST,EAAK,SAAS,UAAU,GAAI;AAAA,MACpE,UAAU,CAAA;AAAA,IACX,CAAA,GAIDM,EAAW,YAAY,CAAC,gBAAgB;AAAA,EAC5C;AAEE,MAAII,IAAQ;AAEZ,SAAO,EAAEA,IAAQR,EAAQ,UAAQ;AAC/B,UAAMS,IAAQT,EAAQQ,CAAK;AAG3B,KACEP,KACAO,MAAU,KACVC,EAAM,SAAS,aACfA,EAAM,YAAY,QAElBJ,EAAS,KAAK,EAAC,MAAM,QAAQ,OAAO;AAAA,EAAI,CAAC,GAGvCI,EAAM,SAAS,aAAaA,EAAM,YAAY,OAAO,CAACR,IACxDI,EAAS,KAAK,GAAGI,EAAM,QAAQ,IAE/BJ,EAAS,KAAKI,CAAK;AAAA,EAEzB;AAEE,QAAMC,IAAOV,EAAQA,EAAQ,SAAS,CAAC;AAGvC,EAAIU,MAAST,KAASS,EAAK,SAAS,aAAaA,EAAK,YAAY,QAChEL,EAAS,KAAK,EAAC,MAAM,QAAQ,OAAO;AAAA,EAAI,CAAC;AAI3C,QAAMM,IAAS,EAAC,MAAM,WAAW,SAAS,MAAM,YAAAP,GAAY,UAAAC,EAAQ;AACpE,SAAAR,EAAM,MAAMC,GAAMa,CAAM,GACjBd,EAAM,UAAUC,GAAMa,CAAM;AACrC;AAMA,SAAST,EAAUJ,GAAM;AACvB,MAAIG,IAAQ;AACZ,MAAIH,EAAK,SAAS,QAAQ;AACxB,IAAAG,IAAQH,EAAK,UAAU;AACvB,UAAMO,IAAWP,EAAK;AACtB,QAAIU,IAAQ;AAEZ,WAAO,CAACP,KAAS,EAAEO,IAAQH,EAAS;AAClC,MAAAJ,IAAQE,EAAcE,EAASG,CAAK,CAAC;AAAA,EAE3C;AAEE,SAAOP;AACT;AAMA,SAASE,EAAcL,GAAM;AAC3B,QAAMc,IAASd,EAAK;AAEpB,SAAOc,KACHd,EAAK,SAAS,SAAS;AAE7B;","x_google_ignoreList":[0]}
@@ -0,0 +1,22 @@
1
+ function p(r, t) {
2
+ const s = {}, a = r.all(t);
3
+ let l = -1;
4
+ for (typeof t.start == "number" && t.start !== 1 && (s.start = t.start); ++l < a.length; ) {
5
+ const e = a[l];
6
+ if (e.type === "element" && e.tagName === "li" && e.properties && Array.isArray(e.properties.className) && e.properties.className.includes("task-list-item")) {
7
+ s.className = ["contains-task-list"];
8
+ break;
9
+ }
10
+ }
11
+ const i = {
12
+ type: "element",
13
+ tagName: t.ordered ? "ol" : "ul",
14
+ properties: s,
15
+ children: r.wrap(a, !0)
16
+ };
17
+ return r.patch(t, i), r.applyData(t, i);
18
+ }
19
+ export {
20
+ p as list
21
+ };
22
+ //# sourceMappingURL=list.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').List} List\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {List} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function list(state, node) {\n /** @type {Properties} */\n const properties = {}\n const results = state.all(node)\n let index = -1\n\n if (typeof node.start === 'number' && node.start !== 1) {\n properties.start = node.start\n }\n\n // Like GitHub, add a class for custom styling.\n while (++index < results.length) {\n const child = results[index]\n\n if (\n child.type === 'element' &&\n child.tagName === 'li' &&\n child.properties &&\n Array.isArray(child.properties.className) &&\n child.properties.className.includes('task-list-item')\n ) {\n properties.className = ['contains-task-list']\n break\n }\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: node.ordered ? 'ol' : 'ul',\n properties,\n children: state.wrap(results, true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["list","state","node","properties","results","index","child","result"],"mappings":"AAoBO,SAASA,EAAKC,GAAOC,GAAM;AAEhC,QAAMC,IAAa,CAAA,GACbC,IAAUH,EAAM,IAAIC,CAAI;AAC9B,MAAIG,IAAQ;AAOZ,OALI,OAAOH,EAAK,SAAU,YAAYA,EAAK,UAAU,MACnDC,EAAW,QAAQD,EAAK,QAInB,EAAEG,IAAQD,EAAQ,UAAQ;AAC/B,UAAME,IAAQF,EAAQC,CAAK;AAE3B,QACEC,EAAM,SAAS,aACfA,EAAM,YAAY,QAClBA,EAAM,cACN,MAAM,QAAQA,EAAM,WAAW,SAAS,KACxCA,EAAM,WAAW,UAAU,SAAS,gBAAgB,GACpD;AACA,MAAAH,EAAW,YAAY,CAAC,oBAAoB;AAC5C;AAAA,IACN;AAAA,EACA;AAGE,QAAMI,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAASL,EAAK,UAAU,OAAO;AAAA,IAC/B,YAAAC;AAAA,IACA,UAAUF,EAAM,KAAKG,GAAS,EAAI;AAAA,EACtC;AACE,SAAAH,EAAM,MAAMC,GAAMK,CAAM,GACjBN,EAAM,UAAUC,GAAMK,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ function e(p, r) {
2
+ const a = {
3
+ type: "element",
4
+ tagName: "p",
5
+ properties: {},
6
+ children: p.all(r)
7
+ };
8
+ return p.patch(r, a), p.applyData(r, a);
9
+ }
10
+ export {
11
+ e as paragraph
12
+ };
13
+ //# sourceMappingURL=paragraph.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `paragraph` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Paragraph} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function paragraph(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'p',\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["paragraph","state","node","result"],"mappings":"AAmBO,SAASA,EAAUC,GAAOC,GAAM;AAErC,QAAMC,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAUF,EAAM,IAAIC,CAAI;AAAA,EAC5B;AACE,SAAAD,EAAM,MAAMC,GAAMC,CAAM,GACjBF,EAAM,UAAUC,GAAMC,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ function o(r, p) {
2
+ const l = { type: "root", children: r.wrap(r.all(p)) };
3
+ return r.patch(p, l), r.applyData(p, l);
4
+ }
5
+ export {
6
+ o as root
7
+ };
8
+ //# sourceMappingURL=root.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.js"],"sourcesContent":["/**\n * @typedef {import('hast').Parents} HastParents\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `root` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastRoot} node\n * mdast node.\n * @returns {HastParents}\n * hast node.\n */\nexport function root(state, node) {\n /** @type {HastRoot} */\n const result = {type: 'root', children: state.wrap(state.all(node))}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["root","state","node","result"],"mappings":"AAoBO,SAASA,EAAKC,GAAOC,GAAM;AAEhC,QAAMC,IAAS,EAAC,MAAM,QAAQ,UAAUF,EAAM,KAAKA,EAAM,IAAIC,CAAI,CAAC,EAAC;AACnE,SAAAD,EAAM,MAAMC,GAAMC,CAAM,GACjBF,EAAM,UAAUC,GAAMC,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ function p(r, t) {
2
+ const e = {
3
+ type: "element",
4
+ tagName: "strong",
5
+ properties: {},
6
+ children: r.all(t)
7
+ };
8
+ return r.patch(t, e), r.applyData(t, e);
9
+ }
10
+ export {
11
+ p as strong
12
+ };
13
+ //# sourceMappingURL=strong.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strong.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `strong` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Strong} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function strong(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'strong',\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["strong","state","node","result"],"mappings":"AAmBO,SAASA,EAAOC,GAAOC,GAAM;AAElC,QAAMC,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAUF,EAAM,IAAIC,CAAI;AAAA,EAC5B;AACE,SAAAD,EAAM,MAAMC,GAAMC,CAAM,GACjBF,EAAM,UAAUC,GAAMC,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ function p(e, l) {
2
+ const t = {
3
+ type: "element",
4
+ tagName: "td",
5
+ // Assume body cell.
6
+ properties: {},
7
+ children: e.all(l)
8
+ };
9
+ return e.patch(l, t), e.applyData(l, t);
10
+ }
11
+ export {
12
+ p as tableCell
13
+ };
14
+ //# sourceMappingURL=table-cell.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-cell.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `tableCell` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {TableCell} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function tableCell(state, node) {\n // Note: this function is normally not called: see `table-row` for how rows\n // and their cells are compiled.\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'td', // Assume body cell.\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["tableCell","state","node","result"],"mappings":"AAmBO,SAASA,EAAUC,GAAOC,GAAM;AAIrC,QAAMC,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAUF,EAAM,IAAIC,CAAI;AAAA,EAC5B;AACE,SAAAD,EAAM,MAAMC,GAAMC,CAAM,GACjBF,EAAM,UAAUC,GAAMC,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,22 @@
1
+ function f(e, l, n) {
2
+ const h = n ? n.children : void 0, p = (h ? h.indexOf(l) : 1) === 0 ? "th" : "td", c = n && n.type === "table" ? n.align : void 0, g = c ? c.length : l.children.length;
3
+ let r = -1;
4
+ const d = [];
5
+ for (; ++r < g; ) {
6
+ const i = l.children[r], s = {}, a = c ? c[r] : void 0;
7
+ a && (s.align = a);
8
+ let t = { type: "element", tagName: p, properties: s, children: [] };
9
+ i && (t.children = e.all(i), e.patch(i, t), t = e.applyData(i, t)), d.push(t);
10
+ }
11
+ const o = {
12
+ type: "element",
13
+ tagName: "tr",
14
+ properties: {},
15
+ children: e.wrap(d, !0)
16
+ };
17
+ return e.patch(l, o), e.applyData(l, o);
18
+ }
19
+ export {
20
+ f as tableRow
21
+ };
22
+ //# sourceMappingURL=table-row.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-row.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').TableRow} TableRow\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `tableRow` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {TableRow} node\n * mdast node.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function tableRow(state, node, parent) {\n const siblings = parent ? parent.children : undefined\n // Generate a body row when without parent.\n const rowIndex = siblings ? siblings.indexOf(node) : 1\n const tagName = rowIndex === 0 ? 'th' : 'td'\n // To do: option to use `style`?\n const align = parent && parent.type === 'table' ? parent.align : undefined\n const length = align ? align.length : node.children.length\n let cellIndex = -1\n /** @type {Array<ElementContent>} */\n const cells = []\n\n while (++cellIndex < length) {\n // Note: can also be undefined.\n const cell = node.children[cellIndex]\n /** @type {Properties} */\n const properties = {}\n const alignValue = align ? align[cellIndex] : undefined\n\n if (alignValue) {\n properties.align = alignValue\n }\n\n /** @type {Element} */\n let result = {type: 'element', tagName, properties, children: []}\n\n if (cell) {\n result.children = state.all(cell)\n state.patch(cell, result)\n result = state.applyData(cell, result)\n }\n\n cells.push(result)\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'tr',\n properties: {},\n children: state.wrap(cells, true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["tableRow","state","node","parent","siblings","tagName","align","length","cellIndex","cells","cell","properties","alignValue","result"],"mappings":"AAwBO,SAASA,EAASC,GAAOC,GAAMC,GAAQ;AAC5C,QAAMC,IAAWD,IAASA,EAAO,WAAW,QAGtCE,KADWD,IAAWA,EAAS,QAAQF,CAAI,IAAI,OACxB,IAAI,OAAO,MAElCI,IAAQH,KAAUA,EAAO,SAAS,UAAUA,EAAO,QAAQ,QAC3DI,IAASD,IAAQA,EAAM,SAASJ,EAAK,SAAS;AACpD,MAAIM,IAAY;AAEhB,QAAMC,IAAQ,CAAA;AAEd,SAAO,EAAED,IAAYD,KAAQ;AAE3B,UAAMG,IAAOR,EAAK,SAASM,CAAS,GAE9BG,IAAa,CAAA,GACbC,IAAaN,IAAQA,EAAME,CAAS,IAAI;AAE9C,IAAII,MACFD,EAAW,QAAQC;AAIrB,QAAIC,IAAS,EAAC,MAAM,WAAW,SAAAR,GAAS,YAAAM,GAAY,UAAU,CAAE,EAAA;AAEhE,IAAID,MACFG,EAAO,WAAWZ,EAAM,IAAIS,CAAI,GAChCT,EAAM,MAAMS,GAAMG,CAAM,GACxBA,IAASZ,EAAM,UAAUS,GAAMG,CAAM,IAGvCJ,EAAM,KAAKI,CAAM;AAAA,EACrB;AAGE,QAAMA,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAUZ,EAAM,KAAKQ,GAAO,EAAI;AAAA,EACpC;AACE,SAAAR,EAAM,MAAMC,GAAMW,CAAM,GACjBZ,EAAM,UAAUC,GAAMW,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,33 @@
1
+ import { pointStart as a, pointEnd as h } from "../../../../../unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js";
2
+ function m(t, e) {
3
+ const n = t.all(e), i = n.shift(), p = [];
4
+ if (i) {
5
+ const r = {
6
+ type: "element",
7
+ tagName: "thead",
8
+ properties: {},
9
+ children: t.wrap([i], !0)
10
+ };
11
+ t.patch(e.children[0], r), p.push(r);
12
+ }
13
+ if (n.length > 0) {
14
+ const r = {
15
+ type: "element",
16
+ tagName: "tbody",
17
+ properties: {},
18
+ children: t.wrap(n, !0)
19
+ }, c = a(e.children[1]), o = h(e.children[e.children.length - 1]);
20
+ c && o && (r.position = { start: c, end: o }), p.push(r);
21
+ }
22
+ const l = {
23
+ type: "element",
24
+ tagName: "table",
25
+ properties: {},
26
+ children: t.wrap(p, !0)
27
+ };
28
+ return t.patch(e, l), t.applyData(e, l);
29
+ }
30
+ export {
31
+ m as table
32
+ };
33
+ //# sourceMappingURL=table.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Table} Table\n * @typedef {import('../state.js').State} State\n */\n\nimport {pointEnd, pointStart} from 'unist-util-position'\n\n/**\n * Turn an mdast `table` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Table} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function table(state, node) {\n const rows = state.all(node)\n const firstRow = rows.shift()\n /** @type {Array<Element>} */\n const tableContent = []\n\n if (firstRow) {\n /** @type {Element} */\n const head = {\n type: 'element',\n tagName: 'thead',\n properties: {},\n children: state.wrap([firstRow], true)\n }\n state.patch(node.children[0], head)\n tableContent.push(head)\n }\n\n if (rows.length > 0) {\n /** @type {Element} */\n const body = {\n type: 'element',\n tagName: 'tbody',\n properties: {},\n children: state.wrap(rows, true)\n }\n\n const start = pointStart(node.children[1])\n const end = pointEnd(node.children[node.children.length - 1])\n if (start && end) body.position = {start, end}\n tableContent.push(body)\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'table',\n properties: {},\n children: state.wrap(tableContent, true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["table","state","node","rows","firstRow","tableContent","head","body","start","pointStart","end","pointEnd","result"],"mappings":";AAkBO,SAASA,EAAMC,GAAOC,GAAM;AACjC,QAAMC,IAAOF,EAAM,IAAIC,CAAI,GACrBE,IAAWD,EAAK,MAAK,GAErBE,IAAe,CAAA;AAErB,MAAID,GAAU;AAEZ,UAAME,IAAO;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,MACT,YAAY,CAAE;AAAA,MACd,UAAUL,EAAM,KAAK,CAACG,CAAQ,GAAG,EAAI;AAAA,IAC3C;AACI,IAAAH,EAAM,MAAMC,EAAK,SAAS,CAAC,GAAGI,CAAI,GAClCD,EAAa,KAAKC,CAAI;AAAA,EAC1B;AAEE,MAAIH,EAAK,SAAS,GAAG;AAEnB,UAAMI,IAAO;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,MACT,YAAY,CAAE;AAAA,MACd,UAAUN,EAAM,KAAKE,GAAM,EAAI;AAAA,IACrC,GAEUK,IAAQC,EAAWP,EAAK,SAAS,CAAC,CAAC,GACnCQ,IAAMC,EAAST,EAAK,SAASA,EAAK,SAAS,SAAS,CAAC,CAAC;AAC5D,IAAIM,KAASE,MAAKH,EAAK,WAAW,EAAC,OAAAC,GAAO,KAAAE,EAAG,IAC7CL,EAAa,KAAKE,CAAI;AAAA,EAC1B;AAGE,QAAMK,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAUX,EAAM,KAAKI,GAAc,EAAI;AAAA,EAC3C;AACE,SAAAJ,EAAM,MAAMC,GAAMU,CAAM,GACjBX,EAAM,UAAUC,GAAMU,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ import { trimLines as p } from "../../../../../trim-lines@3.0.1/node_modules/trim-lines/index.es.js";
2
+ function i(r, t) {
3
+ const e = { type: "text", value: p(String(t.value)) };
4
+ return r.patch(t, e), r.applyData(t, e);
5
+ }
6
+ export {
7
+ i as text
8
+ };
9
+ //# sourceMappingURL=text.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').Text} HastText\n * @typedef {import('mdast').Text} MdastText\n * @typedef {import('../state.js').State} State\n */\n\nimport {trimLines} from 'trim-lines'\n\n/**\n * Turn an mdast `text` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastText} node\n * mdast node.\n * @returns {HastElement | HastText}\n * hast node.\n */\nexport function text(state, node) {\n /** @type {HastText} */\n const result = {type: 'text', value: trimLines(String(node.value))}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["text","state","node","result","trimLines"],"mappings":";AAmBO,SAASA,EAAKC,GAAOC,GAAM;AAEhC,QAAMC,IAAS,EAAC,MAAM,QAAQ,OAAOC,EAAU,OAAOF,EAAK,KAAK,CAAC,EAAC;AAClE,SAAAD,EAAM,MAAMC,GAAMC,CAAM,GACjBF,EAAM,UAAUC,GAAMC,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ function a(e, t) {
2
+ const r = {
3
+ type: "element",
4
+ tagName: "hr",
5
+ properties: {},
6
+ children: []
7
+ };
8
+ return e.patch(t, r), e.applyData(t, r);
9
+ }
10
+ export {
11
+ a as thematicBreak
12
+ };
13
+ //# sourceMappingURL=thematic-break.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thematic-break.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ThematicBreak} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function thematicBreak(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'hr',\n properties: {},\n children: []\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["thematicBreak","state","node","result"],"mappings":"AAmBO,SAASA,EAAcC,GAAOC,GAAM;AAEzC,QAAMC,IAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAU,CAAA;AAAA,EACd;AACE,SAAAF,EAAM,MAAMC,GAAMC,CAAM,GACjBF,EAAM,UAAUC,GAAMC,CAAM;AACrC;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ import { footer as i } from "./footer.es.js";
2
+ import { createState as s } from "./state.es.js";
3
+ function p(o, c) {
4
+ const e = s(o, c), t = e.one(o, void 0), r = i(e), n = Array.isArray(t) ? { type: "root", children: t } : t || { type: "root", children: [] };
5
+ return r && n.children.push({ type: "text", value: `
6
+ ` }, r), n;
7
+ }
8
+ export {
9
+ p as toHast
10
+ };
11
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('./state.js').Options} Options\n */\n\nimport {ok as assert} from 'devlop'\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * * `hast-util-to-html` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful\n * if you completely trust authors\n * * `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only\n * way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=x></p>\n * <script>alert(x) // `x` now refers to the DOM `p#x` element</script>\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `<div>` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {HastNodes}\n * hast tree.\n */\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, undefined)\n const foot = footer(state)\n /** @type {HastNodes} */\n const result = Array.isArray(node)\n ? {type: 'root', children: node}\n : node || {type: 'root', children: []}\n\n if (foot) {\n // If there’s a footer, there were definitions, meaning block\n // content.\n // So `result` is a parent node.\n assert('children' in result)\n result.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n return result\n}\n"],"names":["toHast","tree","options","state","createState","node","foot","footer","result"],"mappings":";;AAuFO,SAASA,EAAOC,GAAMC,GAAS;AACpC,QAAMC,IAAQC,EAAYH,GAAMC,CAAO,GACjCG,IAAOF,EAAM,IAAIF,GAAM,MAAS,GAChCK,IAAOC,EAAOJ,CAAK,GAEnBK,IAAS,MAAM,QAAQH,CAAI,IAC7B,EAAC,MAAM,QAAQ,UAAUA,EAAI,IAC7BA,KAAQ,EAAC,MAAM,QAAQ,UAAU,CAAE,EAAA;AAEvC,SAAIC,KAKFE,EAAO,SAAS,KAAK,EAAC,MAAM,QAAQ,OAAO;AAAA,EAAI,GAAGF,CAAI,GAGjDE;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ function s(i, e) {
2
+ const f = e.referenceType;
3
+ let l = "]";
4
+ if (f === "collapsed" ? l += "[]" : f === "full" && (l += "[" + (e.label || e.identifier) + "]"), e.type === "imageReference")
5
+ return [{ type: "text", value: "![" + e.alt + l }];
6
+ const t = i.all(e), u = t[0];
7
+ u && u.type === "text" ? u.value = "[" + u.value : t.unshift({ type: "text", value: "[" });
8
+ const a = t[t.length - 1];
9
+ return a && a.type === "text" ? a.value += l : t.push({ type: "text", value: l }), t;
10
+ }
11
+ export {
12
+ s as revert
13
+ };
14
+ //# sourceMappingURL=revert.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revert.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.js"],"sourcesContent":["/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Reference} Reference\n *\n * @typedef {import('./state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {Extract<Nodes, Reference>} node\n * Reference node (image, link).\n * @returns {Array<ElementContent>}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return [{type: 'text', value: '![' + node.alt + suffix}]\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n"],"names":["revert","state","node","subtype","suffix","contents","head","tail"],"mappings":"AAsBO,SAASA,EAAOC,GAAOC,GAAM;AAClC,QAAMC,IAAUD,EAAK;AACrB,MAAIE,IAAS;AAQb,MANID,MAAY,cACdC,KAAU,OACDD,MAAY,WACrBC,KAAU,OAAOF,EAAK,SAASA,EAAK,cAAc,MAGhDA,EAAK,SAAS;AAChB,WAAO,CAAC,EAAC,MAAM,QAAQ,OAAO,OAAOA,EAAK,MAAME,EAAM,CAAC;AAGzD,QAAMC,IAAWJ,EAAM,IAAIC,CAAI,GACzBI,IAAOD,EAAS,CAAC;AAEvB,EAAIC,KAAQA,EAAK,SAAS,SACxBA,EAAK,QAAQ,MAAMA,EAAK,QAExBD,EAAS,QAAQ,EAAC,MAAM,QAAQ,OAAO,IAAG,CAAC;AAG7C,QAAME,IAAOF,EAASA,EAAS,SAAS,CAAC;AAEzC,SAAIE,KAAQA,EAAK,SAAS,SACxBA,EAAK,SAASH,IAEdC,EAAS,KAAK,EAAC,MAAM,QAAQ,OAAOD,EAAM,CAAC,GAGtCC;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,105 @@
1
+ import d from "../../../../@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js";
2
+ import { handlers as A } from "./handlers/index.es.js";
3
+ import { visit as C } from "../../../../unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js";
4
+ import { position as k } from "../../../../unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js";
5
+ const y = {}.hasOwnProperty, N = {};
6
+ function I(e, n) {
7
+ const t = n || N, r = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), f = { ...A, ...t.handlers }, l = {
8
+ all: v,
9
+ applyData: O,
10
+ definitionById: r,
11
+ footnoteById: p,
12
+ footnoteCounts: u,
13
+ footnoteOrder: [],
14
+ handlers: f,
15
+ one: g,
16
+ options: t,
17
+ patch: M,
18
+ wrap: S
19
+ };
20
+ return C(e, function(i) {
21
+ if (i.type === "definition" || i.type === "footnoteDefinition") {
22
+ const a = i.type === "definition" ? r : p, o = String(i.identifier).toUpperCase();
23
+ a.has(o) || a.set(o, i);
24
+ }
25
+ }), l;
26
+ function g(i, a) {
27
+ const o = i.type, c = l.handlers[o];
28
+ if (y.call(l.handlers, o) && c)
29
+ return c(l, i, a);
30
+ if (l.options.passThrough && l.options.passThrough.includes(o)) {
31
+ if ("children" in i) {
32
+ const { children: h, ...x } = i, m = d(x);
33
+ return m.children = l.all(i), m;
34
+ }
35
+ return d(i);
36
+ }
37
+ return (l.options.unknownHandler || P)(l, i, a);
38
+ }
39
+ function v(i) {
40
+ const a = [];
41
+ if ("children" in i) {
42
+ const o = i.children;
43
+ let c = -1;
44
+ for (; ++c < o.length; ) {
45
+ const s = l.one(o[c], i);
46
+ if (s) {
47
+ if (c && o[c - 1].type === "break" && (!Array.isArray(s) && s.type === "text" && (s.value = w(s.value)), !Array.isArray(s) && s.type === "element")) {
48
+ const h = s.children[0];
49
+ h && h.type === "text" && (h.value = w(h.value));
50
+ }
51
+ Array.isArray(s) ? a.push(...s) : a.push(s);
52
+ }
53
+ }
54
+ }
55
+ return a;
56
+ }
57
+ }
58
+ function M(e, n) {
59
+ e.position && (n.position = k(e));
60
+ }
61
+ function O(e, n) {
62
+ let t = n;
63
+ if (e && e.data) {
64
+ const r = e.data.hName, p = e.data.hChildren, u = e.data.hProperties;
65
+ if (typeof r == "string")
66
+ if (t.type === "element")
67
+ t.tagName = r;
68
+ else {
69
+ const f = "children" in t ? t.children : [t];
70
+ t = { type: "element", tagName: r, properties: {}, children: f };
71
+ }
72
+ t.type === "element" && u && Object.assign(t.properties, d(u)), "children" in t && t.children && p !== null && p !== void 0 && (t.children = p);
73
+ }
74
+ return t;
75
+ }
76
+ function P(e, n) {
77
+ const t = n.data || {}, r = "value" in n && !(y.call(t, "hProperties") || y.call(t, "hChildren")) ? { type: "text", value: n.value } : {
78
+ type: "element",
79
+ tagName: "div",
80
+ properties: {},
81
+ children: e.all(n)
82
+ };
83
+ return e.patch(n, r), e.applyData(n, r);
84
+ }
85
+ function S(e, n) {
86
+ const t = [];
87
+ let r = -1;
88
+ for (n && t.push({ type: "text", value: `
89
+ ` }); ++r < e.length; )
90
+ r && t.push({ type: "text", value: `
91
+ ` }), t.push(e[r]);
92
+ return n && e.length > 0 && t.push({ type: "text", value: `
93
+ ` }), t;
94
+ }
95
+ function w(e) {
96
+ let n = 0, t = e.charCodeAt(n);
97
+ for (; t === 9 || t === 32; )
98
+ n++, t = e.charCodeAt(n);
99
+ return e.slice(n);
100
+ }
101
+ export {
102
+ I as createState,
103
+ S as wrap
104
+ };
105
+ //# sourceMappingURL=state.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').RootContent} HastRootContent\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('mdast').Parents} MdastParents\n *\n * @typedef {import('vfile').VFile} VFile\n *\n * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate\n * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate\n */\n\n/**\n * @callback Handler\n * Handle a node.\n * @param {State} state\n * Info passed around.\n * @param {any} node\n * mdast node to handle.\n * @param {MdastParents | undefined} parent\n * Parent of `node`.\n * @returns {Array<HastElementContent> | HastElementContent | undefined}\n * hast node.\n *\n * @typedef {Partial<Record<MdastNodes['type'], Handler>>} Handlers\n * Handle nodes.\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Whether to persist raw HTML in markdown in the hast tree (default:\n * `false`).\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n * Prefix to use before the `id` property on footnotes to prevent them from\n * *clobbering* (default: `'user-content-'`).\n *\n * Pass `''` for trusted markdown and when you are careful with\n * polyfilling.\n * You could pass a different prefix.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=\"x\"></p>\n * <script>alert(x) // `x` now refers to the `p#x` DOM element</script>\n * ```\n *\n * The above example shows that elements are made available by browsers, by\n * their ID, on the `window` object.\n * This is a security risk because you might be expecting some other variable\n * at that place.\n * It can also break polyfills.\n * Using a prefix solves these problems.\n * @property {VFile | null | undefined} [file]\n * Corresponding virtual file representing the input document (optional).\n * @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]\n * Content of the backreference back to references (default: `defaultFootnoteBackContent`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackContent(_, rereferenceIndex) {\n * const result = [{type: 'text', value: '↩'}]\n *\n * if (rereferenceIndex > 1) {\n * result.push({\n * type: 'element',\n * tagName: 'sup',\n * properties: {},\n * children: [{type: 'text', value: String(rereferenceIndex)}]\n * })\n * }\n *\n * return result\n * }\n * ```\n *\n * This content is used in the `a` element of each backreference (the `↩`\n * links).\n * @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]\n * Label to describe the backreference back to references (default:\n * `defaultFootnoteBackLabel`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n * return (\n * 'Back to reference ' +\n * (referenceIndex + 1) +\n * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n * )\n * }\n * ```\n *\n * Change it when the markdown is not in English.\n *\n * This label is used in the `ariaLabel` property on each backreference\n * (the `↩` links).\n * It affects users of assistive technology.\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n * Textual label to use for the footnotes section (default: `'Footnotes'`).\n *\n * Change it when the markdown is not in English.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n * Properties to use on the footnote label (default: `{className:\n * ['sr-only']}`).\n *\n * Change it to show the label and add other properties.\n *\n * This label is typically hidden visually (assuming an `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass an empty string.\n * You can also add different properties.\n *\n * > **Note**: `id: 'footnote-label'` is always added, because footnote\n * > calls use it with `aria-describedby` to provide an accessible label.\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n * HTML tag name to use for the footnote label element (default: `'h2'`).\n *\n * Change it to match your document structure.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {Handlers | null | undefined} [handlers]\n * Extra handlers for nodes (optional).\n * @property {Array<MdastNodes['type']> | null | undefined} [passThrough]\n * List of custom mdast node types to pass through (keep) in hast (note that\n * the node itself is passed, but eventual children are transformed)\n * (optional).\n * @property {Handler | null | undefined} [unknownHandler]\n * Handler for all unknown nodes (optional).\n *\n * @typedef State\n * Info passed around.\n * @property {(node: MdastNodes) => Array<HastElementContent>} all\n * Transform the children of an mdast parent to hast.\n * @property {<Type extends HastNodes>(from: MdastNodes, to: Type) => HastElement | Type} applyData\n * Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {Map<string, MdastDefinition>} definitionById\n * Definitions by their identifier.\n * @property {Map<string, MdastFootnoteDefinition>} footnoteById\n * Footnote definitions by their identifier.\n * @property {Map<string, number>} footnoteCounts\n * Counts for how often the same footnote was called.\n * @property {Array<string>} footnoteOrder\n * Identifiers of order when footnote calls first appear in tree order.\n * @property {Handlers} handlers\n * Applied handlers.\n * @property {(node: MdastNodes, parent: MdastParents | undefined) => Array<HastElementContent> | HastElementContent | undefined} one\n * Transform an mdast node to hast.\n * @property {Options} options\n * Configuration.\n * @property {(from: MdastNodes, node: HastNodes) => undefined} patch\n * Copy a node’s positional info.\n * @property {<Type extends HastRootContent>(nodes: Array<Type>, loose?: boolean | undefined) => Array<HastText | Type>} wrap\n * Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {visit} from 'unist-util-visit'\nimport {position} from 'unist-util-position'\nimport {handlers as defaultHandlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n * mdast node to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {State}\n * `state` function.\n */\nexport function createState(tree, options) {\n const settings = options || emptyOptions\n /** @type {Map<string, MdastDefinition>} */\n const definitionById = new Map()\n /** @type {Map<string, MdastFootnoteDefinition>} */\n const footnoteById = new Map()\n /** @type {Map<string, number>} */\n const footnoteCounts = new Map()\n /** @type {Handlers} */\n // @ts-expect-error: the root handler returns a root.\n // Hard to type.\n const handlers = {...defaultHandlers, ...settings.handlers}\n\n /** @type {State} */\n const state = {\n all,\n applyData,\n definitionById,\n footnoteById,\n footnoteCounts,\n footnoteOrder: [],\n handlers,\n one,\n options: settings,\n patch,\n wrap\n }\n\n visit(tree, function (node) {\n if (node.type === 'definition' || node.type === 'footnoteDefinition') {\n const map = node.type === 'definition' ? definitionById : footnoteById\n const id = String(node.identifier).toUpperCase()\n\n // Mimick CM behavior of link definitions.\n // See: <https://github.com/syntax-tree/mdast-util-definitions/blob/9032189/lib/index.js#L20-L21>.\n if (!map.has(id)) {\n // @ts-expect-error: node type matches map.\n map.set(id, node)\n }\n }\n })\n\n return state\n\n /**\n * Transform an mdast node into a hast node.\n *\n * @param {MdastNodes} node\n * mdast node.\n * @param {MdastParents | undefined} [parent]\n * Parent of `node`.\n * @returns {Array<HastElementContent> | HastElementContent | undefined}\n * Resulting hast node.\n */\n function one(node, parent) {\n const type = node.type\n const handle = state.handlers[type]\n\n if (own.call(state.handlers, type) && handle) {\n return handle(state, node, parent)\n }\n\n if (state.options.passThrough && state.options.passThrough.includes(type)) {\n if ('children' in node) {\n const {children, ...shallow} = node\n const result = structuredClone(shallow)\n // @ts-expect-error: TS doesn’t understand…\n result.children = state.all(node)\n // @ts-expect-error: TS doesn’t understand…\n return result\n }\n\n // @ts-expect-error: it’s custom.\n return structuredClone(node)\n }\n\n const unknown = state.options.unknownHandler || defaultUnknownHandler\n\n return unknown(state, node, parent)\n }\n\n /**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {MdastNodes} parent\n * mdast node to compile\n * @returns {Array<HastElementContent>}\n * Resulting hast nodes.\n */\n function all(parent) {\n /** @type {Array<HastElementContent>} */\n const values = []\n\n if ('children' in parent) {\n const nodes = parent.children\n let index = -1\n while (++index < nodes.length) {\n const result = state.one(nodes[index], parent)\n\n // To do: see if we van clean this? Can we merge texts?\n if (result) {\n if (index && nodes[index - 1].type === 'break') {\n if (!Array.isArray(result) && result.type === 'text') {\n result.value = trimMarkdownSpaceStart(result.value)\n }\n\n if (!Array.isArray(result) && result.type === 'element') {\n const head = result.children[0]\n\n if (head && head.type === 'text') {\n head.value = trimMarkdownSpaceStart(head.value)\n }\n }\n }\n\n if (Array.isArray(result)) {\n values.push(...result)\n } else {\n values.push(result)\n }\n }\n }\n }\n\n return values\n }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n * mdast node to copy from.\n * @param {HastNodes} to\n * hast node to copy into.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n * Node type.\n * @param {MdastNodes} from\n * mdast node to use data from.\n * @param {Type} to\n * hast node to change.\n * @returns {HastElement | Type}\n * Nothing.\n */\nfunction applyData(from, to) {\n /** @type {HastElement | Type} */\n let result = to\n\n // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n if (from && from.data) {\n const hName = from.data.hName\n const hChildren = from.data.hChildren\n const hProperties = from.data.hProperties\n\n if (typeof hName === 'string') {\n // Transforming the node resulted in an element with a different name\n // than wanted:\n if (result.type === 'element') {\n result.tagName = hName\n }\n // Transforming the node resulted in a non-element, which happens for\n // raw, text, and root nodes (unless custom handlers are passed).\n // The intent of `hName` is to create an element, but likely also to keep\n // the content around (otherwise: pass `hChildren`).\n else {\n /** @type {Array<HastElementContent>} */\n // @ts-expect-error: assume no doctypes in `root`.\n const children = 'children' in result ? result.children : [result]\n result = {type: 'element', tagName: hName, properties: {}, children}\n }\n }\n\n if (result.type === 'element' && hProperties) {\n Object.assign(result.properties, structuredClone(hProperties))\n }\n\n if (\n 'children' in result &&\n result.children &&\n hChildren !== null &&\n hChildren !== undefined\n ) {\n result.children = hChildren\n }\n }\n\n return result\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastNodes} node\n * Unknown mdast node.\n * @returns {HastElement | HastText}\n * Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n const data = node.data || {}\n /** @type {HastElement | HastText} */\n const result =\n 'value' in node &&\n !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n ? {type: 'text', value: node.value}\n : {\n type: 'element',\n tagName: 'div',\n properties: {},\n children: state.all(node)\n }\n\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastRootContent} Type\n * Node type.\n * @param {Array<Type>} nodes\n * List of nodes to wrap.\n * @param {boolean | undefined} [loose=false]\n * Whether to add line endings at start and end (default: `false`).\n * @returns {Array<HastText | Type>}\n * Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n /** @type {Array<HastText | Type>} */\n const result = []\n let index = -1\n\n if (loose) {\n result.push({type: 'text', value: '\\n'})\n }\n\n while (++index < nodes.length) {\n if (index) result.push({type: 'text', value: '\\n'})\n result.push(nodes[index])\n }\n\n if (loose && nodes.length > 0) {\n result.push({type: 'text', value: '\\n'})\n }\n\n return result\n}\n\n/**\n * Trim spaces and tabs at the start of `value`.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Result.\n */\nfunction trimMarkdownSpaceStart(value) {\n let index = 0\n let code = value.charCodeAt(index)\n\n while (code === 9 || code === 32) {\n index++\n code = value.charCodeAt(index)\n }\n\n return value.slice(index)\n}\n"],"names":["own","emptyOptions","createState","tree","options","settings","definitionById","footnoteById","footnoteCounts","handlers","defaultHandlers","state","all","applyData","one","patch","wrap","visit","node","map","id","parent","type","handle","children","shallow","result","structuredClone","defaultUnknownHandler","values","nodes","index","trimMarkdownSpaceStart","head","from","to","position","hName","hChildren","hProperties","data","loose","value","code"],"mappings":";;;;AAmLA,MAAMA,IAAM,CAAA,EAAG,gBAGTC,IAAe,CAAA;AAYd,SAASC,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAWD,KAAWH,GAEtBK,IAAiB,oBAAI,IAAG,GAExBC,IAAe,oBAAI,IAAG,GAEtBC,IAAiB,oBAAI,IAAG,GAIxBC,IAAW,EAAC,GAAGC,GAAiB,GAAGL,EAAS,SAAQ,GAGpDM,IAAQ;AAAA,IACZ,KAAAC;AAAA,IACA,WAAAC;AAAA,IACA,gBAAAP;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAe,CAAE;AAAA,IACrB,UAAIC;AAAAA,IACA,KAAAK;AAAA,IACA,SAAST;AAAA,IACT,OAAAU;AAAA,IACA,MAAAC;AAAA,EACJ;AAEE,SAAAC,EAAMd,GAAM,SAAUe,GAAM;AAC1B,QAAIA,EAAK,SAAS,gBAAgBA,EAAK,SAAS,sBAAsB;AACpE,YAAMC,IAAMD,EAAK,SAAS,eAAeZ,IAAiBC,GACpDa,IAAK,OAAOF,EAAK,UAAU,EAAE,YAAW;AAI9C,MAAKC,EAAI,IAAIC,CAAE,KAEbD,EAAI,IAAIC,GAAIF,CAAI;AAAA,IAExB;AAAA,EACG,CAAA,GAEMP;AAYP,WAASG,EAAII,GAAMG,GAAQ;AACzB,UAAMC,IAAOJ,EAAK,MACZK,IAASZ,EAAM,SAASW,CAAI;AAElC,QAAItB,EAAI,KAAKW,EAAM,UAAUW,CAAI,KAAKC;AACpC,aAAOA,EAAOZ,GAAOO,GAAMG,CAAM;AAGnC,QAAIV,EAAM,QAAQ,eAAeA,EAAM,QAAQ,YAAY,SAASW,CAAI,GAAG;AACzE,UAAI,cAAcJ,GAAM;AACtB,cAAM,EAAC,UAAAM,GAAU,GAAGC,EAAO,IAAIP,GACzBQ,IAASC,EAAgBF,CAAO;AAEtC,eAAAC,EAAO,WAAWf,EAAM,IAAIO,CAAI,GAEzBQ;AAAA,MACf;AAGM,aAAOC,EAAgBT,CAAI;AAAA,IACjC;AAII,YAFgBP,EAAM,QAAQ,kBAAkBiB,GAEjCjB,GAAOO,GAAMG,CAAM;AAAA,EACtC;AAUE,WAAST,EAAIS,GAAQ;AAEnB,UAAMQ,IAAS,CAAA;AAEf,QAAI,cAAcR,GAAQ;AACxB,YAAMS,IAAQT,EAAO;AACrB,UAAIU,IAAQ;AACZ,aAAO,EAAEA,IAAQD,EAAM,UAAQ;AAC7B,cAAMJ,IAASf,EAAM,IAAImB,EAAMC,CAAK,GAAGV,CAAM;AAG7C,YAAIK,GAAQ;AACV,cAAIK,KAASD,EAAMC,IAAQ,CAAC,EAAE,SAAS,YACjC,CAAC,MAAM,QAAQL,CAAM,KAAKA,EAAO,SAAS,WAC5CA,EAAO,QAAQM,EAAuBN,EAAO,KAAK,IAGhD,CAAC,MAAM,QAAQA,CAAM,KAAKA,EAAO,SAAS,YAAW;AACvD,kBAAMO,IAAOP,EAAO,SAAS,CAAC;AAE9B,YAAIO,KAAQA,EAAK,SAAS,WACxBA,EAAK,QAAQD,EAAuBC,EAAK,KAAK;AAAA,UAE9D;AAGU,UAAI,MAAM,QAAQP,CAAM,IACtBG,EAAO,KAAK,GAAGH,CAAM,IAErBG,EAAO,KAAKH,CAAM;AAAA,QAE9B;AAAA,MACA;AAAA,IACA;AAEI,WAAOG;AAAA,EACX;AACA;AAYA,SAASd,EAAMmB,GAAMC,GAAI;AACvB,EAAID,EAAK,aAAUC,EAAG,WAAWC,EAASF,CAAI;AAChD;AAcA,SAASrB,EAAUqB,GAAMC,GAAI;AAE3B,MAAIT,IAASS;AAGb,MAAID,KAAQA,EAAK,MAAM;AACrB,UAAMG,IAAQH,EAAK,KAAK,OAClBI,IAAYJ,EAAK,KAAK,WACtBK,IAAcL,EAAK,KAAK;AAE9B,QAAI,OAAOG,KAAU;AAGnB,UAAIX,EAAO,SAAS;AAClB,QAAAA,EAAO,UAAUW;AAAA,WAMd;AAGH,cAAMb,IAAW,cAAcE,IAASA,EAAO,WAAW,CAACA,CAAM;AACjE,QAAAA,IAAS,EAAC,MAAM,WAAW,SAASW,GAAO,YAAY,CAAA,GAAI,UAAAb,EAAQ;AAAA,MAC3E;AAGI,IAAIE,EAAO,SAAS,aAAaa,KAC/B,OAAO,OAAOb,EAAO,YAAYC,EAAgBY,CAAW,CAAC,GAI7D,cAAcb,KACdA,EAAO,YACPY,MAAc,QACdA,MAAc,WAEdZ,EAAO,WAAWY;AAAA,EAExB;AAEE,SAAOZ;AACT;AAYA,SAASE,EAAsBjB,GAAOO,GAAM;AAC1C,QAAMsB,IAAOtB,EAAK,QAAQ,CAAA,GAEpBQ,IACJ,WAAWR,KACX,EAAElB,EAAI,KAAKwC,GAAM,aAAa,KAAKxC,EAAI,KAAKwC,GAAM,WAAW,KACzD,EAAC,MAAM,QAAQ,OAAOtB,EAAK,MAAK,IAChC;AAAA,IACE,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAUP,EAAM,IAAIO,CAAI;AAAA,EAClC;AAEE,SAAAP,EAAM,MAAMO,GAAMQ,CAAM,GACjBf,EAAM,UAAUO,GAAMQ,CAAM;AACrC;AAcO,SAASV,EAAKc,GAAOW,GAAO;AAEjC,QAAMf,IAAS,CAAA;AACf,MAAIK,IAAQ;AAMZ,OAJIU,KACFf,EAAO,KAAK,EAAC,MAAM,QAAQ,OAAO;AAAA,EAAI,CAAC,GAGlC,EAAEK,IAAQD,EAAM;AACrB,IAAIC,KAAOL,EAAO,KAAK,EAAC,MAAM,QAAQ,OAAO;AAAA,EAAI,CAAC,GAClDA,EAAO,KAAKI,EAAMC,CAAK,CAAC;AAG1B,SAAIU,KAASX,EAAM,SAAS,KAC1BJ,EAAO,KAAK,EAAC,MAAM,QAAQ,OAAO;AAAA,EAAI,CAAC,GAGlCA;AACT;AAUA,SAASM,EAAuBU,GAAO;AACrC,MAAIX,IAAQ,GACRY,IAAOD,EAAM,WAAWX,CAAK;AAEjC,SAAOY,MAAS,KAAKA,MAAS;AAC5B,IAAAZ,KACAY,IAAOD,EAAM,WAAWX,CAAK;AAG/B,SAAOW,EAAM,MAAMX,CAAK;AAC1B;","x_google_ignoreList":[0]}
@@ -0,0 +1,30 @@
1
+ const f = {};
2
+ function l(t, o) {
3
+ const n = f, i = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, r = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
4
+ return c(t, i, r);
5
+ }
6
+ function c(t, o, n) {
7
+ if (s(t)) {
8
+ if ("value" in t)
9
+ return t.type === "html" && !n ? "" : t.value;
10
+ if (o && "alt" in t && t.alt)
11
+ return t.alt;
12
+ if ("children" in t)
13
+ return e(t.children, o, n);
14
+ }
15
+ return Array.isArray(t) ? e(t, o, n) : "";
16
+ }
17
+ function e(t, o, n) {
18
+ const i = [];
19
+ let r = -1;
20
+ for (; ++r < t.length; )
21
+ i[r] = c(t[r], o, n);
22
+ return i.join("");
23
+ }
24
+ function s(t) {
25
+ return !!(t && typeof t == "object");
26
+ }
27
+ export {
28
+ l as toString
29
+ };
30
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Nodes} Nodes\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [includeImageAlt=true]\n * Whether to use `alt` for `image`s (default: `true`).\n * @property {boolean | null | undefined} [includeHtml=true]\n * Whether to use `value` of HTML (default: `true`).\n */\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Get the text content of a node or list of nodes.\n *\n * Prefers the node’s plain-text fields, otherwise serializes its children,\n * and if the given value is an array, serialize the nodes in it.\n *\n * @param {unknown} [value]\n * Thing to serialize, typically `Node`.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized `value`.\n */\nexport function toString(value, options) {\n const settings = options || emptyOptions\n const includeImageAlt =\n typeof settings.includeImageAlt === 'boolean'\n ? settings.includeImageAlt\n : true\n const includeHtml =\n typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true\n\n return one(value, includeImageAlt, includeHtml)\n}\n\n/**\n * One node or several nodes.\n *\n * @param {unknown} value\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized node.\n */\nfunction one(value, includeImageAlt, includeHtml) {\n if (node(value)) {\n if ('value' in value) {\n return value.type === 'html' && !includeHtml ? '' : value.value\n }\n\n if (includeImageAlt && 'alt' in value && value.alt) {\n return value.alt\n }\n\n if ('children' in value) {\n return all(value.children, includeImageAlt, includeHtml)\n }\n }\n\n if (Array.isArray(value)) {\n return all(value, includeImageAlt, includeHtml)\n }\n\n return ''\n}\n\n/**\n * Serialize a list of nodes.\n *\n * @param {Array<unknown>} values\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized nodes.\n */\nfunction all(values, includeImageAlt, includeHtml) {\n /** @type {Array<string>} */\n const result = []\n let index = -1\n\n while (++index < values.length) {\n result[index] = one(values[index], includeImageAlt, includeHtml)\n }\n\n return result.join('')\n}\n\n/**\n * Check if `value` looks like a node.\n *\n * @param {unknown} value\n * Thing.\n * @returns {value is Nodes}\n * Whether `value` is a node.\n */\nfunction node(value) {\n return Boolean(value && typeof value === 'object')\n}\n"],"names":["emptyOptions","toString","value","options","settings","includeImageAlt","includeHtml","one","node","all","values","result","index"],"mappings":"AAYA,MAAMA,IAAe,CAAA;AAed,SAASC,EAASC,GAAOC,GAAS;AACvC,QAAMC,IAAsBJ,GACtBK,IACJ,OAAOD,EAAS,mBAAoB,YAChCA,EAAS,kBACT,IACAE,IACJ,OAAOF,EAAS,eAAgB,YAAYA,EAAS,cAAc;AAErE,SAAOG,EAAIL,GAAOG,GAAiBC,CAAW;AAChD;AAcA,SAASC,EAAIL,GAAOG,GAAiBC,GAAa;AAChD,MAAIE,EAAKN,CAAK,GAAG;AACf,QAAI,WAAWA;AACb,aAAOA,EAAM,SAAS,UAAU,CAACI,IAAc,KAAKJ,EAAM;AAG5D,QAAIG,KAAmB,SAASH,KAASA,EAAM;AAC7C,aAAOA,EAAM;AAGf,QAAI,cAAcA;AAChB,aAAOO,EAAIP,EAAM,UAAUG,GAAiBC,CAAW;AAAA,EAE7D;AAEE,SAAI,MAAM,QAAQJ,CAAK,IACdO,EAAIP,GAAOG,GAAiBC,CAAW,IAGzC;AACT;AAcA,SAASG,EAAIC,GAAQL,GAAiBC,GAAa;AAEjD,QAAMK,IAAS,CAAA;AACf,MAAIC,IAAQ;AAEZ,SAAO,EAAEA,IAAQF,EAAO;AACtB,IAAAC,EAAOC,CAAK,IAAIL,EAAIG,EAAOE,CAAK,GAAGP,GAAiBC,CAAW;AAGjE,SAAOK,EAAO,KAAK,EAAE;AACvB;AAUA,SAASH,EAAKN,GAAO;AACnB,SAAO,GAAQA,KAAS,OAAOA,KAAU;AAC3C;","x_google_ignoreList":[0]}
@@ -0,0 +1,84 @@
1
+ import { push as d, splice as S } from "../../../../micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js";
2
+ import { classifyCharacter as h } from "../../../../micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js";
3
+ import { resolveAll as q } from "../../../../micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js";
4
+ const z = {
5
+ name: "attention",
6
+ resolveAll: g,
7
+ tokenize: y
8
+ };
9
+ function g(t, i) {
10
+ let e = -1, r, a, l, u, s, n, o, f;
11
+ for (; ++e < t.length; )
12
+ if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
13
+ for (r = e; r--; )
14
+ if (t[r][0] === "exit" && t[r][1].type === "attentionSequence" && t[r][1]._open && // If the markers are the same:
15
+ i.sliceSerialize(t[r][1]).charCodeAt(0) === i.sliceSerialize(t[e][1]).charCodeAt(0)) {
16
+ if ((t[r][1]._close || t[e][1]._open) && (t[e][1].end.offset - t[e][1].start.offset) % 3 && !((t[r][1].end.offset - t[r][1].start.offset + t[e][1].end.offset - t[e][1].start.offset) % 3))
17
+ continue;
18
+ n = t[r][1].end.offset - t[r][1].start.offset > 1 && t[e][1].end.offset - t[e][1].start.offset > 1 ? 2 : 1;
19
+ const p = {
20
+ ...t[r][1].end
21
+ }, c = {
22
+ ...t[e][1].start
23
+ };
24
+ m(p, -n), m(c, n), u = {
25
+ type: n > 1 ? "strongSequence" : "emphasisSequence",
26
+ start: p,
27
+ end: {
28
+ ...t[r][1].end
29
+ }
30
+ }, s = {
31
+ type: n > 1 ? "strongSequence" : "emphasisSequence",
32
+ start: {
33
+ ...t[e][1].start
34
+ },
35
+ end: c
36
+ }, l = {
37
+ type: n > 1 ? "strongText" : "emphasisText",
38
+ start: {
39
+ ...t[r][1].end
40
+ },
41
+ end: {
42
+ ...t[e][1].start
43
+ }
44
+ }, a = {
45
+ type: n > 1 ? "strong" : "emphasis",
46
+ start: {
47
+ ...u.start
48
+ },
49
+ end: {
50
+ ...s.end
51
+ }
52
+ }, t[r][1].end = {
53
+ ...u.start
54
+ }, t[e][1].start = {
55
+ ...s.end
56
+ }, o = [], t[r][1].end.offset - t[r][1].start.offset && (o = d(o, [["enter", t[r][1], i], ["exit", t[r][1], i]])), o = d(o, [["enter", a, i], ["enter", u, i], ["exit", u, i], ["enter", l, i]]), o = d(o, q(i.parser.constructs.insideSpan.null, t.slice(r + 1, e), i)), o = d(o, [["exit", l, i], ["enter", s, i], ["exit", s, i], ["exit", a, i]]), t[e][1].end.offset - t[e][1].start.offset ? (f = 2, o = d(o, [["enter", t[e][1], i], ["exit", t[e][1], i]])) : f = 0, S(t, r - 1, e - r + 3, o), e = r + o.length - f - 2;
57
+ break;
58
+ }
59
+ }
60
+ for (e = -1; ++e < t.length; )
61
+ t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
62
+ return t;
63
+ }
64
+ function y(t, i) {
65
+ const e = this.parser.constructs.attentionMarkers.null, r = this.previous, a = h(r);
66
+ let l;
67
+ return u;
68
+ function u(n) {
69
+ return l = n, t.enter("attentionSequence"), s(n);
70
+ }
71
+ function s(n) {
72
+ if (n === l)
73
+ return t.consume(n), s;
74
+ const o = t.exit("attentionSequence"), f = h(n), p = !f || f === 2 && a || e.includes(n), c = !a || a === 2 && f || e.includes(r);
75
+ return o._open = !!(l === 42 ? p : p && (a || !c)), o._close = !!(l === 42 ? c : c && (f || !p)), i(n);
76
+ }
77
+ }
78
+ function m(t, i) {
79
+ t.column += i, t.offset += i, t._bufferIndex += i;
80
+ }
81
+ export {
82
+ z as attention
83
+ };
84
+ //# sourceMappingURL=attention.es.js.map