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