@touchvue/chat 1.0.0-beta.3 → 1.0.0-beta.30

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 (1012) hide show
  1. package/README.md +70 -70
  2. package/es/index.mjs.map +1 -1
  3. package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs +1380 -0
  4. package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
  5. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +469 -0
  6. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
  7. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +63 -0
  8. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
  9. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +9 -0
  10. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
  11. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +9 -0
  12. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
  13. package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs +7824 -0
  14. package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs.map +1 -0
  15. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +643 -0
  16. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
  17. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +195 -0
  18. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
  19. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs +70 -0
  20. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
  21. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs +26 -0
  22. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
  23. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs +291 -0
  24. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
  25. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs +6 -0
  26. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
  27. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +81 -0
  28. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
  29. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +52 -0
  30. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
  31. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +70 -0
  32. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
  33. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs +570 -0
  34. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs.map +1 -0
  35. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs +135 -0
  36. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
  37. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs +63 -0
  38. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
  39. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
  40. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
  41. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs +91 -0
  42. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
  43. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs +50 -0
  44. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
  45. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs +73 -0
  46. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
  47. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs +323 -0
  48. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
  49. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs +341 -0
  50. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
  51. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs +213 -0
  52. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
  53. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs +33 -0
  54. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
  55. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs +97 -0
  56. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
  57. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs +55 -0
  58. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
  59. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs +44 -0
  60. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
  61. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
  62. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
  63. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs +85 -0
  64. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
  65. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs +335 -0
  66. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
  67. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs +49 -0
  68. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
  69. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs +211 -0
  70. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
  71. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs +222 -0
  72. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
  73. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs +232 -0
  74. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
  75. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs +16 -0
  76. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
  77. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs +14 -0
  78. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
  79. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs +138 -0
  80. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
  81. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs +20 -0
  82. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
  83. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs +104 -0
  84. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
  85. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +197 -0
  86. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
  87. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs +19 -0
  88. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
  89. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs +46 -0
  90. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
  91. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs +75 -0
  92. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
  93. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs +63 -0
  94. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
  95. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +127 -0
  96. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
  97. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +126 -0
  98. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
  99. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs +55 -0
  100. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
  101. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs +73 -0
  102. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
  103. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +41 -0
  104. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
  105. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +54 -0
  106. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
  107. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs +142 -0
  108. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
  109. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs +143 -0
  110. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
  111. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs +59 -0
  112. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
  113. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs +46 -0
  114. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
  115. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +125 -0
  116. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
  117. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +130 -0
  118. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
  119. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs +89 -0
  120. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
  121. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs +192 -0
  122. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs.map +1 -0
  123. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +5 -0
  124. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
  125. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +113 -0
  126. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
  127. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +90 -0
  128. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
  129. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +24 -0
  130. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
  131. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +309 -0
  132. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
  133. package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs +443 -0
  134. package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs.map +1 -0
  135. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +4 -0
  136. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
  137. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +4 -0
  138. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
  139. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +4 -0
  140. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
  141. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +4 -0
  142. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
  143. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +4 -0
  144. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
  145. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +7 -0
  146. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
  147. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +4 -0
  148. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
  149. package/es/package.json.css +1 -1
  150. package/es/package.json.mjs +1 -1
  151. package/es/packages/components/index.mjs +1 -1
  152. package/es/packages/components/resolver.mjs.map +1 -1
  153. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs +7 -0
  154. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs +270 -0
  155. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs.map +1 -0
  156. package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs +7 -0
  157. package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs +92 -0
  158. package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs.map +1 -0
  159. package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs +7 -0
  160. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs +189 -0
  161. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs.map +1 -0
  162. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs +7 -0
  163. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs +44 -0
  164. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs.map +1 -0
  165. package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs +7 -0
  166. package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs +43 -0
  167. package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs.map +1 -0
  168. package/es/packages/components/touchchat/component/CardView.vue2.mjs.map +1 -1
  169. package/es/packages/components/touchchat/component/FileContent.vue.mjs +7 -0
  170. package/es/packages/components/touchchat/component/FileContent.vue.mjs.map +1 -0
  171. package/es/packages/components/touchchat/component/FileContent.vue2.mjs +201 -0
  172. package/es/packages/components/touchchat/component/FileContent.vue2.mjs.map +1 -0
  173. package/es/packages/components/touchchat/component/FileView.vue2.mjs +2 -2
  174. package/es/packages/components/touchchat/component/FileView.vue2.mjs.map +1 -1
  175. package/es/packages/components/touchchat/component/HelloChat.vue2.mjs +2 -2
  176. package/es/packages/components/touchchat/component/HelloChat.vue2.mjs.map +1 -1
  177. package/es/packages/components/touchchat/component/ImageFile.vue.mjs +7 -0
  178. package/es/packages/components/touchchat/component/ImageFile.vue.mjs.map +1 -0
  179. package/es/packages/components/touchchat/component/ImageFile.vue2.mjs +162 -0
  180. package/es/packages/components/touchchat/component/ImageFile.vue2.mjs.map +1 -0
  181. package/es/packages/components/touchchat/component/ImageView.vue2.mjs +1 -1
  182. package/es/packages/components/touchchat/component/ImageView.vue2.mjs.map +1 -1
  183. package/es/packages/components/touchchat/component/LinkView.vue2.mjs +4 -4
  184. package/es/packages/components/touchchat/component/LinkView.vue2.mjs.map +1 -1
  185. package/es/packages/components/touchchat/component/MarkLayer.vue.mjs +7 -0
  186. package/es/packages/components/touchchat/component/MarkLayer.vue.mjs.map +1 -0
  187. package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs +56 -0
  188. package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs.map +1 -0
  189. package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs +7 -0
  190. package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs.map +1 -0
  191. package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs +121 -0
  192. package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs.map +1 -0
  193. package/es/packages/components/touchchat/component/PDFFile.vue.mjs +7 -0
  194. package/es/packages/components/touchchat/component/PDFFile.vue.mjs.map +1 -0
  195. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs +205 -0
  196. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs.map +1 -0
  197. package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs +7 -0
  198. package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs.map +1 -0
  199. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs +162 -0
  200. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs.map +1 -0
  201. package/es/packages/components/touchchat/component/Screenshot.vue.mjs +7 -0
  202. package/es/packages/components/touchchat/component/Screenshot.vue.mjs.map +1 -0
  203. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs +201 -0
  204. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs.map +1 -0
  205. package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs +7 -0
  206. package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs.map +1 -0
  207. package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs +69 -0
  208. package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs.map +1 -0
  209. package/es/packages/components/touchchat/component/UploadView.vue.mjs +7 -0
  210. package/es/packages/components/touchchat/component/UploadView.vue.mjs.map +1 -0
  211. package/es/packages/components/touchchat/component/UploadView.vue2.mjs +146 -0
  212. package/es/packages/components/touchchat/component/UploadView.vue2.mjs.map +1 -0
  213. package/es/packages/components/touchchat/component/UploadView_api.vue.mjs +7 -0
  214. package/es/packages/components/touchchat/component/UploadView_api.vue.mjs.map +1 -0
  215. package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs +166 -0
  216. package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs.map +1 -0
  217. package/es/packages/components/touchchat/component/VoiceView.vue.mjs +7 -0
  218. package/es/packages/components/touchchat/component/VoiceView.vue.mjs.map +1 -0
  219. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs +167 -0
  220. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs.map +1 -0
  221. package/es/packages/components/touchchat/img/aiAvatar.png.mjs +4 -0
  222. package/es/packages/components/touchchat/img/aiAvatar.png.mjs.map +1 -0
  223. package/es/packages/components/touchchat/img/file/doc.png.mjs +4 -0
  224. package/es/packages/components/touchchat/img/file/doc.png.mjs.map +1 -0
  225. package/es/packages/components/touchchat/img/file/docx.png.mjs +4 -0
  226. package/es/packages/components/touchchat/img/file/docx.png.mjs.map +1 -0
  227. package/es/packages/components/touchchat/img/file/gif.png.mjs +4 -0
  228. package/es/packages/components/touchchat/img/file/gif.png.mjs.map +1 -0
  229. package/es/packages/components/touchchat/img/file/html.png.mjs +4 -0
  230. package/es/packages/components/touchchat/img/file/html.png.mjs.map +1 -0
  231. package/es/packages/components/touchchat/img/file/jpg.png.mjs +4 -0
  232. package/es/packages/components/touchchat/img/file/jpg.png.mjs.map +1 -0
  233. package/es/packages/components/touchchat/img/file/mp3.png.mjs +4 -0
  234. package/es/packages/components/touchchat/img/file/mp3.png.mjs.map +1 -0
  235. package/es/packages/components/touchchat/img/file/mp4.png.mjs +4 -0
  236. package/es/packages/components/touchchat/img/file/mp4.png.mjs.map +1 -0
  237. package/es/packages/components/touchchat/img/file/music.png.mjs +4 -0
  238. package/es/packages/components/touchchat/img/file/music.png.mjs.map +1 -0
  239. package/es/packages/components/touchchat/img/file/pdf.png.mjs +4 -0
  240. package/es/packages/components/touchchat/img/file/pdf.png.mjs.map +1 -0
  241. package/es/packages/components/touchchat/img/file/png.png.mjs +4 -0
  242. package/es/packages/components/touchchat/img/file/png.png.mjs.map +1 -0
  243. package/es/packages/components/touchchat/img/file/ppt.png.mjs +4 -0
  244. package/es/packages/components/touchchat/img/file/ppt.png.mjs.map +1 -0
  245. package/es/packages/components/touchchat/img/file/pptx.png.mjs +4 -0
  246. package/es/packages/components/touchchat/img/file/pptx.png.mjs.map +1 -0
  247. package/es/packages/components/touchchat/img/file/txt.png.mjs +4 -0
  248. package/es/packages/components/touchchat/img/file/txt.png.mjs.map +1 -0
  249. package/es/packages/components/touchchat/img/file/xls.png.mjs +4 -0
  250. package/es/packages/components/touchchat/img/file/xls.png.mjs.map +1 -0
  251. package/es/packages/components/touchchat/img/file/xlsx.png.mjs +4 -0
  252. package/es/packages/components/touchchat/img/file/xlsx.png.mjs.map +1 -0
  253. package/es/packages/components/touchchat/img/icon.png.mjs.map +1 -0
  254. package/es/packages/components/touchchat/img/svg/reset.svg.mjs +4 -0
  255. package/es/packages/components/touchchat/img/svg/reset.svg.mjs.map +1 -0
  256. package/es/packages/components/touchchat/img/userAvatar.png.mjs +4 -0
  257. package/es/packages/components/touchchat/img/userAvatar.png.mjs.map +1 -0
  258. package/es/packages/components/touchchat/index.mjs +5 -5
  259. package/es/packages/components/touchchat/index.mjs.map +1 -1
  260. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs +7 -0
  261. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs.map +1 -0
  262. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs +59 -0
  263. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs.map +1 -0
  264. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +223 -281
  265. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
  266. package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs +18 -0
  267. package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs.map +1 -0
  268. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +439 -158
  269. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
  270. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs +118 -149
  271. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs.map +1 -1
  272. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs +51 -64
  273. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs.map +1 -1
  274. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs +127 -227
  275. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs.map +1 -1
  276. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs +7 -0
  277. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs.map +1 -0
  278. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs +31 -0
  279. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs.map +1 -0
  280. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs +7 -0
  281. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs.map +1 -0
  282. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +929 -0
  283. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -0
  284. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +1068 -521
  285. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
  286. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +365 -136
  287. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
  288. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs +129 -66
  289. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs.map +1 -1
  290. package/es/packages/components/touchchat/src/index.vue.mjs +2 -2
  291. package/es/packages/components/touchchat/src/index.vue2.mjs +180 -117
  292. package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
  293. package/es/packages/components/touchchat/src/types/a2a.mjs +11 -0
  294. package/es/packages/components/touchchat/src/types/a2a.mjs.map +1 -0
  295. package/es/packages/components/touchchat/utils/a2aService.mjs +292 -0
  296. package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -0
  297. package/es/packages/components/touchchat/utils/fetchStream.mjs +6 -1
  298. package/es/packages/components/touchchat/utils/fetchStream.mjs.map +1 -1
  299. package/es/packages/components/touchchat/utils/markdown.mjs +3 -3
  300. package/es/packages/components/touchchat/utils/markdown.mjs.map +1 -1
  301. package/es/packages/utils/config.mjs.map +1 -1
  302. package/es/packages/utils/types.mjs.map +1 -1
  303. package/global.d.ts +2 -2
  304. package/lib/index.js.map +1 -1
  305. package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js +1384 -0
  306. package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js.map +1 -0
  307. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +477 -0
  308. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
  309. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +66 -0
  310. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  311. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +13 -0
  312. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  313. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +13 -0
  314. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  315. package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js +7828 -0
  316. package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -0
  317. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +647 -0
  318. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js.map +1 -0
  319. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +199 -0
  320. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js.map +1 -0
  321. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +74 -0
  322. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js.map +1 -0
  323. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +29 -0
  324. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js.map +1 -0
  325. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +308 -0
  326. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js.map +1 -0
  327. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +12 -0
  328. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js.map +1 -0
  329. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +85 -0
  330. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +1 -0
  331. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +56 -0
  332. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +1 -0
  333. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +74 -0
  334. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +1 -0
  335. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +573 -0
  336. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js.map +1 -0
  337. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +139 -0
  338. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js.map +1 -0
  339. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +67 -0
  340. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js.map +1 -0
  341. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +201 -0
  342. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js.map +1 -0
  343. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +95 -0
  344. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js.map +1 -0
  345. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +54 -0
  346. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js.map +1 -0
  347. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +77 -0
  348. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js.map +1 -0
  349. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +327 -0
  350. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js.map +1 -0
  351. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +345 -0
  352. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js.map +1 -0
  353. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +217 -0
  354. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js.map +1 -0
  355. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +37 -0
  356. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js.map +1 -0
  357. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +101 -0
  358. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js.map +1 -0
  359. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +59 -0
  360. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js.map +1 -0
  361. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +48 -0
  362. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js.map +1 -0
  363. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +77 -0
  364. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js.map +1 -0
  365. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +89 -0
  366. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js.map +1 -0
  367. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +339 -0
  368. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js.map +1 -0
  369. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +53 -0
  370. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js.map +1 -0
  371. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +215 -0
  372. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js.map +1 -0
  373. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +226 -0
  374. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js.map +1 -0
  375. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +236 -0
  376. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js.map +1 -0
  377. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +20 -0
  378. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js.map +1 -0
  379. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +18 -0
  380. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js.map +1 -0
  381. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +142 -0
  382. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js.map +1 -0
  383. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +24 -0
  384. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js.map +1 -0
  385. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +108 -0
  386. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js.map +1 -0
  387. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +201 -0
  388. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +1 -0
  389. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +23 -0
  390. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js.map +1 -0
  391. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +50 -0
  392. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js.map +1 -0
  393. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +79 -0
  394. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js.map +1 -0
  395. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +67 -0
  396. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js.map +1 -0
  397. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +131 -0
  398. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +1 -0
  399. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +130 -0
  400. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +1 -0
  401. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +59 -0
  402. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js.map +1 -0
  403. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +77 -0
  404. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js.map +1 -0
  405. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +45 -0
  406. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js.map +1 -0
  407. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +58 -0
  408. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +1 -0
  409. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +146 -0
  410. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js.map +1 -0
  411. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +147 -0
  412. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js.map +1 -0
  413. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +63 -0
  414. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js.map +1 -0
  415. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +50 -0
  416. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js.map +1 -0
  417. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +129 -0
  418. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +1 -0
  419. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +134 -0
  420. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +1 -0
  421. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +93 -0
  422. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js.map +1 -0
  423. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +196 -0
  424. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js.map +1 -0
  425. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +14 -0
  426. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js.map +1 -0
  427. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +117 -0
  428. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js.map +1 -0
  429. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +94 -0
  430. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js.map +1 -0
  431. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +28 -0
  432. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js.map +1 -0
  433. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +313 -0
  434. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js.map +1 -0
  435. package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +453 -0
  436. package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js.map +1 -0
  437. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +8 -0
  438. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js.map +1 -0
  439. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +8 -0
  440. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js.map +1 -0
  441. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +8 -0
  442. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js.map +1 -0
  443. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +8 -0
  444. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js.map +1 -0
  445. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +8 -0
  446. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js.map +1 -0
  447. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +18 -0
  448. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js.map +1 -0
  449. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +8 -0
  450. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js.map +1 -0
  451. package/lib/package.json.css +1 -1
  452. package/lib/package.json.js +1 -1
  453. package/lib/packages/components/index.js +2 -2
  454. package/lib/packages/components/resolver.js.map +1 -1
  455. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js +11 -0
  456. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js +274 -0
  457. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js.map +1 -0
  458. package/lib/packages/components/touchchat/component/AiRobot/face.vue.js +11 -0
  459. package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js +96 -0
  460. package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js.map +1 -0
  461. package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js +11 -0
  462. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js +193 -0
  463. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js.map +1 -0
  464. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js +11 -0
  465. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js +48 -0
  466. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js.map +1 -0
  467. package/lib/packages/components/touchchat/component/AiRobot/start.vue.js +11 -0
  468. package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js +47 -0
  469. package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js.map +1 -0
  470. package/lib/packages/components/touchchat/component/CardView.vue2.js.map +1 -1
  471. package/lib/packages/components/touchchat/component/FileContent.vue.js +11 -0
  472. package/lib/packages/components/touchchat/component/FileContent.vue.js.map +1 -0
  473. package/lib/packages/components/touchchat/component/FileContent.vue2.js +205 -0
  474. package/lib/packages/components/touchchat/component/FileContent.vue2.js.map +1 -0
  475. package/lib/packages/components/touchchat/component/FileView.vue2.js +2 -2
  476. package/lib/packages/components/touchchat/component/FileView.vue2.js.map +1 -1
  477. package/lib/packages/components/touchchat/component/HelloChat.vue2.js +2 -2
  478. package/lib/packages/components/touchchat/component/HelloChat.vue2.js.map +1 -1
  479. package/lib/packages/components/touchchat/component/ImageFile.vue.js +11 -0
  480. package/lib/packages/components/touchchat/component/ImageFile.vue.js.map +1 -0
  481. package/lib/packages/components/touchchat/component/ImageFile.vue2.js +166 -0
  482. package/lib/packages/components/touchchat/component/ImageFile.vue2.js.map +1 -0
  483. package/lib/packages/components/touchchat/component/ImageView.vue2.js +1 -1
  484. package/lib/packages/components/touchchat/component/ImageView.vue2.js.map +1 -1
  485. package/lib/packages/components/touchchat/component/LinkView.vue2.js +4 -4
  486. package/lib/packages/components/touchchat/component/LinkView.vue2.js.map +1 -1
  487. package/lib/packages/components/touchchat/component/MarkLayer.vue.js +11 -0
  488. package/lib/packages/components/touchchat/component/MarkLayer.vue.js.map +1 -0
  489. package/lib/packages/components/touchchat/component/MarkLayer.vue2.js +60 -0
  490. package/lib/packages/components/touchchat/component/MarkLayer.vue2.js.map +1 -0
  491. package/lib/packages/components/touchchat/component/ModuleSelect.vue.js +11 -0
  492. package/lib/packages/components/touchchat/component/ModuleSelect.vue.js.map +1 -0
  493. package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js +125 -0
  494. package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js.map +1 -0
  495. package/lib/packages/components/touchchat/component/PDFFile.vue.js +11 -0
  496. package/lib/packages/components/touchchat/component/PDFFile.vue.js.map +1 -0
  497. package/lib/packages/components/touchchat/component/PDFFile.vue2.js +209 -0
  498. package/lib/packages/components/touchchat/component/PDFFile.vue2.js.map +1 -0
  499. package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js +11 -0
  500. package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js.map +1 -0
  501. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js +166 -0
  502. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js.map +1 -0
  503. package/lib/packages/components/touchchat/component/Screenshot.vue.js +11 -0
  504. package/lib/packages/components/touchchat/component/Screenshot.vue.js.map +1 -0
  505. package/lib/packages/components/touchchat/component/Screenshot.vue2.js +205 -0
  506. package/lib/packages/components/touchchat/component/Screenshot.vue2.js.map +1 -0
  507. package/lib/packages/components/touchchat/component/ThoughtChain.vue.js +11 -0
  508. package/lib/packages/components/touchchat/component/ThoughtChain.vue.js.map +1 -0
  509. package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js +73 -0
  510. package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js.map +1 -0
  511. package/lib/packages/components/touchchat/component/UploadView.vue.js +11 -0
  512. package/lib/packages/components/touchchat/component/UploadView.vue.js.map +1 -0
  513. package/lib/packages/components/touchchat/component/UploadView.vue2.js +150 -0
  514. package/lib/packages/components/touchchat/component/UploadView.vue2.js.map +1 -0
  515. package/lib/packages/components/touchchat/component/UploadView_api.vue.js +11 -0
  516. package/lib/packages/components/touchchat/component/UploadView_api.vue.js.map +1 -0
  517. package/lib/packages/components/touchchat/component/UploadView_api.vue2.js +170 -0
  518. package/lib/packages/components/touchchat/component/UploadView_api.vue2.js.map +1 -0
  519. package/lib/packages/components/touchchat/component/VoiceView.vue.js +11 -0
  520. package/lib/packages/components/touchchat/component/VoiceView.vue.js.map +1 -0
  521. package/lib/packages/components/touchchat/component/VoiceView.vue2.js +171 -0
  522. package/lib/packages/components/touchchat/component/VoiceView.vue2.js.map +1 -0
  523. package/lib/packages/components/touchchat/img/aiAvatar.png.js +8 -0
  524. package/lib/packages/components/touchchat/img/aiAvatar.png.js.map +1 -0
  525. package/lib/packages/components/touchchat/img/file/doc.png.js +8 -0
  526. package/lib/packages/components/touchchat/img/file/doc.png.js.map +1 -0
  527. package/lib/packages/components/touchchat/img/file/docx.png.js +8 -0
  528. package/lib/packages/components/touchchat/img/file/docx.png.js.map +1 -0
  529. package/lib/packages/components/touchchat/img/file/gif.png.js +8 -0
  530. package/lib/packages/components/touchchat/img/file/gif.png.js.map +1 -0
  531. package/lib/packages/components/touchchat/img/file/html.png.js +8 -0
  532. package/lib/packages/components/touchchat/img/file/html.png.js.map +1 -0
  533. package/lib/packages/components/touchchat/img/file/jpg.png.js +8 -0
  534. package/lib/packages/components/touchchat/img/file/jpg.png.js.map +1 -0
  535. package/lib/packages/components/touchchat/img/file/mp3.png.js +8 -0
  536. package/lib/packages/components/touchchat/img/file/mp3.png.js.map +1 -0
  537. package/lib/packages/components/touchchat/img/file/mp4.png.js +8 -0
  538. package/lib/packages/components/touchchat/img/file/mp4.png.js.map +1 -0
  539. package/lib/packages/components/touchchat/img/file/music.png.js +8 -0
  540. package/lib/packages/components/touchchat/img/file/music.png.js.map +1 -0
  541. package/lib/packages/components/touchchat/img/file/pdf.png.js +8 -0
  542. package/lib/packages/components/touchchat/img/file/pdf.png.js.map +1 -0
  543. package/lib/packages/components/touchchat/img/file/png.png.js +8 -0
  544. package/lib/packages/components/touchchat/img/file/png.png.js.map +1 -0
  545. package/lib/packages/components/touchchat/img/file/ppt.png.js +8 -0
  546. package/lib/packages/components/touchchat/img/file/ppt.png.js.map +1 -0
  547. package/lib/packages/components/touchchat/img/file/pptx.png.js +8 -0
  548. package/lib/packages/components/touchchat/img/file/pptx.png.js.map +1 -0
  549. package/lib/packages/components/touchchat/img/file/txt.png.js +8 -0
  550. package/lib/packages/components/touchchat/img/file/txt.png.js.map +1 -0
  551. package/lib/packages/components/touchchat/img/file/xls.png.js +8 -0
  552. package/lib/packages/components/touchchat/img/file/xls.png.js.map +1 -0
  553. package/lib/packages/components/touchchat/img/file/xlsx.png.js +8 -0
  554. package/lib/packages/components/touchchat/img/file/xlsx.png.js.map +1 -0
  555. package/lib/packages/components/touchchat/img/icon.png.js.map +1 -0
  556. package/lib/packages/components/touchchat/img/svg/reset.svg.js +8 -0
  557. package/lib/packages/components/touchchat/img/svg/reset.svg.js.map +1 -0
  558. package/lib/packages/components/touchchat/img/userAvatar.png.js +8 -0
  559. package/lib/packages/components/touchchat/img/userAvatar.png.js.map +1 -0
  560. package/lib/packages/components/touchchat/index.js +5 -5
  561. package/lib/packages/components/touchchat/index.js.map +1 -1
  562. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js +11 -0
  563. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js.map +1 -0
  564. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js +63 -0
  565. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js.map +1 -0
  566. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +223 -281
  567. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
  568. package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js +21 -0
  569. package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js.map +1 -0
  570. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +438 -157
  571. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
  572. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js +117 -148
  573. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js.map +1 -1
  574. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js +50 -63
  575. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js.map +1 -1
  576. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js +126 -226
  577. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js.map +1 -1
  578. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js +11 -0
  579. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js.map +1 -0
  580. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js +35 -0
  581. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js.map +1 -0
  582. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js +11 -0
  583. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js.map +1 -0
  584. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +933 -0
  585. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -0
  586. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +1067 -520
  587. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
  588. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +364 -135
  589. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
  590. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js +128 -65
  591. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js.map +1 -1
  592. package/lib/packages/components/touchchat/src/index.vue.js +2 -2
  593. package/lib/packages/components/touchchat/src/index.vue2.js +179 -116
  594. package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
  595. package/lib/packages/components/touchchat/src/types/a2a.js +13 -0
  596. package/lib/packages/components/touchchat/src/types/a2a.js.map +1 -0
  597. package/lib/packages/components/touchchat/utils/a2aService.js +295 -0
  598. package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -0
  599. package/lib/packages/components/touchchat/utils/fetchStream.js +6 -1
  600. package/lib/packages/components/touchchat/utils/fetchStream.js.map +1 -1
  601. package/lib/packages/components/touchchat/utils/markdown.js +2 -2
  602. package/lib/packages/components/touchchat/utils/markdown.js.map +1 -1
  603. package/lib/packages/utils/config.js.map +1 -1
  604. package/lib/packages/utils/types.js.map +1 -1
  605. package/package.json +81 -81
  606. package/theme/components/index.css +1980 -1684
  607. package/theme/font/iconfont.woff +0 -0
  608. package/theme/font/iconfont.woff2 +0 -0
  609. package/theme/img/aiArrow.png +0 -0
  610. package/theme/img/loading.png +0 -0
  611. package/theme/img/logo.png +0 -0
  612. package/theme/img/userArrow.png +0 -0
  613. package/theme/index.css +1980 -1684
  614. package/theme/skin/default.css +1980 -1684
  615. package/types/global.d.ts +2 -2
  616. package/es/_virtual/emphasis.mjs +0 -4
  617. package/es/_virtual/emphasis.mjs.map +0 -1
  618. package/es/_virtual/html_re.mjs +0 -4
  619. package/es/_virtual/html_re.mjs.map +0 -1
  620. package/es/_virtual/index.mjs +0 -4
  621. package/es/_virtual/index.mjs.map +0 -1
  622. package/es/_virtual/index2.mjs +0 -4
  623. package/es/_virtual/index2.mjs.map +0 -1
  624. package/es/_virtual/index3.mjs +0 -4
  625. package/es/_virtual/index3.mjs.map +0 -1
  626. package/es/_virtual/strikethrough.mjs +0 -4
  627. package/es/_virtual/strikethrough.mjs.map +0 -1
  628. package/es/_virtual/utils.mjs +0 -4
  629. package/es/_virtual/utils.mjs.map +0 -1
  630. package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs +0 -4253
  631. package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs.map +0 -1
  632. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.mjs +0 -638
  633. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.mjs.map +0 -1
  634. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs +0 -196
  635. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs.map +0 -1
  636. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs +0 -9
  637. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs.map +0 -1
  638. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs +0 -7
  639. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs.map +0 -1
  640. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
  641. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.mjs.map +0 -1
  642. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs +0 -29
  643. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs.map +0 -1
  644. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs +0 -324
  645. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs.map +0 -1
  646. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  647. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs.map +0 -1
  648. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -83
  649. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +0 -1
  650. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -44
  651. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +0 -1
  652. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -56
  653. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +0 -1
  654. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.mjs +0 -596
  655. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.mjs.map +0 -1
  656. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs +0 -138
  657. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs.map +0 -1
  658. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs +0 -69
  659. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs.map +0 -1
  660. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  661. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs.map +0 -1
  662. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -78
  663. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.mjs.map +0 -1
  664. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.mjs +0 -39
  665. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.mjs.map +0 -1
  666. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.mjs +0 -59
  667. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.mjs.map +0 -1
  668. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.mjs +0 -346
  669. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.mjs.map +0 -1
  670. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.mjs +0 -354
  671. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.mjs.map +0 -1
  672. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -286
  673. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +0 -1
  674. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.mjs +0 -32
  675. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.mjs.map +0 -1
  676. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -96
  677. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.mjs.map +0 -1
  678. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -57
  679. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs.map +0 -1
  680. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -47
  681. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs.map +0 -1
  682. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -76
  683. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +0 -1
  684. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -81
  685. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +0 -1
  686. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.mjs +0 -366
  687. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.mjs.map +0 -1
  688. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -50
  689. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +0 -1
  690. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -197
  691. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs.map +0 -1
  692. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -234
  693. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +0 -1
  694. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs +0 -223
  695. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs.map +0 -1
  696. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.mjs +0 -16
  697. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.mjs.map +0 -1
  698. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -14
  699. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.mjs.map +0 -1
  700. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -132
  701. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +0 -1
  702. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -19
  703. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +0 -1
  704. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -97
  705. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +0 -1
  706. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -202
  707. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +0 -1
  708. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -21
  709. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +0 -1
  710. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -74
  711. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +0 -1
  712. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -61
  713. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +0 -1
  714. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -128
  715. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +0 -1
  716. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -130
  717. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +0 -1
  718. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  719. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +0 -1
  720. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -54
  721. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +0 -1
  722. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -48
  723. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +0 -1
  724. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -154
  725. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.mjs.map +0 -1
  726. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -150
  727. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.mjs.map +0 -1
  728. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -48
  729. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +0 -1
  730. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -156
  731. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +0 -1
  732. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -130
  733. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +0 -1
  734. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -56
  735. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs.map +0 -1
  736. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs +0 -33
  737. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs.map +0 -1
  738. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.mjs +0 -199
  739. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.mjs.map +0 -1
  740. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.mjs +0 -121
  741. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.mjs.map +0 -1
  742. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.mjs +0 -97
  743. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.mjs.map +0 -1
  744. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.mjs +0 -24
  745. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.mjs.map +0 -1
  746. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs +0 -13
  747. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs.map +0 -1
  748. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.mjs +0 -292
  749. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.mjs.map +0 -1
  750. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs +0 -12
  751. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs.map +0 -1
  752. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs +0 -12
  753. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs.map +0 -1
  754. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs +0 -4
  755. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs.map +0 -1
  756. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs +0 -12
  757. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs.map +0 -1
  758. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs +0 -23
  759. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs.map +0 -1
  760. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs +0 -12
  761. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs.map +0 -1
  762. package/es/packages/components/touchchat/img/AI.png.mjs +0 -4
  763. package/es/packages/components/touchchat/img/AI.png.mjs.map +0 -1
  764. package/es/packages/components/touchchat/img/asir.png.mjs +0 -4
  765. package/es/packages/components/touchchat/img/asir.png.mjs.map +0 -1
  766. package/es/packages/components/touchchat/src/AiRobot/ChatPanel.vue.mjs +0 -7
  767. package/es/packages/components/touchchat/src/AiRobot/ChatPanel.vue.mjs.map +0 -1
  768. package/es/packages/components/touchchat/src/AiRobot/ChatPanel.vue2.mjs +0 -632
  769. package/es/packages/components/touchchat/src/AiRobot/ChatPanel.vue2.mjs.map +0 -1
  770. package/es/packages/components/touchchat/src/AiRobot/Content.vue.mjs +0 -7
  771. package/es/packages/components/touchchat/src/AiRobot/Content.vue.mjs.map +0 -1
  772. package/es/packages/components/touchchat/src/AiRobot/Content.vue2.mjs +0 -263
  773. package/es/packages/components/touchchat/src/AiRobot/Content.vue2.mjs.map +0 -1
  774. package/es/packages/components/touchchat/src/AiRobot/Header.vue.mjs +0 -7
  775. package/es/packages/components/touchchat/src/AiRobot/Header.vue.mjs.map +0 -1
  776. package/es/packages/components/touchchat/src/AiRobot/Header.vue2.mjs +0 -197
  777. package/es/packages/components/touchchat/src/AiRobot/Header.vue2.mjs.map +0 -1
  778. package/es/packages/components/touchchat/src/AiRobot/Input.vue.mjs +0 -7
  779. package/es/packages/components/touchchat/src/AiRobot/Input.vue.mjs.map +0 -1
  780. package/es/packages/components/touchchat/src/AiRobot/Input.vue2.mjs +0 -69
  781. package/es/packages/components/touchchat/src/AiRobot/Input.vue2.mjs.map +0 -1
  782. package/es/packages/components/touchchat/src/AiRobot/Scene.vue.mjs +0 -7
  783. package/es/packages/components/touchchat/src/AiRobot/Scene.vue.mjs.map +0 -1
  784. package/es/packages/components/touchchat/src/AiRobot/Scene.vue2.mjs +0 -48
  785. package/es/packages/components/touchchat/src/AiRobot/Scene.vue2.mjs.map +0 -1
  786. package/es/packages/components/touchchat/src/AiRobot/component/HelloChat.vue.mjs +0 -7
  787. package/es/packages/components/touchchat/src/AiRobot/component/HelloChat.vue2.mjs +0 -270
  788. package/es/packages/components/touchchat/src/AiRobot/component/HelloChat.vue2.mjs.map +0 -1
  789. package/es/packages/components/touchchat/src/AiRobot/component/face.vue.mjs +0 -7
  790. package/es/packages/components/touchchat/src/AiRobot/component/face.vue2.mjs +0 -89
  791. package/es/packages/components/touchchat/src/AiRobot/component/face.vue2.mjs.map +0 -1
  792. package/es/packages/components/touchchat/src/AiRobot/component/letter.vue.mjs +0 -7
  793. package/es/packages/components/touchchat/src/AiRobot/component/letter.vue2.mjs +0 -64
  794. package/es/packages/components/touchchat/src/AiRobot/component/letter.vue2.mjs.map +0 -1
  795. package/es/packages/components/touchchat/src/AiRobot/component/meterialPrepare.vue.mjs +0 -7
  796. package/es/packages/components/touchchat/src/AiRobot/component/meterialPrepare.vue2.mjs +0 -36
  797. package/es/packages/components/touchchat/src/AiRobot/component/meterialPrepare.vue2.mjs.map +0 -1
  798. package/es/packages/components/touchchat/src/AiRobot/component/start.vue.mjs +0 -7
  799. package/es/packages/components/touchchat/src/AiRobot/component/start.vue2.mjs +0 -36
  800. package/es/packages/components/touchchat/src/AiRobot/component/start.vue2.mjs.map +0 -1
  801. package/es/packages/components/touchchat/src/AiRobot/img/Avatar-AI.png.mjs +0 -4
  802. package/es/packages/components/touchchat/src/AiRobot/img/Avatar-AI.png.mjs.map +0 -1
  803. package/es/packages/components/touchchat/src/AiRobot/img/icon.png.mjs.map +0 -1
  804. package/es/packages/components/touchchat/src/AiRobot/index.vue.mjs +0 -7
  805. package/es/packages/components/touchchat/src/AiRobot/index.vue.mjs.map +0 -1
  806. package/es/packages/components/touchchat/src/AiRobot/index.vue2.mjs +0 -135
  807. package/es/packages/components/touchchat/src/AiRobot/index.vue2.mjs.map +0 -1
  808. package/lib/_virtual/emphasis.js +0 -6
  809. package/lib/_virtual/emphasis.js.map +0 -1
  810. package/lib/_virtual/html_re.js +0 -6
  811. package/lib/_virtual/html_re.js.map +0 -1
  812. package/lib/_virtual/index.js +0 -6
  813. package/lib/_virtual/index.js.map +0 -1
  814. package/lib/_virtual/index2.js +0 -6
  815. package/lib/_virtual/index2.js.map +0 -1
  816. package/lib/_virtual/index3.js +0 -6
  817. package/lib/_virtual/index3.js.map +0 -1
  818. package/lib/_virtual/strikethrough.js +0 -6
  819. package/lib/_virtual/strikethrough.js.map +0 -1
  820. package/lib/_virtual/utils.js +0 -6
  821. package/lib/_virtual/utils.js.map +0 -1
  822. package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js +0 -6380
  823. package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js.map +0 -1
  824. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.js +0 -640
  825. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.js.map +0 -1
  826. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js +0 -198
  827. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js.map +0 -1
  828. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js +0 -13
  829. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js.map +0 -1
  830. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js +0 -9
  831. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js.map +0 -1
  832. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.js +0 -69
  833. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.js.map +0 -1
  834. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js +0 -33
  835. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js.map +0 -1
  836. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js +0 -326
  837. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js.map +0 -1
  838. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js +0 -15
  839. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js.map +0 -1
  840. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -85
  841. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +0 -1
  842. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -46
  843. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +0 -1
  844. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -58
  845. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +0 -1
  846. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.js +0 -598
  847. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.js.map +0 -1
  848. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.js +0 -140
  849. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.js.map +0 -1
  850. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.js +0 -71
  851. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.js.map +0 -1
  852. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.js +0 -199
  853. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.js.map +0 -1
  854. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.js +0 -80
  855. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.js.map +0 -1
  856. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.js +0 -41
  857. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.js.map +0 -1
  858. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.js +0 -61
  859. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.js.map +0 -1
  860. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.js +0 -348
  861. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.js.map +0 -1
  862. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.js +0 -356
  863. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.js.map +0 -1
  864. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -288
  865. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.js.map +0 -1
  866. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.js +0 -34
  867. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.js.map +0 -1
  868. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.js +0 -98
  869. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.js.map +0 -1
  870. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js +0 -59
  871. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js.map +0 -1
  872. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js +0 -49
  873. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js.map +0 -1
  874. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js +0 -78
  875. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js.map +0 -1
  876. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.js +0 -83
  877. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.js.map +0 -1
  878. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.js +0 -368
  879. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.js.map +0 -1
  880. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -52
  881. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js.map +0 -1
  882. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js +0 -199
  883. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js.map +0 -1
  884. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.js +0 -236
  885. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.js.map +0 -1
  886. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js +0 -225
  887. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js.map +0 -1
  888. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.js +0 -18
  889. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.js.map +0 -1
  890. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js +0 -16
  891. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js.map +0 -1
  892. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js +0 -134
  893. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js.map +0 -1
  894. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.js +0 -21
  895. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.js.map +0 -1
  896. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.js +0 -99
  897. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.js.map +0 -1
  898. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -204
  899. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +0 -1
  900. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.js +0 -23
  901. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.js.map +0 -1
  902. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -76
  903. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js.map +0 -1
  904. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -63
  905. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.js.map +0 -1
  906. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -130
  907. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +0 -1
  908. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -134
  909. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +0 -1
  910. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js +0 -53
  911. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js.map +0 -1
  912. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js +0 -56
  913. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js.map +0 -1
  914. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -50
  915. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +0 -1
  916. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.js +0 -156
  917. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.js.map +0 -1
  918. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.js +0 -152
  919. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.js.map +0 -1
  920. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.js +0 -50
  921. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.js.map +0 -1
  922. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -158
  923. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +0 -1
  924. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -134
  925. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +0 -1
  926. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js +0 -58
  927. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js.map +0 -1
  928. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js +0 -35
  929. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js.map +0 -1
  930. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.js +0 -201
  931. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.js.map +0 -1
  932. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js +0 -123
  933. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js.map +0 -1
  934. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js +0 -99
  935. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js.map +0 -1
  936. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js +0 -26
  937. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js.map +0 -1
  938. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +0 -17
  939. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js.map +0 -1
  940. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js +0 -294
  941. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js.map +0 -1
  942. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +0 -14
  943. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js.map +0 -1
  944. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +0 -14
  945. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js.map +0 -1
  946. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +0 -6
  947. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js.map +0 -1
  948. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +0 -14
  949. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js.map +0 -1
  950. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +0 -25
  951. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js.map +0 -1
  952. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +0 -14
  953. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js.map +0 -1
  954. package/lib/packages/components/touchchat/img/AI.png.js +0 -8
  955. package/lib/packages/components/touchchat/img/AI.png.js.map +0 -1
  956. package/lib/packages/components/touchchat/img/asir.png.js +0 -8
  957. package/lib/packages/components/touchchat/img/asir.png.js.map +0 -1
  958. package/lib/packages/components/touchchat/src/AiRobot/ChatPanel.vue.js +0 -11
  959. package/lib/packages/components/touchchat/src/AiRobot/ChatPanel.vue.js.map +0 -1
  960. package/lib/packages/components/touchchat/src/AiRobot/ChatPanel.vue2.js +0 -636
  961. package/lib/packages/components/touchchat/src/AiRobot/ChatPanel.vue2.js.map +0 -1
  962. package/lib/packages/components/touchchat/src/AiRobot/Content.vue.js +0 -11
  963. package/lib/packages/components/touchchat/src/AiRobot/Content.vue.js.map +0 -1
  964. package/lib/packages/components/touchchat/src/AiRobot/Content.vue2.js +0 -267
  965. package/lib/packages/components/touchchat/src/AiRobot/Content.vue2.js.map +0 -1
  966. package/lib/packages/components/touchchat/src/AiRobot/Header.vue.js +0 -11
  967. package/lib/packages/components/touchchat/src/AiRobot/Header.vue.js.map +0 -1
  968. package/lib/packages/components/touchchat/src/AiRobot/Header.vue2.js +0 -201
  969. package/lib/packages/components/touchchat/src/AiRobot/Header.vue2.js.map +0 -1
  970. package/lib/packages/components/touchchat/src/AiRobot/Input.vue.js +0 -11
  971. package/lib/packages/components/touchchat/src/AiRobot/Input.vue.js.map +0 -1
  972. package/lib/packages/components/touchchat/src/AiRobot/Input.vue2.js +0 -73
  973. package/lib/packages/components/touchchat/src/AiRobot/Input.vue2.js.map +0 -1
  974. package/lib/packages/components/touchchat/src/AiRobot/Scene.vue.js +0 -11
  975. package/lib/packages/components/touchchat/src/AiRobot/Scene.vue.js.map +0 -1
  976. package/lib/packages/components/touchchat/src/AiRobot/Scene.vue2.js +0 -52
  977. package/lib/packages/components/touchchat/src/AiRobot/Scene.vue2.js.map +0 -1
  978. package/lib/packages/components/touchchat/src/AiRobot/component/HelloChat.vue.js +0 -11
  979. package/lib/packages/components/touchchat/src/AiRobot/component/HelloChat.vue2.js +0 -274
  980. package/lib/packages/components/touchchat/src/AiRobot/component/HelloChat.vue2.js.map +0 -1
  981. package/lib/packages/components/touchchat/src/AiRobot/component/face.vue.js +0 -11
  982. package/lib/packages/components/touchchat/src/AiRobot/component/face.vue2.js +0 -93
  983. package/lib/packages/components/touchchat/src/AiRobot/component/face.vue2.js.map +0 -1
  984. package/lib/packages/components/touchchat/src/AiRobot/component/letter.vue.js +0 -11
  985. package/lib/packages/components/touchchat/src/AiRobot/component/letter.vue2.js +0 -68
  986. package/lib/packages/components/touchchat/src/AiRobot/component/letter.vue2.js.map +0 -1
  987. package/lib/packages/components/touchchat/src/AiRobot/component/meterialPrepare.vue.js +0 -11
  988. package/lib/packages/components/touchchat/src/AiRobot/component/meterialPrepare.vue2.js +0 -40
  989. package/lib/packages/components/touchchat/src/AiRobot/component/meterialPrepare.vue2.js.map +0 -1
  990. package/lib/packages/components/touchchat/src/AiRobot/component/start.vue.js +0 -11
  991. package/lib/packages/components/touchchat/src/AiRobot/component/start.vue2.js +0 -40
  992. package/lib/packages/components/touchchat/src/AiRobot/component/start.vue2.js.map +0 -1
  993. package/lib/packages/components/touchchat/src/AiRobot/img/Avatar-AI.png.js +0 -8
  994. package/lib/packages/components/touchchat/src/AiRobot/img/Avatar-AI.png.js.map +0 -1
  995. package/lib/packages/components/touchchat/src/AiRobot/img/icon.png.js.map +0 -1
  996. package/lib/packages/components/touchchat/src/AiRobot/index.vue.js +0 -11
  997. package/lib/packages/components/touchchat/src/AiRobot/index.vue.js.map +0 -1
  998. package/lib/packages/components/touchchat/src/AiRobot/index.vue2.js +0 -139
  999. package/lib/packages/components/touchchat/src/AiRobot/index.vue2.js.map +0 -1
  1000. package/theme/img/default.png +0 -0
  1001. /package/es/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/HelloChat.vue.mjs.map +0 -0
  1002. /package/es/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/face.vue.mjs.map +0 -0
  1003. /package/es/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/letter.vue.mjs.map +0 -0
  1004. /package/es/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/meterialPrepare.vue.mjs.map +0 -0
  1005. /package/es/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/start.vue.mjs.map +0 -0
  1006. /package/es/packages/components/touchchat/{src/AiRobot/img → img}/icon.png.mjs +0 -0
  1007. /package/lib/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/HelloChat.vue.js.map +0 -0
  1008. /package/lib/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/face.vue.js.map +0 -0
  1009. /package/lib/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/letter.vue.js.map +0 -0
  1010. /package/lib/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/meterialPrepare.vue.js.map +0 -0
  1011. /package/lib/packages/components/touchchat/{src/AiRobot/component → component/AiRobot}/start.vue.js.map +0 -0
  1012. /package/lib/packages/components/touchchat/{src/AiRobot/img → img}/icon.png.js +0 -0
@@ -1,51 +1,45 @@
1
- import { defineComponent, inject, ref, watch, nextTick, onBeforeUnmount, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, createCommentVNode, renderSlot, createVNode, renderList, createBlock, withCtx } from 'vue';
1
+ import { defineComponent, inject, ref, watch, nextTick, onMounted, onBeforeUnmount, provide, openBlock, createElementBlock, withModifiers, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, renderList, createBlock, unref, withCtx } from 'vue';
2
2
  import UserMessage from './UserMessage.vue.mjs';
3
3
  import AiMessage from './AiMessage.vue.mjs';
4
4
  import ChatInput from './ChatInput.vue.mjs';
5
+ import HelloChat from '../../component/HelloChat.vue.mjs';
5
6
  import { throttle } from '../../../../../node_modules/.pnpm/throttle-debounce@5.0.2/node_modules/throttle-debounce/esm/index.mjs';
6
7
  import { FetchStream } from '../../utils/fetchStream.mjs';
7
- import { ChatRobot } from '../../utils/chatRobot.mjs';
8
8
  import markdown from '../../utils/markdown.mjs';
9
- import HelloChat from '../../component/HelloChat.vue.mjs';
10
9
  import { showToast } from '../../utils/tools.mjs';
10
+ import { MessageAction, ThinkStatus } from './Chat/TouchChat.mjs';
11
11
 
12
12
  var _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  __name: "TouchChat",
14
14
  props: {
15
- model: {
16
- type: String,
17
- default: "deepseek-v3"
18
- },
19
15
  value: {
20
16
  type: Array,
21
17
  default: () => []
22
- },
23
- placeholder: {
24
- type: String,
25
- default: "\u5FEB\u6765\u548C\u6211\u804A\u5929\u5427~"
26
- },
27
- components: {
28
- type: Object,
29
- default: () => ({})
30
- },
31
- openSSECallback: {
32
- type: Function,
33
- default: null
34
18
  }
35
19
  },
36
- emits: ["sendMessage"],
37
- setup(__props, { emit: __emit }) {
20
+ emits: ["sendMessage", "toggleSidebar", "beforeSendMessage"],
21
+ setup(__props, { expose: __expose, emit: __emit }) {
38
22
  const emit = __emit;
39
- const action = inject("action", "");
40
- const headers = inject("headers", void 0);
41
- const body = inject("body", void 0);
42
- const token = inject("token", "");
43
- const wsUrl = inject("wsUrl", "");
44
- const connectionType = inject("connectionType");
45
- const isDeepSeek = inject("isDeepSeek", true);
46
- const aiChatType = inject("aiChatType", "Flow");
47
- const afterSendMessage = inject("afterSendMessage", () => {
48
- console.warn("\u672A\u63D0\u4F9BafterSendMessage\u51FD\u6570");
23
+ const scripts = inject("scripts", []);
24
+ const activeScript = ref(null);
25
+ const resultItem = ref(null);
26
+ const unmatchText = inject("unmatchText", "\u60A8\u7684\u6D88\u606F\u672A\u5339\u914D\u5230\u4EFB\u4F55\u5185\u5BB9");
27
+ const modules = inject("modules", []);
28
+ const afterSend = inject("afterSend", () => {
29
+ console.warn("\u672A\u63D0\u4F9BafterSend\u51FD\u6570");
30
+ });
31
+ const sendMessageInject = inject("send", () => {
32
+ console.warn("\u672A\u63D0\u4F9BhandleSend\u51FD\u6570");
33
+ });
34
+ const beforeSend = inject("beforeSend", () => ({
35
+ result: true,
36
+ componentName: ""
37
+ }));
38
+ const bottom = inject("bottom", () => {
39
+ console.warn("\u672A\u63D0\u4F9Bbottom\u51FD\u6570");
40
+ });
41
+ const stop = inject("stop", () => {
42
+ console.warn("\u672A\u63D0\u4F9Bstop\u51FD\u6570");
49
43
  });
50
44
  const props = __props;
51
45
  const chatContainer = ref(null);
@@ -64,52 +58,123 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
64
58
  const TouchChatRobot = ref();
65
59
  const isUnmounting = ref(false);
66
60
  const currentComponentName = ref("");
67
- const init = () => {
68
- if (Array.isArray(props.value) && props.value.length) {
69
- chatList.value = props.value.map((item) => ({
70
- ...item,
71
- content: item.thinkContent ? item.content || "" : item.content || "",
72
- thinkContent: item.thinkContent || ""
73
- }));
61
+ const fileData = ref([]);
62
+ const activeAgentsName = ref("");
63
+ const moduleInfo = ref(modules[0]);
64
+ const ChatInputRef = ref(null);
65
+ const isDragging = ref(false);
66
+ const typeFlag = ref("");
67
+ const currentMessageProcessor = ref(null);
68
+ watch(
69
+ () => activeAgentsName,
70
+ (val) => {
71
+ if (!val) {
72
+ activeAgentsName.value = localStorage.getItem("activeAgentsName");
73
+ }
74
+ },
75
+ { immediate: true }
76
+ );
77
+ const messageUtils = {
78
+ updateMessage: (index, updates) => {
79
+ if (index < 0 || index >= chatList.value.length)
80
+ return;
81
+ chatList.value.splice(index, 1, { ...chatList.value[index], ...updates });
74
82
  nextTick(() => {
75
- requestAnimationFrame(() => {
76
- try {
77
- chatList.value.forEach((item, index) => {
78
- currIndex.value = index;
79
- if (item.thinkContent) {
80
- renderContent(item.thinkContent, "thinking");
81
- }
82
- if (item.reasoningContent) {
83
- renderContent(item.reasoningContent, "reasoning");
84
- }
85
- if (item.content) {
86
- renderContent(item.content, "main");
87
- }
88
- });
89
- } catch (error) {
90
- console.error("\u521D\u59CB\u6E32\u67D3\u5931\u8D25:", error);
83
+ const message = chatList.value[index];
84
+ if (message) {
85
+ renderContent(message.content, "main", index);
86
+ if (message.thinkContent) {
87
+ renderContent(message.thinkContent, "thinking", index);
91
88
  }
92
- });
89
+ if (message.reasoningContent) {
90
+ renderContent(message.reasoningContent, "reasoning", index);
91
+ }
92
+ }
93
93
  });
94
+ },
95
+ deleteMessageChain: (index) => {
96
+ if (index < 0 || index >= chatList.value.length)
97
+ return;
98
+ if (chatList.value[index].user === "u") {
99
+ let deleteCount = 1;
100
+ for (let i = index + 1; i < chatList.value.length; i++) {
101
+ if (chatList.value[i].user === "ai") {
102
+ deleteCount++;
103
+ } else {
104
+ break;
105
+ }
106
+ }
107
+ chatList.value.splice(index, deleteCount);
108
+ } else {
109
+ chatList.value.splice(index, 1);
110
+ }
111
+ },
112
+ createStandardMessage: (data) => {
113
+ var _a, _b, _c, _d, _e;
114
+ return {
115
+ // chatId: data.chatId || 'ai_' + crypto.randomUUID().replace(/-/gi, ''),
116
+ chatId: data.chatId || "ai_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10),
117
+ user: data.user || "ai",
118
+ type: data.type || "text",
119
+ content: data.content || "",
120
+ isChating: (_a = data.isChating) != null ? _a : false,
121
+ thinkContent: data.thinkContent || "",
122
+ reasoningContent: data.reasoningContent || "",
123
+ isLiked: (_b = data.isLiked) != null ? _b : false,
124
+ isDisliked: (_c = data.isDisliked) != null ? _c : false,
125
+ isEditing: (_d = data.isEditing) != null ? _d : false,
126
+ editContent: (_e = data.editContent) != null ? _e : ""
127
+ };
94
128
  }
95
- if (connectionType === "Websocket") {
96
- openWebsocket();
129
+ };
130
+ const update = (index, message) => {
131
+ chatList.value[index] = { ...chatList.value[index], ...message };
132
+ console.log("update", chatList.value[index]);
133
+ };
134
+ const markdownToHtml = (markdownContent) => {
135
+ var _a;
136
+ return ((_a = markdown) == null ? void 0 : _a.render(markdownContent, { isReasoning: false })) || "";
137
+ };
138
+ const updateModule = (info) => {
139
+ moduleInfo.value = info;
140
+ };
141
+ const handleAgentSelect = (item) => {
142
+ localStorage.setItem("activeAgentsName", item.name);
143
+ const aiMessage = item.intro;
144
+ messageUtils.updateMessage(0, {
145
+ content: "",
146
+ isChating: false
147
+ });
148
+ simulateStreamOutput(0, aiMessage);
149
+ };
150
+ const completeRendered = (chatId) => {
151
+ console.log("completeRendered", "\u6E32\u67D3\u5B8C\u6210", chatId);
152
+ if (currentMessageProcessor.value) {
153
+ currentMessageProcessor.value.handleMessageComplete(chatId);
97
154
  }
98
155
  };
99
- watch(
100
- () => props.value,
101
- (newVal, oldVal) => {
102
- if (Array.isArray(newVal) && newVal.length && JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
103
- chatList.value = newVal.map((item) => ({
156
+ const toggleSidebarClick = (item, index) => {
157
+ emit("toggleSidebar", item, index);
158
+ };
159
+ const init = () => {
160
+ try {
161
+ if (Array.isArray(props.value) && props.value.length && !scripts.length) {
162
+ chatList.value = props.value.map((item) => ({
104
163
  ...item,
105
164
  content: item.thinkContent ? item.content || "" : item.content || "",
106
165
  thinkContent: item.thinkContent || ""
107
166
  }));
108
167
  nextTick(() => {
109
168
  requestAnimationFrame(() => {
110
- try {
111
- chatList.value.forEach((item, index) => {
112
- currIndex.value = index;
169
+ if (activeAgentsName.value && chatList.value.length > 0 && chatList.value[0].user === "ai") {
170
+ const aiMessage = chatList.value[0];
171
+ messageUtils.updateMessage(0, {
172
+ content: "",
173
+ isChating: true
174
+ });
175
+ simulateStreamOutput(0, aiMessage.content);
176
+ } else {
177
+ chatList.value.forEach((item) => {
113
178
  if (item.thinkContent) {
114
179
  renderContent(item.thinkContent, "thinking");
115
180
  }
@@ -120,280 +185,535 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
185
  renderContent(item.content, "main");
121
186
  }
122
187
  });
123
- } catch (error) {
124
- console.error("\u6570\u636E\u66F4\u65B0\u6E32\u67D3\u5931\u8D25:", error);
188
+ nextTick(() => {
189
+ scrollToBottom();
190
+ });
125
191
  }
126
192
  });
127
193
  });
128
194
  }
129
- },
130
- { deep: true, immediate: true }
131
- // 深度监听并立即执行
132
- );
133
- const openWebsocket = () => {
134
- if (!wsUrl) {
135
- throw new Error("wsUrl is required");
195
+ } catch (error) {
196
+ console.error("\u521D\u59CB\u5316\u5931\u8D25:", error);
136
197
  }
137
- if (!token) {
138
- throw new Error("token is required");
198
+ };
199
+ const onScrollToBottom = () => {
200
+ bottom();
201
+ };
202
+ const throttledScrollToBottom = throttle(300, onScrollToBottom);
203
+ const handleScroll = () => {
204
+ if (!chatContainer.value)
205
+ return;
206
+ const { scrollTop, scrollHeight, clientHeight } = chatContainer.value;
207
+ if (scrollTop + clientHeight >= scrollHeight) {
208
+ throttledScrollToBottom();
139
209
  }
140
- let config = {
141
- token,
142
- wsUrl
143
- };
144
- TouchChatRobot.value = new ChatRobot(config);
145
- TouchChatRobot.value && TouchChatRobot.value.addListener("chatCrmSuccess", {
146
- msgCallback: chatCrmSuccess,
147
- statusCallback: () => {
148
- }
149
- });
150
- TouchChatRobot.value && TouchChatRobot.value.addListener("onMessageError", {
151
- msgCallback: () => {
152
- }
153
- });
154
- TouchChatRobot.value && TouchChatRobot.value.addListener("chatCrmError", {
155
- msgCallback: (data) => {
156
- console.log("AI \u5BF9\u8BDD\u8FDE\u63A5\u9519\u8BEF\u56DE\u8C03", data);
210
+ };
211
+ const simulateStreamOutput = (aiIndex, msg, callback) => {
212
+ const message = typeof msg === "string" ? msg : msg.content;
213
+ const componentName = typeof msg === "string" ? "" : msg.needSequenceProcessing ? msg.needSequenceType : "";
214
+ const isNeedSequenceProcessing = typeof msg === "string" ? false : msg.needSequenceProcessing;
215
+ const fn = () => {
216
+ clearInterval(interval);
217
+ emit("sendMessage", [...chatList.value]);
218
+ if (componentName) {
219
+ chatList.value[aiIndex].componentName = componentName;
157
220
  }
158
- });
159
- TouchChatRobot.value.connect();
160
- };
161
- const chatCrmSuccess = (data) => {
162
- if (data && data.chatType === "response") {
163
- if (Array.isArray(data.chatInfo)) {
164
- let msgContentList = data.chatInfo.map((item) => item.msgContent);
165
- let msgContent = "";
166
- if (msgContentList.length) {
167
- msgContent = msgContentList[0];
168
- }
169
- chatList.value.push({
170
- user: "u",
171
- type: "text",
172
- content: msgContent
221
+ messageUtils.updateMessage(aiIndex, {
222
+ isChating: false
223
+ });
224
+ nextTick(() => {
225
+ renderContent(message, "main", aiIndex);
226
+ nextTick(() => {
227
+ scrollToBottom();
228
+ if (!isNeedSequenceProcessing && callback) {
229
+ callback();
230
+ }
231
+ });
232
+ });
233
+ };
234
+ let index = 0;
235
+ const interval = setInterval(() => {
236
+ if (index < message.length) {
237
+ const newContent = message;
238
+ messageUtils.updateMessage(aiIndex, {
239
+ content: newContent
240
+ });
241
+ nextTick(() => {
242
+ renderContent(newContent, "main", aiIndex);
243
+ nextTick(() => {
244
+ scrollToBottom();
245
+ });
173
246
  });
247
+ index++;
248
+ } else {
249
+ fn();
174
250
  }
175
- }
251
+ }, 50);
176
252
  };
177
- const openSSE = (userContent, insertIndex, type) => {
178
- if (isUnmounting.value)
179
- return;
180
- isChating.value = true;
181
- if (props.openSSECallback) {
182
- props.openSSECallback(FetchStream);
183
- return;
184
- }
185
- const currentAiMessage = chatList.value.find((item) => item.isChating);
186
- if (currentAiMessage) {
187
- currentAiMessage.isShowLike = true;
188
- currentAiMessage.isShowCopy = true;
189
- currentAiMessage.componentName = currentComponentName.value;
190
- }
191
- const chatId = (currentAiMessage == null ? void 0 : currentAiMessage.chatId) || "ai_" + crypto.randomUUID().replace(/-/gi, "");
192
- let aiContent = (currentAiMessage == null ? void 0 : currentAiMessage.content) || "";
193
- let thinkingContent = (currentAiMessage == null ? void 0 : currentAiMessage.thinkContent) || "";
194
- let reasoningContent = (currentAiMessage == null ? void 0 : currentAiMessage.reasoningContent) || "";
195
- let allAiContent = "";
196
- if (!currentAiMessage) {
197
- const chatItem = {
198
- chatId,
199
- user: "ai",
200
- // u:user, ai:ai
201
- type: "text",
202
- isChating: true,
203
- content: "",
204
- thinkContent: "",
205
- reasoningContent: "",
206
- thinkStatus: "thinking",
207
- thinkStartTime: Date.now(),
208
- isShowLike: true,
209
- isShowCopy: true,
210
- componentName: currentComponentName.value
211
- // ...componentNameFn(),
212
- };
213
- if (insertIndex !== void 0 && insertIndex <= chatList.value.length) {
214
- chatList.value.splice(insertIndex, 0, chatItem);
253
+ const findMatchingScriptContent = (userInput) => {
254
+ if (!scripts || scripts.length === 0)
255
+ return null;
256
+ const agentName = activeAgentsName.value ? activeAgentsName.value : localStorage.getItem("activeAgentsName") || "";
257
+ if (agentName) {
258
+ const agentMatchedScripts = scripts.filter((script) => {
259
+ return script.content.some((item) => item.agents === agentName);
260
+ });
261
+ if (agentMatchedScripts.length > 0) {
262
+ const fileTypeItems = agentMatchedScripts.flatMap((script) => script.content.filter((item) => item.file));
263
+ const fileTypes = fileTypeItems.map((item) => item.file);
264
+ const isFileTypeMatched = fileData.value.some((file) => {
265
+ const nameArr = file.name.split(".");
266
+ const name = nameArr[nameArr.length - 1];
267
+ const isMatched = fileTypes.includes(name);
268
+ return isMatched;
269
+ });
270
+ let matchedScriptContentIndex = -1;
271
+ if (!activeScript.value && isFileTypeMatched) {
272
+ activeScript.value = agentMatchedScripts[0];
273
+ }
274
+ if (isFileTypeMatched) {
275
+ for (const script of agentMatchedScripts) {
276
+ for (let i = 0; i < script.content.length; i++) {
277
+ const item = script.content[i];
278
+ if (item.file) {
279
+ const nameArr = fileData.value.map((file) => {
280
+ const fileExtArr = file.name.split(".");
281
+ return fileExtArr[fileExtArr.length - 1];
282
+ });
283
+ if (nameArr.includes(item.file)) {
284
+ matchedScriptContentIndex = i;
285
+ break;
286
+ }
287
+ }
288
+ }
289
+ if (matchedScriptContentIndex !== -1) {
290
+ break;
291
+ }
292
+ }
293
+ const responses = [];
294
+ const matchContent = agentMatchedScripts[0].content;
295
+ for (let j = matchedScriptContentIndex + 1; j < matchContent.length; j++) {
296
+ const nextItem = matchContent[j];
297
+ if (nextItem.user === "i") {
298
+ break;
299
+ }
300
+ if (nextItem.user === "ai") {
301
+ if (nextItem.data && nextItem.type) {
302
+ responses.push({
303
+ ...nextItem,
304
+ // 标记需要先流式输出文字,再调用组件
305
+ needSequenceProcessing: true
306
+ });
307
+ } else {
308
+ responses.push(nextItem);
309
+ }
310
+ }
311
+ }
312
+ const nextIndex = matchContent.findIndex((contentItem, index) => index > matchedScriptContentIndex && contentItem.user === "i");
313
+ return {
314
+ responses,
315
+ nextIndex: nextIndex === -1 ? matchContent.length : nextIndex
316
+ };
317
+ }
215
318
  } else {
216
- chatList.value.push(chatItem);
217
- }
218
- }
219
- currIndex.value = chatList.value.findIndex((ele) => ele.chatId === chatId);
220
- fetchStream.value = new FetchStream({
221
- url: action != null ? action : "https://api.apiyi.com/v1/chat/completions",
222
- requestInit: {
223
- headers: headers != null ? headers : {
224
- "Content-Type": "application/json",
225
- Authorization: "Bearer sk-fe9MtODvds8wpzz05f3417Fe3e9641C1926e6fC588425dEd"
226
- },
227
- body: !isDeepSeek ? JSON.stringify(body) : JSON.stringify({
228
- model: enableDeepThinking.value ? "deepseek-reasoner" : "deepseek-v3",
229
- messages: [
319
+ return {
320
+ responses: [
230
321
  {
231
- role: "user",
232
- content: userContent
233
- // 使用传入的用户内容参数
322
+ user: "ai",
323
+ data: unmatchText
234
324
  }
235
325
  ],
236
- stream: true
237
- })
238
- },
239
- onmessage: (line) => {
240
- var _a, _b, _c, _d, _e, _f;
241
- if (isUnmounting.value)
242
- return;
243
- let dataString = "";
244
- if (line.length) {
245
- if (line.includes("data:")) {
246
- dataString = line.split("data:")[1];
247
- } else if (line.startsWith("{") && line.endsWith("}")) {
248
- dataString = line;
326
+ nextIndex: -1
327
+ };
328
+ }
329
+ }
330
+ if (activeScript.value) {
331
+ const result = searchInScript(activeScript.value, userInput);
332
+ if (result) {
333
+ return result;
334
+ }
335
+ }
336
+ for (const script of scripts) {
337
+ const result = searchInScript(script, userInput);
338
+ if (result) {
339
+ activeScript.value = script;
340
+ return result;
341
+ }
342
+ }
343
+ return null;
344
+ };
345
+ const searchInScript = (script, userInput) => {
346
+ for (let i = 0; i < script.content.length; i++) {
347
+ const item = script.content[i];
348
+ if (item.user === "i") {
349
+ const isDataMatch = item.data && userInput.includes(item.data);
350
+ let isSubDataMatch = false;
351
+ if (item.alias) {
352
+ if (Array.isArray(item.alias)) {
353
+ isSubDataMatch = item.alias.some((subItem) => subItem === userInput);
249
354
  }
250
355
  }
251
- dataString = dataString.trim();
252
- if (dataString && dataString.startsWith("{") && dataString.endsWith("}")) {
253
- const result = JSON.parse(dataString);
254
- const newAiMessage = chatList.value[currIndex.value];
255
- if (isDeepSeek) {
256
- if ((_c = (_b = (_a = result == null ? void 0 : result.choices) == null ? void 0 : _a[0]) == null ? void 0 : _b.delta) == null ? void 0 : _c.content) {
257
- aiContent += result.choices[0].delta.content;
258
- if ((newAiMessage == null ? void 0 : newAiMessage.thinkStatus) === "thinking") {
259
- newAiMessage.thinkStatus = "completed";
260
- newAiMessage.thinkTime = Date.now() - (newAiMessage.thinkStartTime || Date.now());
261
- }
356
+ if (isDataMatch || isSubDataMatch) {
357
+ const responses = [];
358
+ for (let j = i + 1; j < script.content.length; j++) {
359
+ const nextItem = script.content[j];
360
+ if (nextItem.user === "i") {
361
+ break;
262
362
  }
263
- if ((_f = (_e = (_d = result == null ? void 0 : result.choices) == null ? void 0 : _d[0]) == null ? void 0 : _e.delta) == null ? void 0 : _f.reasoning_content) {
264
- reasoningContent += result.choices[0].delta.reasoning_content;
265
- if (!(newAiMessage == null ? void 0 : newAiMessage.thinkStatus)) {
266
- newAiMessage.thinkStatus = "thinking";
267
- newAiMessage.thinkStartTime = Date.now();
363
+ if (nextItem.user === "ai") {
364
+ if (nextItem.data && nextItem.type) {
365
+ responses.push({
366
+ ...nextItem,
367
+ // 标记需要先流式输出文字,再调用组件
368
+ needSequenceProcessing: true
369
+ });
370
+ } else {
371
+ responses.push(nextItem);
268
372
  }
269
373
  }
270
- } else {
271
- if (aiChatType === "Flow") {
272
- if ((result == null ? void 0 : result.message) && (result == null ? void 0 : result.category) === "answer") {
273
- aiContent += result.message;
374
+ }
375
+ const nextIndex = script.content.findIndex((contentItem, index) => index > i && contentItem.user === "i");
376
+ return { responses, nextIndex: nextIndex === -1 ? script.content.length : nextIndex };
377
+ }
378
+ } else if (item.user === "ai") {
379
+ scripts.forEach((script2) => {
380
+ if (script2.content.length) {
381
+ const contents = script2.content;
382
+ contents.forEach((item2) => {
383
+ if (item2.agents) {
384
+ if (item2.agents === activeAgentsName.value) {
385
+ activeScript.value = script2;
386
+ }
387
+ }
388
+ });
389
+ }
390
+ });
391
+ }
392
+ }
393
+ return null;
394
+ };
395
+ watch(
396
+ () => props.value,
397
+ (newVal, oldVal) => {
398
+ if (!Array.isArray(newVal))
399
+ return;
400
+ if (newVal.length && JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
401
+ chatList.value = newVal.map((item) => ({
402
+ ...item,
403
+ content: item.thinkContent ? item.content || "" : item.content || "",
404
+ thinkContent: item.thinkContent || ""
405
+ }));
406
+ nextTick(() => {
407
+ requestAnimationFrame(() => {
408
+ chatList.value.forEach((item) => {
409
+ if (item.thinkContent) {
410
+ renderContent(item.thinkContent, "thinking");
274
411
  }
275
- } else if (aiChatType === "Intelligent") {
276
- if ((result == null ? void 0 : result.content) && (result == null ? void 0 : result.category) === "task_stream_content") {
277
- aiContent += result.content;
412
+ if (item.reasoningContent) {
413
+ renderContent(item.reasoningContent, "reasoning");
278
414
  }
279
- if ((result == null ? void 0 : result.message) && (result == null ? void 0 : result.category) === "answer") {
280
- allAiContent = result.message;
415
+ if (item.content) {
416
+ renderContent(item.content, "main");
281
417
  }
282
- }
283
- }
284
- if (chatList.value.some((ele) => ele.chatId === chatId)) {
285
- enqueueRender({
286
- mainContent: aiContent,
287
- thinkContent: thinkingContent,
288
- reasoningContent
289
418
  });
290
- }
291
- if (type === 1) {
292
- scrollToBottom();
293
- }
419
+ nextTick(() => {
420
+ scrollToBottom();
421
+ });
422
+ });
423
+ });
424
+ }
425
+ },
426
+ { deep: true, immediate: true }
427
+ );
428
+ const openSSE = (userContent, insertIndex, type) => {
429
+ var _a, _b, _c, _d, _e, _f, _g;
430
+ try {
431
+ if (isUnmounting.value)
432
+ return;
433
+ isChating.value = true;
434
+ const currentAiMessage = chatList.value.find((item) => item.isChating);
435
+ if (currentAiMessage) {
436
+ currentAiMessage.isShowLike = true;
437
+ currentAiMessage.isShowCopy = true;
438
+ currentAiMessage.componentName = currentComponentName.value;
439
+ }
440
+ const chatId = (currentAiMessage == null ? void 0 : currentAiMessage.chatId) || "ai_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10);
441
+ let aiContent = (currentAiMessage == null ? void 0 : currentAiMessage.content) || "";
442
+ let reasoningContent = (currentAiMessage == null ? void 0 : currentAiMessage.reasoningContent) || "";
443
+ let allAiContent = "";
444
+ if (!currentAiMessage) {
445
+ const chatItem = {
446
+ chatId,
447
+ user: "ai",
448
+ type: "text",
449
+ isChating: true,
450
+ content: "",
451
+ thinkContent: "",
452
+ reasoningContent: "",
453
+ thinkStatus: ThinkStatus.THINKING,
454
+ thinkStartTime: Date.now(),
455
+ isShowLike: true,
456
+ isShowCopy: true,
457
+ componentName: currentComponentName.value,
458
+ typeFlag: typeFlag.value
459
+ };
460
+ if (insertIndex !== void 0 && insertIndex <= chatList.value.length) {
461
+ chatList.value.splice(insertIndex, 0, chatItem);
462
+ } else {
463
+ chatList.value.push(chatItem);
294
464
  }
295
- },
296
- ondone: () => {
297
- nextTick(() => {
298
- isChating.value = false;
465
+ }
466
+ currIndex.value = insertIndex != null ? insertIndex : chatList.value.length - 1;
467
+ const BodyConfig = (_b = (_a = moduleInfo.value) == null ? void 0 : _a.config) == null ? void 0 : _b.body();
468
+ if (!inputValue.value && ((_c = BodyConfig == null ? void 0 : BodyConfig.messages) == null ? void 0 : _c.length)) {
469
+ BodyConfig.messages[0].content = userContent;
470
+ BodyConfig.model = enableDeepThinking.value ? "deepseek-reasoner" : "deepseek-v3";
471
+ }
472
+ fetchStream.value = new FetchStream({
473
+ url: ((_e = (_d = moduleInfo.value) == null ? void 0 : _d.config) == null ? void 0 : _e.action) ? moduleInfo.value.config.action : "https://api.apiyi.com/v1/chat/completions",
474
+ requestInit: {
475
+ headers: ((_g = (_f = moduleInfo.value) == null ? void 0 : _f.config) == null ? void 0 : _g.headers) ? new Headers(moduleInfo.value.config.headers()) : new Headers({
476
+ "Content-Type": "application/json",
477
+ Authorization: "Bearer sk-fe9MtODvds8wpzz05f3417Fe3e9641C1926e6fC588425dEd"
478
+ }),
479
+ // body: moduleInfo.value?.config?.body
480
+ // ? JSON.stringify(BodyConfig as Record<string, any>)
481
+ // : JSON.stringify({
482
+ // model: enableDeepThinking.value ? 'deepseek-reasoner' : 'deepseek-v3',
483
+ // messages: [
484
+ // {
485
+ // role: 'user',
486
+ // content: userContent
487
+ // }
488
+ // ],
489
+ // stream: true
490
+ // })
491
+ body: JSON.stringify(BodyConfig)
492
+ },
493
+ onmessage: (line) => {
494
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i;
299
495
  if (isUnmounting.value)
300
496
  return;
301
- if (!isMounted.value)
302
- return;
303
- const index = chatList.value.findIndex((ele) => ele.chatId === chatId);
304
- if (index !== -1 && chatList.value[index]) {
305
- chatList.value[index].isChating = false;
306
- chatList.value[index].componentName = currentComponentName.value;
307
- if (aiChatType === "Intelligent" && allAiContent) {
308
- afterSendMessage(allAiContent);
497
+ let dataString = "";
498
+ if (line.length) {
499
+ if (line.includes("data:")) {
500
+ const match = line.match(/\{[\s\S]*\}/);
501
+ dataString = match ? match[0] : "";
502
+ } else if (line.startsWith("{") && line.endsWith("}")) {
503
+ dataString = line;
309
504
  }
310
- const waitForRenderComplete = () => {
311
- if (renderQueue.value.length === 0 && !isRendering.value) {
312
- if (chatList.value.length > 0) {
313
- console.log("done!", isChating.value, chatList.value);
505
+ }
506
+ dataString = dataString.trim();
507
+ const respoKey = (_b2 = (_a2 = moduleInfo.value) == null ? void 0 : _a2.config) == null ? void 0 : _b2.respoKey();
508
+ if (dataString && (dataString.startsWith("{") && dataString.endsWith("}") || !(respoKey == null ? void 0 : respoKey.content))) {
509
+ try {
510
+ const result = !(respoKey == null ? void 0 : respoKey.content) && moduleInfo.value ? dataString : JSON.parse(dataString);
511
+ const newAiMessage = chatList.value[currIndex.value];
512
+ const deepseekFlag = ((_c2 = moduleInfo.value) == null ? void 0 : _c2.name) === "deepseek-v3";
513
+ if (deepseekFlag || !moduleInfo.value) {
514
+ if ((_f2 = (_e2 = (_d2 = result == null ? void 0 : result.choices) == null ? void 0 : _d2[0]) == null ? void 0 : _e2.delta) == null ? void 0 : _f2.content) {
515
+ aiContent += result.choices[0].delta.content;
516
+ if ((newAiMessage == null ? void 0 : newAiMessage.thinkStatus) === ThinkStatus.THINKING) {
517
+ newAiMessage.thinkStatus = ThinkStatus.COMPLETED;
518
+ newAiMessage.thinkTime = Date.now() - (newAiMessage.thinkStartTime || Date.now());
519
+ }
314
520
  }
521
+ if ((_i = (_h = (_g2 = result == null ? void 0 : result.choices) == null ? void 0 : _g2[0]) == null ? void 0 : _h.delta) == null ? void 0 : _i.reasoning_content) {
522
+ reasoningContent += result.choices[0].delta.reasoning_content;
523
+ if (!(newAiMessage == null ? void 0 : newAiMessage.thinkStatus)) {
524
+ newAiMessage.thinkStatus = ThinkStatus.THINKING;
525
+ newAiMessage.thinkStartTime = Date.now();
526
+ }
527
+ }
528
+ allAiContent = reasoningContent + aiContent;
315
529
  } else {
316
- requestAnimationFrame(waitForRenderComplete);
530
+ if (respoKey && result && result[respoKey.content] && (result[respoKey.category] === respoKey.contentCategory || !result[respoKey.category])) {
531
+ aiContent += result[respoKey.content];
532
+ }
533
+ if (result && result[respoKey.category] === "done") {
534
+ resultItem.value = result;
535
+ }
536
+ if (result && result[respoKey.category] === "error") {
537
+ const errorMessage = result[respoKey.all];
538
+ const currentAiMessage2 = chatList.value[currIndex.value];
539
+ if (currentAiMessage2) {
540
+ currentAiMessage2.content = `<div style="color: red; display: flex; align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
541
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 15.5C11.6421 15.5 15 12.1421 15 8C15 3.85786 11.6421 0.5 7.5 0.5C3.35786 0.5 0 3.85786 0 8C0 12.1421 3.35786 15.5 7.5 15.5ZM9.7539 4.9506L10.5494 5.7461L8.2951 8.0001L10.5494 10.2539L9.7539 11.0494L7.5001 8.7951L5.2461 11.0494L4.4506 10.2539L6.7051 8.0001L4.4506 5.7461L5.2461 4.9506L7.5001 7.2051L9.7539 4.9506Z" fill="#F93920"/>
542
+ </svg>${errorMessage}</div>`;
543
+ currentAiMessage2.isChating = false;
544
+ currentAiMessage2.componentName = "";
545
+ currentAiMessage2.isShowLike = false;
546
+ currentAiMessage2.isShowCopy = false;
547
+ currentAiMessage2.isError = true;
548
+ nextTick(() => {
549
+ renderContent(currentAiMessage2.content || "", "main");
550
+ emit("sendMessage", [...chatList.value]);
551
+ });
552
+ }
553
+ }
554
+ if (aiContent || reasoningContent) {
555
+ allAiContent = aiContent + reasoningContent;
556
+ }
557
+ if (respoKey && result && result[respoKey.all] && result[respoKey.category] === respoKey.allCategory) {
558
+ allAiContent = result[respoKey.all];
559
+ }
560
+ if (respoKey && result && typeof result === "string" && result !== "[DONE]") {
561
+ aiContent += result;
562
+ }
563
+ if (respoKey && result && typeof result === "string" && result === "[DONE]") {
564
+ const index = chatList.value.findIndex((ele) => ele.chatId === chatId);
565
+ if (index !== -1 && chatList.value[index]) {
566
+ isChating.value = false;
567
+ chatList.value[index].isChating = false;
568
+ emit("sendMessage", JSON.parse(JSON.stringify(chatList.value)));
569
+ }
570
+ }
317
571
  }
318
- };
319
- waitForRenderComplete();
320
- }
321
- });
322
- },
323
- onabort: () => {
324
- isChating.value = false;
325
- if (isUnmounting.value)
326
- return;
327
- const currentAiMessage2 = chatList.value[currIndex.value];
328
- const hasContent = currentAiMessage2 && (currentAiMessage2.content || currentAiMessage2.thinkContent || currentAiMessage2.reasoningContent);
329
- if (currentAiMessage2) {
330
- if (currentAiMessage2.thinkStatus === "thinking") {
331
- currentAiMessage2.thinkStatus = "stopped";
332
- currentAiMessage2.thinkTime = Date.now() - (currentAiMessage2.thinkStartTime || Date.now());
333
- }
334
- if (!hasContent) {
335
- const userMessageIndex = currIndex.value - 1;
336
- if (userMessageIndex >= 0 && chatList.value[userMessageIndex].user === "u") {
337
- chatList.value.splice(currIndex.value, 1);
338
- chatList.value.splice(userMessageIndex, 1);
339
- } else {
340
- chatList.value.splice(currIndex.value, 1);
572
+ if (chatList.value.some((ele) => ele.chatId === chatId)) {
573
+ enqueueRender({
574
+ mainContent: aiContent,
575
+ thinkContent: "",
576
+ reasoningContent
577
+ });
578
+ }
579
+ if (type === 1) {
580
+ nextTick(() => {
581
+ renderContent(aiContent, "main");
582
+ renderContent(reasoningContent, "reasoning");
583
+ nextTick(() => {
584
+ scrollToBottom();
585
+ });
586
+ });
587
+ }
588
+ } catch (error) {
589
+ console.error("\u89E3\u6790SSE\u6D88\u606F\u5931\u8D25:", error);
341
590
  }
342
- } else {
343
- const updatedAiMessage = {
344
- ...currentAiMessage2,
345
- isChating: false,
346
- content: currentAiMessage2.content ? currentAiMessage2.content + "\u3002\u3002\u3002" : "",
347
- thinkContent: currentAiMessage2.thinkContent ? currentAiMessage2.thinkContent + "\u3002\u3002\u3002" : void 0,
348
- reasoningContent: currentAiMessage2.reasoningContent ? currentAiMessage2.reasoningContent + "\u3002\u3002\u3002" : void 0,
349
- thinkStatus: currentAiMessage2.thinkStatus
350
- };
351
- chatList.value.splice(currIndex.value, 1, updatedAiMessage);
352
- nextTick(() => {
353
- renderContent(updatedAiMessage.thinkContent || "", "thinking");
354
- renderContent(updatedAiMessage.reasoningContent || "", "reasoning");
355
- renderContent(updatedAiMessage.content || "", "main");
356
- emit("sendMessage", [...chatList.value]);
357
- });
358
- return;
359
591
  }
360
- }
361
- if (chatList.value.length > 0) {
362
- emit("sendMessage", [...chatList.value]);
363
- }
364
- },
365
- // 添加onerror回调函数来捕获异常
366
- onerror: (response) => {
367
- if (isUnmounting.value)
368
- return;
369
- isChating.value = false;
370
- let errorMessage = "\u672A\u77E5\u9519\u8BEF";
371
- if (response instanceof Error) {
372
- console.error("API\u8BF7\u6C42\u9519\u8BEF:", response);
373
- errorMessage = response.message;
374
- } else if (response instanceof Response) {
375
- console.error("API\u8BF7\u6C42\u9519\u8BEF, \u54CD\u5E94\u72B6\u6001:", response.status, response.statusText);
376
- errorMessage = `\u8BF7\u6C42\u5931\u8D25: ${response.status} ${response.statusText}`;
377
- }
378
- const currentAiMessage2 = chatList.value[currIndex.value];
379
- if (currentAiMessage2) {
380
- currentAiMessage2.content = `<div style="color: red; display: flex; align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
381
- <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 15.5C11.6421 15.5 15 12.1421 15 8C15 3.85786 11.6421 0.5 7.5 0.5C3.35786 0.5 0 3.85786 0 8C0 12.1421 3.35786 15.5 7.5 15.5ZM9.7539 4.9506L10.5494 5.7461L8.2951 8.0001L10.5494 10.2539L9.7539 11.0494L7.5001 8.7951L5.2461 11.0494L4.4506 10.2539L6.7051 8.0001L4.4506 5.7461L5.2461 4.9506L7.5001 7.2051L9.7539 4.9506Z" fill="#F93920"/>
382
- </svg>${errorMessage}</div>`;
383
- currentAiMessage2.isChating = false;
384
- currentAiMessage2.componentName = "";
385
- currentAiMessage2.isShowLike = false;
386
- currentAiMessage2.isShowCopy = false;
592
+ },
593
+ ondone: () => {
387
594
  nextTick(() => {
388
- renderContent(currentAiMessage2.content || "", "main");
389
- emit("sendMessage", [...chatList.value]);
595
+ isChating.value = false;
596
+ if (isUnmounting.value || !isMounted.value)
597
+ return;
598
+ const index = chatList.value.findIndex((ele) => ele.chatId === chatId);
599
+ if (index !== -1 && chatList.value[index]) {
600
+ chatList.value[index].isChating = false;
601
+ chatList.value[index].componentName = currentComponentName.value;
602
+ chatList.value[index].html = markdownToHtml(allAiContent);
603
+ if (allAiContent) {
604
+ if (resultItem.value) {
605
+ resultItem.value.allAiContent = allAiContent;
606
+ afterSend(resultItem.value);
607
+ } else {
608
+ afterSend({ allAiContent });
609
+ }
610
+ }
611
+ const waitForRenderComplete = () => {
612
+ if (renderQueue.value.length === 0 && !isRendering.value) {
613
+ if (chatList.value.length > 0) {
614
+ emit("sendMessage", JSON.parse(JSON.stringify(chatList.value)));
615
+ }
616
+ } else {
617
+ requestAnimationFrame(waitForRenderComplete);
618
+ }
619
+ };
620
+ waitForRenderComplete();
621
+ }
390
622
  });
623
+ },
624
+ onabort: () => {
625
+ handleAbort();
626
+ },
627
+ onerror: (response) => {
628
+ handleError(response);
629
+ }
630
+ });
631
+ } catch (error) {
632
+ console.error("OpenSSE\u9519\u8BEF:", error);
633
+ isChating.value = false;
634
+ chatList.value[currIndex.value].content = `<div style="color: red; display: flex; align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
635
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 15.5C11.6421 15.5 15 12.1421 15 8C15 3.85786 11.6421 0.5 7.5 0.5C3.35786 0.5 0 3.85786 0 8C0 12.1421 3.35786 15.5 7.5 15.5ZM9.7539 4.9506L10.5494 5.7461L8.2951 8.0001L10.5494 10.2539L9.7539 11.0494L7.5001 8.7951L5.2461 11.0494L4.4506 10.2539L6.7051 8.0001L4.4506 5.7461L5.2461 4.9506L7.5001 7.2051L9.7539 4.9506Z" fill="#F93920"/>
636
+ </svg>${"\u8BF7\u6C42\u5931\u8D25"}</div>`;
637
+ chatList.value[currIndex.value].isChating = false;
638
+ chatList.value[currIndex.value].isShowCopy = false;
639
+ chatList.value[currIndex.value].isShowLike = false;
640
+ showToast("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", "error", 3e3);
641
+ }
642
+ };
643
+ const handleAbort = () => {
644
+ isChating.value = false;
645
+ if (isUnmounting.value)
646
+ return;
647
+ const currentAiMessage = chatList.value[currIndex.value];
648
+ stop(chatList.value[currIndex.value], currIndex.value);
649
+ const hasContent = currentAiMessage && (currentAiMessage.content || currentAiMessage.thinkContent || currentAiMessage.reasoningContent);
650
+ if (currentAiMessage) {
651
+ if (currentAiMessage.thinkStatus === ThinkStatus.THINKING) {
652
+ currentAiMessage.thinkStatus = ThinkStatus.STOPPED;
653
+ currentAiMessage.thinkTime = Date.now() - (currentAiMessage.thinkStartTime || Date.now());
654
+ }
655
+ if (!hasContent) {
656
+ const userMessageIndex = currIndex.value - 1;
657
+ if (userMessageIndex >= 0 && chatList.value[userMessageIndex].user === "u") {
658
+ chatList.value.splice(currIndex.value, 1);
659
+ chatList.value.splice(userMessageIndex, 1);
391
660
  } else {
392
- showToast(errorMessage, "error", 3e3);
393
- emit("sendMessage", [...chatList.value]);
661
+ chatList.value.splice(currIndex.value, 1);
394
662
  }
663
+ } else {
664
+ const updatedAiMessage = {
665
+ ...currentAiMessage,
666
+ isChating: false,
667
+ content: currentAiMessage.content ? currentAiMessage.content + "..." : "",
668
+ thinkContent: currentAiMessage.thinkContent ? currentAiMessage.thinkContent + "..." : void 0,
669
+ reasoningContent: currentAiMessage.reasoningContent ? currentAiMessage.reasoningContent + "..." : void 0,
670
+ thinkStatus: currentAiMessage.thinkStatus,
671
+ stop: true
672
+ };
673
+ chatList.value.splice(currIndex.value, 1, updatedAiMessage);
674
+ nextTick(() => {
675
+ renderContent(updatedAiMessage.thinkContent || "", "thinking");
676
+ renderContent(updatedAiMessage.reasoningContent || "", "reasoning");
677
+ renderContent(updatedAiMessage.content || "", "main");
678
+ emit("sendMessage", [...chatList.value]);
679
+ });
680
+ return;
395
681
  }
396
- });
682
+ }
683
+ if (chatList.value.length > 0) {
684
+ emit("sendMessage", [...chatList.value]);
685
+ }
686
+ };
687
+ const handleError = (response) => {
688
+ if (isUnmounting.value)
689
+ return;
690
+ isChating.value = false;
691
+ let errorMessage = "\u672A\u77E5\u9519\u8BEF";
692
+ if (response instanceof Error) {
693
+ console.error("API\u8BF7\u6C42\u9519\u8BEF:", response);
694
+ errorMessage = response.message;
695
+ } else if (response instanceof Response) {
696
+ console.error("API\u8BF7\u6C42\u9519\u8BEF, \u54CD\u5E94\u72B6\u6001:", response.status, response.statusText);
697
+ errorMessage = `\u8BF7\u6C42\u5931\u8D25: ${response.status} ${response.statusText}`;
698
+ }
699
+ const currentAiMessage = chatList.value[currIndex.value];
700
+ if (currentAiMessage) {
701
+ currentAiMessage.content = `<div style="color: red; display: flex; align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
702
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 15.5C11.6421 15.5 15 12.1421 15 8C15 3.85786 11.6421 0.5 7.5 0.5C3.35786 0.5 0 3.85786 0 8C0 12.1421 3.35786 15.5 7.5 15.5ZM9.7539 4.9506L10.5494 5.7461L8.2951 8.0001L10.5494 10.2539L9.7539 11.0494L7.5001 8.7951L5.2461 11.0494L4.4506 10.2539L6.7051 8.0001L4.4506 5.7461L5.2461 4.9506L7.5001 7.2051L9.7539 4.9506Z" fill="#F93920"/>
703
+ </svg>${errorMessage}</div>`;
704
+ currentAiMessage.isChating = false;
705
+ currentAiMessage.componentName = "";
706
+ currentAiMessage.isShowLike = false;
707
+ currentAiMessage.isShowCopy = false;
708
+ currentAiMessage.isError = true;
709
+ nextTick(() => {
710
+ renderContent(currentAiMessage.content || "", "main");
711
+ emit("sendMessage", [...chatList.value]);
712
+ });
713
+ } else {
714
+ showToast(errorMessage, "error", 3e3);
715
+ emit("sendMessage", [...chatList.value]);
716
+ }
397
717
  };
398
718
  const enqueueRender = (data) => {
399
719
  if (isUnmounting.value || !isMounted.value)
@@ -424,22 +744,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
424
744
  processRenderQueue();
425
745
  });
426
746
  };
427
- onBeforeUnmount(() => {
428
- if (!isUnmounting.value) {
429
- isUnmounting.value = true;
430
- if (fetchStream.value) {
431
- fetchStream.value.abort();
432
- }
433
- if (TouchChatRobot.value) {
434
- TouchChatRobot.value.close();
435
- TouchChatRobot.value = void 0;
436
- }
437
- isMounted.value = false;
438
- renderQueue.value = [];
439
- htmlContentRef.value = [];
440
- thinkingContentRef.value = [];
441
- }
442
- });
443
747
  const formatMarkdown = (data) => {
444
748
  if (!isMounted.value)
445
749
  return;
@@ -481,16 +785,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
481
785
  const pre = codeBlock.parentElement;
482
786
  if (pre) {
483
787
  const copyBtn = document.createElement("button");
484
- copyBtn.className = "copy-code-btn";
485
- copyBtn.textContent = "\u590D\u5236";
788
+ copyBtn.className = "touchchat-code-copy";
486
789
  copyBtn.addEventListener("click", () => {
487
790
  const code = codeBlock.textContent || "";
488
791
  navigator.clipboard.writeText(code).then(() => {
489
792
  showToast("\u590D\u5236\u6210\u529F", "info", 2e3);
490
793
  copyBtn.textContent = "\u5DF2\u590D\u5236";
491
794
  setTimeout(() => {
492
- copyBtn.textContent = "\u590D\u5236";
795
+ copyBtn.textContent = "";
493
796
  }, 2e3);
797
+ }).catch((err) => {
798
+ console.error("\u590D\u5236\u5931\u8D25:", err);
799
+ showToast("\u590D\u5236\u5931\u8D25", "error", 2e3);
494
800
  });
495
801
  });
496
802
  pre.style.position = "relative";
@@ -527,24 +833,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
527
833
  container.innerHTML = processors[type](content || "");
528
834
  attachCopyButtons(container);
529
835
  };
530
- const sendMessage = (item) => {
531
- inputValue.value = item.name || "";
532
- handleBeforeSend();
836
+ const sendMessage = (content, fileList, auto, type) => {
837
+ inputValue.value = content || "";
838
+ handleBeforeSend(content, fileList, auto, type);
533
839
  };
534
- const sendMessageInject = inject("handleSend", () => {
535
- console.warn("\u672A\u63D0\u4F9BhandleSend\u51FD\u6570");
536
- });
537
- const beforeSend = inject("beforeSend", () => ({
538
- result: true
539
- }));
540
- const handleBeforeSend = () => {
840
+ const handleBeforeSend = (content, fileList, auto, type) => {
841
+ fileData.value = fileList || [];
541
842
  if (beforeSend) {
542
843
  const fn = beforeSend();
543
844
  if (fn && typeof fn.then === "function") {
544
845
  Promise.resolve(fn).then((res) => {
545
846
  if (res.result) {
546
847
  currentComponentName.value = res.componentName || "";
547
- handleSend();
848
+ handleSend(content, fileList, auto, type);
548
849
  }
549
850
  }).catch((error) => {
550
851
  console.log(error);
@@ -552,44 +853,153 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
552
853
  } else {
553
854
  if (fn.result) {
554
855
  currentComponentName.value = fn.componentName || "";
555
- handleSend();
856
+ handleSend(content, fileList, auto, type);
556
857
  }
557
858
  }
558
859
  }
559
860
  };
560
- const handleSend = () => {
561
- var _a;
562
- if (isChating.value || !inputValue.value.trim())
563
- return;
564
- const userChatId = "user_" + crypto.randomUUID().replace(/-/gi, "");
565
- const userMessage = {
566
- chatId: userChatId,
567
- // 添加唯一chatId
568
- user: "u",
569
- type: "text",
570
- content: inputValue.value
571
- // isShowAvatar: true,
572
- // avatar: props.userAvatar,
573
- };
574
- sendMessageInject(inputValue.value);
575
- chatList.value.push(userMessage);
576
- const index = chatList.value.length - 1;
577
- nextTick(() => {
578
- renderContent(userMessage.content, "main", index);
579
- scrollToBottom();
580
- });
581
- if (connectionType === "SSE") {
582
- openSSE(inputValue.value, index + 1, 1);
583
- } else if (connectionType === "Websocket") {
584
- let chatInfo = [
585
- {
861
+ const handleSend = (content, fileList, auto, type) => {
862
+ emit("beforeSendMessage");
863
+ sendMessageInject(inputValue.value, fileData.value);
864
+ typeFlag.value = type || "";
865
+ if (scripts && Array.isArray(scripts) && scripts.length > 0) {
866
+ const userInput = content ? content.replace(/\n/g, "") : inputValue.value.replace(/\n/g, "").trim();
867
+ if (!userInput && !(fileList == null ? void 0 : fileList.length) && auto)
868
+ return;
869
+ const userChatId = `user_${Date.now()}`;
870
+ const userMessage = {
871
+ chatId: userChatId,
872
+ user: "u",
873
+ type: "text",
874
+ content: userInput,
875
+ isShowLike: false,
876
+ isShowCopy: true,
877
+ files: fileList || [],
878
+ typeFlag: type,
879
+ auto: auto || false
880
+ };
881
+ chatList.value.push(userMessage);
882
+ emit("sendMessage", [...chatList.value]);
883
+ nextTick(() => {
884
+ renderContent(userMessage.content, "main", chatList.value.length - 1);
885
+ nextTick(() => {
886
+ scrollToBottom();
887
+ });
888
+ });
889
+ const result = findMatchingScriptContent(userInput);
890
+ if (result && result.responses.length > 0) {
891
+ const newAiMessages = [];
892
+ result.responses.forEach((response, idx) => {
893
+ const pauseMarker = Array.isArray(response.data) ? "\u200B".repeat(20) : "";
894
+ const content2 = Array.isArray(response.data) ? response.data.join(pauseMarker) : response.data;
895
+ const aiChatId = `ai_${Date.now()}_${idx}`;
896
+ const aiMessage = {
897
+ chatId: aiChatId,
898
+ user: "ai",
899
+ type: "text",
900
+ content: content2 || "",
901
+ // componentName: response.needSequenceProcessing ? '' : response.type || '',
902
+ componentName: response.type || "",
903
+ isShowLike: true,
904
+ isShowCopy: true,
905
+ needSequenceType: response.type || "",
906
+ needSequenceProcessing: response.needSequenceProcessing || false,
907
+ typeFlag: type
908
+ };
909
+ newAiMessages.push(aiMessage);
910
+ });
911
+ let messageQueue = [...newAiMessages];
912
+ let isProcessing = false;
913
+ let currentMessage = null;
914
+ const processNextMessage = () => {
915
+ if (messageQueue.length > 0 && !isProcessing) {
916
+ isProcessing = true;
917
+ const nextMessage = messageQueue.shift();
918
+ if (nextMessage) {
919
+ currentMessage = nextMessage;
920
+ console.log("\u5F00\u59CB\u5904\u7406\u6D88\u606F:", currentMessage.chatId);
921
+ chatList.value.push(currentMessage);
922
+ emit("sendMessage", [...chatList.value]);
923
+ const msgIndex = chatList.value.length - 1;
924
+ nextTick(() => {
925
+ renderContent((currentMessage == null ? void 0 : currentMessage.content) || "", "main", msgIndex);
926
+ nextTick(() => {
927
+ scrollToBottom();
928
+ if (currentMessage) {
929
+ const messageToProcess = {
930
+ ...currentMessage,
931
+ needSequenceProcessing: true
932
+ };
933
+ simulateStreamOutput(msgIndex, messageToProcess);
934
+ }
935
+ });
936
+ });
937
+ }
938
+ }
939
+ };
940
+ const handleMessageComplete = (chatId) => {
941
+ if (currentMessage && currentMessage.chatId === chatId) {
942
+ console.log("\u5E8F\u5217\u6D88\u606F\u5904\u7406\u5B8C\u6210\uFF0C\u5904\u7406\u4E0B\u4E00\u6761:", chatId);
943
+ currentMessage = null;
944
+ isProcessing = false;
945
+ processNextMessage();
946
+ }
947
+ };
948
+ const processorObj = {
949
+ messageQueue,
950
+ isProcessing,
951
+ currentMessage,
952
+ processNextMessage,
953
+ handleMessageComplete
954
+ };
955
+ currentMessageProcessor.value = processorObj;
956
+ processNextMessage();
957
+ } else {
958
+ const defaultAiChatId = `ai_${Date.now()}`;
959
+ const defaultAiMessage = {
960
+ chatId: defaultAiChatId,
961
+ user: "ai",
586
962
  type: "text",
587
- msgContent: inputValue.value
588
- }
589
- ];
590
- (_a = TouchChatRobot.value) == null ? void 0 : _a.send(chatInfo);
963
+ content: unmatchText,
964
+ isShowLike: true,
965
+ isShowCopy: true
966
+ };
967
+ chatList.value.push(defaultAiMessage);
968
+ emit("sendMessage", [...chatList.value]);
969
+ nextTick(() => {
970
+ const msgIndex = chatList.value.findIndex((item) => item.chatId === defaultAiChatId);
971
+ if (msgIndex !== -1) {
972
+ renderContent(defaultAiMessage.content, "main", msgIndex);
973
+ nextTick(() => {
974
+ scrollToBottom();
975
+ });
976
+ }
977
+ });
978
+ }
979
+ inputValue.value = "";
980
+ } else {
981
+ if (content) {
982
+ inputValue.value = content;
983
+ }
984
+ if ((isChating.value || !inputValue.value.trim() && !(fileList == null ? void 0 : fileList.length)) && !auto)
985
+ return;
986
+ const userChatId = "user_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10);
987
+ const userMessage = {
988
+ chatId: userChatId,
989
+ user: "u",
990
+ type: "text",
991
+ content: inputValue.value,
992
+ files: fileList || []
993
+ };
994
+ chatList.value.push(userMessage);
995
+ const index = chatList.value.length - 1;
996
+ nextTick(() => {
997
+ renderContent(userMessage.content, "main", index);
998
+ scrollToBottom();
999
+ });
1000
+ openSSE(inputValue.value, index + 1, 1);
1001
+ inputValue.value = "";
591
1002
  }
592
- inputValue.value = "";
593
1003
  };
594
1004
  const handleStop = () => {
595
1005
  var _a, _b;
@@ -627,33 +1037,72 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
627
1037
  }
628
1038
  isChating.value = false;
629
1039
  };
630
- const scrollToBottom = throttle(500, () => {
631
- const endEl = document.querySelector(".to-chat-item:last-child");
632
- if (endEl == null ? void 0 : endEl.scrollIntoView) {
633
- endEl.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" });
634
- }
635
- });
636
- const handleMessageAction = (action2, index) => {
1040
+ const scrollObserver = ref(null);
1041
+ const scrollToBottom = () => {
1042
+ if (!isMounted.value || isUnmounting.value || !chatContainer.value)
1043
+ return;
1044
+ nextTick(() => {
1045
+ requestAnimationFrame(() => {
1046
+ const chatContainerEl = chatContainer.value;
1047
+ const lastMessage = chatContainerEl.querySelector(".touchchat-dialog-content > *:last-child");
1048
+ if (lastMessage) {
1049
+ const { height: messageHeight } = lastMessage.getBoundingClientRect();
1050
+ const containerHeight = chatContainerEl.clientHeight;
1051
+ const messageBottom = lastMessage.offsetTop + lastMessage.offsetHeight;
1052
+ if (messageHeight > containerHeight) {
1053
+ chatContainerEl.scrollTop = lastMessage.offsetTop;
1054
+ } else {
1055
+ chatContainerEl.scrollTop = messageBottom - containerHeight;
1056
+ }
1057
+ if (scrollObserver.value) {
1058
+ scrollObserver.value.disconnect();
1059
+ }
1060
+ scrollObserver.value = new MutationObserver(() => {
1061
+ const updatedMessageBottom = lastMessage.offsetTop + lastMessage.offsetHeight;
1062
+ chatContainerEl.scrollTop = Math.max(updatedMessageBottom - containerHeight, chatContainerEl.scrollTop);
1063
+ });
1064
+ scrollObserver.value.observe(lastMessage, {
1065
+ childList: true,
1066
+ subtree: true,
1067
+ characterData: true,
1068
+ attributes: true,
1069
+ // 新增监听属性变化(如高度)
1070
+ attributeFilter: ["style", "class"]
1071
+ // 只监听样式相关属性
1072
+ });
1073
+ } else {
1074
+ chatContainerEl.scrollTo({
1075
+ top: chatContainerEl.scrollHeight,
1076
+ behavior: "smooth"
1077
+ });
1078
+ }
1079
+ });
1080
+ });
1081
+ };
1082
+ const handleMessageAction = (action, index) => {
637
1083
  const message = chatList.value[index];
638
1084
  if (!message)
639
1085
  return;
640
- switch (action2) {
641
- case "copy":
642
- navigator.clipboard.writeText(message.content).then(() => {
1086
+ switch (action) {
1087
+ case MessageAction.COPY: {
1088
+ const textContent = message.content;
1089
+ navigator.clipboard.writeText(textContent).then(() => {
643
1090
  showToast("\u590D\u5236\u6210\u529F", "info");
1091
+ }).catch((err) => {
1092
+ console.error("\u590D\u5236\u5931\u8D25:", err);
1093
+ showToast("\u590D\u5236\u5931\u8D25", "error");
644
1094
  });
645
1095
  break;
646
- case "edit":
647
- if (message) {
648
- message.isEditing = true;
649
- message.editContent = message.content;
650
- }
1096
+ }
1097
+ case MessageAction.EDIT:
1098
+ message.isEditing = true;
1099
+ message.editContent = message.content;
651
1100
  break;
652
- case "delete":
1101
+ case MessageAction.DELETE:
653
1102
  messageUtils.deleteMessageChain(index);
654
1103
  emit("sendMessage", chatList.value);
655
1104
  break;
656
- case "retry": {
1105
+ case MessageAction.RETRY: {
657
1106
  const aiMessage = chatList.value[index];
658
1107
  const userMessageIndex = index - 1;
659
1108
  const userMessage = chatList.value[userMessageIndex];
@@ -666,13 +1115,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
666
1115
  isLiked: false,
667
1116
  isDisliked: false,
668
1117
  isChating: true,
669
- // 保留其他必要属性
670
1118
  chatId: aiMessage.chatId,
671
1119
  user: aiMessage.user,
672
1120
  type: aiMessage.type,
673
- // isShowAvatar: aiMessage.isShowAvatar,
674
- // avatar: aiMessage.avatar,
675
- thinkStatus: "completed",
1121
+ thinkStatus: ThinkStatus.COMPLETED,
676
1122
  thinkStartTime: 0,
677
1123
  thinkEndTime: 0
678
1124
  };
@@ -691,13 +1137,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
691
1137
  }
692
1138
  break;
693
1139
  }
694
- case "like":
1140
+ case MessageAction.LIKE:
695
1141
  messageUtils.updateMessage(index, {
696
1142
  isLiked: true,
697
1143
  isDisliked: false
698
1144
  });
699
1145
  break;
700
- case "dislike":
1146
+ case MessageAction.DISLIKE:
701
1147
  messageUtils.updateMessage(index, {
702
1148
  isLiked: false,
703
1149
  isDisliked: true
@@ -705,45 +1151,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
705
1151
  break;
706
1152
  }
707
1153
  };
708
- const messageUtils = {
709
- // 更新消息内容
710
- updateMessage: (index, updates) => {
711
- if (index < 0 || index >= chatList.value.length)
712
- return;
713
- chatList.value.splice(index, 1, { ...chatList.value[index], ...updates });
714
- },
715
- // 删除消息及其后续AI回复
716
- deleteMessageChain: (index) => {
717
- if (index < 0 || index >= chatList.value.length)
718
- return;
719
- const nextIndex = index + 1;
720
- const deleteCount = nextIndex < chatList.value.length && chatList.value[nextIndex].user === "ai" ? 2 : 1;
721
- chatList.value.splice(index, deleteCount);
722
- },
723
- // 创建标准化消息对象
724
- createStandardMessage: (data) => {
725
- var _a, _b, _c, _d, _e;
726
- return {
727
- chatId: data.chatId || "ai_" + crypto.randomUUID().replace(/-/gi, ""),
728
- user: data.user || "ai",
729
- type: data.type || "text",
730
- content: data.content || "",
731
- // isShowAvatar: data.isShowAvatar ?? true,
732
- // avatar: data.avatar || (data.user === 'u' ? props.userAvatar : props.aiAvatar),
733
- isChating: (_a = data.isChating) != null ? _a : false,
734
- thinkContent: data.thinkContent || "",
735
- reasoningContent: data.reasoningContent || "",
736
- isLiked: (_b = data.isLiked) != null ? _b : false,
737
- isDisliked: (_c = data.isDisliked) != null ? _c : false,
738
- isEditing: (_d = data.isEditing) != null ? _d : false,
739
- editContent: (_e = data.editContent) != null ? _e : ""
740
- };
741
- }
742
- };
743
- onMounted(() => {
744
- init();
745
- isMounted.value = true;
746
- });
747
1154
  const saveEdit = (index, newContent) => {
748
1155
  const message = chatList.value[index];
749
1156
  if (!message || !message.editContent)
@@ -773,92 +1180,239 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
773
1180
  renderContent(message.content, "main", index);
774
1181
  });
775
1182
  };
1183
+ onMounted(async () => {
1184
+ if (isMounted.value) {
1185
+ init();
1186
+ }
1187
+ isMounted.value = true;
1188
+ watch(
1189
+ () => scripts,
1190
+ () => {
1191
+ init();
1192
+ },
1193
+ { deep: true, immediate: false }
1194
+ );
1195
+ });
1196
+ onBeforeUnmount(() => {
1197
+ if (!isUnmounting.value) {
1198
+ isUnmounting.value = true;
1199
+ if (fetchStream.value) {
1200
+ fetchStream.value.abort();
1201
+ fetchStream.value = null;
1202
+ }
1203
+ if (TouchChatRobot.value) {
1204
+ TouchChatRobot.value.close();
1205
+ TouchChatRobot.value = void 0;
1206
+ }
1207
+ isMounted.value = false;
1208
+ renderQueue.value = [];
1209
+ htmlContentRef.value = [];
1210
+ thinkingContentRef.value = [];
1211
+ reasoningContentRef.value = [];
1212
+ }
1213
+ if (scrollObserver.value) {
1214
+ scrollObserver.value.disconnect();
1215
+ scrollObserver.value = null;
1216
+ }
1217
+ });
1218
+ const handleDragEnter = () => {
1219
+ if (ChatInputRef.value) {
1220
+ ChatInputRef.value.openMarkLayer();
1221
+ }
1222
+ isDragging.value = true;
1223
+ };
1224
+ const handleDragLeave = (e) => {
1225
+ const rect = e.target.getBoundingClientRect();
1226
+ if (e.clientX < rect.left || e.clientX > rect.right || e.clientY < rect.top || e.clientY > rect.bottom) {
1227
+ isDragging.value = false;
1228
+ }
1229
+ };
1230
+ const handleDrop = async (e) => {
1231
+ var _a;
1232
+ isDragging.value = false;
1233
+ const files = (_a = e.dataTransfer) == null ? void 0 : _a.files;
1234
+ if (files && files.length > 0) {
1235
+ const fileList = await Promise.all(
1236
+ Array.from(files).map(async (file) => {
1237
+ let base64 = "";
1238
+ if (file.type.startsWith("image/")) {
1239
+ base64 = await new Promise((resolve) => {
1240
+ const reader = new FileReader();
1241
+ reader.onload = (e2) => {
1242
+ var _a2;
1243
+ resolve((_a2 = e2.target) == null ? void 0 : _a2.result);
1244
+ };
1245
+ reader.readAsDataURL(file);
1246
+ });
1247
+ }
1248
+ return {
1249
+ // id: crypto.randomUUID().replace(/-/gi, ''),
1250
+ id: Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10),
1251
+ file,
1252
+ name: file.name,
1253
+ fileType: file.type,
1254
+ fileSize: file.size,
1255
+ lastModified: file.lastModified,
1256
+ preview: URL.createObjectURL(file),
1257
+ base64
1258
+ };
1259
+ })
1260
+ );
1261
+ if (ChatInputRef.value) {
1262
+ ChatInputRef.value.handlePaste(fileList, "drop");
1263
+ }
1264
+ }
1265
+ if (ChatInputRef.value) {
1266
+ ChatInputRef.value.colseMarkLayer();
1267
+ }
1268
+ };
1269
+ const itemUploadFile = (item, index) => {
1270
+ console.log("itemUploadFile", item, index);
1271
+ if (ChatInputRef.value) {
1272
+ ChatInputRef.value.itemUploadFile(index, "drop");
1273
+ }
1274
+ };
1275
+ provide("touchchat", {
1276
+ send: sendMessage,
1277
+ retry: handleMessageAction
1278
+ });
1279
+ __expose({
1280
+ send: (value, fileList, auto, type) => {
1281
+ handleSend(value, fileList, auto, type);
1282
+ },
1283
+ handleAgentSelect,
1284
+ retry: (index) => {
1285
+ handleMessageAction(MessageAction.RETRY, index);
1286
+ },
1287
+ update
1288
+ });
776
1289
  return (_ctx, _cache) => {
777
- return openBlock(), createElementBlock(
778
- Fragment,
779
- null,
780
- [
781
- createElementVNode(
782
- "div",
783
- {
784
- ref_key: "chatContainer",
785
- ref: chatContainer,
786
- class: "chat-container"
787
- },
788
- [
789
- createCommentVNode(" <span>chatList === {{chatList}}</span> "),
790
- chatList.value.length === 0 ? (openBlock(), createElementBlock("div", {
791
- key: 0,
792
- class: "hello-chat-content"
793
- }, [
794
- renderSlot(_ctx.$slots, "welcome", {}, () => [
795
- createVNode(HelloChat, { onSendMessage: sendMessage })
796
- ])
797
- ])) : createCommentVNode("v-if", true),
798
- createCommentVNode(" Chat messages list "),
799
- createElementVNode("div", { class: "chat-messages" }, [
800
- (openBlock(true), createElementBlock(
801
- Fragment,
802
- null,
803
- renderList(chatList.value, (item, index) => {
804
- return openBlock(), createElementBlock(
805
- Fragment,
806
- {
807
- key: item.chatId
808
- },
809
- [
810
- item.user === "u" ? (openBlock(), createBlock(UserMessage, {
811
- key: 0,
812
- item,
813
- index,
814
- onCopy: ($event) => handleMessageAction("copy", index),
815
- onEdit: ($event) => handleMessageAction("edit", index),
816
- onDelete: ($event) => handleMessageAction("delete", index),
817
- onSaveEdit: saveEdit,
818
- onCancelEdit: ($event) => cancelEdit(index)
819
- }, {
820
- userAvatar: withCtx(() => [
821
- renderSlot(_ctx.$slots, "userAvatar")
822
- ]),
823
- _: 2
824
- /* DYNAMIC */
825
- }, 1032, ["item", "index", "onCopy", "onEdit", "onDelete", "onCancelEdit"])) : (openBlock(), createBlock(AiMessage, {
826
- key: 1,
827
- item,
828
- index,
829
- "enable-deep-thinking": enableDeepThinking.value,
830
- onCopy: ($event) => handleMessageAction("copy", index),
831
- onRetry: ($event) => handleMessageAction("retry", index),
832
- onLike: ($event) => handleMessageAction("like", index),
833
- onDislike: ($event) => handleMessageAction("dislike", index),
834
- onContentRendered: attachCopyButtons
835
- }, {
836
- aiMessageContent: withCtx(() => [
837
- renderSlot(_ctx.$slots, "aiMessageContent", {
838
- item,
839
- index
840
- })
841
- ]),
842
- aiAvatar: withCtx(() => [
843
- renderSlot(_ctx.$slots, "aiAvatar")
844
- ]),
845
- _: 2
846
- /* DYNAMIC */
847
- }, 1032, ["item", "index", "enable-deep-thinking", "onCopy", "onRetry", "onLike", "onDislike"]))
848
- ],
849
- 64
850
- /* STABLE_FRAGMENT */
851
- );
852
- }),
853
- 128
854
- /* KEYED_FRAGMENT */
855
- ))
1290
+ return openBlock(), createElementBlock("div", {
1291
+ class: "touchchat-main",
1292
+ onDragover: withModifiers(() => {
1293
+ }, ["prevent"]),
1294
+ onDragenter: withModifiers(handleDragEnter, ["prevent"]),
1295
+ onDragleave: handleDragLeave,
1296
+ onDrop: withModifiers(handleDrop, ["prevent"])
1297
+ }, [
1298
+ createElementVNode(
1299
+ "div",
1300
+ {
1301
+ ref_key: "chatContainer",
1302
+ ref: chatContainer,
1303
+ class: "touchchat-dialog",
1304
+ onScroll: handleScroll
1305
+ },
1306
+ [
1307
+ renderSlot(_ctx.$slots, "top"),
1308
+ chatList.value.length === 0 ? (openBlock(), createElementBlock("div", {
1309
+ key: 0,
1310
+ class: "touchchat-welcome"
1311
+ }, [
1312
+ renderSlot(_ctx.$slots, "welcome", {}, () => [
1313
+ createVNode(HelloChat, { onSendMessage: sendMessage })
856
1314
  ])
857
- ],
858
- 512
859
- /* NEED_PATCH */
860
- ),
1315
+ ])) : createCommentVNode("v-if", true),
1316
+ createElementVNode("div", { class: "touchchat-dialog-content" }, [
1317
+ (openBlock(true), createElementBlock(
1318
+ Fragment,
1319
+ null,
1320
+ renderList(chatList.value, (item, index) => {
1321
+ return openBlock(), createElementBlock(
1322
+ Fragment,
1323
+ {
1324
+ key: item.chatId
1325
+ },
1326
+ [
1327
+ item.user === "u" ? (openBlock(), createBlock(UserMessage, {
1328
+ key: 0,
1329
+ item,
1330
+ index,
1331
+ onUserMessageFileList: itemUploadFile,
1332
+ onCopy: ($event) => handleMessageAction(unref(MessageAction).COPY, index),
1333
+ onEdit: ($event) => handleMessageAction(unref(MessageAction).EDIT, index),
1334
+ onDelete: ($event) => handleMessageAction(unref(MessageAction).DELETE, index),
1335
+ onSaveEdit: saveEdit,
1336
+ onCancelEdit: ($event) => cancelEdit(index)
1337
+ }, {
1338
+ userAvatar: withCtx(() => [
1339
+ renderSlot(_ctx.$slots, "userAvatar")
1340
+ ]),
1341
+ fn: withCtx(() => [
1342
+ renderSlot(_ctx.$slots, "fn", {
1343
+ item,
1344
+ index
1345
+ })
1346
+ ]),
1347
+ _: 2
1348
+ /* DYNAMIC */
1349
+ }, 1032, ["item", "index", "onCopy", "onEdit", "onDelete", "onCancelEdit"])) : (openBlock(), createBlock(AiMessage, {
1350
+ key: 1,
1351
+ item,
1352
+ index,
1353
+ "enable-deep-thinking": enableDeepThinking.value,
1354
+ "has-retry": activeAgentsName.value || unref(scripts).length > 0 ? false : true,
1355
+ onCopy: ($event) => handleMessageAction(unref(MessageAction).COPY, index),
1356
+ onRetry: ($event) => handleMessageAction(unref(MessageAction).RETRY, index),
1357
+ onLike: ($event) => handleMessageAction(unref(MessageAction).LIKE, index),
1358
+ onDislike: ($event) => handleMessageAction(unref(MessageAction).DISLIKE, index),
1359
+ onContentRendered: attachCopyButtons,
1360
+ onCompleteRendered: (chatId) => completeRendered(chatId),
1361
+ onToggleSidebar: toggleSidebarClick
1362
+ }, {
1363
+ aimsg: withCtx(() => [
1364
+ renderSlot(_ctx.$slots, "aimsg", {
1365
+ item,
1366
+ index
1367
+ })
1368
+ ]),
1369
+ msg: withCtx(() => [
1370
+ renderSlot(_ctx.$slots, "msg", {
1371
+ item,
1372
+ index
1373
+ })
1374
+ ]),
1375
+ aiAvatar: withCtx(() => [
1376
+ renderSlot(_ctx.$slots, "aiAvatar")
1377
+ ]),
1378
+ fn: withCtx(() => [
1379
+ renderSlot(_ctx.$slots, "fn", {
1380
+ item,
1381
+ index
1382
+ })
1383
+ ]),
1384
+ extendsFn: withCtx(() => [
1385
+ renderSlot(_ctx.$slots, "extendsFn", {
1386
+ item,
1387
+ index
1388
+ })
1389
+ ]),
1390
+ _: 2
1391
+ /* DYNAMIC */
1392
+ }, 1032, ["item", "index", "enable-deep-thinking", "has-retry", "onCopy", "onRetry", "onLike", "onDislike", "onCompleteRendered"]))
1393
+ ],
1394
+ 64
1395
+ /* STABLE_FRAGMENT */
1396
+ );
1397
+ }),
1398
+ 128
1399
+ /* KEYED_FRAGMENT */
1400
+ ))
1401
+ ])
1402
+ ],
1403
+ 544
1404
+ /* NEED_HYDRATION, NEED_PATCH */
1405
+ ),
1406
+ _ctx.$slots.shortcut ? (openBlock(), createElementBlock("div", {
1407
+ key: 0,
1408
+ class: "touchchat-edit-shortcut"
1409
+ }, [
1410
+ renderSlot(_ctx.$slots, "shortcut")
1411
+ ])) : createCommentVNode("v-if", true),
1412
+ renderSlot(_ctx.$slots, "edit", {}, () => [
861
1413
  createVNode(ChatInput, {
1414
+ ref_key: "ChatInputRef",
1415
+ ref: ChatInputRef,
862
1416
  "input-value": inputValue.value,
863
1417
  "onUpdate:inputValue": ($event) => inputValue.value = $event,
864
1418
  "enable-deep-thinking": enableDeepThinking.value,
@@ -866,18 +1420,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
866
1420
  "is-chating": isChating.value,
867
1421
  onSend: handleBeforeSend,
868
1422
  onStop: handleStop,
869
- onToggleDeepThinking: (val) => enableDeepThinking.value = val
870
- }, {
871
- input: withCtx(({ disabled }) => [
872
- renderSlot(_ctx.$slots, "input", { disabled })
873
- ]),
874
- _: 3
875
- /* FORWARDED */
876
- }, 8, ["input-value", "onUpdate:inputValue", "enable-deep-thinking", "onUpdate:enableDeepThinking", "is-chating", "onToggleDeepThinking"])
877
- ],
878
- 64
879
- /* STABLE_FRAGMENT */
880
- );
1423
+ onToggleDeepThinking: (val) => enableDeepThinking.value = val,
1424
+ onModuleInfo: updateModule
1425
+ }, null, 8, ["input-value", "onUpdate:inputValue", "enable-deep-thinking", "onUpdate:enableDeepThinking", "is-chating", "onToggleDeepThinking"])
1426
+ ])
1427
+ ], 40, ["onDragover"]);
881
1428
  };
882
1429
  }
883
1430
  });