@glodon-aiot/agent-cli-ui 0.0.0-20251106104234

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 (855) hide show
  1. package/README.git.md +73 -0
  2. package/README.lib.md +135 -0
  3. package/dist/es/AgentClientUI.mjs +150 -0
  4. package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +95 -0
  5. package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +38 -0
  6. package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +101 -0
  7. package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +251 -0
  8. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +86 -0
  9. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +92 -0
  10. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +46 -0
  11. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +365 -0
  12. package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +105 -0
  13. package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +92 -0
  14. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +89 -0
  15. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +47 -0
  16. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +4 -0
  17. package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +120 -0
  18. package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +48 -0
  19. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +47 -0
  20. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +135 -0
  21. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +130 -0
  22. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +44 -0
  23. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +50 -0
  24. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
  25. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +413 -0
  26. package/dist/es/Dialog/AgentChat/index.mjs +1045 -0
  27. package/dist/es/Dialog/SessionList/index.mjs +323 -0
  28. package/dist/es/Dialog/UploadingPrompt/index.mjs +64 -0
  29. package/dist/es/Dialog/index.mjs +180 -0
  30. package/dist/es/Footer/FooterWarning.mjs +24 -0
  31. package/dist/es/Footer/index.mjs +17 -0
  32. package/dist/es/QuillEditor/index.mjs +231 -0
  33. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +406 -0
  34. package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +112 -0
  35. package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +97 -0
  36. package/dist/es/ReactTextGenerationUI/index.mjs +81 -0
  37. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  38. package/dist/es/_virtual/index.mjs +4 -0
  39. package/dist/es/_virtual/index2.mjs +4 -0
  40. package/dist/es/_virtual/index3.mjs +4 -0
  41. package/dist/es/_virtual/lib.mjs +4 -0
  42. package/dist/es/_virtual/prism-core.mjs +4 -0
  43. package/dist/es/_virtual/types.mjs +4 -0
  44. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  45. package/dist/es/_virtual/utilities.mjs +4 -0
  46. package/dist/es/assets/brand.svg.mjs +4 -0
  47. package/dist/es/assets/doc-icons/doc.svg.mjs +4 -0
  48. package/dist/es/assets/doc-icons/docx.svg.mjs +4 -0
  49. package/dist/es/assets/doc-icons/pdf.svg.mjs +4 -0
  50. package/dist/es/assets/icon.svg.mjs +4 -0
  51. package/dist/es/assets/think.svg.mjs +4 -0
  52. package/dist/es/components/FilePreview/index.mjs +83 -0
  53. package/dist/es/components/Greeting/index.mjs +30 -0
  54. package/dist/es/components/Iconfont/index.mjs +12 -0
  55. package/dist/es/components/JsonDisplay/index.mjs +15 -0
  56. package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +67 -0
  57. package/dist/es/components/KnowledgeList/index.mjs +73 -0
  58. package/dist/es/components/Recommend/RecommendItem.mjs +100 -0
  59. package/dist/es/components/Recommend/index.mjs +76 -0
  60. package/dist/es/components/Recommend/tip.svg.mjs +4 -0
  61. package/dist/es/components/Sider/index.mjs +24 -0
  62. package/dist/es/components/WebLink/index.mjs +26 -0
  63. package/dist/es/constant.mjs +123 -0
  64. package/dist/es/context/SessionContext.mjs +26 -0
  65. package/dist/es/context.mjs +7 -0
  66. package/dist/es/hooks/useSessionState.mjs +6 -0
  67. package/dist/es/index.mjs +534 -0
  68. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
  69. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
  70. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  71. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  72. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
  73. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  74. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  75. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
  76. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  77. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
  78. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  79. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  80. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
  81. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  82. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  83. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  84. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  85. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  86. package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +70 -0
  87. package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +11 -0
  88. package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +124 -0
  89. package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +13 -0
  90. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
  91. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  92. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
  93. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  94. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  95. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
  96. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +13 -0
  97. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  98. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
  99. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
  100. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +4 -0
  101. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  102. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +4 -0
  103. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  104. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +3 -0
  105. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  106. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  107. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  108. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  109. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
  110. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  111. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  112. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  113. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  114. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
  115. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  116. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  117. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  118. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  119. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  120. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  121. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  122. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  123. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  124. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  125. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  126. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  127. package/dist/es/node_modules/ccount/index.mjs +12 -0
  128. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
  129. package/dist/es/node_modules/comma-separated-tokens/index.mjs +18 -0
  130. package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +14 -0
  131. package/dist/es/node_modules/devlop/lib/default.mjs +8 -0
  132. package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +7 -0
  133. package/dist/es/node_modules/extend/index.mjs +46 -0
  134. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
  135. package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +11 -0
  136. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
  137. package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +162 -0
  138. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +12 -0
  139. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +61 -0
  140. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +33 -0
  141. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +368 -0
  142. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +6 -0
  143. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +566 -0
  144. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  145. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  146. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +14 -0
  147. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  148. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +28 -0
  149. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +10 -0
  150. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +21 -0
  151. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +15 -0
  152. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +19 -0
  153. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +15 -0
  154. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +16 -0
  155. package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +47 -0
  156. package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +11 -0
  157. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
  158. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
  159. package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +298 -0
  160. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +12 -0
  161. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +61 -0
  162. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +33 -0
  163. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +22 -0
  164. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +368 -0
  165. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +6 -0
  166. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +566 -0
  167. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  168. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  169. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +14 -0
  170. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  171. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +28 -0
  172. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +10 -0
  173. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +21 -0
  174. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +15 -0
  175. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +19 -0
  176. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +15 -0
  177. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +16 -0
  178. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
  179. package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +10 -0
  180. package/dist/es/node_modules/hastscript/lib/create-h.mjs +126 -0
  181. package/dist/es/node_modules/hastscript/lib/index.mjs +8 -0
  182. package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
  183. package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
  184. package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +12 -0
  185. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +61 -0
  186. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +33 -0
  187. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +368 -0
  188. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +6 -0
  189. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +566 -0
  190. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  191. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  192. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +14 -0
  193. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  194. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +28 -0
  195. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +10 -0
  196. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +21 -0
  197. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +15 -0
  198. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +19 -0
  199. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +15 -0
  200. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +16 -0
  201. package/dist/es/node_modules/html-url-attributes/lib/index.mjs +16 -0
  202. package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
  203. package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
  204. package/dist/es/node_modules/is-decimal/index.mjs +8 -0
  205. package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
  206. package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
  207. package/dist/es/node_modules/longest-streak/index.mjs +12 -0
  208. package/dist/es/node_modules/markdown-table/index.mjs +70 -0
  209. package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +72 -0
  210. package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +8 -0
  211. package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +584 -0
  212. package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +17 -0
  213. package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +136 -0
  214. package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +100 -0
  215. package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +61 -0
  216. package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +170 -0
  217. package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +72 -0
  218. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
  219. package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +30 -0
  220. package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +123 -0
  221. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +12 -0
  222. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +16 -0
  223. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +25 -0
  224. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +12 -0
  225. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +12 -0
  226. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +31 -0
  227. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +12 -0
  228. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +12 -0
  229. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +22 -0
  230. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +17 -0
  231. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +58 -0
  232. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +17 -0
  233. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +21 -0
  234. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +17 -0
  235. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +65 -0
  236. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +21 -0
  237. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +12 -0
  238. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +10 -0
  239. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +12 -0
  240. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +13 -0
  241. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +26 -0
  242. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +35 -0
  243. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +11 -0
  244. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +12 -0
  245. package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +19 -0
  246. package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +22 -0
  247. package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +145 -0
  248. package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +16 -0
  249. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +12 -0
  250. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +13 -0
  251. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +49 -0
  252. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +37 -0
  253. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +37 -0
  254. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +44 -0
  255. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +10 -0
  256. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +36 -0
  257. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +40 -0
  258. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +44 -0
  259. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +22 -0
  260. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +36 -0
  261. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +50 -0
  262. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +19 -0
  263. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +35 -0
  264. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +7 -0
  265. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +9 -0
  266. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +37 -0
  267. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +6 -0
  268. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +9 -0
  269. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +9 -0
  270. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +14 -0
  271. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +9 -0
  272. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +9 -0
  273. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +9 -0
  274. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +9 -0
  275. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +9 -0
  276. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +9 -0
  277. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +9 -0
  278. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +9 -0
  279. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +6 -0
  280. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +67 -0
  281. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +9 -0
  282. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +13 -0
  283. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +15 -0
  284. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +15 -0
  285. package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
  286. package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +29 -0
  287. package/dist/es/node_modules/micromark/lib/constructs.mjs +85 -0
  288. package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +225 -0
  289. package/dist/es/node_modules/micromark/lib/initialize/content.mjs +37 -0
  290. package/dist/es/node_modules/micromark/lib/initialize/document.mjs +133 -0
  291. package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +33 -0
  292. package/dist/es/node_modules/micromark/lib/initialize/text.mjs +103 -0
  293. package/dist/es/node_modules/micromark/lib/parse.mjs +32 -0
  294. package/dist/es/node_modules/micromark/lib/postprocess.mjs +9 -0
  295. package/dist/es/node_modules/micromark/lib/preprocess.mjs +40 -0
  296. package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +74 -0
  297. package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +43 -0
  298. package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +18 -0
  299. package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +42 -0
  300. package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +17 -0
  301. package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +30 -0
  302. package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +94 -0
  303. package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +43 -0
  304. package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +45 -0
  305. package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +50 -0
  306. package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +80 -0
  307. package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +17 -0
  308. package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +46 -0
  309. package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +144 -0
  310. package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +102 -0
  311. package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +152 -0
  312. package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +22 -0
  313. package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +19 -0
  314. package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +14 -0
  315. package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +90 -0
  316. package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +62 -0
  317. package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +25 -0
  318. package/dist/es/node_modules/micromark-extension-gfm/index.mjs +12 -0
  319. package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +193 -0
  320. package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +192 -0
  321. package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +68 -0
  322. package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +71 -0
  323. package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +24 -0
  324. package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +147 -0
  325. package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +45 -0
  326. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
  327. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
  328. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
  329. package/dist/es/node_modules/micromark-factory-destination/index.mjs +31 -0
  330. package/dist/es/node_modules/micromark-factory-label/index.mjs +28 -0
  331. package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
  332. package/dist/es/node_modules/micromark-factory-title/index.mjs +26 -0
  333. package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +12 -0
  334. package/dist/es/node_modules/micromark-util-character/index.mjs +39 -0
  335. package/dist/es/node_modules/micromark-util-chunked/index.mjs +16 -0
  336. package/dist/es/node_modules/micromark-util-classify-character/index.mjs +10 -0
  337. package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +36 -0
  338. package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +16 -0
  339. package/dist/es/node_modules/micromark-util-decode-string/index.mjs +18 -0
  340. package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +5 -0
  341. package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +6 -0
  342. package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +12 -0
  343. package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +23 -0
  344. package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +65 -0
  345. package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +175 -0
  346. package/dist/es/node_modules/moment/dist/moment.mjs +2301 -0
  347. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
  348. package/dist/es/node_modules/parse-entities/index.mjs +83 -0
  349. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
  350. package/dist/es/node_modules/property-information/find.mjs +25 -0
  351. package/dist/es/node_modules/property-information/html.mjs +10 -0
  352. package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
  353. package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
  354. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
  355. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
  356. package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
  357. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
  358. package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
  359. package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
  360. package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
  361. package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
  362. package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
  363. package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
  364. package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
  365. package/dist/es/node_modules/property-information/normalize.mjs +7 -0
  366. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  367. package/dist/es/node_modules/react-markdown/lib/index.mjs +153 -0
  368. package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +29 -0
  369. package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
  370. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
  371. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
  372. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
  373. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
  374. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  375. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
  376. package/dist/es/node_modules/refractor/core.mjs +111 -0
  377. package/dist/es/node_modules/refractor/index.mjs +553 -0
  378. package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
  379. package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
  380. package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
  381. package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
  382. package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
  383. package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
  384. package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
  385. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
  386. package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
  387. package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
  388. package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
  389. package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
  390. package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
  391. package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
  392. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
  393. package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
  394. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
  395. package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
  396. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
  397. package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
  398. package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
  399. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
  400. package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
  401. package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
  402. package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
  403. package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
  404. package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
  405. package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
  406. package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
  407. package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
  408. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
  409. package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
  410. package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
  411. package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
  412. package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
  413. package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
  414. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
  415. package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
  416. package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
  417. package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
  418. package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
  419. package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
  420. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
  421. package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
  422. package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
  423. package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
  424. package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
  425. package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
  426. package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
  427. package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
  428. package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
  429. package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
  430. package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
  431. package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
  432. package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
  433. package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
  434. package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
  435. package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
  436. package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
  437. package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
  438. package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
  439. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
  440. package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
  441. package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
  442. package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
  443. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
  444. package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
  445. package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
  446. package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
  447. package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
  448. package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
  449. package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
  450. package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
  451. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
  452. package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
  453. package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
  454. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
  455. package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
  456. package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
  457. package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
  458. package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
  459. package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
  460. package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
  461. package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
  462. package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
  463. package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
  464. package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
  465. package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
  466. package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
  467. package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
  468. package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
  469. package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
  470. package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
  471. package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
  472. package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
  473. package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
  474. package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
  475. package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
  476. package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
  477. package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
  478. package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
  479. package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
  480. package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
  481. package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
  482. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
  483. package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
  484. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
  485. package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
  486. package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
  487. package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
  488. package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
  489. package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
  490. package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
  491. package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
  492. package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
  493. package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
  494. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
  495. package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
  496. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
  497. package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
  498. package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
  499. package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
  500. package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
  501. package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
  502. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
  503. package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
  504. package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
  505. package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
  506. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
  507. package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
  508. package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
  509. package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
  510. package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
  511. package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
  512. package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
  513. package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
  514. package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
  515. package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
  516. package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
  517. package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
  518. package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
  519. package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
  520. package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
  521. package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
  522. package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
  523. package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
  524. package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
  525. package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
  526. package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
  527. package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
  528. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
  529. package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
  530. package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
  531. package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
  532. package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
  533. package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
  534. package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
  535. package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
  536. package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
  537. package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
  538. package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
  539. package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
  540. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  541. package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
  542. package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
  543. package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
  544. package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
  545. package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
  546. package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
  547. package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
  548. package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
  549. package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
  550. package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
  551. package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
  552. package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
  553. package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
  554. package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
  555. package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
  556. package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
  557. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
  558. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
  559. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
  560. package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
  561. package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
  562. package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
  563. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
  564. package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
  565. package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
  566. package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
  567. package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
  568. package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
  569. package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
  570. package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
  571. package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
  572. package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
  573. package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
  574. package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
  575. package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
  576. package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
  577. package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
  578. package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
  579. package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
  580. package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
  581. package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
  582. package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
  583. package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
  584. package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
  585. package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
  586. package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
  587. package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
  588. package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
  589. package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
  590. package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
  591. package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
  592. package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
  593. package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
  594. package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
  595. package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
  596. package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
  597. package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
  598. package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
  599. package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
  600. package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
  601. package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
  602. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
  603. package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
  604. package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
  605. package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
  606. package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
  607. package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
  608. package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
  609. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
  610. package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
  611. package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
  612. package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
  613. package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
  614. package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
  615. package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
  616. package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
  617. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
  618. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
  619. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
  620. package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
  621. package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
  622. package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
  623. package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
  624. package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
  625. package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
  626. package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
  627. package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
  628. package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
  629. package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
  630. package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
  631. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
  632. package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
  633. package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
  634. package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
  635. package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
  636. package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
  637. package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
  638. package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
  639. package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
  640. package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
  641. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
  642. package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
  643. package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
  644. package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
  645. package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
  646. package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
  647. package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
  648. package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
  649. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
  650. package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
  651. package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
  652. package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
  653. package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
  654. package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
  655. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
  656. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
  657. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
  658. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
  659. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
  660. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
  661. package/dist/es/node_modules/rehype-external-links/lib/index.mjs +34 -0
  662. package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +9 -0
  663. package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +16 -0
  664. package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
  665. package/dist/es/node_modules/rehype-raw/lib/index.mjs +26 -0
  666. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +38 -0
  667. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +251 -0
  668. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +7 -0
  669. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +249 -0
  670. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +125 -0
  671. package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +4 -0
  672. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +34 -0
  673. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +7 -0
  674. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +103 -0
  675. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +44 -0
  676. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +14 -0
  677. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +38 -0
  678. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  679. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +2308 -0
  680. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +220 -0
  681. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +2 -0
  682. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +1948 -0
  683. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +92 -0
  684. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +173 -0
  685. package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +12 -0
  686. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +61 -0
  687. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +33 -0
  688. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +368 -0
  689. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +6 -0
  690. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +566 -0
  691. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  692. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  693. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +17 -0
  694. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +27 -0
  695. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +23 -0
  696. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +11 -0
  697. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +17 -0
  698. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +15 -0
  699. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +19 -0
  700. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +15 -0
  701. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +16 -0
  702. package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +16 -0
  703. package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +11 -0
  704. package/dist/es/node_modules/remark-gfm/lib/index.mjs +13 -0
  705. package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
  706. package/dist/es/node_modules/remark-rehype/lib/index.mjs +51 -0
  707. package/dist/es/node_modules/space-separated-tokens/index.mjs +11 -0
  708. package/dist/es/node_modules/style-to-js/cjs/index.mjs +22 -0
  709. package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +18 -0
  710. package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +93 -0
  711. package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +25 -0
  712. package/dist/es/node_modules/trim-lines/index.mjs +25 -0
  713. package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
  714. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
  715. package/dist/es/node_modules/unified/lib/callable-instance.mjs +25 -0
  716. package/dist/es/node_modules/unified/lib/index.mjs +525 -0
  717. package/dist/es/node_modules/unified/node_modules/bail/index.mjs +7 -0
  718. package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +9 -0
  719. package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +61 -0
  720. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
  721. package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
  722. package/dist/es/node_modules/unist-util-position/lib/index.mjs +26 -0
  723. package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +15 -0
  724. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
  725. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
  726. package/dist/es/node_modules/vfile/lib/index.mjs +401 -0
  727. package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +120 -0
  728. package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +9 -0
  729. package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +35 -0
  730. package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +7 -0
  731. package/dist/es/node_modules/vfile-message/lib/index.mjs +106 -0
  732. package/dist/es/node_modules/xtend/immutable.mjs +12 -0
  733. package/dist/es/node_modules/zwitch/index.mjs +18 -0
  734. package/dist/es/packages/agent-cli-ui/package.json.mjs +163 -0
  735. package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +8 -0
  736. package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +43 -0
  737. package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +44 -0
  738. package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +64 -0
  739. package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +62 -0
  740. package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +19 -0
  741. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +78 -0
  742. package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
  743. package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +38 -0
  744. package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +29 -0
  745. package/dist/es/src/global.css +1 -0
  746. package/dist/es/src/image-viewer.css +1 -0
  747. package/dist/es/src/katex.min.css +1 -0
  748. package/dist/es/src/mask.css +1 -0
  749. package/dist/es/src/safe-area.css +1 -0
  750. package/dist/es/src/style.css +1 -0
  751. package/dist/es/src/style10.css +1 -0
  752. package/dist/es/src/style11.css +1 -0
  753. package/dist/es/src/style12.css +1 -0
  754. package/dist/es/src/style13.css +1 -0
  755. package/dist/es/src/style14.css +1 -0
  756. package/dist/es/src/style15.css +1 -0
  757. package/dist/es/src/style16.css +1 -0
  758. package/dist/es/src/style17.css +1 -0
  759. package/dist/es/src/style18.css +1 -0
  760. package/dist/es/src/style19.css +1 -0
  761. package/dist/es/src/style2.css +1 -0
  762. package/dist/es/src/style20.css +1 -0
  763. package/dist/es/src/style21.css +1 -0
  764. package/dist/es/src/style22.css +1 -0
  765. package/dist/es/src/style23.css +1 -0
  766. package/dist/es/src/style24.css +1 -0
  767. package/dist/es/src/style25.css +1 -0
  768. package/dist/es/src/style26.css +1 -0
  769. package/dist/es/src/style27.css +1 -0
  770. package/dist/es/src/style28.css +1 -0
  771. package/dist/es/src/style29.css +1 -0
  772. package/dist/es/src/style3.css +1 -0
  773. package/dist/es/src/style30.css +1 -0
  774. package/dist/es/src/style31.css +1 -0
  775. package/dist/es/src/style32.css +1 -0
  776. package/dist/es/src/style33.css +1 -0
  777. package/dist/es/src/style4.css +1 -0
  778. package/dist/es/src/style5.css +1 -0
  779. package/dist/es/src/style6.css +1 -0
  780. package/dist/es/src/style7.css +1 -0
  781. package/dist/es/src/style8.css +1 -0
  782. package/dist/es/src/style9.css +1 -0
  783. package/dist/es/types.mjs +4 -0
  784. package/dist/es/utils/antdConfig.mjs +15 -0
  785. package/dist/es/utils/index.mjs +37 -0
  786. package/dist/lib/index.css +1 -0
  787. package/dist/lib/index.js +328 -0
  788. package/dist/src/AgentClientUI.d.ts +13 -0
  789. package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
  790. package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
  791. package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
  792. package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
  793. package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
  794. package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +10 -0
  795. package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
  796. package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +20 -0
  797. package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
  798. package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
  799. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
  800. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
  801. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
  802. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
  803. package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
  804. package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +15 -0
  805. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
  806. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
  807. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
  808. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
  809. package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
  810. package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
  811. package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
  812. package/dist/src/Dialog/AgentChat/index.d.ts +22 -0
  813. package/dist/src/Dialog/SessionList/index.d.ts +24 -0
  814. package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
  815. package/dist/src/Dialog/index.d.ts +18 -0
  816. package/dist/src/Footer/FooterWarning.d.ts +8 -0
  817. package/dist/src/Footer/index.d.ts +8 -0
  818. package/dist/src/QuillEditor/index.d.ts +21 -0
  819. package/dist/src/ReactTextGenerationUI/components/TextSiders/index.d.ts +22 -0
  820. package/dist/src/ReactTextGenerationUI/components/fetchEventSource/fetch.d.ts +44 -0
  821. package/dist/src/ReactTextGenerationUI/components/fetchEventSource/index.d.ts +1 -0
  822. package/dist/src/ReactTextGenerationUI/components/fetchEventSource/parse.d.ts +36 -0
  823. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
  824. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
  825. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
  826. package/dist/src/ReactTextGenerationUI/index.d.ts +4 -0
  827. package/dist/src/components/FilePreview/index.d.ts +20 -0
  828. package/dist/src/components/Greeting/index.d.ts +8 -0
  829. package/dist/src/components/Header/index.d.ts +7 -0
  830. package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
  831. package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
  832. package/dist/src/components/Iconfont/index.d.ts +2 -0
  833. package/dist/src/components/JsonDisplay/index.d.ts +6 -0
  834. package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
  835. package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
  836. package/dist/src/components/KnowledgeList/index.d.ts +10 -0
  837. package/dist/src/components/PDFViewer/index.d.ts +7 -0
  838. package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
  839. package/dist/src/components/Recommend/index.d.ts +15 -0
  840. package/dist/src/components/Sider/index.d.ts +8 -0
  841. package/dist/src/components/WebLink/index.d.ts +7 -0
  842. package/dist/src/constant.d.ts +21 -0
  843. package/dist/src/context/SessionContext.d.ts +15 -0
  844. package/dist/src/context.d.ts +5 -0
  845. package/dist/src/hooks/useSessionState.d.ts +7 -0
  846. package/dist/src/index.d.ts +49 -0
  847. package/dist/src/types.d.ts +235 -0
  848. package/dist/src/utils/antdConfig.d.ts +7 -0
  849. package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
  850. package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
  851. package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
  852. package/dist/src/utils/index.d.ts +25 -0
  853. package/dist/src/utils/reactCompatibility.d.ts +27 -0
  854. package/dist/src/utils/testAntdPrefix.d.ts +3 -0
  855. package/package.json +142 -0
@@ -0,0 +1,47 @@
1
+ import { jsx as t, Fragment as l } from "react/jsx-runtime";
2
+ import { List as h, Empty as g } from "antd";
3
+ import f from "./PromptListItem.mjs";
4
+ /* empty css */import u from "./access/empty.svg.mjs";
5
+ const S = (o) => {
6
+ const {
7
+ appId: a,
8
+ data: i = [],
9
+ search: n,
10
+ onItemClick: s,
11
+ onChange: e,
12
+ onRefresh: y
13
+ } = o, p = () => /* @__PURE__ */ t("div", {
14
+ className: "prompt-list-empty",
15
+ children: /* @__PURE__ */ t(g, {
16
+ image: u,
17
+ imageStyle: {
18
+ height: 44
19
+ },
20
+ description: /* @__PURE__ */ t("span", {
21
+ children: "暂无快捷指令"
22
+ })
23
+ })
24
+ });
25
+ return /* @__PURE__ */ t("div", {
26
+ className: "prompt-list-wrap",
27
+ children: i.length ? /* @__PURE__ */ t(l, {
28
+ children: /* @__PURE__ */ t(h, {
29
+ className: "prompt-list",
30
+ dataSource: i,
31
+ renderItem: (d) => /* @__PURE__ */ t(f, {
32
+ appId: a,
33
+ data: d,
34
+ highlight: n,
35
+ onClick: s,
36
+ onStatusChange: (x, r) => {
37
+ const m = i.findIndex((c) => c.id === r.id);
38
+ m > -1 && (i[m] = r, e && e([...i]));
39
+ }
40
+ })
41
+ })
42
+ }) : /* @__PURE__ */ t(p, {})
43
+ });
44
+ };
45
+ export {
46
+ S as default
47
+ };
@@ -0,0 +1,4 @@
1
+ const M = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDMiIGhlaWdodD0iNDciIHZpZXdCb3g9IjAgMCA0MyA0NyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS41NiAzMS4xNTVDMTUuNTIgMzEuNDMgMTUuNSAzMS43MTUgMTUuNSAzMkMxNS41IDM1LjMxNSAxOC4xODUgMzggMjEuNSAzOEMyNC44MTUgMzggMjcuNSAzNS4zMTUgMjcuNSAzMkMyNy41IDMxLjcxNSAyNy40OCAzMS40MyAyNy40NCAzMS4xNTVINDJWNDQuNUM0MiA0NS4zMyA0MS4zMyA0NiA0MC41IDQ2SDIuNUMxLjY3IDQ2IDEgNDUuMzMgMSA0NC41VjMxLjE1NUgxNS41NloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjggMzFDMjggMzQuNTkgMjUuMDkgMzcuNSAyMS41IDM3LjVDMTcuOTEgMzcuNSAxNSAzNC41OSAxNSAzMUMxNSAzMC44ODUgMTUuMDA1IDMwLjc3IDE1LjAxIDMwLjY1NUgxTDUuNzgwMDMgMTYuNTJDNS45ODUwMyAxNS45MSA2LjU2MDAxIDE1LjUgNy4yMDAwMSAxNS41SDM1LjhDMzYuNDQgMTUuNSAzNy4wMTUgMTUuOTEgMzcuMjIgMTYuNTJMNDIgMzAuNjU1SDI3Ljk5QzI3Ljk5NSAzMC43NyAyOCAzMC44ODUgMjggMzFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI3LjA1IDMxLjQ3NUMyNy4wNSAzNC4yNSAyNC41NjUgMzcgMjEuNSAzN0MxOC40MzUgMzcgMTUuOTUgMzQuMjUgMTUuOTUgMzEuNDc1QzE1Ljk1IDMxLjM4NSAxNS45NTUgMzAuOCAxNS45NiAzMC43MUg1LjVMOS41ODAwMiAyMC43OUM5Ljc1NTAyIDIwLjMxNSAxMC4yNDUgMjAgMTAuNzk1IDIwSDMyLjIwNUMzMi43NTUgMjAgMzMuMjQ1IDIwLjMxNSAzMy40MiAyMC43OUwzNy41IDMwLjcxSDI3LjA0QzI3LjA0NSAzMC44IDI3LjA1IDMxLjM4NSAyNy4wNSAzMS40NzVaIiBmaWxsPSIjRDhEQkZCIi8+CjxwYXRoIGQ9Ik0zMyAzNS41TDMzLjY2NjUgMzYuODQ1NEMzMy44Nzg3IDM3LjI3NDEgMzQuMjI1OSAzNy42MjEzIDM0LjY1NDYgMzcuODMzNUwzNiAzOC41TDM0LjY1NDYgMzkuMTY2NUMzNC4yMjU5IDM5LjM3ODcgMzMuODc4NyAzOS43MjU5IDMzLjY2NjUgNDAuMTU0NkwzMyA0MS41TDMyLjMzMzUgNDAuMTU0NkMzMi4xMjEzIDM5LjcyNTkgMzEuNzc0MSAzOS4zNzg3IDMxLjM0NTQgMzkuMTY2NUwzMCAzOC41TDMxLjM0NTQgMzcuODMzNUMzMS43NzQxIDM3LjYyMTMgMzIuMTIxMyAzNy4yNzQxIDMyLjMzMzUgMzYuODQ1NEwzMyAzNS41WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzExMDI5XzM5MTYpIi8+CjxwYXRoIGQ9Ik0xLjYyNSA0NEMxLjYyNSA0NC40ODUgMi4wMTUgNDQuODc1IDIuNSA0NC44NzVINDAuNUM0MC45ODUgNDQuODc1IDQxLjM3NSA0NC40ODUgNDEuMzc1IDQ0VjMwLjc1NUwzNi42MyAxNi43MkMzNi41MSAxNi4zNjUgMzYuMTc1IDE2LjEyNSAzNS44IDE2LjEyNUg3LjIwMDAxQzYuODI1MDEgMTYuMTI1IDYuNDkgMTYuMzY1IDYuMzcgMTYuNzJMMS42MjUgMzAuNzU1VjQ0WiIgc3Ryb2tlPSIjOTY5OUI3IiBzdHJva2Utd2lkdGg9IjIuNSIvPgo8cGF0aCBkPSJNNS40OTk5NCAzMC41SDQuMjg0OTFNNy45OTk5NCAzMC41QzkuOTY5OTQgMzAuNSAxMi4wODk5IDMwLjUgMTQuMzY5OSAzMC41QzE1LjMwOTkgMzAuNSAxNS4zMDk5IDMxLjE2IDE1LjMwOTkgMzEuNUMxNS4zMDk5IDM0LjgxNSAxOC4wNiAzNy41IDIxLjQ1IDM3LjVDMjQuODQgMzcuNSAyNy41ODUgMzQuODE1IDI3LjU4NSAzMS41QzI3LjU4NSAzMS4xNiAyNy41ODUgMzAuNSAyOC41MjUgMzAuNUg0MC45OTk5IiBzdHJva2U9IiM5Njk5QjciIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTIxLjA1IDEwLjM4VjJNMTMuNTUgMTAuMzhMOCA0LjE1MDAyTTM0LjA1IDQuMTUwMDJMMjguNSAxMC4zOCIgc3Ryb2tlPSIjOUMyNEYyIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTEwMjlfMzkxNiIgeDE9IjMwLjE3ODYiIHkxPSIzOC41IiB4Mj0iMzYuMzEyNiIgeTI9IjM4LjUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzIwNUVGOSIvPgo8c3RvcCBvZmZzZXQ9IjAuNiIgc3RvcC1jb2xvcj0iIzgzNUFGRSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRDYyRDkiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K";
2
+ export {
3
+ M as default
4
+ };
@@ -0,0 +1,120 @@
1
+ import { jsx as r, Fragment as V } from "react/jsx-runtime";
2
+ import { Popover as j, Tabs as C, Button as A } from "antd";
3
+ import { useState as m, useContext as E, useEffect as a } from "react";
4
+ /* empty css */import M from "classnames";
5
+ import { PROMPT_TITLE_MAX_LENGTH as I } from "@glodon-aiot/apis";
6
+ import _ from "./PromptList/PublicPromptList.mjs";
7
+ import z from "../../../../context.mjs";
8
+ import X from "../../../../components/Iconfont/index.mjs";
9
+ const $ = (S) => {
10
+ var x;
11
+ const {
12
+ appId: c,
13
+ list: s,
14
+ search: e,
15
+ disabled: W = !1,
16
+ open: u = !1,
17
+ onClose: g,
18
+ onPromptSelect: L
19
+ } = S, [f, y] = m(u), [B, P] = m(), {
20
+ service: i,
21
+ popupContainer: o,
22
+ mode: F
23
+ } = E(z), [G, d] = m((s == null ? void 0 : s.filter((t) => t.type === "me")) || []), [k, h] = m((s == null ? void 0 : s.filter((t) => t.type === "system")) || []), [b, v] = m((s == null ? void 0 : s.filter((t) => t.type === "system")) || []), [w, N] = m("system"), [H, O] = m(!1);
24
+ a(() => {
25
+ f && i && (e && e.length > I ? (d([]), h([])) : (i.listPrompt(c, {
26
+ type: "system"
27
+ }).then((t) => O(!!t.length)), i.listPrompt(c, e ? {
28
+ title: e
29
+ } : void 0).then((t) => {
30
+ const p = t.filter((n) => n.type === "me"), l = t.filter((n) => n.type === "system");
31
+ d(p), h(l);
32
+ })));
33
+ }, [f]), a(() => {
34
+ T();
35
+ }, [e]), a(() => {
36
+ u && T();
37
+ }, [u]), a(() => {
38
+ let t = o == null ? void 0 : o.current;
39
+ t ? t.clientWidth > 900 ? P(520) : P(t.clientWidth - 80) : P(400);
40
+ }, [(x = o == null ? void 0 : o.current) == null ? void 0 : x.clientWidth]), a(() => {
41
+ i == null || i.listPrompt(c).then((t) => {
42
+ const p = t.filter((l) => l.type === "system");
43
+ v(p);
44
+ });
45
+ }, [i]);
46
+ const T = () => {
47
+ if (e && e.length > I) {
48
+ d([]), h([]);
49
+ return;
50
+ }
51
+ i == null || i.listPrompt(c, e ? {
52
+ title: e
53
+ } : void 0).then((t) => {
54
+ const p = t.filter((n) => n.type === "me"), l = t.filter((n) => n.type === "system");
55
+ d(p), h(l), y(!!(l.length && (e != null && e.length))), e || v(l);
56
+ });
57
+ };
58
+ return /* @__PURE__ */ r(j, {
59
+ title: null,
60
+ placement: "topLeft",
61
+ overlayClassName: "propmt-manage-popover",
62
+ open: f,
63
+ zIndex: 1e4,
64
+ arrowPointAtCenter: !0,
65
+ trigger: ["click"],
66
+ autoAdjustOverflow: {
67
+ adjustX: 0
68
+ },
69
+ overlayStyle: {
70
+ width: "260px"
71
+ },
72
+ getPopupContainer: () => (o == null ? void 0 : o.current) || document.body,
73
+ onOpenChange: (t) => {
74
+ y(t), !t && g && g();
75
+ },
76
+ content: /* @__PURE__ */ r(V, {
77
+ children: /* @__PURE__ */ r(C, {
78
+ activeKey: w,
79
+ style: {
80
+ padding: "0 16px"
81
+ },
82
+ onTabClick: (t) => {
83
+ N(t);
84
+ },
85
+ children: /* @__PURE__ */ r(C.TabPane, {
86
+ tab: "快捷指令",
87
+ children: /* @__PURE__ */ r(_, {
88
+ appId: c,
89
+ data: k,
90
+ search: e,
91
+ onItemClick: (t) => {
92
+ L && L(t), y(!1);
93
+ }
94
+ })
95
+ }, "system")
96
+ })
97
+ }),
98
+ children: b != null && b.length ? /* @__PURE__ */ r(A, {
99
+ disabled: W,
100
+ style: {
101
+ width: "24px"
102
+ },
103
+ className: M({
104
+ "prompt-btn": !0,
105
+ active: f
106
+ }),
107
+ type: "text",
108
+ icon: /* @__PURE__ */ r(X, {
109
+ type: "icon-tishiyu1",
110
+ style: {
111
+ fontSize: 24
112
+ }
113
+ }),
114
+ onClick: () => y(!0)
115
+ }) : null
116
+ });
117
+ };
118
+ export {
119
+ $ as default
120
+ };
@@ -0,0 +1,48 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { Drawer as c } from "antd";
3
+ import { useContext as p } from "react";
4
+ /* empty css */import u from "../../../../context.mjs";
5
+ import C from "../../../../components/Sider/index.mjs";
6
+ const V = (l) => {
7
+ const {
8
+ currentSession: e,
9
+ disabled: y = !1,
10
+ application: m,
11
+ networkStatus: d,
12
+ setCurrentSession: f,
13
+ isSessionHistoryVisible: S,
14
+ setIsSessionHistoryVisible: o,
15
+ onSessionChange: t
16
+ } = l, {
17
+ popupContainer: s
18
+ } = p(u);
19
+ return /* @__PURE__ */ n(c, {
20
+ title: "会话历史",
21
+ open: !0,
22
+ placement: "bottom",
23
+ onClose: () => {
24
+ o(!1);
25
+ },
26
+ className: "session-history-drawer",
27
+ size: "large",
28
+ getContainer: () => (s == null ? void 0 : s.current) || document.body,
29
+ destroyOnClose: !0,
30
+ style: {
31
+ position: "absolute"
32
+ },
33
+ children: /* @__PURE__ */ n(C, {
34
+ isShowHeader: !1,
35
+ application: m,
36
+ networkStatus: d,
37
+ currentSession: e,
38
+ setCurrentSession: f,
39
+ afterSessionClick: (r) => {
40
+ var i, a;
41
+ ((i = r.data) == null ? void 0 : i.id) !== ((a = e == null ? void 0 : e.data) == null ? void 0 : a.id) && (o(!1), t == null || t(r));
42
+ }
43
+ })
44
+ });
45
+ };
46
+ export {
47
+ V as default
48
+ };
@@ -0,0 +1,47 @@
1
+ import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
+ import { useState as C, useEffect as f } from "react";
3
+ import { Input as p, Button as c } from "antd";
4
+ /* empty css */import { CheckOutlined as d, CloseOutlined as k } from "@ant-design/icons";
5
+ const V = (m) => {
6
+ const {
7
+ session: t,
8
+ onChangeEditStatus: o,
9
+ onEditNameConfirm: r
10
+ } = m, [a, i] = C("");
11
+ return f(() => {
12
+ var l, s;
13
+ const n = ((s = (l = t.data) == null ? void 0 : l.name) == null ? void 0 : s.slice(0, 20)) || "";
14
+ i(n);
15
+ }, [t]), /* @__PURE__ */ u("div", {
16
+ className: "name-edit-panel",
17
+ children: [/* @__PURE__ */ e(p, {
18
+ value: a,
19
+ showCount: !0,
20
+ className: "name-edit-input",
21
+ maxLength: 20,
22
+ onChange: (n) => i(n.target.value)
23
+ }), /* @__PURE__ */ e(c, {
24
+ type: "link",
25
+ icon: /* @__PURE__ */ e(d, {}),
26
+ style: {
27
+ color: "#30BF13",
28
+ right: 40
29
+ },
30
+ onClick: () => {
31
+ r(t, a), o("", !1);
32
+ }
33
+ }), /* @__PURE__ */ e(c, {
34
+ type: "link",
35
+ icon: /* @__PURE__ */ e(k, {}),
36
+ style: {
37
+ color: "#84868C"
38
+ },
39
+ onClick: () => {
40
+ o("", !1);
41
+ }
42
+ })]
43
+ });
44
+ };
45
+ export {
46
+ V as default
47
+ };
@@ -0,0 +1,135 @@
1
+ import { jsx as e, jsxs as t, Fragment as q } from "react/jsx-runtime";
2
+ import { useState as M, useEffect as D } from "react";
3
+ import { Space as P, Tag as j, Button as o, Spin as _ } from "antd";
4
+ /* empty css */import { CheckCircleFilled as $, CloseCircleFilled as A, LoadingOutlined as G } from "@ant-design/icons";
5
+ import H from "./NameEditPanel.mjs";
6
+ import n from "../../../../../components/Iconfont/index.mjs";
7
+ import { FILE_ICONS as J } from "../../../../../constant.mjs";
8
+ const ii = (L) => {
9
+ var h, N, C, S, g, y, k, v, F, x, E, I;
10
+ const {
11
+ session: i,
12
+ index: l,
13
+ currentSessionId: c,
14
+ onChangeSession: O,
15
+ onDelSession: b,
16
+ onTopSession: d,
17
+ onEditNameConfirm: z,
18
+ editSessionId: R,
19
+ isEdit: r,
20
+ onChangeEditStatus: m
21
+ } = L, [p, f] = M(-1), [u, T] = M("");
22
+ return D(() => {
23
+ var a, s, w;
24
+ if ((a = i.data) != null && a.lastFileName) {
25
+ const B = i.data.lastFileName.lastIndexOf(".");
26
+ T((w = (s = i.data) == null ? void 0 : s.lastFileName) == null ? void 0 : w.slice(B + 1));
27
+ }
28
+ }, [i]), /* @__PURE__ */ e("div", {
29
+ id: (h = i.data) == null ? void 0 : h.id,
30
+ className: `session-item-panel ${((N = i.data) == null ? void 0 : N.id) === c ? "current-item" : ""}`,
31
+ onMouseEnter: () => f(l),
32
+ onMouseLeave: () => f(-1),
33
+ onClick: () => !r && O(i),
34
+ children: /* @__PURE__ */ t(P, {
35
+ direction: "vertical",
36
+ size: 12,
37
+ className: "session-item-space",
38
+ children: [/* @__PURE__ */ t("div", {
39
+ className: "item-question",
40
+ children: [((C = i.data) == null ? void 0 : C.id) === c && /* @__PURE__ */ e(j, {
41
+ children: "当前的"
42
+ }), r && R === ((S = i.data) == null ? void 0 : S.id) ? /* @__PURE__ */ e(H, {
43
+ session: i,
44
+ onChangeEditStatus: m,
45
+ onEditNameConfirm: z
46
+ }) : /* @__PURE__ */ t(q, {
47
+ children: [/* @__PURE__ */ e("div", {
48
+ className: "session-item-name",
49
+ children: (g = i.data) == null ? void 0 : g.name
50
+ }), p !== l && ((y = i.data) == null ? void 0 : y.top) && /* @__PURE__ */ e(n, {
51
+ type: "icon-sheweihuihuaqian",
52
+ style: {
53
+ color: "#9C24F2",
54
+ fontSize: 16
55
+ }
56
+ }), p === l && /* @__PURE__ */ t("div", {
57
+ className: "icons-bar",
58
+ children: [(k = i.data) != null && k.top ? /* @__PURE__ */ e(o, {
59
+ type: "link",
60
+ icon: /* @__PURE__ */ e(n, {
61
+ type: "icon-sheweihuihuaqian"
62
+ }),
63
+ onClick: (a) => {
64
+ d(i, !1), a.stopPropagation();
65
+ },
66
+ style: {
67
+ color: "#9C24F2"
68
+ }
69
+ }) : /* @__PURE__ */ e(o, {
70
+ type: "link",
71
+ icon: /* @__PURE__ */ e(n, {
72
+ type: "icon-weisheweihuihuaqian"
73
+ }),
74
+ onClick: (a) => {
75
+ d(i, !0), a.stopPropagation();
76
+ }
77
+ }), /* @__PURE__ */ e(o, {
78
+ type: "link",
79
+ icon: /* @__PURE__ */ e(n, {
80
+ type: "icon-bianji2"
81
+ }),
82
+ onClick: (a) => {
83
+ var s;
84
+ m((s = i.data) == null ? void 0 : s.id, !0), a.stopPropagation();
85
+ }
86
+ }), /* @__PURE__ */ e(o, {
87
+ type: "link",
88
+ icon: /* @__PURE__ */ e(n, {
89
+ type: "icon-shanchu1"
90
+ }),
91
+ onClick: (a) => b(i, a)
92
+ })]
93
+ })]
94
+ })]
95
+ }), (v = i.data) != null && v.finialMessage ? /* @__PURE__ */ e("div", {
96
+ className: "item-answer",
97
+ children: i.data.finialMessage
98
+ }) : /* @__PURE__ */ e("div", {
99
+ style: {
100
+ height: "22px"
101
+ }
102
+ }), !!((F = i.data) != null && F.fileCount) && /* @__PURE__ */ e("div", {
103
+ className: "item-file",
104
+ children: /* @__PURE__ */ t(P, {
105
+ children: [u && /* @__PURE__ */ t("div", {
106
+ style: {
107
+ position: "relative"
108
+ },
109
+ children: [/* @__PURE__ */ e("img", {
110
+ className: "file-icon",
111
+ src: J[u]
112
+ }), i.data.fileStatus === 10 ? /* @__PURE__ */ e($, {
113
+ className: "file-status-icon success-file-icon"
114
+ }) : i.data.fileStatus === 20 ? /* @__PURE__ */ e(A, {
115
+ className: "file-status-icon failed-file-icon"
116
+ }) : i.data.fileStatus === 30 ? /* @__PURE__ */ e(_, {
117
+ indicator: /* @__PURE__ */ e(G, {
118
+ className: "file-status-icon loading-file-icon",
119
+ spin: !0
120
+ })
121
+ }) : /* @__PURE__ */ e(q, {})]
122
+ }), /* @__PURE__ */ e("span", {
123
+ className: "file-name",
124
+ children: (x = i.data) == null ? void 0 : x.lastFileName
125
+ }), /* @__PURE__ */ t(j, {
126
+ children: ["共 ", (E = i.data) == null ? void 0 : E.fileCount, " 个"]
127
+ })]
128
+ })
129
+ })]
130
+ })
131
+ }, (I = i.data) == null ? void 0 : I.id);
132
+ };
133
+ export {
134
+ ii as default
135
+ };
@@ -0,0 +1,130 @@
1
+ var b = (C, a, n) => new Promise((x, e) => {
2
+ var r = (i) => {
3
+ try {
4
+ m(n.next(i));
5
+ } catch (f) {
6
+ e(f);
7
+ }
8
+ }, h = (i) => {
9
+ try {
10
+ m(n.throw(i));
11
+ } catch (f) {
12
+ e(f);
13
+ }
14
+ }, m = (i) => i.done ? x(i.value) : Promise.resolve(i.value).then(r, h);
15
+ m((n = n.apply(C, a)).next());
16
+ });
17
+ import { jsx as p } from "react/jsx-runtime";
18
+ import { useContext as D, useState as I, useRef as N, useEffect as E } from "react";
19
+ import { Drawer as O, Spin as R, message as d } from "antd";
20
+ /* empty css */import { LoadingOutlined as j } from "@ant-design/icons";
21
+ import B from "./SessionItem.mjs";
22
+ import H from "../../../../../context.mjs";
23
+ const K = (C) => {
24
+ const {
25
+ currentSessionId: a,
26
+ onSessionChange: n,
27
+ onClose: x
28
+ } = C, {
29
+ agentClient: e,
30
+ popupContainer: r
31
+ } = D(H), [h, m] = I(!1), [i, f] = I(!1), [L, v] = I(""), [g, l] = I([]), o = N(g);
32
+ E(() => {
33
+ o.current = [], l(o.current), m(!0), e == null || e.getSessions().then((t) => b(void 0, null, function* () {
34
+ m(!1), o.current = [...t], l(o.current);
35
+ }));
36
+ }, []), E(() => {
37
+ g.length && a && setTimeout(() => {
38
+ var t;
39
+ (t = document.getElementById(a)) == null || t.scrollIntoView(!0);
40
+ }, 100);
41
+ }, [g]);
42
+ const w = (t, s) => {
43
+ e == null || e.removeSession(t, !0).then(() => b(void 0, null, function* () {
44
+ const c = g.filter((u) => {
45
+ var S, y;
46
+ return ((S = u.data) == null ? void 0 : S.id) !== ((y = t.data) == null ? void 0 : y.id);
47
+ });
48
+ t.data.id === a && n && n(""), d.config({
49
+ getContainer: () => (r == null ? void 0 : r.current) || document.body,
50
+ prefixCls: "gbot-message"
51
+ }), d.success("删除成功"), d.config({
52
+ getContainer: void 0,
53
+ prefixCls: "gbot-message"
54
+ }), o.current = [...c], l(o.current);
55
+ })), s == null || s.stopPropagation();
56
+ }, T = (t) => {
57
+ t && (n && n(t.sessionId, t), x());
58
+ }, _ = (t, s) => b(void 0, null, function* () {
59
+ try {
60
+ yield e == null ? void 0 : e.setTop(t.data.id, s), d.config({
61
+ getContainer: () => (r == null ? void 0 : r.current) || document.body,
62
+ prefixCls: "gbot-message"
63
+ }), d.success(`${s ? "" : "取消"}置顶成功`), d.config({
64
+ getContainer: void 0,
65
+ prefixCls: "gbot-message"
66
+ });
67
+ } catch (c) {
68
+ d.config({
69
+ getContainer: () => (r == null ? void 0 : r.current) || document.body,
70
+ prefixCls: "gbot-message"
71
+ }), d.error(`${s ? "" : "取消"}置顶失败`), d.config({
72
+ getContainer: void 0,
73
+ prefixCls: "gbot-message"
74
+ });
75
+ }
76
+ e == null || e.getSessions({
77
+ order: "top_time desc, sort_status desc, updated_at desc"
78
+ }).then((c) => b(void 0, null, function* () {
79
+ o.current = [...c], l(o.current);
80
+ }));
81
+ }), $ = (t, s) => {
82
+ s && (t.rename(s), t == null || t.addEventListener("data:updated", () => {
83
+ const c = o.current.map((u) => {
84
+ var S, y;
85
+ return ((S = u.data) == null ? void 0 : S.id) === ((y = u.data) == null ? void 0 : y.id), u;
86
+ });
87
+ o.current = [...c], l(o.current);
88
+ }));
89
+ }, z = (t, s) => {
90
+ f(s), v(t);
91
+ };
92
+ return /* @__PURE__ */ p(O, {
93
+ title: "会话历史记录",
94
+ open: !0,
95
+ placement: "bottom",
96
+ onClose: x,
97
+ className: `session-list-drawer ${h ? "loading-panel" : ""}`,
98
+ size: "large",
99
+ getContainer: () => (r == null ? void 0 : r.current) || document.body,
100
+ destroyOnClose: !0,
101
+ style: {
102
+ position: "absolute"
103
+ },
104
+ children: h ? /* @__PURE__ */ p(R, {
105
+ indicator: /* @__PURE__ */ p(j, {
106
+ style: {
107
+ fontSize: 24
108
+ },
109
+ spin: !0
110
+ })
111
+ }) : g.map((t, s) => {
112
+ var c;
113
+ return /* @__PURE__ */ p(B, {
114
+ session: t,
115
+ index: s,
116
+ currentSessionId: a,
117
+ onChangeSession: T,
118
+ onDelSession: w,
119
+ onTopSession: _,
120
+ onEditNameConfirm: $,
121
+ editSessionId: L,
122
+ isEdit: i,
123
+ onChangeEditStatus: z
124
+ }, (c = t.data) == null ? void 0 : c.id);
125
+ })
126
+ });
127
+ };
128
+ export {
129
+ K as default
130
+ };
@@ -0,0 +1,44 @@
1
+ import { jsxs as a, jsx as s } from "react/jsx-runtime";
2
+ import { Popover as p, Button as c } from "antd";
3
+ import { useState as m } from "react";
4
+ import f from "./HistorySessionList/index.mjs";
5
+ /* empty css */import d from "../../../../components/Iconfont/index.mjs";
6
+ const C = (o) => {
7
+ const {
8
+ currentSessionId: t,
9
+ disabled: i = !1,
10
+ onSessionChange: n
11
+ } = o, [r, e] = m(!1);
12
+ return /* @__PURE__ */ a("div", {
13
+ className: "session-list-component",
14
+ children: [/* @__PURE__ */ s(p, {
15
+ placement: "topRight",
16
+ showArrow: !1,
17
+ overlayClassName: "session-list-overlay",
18
+ overlayStyle: {
19
+ padding: "4px"
20
+ },
21
+ getPopupContainer: (l) => l.parentNode,
22
+ content: "会话历史记录",
23
+ children: /* @__PURE__ */ s(c, {
24
+ className: "list-overlay-action",
25
+ disabled: i,
26
+ type: "text",
27
+ icon: /* @__PURE__ */ s(d, {
28
+ type: "icon-lishijilu",
29
+ style: {
30
+ fontSize: 24
31
+ }
32
+ }),
33
+ onClick: () => e(!0)
34
+ })
35
+ }), r && /* @__PURE__ */ s(f, {
36
+ currentSessionId: t || "",
37
+ onSessionChange: n,
38
+ onClose: () => e(!1)
39
+ })]
40
+ });
41
+ };
42
+ export {
43
+ C as default
44
+ };
@@ -0,0 +1,50 @@
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { CloseCircleFilled as r } from "@ant-design/icons";
3
+ import { Modal as a, Button as o } from "antd";
4
+ /* empty css */const p = (t) => {
5
+ const {
6
+ isvisible: c,
7
+ onClose: l
8
+ } = t;
9
+ return /* @__PURE__ */ e(a, {
10
+ className: "clear-modal",
11
+ width: 340,
12
+ open: c,
13
+ title: /* @__PURE__ */ n("div", {
14
+ className: "title",
15
+ children: [/* @__PURE__ */ e(r, {
16
+ style: {
17
+ color: "#F33E3E",
18
+ fontSize: 20
19
+ }
20
+ }), /* @__PURE__ */ e("span", {
21
+ children: "确认清空所有文件"
22
+ })]
23
+ }),
24
+ centered: !0,
25
+ maskClosable: !1,
26
+ onCancel: () => {
27
+ l("cancel");
28
+ },
29
+ getContainer: document.getElementById("dialog-modal") || !1,
30
+ footer: [/* @__PURE__ */ e(o, {
31
+ onClick: () => {
32
+ l("cancel");
33
+ },
34
+ children: "暂时保留"
35
+ }, "cancel"), /* @__PURE__ */ e(o, {
36
+ type: "primary",
37
+ onClick: () => {
38
+ l("clear");
39
+ },
40
+ children: "继续清空"
41
+ }, "confirm")],
42
+ children: /* @__PURE__ */ e("div", {
43
+ className: "content",
44
+ children: "列表中的文件清空后不能恢复,请确认是否清空所有文件。"
45
+ })
46
+ });
47
+ };
48
+ export {
49
+ p as default
50
+ };