@opentiny/tiny-robot 0.2.0-alpha.2 → 0.2.0-alpha.4
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/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2200 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +429 -0
- package/dist/sender/index.js +772 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +107 -107
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -17
- package/dist/bubble/BubbleList.vue.d.ts +0 -5
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -51
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -6
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -310
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -121
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/Bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
- package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
- package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -143
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -22
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -175
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -247
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -21
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/Bubble.vue +0 -153
- package/src/bubble/BubbleList.vue +0 -55
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -49
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -109
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -7
- package/src/icon-button/index.vue +0 -58
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -465
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { isSpace as g } from "../common/utils.js";
|
|
2
|
-
const S = 65536;
|
|
3
|
-
function x(e, o) {
|
|
4
|
-
const p = e.bMarks[o] + e.tShift[o], h = e.eMarks[o];
|
|
5
|
-
return e.src.slice(p, h);
|
|
6
|
-
}
|
|
7
|
-
function y(e) {
|
|
8
|
-
const o = [], p = e.length;
|
|
9
|
-
let h = 0, l = e.charCodeAt(h), i = !1, f = 0, c = "";
|
|
10
|
-
for (; h < p; )
|
|
11
|
-
l === 124 && (i ? (c += e.substring(f, h - 1), f = h) : (o.push(c + e.substring(f, h)), c = "", f = h + 1)), i = l === 92, h++, l = e.charCodeAt(h);
|
|
12
|
-
return o.push(c + e.substring(f)), o;
|
|
13
|
-
}
|
|
14
|
-
function O(e, o, p, h) {
|
|
15
|
-
if (o + 2 > p)
|
|
16
|
-
return !1;
|
|
17
|
-
let l = o + 1;
|
|
18
|
-
if (e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
19
|
-
return !1;
|
|
20
|
-
let i = e.bMarks[l] + e.tShift[l];
|
|
21
|
-
if (i >= e.eMarks[l])
|
|
22
|
-
return !1;
|
|
23
|
-
const f = e.src.charCodeAt(i++);
|
|
24
|
-
if (f !== 124 && f !== 45 && f !== 58 || i >= e.eMarks[l])
|
|
25
|
-
return !1;
|
|
26
|
-
const c = e.src.charCodeAt(i++);
|
|
27
|
-
if (c !== 124 && c !== 45 && c !== 58 && !g(c) || f === 45 && g(c))
|
|
28
|
-
return !1;
|
|
29
|
-
for (; i < e.eMarks[l]; ) {
|
|
30
|
-
const r = e.src.charCodeAt(i);
|
|
31
|
-
if (r !== 124 && r !== 45 && r !== 58 && !g(r))
|
|
32
|
-
return !1;
|
|
33
|
-
i++;
|
|
34
|
-
}
|
|
35
|
-
let d = x(e, o + 1), n = d.split("|");
|
|
36
|
-
const s = [];
|
|
37
|
-
for (let r = 0; r < n.length; r++) {
|
|
38
|
-
const u = n[r].trim();
|
|
39
|
-
if (!u) {
|
|
40
|
-
if (r === 0 || r === n.length - 1)
|
|
41
|
-
continue;
|
|
42
|
-
return !1;
|
|
43
|
-
}
|
|
44
|
-
if (!/^:?-+:?$/.test(u))
|
|
45
|
-
return !1;
|
|
46
|
-
u.charCodeAt(u.length - 1) === 58 ? s.push(u.charCodeAt(0) === 58 ? "center" : "right") : u.charCodeAt(0) === 58 ? s.push("left") : s.push("");
|
|
47
|
-
}
|
|
48
|
-
if (d = x(e, o).trim(), d.indexOf("|") === -1 || e.sCount[o] - e.blkIndent >= 4)
|
|
49
|
-
return !1;
|
|
50
|
-
n = y(d), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop();
|
|
51
|
-
const b = n.length;
|
|
52
|
-
if (b === 0 || b !== s.length)
|
|
53
|
-
return !1;
|
|
54
|
-
if (h)
|
|
55
|
-
return !0;
|
|
56
|
-
const M = e.parentType;
|
|
57
|
-
e.parentType = "table";
|
|
58
|
-
const C = e.md.block.ruler.getRules("blockquote"), T = e.push("table_open", "table", 1), m = [o, 0];
|
|
59
|
-
T.map = m;
|
|
60
|
-
const D = e.push("thead_open", "thead", 1);
|
|
61
|
-
D.map = [o, o + 1];
|
|
62
|
-
const I = e.push("tr_open", "tr", 1);
|
|
63
|
-
I.map = [o, o + 1];
|
|
64
|
-
for (let r = 0; r < n.length; r++) {
|
|
65
|
-
const u = e.push("th_open", "th", 1);
|
|
66
|
-
s[r] && (u.attrs = [["style", "text-align:" + s[r]]]);
|
|
67
|
-
const t = e.push("inline", "", 0);
|
|
68
|
-
t.content = n[r].trim(), t.children = [], e.push("th_close", "th", -1);
|
|
69
|
-
}
|
|
70
|
-
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
71
|
-
let k, A = 0;
|
|
72
|
-
for (l = o + 2; l < p && !(e.sCount[l] < e.blkIndent); l++) {
|
|
73
|
-
let r = !1;
|
|
74
|
-
for (let t = 0, _ = C.length; t < _; t++)
|
|
75
|
-
if (C[t](e, l, p, !0)) {
|
|
76
|
-
r = !0;
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
if (r || (d = x(e, l).trim(), !d) || e.sCount[l] - e.blkIndent >= 4 || (n = y(d), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop(), A += b - n.length, A > S))
|
|
80
|
-
break;
|
|
81
|
-
if (l === o + 2) {
|
|
82
|
-
const t = e.push("tbody_open", "tbody", 1);
|
|
83
|
-
t.map = k = [o + 2, 0];
|
|
84
|
-
}
|
|
85
|
-
const u = e.push("tr_open", "tr", 1);
|
|
86
|
-
u.map = [l, l + 1];
|
|
87
|
-
for (let t = 0; t < b; t++) {
|
|
88
|
-
const _ = e.push("td_open", "td", 1);
|
|
89
|
-
s[t] && (_.attrs = [["style", "text-align:" + s[t]]]);
|
|
90
|
-
const a = e.push("inline", "", 0);
|
|
91
|
-
a.content = n[t] ? n[t].trim() : "", a.children = [], e.push("td_close", "td", -1);
|
|
92
|
-
}
|
|
93
|
-
e.push("tr_close", "tr", -1);
|
|
94
|
-
}
|
|
95
|
-
return k && (e.push("tbody_close", "tbody", -1), k[1] = l), e.push("table_close", "table", -1), m[1] = l, e.parentType = M, e.line = l, !0;
|
|
96
|
-
}
|
|
97
|
-
export {
|
|
98
|
-
O as default
|
|
99
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { arrayReplaceAt as _ } from "../common/utils.js";
|
|
2
|
-
function w(e) {
|
|
3
|
-
return /^<a[>\s]/i.test(e);
|
|
4
|
-
}
|
|
5
|
-
function g(e) {
|
|
6
|
-
return /^<\/a\s*>/i.test(e);
|
|
7
|
-
}
|
|
8
|
-
function b(e) {
|
|
9
|
-
const f = e.tokens;
|
|
10
|
-
if (e.md.options.linkify)
|
|
11
|
-
for (let k = 0, T = f.length; k < T; k++) {
|
|
12
|
-
if (f[k].type !== "inline" || !e.md.linkify.pretest(f[k].content))
|
|
13
|
-
continue;
|
|
14
|
-
let c = f[k].children, u = 0;
|
|
15
|
-
for (let l = c.length - 1; l >= 0; l--) {
|
|
16
|
-
const i = c[l];
|
|
17
|
-
if (i.type === "link_close") {
|
|
18
|
-
for (l--; c[l].level !== i.level && c[l].type !== "link_open"; )
|
|
19
|
-
l--;
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
if (i.type === "html_inline" && (w(i.content) && u > 0 && u--, g(i.content) && u++), !(u > 0) && i.type === "text" && e.md.linkify.test(i.content)) {
|
|
23
|
-
const h = i.content;
|
|
24
|
-
let t = e.md.linkify.match(h);
|
|
25
|
-
const s = [];
|
|
26
|
-
let r = i.level, p = 0;
|
|
27
|
-
t.length > 0 && t[0].index === 0 && l > 0 && c[l - 1].type === "text_special" && (t = t.slice(1));
|
|
28
|
-
for (let n = 0; n < t.length; n++) {
|
|
29
|
-
const L = t[n].url, y = e.md.normalizeLink(L);
|
|
30
|
-
if (!e.md.validateLink(y))
|
|
31
|
-
continue;
|
|
32
|
-
let o = t[n].text;
|
|
33
|
-
t[n].schema ? t[n].schema === "mailto:" && !/^mailto:/i.test(o) ? o = e.md.normalizeLinkText("mailto:" + o).replace(/^mailto:/, "") : o = e.md.normalizeLinkText(o) : o = e.md.normalizeLinkText("http://" + o).replace(/^http:\/\//, "");
|
|
34
|
-
const v = t[n].index;
|
|
35
|
-
if (v > p) {
|
|
36
|
-
const x = new e.Token("text", "", 0);
|
|
37
|
-
x.content = h.slice(p, v), x.level = r, s.push(x);
|
|
38
|
-
}
|
|
39
|
-
const m = new e.Token("link_open", "a", 1);
|
|
40
|
-
m.attrs = [["href", y]], m.level = r++, m.markup = "linkify", m.info = "auto", s.push(m);
|
|
41
|
-
const d = new e.Token("text", "", 0);
|
|
42
|
-
d.content = o, d.level = r, s.push(d);
|
|
43
|
-
const a = new e.Token("link_close", "a", -1);
|
|
44
|
-
a.level = --r, a.markup = "linkify", a.info = "auto", s.push(a), p = t[n].lastIndex;
|
|
45
|
-
}
|
|
46
|
-
if (p < h.length) {
|
|
47
|
-
const n = new e.Token("text", "", 0);
|
|
48
|
-
n.content = h.slice(p), n.level = r, s.push(n);
|
|
49
|
-
}
|
|
50
|
-
f[k].children = c = _(c, l, s);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
b as default
|
|
57
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const c = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, i = /\((c|tm|r)\)/i, l = /\((c|tm|r)\)/ig, r = {
|
|
2
|
-
c: "©",
|
|
3
|
-
r: "®",
|
|
4
|
-
tm: "™"
|
|
5
|
-
};
|
|
6
|
-
function p(n, e) {
|
|
7
|
-
return r[e.toLowerCase()];
|
|
8
|
-
}
|
|
9
|
-
function f(n) {
|
|
10
|
-
let e = 0;
|
|
11
|
-
for (let o = n.length - 1; o >= 0; o--) {
|
|
12
|
-
const t = n[o];
|
|
13
|
-
t.type === "text" && !e && (t.content = t.content.replace(l, p)), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function a(n) {
|
|
17
|
-
let e = 0;
|
|
18
|
-
for (let o = n.length - 1; o >= 0; o--) {
|
|
19
|
-
const t = n[o];
|
|
20
|
-
t.type === "text" && !e && c.test(t.content) && (t.content = t.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function s(n) {
|
|
24
|
-
let e;
|
|
25
|
-
if (n.md.options.typographer)
|
|
26
|
-
for (e = n.tokens.length - 1; e >= 0; e--)
|
|
27
|
-
n.tokens[e].type === "inline" && (i.test(n.tokens[e].content) && f(n.tokens[e].children), c.test(n.tokens[e].content) && a(n.tokens[e].children));
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
s as default
|
|
31
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { isMdAsciiPunct as v, isPunctChar as E, isWhiteSpace as P } from "../common/utils.js";
|
|
2
|
-
const T = /['"]/, q = /['"]/g, O = "’";
|
|
3
|
-
function b(t, n, e) {
|
|
4
|
-
return t.slice(0, n) + e + t.slice(n + 1);
|
|
5
|
-
}
|
|
6
|
-
function Q(t, n) {
|
|
7
|
-
let e;
|
|
8
|
-
const i = [];
|
|
9
|
-
for (let c = 0; c < t.length; c++) {
|
|
10
|
-
const l = t[c], x = t[c].level;
|
|
11
|
-
for (e = i.length - 1; e >= 0 && !(i[e].level <= x); e--)
|
|
12
|
-
;
|
|
13
|
-
if (i.length = e + 1, l.type !== "text")
|
|
14
|
-
continue;
|
|
15
|
-
let h = l.content, r = 0, m = h.length;
|
|
16
|
-
e:
|
|
17
|
-
for (; r < m; ) {
|
|
18
|
-
q.lastIndex = r;
|
|
19
|
-
const o = q.exec(h);
|
|
20
|
-
if (!o)
|
|
21
|
-
break;
|
|
22
|
-
let s = !0, f = !0;
|
|
23
|
-
r = o.index + 1;
|
|
24
|
-
const d = o[0] === "'";
|
|
25
|
-
let a = 32;
|
|
26
|
-
if (o.index - 1 >= 0)
|
|
27
|
-
a = h.charCodeAt(o.index - 1);
|
|
28
|
-
else
|
|
29
|
-
for (e = c - 1; e >= 0 && !(t[e].type === "softbreak" || t[e].type === "hardbreak"); e--)
|
|
30
|
-
if (t[e].content) {
|
|
31
|
-
a = t[e].content.charCodeAt(t[e].content.length - 1);
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
let u = 32;
|
|
35
|
-
if (r < m)
|
|
36
|
-
u = h.charCodeAt(r);
|
|
37
|
-
else
|
|
38
|
-
for (e = c + 1; e < t.length && !(t[e].type === "softbreak" || t[e].type === "hardbreak"); e++)
|
|
39
|
-
if (t[e].content) {
|
|
40
|
-
u = t[e].content.charCodeAt(0);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
const k = v(a) || E(String.fromCharCode(a)), S = v(u) || E(String.fromCharCode(u)), y = P(a), A = P(u);
|
|
44
|
-
if (A ? s = !1 : S && (y || k || (s = !1)), y ? f = !1 : k && (A || S || (f = !1)), u === 34 && o[0] === '"' && a >= 48 && a <= 57 && (f = s = !1), s && f && (s = k, f = S), !s && !f) {
|
|
45
|
-
d && (l.content = b(l.content, o.index, O));
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
if (f)
|
|
49
|
-
for (e = i.length - 1; e >= 0; e--) {
|
|
50
|
-
let p = i[e];
|
|
51
|
-
if (i[e].level < x)
|
|
52
|
-
break;
|
|
53
|
-
if (p.single === d && i[e].level === x) {
|
|
54
|
-
p = i[e];
|
|
55
|
-
let g, C;
|
|
56
|
-
d ? (g = n.md.options.quotes[2], C = n.md.options.quotes[3]) : (g = n.md.options.quotes[0], C = n.md.options.quotes[1]), l.content = b(l.content, o.index, C), t[p.token].content = b(
|
|
57
|
-
t[p.token].content,
|
|
58
|
-
p.pos,
|
|
59
|
-
g
|
|
60
|
-
), r += C.length - 1, p.token === c && (r += g.length - 1), h = l.content, m = h.length, i.length = e;
|
|
61
|
-
continue e;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
s ? i.push({
|
|
65
|
-
token: c,
|
|
66
|
-
pos: o.index,
|
|
67
|
-
single: d,
|
|
68
|
-
level: x
|
|
69
|
-
}) : f && d && (l.content = b(l.content, o.index, O));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function L(t) {
|
|
74
|
-
if (t.md.options.typographer)
|
|
75
|
-
for (let n = t.tokens.length - 1; n >= 0; n--)
|
|
76
|
-
t.tokens[n].type !== "inline" || !T.test(t.tokens[n].content) || Q(t.tokens[n].children, t);
|
|
77
|
-
}
|
|
78
|
-
export {
|
|
79
|
-
L as default
|
|
80
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function f(i) {
|
|
2
|
-
let t, n;
|
|
3
|
-
const c = i.tokens, s = c.length;
|
|
4
|
-
for (let o = 0; o < s; o++) {
|
|
5
|
-
if (c[o].type !== "inline") continue;
|
|
6
|
-
const e = c[o].children, l = e.length;
|
|
7
|
-
for (t = 0; t < l; t++)
|
|
8
|
-
e[t].type === "text_special" && (e[t].type = "text");
|
|
9
|
-
for (t = n = 0; t < l; t++)
|
|
10
|
-
e[t].type === "text" && t + 1 < l && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
|
|
11
|
-
t !== n && (e.length = n);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
f as default
|
|
16
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const f = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, k = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2
|
-
function s(n, a) {
|
|
3
|
-
let u = n.pos;
|
|
4
|
-
if (n.src.charCodeAt(u) !== 60)
|
|
5
|
-
return !1;
|
|
6
|
-
const e = n.pos, c = n.posMax;
|
|
7
|
-
for (; ; ) {
|
|
8
|
-
if (++u >= c) return !1;
|
|
9
|
-
const r = n.src.charCodeAt(u);
|
|
10
|
-
if (r === 60) return !1;
|
|
11
|
-
if (r === 62) break;
|
|
12
|
-
}
|
|
13
|
-
const o = n.src.slice(e + 1, u);
|
|
14
|
-
if (k.test(o)) {
|
|
15
|
-
const r = n.md.normalizeLink(o);
|
|
16
|
-
if (!n.md.validateLink(r))
|
|
17
|
-
return !1;
|
|
18
|
-
if (!a) {
|
|
19
|
-
const i = n.push("link_open", "a", 1);
|
|
20
|
-
i.attrs = [["href", r]], i.markup = "autolink", i.info = "auto";
|
|
21
|
-
const t = n.push("text", "", 0);
|
|
22
|
-
t.content = n.md.normalizeLinkText(o);
|
|
23
|
-
const l = n.push("link_close", "a", -1);
|
|
24
|
-
l.markup = "autolink", l.info = "auto";
|
|
25
|
-
}
|
|
26
|
-
return n.pos += o.length + 2, !0;
|
|
27
|
-
}
|
|
28
|
-
if (f.test(o)) {
|
|
29
|
-
const r = n.md.normalizeLink("mailto:" + o);
|
|
30
|
-
if (!n.md.validateLink(r))
|
|
31
|
-
return !1;
|
|
32
|
-
if (!a) {
|
|
33
|
-
const i = n.push("link_open", "a", 1);
|
|
34
|
-
i.attrs = [["href", r]], i.markup = "autolink", i.info = "auto";
|
|
35
|
-
const t = n.push("text", "", 0);
|
|
36
|
-
t.content = n.md.normalizeLinkText(o);
|
|
37
|
-
const l = n.push("link_close", "a", -1);
|
|
38
|
-
l.markup = "autolink", l.info = "auto";
|
|
39
|
-
}
|
|
40
|
-
return n.pos += o.length + 2, !0;
|
|
41
|
-
}
|
|
42
|
-
return !1;
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
s as default
|
|
46
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function s(c, h) {
|
|
2
|
-
let n = c.pos;
|
|
3
|
-
if (c.src.charCodeAt(n) !== 96)
|
|
4
|
-
return !1;
|
|
5
|
-
const p = n;
|
|
6
|
-
n++;
|
|
7
|
-
const k = c.posMax;
|
|
8
|
-
for (; n < k && c.src.charCodeAt(n) === 96; )
|
|
9
|
-
n++;
|
|
10
|
-
const o = c.src.slice(p, n), i = o.length;
|
|
11
|
-
if (c.backticksScanned && (c.backticks[i] || 0) <= p)
|
|
12
|
-
return h || (c.pending += o), c.pos += i, !0;
|
|
13
|
-
let r = n, e;
|
|
14
|
-
for (; (e = c.src.indexOf("`", r)) !== -1; ) {
|
|
15
|
-
for (r = e + 1; r < k && c.src.charCodeAt(r) === 96; )
|
|
16
|
-
r++;
|
|
17
|
-
const l = r - e;
|
|
18
|
-
if (l === i) {
|
|
19
|
-
if (!h) {
|
|
20
|
-
const d = c.push("code_inline", "code", 0);
|
|
21
|
-
d.markup = o, d.content = c.src.slice(n, e).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
22
|
-
}
|
|
23
|
-
return c.pos = r, !0;
|
|
24
|
-
}
|
|
25
|
-
c.backticks[l] = e;
|
|
26
|
-
}
|
|
27
|
-
return c.backticksScanned = !0, h || (c.pending += o), c.pos += i, !0;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
s as default
|
|
31
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
function k(o) {
|
|
2
|
-
const r = {}, c = o.length;
|
|
3
|
-
if (!c) return;
|
|
4
|
-
let n = 0, f = -2;
|
|
5
|
-
const a = [];
|
|
6
|
-
for (let s = 0; s < c; s++) {
|
|
7
|
-
const e = o[s];
|
|
8
|
-
if (a.push(0), (o[n].marker !== e.marker || f !== e.token - 1) && (n = s), f = e.token, e.length = e.length || 0, !e.close) continue;
|
|
9
|
-
r.hasOwnProperty(e.marker) || (r[e.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
10
|
-
const h = r[e.marker][(e.open ? 3 : 0) + e.length % 3];
|
|
11
|
-
let t = n - a[n] - 1, i = t;
|
|
12
|
-
for (; t > h; t -= a[t] + 1) {
|
|
13
|
-
const l = o[t];
|
|
14
|
-
if (l.marker === e.marker && l.open && l.end < 0) {
|
|
15
|
-
let p = !1;
|
|
16
|
-
if ((l.close || e.open) && (l.length + e.length) % 3 === 0 && (l.length % 3 !== 0 || e.length % 3 !== 0) && (p = !0), !p) {
|
|
17
|
-
const m = t > 0 && !o[t - 1].open ? a[t - 1] + 1 : 0;
|
|
18
|
-
a[s] = s - t + m, a[t] = m, e.open = !1, l.end = s, l.close = !1, i = -1, f = -2;
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
i !== -1 && (r[e.marker][(e.open ? 3 : 0) + (e.length || 0) % 3] = i);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function d(o) {
|
|
27
|
-
const r = o.tokens_meta, c = o.tokens_meta.length;
|
|
28
|
-
k(o.delimiters);
|
|
29
|
-
for (let n = 0; n < c; n++)
|
|
30
|
-
r[n] && r[n].delimiters && k(r[n].delimiters);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
d as default
|
|
34
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
function i(o, t) {
|
|
2
|
-
const c = o.pos, n = o.src.charCodeAt(c);
|
|
3
|
-
if (t || n !== 95 && n !== 42)
|
|
4
|
-
return !1;
|
|
5
|
-
const e = o.scanDelims(o.pos, n === 42);
|
|
6
|
-
for (let k = 0; k < e.length; k++) {
|
|
7
|
-
const s = o.push("text", "", 0);
|
|
8
|
-
s.content = String.fromCharCode(n), o.delimiters.push({
|
|
9
|
-
// Char code of the starting marker (number).
|
|
10
|
-
//
|
|
11
|
-
marker: n,
|
|
12
|
-
// Total length of these series of delimiters.
|
|
13
|
-
//
|
|
14
|
-
length: e.length,
|
|
15
|
-
// A position of the token this delimiter corresponds to.
|
|
16
|
-
//
|
|
17
|
-
token: o.tokens.length - 1,
|
|
18
|
-
// If this delimiter is matched as a valid opener, `end` will be
|
|
19
|
-
// equal to its position, otherwise it's `-1`.
|
|
20
|
-
//
|
|
21
|
-
end: -1,
|
|
22
|
-
// Boolean flags that determine if this delimiter could open or close
|
|
23
|
-
// an emphasis.
|
|
24
|
-
//
|
|
25
|
-
open: e.can_open,
|
|
26
|
-
close: e.can_close
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return o.pos += e.length, !0;
|
|
30
|
-
}
|
|
31
|
-
function g(o, t) {
|
|
32
|
-
const c = t.length;
|
|
33
|
-
for (let n = c - 1; n >= 0; n--) {
|
|
34
|
-
const e = t[n];
|
|
35
|
-
if (e.marker !== 95 && e.marker !== 42 || e.end === -1)
|
|
36
|
-
continue;
|
|
37
|
-
const k = t[e.end], s = n > 0 && t[n - 1].end === e.end + 1 && // check that first two markers match and adjacent
|
|
38
|
-
t[n - 1].marker === e.marker && t[n - 1].token === e.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
39
|
-
t[e.end + 1].token === k.token + 1, r = String.fromCharCode(e.marker), m = o.tokens[e.token];
|
|
40
|
-
m.type = s ? "strong_open" : "em_open", m.tag = s ? "strong" : "em", m.nesting = 1, m.markup = s ? r + r : r, m.content = "";
|
|
41
|
-
const p = o.tokens[k.token];
|
|
42
|
-
p.type = s ? "strong_close" : "em_close", p.tag = s ? "strong" : "em", p.nesting = -1, p.markup = s ? r + r : r, p.content = "", s && (o.tokens[t[n - 1].token].content = "", o.tokens[t[e.end + 1].token].content = "", n--);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function a(o) {
|
|
46
|
-
const t = o.tokens_meta, c = o.tokens_meta.length;
|
|
47
|
-
g(o, o.delimiters);
|
|
48
|
-
for (let n = 0; n < c; n++)
|
|
49
|
-
t[n] && t[n].delimiters && g(o, t[n].delimiters);
|
|
50
|
-
}
|
|
51
|
-
const f = {
|
|
52
|
-
tokenize: i,
|
|
53
|
-
postProcess: a
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
f as default
|
|
57
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { fromCodePoint as i, isValidEntityCode as f } from "../common/utils.js";
|
|
2
|
-
import { decodeHTML as p } from "../../../../../entities@4.5.0/node_modules/entities/lib/esm/decode.js";
|
|
3
|
-
const a = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, u = /^&([a-z][a-z0-9]{1,31});/i;
|
|
4
|
-
function m(c, r) {
|
|
5
|
-
const t = c.pos, s = c.posMax;
|
|
6
|
-
if (c.src.charCodeAt(t) !== 38 || t + 1 >= s) return !1;
|
|
7
|
-
if (c.src.charCodeAt(t + 1) === 35) {
|
|
8
|
-
const o = c.src.slice(t).match(a);
|
|
9
|
-
if (o) {
|
|
10
|
-
if (!r) {
|
|
11
|
-
const e = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), n = c.push("text_special", "", 0);
|
|
12
|
-
n.content = f(e) ? i(e) : i(65533), n.markup = o[0], n.info = "entity";
|
|
13
|
-
}
|
|
14
|
-
return c.pos += o[0].length, !0;
|
|
15
|
-
}
|
|
16
|
-
} else {
|
|
17
|
-
const o = c.src.slice(t).match(u);
|
|
18
|
-
if (o) {
|
|
19
|
-
const e = p(o[0]);
|
|
20
|
-
if (e !== o[0]) {
|
|
21
|
-
if (!r) {
|
|
22
|
-
const n = c.push("text_special", "", 0);
|
|
23
|
-
n.content = e, n.markup = o[0], n.info = "entity";
|
|
24
|
-
}
|
|
25
|
-
return c.pos += o[0].length, !0;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return !1;
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
m as default
|
|
33
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { isSpace as h } from "../common/utils.js";
|
|
2
|
-
const n = [];
|
|
3
|
-
for (let r = 0; r < 256; r++)
|
|
4
|
-
n.push(0);
|
|
5
|
-
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r) {
|
|
6
|
-
n[r.charCodeAt(0)] = 1;
|
|
7
|
-
});
|
|
8
|
-
function t(r, p) {
|
|
9
|
-
let c = r.pos;
|
|
10
|
-
const f = r.posMax;
|
|
11
|
-
if (r.src.charCodeAt(c) !== 92 || (c++, c >= f)) return !1;
|
|
12
|
-
let o = r.src.charCodeAt(c);
|
|
13
|
-
if (o === 10) {
|
|
14
|
-
for (p || r.push("hardbreak", "br", 0), c++; c < f && (o = r.src.charCodeAt(c), !!h(o)); )
|
|
15
|
-
c++;
|
|
16
|
-
return r.pos = c, !0;
|
|
17
|
-
}
|
|
18
|
-
let i = r.src[c];
|
|
19
|
-
if (o >= 55296 && o <= 56319 && c + 1 < f) {
|
|
20
|
-
const e = r.src.charCodeAt(c + 1);
|
|
21
|
-
e >= 56320 && e <= 57343 && (i += r.src[c + 1], c++);
|
|
22
|
-
}
|
|
23
|
-
const s = "\\" + i;
|
|
24
|
-
if (!p) {
|
|
25
|
-
const e = r.push("text_special", "", 0);
|
|
26
|
-
o < 256 && n[o] !== 0 ? e.content = i : e.content = s, e.markup = s, e.info = "escape";
|
|
27
|
-
}
|
|
28
|
-
return r.pos = c + 1, !0;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
t as default
|
|
32
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function f(l) {
|
|
2
|
-
let t, n, o = 0;
|
|
3
|
-
const e = l.tokens, s = l.tokens.length;
|
|
4
|
-
for (t = n = 0; t < s; t++)
|
|
5
|
-
e[t].nesting < 0 && o--, e[t].level = o, e[t].nesting > 0 && o++, e[t].type === "text" && t + 1 < s && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
|
|
6
|
-
t !== n && (e.length = n);
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
f as default
|
|
10
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { HTML_TAG_RE as s } from "../common/html_re.js";
|
|
2
|
-
function l(n) {
|
|
3
|
-
return /^<a[>\s]/i.test(n);
|
|
4
|
-
}
|
|
5
|
-
function f(n) {
|
|
6
|
-
return /^<\/a\s*>/i.test(n);
|
|
7
|
-
}
|
|
8
|
-
function u(n) {
|
|
9
|
-
const i = n | 32;
|
|
10
|
-
return i >= 97 && i <= 122;
|
|
11
|
-
}
|
|
12
|
-
function x(n, i) {
|
|
13
|
-
if (!n.md.options.html)
|
|
14
|
-
return !1;
|
|
15
|
-
const c = n.posMax, e = n.pos;
|
|
16
|
-
if (n.src.charCodeAt(e) !== 60 || e + 2 >= c)
|
|
17
|
-
return !1;
|
|
18
|
-
const o = n.src.charCodeAt(e + 1);
|
|
19
|
-
if (o !== 33 && o !== 63 && o !== 47 && !u(o))
|
|
20
|
-
return !1;
|
|
21
|
-
const r = n.src.slice(e).match(s);
|
|
22
|
-
if (!r)
|
|
23
|
-
return !1;
|
|
24
|
-
if (!i) {
|
|
25
|
-
const t = n.push("html_inline", "", 0);
|
|
26
|
-
t.content = r[0], l(t.content) && n.linkLevel++, f(t.content) && n.linkLevel--;
|
|
27
|
-
}
|
|
28
|
-
return n.pos += r[0].length, !0;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
x as default
|
|
32
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { isSpace as u, normalizeReference as C } from "../common/utils.js";
|
|
2
|
-
function v(r, b) {
|
|
3
|
-
let o, h, p, e, d, n, c, f, s = "";
|
|
4
|
-
const x = r.pos, i = r.posMax;
|
|
5
|
-
if (r.src.charCodeAt(r.pos) !== 33 || r.src.charCodeAt(r.pos + 1) !== 91)
|
|
6
|
-
return !1;
|
|
7
|
-
const k = r.pos + 2, l = r.md.helpers.parseLinkLabel(r, r.pos + 1, !1);
|
|
8
|
-
if (l < 0)
|
|
9
|
-
return !1;
|
|
10
|
-
if (e = l + 1, e < i && r.src.charCodeAt(e) === 40) {
|
|
11
|
-
for (e++; e < i && (o = r.src.charCodeAt(e), !(!u(o) && o !== 10)); e++)
|
|
12
|
-
;
|
|
13
|
-
if (e >= i)
|
|
14
|
-
return !1;
|
|
15
|
-
for (f = e, n = r.md.helpers.parseLinkDestination(r.src, e, r.posMax), n.ok && (s = r.md.normalizeLink(n.str), r.md.validateLink(s) ? e = n.pos : s = ""), f = e; e < i && (o = r.src.charCodeAt(e), !(!u(o) && o !== 10)); e++)
|
|
16
|
-
;
|
|
17
|
-
if (n = r.md.helpers.parseLinkTitle(r.src, e, r.posMax), e < i && f !== e && n.ok)
|
|
18
|
-
for (c = n.str, e = n.pos; e < i && (o = r.src.charCodeAt(e), !(!u(o) && o !== 10)); e++)
|
|
19
|
-
;
|
|
20
|
-
else
|
|
21
|
-
c = "";
|
|
22
|
-
if (e >= i || r.src.charCodeAt(e) !== 41)
|
|
23
|
-
return r.pos = x, !1;
|
|
24
|
-
e++;
|
|
25
|
-
} else {
|
|
26
|
-
if (typeof r.env.references > "u")
|
|
27
|
-
return !1;
|
|
28
|
-
if (e < i && r.src.charCodeAt(e) === 91 ? (f = e + 1, e = r.md.helpers.parseLinkLabel(r, e), e >= 0 ? p = r.src.slice(f, e++) : e = l + 1) : e = l + 1, p || (p = r.src.slice(k, l)), d = r.env.references[C(p)], !d)
|
|
29
|
-
return r.pos = x, !1;
|
|
30
|
-
s = d.href, c = d.title;
|
|
31
|
-
}
|
|
32
|
-
if (!b) {
|
|
33
|
-
h = r.src.slice(k, l);
|
|
34
|
-
const a = [];
|
|
35
|
-
r.md.inline.parse(
|
|
36
|
-
h,
|
|
37
|
-
r.md,
|
|
38
|
-
r.env,
|
|
39
|
-
a
|
|
40
|
-
);
|
|
41
|
-
const m = r.push("image", "img", 0), A = [["src", s], ["alt", ""]];
|
|
42
|
-
m.attrs = A, m.children = a, m.content = h, c && A.push(["title", c]);
|
|
43
|
-
}
|
|
44
|
-
return r.pos = e, r.posMax = i, !0;
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
v as default
|
|
48
|
-
};
|