@opentiny/tiny-robot 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/README.md +1 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/bubble-item/components/actions/copy.vue.d.ts +10 -0
  5. package/dist/bubble-item/components/actions/index.d.ts +2 -0
  6. package/dist/bubble-item/components/actions/refresh.vue.d.ts +2 -0
  7. package/dist/bubble-item/components/icons/ai.vue.d.ts +2 -0
  8. package/dist/bubble-item/components/icons/index.d.ts +2 -0
  9. package/dist/bubble-item/components/icons/user.vue.d.ts +2 -0
  10. package/dist/bubble-item/index.d.ts +7 -0
  11. package/dist/bubble-list/bubble-list.vue.d.ts +5 -0
  12. package/dist/bubble-list/index.d.ts +8 -0
  13. package/dist/bubble-list/index.type.d.ts +55 -0
  14. package/dist/conversations/index.d.ts +7 -0
  15. package/dist/conversations/index.vue.d.ts +2 -0
  16. package/dist/index.d.ts +12 -0
  17. package/dist/index.js +29 -0
  18. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +2202 -0
  19. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/index.js +113 -0
  20. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/pc.js +93 -0
  21. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +725 -0
  22. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +198 -0
  23. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +204 -0
  24. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +57 -0
  25. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +10 -0
  26. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +14 -0
  27. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +54 -0
  28. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +85 -0
  29. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +69 -0
  30. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  31. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +42 -0
  32. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +43 -0
  33. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/finish.js +34 -0
  34. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +30 -0
  35. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +78 -0
  36. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +30 -0
  37. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +24 -0
  38. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +24 -0
  39. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +24 -0
  40. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +24 -0
  41. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +24 -0
  42. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +24 -0
  43. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +24 -0
  44. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +24 -0
  45. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +24 -0
  46. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +24 -0
  47. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +24 -0
  48. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +24 -0
  49. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +24 -0
  50. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +24 -0
  51. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +24 -0
  52. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +24 -0
  53. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +24 -0
  54. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +24 -0
  55. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +24 -0
  56. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +24 -0
  57. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +24 -0
  58. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +24 -0
  59. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +24 -0
  60. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +24 -0
  61. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +24 -0
  62. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +24 -0
  63. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +24 -0
  64. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +24 -0
  65. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +24 -0
  66. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +24 -0
  67. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +24 -0
  68. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +24 -0
  69. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +24 -0
  70. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +24 -0
  71. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +24 -0
  72. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +24 -0
  73. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +24 -0
  74. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +24 -0
  75. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +24 -0
  76. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +24 -0
  77. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +24 -0
  78. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +24 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +24 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +24 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +24 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +24 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +29 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/warn.js +26 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/index.js +196 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/pc.js +568 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +1783 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/index.js +13 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/vue.js +34 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +12 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +135 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +149 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/index.js +228 -0
  94. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/vue.js +263 -0
  95. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/index.js +63 -0
  96. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +16 -0
  97. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +23 -0
  98. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +77 -0
  99. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  100. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +176 -0
  101. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +248 -0
  102. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +277 -0
  103. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
  104. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  105. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  106. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +187 -0
  107. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +19 -0
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
  122. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
  123. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +5 -0
  124. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +164 -0
  125. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +8 -0
  126. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
  127. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
  128. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
  129. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +112 -0
  130. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +63 -0
  131. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +34 -0
  132. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +96 -0
  133. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
  134. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +40 -0
  135. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +59 -0
  136. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +127 -0
  137. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +95 -0
  138. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
  139. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +23 -0
  140. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
  141. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
  142. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
  143. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
  144. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
  145. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +110 -0
  146. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
  147. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
  148. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
  149. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +99 -0
  150. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +7 -0
  151. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
  152. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
  153. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
  154. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
  155. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
  156. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
  157. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
  158. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
  159. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
  160. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
  161. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
  162. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
  163. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
  164. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
  165. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
  166. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
  167. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
  168. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +31 -0
  174. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +10 -0
  175. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +61 -0
  176. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +48 -0
  177. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +7 -0
  178. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +74 -0
  179. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +139 -0
  180. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +4 -0
  181. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +4 -0
  182. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +4 -0
  183. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +4 -0
  184. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +4 -0
  185. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +14 -0
  186. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +4 -0
  187. package/dist/packages/components/src/assets/icons/accessory.svg.js +4 -0
  188. package/dist/packages/components/src/assets/icons/loading-speech.svg.js +4 -0
  189. package/dist/packages/components/src/assets/icons/loading.svg.js +4 -0
  190. package/dist/packages/components/src/assets/icons/send.svg.js +4 -0
  191. package/dist/packages/components/src/assets/icons/voice.svg.js +4 -0
  192. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +7 -0
  193. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +111 -0
  194. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +46 -0
  195. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +4 -0
  196. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +12 -0
  197. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +45 -0
  198. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +63 -0
  199. package/dist/packages/components/src/bubble-item/index.js +9 -0
  200. package/dist/packages/components/src/bubble-list/bubble-list.vue.js +7 -0
  201. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +52 -0
  202. package/dist/packages/components/src/bubble-list/index.js +9 -0
  203. package/dist/packages/components/src/conversations/index.js +9 -0
  204. package/dist/packages/components/src/conversations/index.vue.js +9 -0
  205. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +161 -0
  206. package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +4 -0
  207. package/dist/packages/components/src/sender/composables/useInputHandler.js +34 -0
  208. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +31 -0
  209. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +67 -0
  210. package/dist/packages/components/src/sender/index.js +9 -0
  211. package/dist/packages/components/src/sender/index.vue.js +233 -0
  212. package/dist/packages/components/src/sender/index.vue2.js +4 -0
  213. package/dist/packages/components/src/welcome/index.js +9 -0
  214. package/dist/packages/components/src/welcome/index.vue.js +9 -0
  215. package/dist/sender/components/ActionButtons.vue.d.ts +23 -0
  216. package/dist/sender/composables/useInputHandler.d.ts +17 -0
  217. package/dist/sender/composables/useKeyboardHandler.d.ts +18 -0
  218. package/dist/sender/composables/useSpeechHandler.d.ts +14 -0
  219. package/dist/sender/index.d.ts +7 -0
  220. package/dist/sender/index.type.d.ts +90 -0
  221. package/dist/sender/index.vue.d.ts +948 -0
  222. package/dist/style.css +1 -0
  223. package/dist/welcome/index.d.ts +7 -0
  224. package/dist/welcome/index.vue.d.ts +2 -0
  225. package/package.json +42 -0
  226. package/src/assets/icons/accessory.svg +12 -0
  227. package/src/assets/icons/loading-speech.svg +16 -0
  228. package/src/assets/icons/loading.svg +17 -0
  229. package/src/assets/icons/send.svg +21 -0
  230. package/src/assets/icons/voice.svg +22 -0
  231. package/src/bubble-item/bubble-item.vue +264 -0
  232. package/src/bubble-item/components/actions/copy.vue +47 -0
  233. package/src/bubble-item/components/actions/index.ts +2 -0
  234. package/src/bubble-item/components/actions/refresh.vue +27 -0
  235. package/src/bubble-item/components/icons/ai.vue +30 -0
  236. package/src/bubble-item/components/icons/index.ts +2 -0
  237. package/src/bubble-item/components/icons/user.vue +78 -0
  238. package/src/bubble-item/index.ts +12 -0
  239. package/src/bubble-list/bubble-list.vue +53 -0
  240. package/src/bubble-list/index.ts +14 -0
  241. package/src/bubble-list/index.type.ts +65 -0
  242. package/src/conversations/index.ts +12 -0
  243. package/src/conversations/index.vue +3 -0
  244. package/src/index.ts +30 -0
  245. package/src/sender/components/ActionButtons.vue +165 -0
  246. package/src/sender/composables/useInputHandler.ts +69 -0
  247. package/src/sender/composables/useKeyboardHandler.ts +99 -0
  248. package/src/sender/composables/useSpeechHandler.ts +128 -0
  249. package/src/sender/global.d.ts +44 -0
  250. package/src/sender/index.less +344 -0
  251. package/src/sender/index.ts +12 -0
  252. package/src/sender/index.type.ts +111 -0
  253. package/src/sender/index.vue +289 -0
  254. package/src/sender/vars.less +84 -0
  255. package/src/vite-env.d.ts +1 -0
  256. package/src/welcome/index.ts +12 -0
  257. package/src/welcome/index.vue +3 -0
  258. package/tsconfig.json +37 -0
  259. package/tsconfig.node.json +10 -0
  260. package/vite.config.ts +53 -0
@@ -0,0 +1,25 @@
1
+ function g(n, e, l) {
2
+ const i = n.md.block.ruler.getRules("paragraph"), c = n.parentType;
3
+ let r = e + 1;
4
+ for (n.parentType = "paragraph"; r < l && !n.isEmpty(r); r++) {
5
+ if (n.sCount[r] - n.blkIndent > 3 || n.sCount[r] < 0)
6
+ continue;
7
+ let u = !1;
8
+ for (let o = 0, h = i.length; o < h; o++)
9
+ if (i[o](n, r, l, !0)) {
10
+ u = !0;
11
+ break;
12
+ }
13
+ if (u)
14
+ break;
15
+ }
16
+ const a = n.getLines(e, r, n.blkIndent, !1).trim();
17
+ n.line = r;
18
+ const f = n.push("paragraph_open", "p", 1);
19
+ f.map = [e, n.line];
20
+ const p = n.push("inline", "", 0);
21
+ return p.content = a, p.map = [e, n.line], p.children = [], n.push("paragraph_close", "p", -1), n.parentType = c, !0;
22
+ }
23
+ export {
24
+ g as default
25
+ };
@@ -0,0 +1,95 @@
1
+ import { isSpace as h, normalizeReference as w } from "../common/utils.js";
2
+ function B(n, t, S, y) {
3
+ let e = n.bMarks[t] + n.tShift[t], i = n.eMarks[t], f = t + 1;
4
+ if (n.sCount[t] - n.blkIndent >= 4 || n.src.charCodeAt(e) !== 91)
5
+ return !1;
6
+ function s(r) {
7
+ const o = n.lineMax;
8
+ if (r >= o || n.isEmpty(r))
9
+ return null;
10
+ let k = !1;
11
+ if (n.sCount[r] - n.blkIndent > 3 && (k = !0), n.sCount[r] < 0 && (k = !0), !k) {
12
+ const x = n.md.block.ruler.getRules("reference"), R = n.parentType;
13
+ n.parentType = "reference";
14
+ let g = !1;
15
+ for (let C = 0, E = x.length; C < E; C++)
16
+ if (x[C](n, r, o, !0)) {
17
+ g = !0;
18
+ break;
19
+ }
20
+ if (n.parentType = R, g)
21
+ return null;
22
+ }
23
+ const v = n.bMarks[r] + n.tShift[r], M = n.eMarks[r];
24
+ return n.src.slice(v, M + 1);
25
+ }
26
+ let l = n.src.slice(e, i + 1);
27
+ i = l.length;
28
+ let u = -1;
29
+ for (e = 1; e < i; e++) {
30
+ const r = l.charCodeAt(e);
31
+ if (r === 91)
32
+ return !1;
33
+ if (r === 93) {
34
+ u = e;
35
+ break;
36
+ } else if (r === 10) {
37
+ const o = s(f);
38
+ o !== null && (l += o, i = l.length, f++);
39
+ } else if (r === 92 && (e++, e < i && l.charCodeAt(e) === 10)) {
40
+ const o = s(f);
41
+ o !== null && (l += o, i = l.length, f++);
42
+ }
43
+ }
44
+ if (u < 0 || l.charCodeAt(u + 1) !== 58)
45
+ return !1;
46
+ for (e = u + 2; e < i; e++) {
47
+ const r = l.charCodeAt(e);
48
+ if (r === 10) {
49
+ const o = s(f);
50
+ o !== null && (l += o, i = l.length, f++);
51
+ } else if (!h(r)) break;
52
+ }
53
+ const p = n.md.helpers.parseLinkDestination(l, e, i);
54
+ if (!p.ok)
55
+ return !1;
56
+ const A = n.md.normalizeLink(p.str);
57
+ if (!n.md.validateLink(A))
58
+ return !1;
59
+ e = p.pos;
60
+ const m = e, b = f, T = e;
61
+ for (; e < i; e++) {
62
+ const r = l.charCodeAt(e);
63
+ if (r === 10) {
64
+ const o = s(f);
65
+ o !== null && (l += o, i = l.length, f++);
66
+ } else if (!h(r)) break;
67
+ }
68
+ let c = n.md.helpers.parseLinkTitle(l, e, i);
69
+ for (; c.can_continue; ) {
70
+ const r = s(f);
71
+ if (r === null) break;
72
+ l += r, e = i, i = l.length, f++, c = n.md.helpers.parseLinkTitle(l, e, i, c);
73
+ }
74
+ let d;
75
+ for (e < i && T !== e && c.ok ? (d = c.str, e = c.pos) : (d = "", e = m, f = b); e < i; ) {
76
+ const r = l.charCodeAt(e);
77
+ if (!h(r))
78
+ break;
79
+ e++;
80
+ }
81
+ if (e < i && l.charCodeAt(e) !== 10 && d)
82
+ for (d = "", e = m, f = b; e < i; ) {
83
+ const r = l.charCodeAt(e);
84
+ if (!h(r))
85
+ break;
86
+ e++;
87
+ }
88
+ if (e < i && l.charCodeAt(e) !== 10)
89
+ return !1;
90
+ const a = w(l.slice(1, u));
91
+ return a ? (y || (typeof n.env.references > "u" && (n.env.references = {}), typeof n.env.references[a] > "u" && (n.env.references[a] = { title: d, href: A }), n.line = f), !0) : !1;
92
+ }
93
+ export {
94
+ B as default
95
+ };
@@ -0,0 +1,84 @@
1
+ import C from "../token.js";
2
+ import { isSpace as k } from "../common/utils.js";
3
+ function o(n, t, s, i) {
4
+ this.src = n, this.md = t, this.env = s, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
5
+ const c = this.src;
6
+ for (let u = 0, r = 0, h = 0, e = 0, f = c.length, a = !1; r < f; r++) {
7
+ const l = c.charCodeAt(r);
8
+ if (!a)
9
+ if (k(l)) {
10
+ h++, l === 9 ? e += 4 - e % 4 : e++;
11
+ continue;
12
+ } else
13
+ a = !0;
14
+ (l === 10 || r === f - 1) && (l !== 10 && r++, this.bMarks.push(u), this.eMarks.push(r), this.tShift.push(h), this.sCount.push(e), this.bsCount.push(0), a = !1, h = 0, e = 0, u = r + 1);
15
+ }
16
+ this.bMarks.push(c.length), this.eMarks.push(c.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
17
+ }
18
+ o.prototype.push = function(n, t, s) {
19
+ const i = new C(n, t, s);
20
+ return i.block = !0, s < 0 && this.level--, i.level = this.level, s > 0 && this.level++, this.tokens.push(i), i;
21
+ };
22
+ o.prototype.isEmpty = function(t) {
23
+ return this.bMarks[t] + this.tShift[t] >= this.eMarks[t];
24
+ };
25
+ o.prototype.skipEmptyLines = function(t) {
26
+ for (let s = this.lineMax; t < s && !(this.bMarks[t] + this.tShift[t] < this.eMarks[t]); t++)
27
+ ;
28
+ return t;
29
+ };
30
+ o.prototype.skipSpaces = function(t) {
31
+ for (let s = this.src.length; t < s; t++) {
32
+ const i = this.src.charCodeAt(t);
33
+ if (!k(i))
34
+ break;
35
+ }
36
+ return t;
37
+ };
38
+ o.prototype.skipSpacesBack = function(t, s) {
39
+ if (t <= s)
40
+ return t;
41
+ for (; t > s; )
42
+ if (!k(this.src.charCodeAt(--t)))
43
+ return t + 1;
44
+ return t;
45
+ };
46
+ o.prototype.skipChars = function(t, s) {
47
+ for (let i = this.src.length; t < i && this.src.charCodeAt(t) === s; t++)
48
+ ;
49
+ return t;
50
+ };
51
+ o.prototype.skipCharsBack = function(t, s, i) {
52
+ if (t <= i)
53
+ return t;
54
+ for (; t > i; )
55
+ if (s !== this.src.charCodeAt(--t))
56
+ return t + 1;
57
+ return t;
58
+ };
59
+ o.prototype.getLines = function(t, s, i, c) {
60
+ if (t >= s)
61
+ return "";
62
+ const u = new Array(s - t);
63
+ for (let r = 0, h = t; h < s; h++, r++) {
64
+ let e = 0;
65
+ const f = this.bMarks[h];
66
+ let a = f, l;
67
+ for (h + 1 < s || c ? l = this.eMarks[h] + 1 : l = this.eMarks[h]; a < l && e < i; ) {
68
+ const p = this.src.charCodeAt(a);
69
+ if (k(p))
70
+ p === 9 ? e += 4 - (e + this.bsCount[h]) % 4 : e++;
71
+ else if (a - f < this.tShift[h])
72
+ e++;
73
+ else
74
+ break;
75
+ a++;
76
+ }
77
+ e > i ? u[r] = new Array(e - i + 1).join(" ") + this.src.slice(a, l) : u[r] = this.src.slice(a, l);
78
+ }
79
+ return u.join("");
80
+ };
81
+ o.prototype.Token = C;
82
+ export {
83
+ o as default
84
+ };
@@ -0,0 +1,99 @@
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
+ };
@@ -0,0 +1,7 @@
1
+ function e(n) {
2
+ let o;
3
+ n.inlineMode ? (o = new n.Token("inline", "", 0), o.content = n.src, o.map = [0, 1], o.children = [], n.tokens.push(o)) : n.md.block.parse(n.src, n.md, n.env, n.tokens);
4
+ }
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,10 @@
1
+ function t(n) {
2
+ const o = n.tokens;
3
+ for (let e = 0, l = o.length; e < l; e++) {
4
+ const i = o[e];
5
+ i.type === "inline" && n.md.inline.parse(i.content, n.md, n.env, i.children);
6
+ }
7
+ }
8
+ export {
9
+ t as default
10
+ };
@@ -0,0 +1,57 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ const c = /\r\n?|\n/g, e = /\0/g;
2
+ function l(r) {
3
+ let n;
4
+ n = r.src.replace(c, `
5
+ `), n = n.replace(e, "�"), r.src = n;
6
+ }
7
+ export {
8
+ l as default
9
+ };
@@ -0,0 +1,31 @@
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
+ };
@@ -0,0 +1,80 @@
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
+ };
@@ -0,0 +1,8 @@
1
+ import i from "../token.js";
2
+ function s(t, e, o) {
3
+ this.src = t, this.env = o, this.tokens = [], this.inlineMode = !1, this.md = e;
4
+ }
5
+ s.prototype.Token = i;
6
+ export {
7
+ s as default
8
+ };
@@ -0,0 +1,16 @@
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
+ };
@@ -0,0 +1,46 @@
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
+ };
@@ -0,0 +1,31 @@
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
+ };
@@ -0,0 +1,34 @@
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
+ };