@shell-shock/preset-cli 0.9.11 → 0.9.13

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 (340) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +16 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +42 -0
  3. package/dist/components/banner-builtin.cjs +3 -3
  4. package/dist/components/banner-builtin.mjs +3 -3
  5. package/dist/components/banner-builtin.mjs.map +1 -1
  6. package/dist/components/command-entry.cjs +1 -0
  7. package/dist/components/command-entry.mjs +1 -0
  8. package/dist/components/command-entry.mjs.map +1 -1
  9. package/dist/components/upgrade-builtin.cjs +1 -1
  10. package/dist/components/upgrade-builtin.mjs +1 -1
  11. package/dist/components/upgrade-builtin.mjs.map +1 -1
  12. package/dist/components/virtual-command-entry.cjs +1 -0
  13. package/dist/components/virtual-command-entry.mjs +1 -0
  14. package/dist/components/virtual-command-entry.mjs.map +1 -1
  15. package/dist/index.cjs +1 -1
  16. 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
  17. 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
  18. 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
  19. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +167 -0
  20. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +167 -0
  21. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +1 -0
  22. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +373 -0
  23. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +374 -0
  24. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
  25. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +60 -0
  26. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +59 -0
  27. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
  28. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +6 -0
  29. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +6 -0
  30. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
  31. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +6 -0
  32. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +6 -0
  33. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
  34. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +59 -0
  35. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +59 -0
  36. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +1 -0
  37. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +338 -0
  38. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +333 -0
  39. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +1 -0
  40. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +6 -0
  41. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +6 -0
  42. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +1 -0
  43. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +4095 -0
  44. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +4093 -0
  45. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +1 -0
  46. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +449 -0
  47. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +450 -0
  48. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
  49. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +47 -0
  50. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
  51. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
  52. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +94 -0
  53. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +94 -0
  54. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +1 -0
  55. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +78 -0
  56. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +78 -0
  57. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +1 -0
  58. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +123 -0
  59. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +123 -0
  60. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +1 -0
  61. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +246 -0
  62. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +244 -0
  63. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +1 -0
  64. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +80 -0
  65. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +80 -0
  66. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +1 -0
  67. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +80 -0
  68. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +80 -0
  69. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +1 -0
  70. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +45 -0
  71. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +45 -0
  72. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
  73. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +45 -0
  74. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +45 -0
  75. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
  76. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +94 -0
  77. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +92 -0
  78. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +1 -0
  79. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +1 -0
  80. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +3 -0
  81. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +69 -0
  82. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +69 -0
  83. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
  84. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +9 -0
  85. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +8 -0
  86. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
  87. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +205 -0
  88. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +189 -0
  89. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
  90. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +19 -0
  91. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +15 -0
  92. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
  93. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +61 -0
  94. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +62 -0
  95. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
  96. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +35 -0
  97. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +35 -0
  98. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
  99. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +43 -0
  100. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +44 -0
  101. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
  102. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +488 -0
  103. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +489 -0
  104. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +1 -0
  105. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +148 -0
  106. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +149 -0
  107. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
  108. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +51 -0
  109. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +52 -0
  110. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
  111. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +126 -0
  112. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +127 -0
  113. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +57 -0
  115. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +57 -0
  116. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
  117. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +23 -0
  118. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +23 -0
  119. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +31 -0
  121. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +31 -0
  122. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
  123. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +217 -0
  124. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +218 -0
  125. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +274 -0
  127. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +274 -0
  128. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
  129. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +107 -0
  130. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +108 -0
  131. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +27 -0
  133. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
  134. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
  135. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +48 -0
  136. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +48 -0
  137. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +35 -0
  139. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +36 -0
  140. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
  141. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +26 -0
  142. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +27 -0
  143. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +72 -0
  145. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
  146. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
  147. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +53 -0
  148. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +53 -0
  149. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
  150. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +157 -0
  151. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +158 -0
  152. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
  153. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +32 -0
  154. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +32 -0
  155. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
  156. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +140 -0
  157. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +141 -0
  158. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
  159. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +112 -0
  160. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +113 -0
  161. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
  162. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +139 -0
  163. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +140 -0
  164. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
  165. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +15 -0
  166. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
  167. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
  168. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +12 -0
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +81 -0
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +82 -0
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +13 -0
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +13 -0
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +45 -0
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +45 -0
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +112 -0
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +113 -0
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +14 -0
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +15 -0
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +22 -0
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +22 -0
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +55 -0
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +55 -0
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +41 -0
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +41 -0
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +62 -0
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +62 -0
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +64 -0
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +64 -0
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +45 -0
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +46 -0
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +48 -0
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +49 -0
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +22 -0
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +22 -0
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +34 -0
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +35 -0
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +82 -0
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +83 -0
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +84 -0
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +85 -0
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +42 -0
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +42 -0
  221. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
  222. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +26 -0
  223. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +27 -0
  224. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
  225. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +74 -0
  226. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
  227. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
  228. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +80 -0
  229. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +80 -0
  230. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
  231. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +41 -0
  232. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +41 -0
  233. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
  234. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +157 -0
  235. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +157 -0
  236. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +1 -0
  237. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +21 -0
  238. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +17 -0
  239. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
  240. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +74 -0
  241. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +74 -0
  242. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
  243. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +57 -0
  244. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +57 -0
  245. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
  246. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +18 -0
  247. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +18 -0
  248. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
  249. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +175 -0
  250. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +175 -0
  251. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
  252. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +19 -0
  253. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +15 -0
  254. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +1 -0
  255. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +104 -0
  256. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +104 -0
  257. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +1 -0
  258. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +73 -0
  259. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +68 -0
  260. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +1 -0
  261. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +266 -0
  262. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +262 -0
  263. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +575 -0
  265. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +543 -0
  266. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +1 -0
  267. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +27 -0
  268. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +21 -0
  269. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +105 -0
  271. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +94 -0
  272. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +1 -0
  273. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +33 -0
  274. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +34 -0
  275. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +99 -0
  277. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +93 -0
  278. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +1 -0
  279. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +2544 -0
  280. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +2545 -0
  281. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +296 -0
  283. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +297 -0
  284. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +1 -0
  285. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
  286. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +28 -0
  287. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +1 -0
  288. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +2069 -0
  289. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +2069 -0
  290. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +1 -0
  291. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +156 -0
  292. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +157 -0
  293. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +1 -0
  294. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +166 -0
  295. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +167 -0
  296. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +1 -0
  297. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +299 -0
  298. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +295 -0
  299. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +1 -0
  300. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +6 -0
  301. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +6 -0
  302. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
  303. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +6 -0
  304. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +6 -0
  305. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
  306. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +6 -0
  307. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +6 -0
  308. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
  309. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +6 -0
  310. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +6 -0
  311. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
  312. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +6 -0
  313. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +6 -0
  314. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
  315. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +25 -0
  316. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +21 -0
  317. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
  318. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +6 -0
  319. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +6 -0
  320. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
  321. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +15 -0
  322. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +17 -0
  323. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -0
  324. package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/changelog-command.cjs +5 -4
  325. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -3
  326. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  327. package/dist/{plugin-changelog → packages/plugin-changelog}/dist/index.cjs +1 -1
  328. package/dist/packages/unified/dist/html-DzncQodH.cjs +156 -0
  329. package/dist/packages/unified/dist/html-DzncQodH.mjs +157 -0
  330. package/dist/packages/unified/dist/html-DzncQodH.mjs.map +1 -0
  331. package/dist/packages/unified/dist/markdown/index.cjs +1 -0
  332. package/dist/packages/unified/dist/markdown/index.mjs +3 -0
  333. package/dist/packages/unified/dist/markdown-BiaU4FQg.cjs +82 -0
  334. package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs +83 -0
  335. package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs.map +1 -0
  336. package/package.json +35 -12
  337. package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs +0 -10
  338. package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs.map +0 -1
  339. package/dist/unified/dist/markdown-Bs-BRrSC.cjs +0 -10
  340. /package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/index.cjs +0 -0
@@ -0,0 +1,296 @@
1
+ const require_html = require('../common/html.cjs');
2
+
3
+ //#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js
4
+ const IMPLICIT_END_TAG_REQUIRED = new Set([
5
+ require_html.TAG_ID.DD,
6
+ require_html.TAG_ID.DT,
7
+ require_html.TAG_ID.LI,
8
+ require_html.TAG_ID.OPTGROUP,
9
+ require_html.TAG_ID.OPTION,
10
+ require_html.TAG_ID.P,
11
+ require_html.TAG_ID.RB,
12
+ require_html.TAG_ID.RP,
13
+ require_html.TAG_ID.RT,
14
+ require_html.TAG_ID.RTC
15
+ ]);
16
+ const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([
17
+ ...IMPLICIT_END_TAG_REQUIRED,
18
+ require_html.TAG_ID.CAPTION,
19
+ require_html.TAG_ID.COLGROUP,
20
+ require_html.TAG_ID.TBODY,
21
+ require_html.TAG_ID.TD,
22
+ require_html.TAG_ID.TFOOT,
23
+ require_html.TAG_ID.TH,
24
+ require_html.TAG_ID.THEAD,
25
+ require_html.TAG_ID.TR
26
+ ]);
27
+ const SCOPING_ELEMENTS_HTML = new Set([
28
+ require_html.TAG_ID.APPLET,
29
+ require_html.TAG_ID.CAPTION,
30
+ require_html.TAG_ID.HTML,
31
+ require_html.TAG_ID.MARQUEE,
32
+ require_html.TAG_ID.OBJECT,
33
+ require_html.TAG_ID.TABLE,
34
+ require_html.TAG_ID.TD,
35
+ require_html.TAG_ID.TEMPLATE,
36
+ require_html.TAG_ID.TH
37
+ ]);
38
+ const SCOPING_ELEMENTS_HTML_LIST = new Set([
39
+ ...SCOPING_ELEMENTS_HTML,
40
+ require_html.TAG_ID.OL,
41
+ require_html.TAG_ID.UL
42
+ ]);
43
+ const SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, require_html.TAG_ID.BUTTON]);
44
+ const SCOPING_ELEMENTS_MATHML = new Set([
45
+ require_html.TAG_ID.ANNOTATION_XML,
46
+ require_html.TAG_ID.MI,
47
+ require_html.TAG_ID.MN,
48
+ require_html.TAG_ID.MO,
49
+ require_html.TAG_ID.MS,
50
+ require_html.TAG_ID.MTEXT
51
+ ]);
52
+ const SCOPING_ELEMENTS_SVG = new Set([
53
+ require_html.TAG_ID.DESC,
54
+ require_html.TAG_ID.FOREIGN_OBJECT,
55
+ require_html.TAG_ID.TITLE
56
+ ]);
57
+ const TABLE_ROW_CONTEXT = new Set([
58
+ require_html.TAG_ID.TR,
59
+ require_html.TAG_ID.TEMPLATE,
60
+ require_html.TAG_ID.HTML
61
+ ]);
62
+ const TABLE_BODY_CONTEXT = new Set([
63
+ require_html.TAG_ID.TBODY,
64
+ require_html.TAG_ID.TFOOT,
65
+ require_html.TAG_ID.THEAD,
66
+ require_html.TAG_ID.TEMPLATE,
67
+ require_html.TAG_ID.HTML
68
+ ]);
69
+ const TABLE_CONTEXT = new Set([
70
+ require_html.TAG_ID.TABLE,
71
+ require_html.TAG_ID.TEMPLATE,
72
+ require_html.TAG_ID.HTML
73
+ ]);
74
+ const TABLE_CELLS = new Set([require_html.TAG_ID.TD, require_html.TAG_ID.TH]);
75
+ var OpenElementStack = class {
76
+ get currentTmplContentOrNode() {
77
+ return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
78
+ }
79
+ constructor(document, treeAdapter, handler) {
80
+ this.treeAdapter = treeAdapter;
81
+ this.handler = handler;
82
+ this.items = [];
83
+ this.tagIDs = [];
84
+ this.stackTop = -1;
85
+ this.tmplCount = 0;
86
+ this.currentTagId = require_html.TAG_ID.UNKNOWN;
87
+ this.current = document;
88
+ }
89
+ _indexOf(element) {
90
+ return this.items.lastIndexOf(element, this.stackTop);
91
+ }
92
+ _isInTemplate() {
93
+ return this.currentTagId === require_html.TAG_ID.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === require_html.NS.HTML;
94
+ }
95
+ _updateCurrentElement() {
96
+ this.current = this.items[this.stackTop];
97
+ this.currentTagId = this.tagIDs[this.stackTop];
98
+ }
99
+ push(element, tagID) {
100
+ this.stackTop++;
101
+ this.items[this.stackTop] = element;
102
+ this.current = element;
103
+ this.tagIDs[this.stackTop] = tagID;
104
+ this.currentTagId = tagID;
105
+ if (this._isInTemplate()) this.tmplCount++;
106
+ this.handler.onItemPush(element, tagID, true);
107
+ }
108
+ pop() {
109
+ const popped = this.current;
110
+ if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount--;
111
+ this.stackTop--;
112
+ this._updateCurrentElement();
113
+ this.handler.onItemPop(popped, true);
114
+ }
115
+ replace(oldElement, newElement) {
116
+ const idx = this._indexOf(oldElement);
117
+ this.items[idx] = newElement;
118
+ if (idx === this.stackTop) this.current = newElement;
119
+ }
120
+ insertAfter(referenceElement, newElement, newElementID) {
121
+ const insertionIdx = this._indexOf(referenceElement) + 1;
122
+ this.items.splice(insertionIdx, 0, newElement);
123
+ this.tagIDs.splice(insertionIdx, 0, newElementID);
124
+ this.stackTop++;
125
+ if (insertionIdx === this.stackTop) this._updateCurrentElement();
126
+ if (this.current && this.currentTagId !== void 0) this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);
127
+ }
128
+ popUntilTagNamePopped(tagName) {
129
+ let targetIdx = this.stackTop + 1;
130
+ do
131
+ targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);
132
+ while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== require_html.NS.HTML);
133
+ this.shortenToLength(Math.max(targetIdx, 0));
134
+ }
135
+ shortenToLength(idx) {
136
+ while (this.stackTop >= idx) {
137
+ const popped = this.current;
138
+ if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount -= 1;
139
+ this.stackTop--;
140
+ this._updateCurrentElement();
141
+ this.handler.onItemPop(popped, this.stackTop < idx);
142
+ }
143
+ }
144
+ popUntilElementPopped(element) {
145
+ const idx = this._indexOf(element);
146
+ this.shortenToLength(Math.max(idx, 0));
147
+ }
148
+ popUntilPopped(tagNames, targetNS) {
149
+ const idx = this._indexOfTagNames(tagNames, targetNS);
150
+ this.shortenToLength(Math.max(idx, 0));
151
+ }
152
+ popUntilNumberedHeaderPopped() {
153
+ this.popUntilPopped(require_html.NUMBERED_HEADERS, require_html.NS.HTML);
154
+ }
155
+ popUntilTableCellPopped() {
156
+ this.popUntilPopped(TABLE_CELLS, require_html.NS.HTML);
157
+ }
158
+ popAllUpToHtmlElement() {
159
+ this.tmplCount = 0;
160
+ this.shortenToLength(1);
161
+ }
162
+ _indexOfTagNames(tagNames, namespace) {
163
+ for (let i = this.stackTop; i >= 0; i--) if (tagNames.has(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) return i;
164
+ return -1;
165
+ }
166
+ clearBackTo(tagNames, targetNS) {
167
+ const idx = this._indexOfTagNames(tagNames, targetNS);
168
+ this.shortenToLength(idx + 1);
169
+ }
170
+ clearBackToTableContext() {
171
+ this.clearBackTo(TABLE_CONTEXT, require_html.NS.HTML);
172
+ }
173
+ clearBackToTableBodyContext() {
174
+ this.clearBackTo(TABLE_BODY_CONTEXT, require_html.NS.HTML);
175
+ }
176
+ clearBackToTableRowContext() {
177
+ this.clearBackTo(TABLE_ROW_CONTEXT, require_html.NS.HTML);
178
+ }
179
+ remove(element) {
180
+ const idx = this._indexOf(element);
181
+ if (idx >= 0) if (idx === this.stackTop) this.pop();
182
+ else {
183
+ this.items.splice(idx, 1);
184
+ this.tagIDs.splice(idx, 1);
185
+ this.stackTop--;
186
+ this._updateCurrentElement();
187
+ this.handler.onItemPop(element, false);
188
+ }
189
+ }
190
+ tryPeekProperlyNestedBodyElement() {
191
+ return this.stackTop >= 1 && this.tagIDs[1] === require_html.TAG_ID.BODY ? this.items[1] : null;
192
+ }
193
+ contains(element) {
194
+ return this._indexOf(element) > -1;
195
+ }
196
+ getCommonAncestor(element) {
197
+ const elementIdx = this._indexOf(element) - 1;
198
+ return elementIdx >= 0 ? this.items[elementIdx] : null;
199
+ }
200
+ isRootHtmlElementCurrent() {
201
+ return this.stackTop === 0 && this.tagIDs[0] === require_html.TAG_ID.HTML;
202
+ }
203
+ hasInDynamicScope(tagName, htmlScope) {
204
+ for (let i = this.stackTop; i >= 0; i--) {
205
+ const tn = this.tagIDs[i];
206
+ switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
207
+ case require_html.NS.HTML:
208
+ if (tn === tagName) return true;
209
+ if (htmlScope.has(tn)) return false;
210
+ break;
211
+ case require_html.NS.SVG:
212
+ if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
213
+ break;
214
+ case require_html.NS.MATHML:
215
+ if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
216
+ break;
217
+ }
218
+ }
219
+ return true;
220
+ }
221
+ hasInScope(tagName) {
222
+ return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);
223
+ }
224
+ hasInListItemScope(tagName) {
225
+ return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);
226
+ }
227
+ hasInButtonScope(tagName) {
228
+ return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);
229
+ }
230
+ hasNumberedHeaderInScope() {
231
+ for (let i = this.stackTop; i >= 0; i--) {
232
+ const tn = this.tagIDs[i];
233
+ switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
234
+ case require_html.NS.HTML:
235
+ if (require_html.NUMBERED_HEADERS.has(tn)) return true;
236
+ if (SCOPING_ELEMENTS_HTML.has(tn)) return false;
237
+ break;
238
+ case require_html.NS.SVG:
239
+ if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
240
+ break;
241
+ case require_html.NS.MATHML:
242
+ if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
243
+ break;
244
+ }
245
+ }
246
+ return true;
247
+ }
248
+ hasInTableScope(tagName) {
249
+ for (let i = this.stackTop; i >= 0; i--) {
250
+ if (this.treeAdapter.getNamespaceURI(this.items[i]) !== require_html.NS.HTML) continue;
251
+ switch (this.tagIDs[i]) {
252
+ case tagName: return true;
253
+ case require_html.TAG_ID.TABLE:
254
+ case require_html.TAG_ID.HTML: return false;
255
+ }
256
+ }
257
+ return true;
258
+ }
259
+ hasTableBodyContextInTableScope() {
260
+ for (let i = this.stackTop; i >= 0; i--) {
261
+ if (this.treeAdapter.getNamespaceURI(this.items[i]) !== require_html.NS.HTML) continue;
262
+ switch (this.tagIDs[i]) {
263
+ case require_html.TAG_ID.TBODY:
264
+ case require_html.TAG_ID.THEAD:
265
+ case require_html.TAG_ID.TFOOT: return true;
266
+ case require_html.TAG_ID.TABLE:
267
+ case require_html.TAG_ID.HTML: return false;
268
+ }
269
+ }
270
+ return true;
271
+ }
272
+ hasInSelectScope(tagName) {
273
+ for (let i = this.stackTop; i >= 0; i--) {
274
+ if (this.treeAdapter.getNamespaceURI(this.items[i]) !== require_html.NS.HTML) continue;
275
+ switch (this.tagIDs[i]) {
276
+ case tagName: return true;
277
+ case require_html.TAG_ID.OPTION:
278
+ case require_html.TAG_ID.OPTGROUP: break;
279
+ default: return false;
280
+ }
281
+ }
282
+ return true;
283
+ }
284
+ generateImpliedEndTags() {
285
+ while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) this.pop();
286
+ }
287
+ generateImpliedEndTagsThoroughly() {
288
+ while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
289
+ }
290
+ generateImpliedEndTagsWithExclusion(exclusionId) {
291
+ while (this.currentTagId !== void 0 && this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
292
+ }
293
+ };
294
+
295
+ //#endregion
296
+ exports.OpenElementStack = OpenElementStack;
@@ -0,0 +1,297 @@
1
+ import { NS, NUMBERED_HEADERS, TAG_ID } from "../common/html.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js
4
+ const IMPLICIT_END_TAG_REQUIRED = new Set([
5
+ TAG_ID.DD,
6
+ TAG_ID.DT,
7
+ TAG_ID.LI,
8
+ TAG_ID.OPTGROUP,
9
+ TAG_ID.OPTION,
10
+ TAG_ID.P,
11
+ TAG_ID.RB,
12
+ TAG_ID.RP,
13
+ TAG_ID.RT,
14
+ TAG_ID.RTC
15
+ ]);
16
+ const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([
17
+ ...IMPLICIT_END_TAG_REQUIRED,
18
+ TAG_ID.CAPTION,
19
+ TAG_ID.COLGROUP,
20
+ TAG_ID.TBODY,
21
+ TAG_ID.TD,
22
+ TAG_ID.TFOOT,
23
+ TAG_ID.TH,
24
+ TAG_ID.THEAD,
25
+ TAG_ID.TR
26
+ ]);
27
+ const SCOPING_ELEMENTS_HTML = new Set([
28
+ TAG_ID.APPLET,
29
+ TAG_ID.CAPTION,
30
+ TAG_ID.HTML,
31
+ TAG_ID.MARQUEE,
32
+ TAG_ID.OBJECT,
33
+ TAG_ID.TABLE,
34
+ TAG_ID.TD,
35
+ TAG_ID.TEMPLATE,
36
+ TAG_ID.TH
37
+ ]);
38
+ const SCOPING_ELEMENTS_HTML_LIST = new Set([
39
+ ...SCOPING_ELEMENTS_HTML,
40
+ TAG_ID.OL,
41
+ TAG_ID.UL
42
+ ]);
43
+ const SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, TAG_ID.BUTTON]);
44
+ const SCOPING_ELEMENTS_MATHML = new Set([
45
+ TAG_ID.ANNOTATION_XML,
46
+ TAG_ID.MI,
47
+ TAG_ID.MN,
48
+ TAG_ID.MO,
49
+ TAG_ID.MS,
50
+ TAG_ID.MTEXT
51
+ ]);
52
+ const SCOPING_ELEMENTS_SVG = new Set([
53
+ TAG_ID.DESC,
54
+ TAG_ID.FOREIGN_OBJECT,
55
+ TAG_ID.TITLE
56
+ ]);
57
+ const TABLE_ROW_CONTEXT = new Set([
58
+ TAG_ID.TR,
59
+ TAG_ID.TEMPLATE,
60
+ TAG_ID.HTML
61
+ ]);
62
+ const TABLE_BODY_CONTEXT = new Set([
63
+ TAG_ID.TBODY,
64
+ TAG_ID.TFOOT,
65
+ TAG_ID.THEAD,
66
+ TAG_ID.TEMPLATE,
67
+ TAG_ID.HTML
68
+ ]);
69
+ const TABLE_CONTEXT = new Set([
70
+ TAG_ID.TABLE,
71
+ TAG_ID.TEMPLATE,
72
+ TAG_ID.HTML
73
+ ]);
74
+ const TABLE_CELLS = new Set([TAG_ID.TD, TAG_ID.TH]);
75
+ var OpenElementStack = class {
76
+ get currentTmplContentOrNode() {
77
+ return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
78
+ }
79
+ constructor(document, treeAdapter, handler) {
80
+ this.treeAdapter = treeAdapter;
81
+ this.handler = handler;
82
+ this.items = [];
83
+ this.tagIDs = [];
84
+ this.stackTop = -1;
85
+ this.tmplCount = 0;
86
+ this.currentTagId = TAG_ID.UNKNOWN;
87
+ this.current = document;
88
+ }
89
+ _indexOf(element) {
90
+ return this.items.lastIndexOf(element, this.stackTop);
91
+ }
92
+ _isInTemplate() {
93
+ return this.currentTagId === TAG_ID.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;
94
+ }
95
+ _updateCurrentElement() {
96
+ this.current = this.items[this.stackTop];
97
+ this.currentTagId = this.tagIDs[this.stackTop];
98
+ }
99
+ push(element, tagID) {
100
+ this.stackTop++;
101
+ this.items[this.stackTop] = element;
102
+ this.current = element;
103
+ this.tagIDs[this.stackTop] = tagID;
104
+ this.currentTagId = tagID;
105
+ if (this._isInTemplate()) this.tmplCount++;
106
+ this.handler.onItemPush(element, tagID, true);
107
+ }
108
+ pop() {
109
+ const popped = this.current;
110
+ if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount--;
111
+ this.stackTop--;
112
+ this._updateCurrentElement();
113
+ this.handler.onItemPop(popped, true);
114
+ }
115
+ replace(oldElement, newElement) {
116
+ const idx = this._indexOf(oldElement);
117
+ this.items[idx] = newElement;
118
+ if (idx === this.stackTop) this.current = newElement;
119
+ }
120
+ insertAfter(referenceElement, newElement, newElementID) {
121
+ const insertionIdx = this._indexOf(referenceElement) + 1;
122
+ this.items.splice(insertionIdx, 0, newElement);
123
+ this.tagIDs.splice(insertionIdx, 0, newElementID);
124
+ this.stackTop++;
125
+ if (insertionIdx === this.stackTop) this._updateCurrentElement();
126
+ if (this.current && this.currentTagId !== void 0) this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);
127
+ }
128
+ popUntilTagNamePopped(tagName) {
129
+ let targetIdx = this.stackTop + 1;
130
+ do
131
+ targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);
132
+ while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);
133
+ this.shortenToLength(Math.max(targetIdx, 0));
134
+ }
135
+ shortenToLength(idx) {
136
+ while (this.stackTop >= idx) {
137
+ const popped = this.current;
138
+ if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount -= 1;
139
+ this.stackTop--;
140
+ this._updateCurrentElement();
141
+ this.handler.onItemPop(popped, this.stackTop < idx);
142
+ }
143
+ }
144
+ popUntilElementPopped(element) {
145
+ const idx = this._indexOf(element);
146
+ this.shortenToLength(Math.max(idx, 0));
147
+ }
148
+ popUntilPopped(tagNames, targetNS) {
149
+ const idx = this._indexOfTagNames(tagNames, targetNS);
150
+ this.shortenToLength(Math.max(idx, 0));
151
+ }
152
+ popUntilNumberedHeaderPopped() {
153
+ this.popUntilPopped(NUMBERED_HEADERS, NS.HTML);
154
+ }
155
+ popUntilTableCellPopped() {
156
+ this.popUntilPopped(TABLE_CELLS, NS.HTML);
157
+ }
158
+ popAllUpToHtmlElement() {
159
+ this.tmplCount = 0;
160
+ this.shortenToLength(1);
161
+ }
162
+ _indexOfTagNames(tagNames, namespace) {
163
+ for (let i = this.stackTop; i >= 0; i--) if (tagNames.has(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) return i;
164
+ return -1;
165
+ }
166
+ clearBackTo(tagNames, targetNS) {
167
+ const idx = this._indexOfTagNames(tagNames, targetNS);
168
+ this.shortenToLength(idx + 1);
169
+ }
170
+ clearBackToTableContext() {
171
+ this.clearBackTo(TABLE_CONTEXT, NS.HTML);
172
+ }
173
+ clearBackToTableBodyContext() {
174
+ this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);
175
+ }
176
+ clearBackToTableRowContext() {
177
+ this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);
178
+ }
179
+ remove(element) {
180
+ const idx = this._indexOf(element);
181
+ if (idx >= 0) if (idx === this.stackTop) this.pop();
182
+ else {
183
+ this.items.splice(idx, 1);
184
+ this.tagIDs.splice(idx, 1);
185
+ this.stackTop--;
186
+ this._updateCurrentElement();
187
+ this.handler.onItemPop(element, false);
188
+ }
189
+ }
190
+ tryPeekProperlyNestedBodyElement() {
191
+ return this.stackTop >= 1 && this.tagIDs[1] === TAG_ID.BODY ? this.items[1] : null;
192
+ }
193
+ contains(element) {
194
+ return this._indexOf(element) > -1;
195
+ }
196
+ getCommonAncestor(element) {
197
+ const elementIdx = this._indexOf(element) - 1;
198
+ return elementIdx >= 0 ? this.items[elementIdx] : null;
199
+ }
200
+ isRootHtmlElementCurrent() {
201
+ return this.stackTop === 0 && this.tagIDs[0] === TAG_ID.HTML;
202
+ }
203
+ hasInDynamicScope(tagName, htmlScope) {
204
+ for (let i = this.stackTop; i >= 0; i--) {
205
+ const tn = this.tagIDs[i];
206
+ switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
207
+ case NS.HTML:
208
+ if (tn === tagName) return true;
209
+ if (htmlScope.has(tn)) return false;
210
+ break;
211
+ case NS.SVG:
212
+ if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
213
+ break;
214
+ case NS.MATHML:
215
+ if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
216
+ break;
217
+ }
218
+ }
219
+ return true;
220
+ }
221
+ hasInScope(tagName) {
222
+ return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);
223
+ }
224
+ hasInListItemScope(tagName) {
225
+ return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);
226
+ }
227
+ hasInButtonScope(tagName) {
228
+ return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);
229
+ }
230
+ hasNumberedHeaderInScope() {
231
+ for (let i = this.stackTop; i >= 0; i--) {
232
+ const tn = this.tagIDs[i];
233
+ switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
234
+ case NS.HTML:
235
+ if (NUMBERED_HEADERS.has(tn)) return true;
236
+ if (SCOPING_ELEMENTS_HTML.has(tn)) return false;
237
+ break;
238
+ case NS.SVG:
239
+ if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
240
+ break;
241
+ case NS.MATHML:
242
+ if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
243
+ break;
244
+ }
245
+ }
246
+ return true;
247
+ }
248
+ hasInTableScope(tagName) {
249
+ for (let i = this.stackTop; i >= 0; i--) {
250
+ if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) continue;
251
+ switch (this.tagIDs[i]) {
252
+ case tagName: return true;
253
+ case TAG_ID.TABLE:
254
+ case TAG_ID.HTML: return false;
255
+ }
256
+ }
257
+ return true;
258
+ }
259
+ hasTableBodyContextInTableScope() {
260
+ for (let i = this.stackTop; i >= 0; i--) {
261
+ if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) continue;
262
+ switch (this.tagIDs[i]) {
263
+ case TAG_ID.TBODY:
264
+ case TAG_ID.THEAD:
265
+ case TAG_ID.TFOOT: return true;
266
+ case TAG_ID.TABLE:
267
+ case TAG_ID.HTML: return false;
268
+ }
269
+ }
270
+ return true;
271
+ }
272
+ hasInSelectScope(tagName) {
273
+ for (let i = this.stackTop; i >= 0; i--) {
274
+ if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) continue;
275
+ switch (this.tagIDs[i]) {
276
+ case tagName: return true;
277
+ case TAG_ID.OPTION:
278
+ case TAG_ID.OPTGROUP: break;
279
+ default: return false;
280
+ }
281
+ }
282
+ return true;
283
+ }
284
+ generateImpliedEndTags() {
285
+ while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) this.pop();
286
+ }
287
+ generateImpliedEndTagsThoroughly() {
288
+ while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
289
+ }
290
+ generateImpliedEndTagsWithExclusion(exclusionId) {
291
+ while (this.currentTagId !== void 0 && this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
292
+ }
293
+ };
294
+
295
+ //#endregion
296
+ export { OpenElementStack };
297
+ //# sourceMappingURL=open-element-stack.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-element-stack.mjs","names":["$"],"sources":["../../../../../../../../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js"],"sourcesContent":["import { TAG_ID as $, NS, NUMBERED_HEADERS } from '../common/html.js';\n//Element utils\nconst IMPLICIT_END_TAG_REQUIRED = new Set([$.DD, $.DT, $.LI, $.OPTGROUP, $.OPTION, $.P, $.RB, $.RP, $.RT, $.RTC]);\nconst IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([\n ...IMPLICIT_END_TAG_REQUIRED,\n $.CAPTION,\n $.COLGROUP,\n $.TBODY,\n $.TD,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TR,\n]);\nconst SCOPING_ELEMENTS_HTML = new Set([\n $.APPLET,\n $.CAPTION,\n $.HTML,\n $.MARQUEE,\n $.OBJECT,\n $.TABLE,\n $.TD,\n $.TEMPLATE,\n $.TH,\n]);\nconst SCOPING_ELEMENTS_HTML_LIST = new Set([...SCOPING_ELEMENTS_HTML, $.OL, $.UL]);\nconst SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, $.BUTTON]);\nconst SCOPING_ELEMENTS_MATHML = new Set([$.ANNOTATION_XML, $.MI, $.MN, $.MO, $.MS, $.MTEXT]);\nconst SCOPING_ELEMENTS_SVG = new Set([$.DESC, $.FOREIGN_OBJECT, $.TITLE]);\nconst TABLE_ROW_CONTEXT = new Set([$.TR, $.TEMPLATE, $.HTML]);\nconst TABLE_BODY_CONTEXT = new Set([$.TBODY, $.TFOOT, $.THEAD, $.TEMPLATE, $.HTML]);\nconst TABLE_CONTEXT = new Set([$.TABLE, $.TEMPLATE, $.HTML]);\nconst TABLE_CELLS = new Set([$.TD, $.TH]);\n//Stack of open elements\nexport class OpenElementStack {\n get currentTmplContentOrNode() {\n return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;\n }\n constructor(document, treeAdapter, handler) {\n this.treeAdapter = treeAdapter;\n this.handler = handler;\n this.items = [];\n this.tagIDs = [];\n this.stackTop = -1;\n this.tmplCount = 0;\n this.currentTagId = $.UNKNOWN;\n this.current = document;\n }\n //Index of element\n _indexOf(element) {\n return this.items.lastIndexOf(element, this.stackTop);\n }\n //Update current element\n _isInTemplate() {\n return this.currentTagId === $.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;\n }\n _updateCurrentElement() {\n this.current = this.items[this.stackTop];\n this.currentTagId = this.tagIDs[this.stackTop];\n }\n //Mutations\n push(element, tagID) {\n this.stackTop++;\n this.items[this.stackTop] = element;\n this.current = element;\n this.tagIDs[this.stackTop] = tagID;\n this.currentTagId = tagID;\n if (this._isInTemplate()) {\n this.tmplCount++;\n }\n this.handler.onItemPush(element, tagID, true);\n }\n pop() {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount--;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, true);\n }\n replace(oldElement, newElement) {\n const idx = this._indexOf(oldElement);\n this.items[idx] = newElement;\n if (idx === this.stackTop) {\n this.current = newElement;\n }\n }\n insertAfter(referenceElement, newElement, newElementID) {\n const insertionIdx = this._indexOf(referenceElement) + 1;\n this.items.splice(insertionIdx, 0, newElement);\n this.tagIDs.splice(insertionIdx, 0, newElementID);\n this.stackTop++;\n if (insertionIdx === this.stackTop) {\n this._updateCurrentElement();\n }\n if (this.current && this.currentTagId !== undefined) {\n this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);\n }\n }\n popUntilTagNamePopped(tagName) {\n let targetIdx = this.stackTop + 1;\n do {\n targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);\n } while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);\n this.shortenToLength(Math.max(targetIdx, 0));\n }\n shortenToLength(idx) {\n while (this.stackTop >= idx) {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount -= 1;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, this.stackTop < idx);\n }\n }\n popUntilElementPopped(element) {\n const idx = this._indexOf(element);\n this.shortenToLength(Math.max(idx, 0));\n }\n popUntilPopped(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(Math.max(idx, 0));\n }\n popUntilNumberedHeaderPopped() {\n this.popUntilPopped(NUMBERED_HEADERS, NS.HTML);\n }\n popUntilTableCellPopped() {\n this.popUntilPopped(TABLE_CELLS, NS.HTML);\n }\n popAllUpToHtmlElement() {\n //NOTE: here we assume that the root <html> element is always first in the open element stack, so\n //we perform this fast stack clean up.\n this.tmplCount = 0;\n this.shortenToLength(1);\n }\n _indexOfTagNames(tagNames, namespace) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (tagNames.has(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) {\n return i;\n }\n }\n return -1;\n }\n clearBackTo(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx + 1);\n }\n clearBackToTableContext() {\n this.clearBackTo(TABLE_CONTEXT, NS.HTML);\n }\n clearBackToTableBodyContext() {\n this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);\n }\n clearBackToTableRowContext() {\n this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);\n }\n remove(element) {\n const idx = this._indexOf(element);\n if (idx >= 0) {\n if (idx === this.stackTop) {\n this.pop();\n }\n else {\n this.items.splice(idx, 1);\n this.tagIDs.splice(idx, 1);\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(element, false);\n }\n }\n }\n //Search\n tryPeekProperlyNestedBodyElement() {\n //Properly nested <body> element (should be second element in stack).\n return this.stackTop >= 1 && this.tagIDs[1] === $.BODY ? this.items[1] : null;\n }\n contains(element) {\n return this._indexOf(element) > -1;\n }\n getCommonAncestor(element) {\n const elementIdx = this._indexOf(element) - 1;\n return elementIdx >= 0 ? this.items[elementIdx] : null;\n }\n isRootHtmlElementCurrent() {\n return this.stackTop === 0 && this.tagIDs[0] === $.HTML;\n }\n //Element in scope\n hasInDynamicScope(tagName, htmlScope) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n switch (this.treeAdapter.getNamespaceURI(this.items[i])) {\n case NS.HTML: {\n if (tn === tagName)\n return true;\n if (htmlScope.has(tn))\n return false;\n break;\n }\n case NS.SVG: {\n if (SCOPING_ELEMENTS_SVG.has(tn))\n return false;\n break;\n }\n case NS.MATHML: {\n if (SCOPING_ELEMENTS_MATHML.has(tn))\n return false;\n break;\n }\n }\n }\n return true;\n }\n hasInScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);\n }\n hasInListItemScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);\n }\n hasInButtonScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);\n }\n hasNumberedHeaderInScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n switch (this.treeAdapter.getNamespaceURI(this.items[i])) {\n case NS.HTML: {\n if (NUMBERED_HEADERS.has(tn))\n return true;\n if (SCOPING_ELEMENTS_HTML.has(tn))\n return false;\n break;\n }\n case NS.SVG: {\n if (SCOPING_ELEMENTS_SVG.has(tn))\n return false;\n break;\n }\n case NS.MATHML: {\n if (SCOPING_ELEMENTS_MATHML.has(tn))\n return false;\n break;\n }\n }\n }\n return true;\n }\n hasInTableScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case tagName: {\n return true;\n }\n case $.TABLE:\n case $.HTML: {\n return false;\n }\n }\n }\n return true;\n }\n hasTableBodyContextInTableScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case $.TBODY:\n case $.THEAD:\n case $.TFOOT: {\n return true;\n }\n case $.TABLE:\n case $.HTML: {\n return false;\n }\n }\n }\n return true;\n }\n hasInSelectScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case tagName: {\n return true;\n }\n case $.OPTION:\n case $.OPTGROUP: {\n break;\n }\n default: {\n return false;\n }\n }\n }\n return true;\n }\n //Implied end tags\n generateImpliedEndTags() {\n while (this.currentTagId !== undefined && IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsThoroughly() {\n while (this.currentTagId !== undefined && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsWithExclusion(exclusionId) {\n while (this.currentTagId !== undefined &&\n this.currentTagId !== exclusionId &&\n IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,MAAM,4BAA4B,IAAI,IAAI;CAACA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAUA,OAAE;CAAQA,OAAE;CAAGA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAI,CAAC;AACjH,MAAM,uCAAuC,IAAI,IAAI;CACjD,GAAG;CACHA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACL,CAAC;AACF,MAAM,wBAAwB,IAAI,IAAI;CAClCA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACL,CAAC;AACF,MAAM,6BAA6B,IAAI,IAAI;CAAC,GAAG;CAAuBA,OAAE;CAAIA,OAAE;CAAG,CAAC;AAClF,MAAM,+BAA+B,IAAI,IAAI,CAAC,GAAG,uBAA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3
+
4
+ //#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.js
5
+ const VOID_ELEMENTS = new Set([
6
+ require_html.TAG_NAMES.AREA,
7
+ require_html.TAG_NAMES.BASE,
8
+ require_html.TAG_NAMES.BASEFONT,
9
+ require_html.TAG_NAMES.BGSOUND,
10
+ require_html.TAG_NAMES.BR,
11
+ require_html.TAG_NAMES.COL,
12
+ require_html.TAG_NAMES.EMBED,
13
+ require_html.TAG_NAMES.FRAME,
14
+ require_html.TAG_NAMES.HR,
15
+ require_html.TAG_NAMES.IMG,
16
+ require_html.TAG_NAMES.INPUT,
17
+ require_html.TAG_NAMES.KEYGEN,
18
+ require_html.TAG_NAMES.LINK,
19
+ require_html.TAG_NAMES.META,
20
+ require_html.TAG_NAMES.PARAM,
21
+ require_html.TAG_NAMES.SOURCE,
22
+ require_html.TAG_NAMES.TRACK,
23
+ require_html.TAG_NAMES.WBR
24
+ ]);
25
+
26
+ //#endregion
@@ -0,0 +1,28 @@
1
+ import { TAG_NAMES } from "../common/html.mjs";
2
+ import "../tree-adapters/default.mjs";
3
+
4
+ //#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.js
5
+ const VOID_ELEMENTS = new Set([
6
+ TAG_NAMES.AREA,
7
+ TAG_NAMES.BASE,
8
+ TAG_NAMES.BASEFONT,
9
+ TAG_NAMES.BGSOUND,
10
+ TAG_NAMES.BR,
11
+ TAG_NAMES.COL,
12
+ TAG_NAMES.EMBED,
13
+ TAG_NAMES.FRAME,
14
+ TAG_NAMES.HR,
15
+ TAG_NAMES.IMG,
16
+ TAG_NAMES.INPUT,
17
+ TAG_NAMES.KEYGEN,
18
+ TAG_NAMES.LINK,
19
+ TAG_NAMES.META,
20
+ TAG_NAMES.PARAM,
21
+ TAG_NAMES.SOURCE,
22
+ TAG_NAMES.TRACK,
23
+ TAG_NAMES.WBR
24
+ ]);
25
+
26
+ //#endregion
27
+ export { };
28
+ //# sourceMappingURL=index.mjs.map