@e-llm-studio/instant-learning 0.0.104 → 0.0.105

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 (461) hide show
  1. package/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
  2. package/dist/cjs/features/IL-OTJ/_components/ChatComponent.js +1 -1
  3. package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
  4. package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js +1 -1
  5. package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
  6. package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +2 -0
  7. package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js.map +1 -0
  8. package/dist/cjs/features/IL-OTJ/_components/MessageRendering.js +1 -1
  9. package/dist/cjs/features/IL-OTJ/_components/MinimizedThinkingSteps.js +1 -1
  10. package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
  11. package/dist/cjs/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
  12. package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
  13. package/dist/cjs/node_modules/@e-llm-studio/citation/dist/features/Bookemon/Bookemon.js.map +1 -1
  14. package/dist/cjs/node_modules/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
  15. package/dist/cjs/node_modules/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  16. package/dist/cjs/node_modules/mdast-util-find-and-replace/lib/index.js +1 -1
  17. package/dist/cjs/node_modules/mdast-util-find-and-replace/lib/index.js.map +1 -1
  18. package/dist/cjs/node_modules/mdast-util-find-and-replace/node_modules/unist-util-is/lib/index.js +2 -0
  19. package/dist/cjs/node_modules/mdast-util-find-and-replace/node_modules/unist-util-is/lib/index.js.map +1 -0
  20. package/dist/cjs/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/color.browser.js +2 -0
  21. package/dist/cjs/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/color.browser.js.map +1 -0
  22. package/dist/cjs/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/index.js +2 -0
  23. package/dist/cjs/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  24. package/dist/cjs/node_modules/mdast-util-from-markdown/lib/index.js +2 -0
  25. package/dist/cjs/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  26. package/dist/cjs/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js +2 -0
  27. package/dist/cjs/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  28. package/dist/cjs/node_modules/mdast-util-gfm/lib/index.js +1 -1
  29. package/dist/cjs/node_modules/mdast-util-gfm/lib/index.js.map +1 -1
  30. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +1 -1
  31. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -1
  32. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/index.js +2 -0
  33. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/index.js.map +1 -0
  34. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +2 -0
  35. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +1 -0
  36. package/dist/cjs/node_modules/mdast-util-gfm-footnote/lib/index.js +1 -1
  37. package/dist/cjs/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -1
  38. package/dist/cjs/node_modules/mdast-util-gfm-strikethrough/lib/index.js +1 -1
  39. package/dist/cjs/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -1
  40. package/dist/cjs/node_modules/mdast-util-gfm-table/lib/index.js +1 -1
  41. package/dist/cjs/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -1
  42. package/dist/cjs/node_modules/mdast-util-gfm-task-list-item/lib/index.js +1 -1
  43. package/dist/cjs/node_modules/mdast-util-gfm-task-list-item/lib/index.js.map +1 -1
  44. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +1 -1
  45. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -1
  46. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -1
  47. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/association.js +2 -0
  48. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/association.js.map +1 -0
  49. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -1
  50. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +1 -1
  51. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -1
  52. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +2 -0
  53. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/container-flow.js.map +1 -0
  54. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +2 -0
  55. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js.map +1 -0
  56. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +2 -0
  57. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js.map +1 -0
  58. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js +2 -0
  59. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js.map +1 -0
  60. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -1
  61. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/safe.js +2 -0
  62. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/safe.js.map +1 -0
  63. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/track.js +2 -0
  64. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/track.js.map +1 -0
  65. package/dist/cjs/node_modules/mdast-util-to-string/lib/index.js.map +1 -1
  66. package/dist/cjs/node_modules/micromark/lib/constructs.js +2 -0
  67. package/dist/cjs/node_modules/micromark/lib/constructs.js.map +1 -0
  68. package/dist/cjs/node_modules/micromark/lib/create-tokenizer.js +2 -0
  69. package/dist/cjs/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  70. package/dist/cjs/node_modules/micromark/lib/initialize/content.js +2 -0
  71. package/dist/cjs/node_modules/micromark/lib/initialize/content.js.map +1 -0
  72. package/dist/cjs/node_modules/micromark/lib/initialize/document.js +2 -0
  73. package/dist/cjs/node_modules/micromark/lib/initialize/document.js.map +1 -0
  74. package/dist/cjs/node_modules/micromark/lib/initialize/flow.js +2 -0
  75. package/dist/cjs/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  76. package/dist/cjs/node_modules/micromark/lib/initialize/text.js +2 -0
  77. package/dist/cjs/node_modules/micromark/lib/initialize/text.js.map +1 -0
  78. package/dist/cjs/node_modules/micromark/lib/parse.js +2 -0
  79. package/dist/cjs/node_modules/micromark/lib/parse.js.map +1 -0
  80. package/dist/cjs/node_modules/micromark/lib/postprocess.js +2 -0
  81. package/dist/cjs/node_modules/micromark/lib/postprocess.js.map +1 -0
  82. package/dist/cjs/node_modules/micromark/lib/preprocess.js +2 -0
  83. package/dist/cjs/node_modules/micromark/lib/preprocess.js.map +1 -0
  84. package/dist/cjs/node_modules/micromark/node_modules/micromark-util-character/index.js +2 -0
  85. package/dist/cjs/node_modules/micromark/node_modules/micromark-util-character/index.js.map +1 -0
  86. package/dist/cjs/node_modules/micromark-core-commonmark/lib/attention.js +2 -0
  87. package/dist/cjs/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  88. package/dist/cjs/node_modules/micromark-core-commonmark/lib/autolink.js +2 -0
  89. package/dist/cjs/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  90. package/dist/cjs/node_modules/micromark-core-commonmark/lib/blank-line.js +1 -1
  91. package/dist/cjs/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -1
  92. package/dist/cjs/node_modules/micromark-core-commonmark/lib/block-quote.js +2 -0
  93. package/dist/cjs/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  94. package/dist/cjs/node_modules/micromark-core-commonmark/lib/character-escape.js +2 -0
  95. package/dist/cjs/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  96. package/dist/cjs/node_modules/micromark-core-commonmark/lib/character-reference.js +2 -0
  97. package/dist/cjs/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  98. package/dist/cjs/node_modules/micromark-core-commonmark/lib/code-fenced.js +2 -0
  99. package/dist/cjs/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  100. package/dist/cjs/node_modules/micromark-core-commonmark/lib/code-indented.js +2 -0
  101. package/dist/cjs/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  102. package/dist/cjs/node_modules/micromark-core-commonmark/lib/code-text.js +2 -0
  103. package/dist/cjs/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  104. package/dist/cjs/node_modules/micromark-core-commonmark/lib/content.js +2 -0
  105. package/dist/cjs/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  106. package/dist/cjs/node_modules/micromark-core-commonmark/lib/definition.js +2 -0
  107. package/dist/cjs/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  108. package/dist/cjs/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +2 -0
  109. package/dist/cjs/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  110. package/dist/cjs/node_modules/micromark-core-commonmark/lib/heading-atx.js +2 -0
  111. package/dist/cjs/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  112. package/dist/cjs/node_modules/micromark-core-commonmark/lib/html-flow.js +2 -0
  113. package/dist/cjs/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  114. package/dist/cjs/node_modules/micromark-core-commonmark/lib/html-text.js +2 -0
  115. package/dist/cjs/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  116. package/dist/cjs/node_modules/micromark-core-commonmark/lib/label-end.js +2 -0
  117. package/dist/cjs/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  118. package/dist/cjs/node_modules/micromark-core-commonmark/lib/label-start-image.js +2 -0
  119. package/dist/cjs/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  120. package/dist/cjs/node_modules/micromark-core-commonmark/lib/label-start-link.js +2 -0
  121. package/dist/cjs/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  122. package/dist/cjs/node_modules/micromark-core-commonmark/lib/line-ending.js +2 -0
  123. package/dist/cjs/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  124. package/dist/cjs/node_modules/micromark-core-commonmark/lib/list.js +2 -0
  125. package/dist/cjs/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  126. package/dist/cjs/node_modules/micromark-core-commonmark/lib/setext-underline.js +2 -0
  127. package/dist/cjs/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  128. package/dist/cjs/node_modules/micromark-core-commonmark/lib/thematic-break.js +2 -0
  129. package/dist/cjs/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  130. package/dist/cjs/node_modules/micromark-core-commonmark/node_modules/micromark-util-character/index.js +2 -0
  131. package/dist/cjs/node_modules/micromark-core-commonmark/node_modules/micromark-util-character/index.js.map +1 -0
  132. package/dist/cjs/node_modules/micromark-extension-gfm/index.js +1 -1
  133. package/dist/cjs/node_modules/micromark-extension-gfm/index.js.map +1 -1
  134. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +1 -1
  135. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -1
  136. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/index.js +2 -0
  137. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/index.js.map +1 -0
  138. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +2 -0
  139. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +1 -0
  140. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +1 -1
  141. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -1
  142. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-character/index.js +2 -0
  143. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-character/index.js.map +1 -0
  144. package/dist/cjs/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +1 -1
  145. package/dist/cjs/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -1
  146. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/edit-map.js +1 -1
  147. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/edit-map.js.map +1 -1
  148. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/infer.js.map +1 -1
  149. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/syntax.js +1 -1
  150. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/syntax.js.map +1 -1
  151. package/dist/cjs/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js +2 -0
  152. package/dist/cjs/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js.map +1 -0
  153. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +1 -1
  154. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -1
  155. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-character/index.js +2 -0
  156. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-character/index.js.map +1 -0
  157. package/dist/cjs/node_modules/micromark-factory-destination/index.js +2 -0
  158. package/dist/cjs/node_modules/micromark-factory-destination/index.js.map +1 -0
  159. package/dist/cjs/node_modules/micromark-factory-destination/node_modules/micromark-util-character/index.js +2 -0
  160. package/dist/cjs/node_modules/micromark-factory-destination/node_modules/micromark-util-character/index.js.map +1 -0
  161. package/dist/cjs/node_modules/micromark-factory-label/index.js +2 -0
  162. package/dist/cjs/node_modules/micromark-factory-label/index.js.map +1 -0
  163. package/dist/cjs/node_modules/micromark-factory-label/node_modules/micromark-util-character/index.js +2 -0
  164. package/dist/cjs/node_modules/micromark-factory-label/node_modules/micromark-util-character/index.js.map +1 -0
  165. package/dist/cjs/node_modules/micromark-factory-space/index.js +1 -1
  166. package/dist/cjs/node_modules/micromark-factory-space/index.js.map +1 -1
  167. package/dist/cjs/node_modules/micromark-factory-space/node_modules/micromark-util-character/index.js +2 -0
  168. package/dist/cjs/node_modules/micromark-factory-space/node_modules/micromark-util-character/index.js.map +1 -0
  169. package/dist/cjs/node_modules/micromark-factory-title/index.js +2 -0
  170. package/dist/cjs/node_modules/micromark-factory-title/index.js.map +1 -0
  171. package/dist/cjs/node_modules/micromark-factory-title/node_modules/micromark-util-character/index.js +2 -0
  172. package/dist/cjs/node_modules/micromark-factory-title/node_modules/micromark-util-character/index.js.map +1 -0
  173. package/dist/cjs/node_modules/micromark-factory-whitespace/index.js +2 -0
  174. package/dist/cjs/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  175. package/dist/cjs/node_modules/micromark-factory-whitespace/node_modules/micromark-util-character/index.js +2 -0
  176. package/dist/cjs/node_modules/micromark-factory-whitespace/node_modules/micromark-util-character/index.js.map +1 -0
  177. package/dist/cjs/node_modules/micromark-util-chunked/index.js +1 -1
  178. package/dist/cjs/node_modules/micromark-util-chunked/index.js.map +1 -1
  179. package/dist/cjs/node_modules/micromark-util-classify-character/index.js +1 -1
  180. package/dist/cjs/node_modules/micromark-util-classify-character/index.js.map +1 -1
  181. package/dist/cjs/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/index.js +2 -0
  182. package/dist/cjs/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/index.js.map +1 -0
  183. package/dist/cjs/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +2 -0
  184. package/dist/cjs/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +1 -0
  185. package/dist/cjs/node_modules/micromark-util-combine-extensions/index.js.map +1 -1
  186. package/dist/cjs/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -0
  187. package/dist/cjs/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  188. package/dist/cjs/node_modules/micromark-util-decode-string/index.js +2 -0
  189. package/dist/cjs/node_modules/micromark-util-decode-string/index.js.map +1 -0
  190. package/dist/cjs/node_modules/micromark-util-html-tag-name/index.js +2 -0
  191. package/dist/cjs/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  192. package/dist/cjs/node_modules/micromark-util-normalize-identifier/index.js.map +1 -1
  193. package/dist/cjs/node_modules/micromark-util-resolve-all/index.js.map +1 -1
  194. package/dist/cjs/node_modules/micromark-util-subtokenize/index.js +2 -0
  195. package/dist/cjs/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  196. package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js +1 -1
  197. package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js.map +1 -1
  198. package/dist/cjs/node_modules/react-markdown/node_modules/remark-parse/lib/index.js +1 -1
  199. package/dist/cjs/node_modules/react-markdown/node_modules/remark-parse/lib/index.js.map +1 -1
  200. package/dist/cjs/node_modules/remark-gfm/index.js +2 -0
  201. package/dist/cjs/node_modules/remark-gfm/index.js.map +1 -0
  202. package/dist/cjs/node_modules/unified/lib/index.js +2 -0
  203. package/dist/cjs/node_modules/unified/lib/index.js.map +1 -0
  204. package/dist/cjs/node_modules/unified/node_modules/is-plain-obj/index.js +2 -0
  205. package/dist/cjs/node_modules/unified/node_modules/is-plain-obj/index.js.map +1 -0
  206. package/dist/cjs/node_modules/unified/node_modules/unist-util-stringify-position/lib/index.js +2 -0
  207. package/dist/cjs/node_modules/unified/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  208. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/index.js +2 -0
  209. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/index.js.map +1 -0
  210. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minpath.browser.js +2 -0
  211. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  212. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minproc.browser.js +2 -0
  213. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  214. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minurl.browser.js +2 -0
  215. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  216. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minurl.shared.js +2 -0
  217. package/dist/cjs/node_modules/unified/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  218. package/dist/cjs/node_modules/unified/node_modules/vfile-message/lib/index.js +2 -0
  219. package/dist/cjs/node_modules/unified/node_modules/vfile-message/lib/index.js.map +1 -0
  220. package/dist/features/IL-OTJ/ILOTJ.js +1 -1
  221. package/dist/features/IL-OTJ/_components/ChatComponent.js +1 -1
  222. package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
  223. package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js +1 -1
  224. package/dist/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
  225. package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +2 -0
  226. package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js.map +1 -0
  227. package/dist/features/IL-OTJ/_components/MessageRendering.js +1 -1
  228. package/dist/features/IL-OTJ/_components/MinimizedThinkingSteps.js +1 -1
  229. package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
  230. package/dist/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
  231. package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
  232. package/dist/node_modules/@e-llm-studio/citation/dist/features/Bookemon/Bookemon.js.map +1 -1
  233. package/dist/node_modules/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
  234. package/dist/node_modules/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  235. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +1 -1
  236. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js.map +1 -1
  237. package/dist/node_modules/mdast-util-find-and-replace/node_modules/unist-util-is/lib/index.js +2 -0
  238. package/dist/node_modules/mdast-util-find-and-replace/node_modules/unist-util-is/lib/index.js.map +1 -0
  239. package/dist/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/color.browser.js +2 -0
  240. package/dist/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/color.browser.js.map +1 -0
  241. package/dist/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/index.js +2 -0
  242. package/dist/node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  243. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +2 -0
  244. package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  245. package/dist/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js +2 -0
  246. package/dist/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  247. package/dist/node_modules/mdast-util-gfm/lib/index.js +1 -1
  248. package/dist/node_modules/mdast-util-gfm/lib/index.js.map +1 -1
  249. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +1 -1
  250. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -1
  251. package/dist/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/index.js +2 -0
  252. package/dist/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/index.js.map +1 -0
  253. package/dist/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +2 -0
  254. package/dist/node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +1 -0
  255. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +1 -1
  256. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -1
  257. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +1 -1
  258. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -1
  259. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +1 -1
  260. package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -1
  261. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +1 -1
  262. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js.map +1 -1
  263. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +1 -1
  264. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -1
  265. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -1
  266. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.js +2 -0
  267. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.js.map +1 -0
  268. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -1
  269. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +1 -1
  270. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -1
  271. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +2 -0
  272. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.js.map +1 -0
  273. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +2 -0
  274. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js.map +1 -0
  275. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +2 -0
  276. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js.map +1 -0
  277. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js +2 -0
  278. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js.map +1 -0
  279. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -1
  280. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.js +2 -0
  281. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.js.map +1 -0
  282. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.js +2 -0
  283. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.js.map +1 -0
  284. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -1
  285. package/dist/node_modules/micromark/lib/constructs.js +2 -0
  286. package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
  287. package/dist/node_modules/micromark/lib/create-tokenizer.js +2 -0
  288. package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  289. package/dist/node_modules/micromark/lib/initialize/content.js +2 -0
  290. package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
  291. package/dist/node_modules/micromark/lib/initialize/document.js +2 -0
  292. package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
  293. package/dist/node_modules/micromark/lib/initialize/flow.js +2 -0
  294. package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  295. package/dist/node_modules/micromark/lib/initialize/text.js +2 -0
  296. package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
  297. package/dist/node_modules/micromark/lib/parse.js +2 -0
  298. package/dist/node_modules/micromark/lib/parse.js.map +1 -0
  299. package/dist/node_modules/micromark/lib/postprocess.js +2 -0
  300. package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
  301. package/dist/node_modules/micromark/lib/preprocess.js +2 -0
  302. package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
  303. package/dist/node_modules/micromark/node_modules/micromark-util-character/index.js +2 -0
  304. package/dist/node_modules/micromark/node_modules/micromark-util-character/index.js.map +1 -0
  305. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +2 -0
  306. package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  307. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +2 -0
  308. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  309. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +1 -1
  310. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -1
  311. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +2 -0
  312. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  313. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +2 -0
  314. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  315. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +2 -0
  316. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  317. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +2 -0
  318. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  319. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +2 -0
  320. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  321. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +2 -0
  322. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  323. package/dist/node_modules/micromark-core-commonmark/lib/content.js +2 -0
  324. package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  325. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +2 -0
  326. package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  327. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +2 -0
  328. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  329. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +2 -0
  330. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  331. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +2 -0
  332. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  333. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +2 -0
  334. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  335. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +2 -0
  336. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  337. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +2 -0
  338. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  339. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +2 -0
  340. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  341. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +2 -0
  342. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  343. package/dist/node_modules/micromark-core-commonmark/lib/list.js +2 -0
  344. package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  345. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +2 -0
  346. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  347. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +2 -0
  348. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  349. package/dist/node_modules/micromark-core-commonmark/node_modules/micromark-util-character/index.js +2 -0
  350. package/dist/node_modules/micromark-core-commonmark/node_modules/micromark-util-character/index.js.map +1 -0
  351. package/dist/node_modules/micromark-extension-gfm/index.js +1 -1
  352. package/dist/node_modules/micromark-extension-gfm/index.js.map +1 -1
  353. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +1 -1
  354. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -1
  355. package/dist/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/index.js +2 -0
  356. package/dist/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/index.js.map +1 -0
  357. package/dist/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +2 -0
  358. package/dist/node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +1 -0
  359. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +1 -1
  360. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -1
  361. package/dist/node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-character/index.js +2 -0
  362. package/dist/node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-character/index.js.map +1 -0
  363. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +1 -1
  364. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -1
  365. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +1 -1
  366. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js.map +1 -1
  367. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js.map +1 -1
  368. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +1 -1
  369. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js.map +1 -1
  370. package/dist/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js +2 -0
  371. package/dist/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js.map +1 -0
  372. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +1 -1
  373. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -1
  374. package/dist/node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-character/index.js +2 -0
  375. package/dist/node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-character/index.js.map +1 -0
  376. package/dist/node_modules/micromark-factory-destination/index.js +2 -0
  377. package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
  378. package/dist/node_modules/micromark-factory-destination/node_modules/micromark-util-character/index.js +2 -0
  379. package/dist/node_modules/micromark-factory-destination/node_modules/micromark-util-character/index.js.map +1 -0
  380. package/dist/node_modules/micromark-factory-label/index.js +2 -0
  381. package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
  382. package/dist/node_modules/micromark-factory-label/node_modules/micromark-util-character/index.js +2 -0
  383. package/dist/node_modules/micromark-factory-label/node_modules/micromark-util-character/index.js.map +1 -0
  384. package/dist/node_modules/micromark-factory-space/index.js +1 -1
  385. package/dist/node_modules/micromark-factory-space/index.js.map +1 -1
  386. package/dist/node_modules/micromark-factory-space/node_modules/micromark-util-character/index.js +2 -0
  387. package/dist/node_modules/micromark-factory-space/node_modules/micromark-util-character/index.js.map +1 -0
  388. package/dist/node_modules/micromark-factory-title/index.js +2 -0
  389. package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
  390. package/dist/node_modules/micromark-factory-title/node_modules/micromark-util-character/index.js +2 -0
  391. package/dist/node_modules/micromark-factory-title/node_modules/micromark-util-character/index.js.map +1 -0
  392. package/dist/node_modules/micromark-factory-whitespace/index.js +2 -0
  393. package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  394. package/dist/node_modules/micromark-factory-whitespace/node_modules/micromark-util-character/index.js +2 -0
  395. package/dist/node_modules/micromark-factory-whitespace/node_modules/micromark-util-character/index.js.map +1 -0
  396. package/dist/node_modules/micromark-util-chunked/index.js +1 -1
  397. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -1
  398. package/dist/node_modules/micromark-util-classify-character/index.js +1 -1
  399. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -1
  400. package/dist/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/index.js +2 -0
  401. package/dist/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/index.js.map +1 -0
  402. package/dist/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +2 -0
  403. package/dist/node_modules/micromark-util-classify-character/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +1 -0
  404. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -1
  405. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -0
  406. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  407. package/dist/node_modules/micromark-util-decode-string/index.js +2 -0
  408. package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
  409. package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -0
  410. package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  411. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -1
  412. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -1
  413. package/dist/node_modules/micromark-util-subtokenize/index.js +2 -0
  414. package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  415. package/dist/node_modules/react-markdown/lib/react-markdown.js +1 -1
  416. package/dist/node_modules/react-markdown/lib/react-markdown.js.map +1 -1
  417. package/dist/node_modules/react-markdown/node_modules/remark-parse/lib/index.js +1 -1
  418. package/dist/node_modules/react-markdown/node_modules/remark-parse/lib/index.js.map +1 -1
  419. package/dist/node_modules/remark-gfm/index.js +2 -0
  420. package/dist/node_modules/remark-gfm/index.js.map +1 -0
  421. package/dist/node_modules/unified/lib/index.js +2 -0
  422. package/dist/node_modules/unified/lib/index.js.map +1 -0
  423. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -0
  424. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js.map +1 -0
  425. package/dist/node_modules/unified/node_modules/unist-util-stringify-position/lib/index.js +2 -0
  426. package/dist/node_modules/unified/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  427. package/dist/node_modules/unified/node_modules/vfile/lib/index.js +2 -0
  428. package/dist/node_modules/unified/node_modules/vfile/lib/index.js.map +1 -0
  429. package/dist/node_modules/unified/node_modules/vfile/lib/minpath.browser.js +2 -0
  430. package/dist/node_modules/unified/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  431. package/dist/node_modules/unified/node_modules/vfile/lib/minproc.browser.js +2 -0
  432. package/dist/node_modules/unified/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  433. package/dist/node_modules/unified/node_modules/vfile/lib/minurl.browser.js +2 -0
  434. package/dist/node_modules/unified/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  435. package/dist/node_modules/unified/node_modules/vfile/lib/minurl.shared.js +2 -0
  436. package/dist/node_modules/unified/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  437. package/dist/node_modules/unified/node_modules/vfile-message/lib/index.js +2 -0
  438. package/dist/node_modules/unified/node_modules/vfile-message/lib/index.js.map +1 -0
  439. package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts +1 -0
  440. package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
  441. package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
  442. package/dist/types/src/features/IL-OTJ/_components/ChatComponent.d.ts +1 -0
  443. package/dist/types/src/features/IL-OTJ/_components/ChatComponent.d.ts.map +1 -1
  444. package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts +13 -0
  445. package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -1
  446. package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts +3 -0
  447. package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts.map +1 -1
  448. package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
  449. package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -1
  450. package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts +10 -0
  451. package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -0
  452. package/dist/types/src/features/IL-OTJ/_components/MessageRendering.d.ts +3 -1
  453. package/dist/types/src/features/IL-OTJ/_components/MessageRendering.d.ts.map +1 -1
  454. package/dist/types/src/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts +1 -0
  455. package/dist/types/src/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts.map +1 -1
  456. package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +3 -1
  457. package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
  458. package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +1 -1
  459. package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
  460. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
  461. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unicode-punctuation-regex.js","sources":["../../../../../../../node_modules/micromark-util-classify-character/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js"],"sourcesContent":["// This module is generated by `script/`.\n//\n// CommonMark handles attention (emphasis, strong) markers based on what comes\n// before or after them.\n// One such difference is if those characters are Unicode punctuation.\n// This script is generated from the Unicode data.\n\n/**\n * Regular expression that matches a unicode punctuation character.\n */\nexport const unicodePunctuationRegex =\n /[!-\\/:-@\\[-`\\{-~\\xA1\\xA7\\xAB\\xB6\\xB7\\xBB\\xBF\\u037E\\u0387\\u055A-\\u055F\\u0589\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3\\u05F4\\u0609\\u060A\\u060C\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B\\u169C\\u16EB-\\u16ED\\u1735\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944\\u1945\\u1A1E\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B5A-\\u1B60\\u1B7D\\u1B7E\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D\\u207E\\u208D\\u208E\\u2308-\\u230B\\u2329\\u232A\\u2768-\\u2775\\u27C5\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC\\u29FD\\u2CF9-\\u2CFC\\u2CFE\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE\\uA9DF\\uAA5C-\\uAA5F\\uAADE\\uAADF\\uAAF0\\uAAF1\\uABEB\\uFD3E\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A\\uFF1B\\uFF1F\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65]/\n"],"names":[],"mappings":"oGAWE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-combine-extensions/index.js"],"sourcesContent":["/**\n * @import {\n * Extension,\n * Handles,\n * HtmlExtension,\n * NormalizedExtension\n * } from 'micromark-util-types'\n */\n\nimport {splice} from 'micromark-util-chunked'\n\nconst hasOwnProperty = {}.hasOwnProperty\n\n/**\n * Combine multiple syntax extensions into one.\n *\n * @param {ReadonlyArray<Extension>} extensions\n * List of syntax extensions.\n * @returns {NormalizedExtension}\n * A single combined extension.\n */\nexport function combineExtensions(extensions) {\n /** @type {NormalizedExtension} */\n const all = {}\n let index = -1\n\n while (++index < extensions.length) {\n syntaxExtension(all, extensions[index])\n }\n\n return all\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {NormalizedExtension} all\n * Extension to merge into.\n * @param {Extension} extension\n * Extension to merge.\n * @returns {undefined}\n * Nothing.\n */\nfunction syntaxExtension(all, extension) {\n /** @type {keyof Extension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n /** @type {Record<string, unknown>} */\n const left = maybe || (all[hook] = {})\n /** @type {Record<string, unknown> | undefined} */\n const right = extension[hook]\n /** @type {string} */\n let code\n\n if (right) {\n for (code in right) {\n if (!hasOwnProperty.call(left, code)) left[code] = []\n const value = right[code]\n constructs(\n // @ts-expect-error Looks like a list.\n left[code],\n Array.isArray(value) ? value : value ? [value] : []\n )\n }\n }\n }\n}\n\n/**\n * Merge `list` into `existing` (both lists of constructs).\n * Mutates `existing`.\n *\n * @param {Array<unknown>} existing\n * List of constructs to merge into.\n * @param {Array<unknown>} list\n * List of constructs to merge.\n * @returns {undefined}\n * Nothing.\n */\nfunction constructs(existing, list) {\n let index = -1\n /** @type {Array<unknown>} */\n const before = []\n\n while (++index < list.length) {\n // @ts-expect-error Looks like an object.\n ;(list[index].add === 'after' ? existing : before).push(list[index])\n }\n\n splice(existing, 0, 0, before)\n}\n\n/**\n * Combine multiple HTML extensions into one.\n *\n * @param {ReadonlyArray<HtmlExtension>} htmlExtensions\n * List of HTML extensions.\n * @returns {HtmlExtension}\n * Single combined HTML extension.\n */\nexport function combineHtmlExtensions(htmlExtensions) {\n /** @type {HtmlExtension} */\n const handlers = {}\n let index = -1\n\n while (++index < htmlExtensions.length) {\n htmlExtension(handlers, htmlExtensions[index])\n }\n\n return handlers\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {HtmlExtension} all\n * Extension to merge into.\n * @param {HtmlExtension} extension\n * Extension to merge.\n * @returns {undefined}\n * Nothing.\n */\nfunction htmlExtension(all, extension) {\n /** @type {keyof HtmlExtension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n const left = maybe || (all[hook] = {})\n const right = extension[hook]\n /** @type {keyof Handles} */\n let type\n\n if (right) {\n for (type in right) {\n // @ts-expect-error assume document vs regular handler are managed correctly.\n left[type] = right[type]\n }\n }\n }\n}\n"],"names":["hasOwnProperty","syntaxExtension","all","extension","hook","left","call","undefined","right","code","value","constructs","Array","isArray","existing","list","index","before","length","add","push","splice","extensions"],"mappings":"wHAWA,MAAMA,EAAiB,CAAE,EAACA,eAgC1B,SAASC,EAAgBC,EAAKC,GAE5B,IAAIC,EAEJ,IAAKA,KAAQD,EAAW,CACtB,MAEME,GAFQL,EAAeM,KAAKJ,EAAKE,GAAQF,EAAIE,QAAQG,KAEpCL,EAAIE,GAAQ,CAAA,GAE7BI,EAAQL,EAAUC,GAExB,IAAIK,EAEJ,GAAID,EACF,IAAKC,KAAQD,EAAO,CACbR,EAAeM,KAAKD,EAAMI,KAAOJ,EAAKI,GAAQ,IACnD,MAAMC,EAAQF,EAAMC,GACpBE,EAEEN,EAAKI,GACLG,MAAMC,QAAQH,GAASA,EAAQA,EAAQ,CAACA,GAAS,GAEpD,CAEJ,CACH,CAaA,SAASC,EAAWG,EAAUC,GAC5B,IAAIC,GAAS,EAEb,MAAMC,EAAS,GAEf,OAASD,EAAQD,EAAKG,SAEE,UAApBH,EAAKC,GAAOG,IAAkBL,EAAWG,GAAQG,KAAKL,EAAKC,IAG/DK,EAAAA,OAAOP,EAAU,EAAG,EAAGG,EACzB,2BAvEO,SAA2BK,GAEhC,MAAMpB,EAAM,CAAE,EACd,IAAIc,GAAS,EAEb,OAASA,EAAQM,EAAWJ,QAC1BjB,EAAgBC,EAAKoB,EAAWN,IAGlC,OAAOd,CACT"}
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-combine-extensions/index.js"],"sourcesContent":["/**\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Handles} Handles\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n * @typedef {import('micromark-util-types').NormalizedExtension} NormalizedExtension\n */\n\nimport {splice} from 'micromark-util-chunked'\n\nconst hasOwnProperty = {}.hasOwnProperty\n\n/**\n * Combine multiple syntax extensions into one.\n *\n * @param {Array<Extension>} extensions\n * List of syntax extensions.\n * @returns {NormalizedExtension}\n * A single combined extension.\n */\nexport function combineExtensions(extensions) {\n /** @type {NormalizedExtension} */\n const all = {}\n let index = -1\n\n while (++index < extensions.length) {\n syntaxExtension(all, extensions[index])\n }\n\n return all\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {NormalizedExtension} all\n * Extension to merge into.\n * @param {Extension} extension\n * Extension to merge.\n * @returns {void}\n */\nfunction syntaxExtension(all, extension) {\n /** @type {keyof Extension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n /** @type {Record<string, unknown>} */\n const left = maybe || (all[hook] = {})\n /** @type {Record<string, unknown> | undefined} */\n const right = extension[hook]\n /** @type {string} */\n let code\n\n if (right) {\n for (code in right) {\n if (!hasOwnProperty.call(left, code)) left[code] = []\n const value = right[code]\n constructs(\n // @ts-expect-error Looks like a list.\n left[code],\n Array.isArray(value) ? value : value ? [value] : []\n )\n }\n }\n }\n}\n\n/**\n * Merge `list` into `existing` (both lists of constructs).\n * Mutates `existing`.\n *\n * @param {Array<unknown>} existing\n * @param {Array<unknown>} list\n * @returns {void}\n */\nfunction constructs(existing, list) {\n let index = -1\n /** @type {Array<unknown>} */\n const before = []\n\n while (++index < list.length) {\n // @ts-expect-error Looks like an object.\n ;(list[index].add === 'after' ? existing : before).push(list[index])\n }\n\n splice(existing, 0, 0, before)\n}\n\n/**\n * Combine multiple HTML extensions into one.\n *\n * @param {Array<HtmlExtension>} htmlExtensions\n * List of HTML extensions.\n * @returns {HtmlExtension}\n * A single combined HTML extension.\n */\nexport function combineHtmlExtensions(htmlExtensions) {\n /** @type {HtmlExtension} */\n const handlers = {}\n let index = -1\n\n while (++index < htmlExtensions.length) {\n htmlExtension(handlers, htmlExtensions[index])\n }\n\n return handlers\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {HtmlExtension} all\n * Extension to merge into.\n * @param {HtmlExtension} extension\n * Extension to merge.\n * @returns {void}\n */\nfunction htmlExtension(all, extension) {\n /** @type {keyof HtmlExtension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n const left = maybe || (all[hook] = {})\n const right = extension[hook]\n /** @type {keyof Handles} */\n let type\n\n if (right) {\n for (type in right) {\n // @ts-expect-error assume document vs regular handler are managed correctly.\n left[type] = right[type]\n }\n }\n }\n}\n"],"names":["hasOwnProperty","syntaxExtension","all","extension","hook","left","call","undefined","right","code","value","constructs","Array","isArray","existing","list","index","before","length","add","push","splice","extensions"],"mappings":"wHASA,MAAMA,EAAiB,CAAE,EAACA,eA+B1B,SAASC,EAAgBC,EAAKC,GAE5B,IAAIC,EAEJ,IAAKA,KAAQD,EAAW,CACtB,MAEME,GAFQL,EAAeM,KAAKJ,EAAKE,GAAQF,EAAIE,QAAQG,KAEpCL,EAAIE,GAAQ,CAAA,GAE7BI,EAAQL,EAAUC,GAExB,IAAIK,EAEJ,GAAID,EACF,IAAKC,KAAQD,EAAO,CACbR,EAAeM,KAAKD,EAAMI,KAAOJ,EAAKI,GAAQ,IACnD,MAAMC,EAAQF,EAAMC,GACpBE,EAEEN,EAAKI,GACLG,MAAMC,QAAQH,GAASA,EAAQA,EAAQ,CAACA,GAAS,GAEpD,CAEJ,CACH,CAUA,SAASC,EAAWG,EAAUC,GAC5B,IAAIC,GAAS,EAEb,MAAMC,EAAS,GAEf,OAASD,EAAQD,EAAKG,SAEE,UAApBH,EAAKC,GAAOG,IAAkBL,EAAWG,GAAQG,KAAKL,EAAKC,IAG/DK,EAAAA,OAAOP,EAAU,EAAG,EAAGG,EACzB,2BAnEO,SAA2BK,GAEhC,MAAMpB,EAAM,CAAE,EACd,IAAIc,GAAS,EAEb,OAASA,EAAQM,EAAWJ,QAC1BjB,EAAgBC,EAAKoB,EAAWN,IAGlC,OAAOd,CACT"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.decodeNumericCharacterReference=function(e,r){const t=Number.parseInt(e,r);return t<9||11===t||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||!(65535&~t)||65534==(65535&t)||t>1114111?"�":String.fromCharCode(t)};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-decode-numeric-character-reference/index.js"],"sourcesContent":["/**\n * Turn the number (in string form as either hexa- or plain decimal) coming from\n * a numeric character reference into a character.\n *\n * Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes\n * non-characters and control characters safe.\n *\n * @param {string} value\n * Value to decode.\n * @param {number} base\n * Numeric base.\n * @returns {string}\n * Character.\n */\nexport function decodeNumericCharacterReference(value, base) {\n const code = Number.parseInt(value, base)\n if (\n // C0 except for HT, LF, FF, CR, space.\n code < 9 ||\n code === 11 ||\n (code > 13 && code < 32) ||\n // Control character (DEL) of C0, and C1 controls.\n (code > 126 && code < 160) ||\n // Lone high surrogates and low surrogates.\n (code > 55295 && code < 57344) ||\n // Noncharacters.\n (code > 64975 && code < 65008) /* eslint-disable no-bitwise */ ||\n (code & 65535) === 65535 ||\n (code & 65535) === 65534 /* eslint-enable no-bitwise */ ||\n // Out of range\n code > 1114111\n ) {\n return '\\uFFFD'\n }\n return String.fromCharCode(code)\n}\n"],"names":["value","base","code","Number","parseInt","String","fromCharCode"],"mappings":"4GAcO,SAAyCA,EAAOC,GACrD,MAAMC,EAAOC,OAAOC,SAASJ,EAAOC,GACpC,OAEEC,EAAO,GACE,KAATA,GACCA,EAAO,IAAMA,EAAO,IAEpBA,EAAO,KAAOA,EAAO,KAErBA,EAAO,OAASA,EAAO,OAEvBA,EAAO,OAASA,EAAO,SACL,OAAlBA,IACkB,QAAX,MAAPA,IAEDA,EAAO,QAEA,IAEFG,OAAOC,aAAaJ,EAC7B"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../decode-named-character-reference/index.dom.js"),r=require("../micromark-util-decode-numeric-character-reference/index.js");const c=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function d(c,d,t){if(d)return d;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),c=120===e||88===e;return r.decodeNumericCharacterReference(t.slice(c?2:1),c?16:10)}return e.decodeNamedCharacterReference(t)||c}exports.decodeString=function(e){return e.replace(c,d)};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-decode-string/index.js"],"sourcesContent":["import {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nconst characterEscapeOrReference =\n /\\\\([!-/:-@[-`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi\n\n/**\n * Decode markdown strings (which occur in places such as fenced code info\n * strings, destinations, labels, and titles).\n *\n * The “string” content type allows character escapes and -references.\n * This decodes those.\n *\n * @param {string} value\n * Value to decode.\n * @returns {string}\n * Decoded value.\n */\nexport function decodeString(value) {\n return value.replace(characterEscapeOrReference, decode)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @param {string} $2\n * @returns {string}\n */\nfunction decode($0, $1, $2) {\n if ($1) {\n // Escape.\n return $1\n }\n\n // Reference.\n const head = $2.charCodeAt(0)\n if (head === 35) {\n const head = $2.charCodeAt(1)\n const hex = head === 120 || head === 88\n return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10)\n }\n return decodeNamedCharacterReference($2) || $0\n}\n"],"names":["characterEscapeOrReference","decode","$0","$1","$2","charCodeAt","head","hex","decodeNumericCharacterReference","slice","decodeNamedCharacterReference","value","replace"],"mappings":"iNAEA,MAAMA,EACJ,oEAwBF,SAASC,EAAOC,EAAIC,EAAIC,GACtB,GAAID,EAEF,OAAOA,EAKT,GAAa,KADAC,EAAGC,WAAW,GACV,CACf,MAAMC,EAAOF,EAAGC,WAAW,GACrBE,EAAe,MAATD,GAAyB,KAATA,EAC5B,OAAOE,EAA+BA,gCAACJ,EAAGK,MAAMF,EAAM,EAAI,GAAIA,EAAM,GAAK,GAC1E,CACD,OAAOG,EAA6BA,8BAACN,IAAOF,CAC9C,sBAxBO,SAAsBS,GAC3B,OAAOA,EAAMC,QAAQZ,EAA4BC,EACnD"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],exports.htmlRawNames=["pre","script","style","textarea"];
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-html-tag-name/index.js"],"sourcesContent":["/**\n * List of lowercase HTML “block” tag names.\n *\n * The list, when parsing HTML (flow), results in more relaxed rules (condition\n * 6).\n * Because they are known blocks, the HTML-like syntax doesn’t have to be\n * strictly parsed.\n * For tag names not in this list, a more strict algorithm (condition 7) is used\n * to detect whether the HTML-like syntax is seen as HTML (flow) or not.\n *\n * This is copied from:\n * <https://spec.commonmark.org/0.30/#html-blocks>.\n *\n * > 👉 **Note**: `search` was added in `CommonMark@0.31`.\n */\nexport const htmlBlockNames = [\n 'address',\n 'article',\n 'aside',\n 'base',\n 'basefont',\n 'blockquote',\n 'body',\n 'caption',\n 'center',\n 'col',\n 'colgroup',\n 'dd',\n 'details',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'footer',\n 'form',\n 'frame',\n 'frameset',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hr',\n 'html',\n 'iframe',\n 'legend',\n 'li',\n 'link',\n 'main',\n 'menu',\n 'menuitem',\n 'nav',\n 'noframes',\n 'ol',\n 'optgroup',\n 'option',\n 'p',\n 'param',\n 'search',\n 'section',\n 'summary',\n 'table',\n 'tbody',\n 'td',\n 'tfoot',\n 'th',\n 'thead',\n 'title',\n 'tr',\n 'track',\n 'ul'\n]\n\n/**\n * List of lowercase HTML “raw” tag names.\n *\n * The list, when parsing HTML (flow), results in HTML that can include lines\n * without exiting, until a closing tag also in this list is found (condition\n * 1).\n *\n * This module is copied from:\n * <https://spec.commonmark.org/0.30/#html-blocks>.\n *\n * > 👉 **Note**: `textarea` was added in `CommonMark@0.30`.\n */\nexport const htmlRawNames = ['pre', 'script', 'style', 'textarea']\n"],"names":[],"mappings":"2FAe8B,CAC5B,UACA,UACA,QACA,OACA,WACA,aACA,OACA,UACA,SACA,MACA,WACA,KACA,UACA,SACA,MACA,MACA,KACA,KACA,WACA,aACA,SACA,SACA,OACA,QACA,WACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,KACA,OACA,SACA,SACA,KACA,OACA,OACA,OACA,WACA,MACA,WACA,KACA,WACA,SACA,IACA,QACA,SACA,UACA,UACA,QACA,QACA,KACA,QACA,KACA,QACA,QACA,KACA,QACA,2BAe0B,CAAC,MAAO,SAAU,QAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-normalize-identifier/index.js"],"sourcesContent":["/**\n * Normalize an identifier (as found in references, definitions).\n *\n * Collapses markdown whitespace, trim, and then lower- and uppercase.\n *\n * Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their\n * lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different\n * uppercase character (U+0398 (`Θ`)).\n * So, to get a canonical form, we perform both lower- and uppercase.\n *\n * Using uppercase last makes sure keys will never interact with default\n * prototypal values (such as `constructor`): nothing in the prototype of\n * `Object` is uppercase.\n *\n * @param {string} value\n * Identifier to normalize.\n * @returns {string}\n * Normalized identifier.\n */\nexport function normalizeIdentifier(value) {\n return value\n // Collapse markdown whitespace.\n .replace(/[\\t\\n\\r ]+/g, \" \")\n // Trim.\n .replace(/^ | $/g, '')\n // Some characters are considered “uppercase”, but if their lowercase\n // counterpart is uppercased will result in a different uppercase\n // character.\n // Hence, to get that form, we perform both lower- and uppercase.\n // Upper case makes sure keys will not interact with default prototypal\n // methods: no method is uppercase.\n .toLowerCase().toUpperCase();\n}"],"names":["value","replace","toLowerCase","toUpperCase"],"mappings":"gGAmBO,SAA6BA,GAClC,OAAOA,EAENC,QAAQ,cAAe,KAEvBA,QAAQ,SAAU,IAOlBC,cAAcC,aACjB"}
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-normalize-identifier/index.js"],"sourcesContent":["/**\n * Normalize an identifier (as found in references, definitions).\n *\n * Collapses markdown whitespace, trim, and then lower- and uppercase.\n *\n * Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their\n * lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different\n * uppercase character (U+0398 (`Θ`)).\n * So, to get a canonical form, we perform both lower- and uppercase.\n *\n * Using uppercase last makes sure keys will never interact with default\n * prototypal values (such as `constructor`): nothing in the prototype of\n * `Object` is uppercase.\n *\n * @param {string} value\n * Identifier to normalize.\n * @returns {string}\n * Normalized identifier.\n */\nexport function normalizeIdentifier(value) {\n return (\n value\n // Collapse markdown whitespace.\n .replace(/[\\t\\n\\r ]+/g, ' ')\n // Trim.\n .replace(/^ | $/g, '')\n // Some characters are considered “uppercase”, but if their lowercase\n // counterpart is uppercased will result in a different uppercase\n // character.\n // Hence, to get that form, we perform both lower- and uppercase.\n // Upper case makes sure keys will not interact with default prototypal\n // methods: no method is uppercase.\n .toLowerCase()\n .toUpperCase()\n )\n}\n"],"names":["value","replace","toLowerCase","toUpperCase"],"mappings":"gGAmBO,SAA6BA,GAClC,OACEA,EAEGC,QAAQ,cAAe,KAEvBA,QAAQ,SAAU,IAOlBC,cACAC,aAEP"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-resolve-all/index.js"],"sourcesContent":["/**\n * @import {Event, Resolver, TokenizeContext} from 'micromark-util-types'\n */\n\n/**\n * Call all `resolveAll`s.\n *\n * @param {ReadonlyArray<{resolveAll?: Resolver | undefined}>} constructs\n * List of constructs, optionally with `resolveAll`s.\n * @param {Array<Event>} events\n * List of events.\n * @param {TokenizeContext} context\n * Context used by `tokenize`.\n * @returns {Array<Event>}\n * Changed events.\n */\nexport function resolveAll(constructs, events, context) {\n /** @type {Array<Resolver>} */\n const called = []\n let index = -1\n\n while (++index < constructs.length) {\n const resolve = constructs[index].resolveAll\n\n if (resolve && !called.includes(resolve)) {\n events = resolve(events, context)\n called.push(resolve)\n }\n }\n\n return events\n}\n"],"names":["constructs","events","context","called","index","length","resolve","resolveAll","includes","push"],"mappings":"uFAgBO,SAAoBA,EAAYC,EAAQC,GAE7C,MAAMC,EAAS,GACf,IAAIC,GAAS,EAEb,OAASA,EAAQJ,EAAWK,QAAQ,CAClC,MAAMC,EAAUN,EAAWI,GAAOG,WAE9BD,IAAYH,EAAOK,SAASF,KAC9BL,EAASK,EAAQL,EAAQC,GACzBC,EAAOM,KAAKH,GAEf,CAED,OAAOL,CACT"}
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-resolve-all/index.js"],"sourcesContent":["/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\n/**\n * Call all `resolveAll`s.\n *\n * @param {Array<{resolveAll?: Resolver | undefined}>} constructs\n * List of constructs, optionally with `resolveAll`s.\n * @param {Array<Event>} events\n * List of events.\n * @param {TokenizeContext} context\n * Context used by `tokenize`.\n * @returns {Array<Event>}\n * Changed events.\n */\nexport function resolveAll(constructs, events, context) {\n /** @type {Array<Resolver>} */\n const called = []\n let index = -1\n\n while (++index < constructs.length) {\n const resolve = constructs[index].resolveAll\n\n if (resolve && !called.includes(resolve)) {\n events = resolve(events, context)\n called.push(resolve)\n }\n }\n\n return events\n}\n"],"names":["constructs","events","context","called","index","length","resolve","resolveAll","includes","push"],"mappings":"uFAkBO,SAAoBA,EAAYC,EAAQC,GAE7C,MAAMC,EAAS,GACf,IAAIC,GAAS,EAEb,OAASA,EAAQJ,EAAWK,QAAQ,CAClC,MAAMC,EAAUN,EAAWI,GAAOG,WAE9BD,IAAYH,EAAOK,SAASF,KAC9BL,EAASK,EAAQL,EAAQC,GACzBC,EAAOM,KAAKH,GAEf,CAED,OAAOL,CACT"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../micromark-util-chunked/index.js");function t(t,n){const i=t[n][1],s=t[n][2];let o=n-1;const r=[],l=i._tokenizer||s.parser[i.contentType](i.start),p=l.events,f=[],c={};let u,d,a=-1,g=i,h=0,k=0;const y=[k];for(;g;){for(;t[++o][1]!==g;);r.push(o),g._tokenizer||(u=s.sliceStream(g),g.next||u.push(null),d&&l.defineSkip(g.start),g._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),g._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=g,g=g.next}for(g=i;++a<p.length;)"exit"===p[a][0]&&"enter"===p[a-1][0]&&p[a][1].type===p[a-1][1].type&&p[a][1].start.line!==p[a][1].end.line&&(k=a+1,y.push(k),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(l.events=[],g?(g._tokenizer=void 0,g.previous=void 0):y.pop(),a=y.length;a--;){const n=p.slice(y[a],y[a+1]),i=r.pop();f.unshift([i,i+n.length-1]),e.splice(t,i,2,n)}for(a=-1;++a<f.length;)c[h+f[a][0]]=h+f[a][1],h+=f[a][1]-f[a][0]-1;return c}exports.subtokenize=function(n){const i={};let s,o,r,l,p,f,c,u=-1;for(;++u<n.length;){for(;u in i;)u=i[u];if(s=n[u],u&&"chunkFlow"===s[1].type&&"listItemPrefix"===n[u-1][1].type&&(f=s[1]._tokenizer.events,r=0,r<f.length&&"lineEndingBlank"===f[r][1].type&&(r+=2),r<f.length&&"content"===f[r][1].type))for(;++r<f.length&&"content"!==f[r][1].type;)"chunkText"===f[r][1].type&&(f[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===s[0])s[1].contentType&&(Object.assign(i,t(n,u)),u=i[u],c=!0);else if(s[1]._container){for(r=u,o=void 0;r--&&(l=n[r],"lineEnding"===l[1].type||"lineEndingBlank"===l[1].type);)"enter"===l[0]&&(o&&(n[o][1].type="lineEndingBlank"),l[1].type="lineEnding",o=r);o&&(s[1].end=Object.assign({},n[o][1].start),p=n.slice(o,u),p.unshift(s),e.splice(n,o,u-o+1,p))}}return!c};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/micromark-util-subtokenize/index.js"],"sourcesContent":["/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Token} Token\n */\n\nimport {splice} from 'micromark-util-chunked'\n/**\n * Tokenize subcontent.\n *\n * @param {Array<Event>} events\n * List of events.\n * @returns {boolean}\n * Whether subtokens were found.\n */\nexport function subtokenize(events) {\n /** @type {Record<string, number>} */\n const jumps = {}\n let index = -1\n /** @type {Event} */\n let event\n /** @type {number | undefined} */\n let lineIndex\n /** @type {number} */\n let otherIndex\n /** @type {Event} */\n let otherEvent\n /** @type {Array<Event>} */\n let parameters\n /** @type {Array<Event>} */\n let subevents\n /** @type {boolean | undefined} */\n let more\n while (++index < events.length) {\n while (index in jumps) {\n index = jumps[index]\n }\n event = events[index]\n\n // Add a hook for the GFM tasklist extension, which needs to know if text\n // is in the first content of a list item.\n if (\n index &&\n event[1].type === 'chunkFlow' &&\n events[index - 1][1].type === 'listItemPrefix'\n ) {\n subevents = event[1]._tokenizer.events\n otherIndex = 0\n if (\n otherIndex < subevents.length &&\n subevents[otherIndex][1].type === 'lineEndingBlank'\n ) {\n otherIndex += 2\n }\n if (\n otherIndex < subevents.length &&\n subevents[otherIndex][1].type === 'content'\n ) {\n while (++otherIndex < subevents.length) {\n if (subevents[otherIndex][1].type === 'content') {\n break\n }\n if (subevents[otherIndex][1].type === 'chunkText') {\n subevents[otherIndex][1]._isInFirstContentOfListItem = true\n otherIndex++\n }\n }\n }\n }\n\n // Enter.\n if (event[0] === 'enter') {\n if (event[1].contentType) {\n Object.assign(jumps, subcontent(events, index))\n index = jumps[index]\n more = true\n }\n }\n // Exit.\n else if (event[1]._container) {\n otherIndex = index\n lineIndex = undefined\n while (otherIndex--) {\n otherEvent = events[otherIndex]\n if (\n otherEvent[1].type === 'lineEnding' ||\n otherEvent[1].type === 'lineEndingBlank'\n ) {\n if (otherEvent[0] === 'enter') {\n if (lineIndex) {\n events[lineIndex][1].type = 'lineEndingBlank'\n }\n otherEvent[1].type = 'lineEnding'\n lineIndex = otherIndex\n }\n } else {\n break\n }\n }\n if (lineIndex) {\n // Fix position.\n event[1].end = Object.assign({}, events[lineIndex][1].start)\n\n // Switch container exit w/ line endings.\n parameters = events.slice(lineIndex, index)\n parameters.unshift(event)\n splice(events, lineIndex, index - lineIndex + 1, parameters)\n }\n }\n }\n return !more\n}\n\n/**\n * Tokenize embedded tokens.\n *\n * @param {Array<Event>} events\n * @param {number} eventIndex\n * @returns {Record<string, number>}\n */\nfunction subcontent(events, eventIndex) {\n const token = events[eventIndex][1]\n const context = events[eventIndex][2]\n let startPosition = eventIndex - 1\n /** @type {Array<number>} */\n const startPositions = []\n const tokenizer =\n token._tokenizer || context.parser[token.contentType](token.start)\n const childEvents = tokenizer.events\n /** @type {Array<[number, number]>} */\n const jumps = []\n /** @type {Record<string, number>} */\n const gaps = {}\n /** @type {Array<Chunk>} */\n let stream\n /** @type {Token | undefined} */\n let previous\n let index = -1\n /** @type {Token | undefined} */\n let current = token\n let adjust = 0\n let start = 0\n const breaks = [start]\n\n // Loop forward through the linked tokens to pass them in order to the\n // subtokenizer.\n while (current) {\n // Find the position of the event for this token.\n while (events[++startPosition][1] !== current) {\n // Empty.\n }\n startPositions.push(startPosition)\n if (!current._tokenizer) {\n stream = context.sliceStream(current)\n if (!current.next) {\n stream.push(null)\n }\n if (previous) {\n tokenizer.defineSkip(current.start)\n }\n if (current._isInFirstContentOfListItem) {\n tokenizer._gfmTasklistFirstContentOfListItem = true\n }\n tokenizer.write(stream)\n if (current._isInFirstContentOfListItem) {\n tokenizer._gfmTasklistFirstContentOfListItem = undefined\n }\n }\n\n // Unravel the next token.\n previous = current\n current = current.next\n }\n\n // Now, loop back through all events (and linked tokens), to figure out which\n // parts belong where.\n current = token\n while (++index < childEvents.length) {\n if (\n // Find a void token that includes a break.\n childEvents[index][0] === 'exit' &&\n childEvents[index - 1][0] === 'enter' &&\n childEvents[index][1].type === childEvents[index - 1][1].type &&\n childEvents[index][1].start.line !== childEvents[index][1].end.line\n ) {\n start = index + 1\n breaks.push(start)\n // Help GC.\n current._tokenizer = undefined\n current.previous = undefined\n current = current.next\n }\n }\n\n // Help GC.\n tokenizer.events = []\n\n // If there’s one more token (which is the cases for lines that end in an\n // EOF), that’s perfect: the last point we found starts it.\n // If there isn’t then make sure any remaining content is added to it.\n if (current) {\n // Help GC.\n current._tokenizer = undefined\n current.previous = undefined\n } else {\n breaks.pop()\n }\n\n // Now splice the events from the subtokenizer into the current events,\n // moving back to front so that splice indices aren’t affected.\n index = breaks.length\n while (index--) {\n const slice = childEvents.slice(breaks[index], breaks[index + 1])\n const start = startPositions.pop()\n jumps.unshift([start, start + slice.length - 1])\n splice(events, start, 2, slice)\n }\n index = -1\n while (++index < jumps.length) {\n gaps[adjust + jumps[index][0]] = adjust + jumps[index][1]\n adjust += jumps[index][1] - jumps[index][0] - 1\n }\n return gaps\n}\n"],"names":["subcontent","events","eventIndex","token","context","startPosition","startPositions","tokenizer","_tokenizer","parser","contentType","start","childEvents","jumps","gaps","stream","previous","index","current","adjust","breaks","push","sliceStream","next","defineSkip","_isInFirstContentOfListItem","_gfmTasklistFirstContentOfListItem","write","undefined","length","type","line","end","pop","slice","unshift","splice","event","lineIndex","otherIndex","otherEvent","parameters","subevents","more","Object","assign","_container"],"mappings":"wHAwHA,SAASA,EAAWC,EAAQC,GAC1B,MAAMC,EAAQF,EAAOC,GAAY,GAC3BE,EAAUH,EAAOC,GAAY,GACnC,IAAIG,EAAgBH,EAAa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MdD,IAEFD,EAAM,GAAGL,IAAMY,OAAOC,OAAO,GAAI5C,EAAOqC,GAAW,GAAG3B,OAGtD8B,EAAaxC,EAAOiC,MAAMI,EAAWrB,GACrCwB,EAAWN,QAAQE,GACnBD,EAAMA,OAACnC,EAAQqC,EAAWrB,EAAQqB,EAAY,EAAGG,GAEpD,CACF,CACD,OAAQE,CACV"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),l=require("../node_modules/vfile/lib/index.js"),a=require("../node_modules/unified/lib/index.js"),t=require("../node_modules/remark-parse/lib/index.js"),r=require("../../remark-rehype/lib/index.js"),n=require("../../../_virtual/index3.js"),o=require("../node_modules/property-information/index.js"),d=require("./rehype-filter.js"),u=require("./ast-to-react.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(e);const f={}.hasOwnProperty,c={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function m(e){for(const l in c)if(f.call(c,l)&&f.call(e,l)){const e=c[l];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${l}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete c[l]}const n=a.unified().use(t.default).use(e.remarkPlugins||[]).use(r.default,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(d.default,e),s=new l.VFile;"string"==typeof e.children?s.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const m=n.runSync(n.parse(s),s);if("root"!==m.type)throw new TypeError("Expected a `root` node");let p=i.default.createElement(i.default.Fragment,{},u.childrenToReact({options:e,schema:o.html,listDepth:0},m));return e.className&&(p=i.default.createElement("div",{className:e.className},p)),p}m.propTypes={children:n.default.string,className:n.default.string,allowElement:n.default.func,allowedElements:n.default.arrayOf(n.default.string),disallowedElements:n.default.arrayOf(n.default.string),unwrapDisallowed:n.default.bool,remarkPlugins:n.default.arrayOf(n.default.oneOfType([n.default.object,n.default.func,n.default.arrayOf(n.default.oneOfType([n.default.bool,n.default.string,n.default.object,n.default.func,n.default.arrayOf(n.default.any)]))])),rehypePlugins:n.default.arrayOf(n.default.oneOfType([n.default.object,n.default.func,n.default.arrayOf(n.default.oneOfType([n.default.bool,n.default.string,n.default.object,n.default.func,n.default.arrayOf(n.default.any)]))])),sourcePos:n.default.bool,rawSourcePos:n.default.bool,skipHtml:n.default.bool,includeElementIndex:n.default.bool,transformLinkUri:n.default.oneOfType([n.default.func,n.default.bool]),linkTarget:n.default.oneOfType([n.default.func,n.default.string]),transformImageUri:n.default.func,components:n.default.object},exports.ReactMarkdown=m;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),l=require("../node_modules/vfile/lib/index.js"),a=require("../../unified/lib/index.js"),t=require("../node_modules/remark-parse/lib/index.js"),r=require("../../remark-rehype/lib/index.js"),n=require("../../../_virtual/index3.js"),o=require("../node_modules/property-information/index.js"),d=require("./rehype-filter.js"),u=require("./ast-to-react.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(e);const f={}.hasOwnProperty,c={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function m(e){for(const l in c)if(f.call(c,l)&&f.call(e,l)){const e=c[l];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${l}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete c[l]}const n=a.unified().use(t.default).use(e.remarkPlugins||[]).use(r.default,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(d.default,e),s=new l.VFile;"string"==typeof e.children?s.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const m=n.runSync(n.parse(s),s);if("root"!==m.type)throw new TypeError("Expected a `root` node");let p=i.default.createElement(i.default.Fragment,{},u.childrenToReact({options:e,schema:o.html,listDepth:0},m));return e.className&&(p=i.default.createElement("div",{className:e.className},p)),p}m.propTypes={children:n.default.string,className:n.default.string,allowElement:n.default.func,allowedElements:n.default.arrayOf(n.default.string),disallowedElements:n.default.arrayOf(n.default.string),unwrapDisallowed:n.default.bool,remarkPlugins:n.default.arrayOf(n.default.oneOfType([n.default.object,n.default.func,n.default.arrayOf(n.default.oneOfType([n.default.bool,n.default.string,n.default.object,n.default.func,n.default.arrayOf(n.default.any)]))])),rehypePlugins:n.default.arrayOf(n.default.oneOfType([n.default.object,n.default.func,n.default.arrayOf(n.default.oneOfType([n.default.bool,n.default.string,n.default.object,n.default.func,n.default.arrayOf(n.default.any)]))])),sourcePos:n.default.bool,rawSourcePos:n.default.bool,skipHtml:n.default.bool,includeElementIndex:n.default.bool,transformLinkUri:n.default.oneOfType([n.default.func,n.default.bool]),linkTarget:n.default.oneOfType([n.default.func,n.default.string]),transformImageUri:n.default.func,components:n.default.object},exports.ReactMarkdown=m;
2
2
  //# sourceMappingURL=react-markdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-markdown.js","sources":["../../../../../node_modules/react-markdown/lib/react-markdown.js"],"sourcesContent":["/**\n * @typedef {import('react').ReactNode} ReactNode\n * @typedef {import('react').ReactElement<{}>} ReactElement\n * @typedef {import('unified').PluggableList} PluggableList\n * @typedef {import('hast').Root} Root\n * @typedef {import('./rehype-filter.js').Options} FilterOptions\n * @typedef {import('./ast-to-react.js').Options} TransformOptions\n *\n * @typedef CoreOptions\n * @property {string} children\n *\n * @typedef PluginOptions\n * @property {PluggableList} [remarkPlugins=[]]\n * @property {PluggableList} [rehypePlugins=[]]\n * @property {import('remark-rehype').Options | undefined} [remarkRehypeOptions={}]\n *\n * @typedef LayoutOptions\n * @property {string} [className]\n *\n * @typedef {CoreOptions & PluginOptions & LayoutOptions & FilterOptions & TransformOptions} ReactMarkdownOptions\n *\n * @typedef Deprecation\n * @property {string} id\n * @property {string} [to]\n */\n\nimport React from 'react'\nimport {VFile} from 'vfile'\nimport {unified} from 'unified'\nimport remarkParse from 'remark-parse'\nimport remarkRehype from 'remark-rehype'\nimport PropTypes from 'prop-types'\nimport {html} from 'property-information'\nimport rehypeFilter from './rehype-filter.js'\nimport {childrenToReact} from './ast-to-react.js'\n\nconst own = {}.hasOwnProperty\nconst changelog =\n 'https://github.com/remarkjs/react-markdown/blob/main/changelog.md'\n\n/** @type {Record<string, Deprecation>} */\nconst deprecated = {\n plugins: {to: 'remarkPlugins', id: 'change-plugins-to-remarkplugins'},\n renderers: {to: 'components', id: 'change-renderers-to-components'},\n astPlugins: {id: 'remove-buggy-html-in-markdown-parser'},\n allowDangerousHtml: {id: 'remove-buggy-html-in-markdown-parser'},\n escapeHtml: {id: 'remove-buggy-html-in-markdown-parser'},\n source: {to: 'children', id: 'change-source-to-children'},\n allowNode: {\n to: 'allowElement',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes'\n },\n allowedTypes: {\n to: 'allowedElements',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes'\n },\n disallowedTypes: {\n to: 'disallowedElements',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes'\n },\n includeNodeIndex: {\n to: 'includeElementIndex',\n id: 'change-includenodeindex-to-includeelementindex'\n }\n}\n\n/**\n * React component to render markdown.\n *\n * @param {ReactMarkdownOptions} options\n * @returns {ReactElement}\n */\nexport function ReactMarkdown(options) {\n for (const key in deprecated) {\n if (own.call(deprecated, key) && own.call(options, key)) {\n const deprecation = deprecated[key]\n console.warn(\n `[react-markdown] Warning: please ${\n deprecation.to ? `use \\`${deprecation.to}\\` instead of` : 'remove'\n } \\`${key}\\` (see <${changelog}#${deprecation.id}> for more info)`\n )\n delete deprecated[key]\n }\n }\n\n const processor = unified()\n .use(remarkParse)\n .use(options.remarkPlugins || [])\n .use(remarkRehype, {\n ...options.remarkRehypeOptions,\n allowDangerousHtml: true\n })\n .use(options.rehypePlugins || [])\n .use(rehypeFilter, options)\n\n const file = new VFile()\n\n if (typeof options.children === 'string') {\n file.value = options.children\n } else if (options.children !== undefined && options.children !== null) {\n console.warn(\n `[react-markdown] Warning: please pass a string as \\`children\\` (not: \\`${options.children}\\`)`\n )\n }\n\n const hastNode = processor.runSync(processor.parse(file), file)\n\n if (hastNode.type !== 'root') {\n throw new TypeError('Expected a `root` node')\n }\n\n /** @type {ReactElement} */\n let result = React.createElement(\n React.Fragment,\n {},\n childrenToReact({options, schema: html, listDepth: 0}, hastNode)\n )\n\n if (options.className) {\n result = React.createElement('div', {className: options.className}, result)\n }\n\n return result\n}\n\nReactMarkdown.propTypes = {\n // Core options:\n children: PropTypes.string,\n // Layout options:\n className: PropTypes.string,\n // Filter options:\n allowElement: PropTypes.func,\n allowedElements: PropTypes.arrayOf(PropTypes.string),\n disallowedElements: PropTypes.arrayOf(PropTypes.string),\n unwrapDisallowed: PropTypes.bool,\n // Plugin options:\n remarkPlugins: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n // prettier-ignore\n // type-coverage:ignore-next-line\n PropTypes.any\n )\n ])\n )\n ])\n ),\n rehypePlugins: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n // prettier-ignore\n // type-coverage:ignore-next-line\n PropTypes.any\n )\n ])\n )\n ])\n ),\n // Transform options:\n sourcePos: PropTypes.bool,\n rawSourcePos: PropTypes.bool,\n skipHtml: PropTypes.bool,\n includeElementIndex: PropTypes.bool,\n transformLinkUri: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n linkTarget: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n transformImageUri: PropTypes.func,\n components: PropTypes.object\n}\n"],"names":["own","hasOwnProperty","deprecated","plugins","to","id","renderers","astPlugins","allowDangerousHtml","escapeHtml","source","allowNode","allowedTypes","disallowedTypes","includeNodeIndex","ReactMarkdown","options","key","call","deprecation","console","warn","processor","unified","use","remarkParse","remarkPlugins","remarkRehype","remarkRehypeOptions","rehypePlugins","rehypeFilter","file","VFile","children","value","undefined","hastNode","runSync","parse","type","TypeError","result","React","createElement","Fragment","childrenToReact","schema","html","listDepth","className","propTypes","PropTypes","string","allowElement","func","allowedElements","arrayOf","disallowedElements","unwrapDisallowed","bool","oneOfType","object","any","sourcePos","rawSourcePos","skipHtml","includeElementIndex","transformLinkUri","linkTarget","transformImageUri","components"],"mappings":"whBAoCA,MAAM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AAYnB,EAAS,QAACU"}
1
+ {"version":3,"file":"react-markdown.js","sources":["../../../../../node_modules/react-markdown/lib/react-markdown.js"],"sourcesContent":["/**\n * @typedef {import('react').ReactNode} ReactNode\n * @typedef {import('react').ReactElement<{}>} ReactElement\n * @typedef {import('unified').PluggableList} PluggableList\n * @typedef {import('hast').Root} Root\n * @typedef {import('./rehype-filter.js').Options} FilterOptions\n * @typedef {import('./ast-to-react.js').Options} TransformOptions\n *\n * @typedef CoreOptions\n * @property {string} children\n *\n * @typedef PluginOptions\n * @property {PluggableList} [remarkPlugins=[]]\n * @property {PluggableList} [rehypePlugins=[]]\n * @property {import('remark-rehype').Options | undefined} [remarkRehypeOptions={}]\n *\n * @typedef LayoutOptions\n * @property {string} [className]\n *\n * @typedef {CoreOptions & PluginOptions & LayoutOptions & FilterOptions & TransformOptions} ReactMarkdownOptions\n *\n * @typedef Deprecation\n * @property {string} id\n * @property {string} [to]\n */\n\nimport React from 'react'\nimport {VFile} from 'vfile'\nimport {unified} from 'unified'\nimport remarkParse from 'remark-parse'\nimport remarkRehype from 'remark-rehype'\nimport PropTypes from 'prop-types'\nimport {html} from 'property-information'\nimport rehypeFilter from './rehype-filter.js'\nimport {childrenToReact} from './ast-to-react.js'\n\nconst own = {}.hasOwnProperty\nconst changelog =\n 'https://github.com/remarkjs/react-markdown/blob/main/changelog.md'\n\n/** @type {Record<string, Deprecation>} */\nconst deprecated = {\n plugins: {to: 'remarkPlugins', id: 'change-plugins-to-remarkplugins'},\n renderers: {to: 'components', id: 'change-renderers-to-components'},\n astPlugins: {id: 'remove-buggy-html-in-markdown-parser'},\n allowDangerousHtml: {id: 'remove-buggy-html-in-markdown-parser'},\n escapeHtml: {id: 'remove-buggy-html-in-markdown-parser'},\n source: {to: 'children', id: 'change-source-to-children'},\n allowNode: {\n to: 'allowElement',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes'\n },\n allowedTypes: {\n to: 'allowedElements',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes'\n },\n disallowedTypes: {\n to: 'disallowedElements',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes'\n },\n includeNodeIndex: {\n to: 'includeElementIndex',\n id: 'change-includenodeindex-to-includeelementindex'\n }\n}\n\n/**\n * React component to render markdown.\n *\n * @param {ReactMarkdownOptions} options\n * @returns {ReactElement}\n */\nexport function ReactMarkdown(options) {\n for (const key in deprecated) {\n if (own.call(deprecated, key) && own.call(options, key)) {\n const deprecation = deprecated[key]\n console.warn(\n `[react-markdown] Warning: please ${\n deprecation.to ? `use \\`${deprecation.to}\\` instead of` : 'remove'\n } \\`${key}\\` (see <${changelog}#${deprecation.id}> for more info)`\n )\n delete deprecated[key]\n }\n }\n\n const processor = unified()\n .use(remarkParse)\n .use(options.remarkPlugins || [])\n .use(remarkRehype, {\n ...options.remarkRehypeOptions,\n allowDangerousHtml: true\n })\n .use(options.rehypePlugins || [])\n .use(rehypeFilter, options)\n\n const file = new VFile()\n\n if (typeof options.children === 'string') {\n file.value = options.children\n } else if (options.children !== undefined && options.children !== null) {\n console.warn(\n `[react-markdown] Warning: please pass a string as \\`children\\` (not: \\`${options.children}\\`)`\n )\n }\n\n const hastNode = processor.runSync(processor.parse(file), file)\n\n if (hastNode.type !== 'root') {\n throw new TypeError('Expected a `root` node')\n }\n\n /** @type {ReactElement} */\n let result = React.createElement(\n React.Fragment,\n {},\n childrenToReact({options, schema: html, listDepth: 0}, hastNode)\n )\n\n if (options.className) {\n result = React.createElement('div', {className: options.className}, result)\n }\n\n return result\n}\n\nReactMarkdown.propTypes = {\n // Core options:\n children: PropTypes.string,\n // Layout options:\n className: PropTypes.string,\n // Filter options:\n allowElement: PropTypes.func,\n allowedElements: PropTypes.arrayOf(PropTypes.string),\n disallowedElements: PropTypes.arrayOf(PropTypes.string),\n unwrapDisallowed: PropTypes.bool,\n // Plugin options:\n remarkPlugins: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n // prettier-ignore\n // type-coverage:ignore-next-line\n PropTypes.any\n )\n ])\n )\n ])\n ),\n rehypePlugins: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.object,\n PropTypes.func,\n PropTypes.arrayOf(\n // prettier-ignore\n // type-coverage:ignore-next-line\n PropTypes.any\n )\n ])\n )\n ])\n ),\n // Transform options:\n sourcePos: PropTypes.bool,\n rawSourcePos: PropTypes.bool,\n skipHtml: PropTypes.bool,\n includeElementIndex: PropTypes.bool,\n transformLinkUri: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n linkTarget: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n transformImageUri: PropTypes.func,\n components: PropTypes.object\n}\n"],"names":["own","hasOwnProperty","deprecated","plugins","to","id","renderers","astPlugins","allowDangerousHtml","escapeHtml","source","allowNode","allowedTypes","disallowedTypes","includeNodeIndex","ReactMarkdown","options","key","call","deprecation","console","warn","processor","unified","use","remarkParse","remarkPlugins","remarkRehype","remarkRehypeOptions","rehypePlugins","rehypeFilter","file","VFile","children","value","undefined","hastNode","runSync","parse","type","TypeError","result","React","createElement","Fragment","childrenToReact","schema","html","listDepth","className","propTypes","PropTypes","string","allowElement","func","allowedElements","arrayOf","disallowedElements","unwrapDisallowed","bool","oneOfType","object","any","sourcePos","rawSourcePos","skipHtml","includeElementIndex","transformLinkUri","linkTarget","transformImageUri","components"],"mappings":"8gBAoCA,MAAMA,EAAM,CAAE,EAACC,eAKTC,EAAa,CACjBC,QAAS,CAACC,GAAI,gBAAiBC,GAAI,mCACnCC,UAAW,CAACF,GAAI,aAAcC,GAAI,kCAClCE,WAAY,CAACF,GAAI,wCACjBG,mBAAoB,CAACH,GAAI,wCACzBI,WAAY,CAACJ,GA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BH,UAAWE,EAAS,QAACC,OAErBC,aAAcF,EAAS,QAACG,KACxBC,gBAAiBJ,EAAS,QAACK,QAAQL,EAAAA,QAAUC,QAC7CK,mBAAoBN,EAAS,QAACK,QAAQL,EAAAA,QAAUC,QAChDM,iBAAkBP,EAAS,QAACQ,KAE5BjC,cAAeyB,EAAS,QAACK,QACvBL,EAAAA,QAAUS,UAAU,CAClBT,EAAAA,QAAUU,OACVV,EAAAA,QAAUG,KACVH,EAAAA,QAAUK,QACRL,EAAAA,QAAUS,UAAU,CAClBT,EAAAA,QAAUQ,KACVR,EAAAA,QAAUC,OACVD,EAAAA,QAAUU,OACVV,EAAAA,QAAUG,KACVH,EAAAA,QAAUK,QAGRL,EAAAA,QAAUW,WAMpBjC,cAAesB,EAAS,QAACK,QACvBL,EAAAA,QAAUS,UAAU,CAClBT,EAAAA,QAAUU,OACVV,EAAAA,QAAUG,KACVH,EAAAA,QAAUK,QACRL,EAAAA,QAAUS,UAAU,CAClBT,EAAAA,QAAUQ,KACVR,EAAAA,QAAUC,OACVD,EAAAA,QAAUU,OACVV,EAAAA,QAAUG,KACVH,EAAAA,QAAUK,QAGRL,EAAAA,QAAUW,WAOpBC,UAAWZ,EAAS,QAACQ,KACrBK,aAAcb,EAAS,QAACQ,KACxBM,SAAUd,EAAS,QAACQ,KACpBO,oBAAqBf,EAAS,QAACQ,KAC/BQ,iBAAkBhB,EAAS,QAACS,UAAU,CAACT,EAAS,QAACG,KAAMH,EAAAA,QAAUQ,OACjES,WAAYjB,EAAS,QAACS,UAAU,CAACT,EAAS,QAACG,KAAMH,EAAAA,QAAUC,SAC3DiB,kBAAmBlB,EAAS,QAACG,KAC7BgB,WAAYnB,EAAS,QAACU"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../mdast-util-from-markdown/lib/index.js");exports.default=function(t){Object.assign(this,{Parser:e=>{const n=this.data("settings");return s.fromMarkdown(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../../mdast-util-from-markdown/lib/index.js");exports.default=function(t){Object.assign(this,{Parser:e=>{const n=this.data("settings");return s.fromMarkdown(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/react-markdown/node_modules/remark-parse/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * @this {import('unified').Processor}\n * @type {import('unified').Plugin<[Options?] | void[], string, Root>}\n */\nexport default function remarkParse(options) {\n /** @type {import('unified').ParserFunction<Root>} */\n const parser = (doc) => {\n // Assume options.\n const settings = /** @type {Options} */ (this.data('settings'))\n\n return fromMarkdown(\n doc,\n Object.assign({}, settings, options, {\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: this.data('micromarkExtensions') || [],\n mdastExtensions: this.data('fromMarkdownExtensions') || []\n })\n )\n }\n\n Object.assign(this, {Parser: parser})\n}\n"],"names":["options","Object","assign","this","Parser","doc","settings","data","fromMarkdown","extensions","mdastExtensions"],"mappings":"iJAWe,SAAqBA,GAkBlCC,OAAOC,OAAOC,KAAM,CAACC,OAhBLC,IAEd,MAAMC,EAAmCH,KAAKI,KAAK,YAEnD,OAAOC,EAAYA,aACjBH,EACAJ,OAAOC,OAAO,GAAII,EAAUN,EAAS,CAInCS,WAAYN,KAAKI,KAAK,wBAA0B,GAChDG,gBAAiBP,KAAKI,KAAK,2BAA6B,KAE3D,GAIL"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/react-markdown/node_modules/remark-parse/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * @this {import('unified').Processor}\n * @type {import('unified').Plugin<[Options?] | void[], string, Root>}\n */\nexport default function remarkParse(options) {\n /** @type {import('unified').ParserFunction<Root>} */\n const parser = (doc) => {\n // Assume options.\n const settings = /** @type {Options} */ (this.data('settings'))\n\n return fromMarkdown(\n doc,\n Object.assign({}, settings, options, {\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: this.data('micromarkExtensions') || [],\n mdastExtensions: this.data('fromMarkdownExtensions') || []\n })\n )\n }\n\n Object.assign(this, {Parser: parser})\n}\n"],"names":["options","Object","assign","this","Parser","doc","settings","data","fromMarkdown","extensions","mdastExtensions"],"mappings":"uJAWe,SAAqBA,GAkBlCC,OAAOC,OAAOC,KAAM,CAACC,OAhBLC,IAEd,MAAMC,EAAmCH,KAAKI,KAAK,YAEnD,OAAOC,EAAYA,aACjBH,EACAJ,OAAOC,OAAO,GAAII,EAAUN,EAAS,CAInCS,WAAYN,KAAKI,KAAK,wBAA0B,GAChDG,gBAAiBP,KAAKI,KAAK,2BAA6B,KAE3D,GAIL"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../micromark-extension-gfm/index.js"),o=require("../mdast-util-gfm/lib/index.js");exports.default=function(n={}){const r=this.data();function t(e,o){(r[e]?r[e]:r[e]=[]).push(o)}t("micromarkExtensions",e.gfm(n)),t("fromMarkdownExtensions",o.gfmFromMarkdown()),t("toMarkdownExtensions",o.gfmToMarkdown(n))};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/remark-gfm/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('micromark-extension-gfm').Options & import('mdast-util-gfm').Options} Options\n */\n\nimport {gfm} from 'micromark-extension-gfm'\nimport {gfmFromMarkdown, gfmToMarkdown} from 'mdast-util-gfm'\n\n/**\n * Plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists).\n *\n * @type {import('unified').Plugin<[Options?]|void[], Root>}\n */\nexport default function remarkGfm(options = {}) {\n const data = this.data()\n\n add('micromarkExtensions', gfm(options))\n add('fromMarkdownExtensions', gfmFromMarkdown())\n add('toMarkdownExtensions', gfmToMarkdown(options))\n\n /**\n * @param {string} field\n * @param {unknown} value\n */\n function add(field, value) {\n const list = /** @type {unknown[]} */ (\n // Other extensions\n /* c8 ignore next 2 */\n data[field] ? data[field] : (data[field] = [])\n )\n\n list.push(value)\n }\n}\n"],"names":["options","data","this","add","field","value","push","gfm","gfmFromMarkdown","gfmToMarkdown"],"mappings":"qLAae,SAAmBA,EAAU,IAC1C,MAAMC,EAAOC,KAAKD,OAUlB,SAASE,EAAIC,EAAOC,IAIhBJ,EAAKG,GAASH,EAAKG,GAAUH,EAAKG,GAAS,IAGxCE,KAAKD,EACX,CAhBDF,EAAI,sBAAuBI,MAAIP,IAC/BG,EAAI,yBAA0BK,EAAAA,mBAC9BL,EAAI,uBAAwBM,gBAAcT,GAe5C"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../bail/index.js"),n=require("../../../_virtual/index7.js"),r=require("../../../_virtual/index8.js"),t=require("../node_modules/is-plain-obj/index.js"),o=require("../../trough/lib/index.js"),i=require("../node_modules/vfile/lib/index.js");const s=function i(){const s=o.trough(),g=[];let w,h={},b=-1;return m.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(a("data",w),h[e]=n,m):u.call(h,e)&&h[e]||null;if(e)return a("data",w),h=e,m;return h},m.Parser=void 0,m.Compiler=void 0,m.freeze=function(){if(w)return m;for(;++b<g.length;){const[e,...n]=g[b];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=e.call(m,...n);"function"==typeof r&&s.use(r)}return w=!0,b=Number.POSITIVE_INFINITY,m},m.attachers=g,m.use=function(e,...n){let o;if(a("use",w),null==e);else if("function"==typeof e)f(e,...n);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):s(e)}o&&(h.settings=Object.assign(h.settings||{},o));return m;function i(e){if("function"==typeof e)f(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[n,...r]=e;f(n,...r)}else s(e)}}function s(e){u(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function u(e){let n=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++n<e.length;){i(e[n])}}}function f(e,n){let o,i=-1;for(;++i<g.length;)if(g[i][0]===e){o=g[i];break}o?(t.default(o[1])&&t.default(n)&&(n=r.default(!0,o[1],n)),o[1]=n):g.push([...arguments])}},m.parse=function(e){m.freeze();const n=d(e),r=m.Parser;if(c("parse",r),f(r,"parse"))return new r(String(n),n).parse();return r(String(n),n)},m.stringify=function(e,n){m.freeze();const r=d(n),t=m.Compiler;if(l("stringify",t),p(e),f(t,"compile"))return new t(e,r).compile();return t(e,r)},m.run=function(e,n,r){p(e),m.freeze(),r||"function"!=typeof n||(r=n,n=void 0);if(!r)return new Promise(t);function t(t,o){function i(n,i,s){i=i||e,n?o(n):t?t(i):r(null,i,s)}s.run(e,d(n),i)}t(null,r)},m.runSync=function(n,r){let t,o;return m.run(n,r,i),y("runSync","run",o),t;function i(n,r){e.bail(n),t=r,o=!0}},m.process=function(e,r){if(m.freeze(),c("process",m.Parser),l("process",m.Compiler),!r)return new Promise(t);function t(t,o){const i=d(e);function s(e,n){e||!n?o(e):t?t(n):r(null,n)}m.run(m.parse(i),i,((e,r,t)=>{if(!e&&r&&t){const i=m.stringify(r,t);null==i||("string"==typeof(o=i)||n.default(o)?t.value=i:t.result=i),s(e,t)}else s(e);var o}))}t(null,r)},m.processSync=function(n){let r;m.freeze(),c("processSync",m.Parser),l("processSync",m.Compiler);const t=d(n);return m.process(t,o),y("processSync","process",r),t;function o(n){r=!0,e.bail(n)}},m;function m(){const e=i();let n=-1;for(;++n<g.length;)e.use(...g[n]);return e.data(r.default(!0,{},h)),e}}().freeze(),u={}.hasOwnProperty;function f(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(u.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function c(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Parser`")}function l(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function a(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function p(e){if(!t.default(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function y(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function d(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new i.VFile(e)}exports.unified=s;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/unified/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFileCompatible} VFileCompatible\n * @typedef {import('vfile').VFileValue} VFileValue\n * @typedef {import('..').Processor} Processor\n * @typedef {import('..').Plugin} Plugin\n * @typedef {import('..').Preset} Preset\n * @typedef {import('..').Pluggable} Pluggable\n * @typedef {import('..').PluggableList} PluggableList\n * @typedef {import('..').Transformer} Transformer\n * @typedef {import('..').Parser} Parser\n * @typedef {import('..').Compiler} Compiler\n * @typedef {import('..').RunCallback} RunCallback\n * @typedef {import('..').ProcessCallback} ProcessCallback\n *\n * @typedef Context\n * @property {Node} tree\n * @property {VFile} file\n */\n\nimport {bail} from 'bail'\nimport isBuffer from 'is-buffer'\nimport extend from 'extend'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\n\n// Expose a frozen processor.\nexport const unified = base().freeze()\n\nconst own = {}.hasOwnProperty\n\n// Function to create the first processor.\n/**\n * @returns {Processor}\n */\nfunction base() {\n const transformers = trough()\n /** @type {Processor['attachers']} */\n const attachers = []\n /** @type {Record<string, unknown>} */\n let namespace = {}\n /** @type {boolean|undefined} */\n let frozen\n let freezeIndex = -1\n\n // Data management.\n // @ts-expect-error: overloads are handled.\n processor.data = data\n processor.Parser = undefined\n processor.Compiler = undefined\n\n // Lock.\n processor.freeze = freeze\n\n // Plugins.\n processor.attachers = attachers\n // @ts-expect-error: overloads are handled.\n processor.use = use\n\n // API.\n processor.parse = parse\n processor.stringify = stringify\n // @ts-expect-error: overloads are handled.\n processor.run = run\n processor.runSync = runSync\n // @ts-expect-error: overloads are handled.\n processor.process = process\n processor.processSync = processSync\n\n // Expose.\n return processor\n\n // Create a new processor based on the processor in the current scope.\n /** @type {Processor} */\n function processor() {\n const destination = base()\n let index = -1\n\n while (++index < attachers.length) {\n destination.use(...attachers[index])\n }\n\n destination.data(extend(true, {}, namespace))\n\n return destination\n }\n\n /**\n * @param {string|Record<string, unknown>} [key]\n * @param {unknown} [value]\n * @returns {unknown}\n */\n function data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', frozen)\n namespace[key] = value\n return processor\n }\n\n // Get `key`.\n return (own.call(namespace, key) && namespace[key]) || null\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', frozen)\n namespace = key\n return processor\n }\n\n // Get space.\n return namespace\n }\n\n /** @type {Processor['freeze']} */\n function freeze() {\n if (frozen) {\n return processor\n }\n\n while (++freezeIndex < attachers.length) {\n const [attacher, ...options] = attachers[freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n /** @type {Transformer|void} */\n const transformer = attacher.call(processor, ...options)\n\n if (typeof transformer === 'function') {\n transformers.use(transformer)\n }\n }\n\n frozen = true\n freezeIndex = Number.POSITIVE_INFINITY\n\n return processor\n }\n\n /**\n * @param {Pluggable|null|undefined} [value]\n * @param {...unknown} options\n * @returns {Processor}\n */\n function use(value, ...options) {\n /** @type {Record<string, unknown>|undefined} */\n let settings\n\n assertUnfrozen('use', frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, ...options)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n if (settings) {\n namespace.settings = Object.assign(namespace.settings || {}, settings)\n }\n\n return processor\n\n /**\n * @param {import('..').Pluggable<unknown[]>} value\n * @returns {void}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...options] = value\n addPlugin(plugin, ...options)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {void}\n */\n function addPreset(result) {\n addList(result.plugins)\n\n if (result.settings) {\n settings = Object.assign(settings || {}, result.settings)\n }\n }\n\n /**\n * @param {PluggableList|null|undefined} [plugins]\n * @returns {void}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {...unknown} [value]\n * @returns {void}\n */\n function addPlugin(plugin, value) {\n let index = -1\n /** @type {Processor['attachers'][number]|undefined} */\n let entry\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entry = attachers[index]\n break\n }\n }\n\n if (entry) {\n if (isPlainObj(entry[1]) && isPlainObj(value)) {\n value = extend(true, entry[1], value)\n }\n\n entry[1] = value\n } else {\n // @ts-expect-error: fine.\n attachers.push([...arguments])\n }\n }\n }\n\n /** @type {Processor['parse']} */\n function parse(doc) {\n processor.freeze()\n const file = vfile(doc)\n const Parser = processor.Parser\n assertParser('parse', Parser)\n\n if (newable(Parser, 'parse')) {\n // @ts-expect-error: `newable` checks this.\n return new Parser(String(file), file).parse()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Parser(String(file), file) // eslint-disable-line new-cap\n }\n\n /** @type {Processor['stringify']} */\n function stringify(node, doc) {\n processor.freeze()\n const file = vfile(doc)\n const Compiler = processor.Compiler\n assertCompiler('stringify', Compiler)\n assertNode(node)\n\n if (newable(Compiler, 'compile')) {\n // @ts-expect-error: `newable` checks this.\n return new Compiler(node, file).compile()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Compiler(node, file) // eslint-disable-line new-cap\n }\n\n /**\n * @param {Node} node\n * @param {VFileCompatible|RunCallback} [doc]\n * @param {RunCallback} [callback]\n * @returns {Promise<Node>|void}\n */\n function run(node, doc, callback) {\n assertNode(node)\n processor.freeze()\n\n if (!callback && typeof doc === 'function') {\n callback = doc\n doc = undefined\n }\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((node: Node) => void)} resolve\n * @param {(error: Error) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n // @ts-expect-error: `doc` can’t be a callback anymore, we checked.\n transformers.run(node, vfile(doc), done)\n\n /**\n * @param {Error|null} error\n * @param {Node} tree\n * @param {VFile} file\n * @returns {void}\n */\n function done(error, tree, file) {\n tree = tree || node\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(tree)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, tree, file)\n }\n }\n }\n }\n\n /** @type {Processor['runSync']} */\n function runSync(node, file) {\n /** @type {Node|undefined} */\n let result\n /** @type {boolean|undefined} */\n let complete\n\n processor.run(node, file, done)\n\n assertDone('runSync', 'run', complete)\n\n // @ts-expect-error: we either bailed on an error or have a tree.\n return result\n\n /**\n * @param {Error|null} [error]\n * @param {Node} [tree]\n * @returns {void}\n */\n function done(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * @param {VFileCompatible} doc\n * @param {ProcessCallback} [callback]\n * @returns {Promise<VFile>|undefined}\n */\n function process(doc, callback) {\n processor.freeze()\n assertParser('process', processor.Parser)\n assertCompiler('process', processor.Compiler)\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((file: VFile) => void)} resolve\n * @param {(error?: Error|null|undefined) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n const file = vfile(doc)\n\n processor.run(processor.parse(file), file, (error, tree, file) => {\n if (error || !tree || !file) {\n done(error)\n } else {\n /** @type {unknown} */\n const result = processor.stringify(tree, file)\n\n if (result === undefined || result === null) {\n // Empty.\n } else if (looksLikeAVFileValue(result)) {\n file.value = result\n } else {\n file.result = result\n }\n\n done(error, file)\n }\n })\n\n /**\n * @param {Error|null|undefined} [error]\n * @param {VFile|undefined} [file]\n * @returns {void}\n */\n function done(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, file)\n }\n }\n }\n }\n\n /** @type {Processor['processSync']} */\n function processSync(doc) {\n /** @type {boolean|undefined} */\n let complete\n\n processor.freeze()\n assertParser('processSync', processor.Parser)\n assertCompiler('processSync', processor.Compiler)\n\n const file = vfile(doc)\n\n processor.process(file, done)\n\n assertDone('processSync', 'process', complete)\n\n return file\n\n /**\n * @param {Error|null|undefined} [error]\n * @returns {void}\n */\n function done(error) {\n complete = true\n bail(error)\n }\n }\n}\n\n/**\n * Check if `value` is a constructor.\n *\n * @param {unknown} value\n * @param {string} name\n * @returns {boolean}\n */\nfunction newable(value, name) {\n return (\n typeof value === 'function' &&\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n value.prototype &&\n // A function with keys in its prototype is probably a constructor.\n // Classes’ prototype methods are not enumerable, so we check if some value\n // exists in the prototype.\n // type-coverage:ignore-next-line\n (keys(value.prototype) || name in value.prototype)\n )\n}\n\n/**\n * Check if `value` is an object with keys.\n *\n * @param {Record<string, unknown>} value\n * @returns {boolean}\n */\nfunction keys(value) {\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is VFileValue}\n */\nfunction looksLikeAVFileValue(value) {\n return typeof value === 'string' || isBuffer(value)\n}\n"],"names":["unified","base","transformers","trough","attachers","frozen","namespace","freezeIndex","processor","data","key","value","arguments","length","assertUnfrozen","own","call","Parser","undefined","Compiler","freeze","attacher","options","transformer","use","Number","POSITIVE_INFINITY","settings","addPlugin","TypeError","Array","isArray","addList","addPreset","Object","assign","add","plugin","result","plugins","index","entry","isPlainObj","extend","push","parse","doc","file","vfile","assertParser","newable","String","stringify","node","assertCompiler","assertNode","compile","run","callback","Promise","executor","resolve","reject","done","error","tree","runSync","complete","assertDone","bail","process","isBuffer","processSync","destination","hasOwnProperty","name","prototype","keys","Error","type","asyncName","Boolean","looksLikeAVFile","VFile"],"mappings":"qUA4BY,MAACA,EAQb,SAASC,IACP,MAAMC,EAAeC,EAAAA,SAEfC,EAAY,GAElB,IAEIC,EAFAC,EAAY,CAAE,EAGdC,GAAe,EA2BnB,OAvBAC,EAAUC,KA6CV,SAAcC,EAAKC,GACjB,GAAmB,iBAARD,EAET,OAAyB,IAArBE,UAAUC,QACZC,EAAe,OAAQT,GACvBC,EAAUI,GAAOC,EACVH,GAIDO,EAAIC,KAAKV,EAAWI,IAAQJ,EAAUI,IAAS,KAIzD,GAAIA,EAGF,OAFAI,EAAe,OAAQT,GACvBC,EAAYI,EACLF,EAIT,OAAOF,CACR,EAlEDE,EAAUS,YAASC,EACnBV,EAAUW,cAAWD,EAGrBV,EAAUY,OAiEV,WACE,GAAIf,EACF,OAAOG,EAGT,OAASD,EAAcH,EAAUS,QAAQ,CACvC,MAAOQ,KAAaC,GAAWlB,EA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A,EAAQpC,EAAUS,QACzB4D,EAAYjD,OAAOpB,EAAUoC,IAK/B,OAFAiC,EAAYhE,KAAKkC,EAAM,SAAC,EAAM,CAAE,EAAErC,IAE3BmE,CACR,CAiXH,CA3auBxE,GAAOmB,SAExBL,EAAM,CAAE,EAAC2D,eAkbf,SAASxB,EAAQvC,EAAOgE,GACtB,MACmB,mBAAVhE,GAGPA,EAAMiE,YAeV,SAAcjE,GAEZ,IAAID,EAEJ,IAAKA,KAAOC,EACV,GAAII,EAAIC,KAAKL,EAAOD,GAClB,OAAO,EAIX,OAAO,CACT,CArBKmE,CAAKlE,EAAMiE,YAAcD,KAAQhE,EAAMiE,UAE5C,CA4BA,SAAS3B,EAAa0B,EAAMhE,GAC1B,GAAqB,mBAAVA,EACT,MAAM,IAAIkB,UAAU,WAAa8C,EAAO,qBAE5C,CASA,SAASrB,EAAeqB,EAAMhE,GAC5B,GAAqB,mBAAVA,EACT,MAAM,IAAIkB,UAAU,WAAa8C,EAAO,uBAE5C,CASA,SAAS7D,EAAe6D,EAAMtE,GAC5B,GAAIA,EACF,MAAM,IAAIyE,MACR,gBACEH,EACA,mHAGR,CAQA,SAASpB,EAAWF,GAGlB,IAAKX,EAAU,QAACW,IAA8B,iBAAdA,EAAK0B,KACnC,MAAM,IAAIlD,UAAU,uBAAyBwB,EAAO,IAGxD,CAUA,SAASe,EAAWO,EAAMK,EAAWb,GACnC,IAAKA,EACH,MAAM,IAAIW,MACR,IAAMH,EAAO,0BAA4BK,EAAY,YAG3D,CAMA,SAAShC,EAAMrC,GACb,OAOF,SAAyBA,GACvB,OAAOsE,QACLtE,GACmB,iBAAVA,GACP,YAAaA,GACb,aAAcA,EAEpB,CAdSuE,CAAgBvE,GAASA,EAAQ,IAAIwE,EAAAA,MAAMxE,EACpD"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/unified/node_modules/is-plain-obj/index.js"],"sourcesContent":["export default function isPlainObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);\n}\n"],"names":["value","prototype","Object","getPrototypeOf","Symbol","toStringTag","iterator"],"mappings":"oFAAe,SAAuBA,GACrC,GAAqB,iBAAVA,GAAgC,OAAVA,EAChC,OAAO,EAGR,MAAMC,EAAYC,OAAOC,eAAeH,GACxC,QAAsB,OAAdC,GAAsBA,IAAcC,OAAOD,WAAkD,OAArCC,OAAOC,eAAeF,IAA0BG,OAAOC,eAAeL,GAAYI,OAAOE,YAAYN,EACtK"}
@@ -0,0 +1,2 @@
1
+ "use strict";function n(n){return e(n&&n.line)+":"+e(n&&n.column)}function t(t){return n(t&&t.start)+"-"+n(t&&t.end)}function e(n){return n&&"number"==typeof n?n:1}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringifyPosition=function(e){return e&&"object"==typeof e?"position"in e||"type"in e?t(e.position):"start"in e||"end"in e?t(e):"line"in e||"column"in e?n(e):"":""};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/unified/node_modules/unist-util-stringify-position/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Serialize the positional info of a point, position (start and end points),\n * or node.\n *\n * @param {Node | NodeLike | Position | PositionLike | Point | PointLike | null | undefined} [value]\n * Node, position, or point.\n * @returns {string}\n * Pretty printed positional info of a node (`string`).\n *\n * In the format of a range `ls:cs-le:ce` (when given `node` or `position`)\n * or a point `l:c` (when given `point`), where `l` stands for line, `c` for\n * column, `s` for `start`, and `e` for end.\n * An empty string (`''`) is returned if the given value is neither `node`,\n * `position`, nor `point`.\n */\nexport function stringifyPosition(value) {\n // Nothing.\n if (!value || typeof value !== 'object') {\n return ''\n }\n\n // Node.\n if ('position' in value || 'type' in value) {\n return position(value.position)\n }\n\n // Position.\n if ('start' in value || 'end' in value) {\n return position(value)\n }\n\n // Point.\n if ('line' in value || 'column' in value) {\n return point(value)\n }\n\n // ?\n return ''\n}\n\n/**\n * @param {Point | PointLike | null | undefined} point\n * @returns {string}\n */\nfunction point(point) {\n return index(point && point.line) + ':' + index(point && point.column)\n}\n\n/**\n * @param {Position | PositionLike | null | undefined} pos\n * @returns {string}\n */\nfunction position(pos) {\n return point(pos && pos.start) + '-' + point(pos && pos.end)\n}\n\n/**\n * @param {number | null | undefined} value\n * @returns {number}\n */\nfunction index(value) {\n return value && typeof value === 'number' ? value : 1\n}\n"],"names":["point","index","line","column","position","pos","start","end","value"],"mappings":"aAiEA,SAASA,EAAMA,GACb,OAAOC,EAAMD,GAASA,EAAME,MAAQ,IAAMD,EAAMD,GAASA,EAAMG,OACjE,CAMA,SAASC,EAASC,GAChB,OAAOL,EAAMK,GAAOA,EAAIC,OAAS,IAAMN,EAAMK,GAAOA,EAAIE,IAC1D,CAMA,SAASN,EAAMO,GACb,OAAOA,GAA0B,iBAAVA,EAAqBA,EAAQ,CACtD,kFA/CO,SAA2BA,GAEhC,OAAKA,GAA0B,iBAAVA,EAKjB,aAAcA,GAAS,SAAUA,EAC5BJ,EAASI,EAAMJ,UAIpB,UAAWI,GAAS,QAASA,EACxBJ,EAASI,GAId,SAAUA,GAAS,WAAYA,EAC1BR,EAAMQ,GAIR,GAnBE,EAoBX"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../../_virtual/index7.js"),e=require("../../vfile-message/lib/index.js"),s=require("./minpath.browser.js"),i=require("./minproc.browser.js"),a=require("./minurl.browser.js"),r=require("./minurl.shared.js");const n=["history","path","basename","stem","extname","dirname"];function h(t,e){if(t&&t.includes(s.path.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+s.path.sep+"`")}function o(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function p(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}exports.VFile=class{constructor(e){let s;s=e?"string"==typeof e||function(e){return t.default(e)}(e)?{value:e}:r.isUrl(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=i.proc.cwd(),this.value,this.stored,this.result,this.map;let a,h=-1;for(;++h<n.length;){const t=n[h];t in s&&void 0!==s[t]&&null!==s[t]&&(this[t]="history"===t?[...s[t]]:s[t])}for(a in s)n.includes(a)||(this[a]=s[a])}get path(){return this.history[this.history.length-1]}set path(t){r.isUrl(t)&&(t=a.urlToPath(t)),o(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return"string"==typeof this.path?s.path.dirname(this.path):void 0}set dirname(t){p(this.basename,"dirname"),this.path=s.path.join(t||"",this.basename)}get basename(){return"string"==typeof this.path?s.path.basename(this.path):void 0}set basename(t){o(t,"basename"),h(t,"basename"),this.path=s.path.join(this.dirname||"",t)}get extname(){return"string"==typeof this.path?s.path.extname(this.path):void 0}set extname(t){if(h(t,"extname"),p(this.dirname,"extname"),t){if(46!==t.charCodeAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=s.path.join(this.dirname,this.stem+(t||""))}get stem(){return"string"==typeof this.path?s.path.basename(this.path,this.extname):void 0}set stem(t){o(t,"stem"),h(t,"stem"),this.path=s.path.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,s,i){const a=new e.VFileMessage(t,s,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}info(t,e,s){const i=this.message(t,e,s);return i.fatal=null,i}fail(t,e,s){const i=this.message(t,e,s);throw i.fatal=!0,i}};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/unified/node_modules/vfile/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {import('./minurl.shared.js').URL} URL\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {Record<string, unknown> & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding\n * Encodings supported by the buffer class.\n *\n * This is a copy of the types from Node, copied to prevent Node globals from\n * being needed.\n * Copied from: <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/90a4ec8/types/node/buffer.d.ts#L170>\n *\n * @typedef {Options | URL | Value | VFile} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {Value | null | undefined} [value]\n * Set `value`.\n * @property {string | null | undefined} [cwd]\n * Set `cwd`.\n * @property {Array<string> | null | undefined} [history]\n * Set `history`.\n * @property {URL | string | null | undefined} [path]\n * Set `path`.\n * @property {string | null | undefined} [basename]\n * Set `basename`.\n * @property {string | null | undefined} [stem]\n * Set `stem`.\n * @property {string | null | undefined} [extname]\n * Set `extname`.\n * @property {string | null | undefined} [dirname]\n * Set `dirname`.\n * @property {Data | null | undefined} [data]\n * Set `data`.\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * <https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23>.\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array<string>} sources\n * An array of URLs to the original source files.\n * @property {Array<string>} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array<string> | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record<string, unknown>} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template {ReporterSettings} Settings\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array<VFile>} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport bufferLike from 'is-buffer'\nimport {VFileMessage} from 'vfile-message'\nimport {path} from './minpath.js'\nimport {proc} from './minproc.js'\nimport {urlToPath, isUrl} from './minurl.js'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n *\n * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}\n */\nconst order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Buffer` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (typeof value === 'string' || buffer(value)) {\n options = {value}\n } else if (isUrl(value)) {\n options = {path: value}\n } else {\n options = value\n }\n\n /**\n * Place to store custom information (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array<VFileMessage>}\n */\n this.messages = []\n\n /**\n * List of filepaths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array<string>}\n */\n this.history = []\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /* eslint-disable no-unused-expressions */\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {string | URL} path\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the parent path (example: `'~'`).\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.charCodeAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n /**\n * Serialize the file.\n *\n * @param {BufferEncoding | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Buffer`\n * (default: `'utf8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n return (this.value || '').toString(encoding || undefined)\n }\n\n /**\n * Create a warning message associated with the file.\n *\n * Its `fatal` is set to `false` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(reason, place, origin) {\n const message = new VFileMessage(reason, place, origin)\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Create an info message associated with the file.\n *\n * Its `fatal` is set to `null` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = null\n\n return message\n }\n\n /**\n * Create a fatal error associated with the file.\n *\n * Its `fatal` is set to `true` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * > 👉 **Note**: a fatal error means that a file is no longer processable.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Message.\n * @throws {VFileMessage}\n * Message.\n */\n fail(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = true\n\n throw message\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {void}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is a buffer.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Buffer}\n * Whether `value` is a Node.js buffer.\n */\nfunction buffer(value) {\n return bufferLike(value)\n}\n"],"names":["order","assertPart","part","name","includes","path","sep","Error","assertNonEmpty","assertPath","constructor","value","options","bufferLike","buffer","isUrl","this","data","messages","history","cwd","proc","stored","result","map","prop","index","length","undefined","urlToPath","push","dirname","basename","join","extname","charCodeAt","stem","toString","encoding","message","reason","place","origin","VFileMessage","file","fatal","info","fail"],"mappings":"0SAkGA,MAAMA,EAAQ,CAAC,UAAW,OAAQ,WAAY,OAAQ,UAAW,WAmXjE,SAASC,EAAWC,EAAMC,GACxB,GAAID,GAAQA,EAAKE,SAASC,EAAIA,KAACC,KAC7B,MAAM,IAAIC,MACR,IAAMJ,EAAO,uCAAyCE,EAAIA,KAACC,IAAM,IAGvE,CAYA,SAASE,EAAeN,EAAMC,GAC5B,IAAKD,EACH,MAAM,IAAIK,MAAM,IAAMJ,EAAO,oBAEjC,CAYA,SAASM,EAAWJ,EAAMF,GACxB,IAAKE,EACH,MAAM,IAAIE,MAAM,YAAcJ,EAAO,kCAEzC,eAvZO,MAuBL,WAAAO,CAAYC,GAEV,IAAIC,EAKFA,EAHGD,EAEuB,iBAAVA,GAoYtB,SAAgBA,GACd,OAAOE,EAAAA,QAAWF,EACpB,CAtY4CG,CAAOH,GACnC,CAACA,SACFI,EAAAA,MAAMJ,GACL,CAACN,KAAMM,GAEPA,EANA,CAAE,EAiBdK,KAAKC,KAAO,CAAE,EAOdD,KAAKE,SAAW,GAShBF,KAAKG,QAAU,GAOfH,KAAKI,IAAMC,EAAIA,KAACD,MAQhBJ,KAAKL,MAYLK,KAAKM,OAULN,KAAKO,OAULP,KAAKQ,IAIL,IAkBIC,EAlBAC,GAAS,EAEb,OAASA,EAAQ1B,EAAM2B,QAAQ,CAC7B,MAAMF,EAAOzB,EAAM0B,GAKjBD,KAAQb,QACUgB,IAAlBhB,EAAQa,IACU,OAAlBb,EAAQa,KAGRT,KAAKS,GAAiB,YAATA,EAAqB,IAAIb,EAAQa,IAASb,EAAQa,GAElE,CAMD,IAAKA,KAAQb,EAENZ,EAAMI,SAASqB,KAElBT,KAAKS,GAAQb,EAAQa,GAG1B,CAOD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KX,KAAOA,OAAK4B,KAAKjB,KAAKe,SAAW,GAAIK,GAAQpB,KAAKkB,SAAW,IACnE,CAWD,QAAAG,CAASC,GACP,OAAQtB,KAAKL,OAAS,IAAI0B,SAASC,QAAYV,EAChD,CAkBD,OAAAW,CAAQC,EAAQC,EAAOC,GACrB,MAAMH,EAAU,IAAII,EAAAA,aAAaH,EAAQC,EAAOC,GAWhD,OATI1B,KAAKX,OACPkC,EAAQpC,KAAOa,KAAKX,KAAO,IAAMkC,EAAQpC,KACzCoC,EAAQK,KAAO5B,KAAKX,MAGtBkC,EAAQM,OAAQ,EAEhB7B,KAAKE,SAASY,KAAKS,GAEZA,CACR,CAkBD,IAAAO,CAAKN,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,OAFAH,EAAQM,MAAQ,KAETN,CACR,CAsBD,IAAAQ,CAAKP,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,MAFAH,EAAQM,OAAQ,EAEVN,CACP"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);let r,i=0,l=-1,o=e.length;if(void 0===n||0===n.length||n.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(r){i=o+1;break}}else l<0&&(r=!0,l=o+1);return l<0?"":e.slice(i,l)}if(n===e)return"";let f=-1,h=n.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(r){i=o+1;break}}else f<0&&(r=!0,f=o+1),h>-1&&(e.charCodeAt(o)===n.charCodeAt(h--)?h<0&&(l=o):(h=-1,l=f));i===l?l=f:l<0&&(l=e.length);return e.slice(i,l)},dirname:function(e){if(t(e),0===e.length)return".";let n,r=-1,i=e.length;for(;--i;)if(47===e.charCodeAt(i)){if(n){r=i;break}}else n||(n=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)},extname:function(e){t(e);let n,r=e.length,i=-1,l=0,o=-1,f=0;for(;r--;){const t=e.charCodeAt(r);if(47!==t)i<0&&(n=!0,i=r+1),46===t?o<0?o=r:1!==f&&(f=1):o>-1&&(f=-1);else if(n){l=r+1;break}}if(o<0||i<0||0===f||1===f&&o===i-1&&o===l+1)return"";return e.slice(o,i)},join:function(...e){let n,r=-1;for(;++r<e.length;)t(e[r]),e[r]&&(n=void 0===n?e[r]:n+"/"+e[r]);return void 0===n?".":function(e){t(e);const n=47===e.charCodeAt(0);let r=function(e,t){let n,r,i="",l=0,o=-1,f=0,h=-1;for(;++h<=e.length;){if(h<e.length)n=e.charCodeAt(h);else{if(47===n)break;n=47}if(47===n){if(o===h-1||1===f);else if(o!==h-1&&2===f){if(i.length<2||2!==l||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",l=0):(i=i.slice(0,r),l=i.length-1-i.lastIndexOf("/")),o=h,f=0;continue}}else if(i.length>0){i="",l=0,o=h,f=0;continue}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,h):i=e.slice(o+1,h),l=h-o-1;o=h,f=0}else 46===n&&f>-1?f++:f=-1}return i}(e,!n);0!==r.length||n||(r=".");r.length>0&&47===e.charCodeAt(e.length-1)&&(r+="/");return n?"/"+r:r}(n)},sep:"/"};function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}exports.path=e;
2
+ //# sourceMappingURL=minpath.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minpath.browser.js","sources":["../../../../../../../node_modules/unified/node_modules/vfile/lib/minpath.browser.js"],"sourcesContent":["// A derivative work based on:\n// <https://github.com/browserify/path-browserify>.\n// Which is licensed:\n//\n// MIT License\n//\n// Copyright (c) 2013 James Halliday\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A derivative work based on:\n//\n// Parts of that are extracted from Node’s internal `path` module:\n// <https://github.com/nodejs/node/blob/master/lib/path.js>.\n// Which is licensed:\n//\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nexport const path = {basename, dirname, extname, join, sep: '/'}\n\n/* eslint-disable max-depth, complexity */\n\n/**\n * Get the basename from a path.\n *\n * @param {string} path\n * File path.\n * @param {string | undefined} [ext]\n * Extension to strip.\n * @returns {string}\n * Stem or basename.\n */\nfunction basename(path, ext) {\n if (ext !== undefined && typeof ext !== 'string') {\n throw new TypeError('\"ext\" argument must be a string')\n }\n\n assertPath(path)\n let start = 0\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let seenNonSlash\n\n if (ext === undefined || ext.length === 0 || ext.length > path.length) {\n while (index--) {\n if (path.charCodeAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // path component.\n seenNonSlash = true\n end = index + 1\n }\n }\n\n return end < 0 ? '' : path.slice(start, end)\n }\n\n if (ext === path) {\n return ''\n }\n\n let firstNonSlashEnd = -1\n let extIndex = ext.length - 1\n\n while (index--) {\n if (path.charCodeAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else {\n if (firstNonSlashEnd < 0) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching.\n seenNonSlash = true\n firstNonSlashEnd = index + 1\n }\n\n if (extIndex > -1) {\n // Try to match the explicit extension.\n if (path.charCodeAt(index) === ext.charCodeAt(extIndex--)) {\n if (extIndex < 0) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = index\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extIndex = -1\n end = firstNonSlashEnd\n }\n }\n }\n }\n\n if (start === end) {\n end = firstNonSlashEnd\n } else if (end < 0) {\n end = path.length\n }\n\n return path.slice(start, end)\n}\n\n/**\n * Get the dirname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\nfunction dirname(path) {\n assertPath(path)\n\n if (path.length === 0) {\n return '.'\n }\n\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n // Prefix `--` is important to not run on `0`.\n while (--index) {\n if (path.charCodeAt(index) === 47 /* `/` */) {\n if (unmatchedSlash) {\n end = index\n break\n }\n } else if (!unmatchedSlash) {\n // We saw the first non-path separator\n unmatchedSlash = true\n }\n }\n\n return end < 0\n ? path.charCodeAt(0) === 47 /* `/` */\n ? '/'\n : '.'\n : end === 1 && path.charCodeAt(0) === 47 /* `/` */\n ? '//'\n : path.slice(0, end)\n}\n\n/**\n * Get an extname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * Extname.\n */\nfunction extname(path) {\n assertPath(path)\n\n let index = path.length\n\n let end = -1\n let startPart = 0\n let startDot = -1\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find.\n let preDotState = 0\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n while (index--) {\n const code = path.charCodeAt(index)\n\n if (code === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (unmatchedSlash) {\n startPart = index + 1\n break\n }\n\n continue\n }\n\n if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // extension.\n unmatchedSlash = true\n end = index + 1\n }\n\n if (code === 46 /* `.` */) {\n // If this is our first dot, mark it as the start of our extension.\n if (startDot < 0) {\n startDot = index\n } else if (preDotState !== 1) {\n preDotState = 1\n }\n } else if (startDot > -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension.\n preDotState = -1\n }\n }\n\n if (\n startDot < 0 ||\n end < 0 ||\n // We saw a non-dot character immediately before the dot.\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly `..`.\n (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)\n ) {\n return ''\n }\n\n return path.slice(startDot, end)\n}\n\n/**\n * Join segments from a path.\n *\n * @param {Array<string>} segments\n * Path segments.\n * @returns {string}\n * File path.\n */\nfunction join(...segments) {\n let index = -1\n /** @type {string | undefined} */\n let joined\n\n while (++index < segments.length) {\n assertPath(segments[index])\n\n if (segments[index]) {\n joined =\n joined === undefined ? segments[index] : joined + '/' + segments[index]\n }\n }\n\n return joined === undefined ? '.' : normalize(joined)\n}\n\n/**\n * Normalize a basic file path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\n// Note: `normalize` is not exposed as `path.normalize`, so some code is\n// manually removed from it.\nfunction normalize(path) {\n assertPath(path)\n\n const absolute = path.charCodeAt(0) === 47 /* `/` */\n\n // Normalize the path according to POSIX rules.\n let value = normalizeString(path, !absolute)\n\n if (value.length === 0 && !absolute) {\n value = '.'\n }\n\n if (value.length > 0 && path.charCodeAt(path.length - 1) === 47 /* / */) {\n value += '/'\n }\n\n return absolute ? '/' + value : value\n}\n\n/**\n * Resolve `.` and `..` elements in a path with directory names.\n *\n * @param {string} path\n * File path.\n * @param {boolean} allowAboveRoot\n * Whether `..` can move above root.\n * @returns {string}\n * File path.\n */\nfunction normalizeString(path, allowAboveRoot) {\n let result = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let index = -1\n /** @type {number | undefined} */\n let code\n /** @type {number} */\n let lastSlashIndex\n\n while (++index <= path.length) {\n if (index < path.length) {\n code = path.charCodeAt(index)\n } else if (code === 47 /* `/` */) {\n break\n } else {\n code = 47 /* `/` */\n }\n\n if (code === 47 /* `/` */) {\n if (lastSlash === index - 1 || dots === 1) {\n // Empty.\n } else if (lastSlash !== index - 1 && dots === 2) {\n if (\n result.length < 2 ||\n lastSegmentLength !== 2 ||\n result.charCodeAt(result.length - 1) !== 46 /* `.` */ ||\n result.charCodeAt(result.length - 2) !== 46 /* `.` */\n ) {\n if (result.length > 2) {\n lastSlashIndex = result.lastIndexOf('/')\n\n if (lastSlashIndex !== result.length - 1) {\n if (lastSlashIndex < 0) {\n result = ''\n lastSegmentLength = 0\n } else {\n result = result.slice(0, lastSlashIndex)\n lastSegmentLength = result.length - 1 - result.lastIndexOf('/')\n }\n\n lastSlash = index\n dots = 0\n continue\n }\n } else if (result.length > 0) {\n result = ''\n lastSegmentLength = 0\n lastSlash = index\n dots = 0\n continue\n }\n }\n\n if (allowAboveRoot) {\n result = result.length > 0 ? result + '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (result.length > 0) {\n result += '/' + path.slice(lastSlash + 1, index)\n } else {\n result = path.slice(lastSlash + 1, index)\n }\n\n lastSegmentLength = index - lastSlash - 1\n }\n\n lastSlash = index\n dots = 0\n } else if (code === 46 /* `.` */ && dots > -1) {\n dots++\n } else {\n dots = -1\n }\n }\n\n return result\n}\n\n/**\n * Make sure `path` is a string.\n *\n * @param {string} path\n * File path.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError(\n 'Path must be a string. Received ' + JSON.stringify(path)\n )\n }\n}\n\n/* eslint-enable max-depth, complexity */\n"],"names":["path","basename","ext","undefined","TypeError","assertPath","seenNonSlash","start","end","index","length","charCodeAt","slice","firstNonSlashEnd","extIndex","dirname","unmatchedSlash","extname","startPart","startDot","preDotState","code","join","segments","joined","absolute","value","allowAboveRoot","lastSlashIndex","result","lastSegmentLength","lastSlash","dots","lastIndexOf","normalizeString","normalize","sep","JSON","stringify"],"mappings":"oEAmDY,MAACA,EAAO,CAACC,SAcrB,SAAkBD,EAAME,GACtB,QAAYC,IAARD,GAAoC,iBAARA,EAC9B,MAAM,IAAIE,UAAU,mCAGtBC,EAAWL,GACX,IAIIM,EAJAC,EAAQ,EACRC,GAAO,EACPC,EAAQT,EAAKU,OAIjB,QAAYP,IAARD,GAAoC,IAAfA,EAAIQ,QAAgBR,EAAIQ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AAmBC,EAAOnB,OAAS,EAAG,CACpCkB,EAAiB,GACnBC,EAAS,GACTC,EAAoB,IAEpBD,EAASA,EAAOjB,MAAM,EAAGgB,GACzBE,EAAoBD,EAAOnB,OAAS,EAAImB,EAAOI,YAAY,MAG7DF,EAAYtB,EACZuB,EAAO,EACP,QACD,OACI,GAAIH,EAAOnB,OAAS,EAAG,CAC5BmB,EAAS,GACTC,EAAoB,EACpBC,EAAYtB,EACZuB,EAAO,EACP,QACD,CAGCL,IACFE,EAASA,EAAOnB,OAAS,EAAImB,EAAS,MAAQ,KAC9CC,EAAoB,EAE9B,MACYD,EAAOnB,OAAS,EAClBmB,GAAU,IAAM7B,EAAKY,MAAMmB,EAAY,EAAGtB,GAE1CoB,EAAS7B,EAAKY,MAAMmB,EAAY,EAAGtB,GAGrCqB,EAAoBrB,EAAQsB,EAAY,EAG1CA,EAAYtB,EACZuB,EAAO,CACR,MAAmB,KAATX,GAAyBW,GAAQ,EAC1CA,IAEAA,GAAQ,CAEX,CAED,OAAOH,CACT,CAtGcK,CAAgBlC,GAAOyB,GAEd,IAAjBC,EAAMhB,QAAiBe,IACzBC,EAAQ,KAGNA,EAAMhB,OAAS,GAA0C,KAArCV,EAAKW,WAAWX,EAAKU,OAAS,KACpDgB,GAAS,KAGX,OAAOD,EAAW,IAAMC,EAAQA,CAClC,CA9BsCS,CAAUX,EAChD,EAxOuDY,IAAK,KA0W5D,SAAS/B,EAAWL,GAClB,GAAoB,iBAATA,EACT,MAAM,IAAII,UACR,mCAAqCiC,KAAKC,UAAUtC,GAG1D"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={cwd:function(){return"/"}};exports.proc=e;
2
+ //# sourceMappingURL=minproc.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minproc.browser.js","sources":["../../../../../../../node_modules/unified/node_modules/vfile/lib/minproc.browser.js"],"sourcesContent":["// Somewhat based on:\n// <https://github.com/defunctzombie/node-process/blob/master/browser.js>.\n// But I don’t think one tiny line of code can be copyrighted. 😅\nexport const proc = {cwd}\n\nfunction cwd() {\n return '/'\n}\n"],"names":["proc","cwd"],"mappings":"oEAGY,MAACA,EAAO,CAACC,IAErB,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./minurl.shared.js");exports.isUrl=e.isUrl,exports.urlToPath=function(o){if("string"==typeof o)o=new URL(o);else if(!e.isUrl(o)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+o+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if("file:"!==o.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const o=e.pathname;let r=-1;for(;++r<o.length;)if(37===o.charCodeAt(r)&&50===o.charCodeAt(r+1)){const e=o.charCodeAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(o)}(o)};
2
+ //# sourceMappingURL=minurl.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minurl.browser.js","sources":["../../../../../../../node_modules/unified/node_modules/vfile/lib/minurl.browser.js"],"sourcesContent":["/// <reference lib=\"dom\" />\n\nimport {isUrl} from './minurl.shared.js'\n\n// See: <https://github.com/nodejs/node/blob/fcf8ba4/lib/internal/url.js>\n\n/**\n * @param {string | URL} path\n * File URL.\n * @returns {string}\n * File URL.\n */\nexport function urlToPath(path) {\n if (typeof path === 'string') {\n path = new URL(path)\n } else if (!isUrl(path)) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'The \"path\" argument must be of type string or an instance of URL. Received `' +\n path +\n '`'\n )\n error.code = 'ERR_INVALID_ARG_TYPE'\n throw error\n }\n\n if (path.protocol !== 'file:') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError('The URL must be of scheme file')\n error.code = 'ERR_INVALID_URL_SCHEME'\n throw error\n }\n\n return getPathFromURLPosix(path)\n}\n\n/**\n * Get a path from a POSIX URL.\n *\n * @param {URL} url\n * URL.\n * @returns {string}\n * File path.\n */\nfunction getPathFromURLPosix(url) {\n if (url.hostname !== '') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL host must be \"localhost\" or empty on darwin'\n )\n error.code = 'ERR_INVALID_FILE_URL_HOST'\n throw error\n }\n\n const pathname = url.pathname\n let index = -1\n\n while (++index < pathname.length) {\n if (\n pathname.charCodeAt(index) === 37 /* `%` */ &&\n pathname.charCodeAt(index + 1) === 50 /* `2` */\n ) {\n const third = pathname.charCodeAt(index + 2)\n if (third === 70 /* `F` */ || third === 102 /* `f` */) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL path must not include encoded / characters'\n )\n error.code = 'ERR_INVALID_FILE_URL_PATH'\n throw error\n }\n }\n }\n\n return decodeURIComponent(pathname)\n}\n\nexport {isUrl} from './minurl.shared.js'\n"],"names":["path","URL","isUrl","error","TypeError","code","protocol","url","hostname","pathname","index","length","charCodeAt","third","decodeURIComponent","getPathFromURLPosix"],"mappings":"gJAYO,SAAmBA,GACxB,GAAoB,iBAATA,EACTA,EAAO,IAAIC,IAAID,QACV,IAAKE,QAAMF,GAAO,CAEvB,MAAMG,EAAQ,IAAIC,UAChB,+EACEJ,EACA,KAGJ,MADAG,EAAME,KAAO,uBACPF,CACP,CAED,GAAsB,UAAlBH,EAAKM,SAAsB,CAE7B,MAAMH,EAAQ,IAAIC,UAAU,kCAE5B,MADAD,EAAME,KAAO,yBACPF,CACP,CAED,OAWF,SAA6BI,GAC3B,GAAqB,KAAjBA,EAAIC,SAAiB,CAEvB,MAAML,EAAQ,IAAIC,UAChB,wDAGF,MADAD,EAAME,KAAO,4BACPF,CACP,CAED,MAAMM,EAAWF,EAAIE,SACrB,IAAIC,GAAS,EAEb,OAASA,EAAQD,EAASE,QACxB,GACiC,KAA/BF,EAASG,WAAWF,IACe,KAAnCD,EAASG,WAAWF,EAAQ,GAC5B,CACA,MAAMG,EAAQJ,EAASG,WAAWF,EAAQ,GAC1C,GAAc,KAAVG,GAAoC,MAAVA,EAAyB,CAErD,MAAMV,EAAQ,IAAIC,UAChB,uDAGF,MADAD,EAAME,KAAO,4BACPF,CACP,CACF,CAGH,OAAOW,mBAAmBL,EAC5B,CA1CSM,CAAoBf,EAC7B"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isUrl=function(e){return null!==e&&"object"==typeof e&&e.href&&e.origin};
2
+ //# sourceMappingURL=minurl.shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minurl.shared.js","sources":["../../../../../../../node_modules/unified/node_modules/vfile/lib/minurl.shared.js"],"sourcesContent":["/**\n * @typedef URL\n * @property {string} hash\n * @property {string} host\n * @property {string} hostname\n * @property {string} href\n * @property {string} origin\n * @property {string} password\n * @property {string} pathname\n * @property {string} port\n * @property {string} protocol\n * @property {string} search\n * @property {any} searchParams\n * @property {string} username\n * @property {() => string} toString\n * @property {() => string} toJSON\n */\n\n/**\n * Check if `fileUrlOrPath` looks like a URL.\n *\n * @param {unknown} fileUrlOrPath\n * File path or URL.\n * @returns {fileUrlOrPath is URL}\n * Whether it’s a URL.\n */\n// From: <https://github.com/nodejs/node/blob/fcf8ba4/lib/internal/url.js#L1501>\nexport function isUrl(fileUrlOrPath) {\n return (\n fileUrlOrPath !== null &&\n typeof fileUrlOrPath === 'object' &&\n // @ts-expect-error: indexable.\n fileUrlOrPath.href &&\n // @ts-expect-error: indexable.\n fileUrlOrPath.origin\n )\n}\n"],"names":["fileUrlOrPath","href","origin"],"mappings":"kFA2BO,SAAeA,GACpB,OACoB,OAAlBA,GACyB,iBAAlBA,GAEPA,EAAcC,MAEdD,EAAcE,MAElB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../unist-util-stringify-position/lib/index.js");class e extends Error{constructor(e,s,i){const o=[null,null];let n={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof s&&(i=s,s=void 0),"string"==typeof i){const t=i.indexOf(":");-1===t?o[1]=i:(o[0]=i.slice(0,t),o[1]=i.slice(t+1))}s&&("type"in s||"position"in s?s.position&&(n=s.position):"start"in s||"end"in s?n=s:("line"in s||"column"in s)&&(n.start=s)),this.name=t.stringifyPosition(s)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=n.start.line,this.column=n.start.column,this.position=n,this.source=o[0],this.ruleId=o[1],this.file,this.actual,this.expected,this.url,this.note}}e.prototype.file="",e.prototype.name="",e.prototype.reason="",e.prototype.message="",e.prototype.stack="",e.prototype.fatal=null,e.prototype.column=null,e.prototype.line=null,e.prototype.source=null,e.prototype.ruleId=null,e.prototype.position=null,exports.VFileMessage=e;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/unified/node_modules/vfile-message/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {object & {type: string, position?: Position | undefined}} NodeLike\n */\n\nimport {stringifyPosition} from 'unist-util-stringify-position'\n\n/**\n * Message.\n */\nexport class VFileMessage extends Error {\n /**\n * Create a message for `reason` at `place` from `origin`.\n *\n * When an error is passed in as `reason`, the `stack` is copied.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n *\n * > 👉 **Note**: you should use markdown.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns\n * Instance of `VFileMessage`.\n */\n // To do: next major: expose `undefined` everywhere instead of `null`.\n constructor(reason, place, origin) {\n /** @type {[string | null, string | null]} */\n const parts = [null, null]\n /** @type {Position} */\n let position = {\n // @ts-expect-error: we always follows the structure of `position`.\n start: {line: null, column: null},\n // @ts-expect-error: \"\n end: {line: null, column: null}\n }\n\n super()\n\n if (typeof place === 'string') {\n origin = place\n place = undefined\n }\n\n if (typeof origin === 'string') {\n const index = origin.indexOf(':')\n\n if (index === -1) {\n parts[1] = origin\n } else {\n parts[0] = origin.slice(0, index)\n parts[1] = origin.slice(index + 1)\n }\n }\n\n if (place) {\n // Node.\n if ('type' in place || 'position' in place) {\n if (place.position) {\n // To do: next major: deep clone.\n // @ts-expect-error: looks like a position.\n position = place.position\n }\n }\n // Position.\n else if ('start' in place || 'end' in place) {\n // @ts-expect-error: looks like a position.\n // To do: next major: deep clone.\n position = place\n }\n // Point.\n else if ('line' in place || 'column' in place) {\n // To do: next major: deep clone.\n position.start = place\n }\n }\n\n // Fields from `Error`.\n /**\n * Serialized positional info of error.\n *\n * On normal errors, this would be something like `ParseError`, buit in\n * `VFile` messages we use this space to show where an error happened.\n */\n this.name = stringifyPosition(place) || '1:1'\n\n /**\n * Reason for message.\n *\n * @type {string}\n */\n this.message = typeof reason === 'object' ? reason.message : reason\n\n /**\n * Stack of message.\n *\n * This is used by normal errors to show where something happened in\n * programming code, irrelevant for `VFile` messages,\n *\n * @type {string}\n */\n this.stack = ''\n\n if (typeof reason === 'object' && reason.stack) {\n this.stack = reason.stack\n }\n\n /**\n * Reason for message.\n *\n * > 👉 **Note**: you should use markdown.\n *\n * @type {string}\n */\n this.reason = this.message\n\n /* eslint-disable no-unused-expressions */\n /**\n * State of problem.\n *\n * * `true` — marks associated file as no longer processable (error)\n * * `false` — necessitates a (potential) change (warning)\n * * `null | undefined` — for things that might not need changing (info)\n *\n * @type {boolean | null | undefined}\n */\n this.fatal\n\n /**\n * Starting line of error.\n *\n * @type {number | null}\n */\n this.line = position.start.line\n\n /**\n * Starting column of error.\n *\n * @type {number | null}\n */\n this.column = position.start.column\n\n /**\n * Full unist position.\n *\n * @type {Position | null}\n */\n this.position = position\n\n /**\n * Namespace of message (example: `'my-package'`).\n *\n * @type {string | null}\n */\n this.source = parts[0]\n\n /**\n * Category of message (example: `'my-rule'`).\n *\n * @type {string | null}\n */\n this.ruleId = parts[1]\n\n /**\n * Path of a file (used throughout the `VFile` ecosystem).\n *\n * @type {string | null}\n */\n this.file\n\n // The following fields are “well known”.\n // Not standard.\n // Feel free to add other non-standard fields to your messages.\n\n /**\n * Specify the source value that’s being reported, which is deemed\n * incorrect.\n *\n * @type {string | null}\n */\n this.actual\n\n /**\n * Suggest acceptable values that can be used instead of `actual`.\n *\n * @type {Array<string> | null}\n */\n this.expected\n\n /**\n * Link to docs for the message.\n *\n * > 👉 **Note**: this must be an absolute URL that can be passed as `x`\n * > to `new URL(x)`.\n *\n * @type {string | null}\n */\n this.url\n\n /**\n * Long form description of the message (you should use markdown).\n *\n * @type {string | null}\n */\n this.note\n /* eslint-enable no-unused-expressions */\n }\n}\n\nVFileMessage.prototype.file = ''\nVFileMessage.prototype.name = ''\nVFileMessage.prototype.reason = ''\nVFileMessage.prototype.message = ''\nVFileMessage.prototype.stack = ''\nVFileMessage.prototype.fatal = null\nVFileMessage.prototype.column = null\nVFileMessage.prototype.line = null\nVFileMessage.prototype.source = null\nVFileMessage.prototype.ruleId = null\nVFileMessage.prototype.position = null\n"],"names":["VFileMessage","Error","constructor","reason","place","origin","parts","position","start","line","column","end","super","undefined","index","indexOf","slice","this","name","stringifyPosition","message","stack","fatal","source","ruleId","file","actual","expected","url","note","prototype"],"mappings":"sIAYO,MAAMA,UAAqBC,MAmBhC,WAAAC,CAAYC,EAAQC,EAAOC,GAEzB,MAAMC,EAAQ,CAAC,KAAM,MAErB,IAAIC,EAAW,CAEbC,MAAO,CAACC,KAAM,KAAMC,OAAQ,MAE5BC,IAAK,CAACF,KAAM,KAAMC,O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