@glodon-aiot/agent-cli-ui 0.0.0-snapshot-20250729081352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +143 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +91 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +38 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +101 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +233 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +86 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +79 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +46 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +348 -0
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +135 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +124 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +50 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +394 -0
- package/dist/es/Dialog/AgentChat/index.mjs +906 -0
- package/dist/es/Dialog/SessionList/index.mjs +210 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +64 -0
- package/dist/es/Dialog/index.mjs +150 -0
- package/dist/es/Footer/FooterWarning.mjs +24 -0
- package/dist/es/Footer/index.mjs +17 -0
- package/dist/es/QuillEditor/index.mjs +222 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/_virtual/utilities.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/assets/think.svg.mjs +4 -0
- package/dist/es/components/FilePreview/index.mjs +82 -0
- package/dist/es/components/Greeting/index.mjs +30 -0
- package/dist/es/components/Iconfont/index.mjs +12 -0
- package/dist/es/components/JsonDisplay/index.mjs +15 -0
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +67 -0
- package/dist/es/components/KnowledgeList/index.mjs +73 -0
- package/dist/es/components/Recommend/RecommendItem.mjs +98 -0
- package/dist/es/components/Recommend/index.mjs +58 -0
- package/dist/es/components/Recommend/tip.svg.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +113 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/index.mjs +347 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +70 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +11 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +124 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +13 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +3 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/ccount/index.mjs +12 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +18 -0
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +14 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +8 -0
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +7 -0
- package/dist/es/node_modules/extend/index.mjs +46 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +162 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +47 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +298 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +22 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +10 -0
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +16 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/markdown-table/index.mjs +70 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +8 -0
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +584 -0
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +17 -0
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +136 -0
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +100 -0
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +61 -0
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +30 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +123 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +25 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +31 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +58 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +65 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +26 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +11 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +145 -0
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +49 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +40 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +50 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +7 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +14 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +67 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +29 -0
- package/dist/es/node_modules/micromark/lib/constructs.mjs +85 -0
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +225 -0
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +37 -0
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +133 -0
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +33 -0
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +103 -0
- package/dist/es/node_modules/micromark/lib/parse.mjs +32 -0
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +9 -0
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +40 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +74 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +18 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +42 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +30 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +94 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +45 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +50 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +80 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +46 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +144 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +102 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +152 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +22 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +19 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +14 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +90 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +62 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +25 -0
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +12 -0
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +193 -0
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +192 -0
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +68 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +71 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +24 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +147 -0
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +45 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +31 -0
- package/dist/es/node_modules/micromark-factory-label/index.mjs +28 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-title/index.mjs +26 -0
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +39 -0
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +10 -0
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +36 -0
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +18 -0
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +5 -0
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +6 -0
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +23 -0
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +65 -0
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +175 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-markdown/lib/index.mjs +153 -0
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +29 -0
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +34 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +9 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/rehype-raw/lib/index.mjs +26 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +251 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +249 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +125 -0
- package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +4 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +34 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +103 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +44 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +14 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +2308 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +220 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +2 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +1948 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +92 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +173 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +27 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +23 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +51 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +11 -0
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +22 -0
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +18 -0
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +93 -0
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +25 -0
- package/dist/es/node_modules/trim-lines/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +25 -0
- package/dist/es/node_modules/unified/lib/index.mjs +525 -0
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +7 -0
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +9 -0
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +61 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +26 -0
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +15 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/vfile/lib/index.mjs +401 -0
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +120 -0
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +9 -0
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +35 -0
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +7 -0
- package/dist/es/node_modules/vfile-message/lib/index.mjs +106 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/node_modules/zwitch/index.mjs +18 -0
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +8 -0
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +43 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +42 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +64 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +56 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +19 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +68 -0
- package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/es/src/global.css +1 -0
- package/dist/es/src/image-viewer.css +1 -0
- package/dist/es/src/katex.min.css +1 -0
- package/dist/es/src/mask.css +1 -0
- package/dist/es/src/safe-area.css +1 -0
- package/dist/es/src/style.css +1 -0
- package/dist/es/src/style10.css +1 -0
- package/dist/es/src/style11.css +1 -0
- package/dist/es/src/style12.css +1 -0
- package/dist/es/src/style13.css +1 -0
- package/dist/es/src/style14.css +1 -0
- package/dist/es/src/style15.css +1 -0
- package/dist/es/src/style16.css +1 -0
- package/dist/es/src/style17.css +1 -0
- package/dist/es/src/style18.css +1 -0
- package/dist/es/src/style19.css +1 -0
- package/dist/es/src/style2.css +1 -0
- package/dist/es/src/style20.css +1 -0
- package/dist/es/src/style21.css +1 -0
- package/dist/es/src/style22.css +1 -0
- package/dist/es/src/style23.css +1 -0
- package/dist/es/src/style24.css +1 -0
- package/dist/es/src/style25.css +1 -0
- package/dist/es/src/style26.css +1 -0
- package/dist/es/src/style27.css +1 -0
- package/dist/es/src/style28.css +1 -0
- package/dist/es/src/style29.css +1 -0
- package/dist/es/src/style3.css +1 -0
- package/dist/es/src/style4.css +1 -0
- package/dist/es/src/style5.css +1 -0
- package/dist/es/src/style6.css +1 -0
- package/dist/es/src/style7.css +1 -0
- package/dist/es/src/style8.css +1 -0
- package/dist/es/src/style9.css +1 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/index.mjs +37 -0
- package/dist/lib/index.css +1 -0
- package/dist/lib/index.js +317 -0
- package/dist/src/AgentClientUI.d.ts +4 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +18 -0
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
- package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +19 -0
- package/dist/src/Dialog/SessionList/index.d.ts +21 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +8 -0
- package/dist/src/QuillEditor/index.d.ts +20 -0
- package/dist/src/ReactTextGenerationUI/components/TextSiders/index.d.ts +21 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/index.d.ts +4 -0
- package/dist/src/components/FilePreview/index.d.ts +20 -0
- package/dist/src/components/Greeting/index.d.ts +8 -0
- package/dist/src/components/Header/index.d.ts +7 -0
- package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/components/Iconfont/index.d.ts +2 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/components/KnowledgeList/index.d.ts +10 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/components/Recommend/index.d.ts +14 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +17 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/types.d.ts +228 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +25 -0
- package/package.json +141 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useContext as v, useEffect as y } from "react";
|
|
3
|
+
/* empty css */import { Space as N, message as a, Typography as p } from "antd";
|
|
4
|
+
import r from "classnames";
|
|
5
|
+
import { getFileExtension as q } from "../../utils/index.mjs";
|
|
6
|
+
import x from "../../context.mjs";
|
|
7
|
+
import { FILE_ICONS as C } from "../../constant.mjs";
|
|
8
|
+
const j = (f) => {
|
|
9
|
+
var u;
|
|
10
|
+
const {
|
|
11
|
+
item: e,
|
|
12
|
+
isRecommendClearing: g,
|
|
13
|
+
isOnlyQuestion: i,
|
|
14
|
+
question: o,
|
|
15
|
+
setQuestion: c,
|
|
16
|
+
onItemClick: s
|
|
17
|
+
} = f, [n, m] = h(!1), {
|
|
18
|
+
popupContainer: l
|
|
19
|
+
} = v(x);
|
|
20
|
+
return y(() => {
|
|
21
|
+
e && (!e.icon && !e.file.url && !e.name ? m(!0) : m(!1));
|
|
22
|
+
}, [e]), /* @__PURE__ */ d(N, {
|
|
23
|
+
direction: "vertical",
|
|
24
|
+
size: i || !i && n ? 0 : 4,
|
|
25
|
+
className: r({
|
|
26
|
+
"question-pannel": !0,
|
|
27
|
+
"question-pannel__active": (o == null ? void 0 : o.id) === e.id,
|
|
28
|
+
"multiline-question-pannel": !i && n
|
|
29
|
+
}),
|
|
30
|
+
onClick: () => {
|
|
31
|
+
if (g) {
|
|
32
|
+
a.config({
|
|
33
|
+
getContainer: () => (l == null ? void 0 : l.current) || document.body
|
|
34
|
+
}), a.error("请稍后"), a.config({
|
|
35
|
+
getContainer: void 0
|
|
36
|
+
});
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
(o == null ? void 0 : o.id) === e.id ? (c(void 0), s == null || s(void 0)) : (c(e), s == null || s(e));
|
|
40
|
+
},
|
|
41
|
+
children: [/* @__PURE__ */ d("div", {
|
|
42
|
+
className: r({
|
|
43
|
+
"question-top": !0,
|
|
44
|
+
"not-have-top": i || !i && n
|
|
45
|
+
}),
|
|
46
|
+
children: [!!(e != null && e.icon) && /* @__PURE__ */ t("div", {
|
|
47
|
+
className: "question-top-tip",
|
|
48
|
+
children: /* @__PURE__ */ t("img", {
|
|
49
|
+
src: e.icon,
|
|
50
|
+
alt: ""
|
|
51
|
+
})
|
|
52
|
+
}), /* @__PURE__ */ t("div", {
|
|
53
|
+
className: "question-top-title",
|
|
54
|
+
children: /* @__PURE__ */ t(p.Paragraph, {
|
|
55
|
+
style: {
|
|
56
|
+
margin: 0,
|
|
57
|
+
width: "100%"
|
|
58
|
+
},
|
|
59
|
+
ellipsis: {
|
|
60
|
+
rows: 1,
|
|
61
|
+
tooltip: e == null ? void 0 : e.name
|
|
62
|
+
},
|
|
63
|
+
children: e.name
|
|
64
|
+
})
|
|
65
|
+
}), /* @__PURE__ */ t("div", {
|
|
66
|
+
className: r({
|
|
67
|
+
"question-top-type": !0,
|
|
68
|
+
"question-only-plus-file": !i && !e.icon && !e.name
|
|
69
|
+
}),
|
|
70
|
+
children: !!((u = e.file) != null && u.url) && /* @__PURE__ */ t("img", {
|
|
71
|
+
className: "file-icon",
|
|
72
|
+
src: C[q(e.file.url) || ""]
|
|
73
|
+
})
|
|
74
|
+
})]
|
|
75
|
+
}), /* @__PURE__ */ t("div", {
|
|
76
|
+
className: r({
|
|
77
|
+
"question-bottom": !0,
|
|
78
|
+
"multiline-question": !i && n
|
|
79
|
+
}),
|
|
80
|
+
children: /* @__PURE__ */ t(p.Paragraph, {
|
|
81
|
+
style: {
|
|
82
|
+
margin: 0,
|
|
83
|
+
width: "100%"
|
|
84
|
+
},
|
|
85
|
+
ellipsis: {
|
|
86
|
+
rows: !i && n ? 3 : 1,
|
|
87
|
+
tooltip: {
|
|
88
|
+
overlayClassName: "recommend-tooltip-overlay"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
children: e == null ? void 0 : e.question
|
|
92
|
+
})
|
|
93
|
+
})]
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
export {
|
|
97
|
+
j as default
|
|
98
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I, useState as r, useImperativeHandle as Q, useEffect as l } from "react";
|
|
3
|
+
/* empty css */import { Space as g, Row as w, Col as N } from "antd";
|
|
4
|
+
import q from "./tip.svg.mjs";
|
|
5
|
+
import v from "./RecommendItem.mjs";
|
|
6
|
+
const x = I((a, u) => {
|
|
7
|
+
const {
|
|
8
|
+
onItemClick: f,
|
|
9
|
+
data: s,
|
|
10
|
+
isRecommendClearing: p
|
|
11
|
+
} = a, [e, d] = r(), [h, i] = r(), [R, m] = r(!1);
|
|
12
|
+
return Q(u, () => ({
|
|
13
|
+
clear() {
|
|
14
|
+
i(void 0);
|
|
15
|
+
}
|
|
16
|
+
})), l(() => {
|
|
17
|
+
if (s != null && s.length) {
|
|
18
|
+
d(s);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
}, [s]), l(() => {
|
|
22
|
+
if (!e)
|
|
23
|
+
return;
|
|
24
|
+
const o = e.find((n) => n.file.url || n.icon || n.name);
|
|
25
|
+
m(!o);
|
|
26
|
+
}, [e]), /* @__PURE__ */ c("div", {
|
|
27
|
+
className: "questions",
|
|
28
|
+
children: [/* @__PURE__ */ c(g, {
|
|
29
|
+
size: 8,
|
|
30
|
+
className: "question-tip",
|
|
31
|
+
children: [/* @__PURE__ */ t("img", {
|
|
32
|
+
src: q,
|
|
33
|
+
alt: ""
|
|
34
|
+
}), /* @__PURE__ */ t("span", {
|
|
35
|
+
children: "请试试这样提问:"
|
|
36
|
+
})]
|
|
37
|
+
}), /* @__PURE__ */ t(w, {
|
|
38
|
+
gutter: [12, 12],
|
|
39
|
+
wrap: !0,
|
|
40
|
+
className: "question-row",
|
|
41
|
+
children: e == null ? void 0 : e.map((o, n) => /* @__PURE__ */ t(N, {
|
|
42
|
+
span: 12,
|
|
43
|
+
children: /* @__PURE__ */ t(v, {
|
|
44
|
+
item: o,
|
|
45
|
+
isRecommendClearing: p,
|
|
46
|
+
isOnlyQuestion: R,
|
|
47
|
+
question: h,
|
|
48
|
+
setQuestion: i,
|
|
49
|
+
onItemClick: f
|
|
50
|
+
})
|
|
51
|
+
}, n))
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
x.displayName = "Recommend";
|
|
56
|
+
export {
|
|
57
|
+
x as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const M = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMuNzUgNS43ODE0N0MzLjc1IDQuNzgyNzcgNC4xMTQwMiA0LjIxMjA2IDQuNTM2NDggMy45NTQ4QzQuOTYyNTUgMy42OTUzNSA1LjY1NTQzIDMuNjI4MTkgNi41NzYgNC4wNzg3NUw2LjU3NjMyIDQuMDc4OTFMMTAuNTcxNiA2LjA0MDUxTDEwLjU3MjQgNi4wNDA4OEMxMC44NTIgNi4xNzc3OSAxMS4xNDk1IDYuNDU0NjcgMTEuMzc5MiA2LjgxOTA4QzExLjYwOTIgNy4xODM5NyAxMS43MjcyIDcuNTY2NzMgMTEuNzI3MiA3Ljg2OTM2VjEwLjU1MzhDMTEuNzI2OSAxMC41NjE5IDExLjcyNjggMTAuNTcwMSAxMS43MjY4IDEwLjU3ODRWMjAuMjUwN0g0Ljg5OTA0QzQuMjU1MTkgMjAuMjUwNyAzLjc1IDE5LjczNTUgMy43NSAxOS4xMzc2VjUuNzgxNDdaTTEyLjQ4NzIgMjEuNzUwN0gxOC4xNTU5QzE5LjIyOSAyMS43NTA3IDIwLjE3MiAyMS41MDMzIDIwLjgzNzMgMjAuODM4QzIxLjUwMjYgMjAuMTcyNyAyMS43NSAxOS4yMjk4IDIxLjc1IDE4LjE1NjdWMTQuNzU0NkwyMS43NSAxNC43NDM0QzIxLjc1MDEgMTQuNjk3NSAyMS43NTAzIDE0LjYxNCAyMS43MzkyIDE0LjUxOTlDMjEuNzAwOCAxMy41MjkxIDIxLjM5MzkgMTIuNzYxNiAyMC44NDE4IDEyLjIwNDhDMjAuMjk5MyAxMS42NTc3IDE5LjU5OTEgMTEuMzk1MyAxOC45Mzg2IDExLjI1MDFMMTguOTM3OSAxMS4yNDk5TDE3LjExNDIgMTAuODQ1N0wxNy4xMTIyIDEwLjg0NTJMMTMuMjI3MiA5Ljk3MzI3VjcuODY5MzZDMTMuMjI3MiA3LjIxNzk2IDEyLjk4OTcgNi41NjExOSAxMi42NDgyIDYuMDE5MjlDMTIuMzA2NCA1LjQ3Njk5IDExLjgxNjUgNC45Nzk5MSAxMS4yMzIyIDQuNjkzNzlMMTEuMjMyIDQuNjkzNjdMNy4yMzY2MiAyLjczMjA2TDcuMjM1ODQgMi43MzE2OEM2LjAwNTUzIDIuMTI5MzkgNC43NDU0OCAyLjA3MTMgMy43NTYzMiAyLjY3MzY1QzIuNzYzNDkgMy4yNzgyMyAyLjI1IDQuNDIyMTEgMi4yNSA1Ljc4MTQ3VjE5LjEzNzZDMi4yNSAyMC41OTE4IDMuNDU0ODQgMjEuNzUwNyA0Ljg5OTA0IDIxLjc1MDdIMTIuNDc3MkMxMi40ODA1IDIxLjc1MDcgMTIuNDgzOSAyMS43NTA3IDEyLjQ4NzIgMjEuNzUwN1pNMTMuMjI3MiAyMC4yNTA3VjExLjUxMDZMMTYuNzg1NyAxMi4zMDkzTDE2Ljc4NzYgMTIuMzA5N0wxOC42MTQ2IDEyLjcxNDdMMTguNjE2IDEyLjcxNUMxOS4xNDMzIDEyLjgzMDggMTkuNTIyOCAxMy4wMDUgMTkuNzc2NiAxMy4yNjFDMjAuMDEzNiAxMy41IDIwLjIxODkgMTMuODg5MyAyMC4yNDE0IDE0LjYwN0MyMC4yNDIzIDE0LjYzNjkgMjAuMjQ1IDE0LjY2NjYgMjAuMjQ5NSAxNC42OTYyQzIwLjI0OTYgMTQuNzAwMSAyMC4yNDk4IDE0LjcwNjIgMjAuMjQ5OSAxNC43MTZMMjAuMjUgMTQuNzU0NlYxOC4xNTY3QzIwLjI1IDE5LjAyNzYgMjAuMDQ3MyAxOS41MDY3IDE5Ljc3NjcgMTkuNzc3M0MxOS41MDYgMjAuMDQ4IDE5LjAyNjkgMjAuMjUwNyAxOC4xNTU5IDIwLjI1MDdIMTMuMjI3MloiIGZpbGw9IiMwNzBDMTQiLz4KPHBhdGggZD0iTTUuNDI2NzYgOS4zMDA1NEM1LjQyNjc2IDguODg2MzIgNS43NjI1NCA4LjU1MDU0IDYuMTc2NzYgOC41NTA1NEg5LjI5OTgzQzkuNzE0MDQgOC41NTA1NCAxMC4wNDk4IDguODg2MzIgMTAuMDQ5OCA5LjMwMDU0QzEwLjA0OTggOS43MTQ3NSA5LjcxNDA0IDEwLjA1MDUgOS4yOTk4MyAxMC4wNTA1SDYuMTc2NzZDNS43NjI1NCAxMC4wNTA1IDUuNDI2NzYgOS43MTQ3NSA1LjQyNjc2IDkuMzAwNTRaTTUuNDI2NzYgMTIuOTAwNUM1LjQyNjc2IDEyLjQ4NjMgNS43NjI1NCAxMi4xNTA1IDYuMTc2NzYgMTIuMTUwNUg5LjI5OTgzQzkuNzE0MDQgMTIuMTUwNSAxMC4wNDk4IDEyLjQ4NjMgMTAuMDQ5OCAxMi45MDA1QzEwLjA0OTggMTMuMzE0NyA5LjcxNDA0IDEzLjY1MDUgOS4yOTk4MyAxMy42NTA1SDYuMTc2NzZDNS43NjI1NCAxMy42NTA1IDUuNDI2NzYgMTMuMzE0NyA1LjQyNjc2IDEyLjkwMDVaTTE0LjkyNTIgMTYuNTAwNkMxNi4wNDEyIDE2LjUwMDYgMTYuOTUwMiAxNS41OTE1IDE2Ljk1MDIgMTQuNDc1NVYxMS41Nzc1TDEyLjkwMDEgMTAuNjY4NVYxNC40NzU1QzEyLjkwMDEgMTUuNTkxNSAxMy44MDgzIDE2LjUwMDYgMTQuOTI1MiAxNi41MDA2WiIgZmlsbD0iI0I0NTJGRiIvPgo8cGF0aCBkPSJNMTguOTc1MiAxNi41MDA4QzE3Ljg1ODMgMTYuNTAwOCAxNi45NTAyIDE1LjU5MTggMTYuOTUwMiAxNC40NzU3VjExLjU3NzdMMTguNzc3MiAxMS45ODI3QzE5Ljk2NTMgMTIuMjQzNyAyMC45MzczIDEyLjg1NTggMjAuOTkxMyAxNC41ODM4QzIwLjkzNzMgMTUuNjQ1OSAyMC4wNTUzIDE2LjUwMDggMTguOTc1MiAxNi41MDA4WiIgZmlsbD0iI0Q3QThGRiIvPgo8L3N2Zz4K";
|
|
2
|
+
export {
|
|
3
|
+
M as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Space as s, Typography as c } from "antd";
|
|
3
|
+
const {
|
|
4
|
+
Text: h
|
|
5
|
+
} = c, a = (r) => {
|
|
6
|
+
const {
|
|
7
|
+
href: i,
|
|
8
|
+
onClick: e
|
|
9
|
+
} = r, t = new URL(i).origin;
|
|
10
|
+
return /* @__PURE__ */ n(s, {
|
|
11
|
+
onClick: e,
|
|
12
|
+
children: [/* @__PURE__ */ o("img", {
|
|
13
|
+
style: {
|
|
14
|
+
width: 16,
|
|
15
|
+
height: 16
|
|
16
|
+
},
|
|
17
|
+
src: `${t}/favicon.ico`
|
|
18
|
+
}), /* @__PURE__ */ o(h, {
|
|
19
|
+
ellipsis: !0,
|
|
20
|
+
children: i
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
a as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import e from "./assets/icon.svg.mjs";
|
|
2
|
+
import t from "./assets/brand.svg.mjs";
|
|
3
|
+
import o from "./assets/doc-icons/pdf.svg.mjs";
|
|
4
|
+
import r from "./assets/doc-icons/doc.svg.mjs";
|
|
5
|
+
import n from "./assets/doc-icons/docx.svg.mjs";
|
|
6
|
+
const u = {
|
|
7
|
+
triggerButton: {
|
|
8
|
+
visible: !0
|
|
9
|
+
},
|
|
10
|
+
open: !1,
|
|
11
|
+
size: {
|
|
12
|
+
width: 450,
|
|
13
|
+
height: "100%",
|
|
14
|
+
maxWidth: "100%",
|
|
15
|
+
maxHeight: "100%",
|
|
16
|
+
minWidth: 450
|
|
17
|
+
},
|
|
18
|
+
resizable: !0,
|
|
19
|
+
theme: {
|
|
20
|
+
primaryColor: "#9C24F2"
|
|
21
|
+
},
|
|
22
|
+
icon: e,
|
|
23
|
+
logo: t,
|
|
24
|
+
greeting: "今天我能帮你什么?",
|
|
25
|
+
getContainer: () => document.body,
|
|
26
|
+
history: !1,
|
|
27
|
+
showHeader: !0,
|
|
28
|
+
debug: !1,
|
|
29
|
+
env: "prod",
|
|
30
|
+
transform: {
|
|
31
|
+
greet: !0,
|
|
32
|
+
sessionList: !0,
|
|
33
|
+
sessionOpen: !0,
|
|
34
|
+
fileUpload: !0,
|
|
35
|
+
imageUpload: !0,
|
|
36
|
+
connectNetwork: !1,
|
|
37
|
+
userCopy: !0,
|
|
38
|
+
userEdit: !0,
|
|
39
|
+
userPrompt: !0,
|
|
40
|
+
prompt: !0,
|
|
41
|
+
relate: !0,
|
|
42
|
+
again: !0,
|
|
43
|
+
metadata: !1,
|
|
44
|
+
reference: {
|
|
45
|
+
iconVisible: !0,
|
|
46
|
+
referenceFirst: !1,
|
|
47
|
+
isExpand: !1
|
|
48
|
+
},
|
|
49
|
+
searchReference: {
|
|
50
|
+
openTarget: "_blank"
|
|
51
|
+
},
|
|
52
|
+
promptVariables: !0
|
|
53
|
+
},
|
|
54
|
+
features: {
|
|
55
|
+
greeting: !0,
|
|
56
|
+
sessionList: !0,
|
|
57
|
+
newSession: !0,
|
|
58
|
+
fileUpload: !0,
|
|
59
|
+
//dialog only
|
|
60
|
+
imageUpload: !0,
|
|
61
|
+
//agent only
|
|
62
|
+
userMessageBox: {
|
|
63
|
+
copy: !0,
|
|
64
|
+
editAgain: !0
|
|
65
|
+
},
|
|
66
|
+
botMessageBox: {
|
|
67
|
+
referenceFirst: !1,
|
|
68
|
+
//dialog only
|
|
69
|
+
reference: {
|
|
70
|
+
file: !0,
|
|
71
|
+
itemExpanded: !1
|
|
72
|
+
},
|
|
73
|
+
searchReference: {
|
|
74
|
+
openTarget: "_blank"
|
|
75
|
+
},
|
|
76
|
+
relatedQuesions: !0,
|
|
77
|
+
// dialog only
|
|
78
|
+
footer: {
|
|
79
|
+
items: [{
|
|
80
|
+
componentName: "AnswerAgain",
|
|
81
|
+
position: "left"
|
|
82
|
+
}, {
|
|
83
|
+
componentName: "Copy",
|
|
84
|
+
position: "left"
|
|
85
|
+
}, {
|
|
86
|
+
componentName: "Comments",
|
|
87
|
+
position: "right"
|
|
88
|
+
}]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
connectNetwork: !1,
|
|
92
|
+
prompts: !0,
|
|
93
|
+
promptVariables: !0
|
|
94
|
+
},
|
|
95
|
+
defaultInput: {
|
|
96
|
+
text: ""
|
|
97
|
+
}
|
|
98
|
+
}, c = "https://copilot.glodon.com/api/cvforcepd", f = "https://copilot.glodon.com/portal/_/aecpilot/fe/", m = 1024, d = 1024 * 1024, g = 1024 * 1024 * 1024, h = {
|
|
99
|
+
doc: r,
|
|
100
|
+
docx: n,
|
|
101
|
+
pdf: o
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
h as FILE_ICONS,
|
|
105
|
+
g as GB,
|
|
106
|
+
m as KB,
|
|
107
|
+
d as MB,
|
|
108
|
+
t as brand,
|
|
109
|
+
c as defaultApiUrl,
|
|
110
|
+
f as defaultDovViewerUrl,
|
|
111
|
+
u as defaultUIConfig,
|
|
112
|
+
e as icon
|
|
113
|
+
};
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
var Z = Object.defineProperty, q = Object.defineProperties;
|
|
2
|
+
var ee = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var J = Object.getOwnPropertySymbols;
|
|
4
|
+
var ie = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (g, i, s) => i in g ? Z(g, i, { enumerable: !0, configurable: !0, writable: !0, value: s }) : g[i] = s, o = (g, i) => {
|
|
6
|
+
for (var s in i || (i = {}))
|
|
7
|
+
ie.call(i, s) && w(g, s, i[s]);
|
|
8
|
+
if (J)
|
|
9
|
+
for (var s of J(i))
|
|
10
|
+
te.call(i, s) && w(g, s, i[s]);
|
|
11
|
+
return g;
|
|
12
|
+
}, m = (g, i) => q(g, ee(i));
|
|
13
|
+
var a = (g, i, s) => (w(g, typeof i != "symbol" ? i + "" : i, s), s);
|
|
14
|
+
import { jsx as Q, Fragment as oe } from "react/jsx-runtime";
|
|
15
|
+
import l from "lodash/merge";
|
|
16
|
+
import G from "react-dom";
|
|
17
|
+
import se from "./AgentClientUI.mjs";
|
|
18
|
+
import { notification as K } from "antd";
|
|
19
|
+
import ne from "axios";
|
|
20
|
+
import { defaultUIConfig as re, defaultApiUrl as he, defaultDovViewerUrl as ae } from "./constant.mjs";
|
|
21
|
+
import { ApiUrl as ge } from "./types.mjs";
|
|
22
|
+
/* empty css */import { BotClientApi as le } from "@glodon-aiot/apis";
|
|
23
|
+
import { JWT as de, isExpired as fe } from "./utils/index.mjs";
|
|
24
|
+
const b = {};
|
|
25
|
+
class xe {
|
|
26
|
+
constructor(i) {
|
|
27
|
+
a(this, "_token");
|
|
28
|
+
a(this, "_activeSession", null);
|
|
29
|
+
a(this, "_applicationId");
|
|
30
|
+
a(this, "_defaultInputText", "");
|
|
31
|
+
a(this, "_inputDisabled", !1);
|
|
32
|
+
a(this, "_defatulSessionId", "");
|
|
33
|
+
a(this, "apiUrl");
|
|
34
|
+
a(this, "docViewerUrl");
|
|
35
|
+
a(this, "env", "prod");
|
|
36
|
+
a(this, "service");
|
|
37
|
+
a(this, "rId", 0);
|
|
38
|
+
a(this, "_mode", "float");
|
|
39
|
+
a(this, "uiConfig", re);
|
|
40
|
+
a(this, "errorHandlers", {});
|
|
41
|
+
a(this, "wrapper", document.createElement("div"));
|
|
42
|
+
var _, y, x, U, S, B, H, z, L, M, V, A, N, E, F, D, j, T, R, W, $, O, P;
|
|
43
|
+
const {
|
|
44
|
+
env: s,
|
|
45
|
+
token: d,
|
|
46
|
+
mode: f = "float",
|
|
47
|
+
triggerButton: p,
|
|
48
|
+
size: h,
|
|
49
|
+
apiUrl: n,
|
|
50
|
+
docViewerUrl: t,
|
|
51
|
+
errorHandlers: r,
|
|
52
|
+
features: e,
|
|
53
|
+
sessionId: u,
|
|
54
|
+
icon: X,
|
|
55
|
+
logo: Y
|
|
56
|
+
// greeting,
|
|
57
|
+
} = i;
|
|
58
|
+
this.uiConfig.icon = X || this.uiConfig.icon, this.uiConfig.logo = Y || this.uiConfig.logo, (e == null ? void 0 : e.greeting) !== void 0 && (typeof e.greeting == "object" ? this.uiConfig.features = m(o({}, this.uiConfig.features), {
|
|
59
|
+
greeting: o(o({}, typeof ((_ = this.uiConfig.features) == null ? void 0 : _.greeting) != "object" ? {} : (y = this.uiConfig.features) == null ? void 0 : y.greeting), e.greeting)
|
|
60
|
+
}) : this.uiConfig.features = m(o({}, this.uiConfig.features), {
|
|
61
|
+
greeting: e.greeting
|
|
62
|
+
})), console.log("this.uiConfig.features?.greeting", (x = this.uiConfig.features) == null ? void 0 : x.greeting), this._token = d, this.rId = 0, this._defatulSessionId = u, this.errorHandlers = o(o({}, this.errorHandlers), r);
|
|
63
|
+
const k = {
|
|
64
|
+
sessionOpen: f === "float",
|
|
65
|
+
sessionList: f === "float"
|
|
66
|
+
}, I = (B = (S = (U = e == null ? void 0 : e.botMessageBox) == null ? void 0 : U.footer) == null ? void 0 : S.items) == null ? void 0 : B.find((c) => c.componentName === "AnswerAgain");
|
|
67
|
+
(L = (z = (H = e == null ? void 0 : e.botMessageBox) == null ? void 0 : H.footer) == null ? void 0 : z.items) == null || L.find((c) => c.componentName === "Copy");
|
|
68
|
+
const C = {
|
|
69
|
+
sessionList: e == null ? void 0 : e.sessionList,
|
|
70
|
+
sessionOpen: e == null ? void 0 : e.newSession,
|
|
71
|
+
fileUpload: e == null ? void 0 : e.fileUpload,
|
|
72
|
+
userCopy: (M = e == null ? void 0 : e.userMessageBox) == null ? void 0 : M.copy,
|
|
73
|
+
userEdit: (V = e == null ? void 0 : e.userMessageBox) == null ? void 0 : V.editAgain,
|
|
74
|
+
userPrompt: e == null ? void 0 : e.fileUpload,
|
|
75
|
+
prompt: e == null ? void 0 : e.prompts,
|
|
76
|
+
relate: (A = e == null ? void 0 : e.botMessageBox) == null ? void 0 : A.relatedQuesions,
|
|
77
|
+
again: !(I && I.visible === !1),
|
|
78
|
+
reference: {
|
|
79
|
+
iconVisible: (E = (N = e == null ? void 0 : e.botMessageBox) == null ? void 0 : N.reference) == null ? void 0 : E.file,
|
|
80
|
+
referenceFirst: (F = e == null ? void 0 : e.botMessageBox) == null ? void 0 : F.referenceFirst,
|
|
81
|
+
isExpand: (j = (D = e == null ? void 0 : e.botMessageBox) == null ? void 0 : D.reference) == null ? void 0 : j.itemExpanded
|
|
82
|
+
},
|
|
83
|
+
searchReference: (T = e == null ? void 0 : e.botMessageBox) == null ? void 0 : T.searchReference,
|
|
84
|
+
knowledges: !!(e != null && e.knowledges),
|
|
85
|
+
metadata: e == null ? void 0 : e.metadata,
|
|
86
|
+
greet: (e == null ? void 0 : e.greeting) !== !1,
|
|
87
|
+
imageUpload: e == null ? void 0 : e.imageUpload,
|
|
88
|
+
promptVariables: (e == null ? void 0 : e.promptVariables) === void 0 ? (R = this.uiConfig.transform) == null ? void 0 : R.promptVariables : (e == null ? void 0 : e.promptVariables) === !0 || typeof (e == null ? void 0 : e.promptVariables) == "object" && ((W = e == null ? void 0 : e.promptVariables) == null ? void 0 : W.visible) !== !1 ? ($ = this.uiConfig.transform) == null ? void 0 : $.promptVariables : !1,
|
|
89
|
+
connectNetwork: (e == null ? void 0 : e.connectNetwork) === void 0 ? (O = this.uiConfig.transform) == null ? void 0 : O.connectNetwork : (e == null ? void 0 : e.connectNetwork) === !0 || (typeof (e == null ? void 0 : e.connectNetwork) == "object" && typeof (e == null ? void 0 : e.connectNetwork.visible) == "boolean" ? e == null ? void 0 : e.connectNetwork.visible : (P = this.uiConfig.transform) == null ? void 0 : P.connectNetwork)
|
|
90
|
+
}, v = {
|
|
91
|
+
sider: f === "inlay"
|
|
92
|
+
};
|
|
93
|
+
if (i.header !== void 0 && (v.showHeader = !!i.header), i.sider !== void 0 && (v.sider = !!i.sider), Object.keys(C).forEach((c) => {
|
|
94
|
+
C[c] === void 0 && delete C[c];
|
|
95
|
+
}), f === "inlay") {
|
|
96
|
+
const c = {
|
|
97
|
+
triggerButton: l({
|
|
98
|
+
visible: !1
|
|
99
|
+
}, p),
|
|
100
|
+
open: !0,
|
|
101
|
+
resizable: !1,
|
|
102
|
+
size: l({
|
|
103
|
+
width: "100%",
|
|
104
|
+
height: "100%",
|
|
105
|
+
maxWidth: "100%",
|
|
106
|
+
maxHeight: "100%",
|
|
107
|
+
minWidth: "100%"
|
|
108
|
+
}, h),
|
|
109
|
+
theme: l(this.uiConfig.theme, b),
|
|
110
|
+
history: !0
|
|
111
|
+
};
|
|
112
|
+
this.uiConfig = m(o(o(o(o({}, this.uiConfig), i), c), v), {
|
|
113
|
+
transform: o(o(o(o({}, this.uiConfig.transform), k), i.transform), C)
|
|
114
|
+
}), this.wrapper = this.uiConfig.getContainer();
|
|
115
|
+
} else {
|
|
116
|
+
const c = {
|
|
117
|
+
triggerButton: l(this.uiConfig.triggerButton, p),
|
|
118
|
+
size: l(this.uiConfig.size, o({}, h)),
|
|
119
|
+
theme: l(this.uiConfig.theme, b)
|
|
120
|
+
};
|
|
121
|
+
this.uiConfig = m(o(o(o(o(o({}, this.uiConfig), i), c), v), C), {
|
|
122
|
+
transform: o(o(o(o({}, this.uiConfig.transform), k), i.transform), C)
|
|
123
|
+
}), this.uiConfig.getContainer().append(this.wrapper);
|
|
124
|
+
}
|
|
125
|
+
this._mode = f, this.env = s || "prod", this._applicationId = de(d).rid, this.apiUrl = n || ge[this.env] || he, this.docViewerUrl = t || ae, this.service = this.setService(), this.render();
|
|
126
|
+
}
|
|
127
|
+
get token() {
|
|
128
|
+
return this._token;
|
|
129
|
+
}
|
|
130
|
+
set token(i) {
|
|
131
|
+
this._token = i, this.reload();
|
|
132
|
+
}
|
|
133
|
+
get mode() {
|
|
134
|
+
return this._mode;
|
|
135
|
+
}
|
|
136
|
+
set mode(i) {
|
|
137
|
+
if (i === "inlay") {
|
|
138
|
+
const s = {
|
|
139
|
+
triggerButton: l({
|
|
140
|
+
visible: !1
|
|
141
|
+
}, this.uiConfig.triggerButton),
|
|
142
|
+
open: !0,
|
|
143
|
+
resizable: !1,
|
|
144
|
+
size: l({
|
|
145
|
+
width: "100%",
|
|
146
|
+
height: "100%",
|
|
147
|
+
maxWidth: "100%",
|
|
148
|
+
maxHeight: "100%",
|
|
149
|
+
minWidth: "100%"
|
|
150
|
+
}, this.uiConfig.size),
|
|
151
|
+
theme: l(this.uiConfig.theme, b),
|
|
152
|
+
history: !0
|
|
153
|
+
};
|
|
154
|
+
this.uiConfig = o(o({}, this.uiConfig), s), this.wrapper = this.uiConfig.getContainer();
|
|
155
|
+
} else {
|
|
156
|
+
const s = {
|
|
157
|
+
triggerButton: l(this.uiConfig.triggerButton, this.uiConfig.triggerButton),
|
|
158
|
+
size: l(this.uiConfig.size, o({}, this.uiConfig.size)),
|
|
159
|
+
theme: l(this.uiConfig.theme, b)
|
|
160
|
+
};
|
|
161
|
+
this.uiConfig = o(o({}, this.uiConfig), s), this._mode === "inlay" && this.wrapper.remove(), this.uiConfig.getContainer().append(this.wrapper);
|
|
162
|
+
}
|
|
163
|
+
this._mode = i;
|
|
164
|
+
}
|
|
165
|
+
get activeSession() {
|
|
166
|
+
return this._activeSession;
|
|
167
|
+
}
|
|
168
|
+
get applicationId() {
|
|
169
|
+
return this._applicationId;
|
|
170
|
+
}
|
|
171
|
+
setService() {
|
|
172
|
+
const i = this.apiUrl, s = (t) => {
|
|
173
|
+
var e;
|
|
174
|
+
const r = this.token;
|
|
175
|
+
if (!r)
|
|
176
|
+
return t;
|
|
177
|
+
if (fe(r)) {
|
|
178
|
+
const u = "token is timeout";
|
|
179
|
+
this.errorHandlers.token ? typeof this.errorHandlers.token == "function" ? this.errorHandlers.token(
|
|
180
|
+
// @ts-ignore
|
|
181
|
+
new Error(u, {
|
|
182
|
+
cause: {
|
|
183
|
+
status: 401,
|
|
184
|
+
message: u
|
|
185
|
+
}
|
|
186
|
+
})
|
|
187
|
+
) : console.error("errorHandlers.token is not a function") : console.error(u);
|
|
188
|
+
}
|
|
189
|
+
return t.headers = (e = t.headers) != null ? e : {}, t.headers = m(o({}, t.headers), {
|
|
190
|
+
Authorization: r ? `Bearer ${r}` : ""
|
|
191
|
+
}), t;
|
|
192
|
+
};
|
|
193
|
+
function d(t, r = !0) {
|
|
194
|
+
const e = `${i}${t}`, u = ne.create({
|
|
195
|
+
baseURL: e
|
|
196
|
+
});
|
|
197
|
+
return r && u.interceptors.request.use(s), u;
|
|
198
|
+
}
|
|
199
|
+
const f = (t, r) => {
|
|
200
|
+
if (t === 401) {
|
|
201
|
+
const e = "token is invalid";
|
|
202
|
+
this.errorHandlers.token ? typeof this.errorHandlers.token == "function" ? this.errorHandlers.token(
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
new Error(e, {
|
|
205
|
+
cause: {
|
|
206
|
+
status: 401,
|
|
207
|
+
message: e
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
) : console.error("errorHandlers.token is not a function") : console.error(e);
|
|
211
|
+
}
|
|
212
|
+
}, p = (t, r, e) => {
|
|
213
|
+
t !== 10001 && t !== 10215 && (e || (K.config({
|
|
214
|
+
getContainer: this.uiConfig.getContainer
|
|
215
|
+
}), K.error({
|
|
216
|
+
message: r
|
|
217
|
+
})));
|
|
218
|
+
}, h = d("");
|
|
219
|
+
return new le(h, () => this.token, {
|
|
220
|
+
onHttpStatusError: f,
|
|
221
|
+
onAppStatusError: p
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
reload() {
|
|
225
|
+
var i;
|
|
226
|
+
this._defatulSessionId = (i = this.activeSession) == null ? void 0 : i.id, this.destroy(() => {
|
|
227
|
+
this.service = this.setService(), this.rId = this.rId + 1, this.render();
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
getMessageList(i) {
|
|
231
|
+
var s, d;
|
|
232
|
+
return i || (i = (s = this.activeSession) == null ? void 0 : s.id), !this.applicationId || !i ? Promise.resolve([]) : (d = this.service) == null ? void 0 : d.getChatHistorySessionId(this.applicationId, i);
|
|
233
|
+
}
|
|
234
|
+
input(i) {
|
|
235
|
+
this._defaultInputText = i, this.render();
|
|
236
|
+
}
|
|
237
|
+
disable() {
|
|
238
|
+
this._inputDisabled = !0, this.render();
|
|
239
|
+
}
|
|
240
|
+
enable() {
|
|
241
|
+
this._inputDisabled = !1, this.render();
|
|
242
|
+
}
|
|
243
|
+
render() {
|
|
244
|
+
var s, d, f, p;
|
|
245
|
+
let i = this.wrapper.getBoundingClientRect().height;
|
|
246
|
+
this.wrapper.style.height = `${i}px`, G.render(/* @__PURE__ */ Q(se, {
|
|
247
|
+
rId: this.rId,
|
|
248
|
+
sessionId: this._defatulSessionId,
|
|
249
|
+
showHeader: this.uiConfig.showHeader,
|
|
250
|
+
apiUrl: this.apiUrl,
|
|
251
|
+
env: this.uiConfig.env,
|
|
252
|
+
debug: this.uiConfig.debug,
|
|
253
|
+
mode: this.mode,
|
|
254
|
+
token: this.token,
|
|
255
|
+
className: this.mode,
|
|
256
|
+
open: this.uiConfig.open,
|
|
257
|
+
theme: this.uiConfig.theme,
|
|
258
|
+
logo: this.uiConfig.logo,
|
|
259
|
+
icon: this.uiConfig.icon,
|
|
260
|
+
greeting: this.uiConfig.greeting,
|
|
261
|
+
size: this.uiConfig.size,
|
|
262
|
+
triggerButton: o({
|
|
263
|
+
visible: !0
|
|
264
|
+
}, this.uiConfig.triggerButton),
|
|
265
|
+
history: this.uiConfig.history,
|
|
266
|
+
service: this.service,
|
|
267
|
+
docViewerUrl: this.docViewerUrl,
|
|
268
|
+
plugins: this.uiConfig.plugins,
|
|
269
|
+
mcp: this.uiConfig.mcp,
|
|
270
|
+
transform: m(o({}, this.uiConfig.transform), {
|
|
271
|
+
knowledges: ((s = this.uiConfig.features) == null ? void 0 : s.knowledges) === !0 || typeof ((d = this.uiConfig.features) == null ? void 0 : d.knowledges) == "object" && ((p = (f = this.uiConfig.features) == null ? void 0 : f.knowledges) == null ? void 0 : p.visible) !== !1
|
|
272
|
+
}),
|
|
273
|
+
features: this.uiConfig.features,
|
|
274
|
+
disabled: this._inputDisabled,
|
|
275
|
+
sider: this.uiConfig.sider,
|
|
276
|
+
footer: this.uiConfig.footer,
|
|
277
|
+
onComment: (h) => {
|
|
278
|
+
var n, t;
|
|
279
|
+
try {
|
|
280
|
+
(t = (n = this.uiConfig.eventListeners) == null ? void 0 : n.comment) == null || t.call(n, h);
|
|
281
|
+
} catch (r) {
|
|
282
|
+
console.error(r);
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
onMessage: (h) => {
|
|
286
|
+
var n, t;
|
|
287
|
+
if (h.message.messageId)
|
|
288
|
+
try {
|
|
289
|
+
(t = (n = this.uiConfig.eventListeners) == null ? void 0 : n.message) == null || t.call(n, h);
|
|
290
|
+
} catch (r) {
|
|
291
|
+
console.error(r);
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
beforeMessageSend: (h) => {
|
|
295
|
+
var n, t, r;
|
|
296
|
+
if (!((n = this.uiConfig.eventListeners) != null && n.beforemessagesend))
|
|
297
|
+
return !0;
|
|
298
|
+
try {
|
|
299
|
+
return ((r = (t = this.uiConfig.eventListeners) == null ? void 0 : t.beforemessagesend) == null ? void 0 : r.call(t, h)) || !1;
|
|
300
|
+
} catch (e) {
|
|
301
|
+
return console.error(e), !1;
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
onSessionUnload: (h) => {
|
|
305
|
+
var n, t;
|
|
306
|
+
this._activeSession = null;
|
|
307
|
+
try {
|
|
308
|
+
(t = (n = this.uiConfig.eventListeners) == null ? void 0 : n.sessionunload) == null || t.call(n, h);
|
|
309
|
+
} catch (r) {
|
|
310
|
+
console.error(r);
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
onSessionLoad: (h) => {
|
|
314
|
+
var n, t, r;
|
|
315
|
+
if (((n = this._activeSession) == null ? void 0 : n.id) === h.sessionId)
|
|
316
|
+
this._activeSession = h.session;
|
|
317
|
+
else {
|
|
318
|
+
this._activeSession = h.session;
|
|
319
|
+
try {
|
|
320
|
+
(r = (t = this.uiConfig.eventListeners) == null ? void 0 : t.sessionload) == null || r.call(t, h);
|
|
321
|
+
} catch (e) {
|
|
322
|
+
console.error(e);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
onHistoryLoad: (h) => {
|
|
327
|
+
var n, t, r;
|
|
328
|
+
if (((n = this._activeSession) == null ? void 0 : n.id) === h.sessionId)
|
|
329
|
+
try {
|
|
330
|
+
(r = (t = this.uiConfig.eventListeners) == null ? void 0 : t.historyload) == null || r.call(t, h);
|
|
331
|
+
} catch (e) {
|
|
332
|
+
console.error(e);
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
defaultInput: this._defaultInputText !== void 0 ? {
|
|
336
|
+
text: this._defaultInputText
|
|
337
|
+
} : void 0,
|
|
338
|
+
bodyStyle: this.uiConfig.bodyStyle
|
|
339
|
+
}), this.wrapper), this._defaultInputText = "";
|
|
340
|
+
}
|
|
341
|
+
destroy(i) {
|
|
342
|
+
G.render(/* @__PURE__ */ Q(oe, {}), this.wrapper, i);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
export {
|
|
346
|
+
xe as default
|
|
347
|
+
};
|