@shell-shock/preset-cli 0.9.10 → 0.9.12

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 (360) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +16 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +45 -0
  3. package/dist/components/upgrade-builtin.cjs +1 -1
  4. package/dist/components/upgrade-builtin.mjs +1 -1
  5. package/dist/components/upgrade-builtin.mjs.map +1 -1
  6. package/dist/index.cjs +1 -2
  7. package/dist/index.mjs +0 -1
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs +94 -0
  10. package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs +94 -0
  11. package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs.map +1 -0
  12. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +167 -0
  13. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +167 -0
  14. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +1 -0
  15. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +36 -0
  16. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +36 -0
  17. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +1 -0
  18. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +32 -0
  19. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +33 -0
  20. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +1 -0
  21. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +133 -0
  22. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +134 -0
  23. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +1 -0
  24. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +32 -0
  25. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +31 -0
  26. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +1 -0
  27. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +169 -0
  28. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +167 -0
  29. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +1 -0
  30. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +98 -0
  31. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +95 -0
  32. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +1 -0
  33. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +23 -0
  34. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +23 -0
  35. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +1 -0
  36. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +36 -0
  37. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +36 -0
  38. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +1 -0
  39. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +373 -0
  40. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +374 -0
  41. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
  42. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +60 -0
  43. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +59 -0
  44. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
  45. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +6 -0
  46. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +6 -0
  47. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
  48. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +6 -0
  49. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +6 -0
  50. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
  51. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +59 -0
  52. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +59 -0
  53. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +1 -0
  54. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +338 -0
  55. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +333 -0
  56. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +1 -0
  57. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +6 -0
  58. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +6 -0
  59. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +1 -0
  60. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +4095 -0
  61. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +4093 -0
  62. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +1 -0
  63. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +10 -0
  64. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +10 -0
  65. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +1 -0
  66. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +449 -0
  67. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +450 -0
  68. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
  69. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +47 -0
  70. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
  71. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
  72. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +94 -0
  73. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +94 -0
  74. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +1 -0
  75. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +78 -0
  76. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +78 -0
  77. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +1 -0
  78. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +123 -0
  79. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +123 -0
  80. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +1 -0
  81. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +246 -0
  82. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +244 -0
  83. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +1 -0
  84. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +80 -0
  85. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +80 -0
  86. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +1 -0
  87. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +80 -0
  88. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +80 -0
  89. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +1 -0
  90. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +45 -0
  91. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +45 -0
  92. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
  93. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +45 -0
  94. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +45 -0
  95. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
  96. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +94 -0
  97. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +92 -0
  98. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +1 -0
  99. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +1 -0
  100. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +3 -0
  101. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +69 -0
  102. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +69 -0
  103. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
  104. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +9 -0
  105. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +8 -0
  106. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
  107. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +205 -0
  108. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +189 -0
  109. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
  110. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +19 -0
  111. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +15 -0
  112. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
  113. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +61 -0
  114. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +62 -0
  115. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
  116. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +35 -0
  117. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +35 -0
  118. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
  119. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +43 -0
  120. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +44 -0
  121. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
  122. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +488 -0
  123. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +489 -0
  124. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +1 -0
  125. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +148 -0
  126. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +149 -0
  127. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
  128. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +51 -0
  129. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +52 -0
  130. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
  131. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +126 -0
  132. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +127 -0
  133. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
  134. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +57 -0
  135. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +57 -0
  136. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
  137. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +23 -0
  138. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +23 -0
  139. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
  140. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +31 -0
  141. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +31 -0
  142. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
  143. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +217 -0
  144. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +218 -0
  145. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
  146. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +274 -0
  147. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +274 -0
  148. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
  149. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +107 -0
  150. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +108 -0
  151. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
  152. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +27 -0
  153. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
  154. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
  155. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +48 -0
  156. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +48 -0
  157. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
  158. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +35 -0
  159. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +36 -0
  160. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
  161. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +26 -0
  162. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +27 -0
  163. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
  164. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +72 -0
  165. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
  166. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
  167. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +53 -0
  168. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +53 -0
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +157 -0
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +158 -0
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +32 -0
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +32 -0
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +140 -0
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +141 -0
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +112 -0
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +113 -0
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +139 -0
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +140 -0
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +15 -0
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +12 -0
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +81 -0
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +82 -0
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +13 -0
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +13 -0
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +45 -0
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +45 -0
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +112 -0
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +113 -0
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +14 -0
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +15 -0
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +22 -0
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +22 -0
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +55 -0
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +55 -0
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +41 -0
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +41 -0
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +62 -0
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +62 -0
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +64 -0
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +64 -0
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
  221. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +45 -0
  222. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +46 -0
  223. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
  224. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +48 -0
  225. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +49 -0
  226. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
  227. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +22 -0
  228. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +22 -0
  229. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
  230. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +34 -0
  231. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +35 -0
  232. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
  233. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +82 -0
  234. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +83 -0
  235. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
  236. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +84 -0
  237. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +85 -0
  238. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
  239. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +42 -0
  240. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +42 -0
  241. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
  242. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +26 -0
  243. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +27 -0
  244. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
  245. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +74 -0
  246. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
  247. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
  248. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +80 -0
  249. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +80 -0
  250. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
  251. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +41 -0
  252. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +41 -0
  253. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
  254. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +157 -0
  255. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +157 -0
  256. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +1 -0
  257. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +21 -0
  258. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +17 -0
  259. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
  260. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +74 -0
  261. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +74 -0
  262. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
  263. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +57 -0
  264. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +57 -0
  265. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
  266. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +18 -0
  267. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +18 -0
  268. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
  269. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +175 -0
  270. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +175 -0
  271. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
  272. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +19 -0
  273. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +15 -0
  274. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +1 -0
  275. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +104 -0
  276. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +104 -0
  277. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +1 -0
  278. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +73 -0
  279. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +68 -0
  280. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +1 -0
  281. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +266 -0
  282. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +262 -0
  283. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +1 -0
  284. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +575 -0
  285. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +543 -0
  286. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +1 -0
  287. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +27 -0
  288. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +21 -0
  289. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +1 -0
  290. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +105 -0
  291. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +94 -0
  292. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +1 -0
  293. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +33 -0
  294. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +34 -0
  295. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +1 -0
  296. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +99 -0
  297. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +93 -0
  298. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +1 -0
  299. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +2544 -0
  300. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +2545 -0
  301. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +1 -0
  302. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +296 -0
  303. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +297 -0
  304. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +1 -0
  305. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
  306. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +28 -0
  307. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +1 -0
  308. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +2069 -0
  309. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +2069 -0
  310. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +1 -0
  311. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +156 -0
  312. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +157 -0
  313. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +1 -0
  314. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +166 -0
  315. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +167 -0
  316. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +1 -0
  317. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +299 -0
  318. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +295 -0
  319. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +1 -0
  320. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +6 -0
  321. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +6 -0
  322. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
  323. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +6 -0
  324. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +6 -0
  325. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
  326. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +6 -0
  327. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +6 -0
  328. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
  329. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +6 -0
  330. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +6 -0
  331. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
  332. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +6 -0
  333. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +6 -0
  334. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
  335. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +25 -0
  336. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +21 -0
  337. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
  338. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +6 -0
  339. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +6 -0
  340. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
  341. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +15 -0
  342. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +17 -0
  343. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -0
  344. package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/changelog-command.cjs +5 -4
  345. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -3
  346. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  347. package/dist/{plugin-changelog → packages/plugin-changelog}/dist/index.cjs +1 -1
  348. package/dist/packages/unified/dist/html-Di3_LwV3.cjs +337 -0
  349. package/dist/packages/unified/dist/html-Di3_LwV3.mjs +338 -0
  350. package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +1 -0
  351. package/dist/packages/unified/dist/markdown/index.cjs +1 -0
  352. package/dist/packages/unified/dist/markdown/index.mjs +3 -0
  353. package/dist/packages/unified/dist/markdown-OuY_JOk0.cjs +82 -0
  354. package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs +83 -0
  355. package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs.map +1 -0
  356. package/package.json +39 -12
  357. package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs +0 -10
  358. package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs.map +0 -1
  359. package/dist/unified/dist/markdown-Bs-BRrSC.cjs +0 -10
  360. /package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/index.cjs +0 -0
@@ -0,0 +1,338 @@
1
+ const require_decode_data_html = require('./generated/decode-data-html.cjs');
2
+ const require_decode_codepoint = require('./decode-codepoint.cjs');
3
+
4
+ //#region ../../node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js
5
+ var CharCodes;
6
+ (function(CharCodes) {
7
+ CharCodes[CharCodes["NUM"] = 35] = "NUM";
8
+ CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
9
+ CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
10
+ CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
11
+ CharCodes[CharCodes["NINE"] = 57] = "NINE";
12
+ CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
13
+ CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
14
+ CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
15
+ CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
16
+ CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
17
+ CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
18
+ CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
19
+ })(CharCodes || (CharCodes = {}));
20
+ /** Bit that needs to be set to convert an upper case ASCII character to lower case */
21
+ const TO_LOWER_BIT = 32;
22
+ var BinTrieFlags;
23
+ (function(BinTrieFlags) {
24
+ BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
25
+ BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
26
+ BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
27
+ })(BinTrieFlags || (BinTrieFlags = {}));
28
+ function isNumber(code) {
29
+ return code >= CharCodes.ZERO && code <= CharCodes.NINE;
30
+ }
31
+ function isHexadecimalCharacter(code) {
32
+ return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F;
33
+ }
34
+ function isAsciiAlphaNumeric(code) {
35
+ return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code);
36
+ }
37
+ /**
38
+ * Checks if the given character is a valid end character for an entity in an attribute.
39
+ *
40
+ * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
41
+ * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
42
+ */
43
+ function isEntityInAttributeInvalidEnd(code) {
44
+ return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
45
+ }
46
+ var EntityDecoderState;
47
+ (function(EntityDecoderState) {
48
+ EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
49
+ EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
50
+ EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
51
+ EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
52
+ EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
53
+ })(EntityDecoderState || (EntityDecoderState = {}));
54
+ var DecodingMode;
55
+ (function(DecodingMode) {
56
+ /** Entities in text nodes that can end with any character. */
57
+ DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
58
+ /** Only allow entities terminated with a semicolon. */
59
+ DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
60
+ /** Entities in attributes have limitations on ending characters. */
61
+ DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
62
+ })(DecodingMode || (DecodingMode = {}));
63
+ /**
64
+ * Token decoder with support of writing partial entities.
65
+ */
66
+ var EntityDecoder = class {
67
+ constructor(decodeTree, emitCodePoint, errors) {
68
+ this.decodeTree = decodeTree;
69
+ this.emitCodePoint = emitCodePoint;
70
+ this.errors = errors;
71
+ /** The current state of the decoder. */
72
+ this.state = EntityDecoderState.EntityStart;
73
+ /** Characters that were consumed while parsing an entity. */
74
+ this.consumed = 1;
75
+ /**
76
+ * The result of the entity.
77
+ *
78
+ * Either the result index of a numeric entity, or the codepoint of a
79
+ * numeric entity.
80
+ */
81
+ this.result = 0;
82
+ /** The current index in the decode tree. */
83
+ this.treeIndex = 0;
84
+ /** The number of characters that were consumed in excess. */
85
+ this.excess = 1;
86
+ /** The mode in which the decoder is operating. */
87
+ this.decodeMode = DecodingMode.Strict;
88
+ }
89
+ /** Resets the instance to make it reusable. */
90
+ startEntity(decodeMode) {
91
+ this.decodeMode = decodeMode;
92
+ this.state = EntityDecoderState.EntityStart;
93
+ this.result = 0;
94
+ this.treeIndex = 0;
95
+ this.excess = 1;
96
+ this.consumed = 1;
97
+ }
98
+ /**
99
+ * Write an entity to the decoder. This can be called multiple times with partial entities.
100
+ * If the entity is incomplete, the decoder will return -1.
101
+ *
102
+ * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
103
+ * entity is incomplete, and resume when the next string is written.
104
+ *
105
+ * @param input The string containing the entity (or a continuation of the entity).
106
+ * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
107
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
108
+ */
109
+ write(input, offset) {
110
+ switch (this.state) {
111
+ case EntityDecoderState.EntityStart:
112
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
113
+ this.state = EntityDecoderState.NumericStart;
114
+ this.consumed += 1;
115
+ return this.stateNumericStart(input, offset + 1);
116
+ }
117
+ this.state = EntityDecoderState.NamedEntity;
118
+ return this.stateNamedEntity(input, offset);
119
+ case EntityDecoderState.NumericStart: return this.stateNumericStart(input, offset);
120
+ case EntityDecoderState.NumericDecimal: return this.stateNumericDecimal(input, offset);
121
+ case EntityDecoderState.NumericHex: return this.stateNumericHex(input, offset);
122
+ case EntityDecoderState.NamedEntity: return this.stateNamedEntity(input, offset);
123
+ }
124
+ }
125
+ /**
126
+ * Switches between the numeric decimal and hexadecimal states.
127
+ *
128
+ * Equivalent to the `Numeric character reference state` in the HTML spec.
129
+ *
130
+ * @param input The string containing the entity (or a continuation of the entity).
131
+ * @param offset The current offset.
132
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
133
+ */
134
+ stateNumericStart(input, offset) {
135
+ if (offset >= input.length) return -1;
136
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
137
+ this.state = EntityDecoderState.NumericHex;
138
+ this.consumed += 1;
139
+ return this.stateNumericHex(input, offset + 1);
140
+ }
141
+ this.state = EntityDecoderState.NumericDecimal;
142
+ return this.stateNumericDecimal(input, offset);
143
+ }
144
+ addToNumericResult(input, start, end, base) {
145
+ if (start !== end) {
146
+ const digitCount = end - start;
147
+ this.result = this.result * Math.pow(base, digitCount) + Number.parseInt(input.substr(start, digitCount), base);
148
+ this.consumed += digitCount;
149
+ }
150
+ }
151
+ /**
152
+ * Parses a hexadecimal numeric entity.
153
+ *
154
+ * Equivalent to the `Hexademical character reference state` in the HTML spec.
155
+ *
156
+ * @param input The string containing the entity (or a continuation of the entity).
157
+ * @param offset The current offset.
158
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
159
+ */
160
+ stateNumericHex(input, offset) {
161
+ const startIndex = offset;
162
+ while (offset < input.length) {
163
+ const char = input.charCodeAt(offset);
164
+ if (isNumber(char) || isHexadecimalCharacter(char)) offset += 1;
165
+ else {
166
+ this.addToNumericResult(input, startIndex, offset, 16);
167
+ return this.emitNumericEntity(char, 3);
168
+ }
169
+ }
170
+ this.addToNumericResult(input, startIndex, offset, 16);
171
+ return -1;
172
+ }
173
+ /**
174
+ * Parses a decimal numeric entity.
175
+ *
176
+ * Equivalent to the `Decimal character reference state` in the HTML spec.
177
+ *
178
+ * @param input The string containing the entity (or a continuation of the entity).
179
+ * @param offset The current offset.
180
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
181
+ */
182
+ stateNumericDecimal(input, offset) {
183
+ const startIndex = offset;
184
+ while (offset < input.length) {
185
+ const char = input.charCodeAt(offset);
186
+ if (isNumber(char)) offset += 1;
187
+ else {
188
+ this.addToNumericResult(input, startIndex, offset, 10);
189
+ return this.emitNumericEntity(char, 2);
190
+ }
191
+ }
192
+ this.addToNumericResult(input, startIndex, offset, 10);
193
+ return -1;
194
+ }
195
+ /**
196
+ * Validate and emit a numeric entity.
197
+ *
198
+ * Implements the logic from the `Hexademical character reference start
199
+ * state` and `Numeric character reference end state` in the HTML spec.
200
+ *
201
+ * @param lastCp The last code point of the entity. Used to see if the
202
+ * entity was terminated with a semicolon.
203
+ * @param expectedLength The minimum number of characters that should be
204
+ * consumed. Used to validate that at least one digit
205
+ * was consumed.
206
+ * @returns The number of characters that were consumed.
207
+ */
208
+ emitNumericEntity(lastCp, expectedLength) {
209
+ var _a;
210
+ if (this.consumed <= expectedLength) {
211
+ (_a = this.errors) === null || _a === void 0 || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
212
+ return 0;
213
+ }
214
+ if (lastCp === CharCodes.SEMI) this.consumed += 1;
215
+ else if (this.decodeMode === DecodingMode.Strict) return 0;
216
+ this.emitCodePoint(require_decode_codepoint.replaceCodePoint(this.result), this.consumed);
217
+ if (this.errors) {
218
+ if (lastCp !== CharCodes.SEMI) this.errors.missingSemicolonAfterCharacterReference();
219
+ this.errors.validateNumericCharacterReference(this.result);
220
+ }
221
+ return this.consumed;
222
+ }
223
+ /**
224
+ * Parses a named entity.
225
+ *
226
+ * Equivalent to the `Named character reference state` in the HTML spec.
227
+ *
228
+ * @param input The string containing the entity (or a continuation of the entity).
229
+ * @param offset The current offset.
230
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
231
+ */
232
+ stateNamedEntity(input, offset) {
233
+ const { decodeTree } = this;
234
+ let current = decodeTree[this.treeIndex];
235
+ let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
236
+ for (; offset < input.length; offset++, this.excess++) {
237
+ const char = input.charCodeAt(offset);
238
+ this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
239
+ if (this.treeIndex < 0) return this.result === 0 || this.decodeMode === DecodingMode.Attribute && (valueLength === 0 || isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity();
240
+ current = decodeTree[this.treeIndex];
241
+ valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
242
+ if (valueLength !== 0) {
243
+ if (char === CharCodes.SEMI) return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
244
+ if (this.decodeMode !== DecodingMode.Strict) {
245
+ this.result = this.treeIndex;
246
+ this.consumed += this.excess;
247
+ this.excess = 0;
248
+ }
249
+ }
250
+ }
251
+ return -1;
252
+ }
253
+ /**
254
+ * Emit a named entity that was not terminated with a semicolon.
255
+ *
256
+ * @returns The number of characters consumed.
257
+ */
258
+ emitNotTerminatedNamedEntity() {
259
+ var _a;
260
+ const { result, decodeTree } = this;
261
+ const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
262
+ this.emitNamedEntityData(result, valueLength, this.consumed);
263
+ (_a = this.errors) === null || _a === void 0 || _a.missingSemicolonAfterCharacterReference();
264
+ return this.consumed;
265
+ }
266
+ /**
267
+ * Emit a named entity.
268
+ *
269
+ * @param result The index of the entity in the decode tree.
270
+ * @param valueLength The number of bytes in the entity.
271
+ * @param consumed The number of characters consumed.
272
+ *
273
+ * @returns The number of characters consumed.
274
+ */
275
+ emitNamedEntityData(result, valueLength, consumed) {
276
+ const { decodeTree } = this;
277
+ this.emitCodePoint(valueLength === 1 ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH : decodeTree[result + 1], consumed);
278
+ if (valueLength === 3) this.emitCodePoint(decodeTree[result + 2], consumed);
279
+ return consumed;
280
+ }
281
+ /**
282
+ * Signal to the parser that the end of the input was reached.
283
+ *
284
+ * Remaining data will be emitted and relevant errors will be produced.
285
+ *
286
+ * @returns The number of characters consumed.
287
+ */
288
+ end() {
289
+ var _a;
290
+ switch (this.state) {
291
+ case EntityDecoderState.NamedEntity: return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
292
+ case EntityDecoderState.NumericDecimal: return this.emitNumericEntity(0, 2);
293
+ case EntityDecoderState.NumericHex: return this.emitNumericEntity(0, 3);
294
+ case EntityDecoderState.NumericStart:
295
+ (_a = this.errors) === null || _a === void 0 || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
296
+ return 0;
297
+ case EntityDecoderState.EntityStart: return 0;
298
+ }
299
+ }
300
+ };
301
+ /**
302
+ * Determines the branch of the current node that is taken given the current
303
+ * character. This function is used to traverse the trie.
304
+ *
305
+ * @param decodeTree The trie.
306
+ * @param current The current node.
307
+ * @param nodeIdx The index right after the current node and its value.
308
+ * @param char The current character.
309
+ * @returns The index of the next node, or -1 if no branch is taken.
310
+ */
311
+ function determineBranch(decodeTree, current, nodeIndex, char) {
312
+ const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
313
+ const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
314
+ if (branchCount === 0) return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
315
+ if (jumpOffset) {
316
+ const value = char - jumpOffset;
317
+ return value < 0 || value >= branchCount ? -1 : decodeTree[nodeIndex + value] - 1;
318
+ }
319
+ let lo = nodeIndex;
320
+ let hi = lo + branchCount - 1;
321
+ while (lo <= hi) {
322
+ const mid = lo + hi >>> 1;
323
+ const midValue = decodeTree[mid];
324
+ if (midValue < char) lo = mid + 1;
325
+ else if (midValue > char) hi = mid - 1;
326
+ else return decodeTree[mid + branchCount];
327
+ }
328
+ return -1;
329
+ }
330
+
331
+ //#endregion
332
+ Object.defineProperty(exports, 'DecodingMode', {
333
+ enumerable: true,
334
+ get: function () {
335
+ return DecodingMode;
336
+ }
337
+ });
338
+ exports.EntityDecoder = EntityDecoder;
@@ -0,0 +1,333 @@
1
+ import { htmlDecodeTree } from "./generated/decode-data-html.mjs";
2
+ import { replaceCodePoint } from "./decode-codepoint.mjs";
3
+
4
+ //#region ../../node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js
5
+ var CharCodes;
6
+ (function(CharCodes) {
7
+ CharCodes[CharCodes["NUM"] = 35] = "NUM";
8
+ CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
9
+ CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
10
+ CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
11
+ CharCodes[CharCodes["NINE"] = 57] = "NINE";
12
+ CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
13
+ CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
14
+ CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
15
+ CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
16
+ CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
17
+ CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
18
+ CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
19
+ })(CharCodes || (CharCodes = {}));
20
+ /** Bit that needs to be set to convert an upper case ASCII character to lower case */
21
+ const TO_LOWER_BIT = 32;
22
+ var BinTrieFlags;
23
+ (function(BinTrieFlags) {
24
+ BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
25
+ BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
26
+ BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
27
+ })(BinTrieFlags || (BinTrieFlags = {}));
28
+ function isNumber(code) {
29
+ return code >= CharCodes.ZERO && code <= CharCodes.NINE;
30
+ }
31
+ function isHexadecimalCharacter(code) {
32
+ return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F;
33
+ }
34
+ function isAsciiAlphaNumeric(code) {
35
+ return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code);
36
+ }
37
+ /**
38
+ * Checks if the given character is a valid end character for an entity in an attribute.
39
+ *
40
+ * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
41
+ * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
42
+ */
43
+ function isEntityInAttributeInvalidEnd(code) {
44
+ return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
45
+ }
46
+ var EntityDecoderState;
47
+ (function(EntityDecoderState) {
48
+ EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
49
+ EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
50
+ EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
51
+ EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
52
+ EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
53
+ })(EntityDecoderState || (EntityDecoderState = {}));
54
+ var DecodingMode;
55
+ (function(DecodingMode) {
56
+ /** Entities in text nodes that can end with any character. */
57
+ DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
58
+ /** Only allow entities terminated with a semicolon. */
59
+ DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
60
+ /** Entities in attributes have limitations on ending characters. */
61
+ DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
62
+ })(DecodingMode || (DecodingMode = {}));
63
+ /**
64
+ * Token decoder with support of writing partial entities.
65
+ */
66
+ var EntityDecoder = class {
67
+ constructor(decodeTree, emitCodePoint, errors) {
68
+ this.decodeTree = decodeTree;
69
+ this.emitCodePoint = emitCodePoint;
70
+ this.errors = errors;
71
+ /** The current state of the decoder. */
72
+ this.state = EntityDecoderState.EntityStart;
73
+ /** Characters that were consumed while parsing an entity. */
74
+ this.consumed = 1;
75
+ /**
76
+ * The result of the entity.
77
+ *
78
+ * Either the result index of a numeric entity, or the codepoint of a
79
+ * numeric entity.
80
+ */
81
+ this.result = 0;
82
+ /** The current index in the decode tree. */
83
+ this.treeIndex = 0;
84
+ /** The number of characters that were consumed in excess. */
85
+ this.excess = 1;
86
+ /** The mode in which the decoder is operating. */
87
+ this.decodeMode = DecodingMode.Strict;
88
+ }
89
+ /** Resets the instance to make it reusable. */
90
+ startEntity(decodeMode) {
91
+ this.decodeMode = decodeMode;
92
+ this.state = EntityDecoderState.EntityStart;
93
+ this.result = 0;
94
+ this.treeIndex = 0;
95
+ this.excess = 1;
96
+ this.consumed = 1;
97
+ }
98
+ /**
99
+ * Write an entity to the decoder. This can be called multiple times with partial entities.
100
+ * If the entity is incomplete, the decoder will return -1.
101
+ *
102
+ * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
103
+ * entity is incomplete, and resume when the next string is written.
104
+ *
105
+ * @param input The string containing the entity (or a continuation of the entity).
106
+ * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
107
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
108
+ */
109
+ write(input, offset) {
110
+ switch (this.state) {
111
+ case EntityDecoderState.EntityStart:
112
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
113
+ this.state = EntityDecoderState.NumericStart;
114
+ this.consumed += 1;
115
+ return this.stateNumericStart(input, offset + 1);
116
+ }
117
+ this.state = EntityDecoderState.NamedEntity;
118
+ return this.stateNamedEntity(input, offset);
119
+ case EntityDecoderState.NumericStart: return this.stateNumericStart(input, offset);
120
+ case EntityDecoderState.NumericDecimal: return this.stateNumericDecimal(input, offset);
121
+ case EntityDecoderState.NumericHex: return this.stateNumericHex(input, offset);
122
+ case EntityDecoderState.NamedEntity: return this.stateNamedEntity(input, offset);
123
+ }
124
+ }
125
+ /**
126
+ * Switches between the numeric decimal and hexadecimal states.
127
+ *
128
+ * Equivalent to the `Numeric character reference state` in the HTML spec.
129
+ *
130
+ * @param input The string containing the entity (or a continuation of the entity).
131
+ * @param offset The current offset.
132
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
133
+ */
134
+ stateNumericStart(input, offset) {
135
+ if (offset >= input.length) return -1;
136
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
137
+ this.state = EntityDecoderState.NumericHex;
138
+ this.consumed += 1;
139
+ return this.stateNumericHex(input, offset + 1);
140
+ }
141
+ this.state = EntityDecoderState.NumericDecimal;
142
+ return this.stateNumericDecimal(input, offset);
143
+ }
144
+ addToNumericResult(input, start, end, base) {
145
+ if (start !== end) {
146
+ const digitCount = end - start;
147
+ this.result = this.result * Math.pow(base, digitCount) + Number.parseInt(input.substr(start, digitCount), base);
148
+ this.consumed += digitCount;
149
+ }
150
+ }
151
+ /**
152
+ * Parses a hexadecimal numeric entity.
153
+ *
154
+ * Equivalent to the `Hexademical character reference state` in the HTML spec.
155
+ *
156
+ * @param input The string containing the entity (or a continuation of the entity).
157
+ * @param offset The current offset.
158
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
159
+ */
160
+ stateNumericHex(input, offset) {
161
+ const startIndex = offset;
162
+ while (offset < input.length) {
163
+ const char = input.charCodeAt(offset);
164
+ if (isNumber(char) || isHexadecimalCharacter(char)) offset += 1;
165
+ else {
166
+ this.addToNumericResult(input, startIndex, offset, 16);
167
+ return this.emitNumericEntity(char, 3);
168
+ }
169
+ }
170
+ this.addToNumericResult(input, startIndex, offset, 16);
171
+ return -1;
172
+ }
173
+ /**
174
+ * Parses a decimal numeric entity.
175
+ *
176
+ * Equivalent to the `Decimal character reference state` in the HTML spec.
177
+ *
178
+ * @param input The string containing the entity (or a continuation of the entity).
179
+ * @param offset The current offset.
180
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
181
+ */
182
+ stateNumericDecimal(input, offset) {
183
+ const startIndex = offset;
184
+ while (offset < input.length) {
185
+ const char = input.charCodeAt(offset);
186
+ if (isNumber(char)) offset += 1;
187
+ else {
188
+ this.addToNumericResult(input, startIndex, offset, 10);
189
+ return this.emitNumericEntity(char, 2);
190
+ }
191
+ }
192
+ this.addToNumericResult(input, startIndex, offset, 10);
193
+ return -1;
194
+ }
195
+ /**
196
+ * Validate and emit a numeric entity.
197
+ *
198
+ * Implements the logic from the `Hexademical character reference start
199
+ * state` and `Numeric character reference end state` in the HTML spec.
200
+ *
201
+ * @param lastCp The last code point of the entity. Used to see if the
202
+ * entity was terminated with a semicolon.
203
+ * @param expectedLength The minimum number of characters that should be
204
+ * consumed. Used to validate that at least one digit
205
+ * was consumed.
206
+ * @returns The number of characters that were consumed.
207
+ */
208
+ emitNumericEntity(lastCp, expectedLength) {
209
+ var _a;
210
+ if (this.consumed <= expectedLength) {
211
+ (_a = this.errors) === null || _a === void 0 || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
212
+ return 0;
213
+ }
214
+ if (lastCp === CharCodes.SEMI) this.consumed += 1;
215
+ else if (this.decodeMode === DecodingMode.Strict) return 0;
216
+ this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
217
+ if (this.errors) {
218
+ if (lastCp !== CharCodes.SEMI) this.errors.missingSemicolonAfterCharacterReference();
219
+ this.errors.validateNumericCharacterReference(this.result);
220
+ }
221
+ return this.consumed;
222
+ }
223
+ /**
224
+ * Parses a named entity.
225
+ *
226
+ * Equivalent to the `Named character reference state` in the HTML spec.
227
+ *
228
+ * @param input The string containing the entity (or a continuation of the entity).
229
+ * @param offset The current offset.
230
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
231
+ */
232
+ stateNamedEntity(input, offset) {
233
+ const { decodeTree } = this;
234
+ let current = decodeTree[this.treeIndex];
235
+ let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
236
+ for (; offset < input.length; offset++, this.excess++) {
237
+ const char = input.charCodeAt(offset);
238
+ this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
239
+ if (this.treeIndex < 0) return this.result === 0 || this.decodeMode === DecodingMode.Attribute && (valueLength === 0 || isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity();
240
+ current = decodeTree[this.treeIndex];
241
+ valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
242
+ if (valueLength !== 0) {
243
+ if (char === CharCodes.SEMI) return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
244
+ if (this.decodeMode !== DecodingMode.Strict) {
245
+ this.result = this.treeIndex;
246
+ this.consumed += this.excess;
247
+ this.excess = 0;
248
+ }
249
+ }
250
+ }
251
+ return -1;
252
+ }
253
+ /**
254
+ * Emit a named entity that was not terminated with a semicolon.
255
+ *
256
+ * @returns The number of characters consumed.
257
+ */
258
+ emitNotTerminatedNamedEntity() {
259
+ var _a;
260
+ const { result, decodeTree } = this;
261
+ const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
262
+ this.emitNamedEntityData(result, valueLength, this.consumed);
263
+ (_a = this.errors) === null || _a === void 0 || _a.missingSemicolonAfterCharacterReference();
264
+ return this.consumed;
265
+ }
266
+ /**
267
+ * Emit a named entity.
268
+ *
269
+ * @param result The index of the entity in the decode tree.
270
+ * @param valueLength The number of bytes in the entity.
271
+ * @param consumed The number of characters consumed.
272
+ *
273
+ * @returns The number of characters consumed.
274
+ */
275
+ emitNamedEntityData(result, valueLength, consumed) {
276
+ const { decodeTree } = this;
277
+ this.emitCodePoint(valueLength === 1 ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH : decodeTree[result + 1], consumed);
278
+ if (valueLength === 3) this.emitCodePoint(decodeTree[result + 2], consumed);
279
+ return consumed;
280
+ }
281
+ /**
282
+ * Signal to the parser that the end of the input was reached.
283
+ *
284
+ * Remaining data will be emitted and relevant errors will be produced.
285
+ *
286
+ * @returns The number of characters consumed.
287
+ */
288
+ end() {
289
+ var _a;
290
+ switch (this.state) {
291
+ case EntityDecoderState.NamedEntity: return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
292
+ case EntityDecoderState.NumericDecimal: return this.emitNumericEntity(0, 2);
293
+ case EntityDecoderState.NumericHex: return this.emitNumericEntity(0, 3);
294
+ case EntityDecoderState.NumericStart:
295
+ (_a = this.errors) === null || _a === void 0 || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
296
+ return 0;
297
+ case EntityDecoderState.EntityStart: return 0;
298
+ }
299
+ }
300
+ };
301
+ /**
302
+ * Determines the branch of the current node that is taken given the current
303
+ * character. This function is used to traverse the trie.
304
+ *
305
+ * @param decodeTree The trie.
306
+ * @param current The current node.
307
+ * @param nodeIdx The index right after the current node and its value.
308
+ * @param char The current character.
309
+ * @returns The index of the next node, or -1 if no branch is taken.
310
+ */
311
+ function determineBranch(decodeTree, current, nodeIndex, char) {
312
+ const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
313
+ const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
314
+ if (branchCount === 0) return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
315
+ if (jumpOffset) {
316
+ const value = char - jumpOffset;
317
+ return value < 0 || value >= branchCount ? -1 : decodeTree[nodeIndex + value] - 1;
318
+ }
319
+ let lo = nodeIndex;
320
+ let hi = lo + branchCount - 1;
321
+ while (lo <= hi) {
322
+ const mid = lo + hi >>> 1;
323
+ const midValue = decodeTree[mid];
324
+ if (midValue < char) lo = mid + 1;
325
+ else if (midValue > char) hi = mid - 1;
326
+ else return decodeTree[mid + branchCount];
327
+ }
328
+ return -1;
329
+ }
330
+
331
+ //#endregion
332
+ export { DecodingMode, EntityDecoder };
333
+ //# sourceMappingURL=decode.mjs.map