@agentscope-ai/chat 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -0
- package/dist/_util/hooks/use-proxy-imperative-handle.d.ts +4 -0
- package/dist/_util/hooks/use-proxy-imperative-handle.js +18 -0
- package/dist/_util/type.d.ts +1 -0
- package/dist/_util/type.js +1 -0
- package/dist/_util/warning.d.ts +30 -0
- package/dist/_util/warning.js +63 -0
- package/dist/accordion/Accordion.d.ts +22 -0
- package/dist/accordion/Accordion.js +93 -0
- package/dist/accordion/BodyContent.d.ts +8 -0
- package/dist/accordion/BodyContent.js +18 -0
- package/dist/accordion/DeepThink.d.ts +7 -0
- package/dist/accordion/DeepThink.js +35 -0
- package/dist/accordion/index.d.ts +2 -0
- package/dist/accordion/index.js +1 -0
- package/dist/accordion/index.less +170 -0
- package/dist/attachments/DropArea.d.ts +8 -0
- package/dist/attachments/DropArea.js +87 -0
- package/dist/attachments/FileList/AudioIcon.d.ts +2 -0
- package/dist/attachments/FileList/AudioIcon.js +19 -0
- package/dist/attachments/FileList/FileListCard.d.ts +12 -0
- package/dist/attachments/FileList/FileListCard.js +229 -0
- package/dist/attachments/FileList/Progress.d.ts +6 -0
- package/dist/attachments/FileList/Progress.js +21 -0
- package/dist/attachments/FileList/VideoIcon.d.ts +2 -0
- package/dist/attachments/FileList/VideoIcon.js +19 -0
- package/dist/attachments/FileList/index.d.ts +16 -0
- package/dist/attachments/FileList/index.js +132 -0
- package/dist/attachments/PlaceholderUploader.d.ts +17 -0
- package/dist/attachments/PlaceholderUploader.js +79 -0
- package/dist/attachments/SilentUploader.d.ts +9 -0
- package/dist/attachments/SilentUploader.js +23 -0
- package/dist/attachments/context.d.ts +5 -0
- package/dist/attachments/context.js +2 -0
- package/dist/attachments/index.d.ts +33 -0
- package/dist/attachments/index.js +166 -0
- package/dist/attachments/style/fileCard.d.ts +4 -0
- package/dist/attachments/style/fileCard.js +124 -0
- package/dist/attachments/style/index.d.ts +10 -0
- package/dist/attachments/style/index.js +211 -0
- package/dist/attachments/util.d.ts +2 -0
- package/dist/attachments/util.js +53 -0
- package/dist/bubble/Avatar.d.ts +10 -0
- package/dist/bubble/Avatar.js +22 -0
- package/dist/bubble/Bubble.d.ts +11 -0
- package/dist/bubble/Bubble.js +102 -0
- package/dist/bubble/BubbleList.d.ts +15 -0
- package/dist/bubble/BubbleList.js +44 -0
- package/dist/bubble/Cards.d.ts +21 -0
- package/dist/bubble/Cards.js +47 -0
- package/dist/bubble/ScrollToBottom.d.ts +7 -0
- package/dist/bubble/ScrollToBottom.js +45 -0
- package/dist/bubble/Spin.d.ts +2 -0
- package/dist/bubble/Spin.js +18 -0
- package/dist/bubble/hooks/useDisplayData.d.ts +0 -0
- package/dist/bubble/hooks/useDisplayData.js +0 -0
- package/dist/bubble/hooks/useListData.d.ts +0 -0
- package/dist/bubble/hooks/useListData.js +0 -0
- package/dist/bubble/index.d.ts +8 -0
- package/dist/bubble/index.js +4 -0
- package/dist/bubble/interface.d.ts +26 -0
- package/dist/bubble/interface.js +1 -0
- package/dist/bubble/loading.d.ts +6 -0
- package/dist/bubble/loading.js +17 -0
- package/dist/bubble/style/avatar.less +40 -0
- package/dist/bubble/style/content.d.ts +4 -0
- package/dist/bubble/style/content.js +43 -0
- package/dist/bubble/style/index.d.ts +9 -0
- package/dist/bubble/style/index.js +53 -0
- package/dist/bubble/style/list.less +15 -0
- package/dist/bubble/style/scrollToBottom.less +174 -0
- package/dist/chat-anywhere/Chat/Ref.d.ts +3 -0
- package/dist/chat-anywhere/Chat/Ref.js +19 -0
- package/dist/chat-anywhere/Chat/index.d.ts +4 -0
- package/dist/chat-anywhere/Chat/index.js +65 -0
- package/dist/chat-anywhere/Chat/index.less +54 -0
- package/dist/chat-anywhere/Header/index.d.ts +3 -0
- package/dist/chat-anywhere/Header/index.js +32 -0
- package/dist/chat-anywhere/Header/index.less +24 -0
- package/dist/chat-anywhere/Input/index.d.ts +3 -0
- package/dist/chat-anywhere/Input/index.js +170 -0
- package/dist/chat-anywhere/Input/index.less +12 -0
- package/dist/chat-anywhere/Layout/index.d.ts +10 -0
- package/dist/chat-anywhere/Layout/index.js +73 -0
- package/dist/chat-anywhere/Layout/index.less +61 -0
- package/dist/chat-anywhere/SessionList/index.d.ts +5 -0
- package/dist/chat-anywhere/SessionList/index.js +115 -0
- package/dist/chat-anywhere/SessionList/index.less +52 -0
- package/dist/chat-anywhere/hooks/ChatAnywhereProvider.d.ts +43 -0
- package/dist/chat-anywhere/hooks/ChatAnywhereProvider.js +90 -0
- package/dist/chat-anywhere/hooks/types.d.ts +57 -0
- package/dist/chat-anywhere/hooks/types.js +1 -0
- package/dist/chat-anywhere/hooks/useInput.d.ts +7 -0
- package/dist/chat-anywhere/hooks/useInput.js +21 -0
- package/dist/chat-anywhere/hooks/useMessages.d.ts +11 -0
- package/dist/chat-anywhere/hooks/useMessages.js +56 -0
- package/dist/chat-anywhere/hooks/useSessionList.d.ts +24 -0
- package/dist/chat-anywhere/hooks/useSessionList.js +120 -0
- package/dist/chat-anywhere/index.d.ts +9 -0
- package/dist/chat-anywhere/index.js +58 -0
- package/dist/conversations/GroupTitle.d.ts +10 -0
- package/dist/conversations/GroupTitle.js +15 -0
- package/dist/conversations/Item.d.ts +14 -0
- package/dist/conversations/Item.js +96 -0
- package/dist/conversations/hooks/useGroupable.d.ts +9 -0
- package/dist/conversations/hooks/useGroupable.js +72 -0
- package/dist/conversations/index.d.ts +62 -0
- package/dist/conversations/index.js +124 -0
- package/dist/conversations/interface.d.ts +60 -0
- package/dist/conversations/interface.js +1 -0
- package/dist/conversations/style/index.d.ts +9 -0
- package/dist/conversations/style/index.js +80 -0
- package/dist/default-cards/Count/index.d.ts +3 -0
- package/dist/default-cards/Count/index.js +16 -0
- package/dist/default-cards/Count/index.less +19 -0
- package/dist/default-cards/DeepThink/index.d.ts +11 -0
- package/dist/default-cards/DeepThink/index.js +11 -0
- package/dist/default-cards/DeepThink/index.less +0 -0
- package/dist/default-cards/Files/index.d.ts +2 -0
- package/dist/default-cards/Files/index.js +18 -0
- package/dist/default-cards/Footer/index.d.ts +19 -0
- package/dist/default-cards/Footer/index.js +50 -0
- package/dist/default-cards/Footer/index.less +41 -0
- package/dist/default-cards/Images/index.d.ts +3 -0
- package/dist/default-cards/Images/index.js +33 -0
- package/dist/default-cards/Images/index.less +17 -0
- package/dist/default-cards/Interrupted/index.d.ts +11 -0
- package/dist/default-cards/Interrupted/index.js +40 -0
- package/dist/default-cards/Interrupted/index.less +57 -0
- package/dist/default-cards/Text/index.d.ts +2 -0
- package/dist/default-cards/Text/index.js +12 -0
- package/dist/default-cards/index.d.ts +6 -0
- package/dist/default-cards/index.js +6 -0
- package/dist/disclaimer/index.d.ts +11 -0
- package/dist/disclaimer/index.js +26 -0
- package/dist/docs/1896.async.js +457 -0
- package/dist/docs/2710.async.js +62 -0
- package/dist/docs/2863.async.js +400 -0
- package/dist/docs/3057.async.js +46 -0
- package/dist/docs/3364.async.js +25 -0
- package/dist/docs/404.html +15 -0
- package/dist/docs/4820.async.js +1381 -0
- package/dist/docs/5623.async.js +60 -0
- package/dist/docs/5757.async.js +1 -0
- package/dist/docs/5804.async.js +271 -0
- package/dist/docs/6198.async.js +18 -0
- package/dist/docs/6671.async.js +137 -0
- package/dist/docs/7195.async.js +1 -0
- package/dist/docs/7485.async.js +29 -0
- package/dist/docs/7931.async.js +19 -0
- package/dist/docs/7997.async.js +5 -0
- package/dist/docs/8156.async.js +110 -0
- package/dist/docs/8368.async.js +2 -0
- package/dist/docs/8480.async.js +1449 -0
- package/dist/docs/8618.async.js +246 -0
- package/dist/docs/9016.async.js +32 -0
- package/dist/docs/9016.chunk.css +1 -0
- package/dist/docs/9335.async.js +11 -0
- package/dist/docs/accordion__demos.async.js +9 -0
- package/dist/docs/attachments__demos.async.js +1 -0
- package/dist/docs/bubble__demos.async.js +50 -0
- package/dist/docs/components/accordion/index.html +15 -0
- package/dist/docs/components/accordion-cn/index.html +15 -0
- package/dist/docs/components/attachments/index.html +15 -0
- package/dist/docs/components/attachments-cn/index.html +15 -0
- package/dist/docs/components/bubble/index.html +15 -0
- package/dist/docs/components/bubble-cn/index.html +15 -0
- package/dist/docs/components/bubble-list/index.html +15 -0
- package/dist/docs/components/bubble-list-cn/index.html +15 -0
- package/dist/docs/components/conversations/index.html +15 -0
- package/dist/docs/components/conversations-cn/index.html +15 -0
- package/dist/docs/components/disclaimer/index.html +15 -0
- package/dist/docs/components/disclaimer-cn/index.html +15 -0
- package/dist/docs/components/footer/index.html +15 -0
- package/dist/docs/components/footer-cn/index.html +15 -0
- package/dist/docs/components/markdown/index.html +15 -0
- package/dist/docs/components/markdown-cn/index.html +15 -0
- package/dist/docs/components/sender/index.html +15 -0
- package/dist/docs/components/sender-cn/index.html +15 -0
- package/dist/docs/components/status/index.html +15 -0
- package/dist/docs/components/status-cn/index.html +15 -0
- package/dist/docs/components/welcome/index.html +15 -0
- package/dist/docs/components/welcome-cn/index.html +15 -0
- package/dist/docs/components__accordion__index.en-US.md.async.js +6 -0
- package/dist/docs/components__accordion__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__accordion__index.zh-CN.md.async.js +6 -0
- package/dist/docs/components__accordion__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__attachments__index.en-US.md.async.js +1 -0
- package/dist/docs/components__attachments__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__attachments__index.zh-CN.md.async.js +1 -0
- package/dist/docs/components__attachments__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__bubble-list__index.en-US.md.async.js +2 -0
- package/dist/docs/components__bubble-list__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__bubble-list__index.zh-CN.md.async.js +2 -0
- package/dist/docs/components__bubble-list__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__bubble__index.en-US.md.async.js +1 -0
- package/dist/docs/components__bubble__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__bubble__index.zh-CN.md.async.js +1 -0
- package/dist/docs/components__bubble__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__conversations__index.en-US.md.async.js +2 -0
- package/dist/docs/components__conversations__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__conversations__index.zh-CN.md.async.js +1 -0
- package/dist/docs/components__conversations__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__disclaimer__index.en-US.md.async.js +1 -0
- package/dist/docs/components__disclaimer__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__disclaimer__index.zh-CN.md.async.js +1 -0
- package/dist/docs/components__disclaimer__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__footer__index.en-US.md.async.js +1 -0
- package/dist/docs/components__footer__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__footer__index.zh-CN.md.async.js +2 -0
- package/dist/docs/components__footer__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__markdown__index.en-US.md.async.js +1 -0
- package/dist/docs/components__markdown__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__markdown__index.zh-CN.md.async.js +1 -0
- package/dist/docs/components__markdown__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__sender__index.en-US.md.async.js +1 -0
- package/dist/docs/components__sender__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__sender__index.zh-CN.md.async.js +1 -0
- package/dist/docs/components__sender__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__status__index.en-US.md.async.js +1 -0
- package/dist/docs/components__status__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__status__index.zh-CN.md.async.js +2 -0
- package/dist/docs/components__status__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/components__welcome__index.en-US.md.async.js +2 -0
- package/dist/docs/components__welcome__index.en-US.md.chunk.css +1 -0
- package/dist/docs/components__welcome__index.zh-CN.md.async.js +2 -0
- package/dist/docs/components__welcome__index.zh-CN.md.chunk.css +1 -0
- package/dist/docs/conversations__demos.async.js +1 -0
- package/dist/docs/demos.async.js +47 -0
- package/dist/docs/demos.chunk.css +1 -0
- package/dist/docs/disclaimer__demos.async.js +1 -0
- package/dist/docs/docs/development/ag-ui/index.html +15 -0
- package/dist/docs/docs/development/ag-ui-cn/index.html +15 -0
- package/dist/docs/docs/development/backend/index.html +15 -0
- package/dist/docs/docs/development/backend-cn/index.html +15 -0
- package/dist/docs/docs/development/cards/index.html +15 -0
- package/dist/docs/docs/development/cards-cn/index.html +15 -0
- package/dist/docs/docs/development/chatanywhere/index.html +15 -0
- package/dist/docs/docs/development/chatanywhere-api/index.html +15 -0
- package/dist/docs/docs/development/chatanywhere-api-cn/index.html +15 -0
- package/dist/docs/docs/development/chatanywhere-cn/index.html +15 -0
- package/dist/docs/docs/development/custom/index.html +15 -0
- package/dist/docs/docs/development/custom-cn/index.html +15 -0
- package/dist/docs/docs/development/overview/index.html +15 -0
- package/dist/docs/docs/development/overview-cn/index.html +15 -0
- package/dist/docs/docs/development/qwen/index.html +15 -0
- package/dist/docs/docs/development/qwen-cn/index.html +15 -0
- package/dist/docs/docs/templates/copilot/index.html +15 -0
- package/dist/docs/docs/templates/copilot-cn/index.html +15 -0
- package/dist/docs/docs/templates/native/index.html +15 -0
- package/dist/docs/docs/templates/native-cn/index.html +15 -0
- package/dist/docs/docs/templates/voice/index.html +15 -0
- package/dist/docs/docs/templates/voice-cn/index.html +15 -0
- package/dist/docs/docs__development__ag-ui.en-US.md.async.js +210 -0
- package/dist/docs/docs__development__ag-ui.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__ag-ui.zh-CN.md.async.js +210 -0
- package/dist/docs/docs__development__ag-ui.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__backend.en-US.md.async.js +12 -0
- package/dist/docs/docs__development__backend.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__backend.zh-CN.md.async.js +12 -0
- package/dist/docs/docs__development__backend.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__cards.en-US.md.async.js +27 -0
- package/dist/docs/docs__development__cards.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__cards.zh-CN.md.async.js +27 -0
- package/dist/docs/docs__development__cards.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.async.js +69 -0
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.async.js +69 -0
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__chatanywhere.en-US.md.async.js +77 -0
- package/dist/docs/docs__development__chatanywhere.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.async.js +77 -0
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__custom.en-US.md.async.js +22 -0
- package/dist/docs/docs__development__custom.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__custom.zh-CN.md.async.js +22 -0
- package/dist/docs/docs__development__custom.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__overview.en-US.md.async.js +21 -0
- package/dist/docs/docs__development__overview.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__overview.zh-CN.md.async.js +21 -0
- package/dist/docs/docs__development__overview.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__development__qwen.en-US.md.async.js +25 -0
- package/dist/docs/docs__development__qwen.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__development__qwen.zh-CN.md.async.js +25 -0
- package/dist/docs/docs__development__qwen.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__templates__copilot.en-US.md.async.js +1 -0
- package/dist/docs/docs__templates__copilot.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__templates__copilot.zh-CN.md.async.js +1 -0
- package/dist/docs/docs__templates__copilot.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__templates__native.en-US.md.async.js +1 -0
- package/dist/docs/docs__templates__native.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__templates__native.zh-CN.md.async.js +1 -0
- package/dist/docs/docs__templates__native.zh-CN.md.chunk.css +1 -0
- package/dist/docs/docs__templates__voice.en-US.md.async.js +20 -0
- package/dist/docs/docs__templates__voice.en-US.md.chunk.css +1 -0
- package/dist/docs/docs__templates__voice.zh-CN.md.async.js +1 -0
- package/dist/docs/docs__templates__voice.zh-CN.md.chunk.css +1 -0
- package/dist/docs/dumi__pages__index__index.en-US.async.js +1 -0
- package/dist/docs/dumi__pages__index__index.en-US.chunk.css +1 -0
- package/dist/docs/dumi__pages__index__index.zh-CN.async.js +1 -0
- package/dist/docs/dumi__pages__index__index.zh-CN.chunk.css +1 -0
- package/dist/docs/dumi__theme__layouts__DocLayout__index.async.js +1 -0
- package/dist/docs/dumi__theme__layouts__DocLayout__index.chunk.css +1 -0
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.async.js +18 -0
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.chunk.css +1 -0
- package/dist/docs/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
- package/dist/docs/index/index.html +15 -0
- package/dist/docs/index-cn/index.html +15 -0
- package/dist/docs/markdown__demos.async.js +164 -0
- package/dist/docs/meta__components__en-US.async.js +9 -0
- package/dist/docs/meta__components__zh-CN.async.js +10 -0
- package/dist/docs/meta__docs__en-US.async.js +475 -0
- package/dist/docs/meta__docs__en-US.chunk.css +1 -0
- package/dist/docs/meta__docs__zh-CN.async.js +456 -0
- package/dist/docs/meta__docs__zh-CN.chunk.css +1 -0
- package/dist/docs/nm__dumi__dist__client__pages__404.async.js +1 -0
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.async.js +1 -0
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.chunk.css +1 -0
- package/dist/docs/preload_helper.js +1 -0
- package/dist/docs/sender__demos.async.js +1 -0
- package/dist/docs/umi.css +1 -0
- package/dist/docs/umi.js +107 -0
- package/dist/docs/welcome__demos.async.js +1 -0
- package/dist/docs/~demos/:id/index.html +15 -0
- package/dist/docs/~demos/accordion-demo-inline/index.html +15 -0
- package/dist/docs/~demos/accordion-demo-mutisteps/index.html +15 -0
- package/dist/docs/~demos/accordion-demo-thinking/index.html +15 -0
- package/dist/docs/~demos/attachments-demo-files/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-basic/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-havestopped/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-userwithfile/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-userwithimage/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-userwithnormal/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-withavatar/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-withcode/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-witherror/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-witherrordetail/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-withimage/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-withusage/index.html +15 -0
- package/dist/docs/~demos/bubble-demo-withwaitingmessage/index.html +15 -0
- package/dist/docs/~demos/components-bubble-list-demo-basic/index.html +15 -0
- package/dist/docs/~demos/components-footer-demo-basic/index.html +15 -0
- package/dist/docs/~demos/components-footer-demo-withusage/index.html +15 -0
- package/dist/docs/~demos/components-status-demo-basic/index.html +15 -0
- package/dist/docs/~demos/conversations-demo-basic/index.html +15 -0
- package/dist/docs/~demos/disclaimer-demo-demo/index.html +15 -0
- package/dist/docs/~demos/disclaimer-demo-withlink/index.html +15 -0
- package/dist/docs/~demos/docs-development-ag-ui-demo-with-copilotkit/index.html +15 -0
- package/dist/docs/~demos/docs-development-cards-demo-file/index.html +15 -0
- package/dist/docs/~demos/docs-development-cards-demo-footer/index.html +15 -0
- package/dist/docs/~demos/docs-development-cards-demo-image/index.html +15 -0
- package/dist/docs/~demos/docs-development-cards-demo-text/index.html +15 -0
- package/dist/docs/~demos/docs-development-custom-demo-custom/index.html +15 -0
- package/dist/docs/~demos/docs-templates-copilot-demo-copilot/index.html +15 -0
- package/dist/docs/~demos/docs-templates-native-demo-basic/index.html +15 -0
- package/dist/docs/~demos/docs-templates-voice-demo-demo/index.html +15 -0
- package/dist/docs/~demos/markdown-demo-citations/index.html +15 -0
- package/dist/docs/~demos/markdown-demo-cursor/index.html +15 -0
- package/dist/docs/~demos/markdown-demo-mathjax/index.html +15 -0
- package/dist/docs/~demos/markdown-demo-md/index.html +15 -0
- package/dist/docs/~demos/sender-demo-basic/index.html +15 -0
- package/dist/docs/~demos/sender-demo-disabled/index.html +15 -0
- package/dist/docs/~demos/sender-demo-loading/index.html +15 -0
- package/dist/docs/~demos/sender-demo-moreprefixaction/index.html +15 -0
- package/dist/docs/~demos/sender-demo-withfile/index.html +15 -0
- package/dist/docs/~demos/welcome-demo-demo0/index.html +15 -0
- package/dist/docs/~demos/welcome-demo-demo1/index.html +15 -0
- package/dist/docs/~demos/welcome-demo-demo2/index.html +15 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +20 -0
- package/dist/index.less +1 -0
- package/dist/markdown/Citation.d.ts +16 -0
- package/dist/markdown/Citation.js +55 -0
- package/dist/markdown/CodeBlock.d.ts +6 -0
- package/dist/markdown/CodeBlock.js +88 -0
- package/dist/markdown/ImageOrVideo.d.ts +2 -0
- package/dist/markdown/ImageOrVideo.js +81 -0
- package/dist/markdown/Link.d.ts +3 -0
- package/dist/markdown/Link.js +28 -0
- package/dist/markdown/Markdown.d.ts +4 -0
- package/dist/markdown/Markdown.js +121 -0
- package/dist/markdown/cursor/Blur.d.ts +3 -0
- package/dist/markdown/cursor/Blur.js +7 -0
- package/dist/markdown/cursor/Dot.d.ts +3 -0
- package/dist/markdown/cursor/Dot.js +16 -0
- package/dist/markdown/cursor/Underline.d.ts +3 -0
- package/dist/markdown/cursor/Underline.js +7 -0
- package/dist/markdown/cursor/index.less +124 -0
- package/dist/markdown/hooks/index.d.ts +1 -0
- package/dist/markdown/hooks/index.js +49 -0
- package/dist/markdown/hooks/useTypedEffect.d.ts +6 -0
- package/dist/markdown/hooks/useTypedEffect.js +56 -0
- package/dist/markdown/index.d.ts +16 -0
- package/dist/markdown/index.js +37 -0
- package/dist/markdown/index.less +204 -0
- package/dist/markdown/plugins/footnote.d.ts +2 -0
- package/dist/markdown/plugins/footnote.js +89 -0
- package/dist/markdown/plugins/katexDir.d.ts +1 -0
- package/dist/markdown/plugins/katexDir.js +15 -0
- package/dist/markdown/rehype/fadeIn.d.ts +2 -0
- package/dist/markdown/rehype/fadeIn.js +43 -0
- package/dist/markdown/type.d.ts +46 -0
- package/dist/markdown/type.js +1 -0
- package/dist/markdown/utils.d.ts +22 -0
- package/dist/markdown/utils.js +125 -0
- package/dist/provider/CustomCardsProvider.d.ts +15 -0
- package/dist/provider/CustomCardsProvider.js +18 -0
- package/dist/provider/GlobalProvider.d.ts +5 -0
- package/dist/provider/GlobalProvider.js +11 -0
- package/dist/provider/index.d.ts +8 -0
- package/dist/provider/index.js +20 -0
- package/dist/provider/types.d.ts +8 -0
- package/dist/provider/types.js +1 -0
- package/dist/sender/SenderHeader.d.ts +19 -0
- package/dist/sender/SenderHeader.js +79 -0
- package/dist/sender/StopLoading.d.ts +5 -0
- package/dist/sender/StopLoading.js +20 -0
- package/dist/sender/components/ActionButton.d.ts +22 -0
- package/dist/sender/components/ActionButton.js +39 -0
- package/dist/sender/components/ClearButton.d.ts +4 -0
- package/dist/sender/components/ClearButton.js +13 -0
- package/dist/sender/components/LoadingButton.d.ts +4 -0
- package/dist/sender/components/LoadingButton.js +22 -0
- package/dist/sender/components/SendButton.d.ts +4 -0
- package/dist/sender/components/SendButton.js +14 -0
- package/dist/sender/components/SpeechButton/RecordingIcon.d.ts +5 -0
- package/dist/sender/components/SpeechButton/RecordingIcon.js +49 -0
- package/dist/sender/components/SpeechButton/index.d.ts +4 -0
- package/dist/sender/components/SpeechButton/index.js +30 -0
- package/dist/sender/index.d.ts +61 -0
- package/dist/sender/index.js +307 -0
- package/dist/sender/style/header.d.ts +4 -0
- package/dist/sender/style/header.js +46 -0
- package/dist/sender/style/index.d.ts +10 -0
- package/dist/sender/style/index.js +123 -0
- package/dist/sender/useSpeech.d.ts +6 -0
- package/dist/sender/useSpeech.js +114 -0
- package/dist/stream/index.d.ts +34 -0
- package/dist/stream/index.en-US.md.bk +50 -0
- package/dist/stream/index.js +197 -0
- package/dist/stream/index.zh-CN.md.bk +51 -0
- package/dist/theme/components.d.ts +10 -0
- package/dist/theme/components.js +1 -0
- package/dist/theme/cssinjs-utils.d.ts +14 -0
- package/dist/theme/cssinjs-utils.js +1 -0
- package/dist/theme/genStyleUtils.d.ts +28 -0
- package/dist/theme/genStyleUtils.js +49 -0
- package/dist/theme/useToken.d.ts +18 -0
- package/dist/theme/useToken.js +110 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +2 -0
- package/dist/voice-chat/Recorder/index.d.ts +26 -0
- package/dist/voice-chat/Recorder/index.js +168 -0
- package/dist/voice-chat/VoiceChatProvider/context.d.ts +22 -0
- package/dist/voice-chat/VoiceChatProvider/context.js +3 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.d.ts +1 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.js +5 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.d.ts +8 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.js +31 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.d.ts +5 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.js +48 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.d.ts +4 -0
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.js +10 -0
- package/dist/voice-chat/VoiceChatProvider/index.d.ts +9 -0
- package/dist/voice-chat/VoiceChatProvider/index.js +55 -0
- package/dist/voice-chat/VoiceChatService/index.d.ts +34 -0
- package/dist/voice-chat/VoiceChatService/index.js +209 -0
- package/dist/voice-chat/index.d.ts +2 -0
- package/dist/voice-chat/index.js +2 -0
- package/dist/voice-chat/types/index.d.ts +12 -0
- package/dist/voice-chat/types/index.js +4 -0
- package/dist/welcome/icon.d.ts +2 -0
- package/dist/welcome/icon.js +38 -0
- package/dist/welcome/index.d.ts +9 -0
- package/dist/welcome/index.js +57 -0
- package/package.json +117 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_agentscope_ai_chat=self.webpackChunk_agentscope_ai_chat||[]).push([[3057],{11078:function(Ae,U,e){e.d(U,{Z:function(){return u}});var B=e(85573),i=e.n(B),m=e(82242),g=e.n(m),O=e(79800),j=e.n(O),E=e(21739),b=e(23057),T=e(92310),s=e.n(T),c=e(5465),p=e(27174);function _(A){var $=(0,b.wv)(),ae=$.getPrefixCls,D=ae("accordion-content-body");return(0,p.jsxs)("div",{className:D,children:[A.headerLeft||A.headerRight?(0,p.jsxs)("div",{className:"".concat(D,"-header"),children:[A.headerLeft,(0,p.jsx)("div",{style:{flex:1}}),A.headerRight]}):null,(0,p.jsx)("div",{className:"".concat(D,"-body"),children:A.children})]})}function le(A){var $=(0,b.wv)(),ae=$.getPrefixCls,D=ae("accordion-group"),w=E.useState(A.defaultOpen),L=j()(w,2),ie=L[0],Te=L[1],Fe=A.inline?"close":ie?"open":"close",V=(0,E.useMemo)(function(){if(A.icon)return A.icon;if(A.status==="generating")return(0,p.jsx)(c.SyncOutlined,{spin:!0});if(A.status==="finished")return(0,p.jsx)(c.CheckCircleFilled,{className:"".concat(D,"-icon-success")});if(A.status==="interrupted"||A.status==="error")return(0,p.jsx)(c.CloseCircleFilled,{className:"".concat(D,"-icon-error")})},[A.status,A.icon]),J=(0,E.useMemo)(function(){return A.steps?A.steps.map(function(R,k){var Y=k===0,d=k===A.steps.length-1;return(0,p.jsx)(le,g()(g()({},R),{},{isFirst:Y,isLast:d}),R.id||k)}):A.children},[A.steps,A.children]);return(0,p.jsxs)("div",{className:s()("".concat(D),"".concat(D,"-").concat(Fe)),children:[(0,p.jsxs)("div",{className:s()("".concat(D,"-header"),"".concat(D,"-header-").concat(Fe)),onClick:function(){return Te(!ie)},children:[V?(0,p.jsx)("div",{className:s()("".concat(D,"-header-icon"),i()(i()({},"".concat(D,"-header-icon-first"),A.isFirst),"".concat(D,"-header-icon-last"),A.isLast&&Fe==="close"||A.level)),children:V}):null,A.title,(0,p.jsx)("div",{className:s()("".concat(D,"-header-arrow")),children:ie?(0,p.jsx)(c.UpOutlined,{}):(0,p.jsx)(c.DownOutlined,{})}),Fe==="open"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{style:{flex:1}}),A.rightChildren]})]}),(0,p.jsx)("div",{style:g()(g()({},A.bodyStyle),A.level?{marginTop:0}:{}),className:s()("".concat(D,"-body"),"".concat(D,"-body-").concat(Fe),i()({},"".concat(D,"-body-inline-").concat(ie?"open":"close"),A.inline)),children:J})]})}function K(A){var $=A.level,ae=$===void 0?1:$,D=A.isFirst,w=D===void 0?!0:D,L=A.isLast,ie=L===void 0?!0:L;return(0,p.jsx)(le,g()(g()({},A),{},{level:ae,isFirst:w,isLast:ie}))}K.BodyContent=_;var u=K},61416:function(Ae,U,e){e.d(U,{Z:function(){return j}});var B=e(21739),i=e(11078),m=e(23057),g=e(56991),O=e(27174);function j(E){var b=(0,m.wv)(),T=b.getPrefixCls,s=b.theme,c=T("accordion-deepthink"),p=s.algorithm===g.Z.darkAlgorithm,_=(0,O.jsx)("img",{style:{display:"block",width:16,height:16,filter:p?"invert(1) brightness(100%) saturate(0%)":""},src:"https://img.alicdn.com/imgextra/i2/O1CN01QZgWRv1I4JM0BAZ9O_!!6000000000839-54-tps-56-56.apng"}),le=(0,O.jsx)("div",{className:E.loading?"".concat(c,"-title-loading"):"",style:p?{}:{color:"rgba(38, 36, 76, 0.88)"},children:"".concat(E.title||"Deep think").concat(E.loading?"...":"")});return(0,O.jsx)(i.Z,{title:le,status:E.loading?"generating":"finished",icon:E.loading?_:null,defaultOpen:E.defaultOpen,inline:!0,children:(0,O.jsx)("div",{className:c,children:E.content||"..."})})}},16940:function(Ae,U,e){e.d(U,{Z:function(){return ke}});var B=e(85573),i=e.n(B),m=e(82242),g=e.n(m),O=e(79800),j=e.n(O),E=e(39647),b=e.n(E),T=e(92310),s=e.n(T),c=e(21739),p=e(23057),_=e(70425),le=e(67820),K=c.createContext(null),u=e(27174);function A(l){var n=l.getDropContainer,M=l.className,y=l.prefixCls,C=l.children,G=c.useContext(K),Q=G.disabled,he=c.useState(),ee=j()(he,2),te=ee[0],H=ee[1],ue=c.useState(null),fe=j()(ue,2),Ee=fe[0],ne=fe[1];c.useEffect(function(){var ge=n==null?void 0:n();te!==ge&&H(ge)},[n]),c.useEffect(function(){if(te){var ge=function(){ne(!0)},Se=function(r){r.preventDefault()},z=function(r){r.relatedTarget||ne(!1)},o=function(r){ne(!1),r.preventDefault()};return document.addEventListener("dragenter",ge),document.addEventListener("dragover",Se),document.addEventListener("dragleave",z),document.addEventListener("drop",o),function(){document.removeEventListener("dragenter",ge),document.removeEventListener("dragover",Se),document.removeEventListener("dragleave",z),document.removeEventListener("drop",o)}}},[!!te]);var me=n&&te&&!Q;if(!me)return null;var pe="".concat(y,"-drop-area");return(0,le.createPortal)((0,u.jsx)("div",{className:s()(pe,M,i()({},"".concat(pe,"-on-body"),te.tagName==="BODY")),style:{display:Ee?"block":"none"},children:C}),te)}var $=e(5465),ae=e(68768),D=e(77900),w=e(91232),L=e.n(w),ie=e(51636),Te=e(17835),Fe=e(27710),V=function(n){var M=n.componentCls,y=n.calc,C="".concat(M,"-list-card");return i()(i()({},C,i()(i()(i()(i()(i()(i()(i()(i()(i()({borderRadius:8,position:"relative",background:n.colorBgContainer,borderWidth:n.lineWidth,borderStyle:"solid",borderColor:n.colorBorderSecondary,flex:"none"},"".concat(C,"-name,").concat(C,"-desc"),{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"}),"".concat(C,"-ellipsis-prefix"),{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),"".concat(C,"-ellipsis-suffix"),{flex:"none"}),"&-type-overview",i()(i()(i()({padding:"0 8px",display:"flex",height:56,gap:n.paddingXS,alignItems:"center",width:140},"".concat(C,"-icon"),{fontSize:y(n.fontSizeLG).mul(2).equal(),lineHeight:1,flex:"none"}),"".concat(C,"-content"),{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch",fontSize:n.fontSize,color:n.colorText}),"".concat(C,"-desc"),{marginTop:n.marginXXS,color:n.colorTextQuaternary,fontSize:n.fontSizeSM})),"&-type-preview",i()(i()(i()({width:56,height:56,lineHeight:1,img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"}},"".concat(C,"-img-mask"),{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:"rgba(0, 0, 0, ".concat(n.opacityLoading,")"),borderRadius:"inherit"}),"&".concat(C,"-status-error"),i()(i()({},"img, ".concat(C,"-img-mask"),{borderRadius:y(n.borderRadius).sub(n.lineWidth).equal()}),"".concat(C,"-desc"),{paddingInline:n.paddingXXS})),"".concat(C,"-progress"),{})),"".concat(C,"-remove"),{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:n.paddingXXS,lineHeight:1,transform:"scale(.75) translate(50%, -50%)",fontSize:12,cursor:"pointer",display:"none",color:n.colorText,backgroundColor:n.colorBgContainer,borderWidth:1,borderStyle:"solid",borderColor:n.colorBorder,borderRadius:"50%","&:dir(rtl)":{transform:"translate(-50%, -50%)"}}),"&:hover ".concat(C,"-remove"),{display:"block"}),"&-status-error",i()({borderColor:n.colorError},"".concat(C,"-desc"),{color:n.colorError})),"&-motion",{transition:["opacity","width","margin","padding"].map(function(G){return"".concat(G," ").concat(n.motionDurationSlow)}).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:y(n.paddingSM).mul(-1).equal()}})),"".concat(C,"-hoverable"),{"&:hover":{borderColor:n.colorPrimary}})},J=V,R={"&, *":{boxSizing:"border-box"}},k=function(n){var M=n.componentCls,y=n.calc,C=n.antCls,G="".concat(M,"-drop-area"),Q="".concat(M,"-placeholder");return i()(i()({},G,g()(g()({position:"absolute",inset:0,zIndex:n.zIndexPopupBase},R),{},i()({"&-on-body":{position:"fixed",inset:0},"&-hide-placement":i()({},"".concat(Q,"-inner"),{display:"none"})},Q,{padding:0}))),"&",i()({},Q,g()(g()({height:"100%",borderRadius:n.borderRadius,borderWidth:n.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:n.padding,position:"relative",backdropFilter:"blur(10px)",background:n.colorBgPlaceholderHover},R),{},i()(i()(i()(i()(i()(i()(i()({},"".concat(C,"-upload-wrapper ").concat(C,"-upload").concat(C,"-upload-btn"),{padding:0}),"&".concat(Q,"-drag-in"),{borderColor:n.colorPrimaryHover}),"&".concat(Q,"-disabled"),{opacity:.25,pointerEvents:"none"}),"".concat(Q,"-inner"),{gap:y(n.paddingXXS).div(2).equal()}),"".concat(Q,"-icon"),{fontSize:n.fontSizeHeading2,lineHeight:1}),"".concat(Q,"-title").concat(Q,"-title"),{margin:0,fontSize:n.fontSize,lineHeight:n.lineHeight}),"".concat(Q,"-description"),{}))))},Y=function(n){var M=n.componentCls,y=n.calc,C="".concat(M,"-list"),G=y(n.fontSize).mul(n.lineHeight).mul(2).add(n.paddingSM).add(n.paddingSM).equal();return i()({},M,g()(g()({position:"relative",width:"100%"},R),{},i()({},C,{display:"flex",gap:n.paddingSM,fontSize:n.fontSize,lineHeight:n.lineHeight,color:n.colorText,width:"100%",overflow:"auto",padding:n.padding,paddingBottom:0,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:"opacity ".concat(n.motionDurationSlow),zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:y(G).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:G,height:G,fontSize:n.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:n.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:n.padding}},"&-next-btn":{right:{_skip_check_:!0,value:n.padding}},"&:dir(ltr)":i()(i()({},"&".concat(C,"-overflow-ping-start ").concat(C,"-prev-btn"),{opacity:1,pointerEvents:"auto"}),"&".concat(C,"-overflow-ping-end ").concat(C,"-next-btn"),{opacity:1,pointerEvents:"auto"}),"&:dir(rtl)":i()(i()({},"&".concat(C,"-overflow-ping-end ").concat(C,"-prev-btn"),{opacity:1,pointerEvents:"auto"}),"&".concat(C,"-overflow-ping-start ").concat(C,"-next-btn"),{opacity:1,pointerEvents:"auto"})})))},d=function(n){var M=n.colorBgContainer,y=new Te.t(M).setA(.85);return{colorBgPlaceholderHover:y.toRgbString()}},S=(0,Fe.I$)("Attachments",function(l){var n=(0,ie.IX)(l,{});return[k(n),Y(n),J(n)]},d),q=function(n){return n.indexOf("image/")===0},re=200;function x(l){return new Promise(function(n){if(!l||!l.type||!q(l.type)){n("");return}var M=new Image;if(M.onload=function(){var G=M.width,Q=M.height,he=G/Q,ee=he>1?re:re*he,te=he>1?re/he:re,H=document.createElement("canvas");H.width=ee,H.height=te,H.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ee,"px; height: ").concat(te,"px; z-index: 9999; display: none;"),document.body.appendChild(H);var ue=H.getContext("2d");ue.drawImage(M,0,0,ee,te);var fe=H.toDataURL();document.body.removeChild(H),window.URL.revokeObjectURL(M.src),n(fe)},M.crossOrigin="anonymous",l.type.startsWith("image/svg+xml")){var y=new FileReader;y.onload=function(){y.result&&typeof y.result=="string"&&(M.src=y.result)},y.readAsDataURL(l)}else if(l.type.startsWith("image/gif")){var C=new FileReader;C.onload=function(){C.result&&n(C.result)},C.readAsDataURL(l)}else M.src=window.URL.createObjectURL(l)})}function ve(){return(0,u.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,u.jsx)("title",{children:"audio"}),(0,u.jsx)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:(0,u.jsx)("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})})]})}var se=e(56991),De=e(44852);function xe(l){var n=l.percent,M=se.Z.useToken(),y=M.token;return(0,u.jsx)(De.Z,{type:"circle",percent:n,size:y.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:function(G){return(0,u.jsxs)("span",{style:{color:"#FFF"},children:[(G||0).toFixed(0),"%"]})}})}function Ze(){return(0,u.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,u.jsx)("title",{children:"video"}),(0,u.jsx)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:(0,u.jsx)("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})})]})}var He="\xA0",Re="#8c8c8c",$e=["png","jpg","jpeg","gif","bmp","webp","svg"],Ye=[{icon:(0,u.jsx)($.FileExcelFilled,{}),color:"#22b35e",ext:["xlsx","xls"]},{icon:(0,u.jsx)($.FileImageFilled,{}),color:Re,ext:$e},{icon:(0,u.jsx)($.FileMarkdownFilled,{}),color:Re,ext:["md","mdx"]},{icon:(0,u.jsx)($.FilePdfFilled,{}),color:"#ff4d4f",ext:["pdf"]},{icon:(0,u.jsx)($.FilePptFilled,{}),color:"#ff6e31",ext:["ppt","pptx"]},{icon:(0,u.jsx)($.FileWordFilled,{}),color:"#1677ff",ext:["doc","docx"]},{icon:(0,u.jsx)($.FileZipFilled,{}),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:(0,u.jsx)(Ze,{}),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:(0,u.jsx)(ve,{}),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function We(l,n){return n.some(function(M){return l.toLowerCase()===".".concat(M)})}function Qe(l){for(var n=l,M=["B","KB","MB","GB","TB","PB","EB"],y=0;n>=1024&&y<M.length-1;)n/=1024,y++;return"".concat(n.toFixed(0)," ").concat(M[y])}function Ke(l,n){var M=l.prefixCls,y=l.item,C=l.onRemove,G=l.className,Q=l.style,he=c.useContext(K),ee=he||{},te=ee.disabled,H=y.name,ue=y.size,fe=y.percent,Ee=y.status,ne=Ee===void 0?"done":Ee,me=y.description,pe=(0,p.wv)(),ge=pe.getPrefixCls,Se=ge("attachment",M),z="".concat(Se,"-list-card"),o=S(Se),t=j()(o,3),r=t[0],a=t[1],h=t[2],f=c.useMemo(function(){var X=H||"",ce=X.match(/^(.*)\.[^.]+$/);return ce?[ce[1],X.slice(ce[1].length)]:[X,""]},[H]),v=j()(f,2),F=v[0],P=v[1],W=c.useMemo(function(){return We(P,$e)},[P]),I=c.useMemo(function(){return me||(ne==="uploading"?"".concat(fe||0,"%"):ne==="error"?y.response||He:ue?Qe(ue):He)},[ne,fe]),N=c.useMemo(function(){var X=L()(Ye),ce;try{for(X.s();!(ce=X.n()).done;){var Ie=ce.value,ot=Ie.ext,it=Ie.icon,lt=Ie.color;if(We(P,ot))return[it,lt]}}catch(at){X.e(at)}finally{X.f()}return[(0,u.jsx)($.FileTextFilled,{},"defaultIcon"),Re]},[P]),Z=j()(N,2),oe=Z[0],Ce=Z[1],ye=c.useState(),Pe=j()(ye,2),ze=Pe[0],be=Pe[1];c.useEffect(function(){if(y.originFileObj){var X=!0;return x(y.originFileObj).then(function(ce){X&&be(ce)}),function(){X=!1}}be(void 0)},[y.originFileObj]);var we=null,Ne=y.thumbUrl||y.url||ze,Be=l.renderType||"default",Le=W&&(y.originFileObj||Ne)&&Be==="default";return Le?we=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("img",{alt:"preview",src:Ne}),ne!=="done"&&(0,u.jsxs)("div",{className:"".concat(z,"-img-mask"),children:[ne==="uploading"&&fe!==void 0&&(0,u.jsx)(xe,{percent:fe,prefixCls:z}),ne==="error"&&(0,u.jsx)("div",{className:"".concat(z,"-desc"),children:(0,u.jsx)("div",{className:"".concat(z,"-ellipsis-prefix"),children:I})})]})]}):we=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"".concat(z,"-icon"),style:{color:Ce},children:oe}),(0,u.jsxs)("div",{className:"".concat(z,"-content"),children:[(0,u.jsxs)("div",{className:"".concat(z,"-name"),children:[F!=null?F:He,P]}),(0,u.jsx)("div",{className:"".concat(z,"-desc"),children:(0,u.jsx)("div",{className:"".concat(z,"-ellipsis-prefix"),children:I})})]})]}),r((0,u.jsxs)("div",{className:s()(z,i()(i()(i()(i()(i()({},"".concat(z,"-status-").concat(ne),ne),"".concat(z,"-type-preview"),Le),"".concat(z,"-type-overview"),!Le),"".concat(z,"-type-").concat(Be),!0),"".concat(z,"-hoverable"),!te&&C),G,a,h),style:Q,ref:n,children:[we,!te&&C&&(0,u.jsx)("button",{type:"button",className:"".concat(z,"-remove"),onClick:function(){C(y)},children:(0,u.jsx)($.CloseOutlined,{})})]}))}var Oe=c.forwardRef(Ke),Me=1;function _e(l){var n=l.prefixCls,M=l.items,y=l.onRemove,C=l.overflow,G=l.upload,Q=l.listClassName,he=l.listStyle,ee=l.itemClassName,te=l.itemStyle,H="".concat(n,"-list"),ue=c.useRef(null),fe=c.useState(!1),Ee=j()(fe,2),ne=Ee[0],me=Ee[1],pe=c.useContext(K),ge=pe.disabled;c.useEffect(function(){return me(!0),function(){me(!1)}},[]);var Se=c.useState(!1),z=j()(Se,2),o=z[0],t=z[1],r=c.useState(!1),a=j()(r,2),h=a[0],f=a[1],v=function(){var N=ue.current;N&&(C==="scrollX"?(t(Math.abs(N.scrollLeft)>=Me),f(N.scrollWidth-N.clientWidth-Math.abs(N.scrollLeft)>=Me)):C==="scrollY"&&(t(N.scrollTop!==0),f(N.scrollHeight-N.clientHeight!==N.scrollTop)))};c.useEffect(function(){v()},[C]);var F=function(N){var Z=ue.current;Z&&Z.scrollTo({left:Z.scrollLeft+N*Z.clientWidth,behavior:"smooth"})},P=function(){F(-1)},W=function(){F(1)};return(0,u.jsxs)("div",{className:s()(H,i()(i()(i()({},"".concat(H,"-overflow-").concat(l.overflow),C),"".concat(H,"-overflow-ping-start"),o),"".concat(H,"-overflow-ping-end"),h),Q),ref:ue,onScroll:v,style:he,children:[(0,u.jsx)(D.V4,{keys:M.map(function(I){return{key:I.uid,item:I}}),motionName:"".concat(H,"-card-motion"),component:!1,motionAppear:ne,motionLeave:!0,motionEnter:!0,children:function(N){var Z=N.key,oe=N.item,Ce=N.className,ye=N.style;return(0,u.jsx)(Oe,{prefixCls:n,item:oe,onRemove:y,className:s()(Ce,ee),style:g()(g()({},ye),te),renderType:l.renderType},Z)}}),C==="scrollX"&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ae.ZP,{size:"small",shape:"circle",className:"".concat(H,"-prev-btn"),icon:(0,u.jsx)($.LeftOutlined,{}),onClick:P}),(0,u.jsx)(ae.ZP,{size:"small",shape:"circle",className:"".concat(H,"-next-btn"),icon:(0,u.jsx)($.RightOutlined,{}),onClick:W})]})]})}var Ge=e(41478),de=e(53799),Ve=e(13116);function Xe(l,n){var M=l.prefixCls,y=l.placeholder,C=y===void 0?{}:y,G=l.upload,Q=l.className,he=l.style,ee="".concat(M,"-placeholder"),te=C||{},H=c.useContext(K),ue=H.disabled,fe=c.useState(!1),Ee=j()(fe,2),ne=Ee[0],me=Ee[1],pe=function(){me(!0)},ge=function(t){t.currentTarget.contains(t.relatedTarget)||me(!1)},Se=function(){me(!1)},z=c.isValidElement(C)?C:(0,u.jsxs)(Ge.Z,{align:"center",justify:"center",vertical:!0,className:"".concat(ee,"-inner"),children:[(0,u.jsx)(de.Z.Text,{className:"".concat(ee,"-icon"),children:te.icon}),(0,u.jsx)(de.Z.Title,{className:"".concat(ee,"-title"),level:5,children:te.title}),(0,u.jsx)(de.Z.Text,{className:"".concat(ee,"-description"),type:"secondary",children:te.description})]});return(0,u.jsx)("div",{className:s()(ee,i()(i()({},"".concat(ee,"-drag-in"),ne),"".concat(ee,"-disabled"),ue),Q),onDragEnter:pe,onDragLeave:ge,onDrop:Se,"aria-hidden":ue,style:he,children:(0,u.jsx)(Ve.Z.Dragger,g()(g()({showUploadList:!1},G),{},{ref:n,style:{padding:0,border:0,background:"transparent"},children:z}))})}var qe=c.forwardRef(Xe);function et(l,n){var M=l.children,y=l.upload,C=l.rootClassName,G=c.useRef(null);return c.useImperativeHandle(n,function(){return G.current}),(0,u.jsx)(Ve.Z,g()(g()({},y),{},{showUploadList:!1,rootClassName:C,ref:G,children:M}))}var tt=c.forwardRef(et),nt=["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"];function Ue(l,n){var M=l.prefixCls,y=l.rootClassName,C=l.rootStyle,G=l.className,Q=l.style,he=l.items,ee=l.children,te=l.getDropContainer,H=l.placeholder,ue=l.onChange,fe=l.overflow,Ee=l.disabled,ne=l.classNames,me=ne===void 0?{}:ne,pe=l.styles,ge=pe===void 0?{}:pe,Se=b()(l,nt),z=(0,p.wv)(),o=z.getPrefixCls,t=z.direction,r=o("attachment",M),a=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(n,function(){return{nativeElement:a.current,upload:function(Le){var X,ce=(X=h.current)===null||X===void 0||(X=X.nativeElement)===null||X===void 0?void 0:X.querySelector('input[type="file"]');if(ce){var Ie=new DataTransfer;Ie.items.add(Le),ce.files=Ie.files,ce.dispatchEvent(new Event("change",{bubbles:!0}))}}}});var f=S(r),v=j()(f,3),F=v[0],P=v[1],W=v[2],I=s()(P,W),N=(0,_.C8)([],{value:he}),Z=j()(N,2),oe=Z[0],Ce=Z[1],ye=(0,_.zX)(function(Be){Ce(Be.fileList),ue==null||ue(Be)}),Pe=g()(g()({},Se),{},{fileList:oe,onChange:ye}),ze=function(Le){var X=oe.filter(function(ce){return ce.uid!==Le.uid});ye({file:Le,fileList:X})},be,we=function(Le,X,ce){var Ie=typeof H=="function"?H(Le):H;return(0,u.jsx)(qe,{placeholder:Ie,upload:Pe,prefixCls:r,className:s()(me.placeholder),style:g()(g()({},ge.placeholder),X==null?void 0:X.style),ref:ce})};if(ee)be=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(tt,{upload:Pe,rootClassName:y,ref:h,children:ee}),(0,u.jsx)(A,{getDropContainer:te,prefixCls:r,className:s()(I,y),children:we("drop")})]});else{var Ne=oe.length>0;be=(0,u.jsxs)("div",{className:s()(r,I,i()({},"".concat(r,"-rtl"),t==="rtl"),G,y),style:g()(g()({},C),Q),dir:t||"ltr",ref:a,children:[(0,u.jsx)(_e,{prefixCls:r,items:oe,onRemove:ze,overflow:fe,upload:Pe,listClassName:s()(me.list),listStyle:g()(g()({},ge.list),!Ne&&{display:"none"}),itemClassName:s()(me.item),itemStyle:g()({},ge.item),renderType:l.renderType}),we("inline",Ne?{style:{display:"none"}}:{},h)]})}return F((0,u.jsx)(K.Provider,{value:{disabled:Ee},children:be}))}var Je=c.forwardRef(Ue);Je.FileCard=Oe;var ke=Je},66857:function(Ae,U,e){e.d(U,{J:function(){return J},Z:function(){return k}});var B=e(82242),i=e.n(B),m=e(79800),g=e.n(m),O=e(92310),j=e.n(O),E=e(21739),b=e(70121),T=e(85573),s=e.n(T),c=e(51636),p=e(27710),_=e(15930),le=function(d){var S=d.componentCls,q=d.paddingSM,re=d.padding;return s()({},S,s()({},"".concat(S,"-content"),{width:"fit-content","&-filled":{padding:"".concat((0,_.bf)(q)," ").concat((0,_.bf)(re)),borderRadius:d.borderRadiusLG,backgroundColor:d.colorPrimaryBgHover}}))},K=function(d){var S=d.componentCls,q=d.fontSize,re=d.lineHeight,x=d.paddingSM,ve=d.padding,se=d.calc,De=se(q).mul(re).div(2).add(x).equal(),xe="".concat(S,"-content");return s()({},S,s()(s()(s()({},xe,{"&-round":{borderRadius:{_skip_check_:!0,value:De},paddingInline:se(ve).mul(1.25).equal()}}),"&-start ".concat(xe,"-corner"),{borderStartStartRadius:d.borderRadiusXS}),"&-end ".concat(xe,"-corner"),{borderStartEndRadius:d.borderRadiusXS}))},u=function(d){var S=d.componentCls,q=d.fontSize,re=d.lineHeight,x=d.paddingSM,ve=d.colorText,se=d.calc,De=d.prefixCls;return s()({},S,s()(s()(s()(s()({display:"flex",columnGap:x},"& ".concat(S,"-content-wrapper-card"),{width:"100%"}),"&".concat(S,"-end, &").concat(S,"-user"),s()({flexDirection:"row-reverse"},"& ".concat(S,"-content-wrapper-card"),{display:"flex",justifyContent:"flex-end"})),"& ".concat(S,"-content-wrapper"),{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"}),"& ".concat(S,"-content"),{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:ve,fontSize:d.fontSize,lineHeight:d.lineHeight,wordBreak:"break-word"}))},A=function(){return{}},$=(0,p.I$)("Bubble",function(Y){var d=(0,c.IX)(Y,{});return[u(d),le(d),K(d)]},A),ae=e(23057),D=e(76857),w=e(86770),L=e(27174);function ie(){var Y=(0,ae.wv)(),d=Y.getPrefixCls,S=d("bubble-loading");return(0,L.jsxs)("div",{className:S,children:[(0,L.jsx)("div",{className:"".concat(S,"-dot1")}),(0,L.jsx)("div",{className:"".concat(S,"-dot2")}),(0,L.jsx)("div",{className:"".concat(S,"-dot3")}),(0,L.jsx)("div",{className:"".concat(S,"-text"),children:"-"})]})}var Te=e(90631),Fe=function(d){var S=d.avatar,q=d.msgStatus,re=d.isAssistant,x=d.prefixCls,ve=d.className,se=d.style,De=E.isValidElement(S)?S:(0,L.jsx)(Te.Z,i()({},S));return(0,L.jsx)("div",{className:j()("".concat(x,"-avatar"),s()({},"".concat(x,"-avatar-loading"),re&&q==="generating"),ve),style:se,children:De})},V=Fe,J=E.createContext({}),R=function(d){var S=d.prefixCls,q=d.className,re=d.rootClassName,x=d.style,ve=d.classNames,se=ve===void 0?{}:ve,De=d.styles,xe=De===void 0?{}:De,Ze=d.avatar,He=d.content,Re=He===void 0?"":He,$e=d.cards,Ye=d.variant,We=d.shape,Qe=d.msgStatus,Ke=d.id,Oe=d.role,Me={assistant:"start",user:"end"}[Oe]||"start",_e=(0,ae.wv)(),Ge=_e.getPrefixCls,de=Ge("bubble",S),Ve=$(de),Xe=g()(Ve,3),qe=Xe[0],et=Xe[1],tt=Xe[2],nt=j()(de,re,q,et,tt,"".concat(de,"-").concat(Me)),Ue,Je=!(Re!=null&&Re.length)&&!($e!=null&&$e.length);d.msgStatus==="generating"&&Je?Ue=(0,L.jsx)(ie,{}):Ue=Re?(0,L.jsx)(D.Z,{typing:!0,content:Re,cursor:d.msgStatus==="generating"}):null;var ke=Me==="assistant"||Me==="start",l="".concat(de,"-content-").concat(Ye||(ke?"borderless":"filled")),n=(0,L.jsxs)(b.Z,{direction:"vertical",style:!ke&&Ue?{flexDirection:"column-reverse"}:{},className:"".concat(de,"-content-wrapper"),classNames:{item:"".concat(de,"-content-wrapper-card")},children:[(0,w.ZP)({cards:$e,id:Ke,className:j()("".concat(de,"-content"),l,We&&"".concat(de,"-content-").concat(We),se.content)}),Ue&&(0,L.jsx)("div",{style:i()({},xe.content),className:j()("".concat(de,"-content"),l,We&&"".concat(de,"-content-").concat(We),se.content),children:Ue})]}),M=qe((0,L.jsxs)("div",{style:x,className:nt,id:Ke,"data-role":Oe,children:[Ze&&(0,L.jsx)(V,{avatar:Ze,msgStatus:Qe,isAssistant:ke,prefixCls:de,className:se.avatar,style:xe.avatar}),n]}));return M},k=E.memo(R)},86770:function(Ae,U,e){e.d(U,{LH:function(){return j},ZP:function(){return O}});var B=e(21739),i=e(13875),m=e(27174);function g(E){var b=(0,i.HJ)(),T=(0,B.useMemo)(function(){if(E.component)return E.component;var s=b;return(s==null?void 0:s[E.code])||function(){return"".concat(E.code," not found")}},[]);return typeof T=="function"?(0,m.jsx)(T,{code:E.code,data:E.data,index:E.index,id:E.id}):T}function O(E){var b=E.cards;return b!=null&&b.length?b.map(function(T,s){var c=(0,m.jsx)(g,{code:T.code,component:T.component,data:T.data,index:s,id:E.id},s);return T.code==="Text"?(0,m.jsx)("div",{className:E.className,children:c},s):c}):null}function j(E,b){return{code:E,data:b}}},32475:function(Ae,U,e){e.d(U,{p4:function(){return j},hw:function(){return E},ZP:function(){return O}});var B=e(23057),i=e(21739),m=e(68768),g=e(27174);function O(b){var T=(0,B.wv)(),s=T.getPrefixCls,c=s("bubble-footer"),p=b.data,_=p.left,le=p.right;return _&&!_.type||le&&!le.type?null:(0,g.jsxs)("div",{className:c,children:[(0,g.jsx)("div",{className:"".concat(c,"-left"),children:b.data.left}),(0,g.jsx)("div",{className:"".concat(c,"-right"),children:b.data.right})]})}function j(b){var T=(0,B.wv)(),s=T.getPrefixCls,c=s("bubble-footer-actions");return(0,g.jsx)("div",{className:c,children:b.data.map(function(p,_){return(0,g.jsx)(m.ZP,{size:"small",type:"text",icon:p.icon,onClick:p.onClick},_)})})}function E(b){var T=(0,B.wv)(),s=T.getPrefixCls,c=s("bubble-footer-count");return(0,g.jsx)("div",{className:c,children:b.data.map(function(p){return(0,g.jsxs)("div",{className:"".concat(c,"-item"),children:[p[0],"\uFF1A",p[1]]},p[0])})})}},96082:function(Ae,U,e){e.r(U),e.d(U,{DeepThink:function(){return g},Files:function(){return E},Footer:function(){return K.ZP},FooterActions:function(){return K.p4},FooterCount:function(){return K.hw},Images:function(){return p},Interrupted:function(){return ae},Text:function(){return le}});var B=e(21739),i=e(61416),m=e(27174);function g(D){return(0,m.jsx)(i.Z,{defaultOpen:!0,title:D.data.title,loading:D.data.loading,content:D.data.content})}var O=e(70121),j=e(16940);function E(D){return(0,m.jsx)(O.Z,{children:D.data.map(function(w,L){return(0,m.jsx)(j.Z.FileCard,{item:{name:w.filename,size:w.bytes}},L)})})}var b=e(23057),T=e(33006),s=e(15003);function c(D){var w=(0,b.wv)(),L=w.getPrefixCls,ie=L("bubble-image");return(0,m.jsx)("div",{className:"".concat(ie),children:(0,m.jsx)(T.Z,{src:D.url,width:56,height:56,preview:{transitionName:""}})})}function p(D){return(0,m.jsx)(s.ZP,{locale:{Image:{preview:""}},children:(0,m.jsx)(O.Z,{children:D.data.map(function(w,L){return(0,m.jsx)(c,{url:w.url},L)})})})}var _=e(76857);function le(D){return(0,m.jsx)(_.Z,{raw:D.data.raw,content:D.data.content,cursor:D.data.msgStatus==="generating",typing:D.data.typing,citations:D.data.citations,citationsMap:D.data.citationsMap})}var K=e(32475),u=e(5465);function A(){var D=(0,b.wv)(),w=D.getPrefixCls,L=w("interrupted");return(0,m.jsx)("div",{className:"".concat(L,"-header-interrupted")})}function $(){var D=(0,b.wv)(),w=D.getPrefixCls,L=w("interrupted");return(0,m.jsx)(u.CloseCircleFilled,{className:"".concat(L,"-header-error")})}function ae(D){var w=D.data,L=w.title,ie=L===void 0?"Answers have stopped":L,Te=w.type,Fe=Te===void 0?"interrupted":Te,V=w.desc,J=(0,b.wv)(),R=J.getPrefixCls,k=R("interrupted");return(0,m.jsxs)("div",{className:"".concat(k),children:[(0,m.jsxs)("div",{className:"".concat(k,"-header"),children:[(0,m.jsx)("div",{className:"".concat(k,"-icon-wrapper"),children:Fe==="interrupted"?(0,m.jsx)(A,{}):(0,m.jsx)($,{})}),(0,m.jsx)("span",{children:ie})]}),V&&(0,m.jsx)("div",{className:"".concat(k,"-desc"),children:V})]})}},68828:function(Ae,U,e){var B=e(79800),i=e.n(B),m=e(66857),g=e(44736),O=e(21739);function j(T){return typeof T=="string"}var E=function(){},b=function(s,c){var p=O.useContext(m.J),_=p.onUpdate,le=_===void 0?E:_,K=O.useRef(""),u=O.useState(1),A=i()(u,2),$=A[0],ae=A[1],D=c&&j(s);(0,g.default)(function(){!D&&j(s)?ae(s.length):j(s)&&j(K.current)&&s.indexOf(K.current)!==0&&ae(1),K.current=s},[s]),O.useEffect(function(){if(D&&$<s.length){var L=setTimeout(function(){ae(function(ie){return ie+1}),le()});return function(){clearTimeout(L)}}},[$,c,s]);var w=D?s.slice(0,$):s;return[w,D&&$<s.length]};U.Z=b},76857:function(Ae,U,e){e.d(U,{Z:function(){return z}});var B=e(21739),i=e(82242),m=e.n(i),g=e(74401),O=e(37205),j=e.n(O),E=e(95581),b=e(37774),T=e(3369),s=e(20570),c=e(55468),p=e(10528);function _(){return function(o){(0,p.Vn)(o,"element",function(t){if(["p","h1","h2","h3","h4","h5","h6","li","strong"].includes(t.tagName)&&t.children){var r=[];t.children.forEach(function(a){if(a.type==="text"){var h=new Intl.Segmenter("zh",{granularity:"word"}),f=h.segment(a.value),v=Array.from(f).map(function(F){return F.segment}).filter(Boolean);v.forEach(function(F){r.push({type:"element",tagName:"span",properties:{className:"animate-fade-in"},children:[{type:"text",value:F}]})})}else r.push(a)}),t.children=r}})}}var le=e(79800),K=e.n(le),u=e(2348),A=function(){return function(t,r){var a=new Map;(0,p.Vn)(t,"footnoteDefinition",function(h){var f=null;(0,p.Vn)(h,"link",function(v){if(f)return u.AM;var F=v.children.find(function(P){return P.type==="text"});return f={alt:(F==null?void 0:F.value)||"",title:(F==null?void 0:F.value)||"",url:v.url},u.AM}),f&&a.set(h.identifier,f)}),r.data.footnoteLinks=Object.fromEntries(a)}},$=function(){return function(t,r){var a=r.data.footnoteLinks||{};(0,p.Vn)(t,"element",function(h){var f;if(h.tagName==="section"&&(f=h.properties.className)!==null&&f!==void 0&&f.includes("footnotes")){var v=Object.entries(a).sort(function(I,N){var Z=K()(I,1),oe=Z[0],Ce=K()(N,1),ye=Ce[0];return oe.localeCompare(ye)}).map(function(I){var N=K()(I,2),Z=N[0],oe=N[1];return m()({id:Z},oe)});h.properties["data-footnote-links"]=JSON.stringify(v)}if(h.tagName==="sup"){var F=h.children.find(function(I){return I.tagName==="a"});if(F){var P,W=(P=F.properties)===null||P===void 0||(P=P.id)===null||P===void 0?void 0:P.replace(/^user-content-fnref-/,"")[0];W!==void 0&&(F.properties["data-link"]=JSON.stringify(a[W]))}}})}},ae=function(){return function(t){(0,p.Vn)(t,"element",function(r){var a;(a=r.properties)!==null&&a!==void 0&&(a=a.className)!==null&&a!==void 0&&a.includes("katex")&&(r.properties.dir="ltr")})}},D=50,w=new Map,L=function(t,r){if(w.size>=D){var a=w.keys().next().value;a&&w.delete(a)}w.set(t,r)},ie=function(t){var r=t.cursor,a=t.allowHtml,h=t.enableLatex,f=t.enableCustomFootnotes,v=t.isChatMode,F=t.rehypePlugins,P=t.remarkPlugins,W=t.remarkPluginsAhead,I=Array.isArray(F)?F:F?[F]:[],N=Array.isArray(P)?P:P?[P]:[],Z=Array.isArray(W)?W:W?[W]:[],oe=[a&&b.Z,h&&E.Z,h&&ae,f&&$,r&&_].concat(j()(I)).filter(Boolean),Ce=[].concat(j()(Z),[[s.Z,{singleTilde:!1}],f&&A,h&&c.Z,v&&T.Z],j()(N)).filter(Boolean);return{rehypePluginsList:oe,remarkPluginsList:Ce}};function Te(o){var t=/(```[\S\s]*?```|`.*?`)|\\\[([\S\s]*?[^\\])\\]|\\\((.*?)\\\)/g;return o.replaceAll(t,function(r,a,h,f){return a||(h?"$$".concat(h,"$$"):f?"$".concat(f,"$"):r)})}function Fe(o){return o.replaceAll("$\\ce{","$\\\\ce{").replaceAll("$\\pu{","$\\\\pu{")}function V(o){for(var t=0,r=0,a="",h=!1,f=!1,v=0;v<o.length;v++){var F=o[v];if(o.slice(v,v+3)==="```"){h=!h,a+="```",v+=2;continue}if(F==="`"){f=!f,a+="`";continue}if(F==="*"&&!f&&!h){if(t++,t===2&&r++,t>2){a+=F;continue}if(t===2&&r%2===0){var P=v>0?o[v-2]:"",W=/(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B6A\u1B74-\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBC2\uFD3E-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA])/.test(P);a+=v+1<o.length&&o[v+1]!==" "&&W?"* ":"*"}else a+="*"}else a+=F,t=0}return a}var J=function(t,r){var a=Object.entries(r);if(a.length===0)return t;var h=new RegExp("\\[(".concat(Object.keys(r).join("|"),")\\]"),"g");return t.replaceAll(h,function(f,v){return"[#citation-".concat(v,"](citation-").concat(v,")")}).replaceAll("][","] [")};function R(){return null}var k=e(39647),Y=e.n(k),d=e(41363),S=e.n(d),q=e(82413),re=e(89315),x=e(27174),ve,se,De,xe,Ze=(0,q.kc)(function(o){var t=o.css,r=o.token;return{container:t(ve||(ve=S()([`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
`]))),content:t(se||(se=S()([`
|
|
4
|
+
min-width: 16px;
|
|
5
|
+
padding: 0 4px !important;
|
|
6
|
+
height: 16px;
|
|
7
|
+
margin-inline: 2px;
|
|
8
|
+
font-size: 10px;
|
|
9
|
+
color: `,` !important;
|
|
10
|
+
text-align: center;
|
|
11
|
+
vertical-align: top;
|
|
12
|
+
background: `,` !important;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
transition: all 100ms `,`;
|
|
15
|
+
`])),r.colorTextSecondary,r.colorFillSecondary,r.motionEaseOut),hover:t(De||(De=S()([`
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
:hover {
|
|
19
|
+
color: `,` !important;
|
|
20
|
+
background: `,` !important;
|
|
21
|
+
}
|
|
22
|
+
`])),r.colorWhite,r.colorPrimary),supContainer:t(xe||(xe=S()([`
|
|
23
|
+
vertical-align: super;
|
|
24
|
+
`])))}});function He(o){var t=o.id,r=o.citationDetail,a=Ze(),h=a.styles,f=a.cx,v=r.content||r.title,F=r==null?void 0:r.url,P=(0,x.jsx)("sup",{className:f(h.container,h.supContainer),children:(0,x.jsx)("a",{className:f(h.content,h.hover),rel:"noreferrer",href:r.url,target:"_blank",children:t})});return v?(0,x.jsx)(re.Z,{title:r.title,content:F?(0,x.jsx)("a",{href:F,rel:"noreferrer",target:"_blank",children:F}):r.content,children:P}):P}var Re=function(t){var r=t.citationDetail,a=t.id,h=r.render,f=h===void 0?He:h,v=f;return(0,x.jsx)(v,{id:a,citationDetail:r})},$e=Re,Ye=["href","target","citationsData"],We=function(t){var r,a=t.href,h=t.target,f=t.citationsData,v=Y()(t,Ye),F=a==null||(r=a.startsWith)===null||r===void 0?void 0:r.call(a,"citation-");if(F){var P=a==null?void 0:a.replace("citation-",""),W=f==null?void 0:f[P];return(0,x.jsx)($e,{citationDetail:W,id:P})}var I=a==null?void 0:a.startsWith("http");return(0,x.jsx)("a",m()({href:a,target:h||I?"_blank":void 0},v))},Qe=We,Ke=e(47761),Oe=e(5465),Me=e(23057),_e=e(56991),Ge,de,Ve,Xe,qe=Object.keys(Ke.xO),et=function(t){var r=/\n/g,a=t.match(r);return a?a.length:1},tt=function(t){if(!t)return{};var r=t.props,a=r.children,h=r.className;if(!a)return{};var f=Array.isArray(a)?a[0]:a,v=(h==null?void 0:h.replace("language-",""))||"txt",F=et(f)<=1&&f.length<=32;return{content:f,isSingleLine:F,lang:v}},nt=function(t){var r=t.children,a=tt(r),h=Ue(),f=h.styles,v=h.cx,F=(0,Me.wv)(),P=F.getPrefixCls,W=F.theme,I=W.algorithm===_e.Z.darkAlgorithm,N=(0,B.useState)(!1),Z=K()(N,2),oe=Z[0],Ce=Z[1],ye=a.content,Pe=ye===void 0?"":ye,ze=a.lang,be=ze===void 0?"":ze;return a.content?qe.indexOf(be)===-1?(0,x.jsx)("pre",{children:(0,x.jsx)("code",{children:Pe})}):(0,x.jsxs)("div",{className:f.container,children:[(0,x.jsxs)("div",{className:f.header,children:[(0,x.jsx)("div",{children:be}),oe?(0,x.jsx)(Oe.CheckOutlined,{className:f.copied}):(0,x.jsx)(Oe.CopyOutlined,{className:f.icon,onClick:function(){navigator.clipboard.writeText(Pe),Ce(!0),setTimeout(function(){Ce(!1)},1e3)}})]}),(0,x.jsx)(Ke.ZP,{value:Pe,language:be,theme:I?"dark":"light",readOnly:!0})]}):null},Ue=(0,q.kc)(function(o){var t=o.css,r=o.token;return{copied:t(Ge||(Ge=S()([`
|
|
25
|
+
color: `,`
|
|
26
|
+
`])),r.colorSuccess),container:t(de||(de=S()([`
|
|
27
|
+
border: 1px solid `,`;
|
|
28
|
+
border-radius: 6px;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
font-size: 0.8571428571428571em;
|
|
31
|
+
`])),r.colorBorderSecondary),header:t(Ve||(Ve=S()([`
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
background: `,`;
|
|
35
|
+
height: 28px;
|
|
36
|
+
line-height: 28px;
|
|
37
|
+
border-radius: 4px 4px 0 0;
|
|
38
|
+
align-items: center;
|
|
39
|
+
user-select: none;
|
|
40
|
+
position: relative;
|
|
41
|
+
padding: 0 12px;
|
|
42
|
+
`])),r.colorFillSecondary),icon:t(Xe||(Xe=S()([`
|
|
43
|
+
fontsize: 14px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
`])))}}),Je=nt,ke=e(24141),l=e(24180);function n(o){var t=o.src,r=new URL(t),a=r.pathname,h=a.endsWith(".mp4");return h?(0,x.jsx)(y,m()({src:o.src},o)):(0,x.jsx)(M,m()({src:o.src},o))}function M(o){var t=(0,Me.wv)(),r=t.getPrefixCls,a=r("markdown-image");return(0,x.jsx)(ke.Z,m()(m()({src:o.src},o),{},{className:a}))}function y(o){var t=o.src,r=(0,B.useState)(!1),a=K()(r,2),h=a[0],f=a[1],v=(0,Me.wv)(),F=v.getPrefixCls,P=F("markdown-video");return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{onClick:function(){return f(!0)},className:P,children:(0,x.jsx)(Oe.PlayCircleOutlined,{className:"".concat(P,"-play")})}),(0,x.jsx)(l.Z,{closeIcon:(0,x.jsx)("a",{children:(0,x.jsx)(Oe.CloseOutlined,{})}),centered:!0,transitionName:"",footer:null,width:500,title:"",styles:{content:{padding:0}},open:h,destroyOnHidden:!0,onCancel:function(){return f(!1)},children:(0,x.jsx)("video",{controls:!0,autoPlay:!0,style:{display:"block",width:"100%"},children:(0,x.jsx)("source",{src:t,type:"video/mp4"})})})]})}var C=[],G={},Q=(0,B.memo)(function(o){var t=o.children,r=o.enableLatex,a=r===void 0?!0:r,h=o.enableCustomFootnotes,f=h===void 0?!0:h,v=o.componentProps,F=o.allowHtml,P=F===void 0?!1:F,W=o.reactMarkdownProps,I=o.rehypePlugins,N=o.remarkPlugins,Z=o.remarkPluginsAhead,oe=o.components,Ce=oe===void 0?{}:oe,ye=o.cursor,Pe=o.citations,ze=Pe===void 0?C:Pe,be=o.citationsMap,we=be===void 0?G:be,Ne=(0,B.useMemo)(function(){var je=m()({},we);return ze.forEach(function(rt,ut){var ct=ut+1;je[ct]=rt}),je},[ze,we]),Be=(0,B.useMemo)(function(){return"".concat(t,"-").concat(a,"-").concat(f,"-").concat(Object.keys(Ne).length)},[t,a,f,Ne]),Le=(0,B.useMemo)(function(){if(w.has(Be))return w.get(Be);var je;if(a){var rt=V(Fe(Te(t)));je=f?J(rt,Ne):rt}else je=V(t);return L(Be,je),je},[Be,t,a,f,Ne]),X=(0,B.useMemo)(function(){return ie({cursor:ye,allowHtml:P,enableLatex:a,enableCustomFootnotes:f,rehypePlugins:I,remarkPlugins:N,remarkPluginsAhead:Z})},[ye,P,a,f,I,N,Z]),ce=X.rehypePluginsList,Ie=X.remarkPluginsList,ot=(0,B.useCallback)(function(je){return(0,x.jsx)(Qe,m()(m()({citationsData:Ne},je),v==null?void 0:v.a))},[Ne,v==null?void 0:v.a]),it=(0,B.useCallback)(function(je){return(0,x.jsx)(n,m()({src:je.src},je))},[v==null?void 0:v.img]),lt=(0,B.useCallback)(function(je){return(0,x.jsx)(Je,m()(m()({},je),v==null?void 0:v.pre))},[v==null?void 0:v.pre]),at=(0,B.useMemo)(function(){return m()({a:ot,style:R,script:R,img:it,pre:lt},Ce)},[Ce]),st=(0,B.useMemo)(function(){return(0,x.jsx)(g.UG,m()(m()({},W),{},{components:at,rehypePlugins:ce,remarkPlugins:Ie,children:Le}))},[Le,at,ce,Ie]);return st}),he=Q,ee=e(15003),te=e(53799),H=e(72727),ue=e(92310),fe=e.n(ue);function Ee(){return(0,x.jsx)("span",{className:"markdown-cursor-underline"})}function ne(){return(0,x.jsxs)("span",{className:"markdown-cursor-dot",children:[(0,x.jsx)("span",{style:{opacity:0,marginLeft:"-.75em"},children:"_"}),(0,x.jsx)("span",{className:"markdown-cursor-dot-dot1"}),(0,x.jsx)("span",{className:"markdown-cursor-dot-dot2"})]})}var me=e(17131);function pe(o){var t,r,a=o==null?void 0:o[o.length-(((t=o[o.length-1])===null||t===void 0?void 0:t.nodeValue)===`
|
|
46
|
+
`?2:1)];return a!=null&&(r=a.childNodes)!==null&&r!==void 0&&r.length?pe(a.childNodes):a}function ge(o,t,r){var a=(0,Me.wv)(),h=a.getPrefixCls,f=(0,B.useMemo)(function(){return{underline:Ee,dot:ne}[t]||ne},[t]),v=h("typography-cursor");(0,B.useLayoutEffect)(function(){try{var F,P,W=pe((F=o.current)===null||F===void 0?void 0:F.childNodes),I=o.current.querySelector(".".concat(v));if(I&&((P=I.parentElement)===null||P===void 0||P.removeChild(I)),t&&W){var N=document.createElement("span");if(N.className=fe()(v),N.innerHTML="",W.nodeType===3){var Z;(Z=W.parentNode)===null||Z===void 0||Z.appendChild(N)}else W.appendChild(N);var oe=(0,me.createRoot)(N);oe.render((0,x.jsx)(f,{}))}}catch(Ce){console.error("markdown cursor error",Ce)}},[r,t])}var Se=e(68828);function z(o){var t=(0,H.bN)(),r=t.markdown,a=o.content,h=a===void 0?"":a,f=o.raw,v=f===void 0?!1:f,F=o.baseFontSize||(r==null?void 0:r.baseFontSize)||14,P=(0,B.useRef)(),W=(0,Me.wv)(),I=W.getPrefixCls,N=I("markdown"),Z=(0,Se.Z)(h,o.cursor&&o.typing);return ge(P,o.cursor,Z[0]),(0,x.jsx)(ee.ZP,{theme:{token:{fontSize:F}},children:(0,x.jsx)(te.Z,{children:(0,x.jsx)("div",{className:N,ref:P,children:v?Z[0]:(0,x.jsx)(he,{citations:o.citations,citationsMap:o.citationsMap,allowHtml:o.allowHtml,components:o.components,children:Z[0]})})})})}},13875:function(Ae,U,e){e.d(U,{HJ:function(){return b},NR:function(){return j},xy:function(){return E}});var B=e(82242),i=e.n(B),m=e(21739),g=e(96082),O=e(27174),j=(0,m.createContext)(void 0),E=function(s){return(0,O.jsx)(j.Provider,{value:s.cardConfig,children:s.children})},b=function(){var s=m.useContext(j);return i()(i()({},g),s)}},72727:function(Ae,U,e){e.d(U,{R:function(){return g},bN:function(){return O}});var B=e(21739),i=e(27174),m=(0,B.createContext)(void 0),g=function(E){return(0,i.jsx)(m.Provider,{value:E,children:E.children})},O=function(){var E=B.useContext(m);return E||{}}},23057:function(Ae,U,e){e.d(U,{wv:function(){return E}});var B=e(15003),i=e(21739),m=e(13875),g=e(72727),O=e(27174),j=function(T){var s=T.children,c=T.cardConfig,p=T.markdown;return(0,O.jsx)(g.R,{markdown:p,children:(0,O.jsx)(m.xy,{cardConfig:c,children:s})})};function E(){var b=i.useContext(B.ZP.ConfigContext);return b}U.ZP=j},27710:function(Ae,U,e){e.d(U,{I$:function(){return ie}});var B=e(79800),i=e.n(B),m=e(51636),g=e(23057),O=e(82242),j=e.n(O),E=e(39647),b=e.n(E),T=e(15930),s=e(56991),c=e(90383),p=e(2013),_=e(21739),le=e(9876),K=["override"],u=["theme"],A=(0,T.jG)(s.Z.defaultAlgorithm),$={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ae=function V(J,R,k){var Y=k.getDerivativeToken(J),d=R.override,S=b()(R,K),q=j()(j()({},Y),{},{override:d});return q=(0,p.Z)(q),S&&Object.entries(S).forEach(function(re){var x=i()(re,2),ve=x[0],se=x[1],De=se.theme,xe=b()(se,u),Ze=xe;De&&(Ze=V(j()(j()({},q),xe),{override:xe},De)),q[ve]=Ze}),q};function D(){var V=_.useContext(s.Z._internalContext),J=V.token,R=V.hashed,k=V.theme,Y=k===void 0?A:k,d=V.override,S=V.cssVar,q=(0,T.fp)(Y,[s.Z.defaultSeed,J],{salt:"".concat(le.Z,"-").concat(R||""),override:d,getComputedToken:ae,cssVar:S&&{prefix:S.prefix,key:S.key,unitless:c.NJ,ignore:c.ID,preserve:$}}),re=i()(q,3),x=re[0],ve=re[1],se=re[2];return[Y,se,R?ve:"",x,S]}function w(){var V=D(),J=_slicedToArray(V,3),R=J[0],k=J[1],Y=J[2];return{theme:R,token:k,hashId:Y}}var L=(0,m.rb)({usePrefix:function(){var J=(0,g.wv)(),R=J.getPrefixCls,k=J.iconPrefixCls;return{iconPrefixCls:k,rootPrefixCls:R()}},useToken:function(){var J=D(),R=i()(J,5),k=R[0],Y=R[1],d=R[2],S=R[3],q=R[4];return{theme:k,realToken:Y,hashId:d,token:S,cssVar:q}},useCSP:function(){var J=(0,g.wv)(),R=J.csp;return R!=null?R:{}},layer:{name:"spc",dependencies:["antd"]}}),ie=L.genStyleHooks,Te=L.genComponentStyleHook,Fe=L.genSubStyleComponent},9876:function(Ae,U,e){e.d(U,{Z:function(){return i}});var B={i8:"1.1.4"},i=B.i8}}]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
(self.webpackChunk_agentscope_ai_chat=self.webpackChunk_agentscope_ai_chat||[]).push([[3364],{2276:function(E,w,f){"use strict";f.d(w,{Z:function(){return C}});var e=f(46530),S=f(21739);function _(u,v){return K(u)||A(u,v)||R(u,v)||W()}function W(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(u,v){if(u){if(typeof u=="string")return O(u,v);var h=Object.prototype.toString.call(u).slice(8,-1);if(h==="Object"&&u.constructor&&(h=u.constructor.name),h==="Map"||h==="Set")return Array.from(u);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return O(u,v)}}function O(u,v){(v==null||v>u.length)&&(v=u.length);for(var h=0,b=new Array(v);h<v;h++)b[h]=u[h];return b}function A(u,v){var h=u==null?null:typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(h!=null){var b,j,k,V,z=[],H=!0,U=!1;try{if(k=(h=h.call(u)).next,v===0){if(Object(h)!==h)return;H=!1}else for(;!(H=(b=k.call(h)).done)&&(z.push(b.value),z.length!==v);H=!0);}catch(B){U=!0,j=B}finally{try{if(!H&&h.return!=null&&(V=h.return(),Object(V)!==V))return}finally{if(U)throw j}}return z}}function K(u){if(Array.isArray(u))return u}var J=function(){return S.createElement("svg",{viewBox:"0 0 16 16"},S.createElement("path",{d:"M8.218 1.455c3.527.109 6.327 3.018 6.327 6.545 0 3.6-2.945 6.545-6.545 6.545a6.562 6.562 0 0 1-6.036-4h.218c3.6 0 6.545-2.945 6.545-6.545 0-.91-.182-1.745-.509-2.545m0-1.455c-.473 0-.909.218-1.2.618-.29.4-.327.946-.145 1.382.254.655.4 1.31.4 2 0 2.8-2.291 5.09-5.091 5.09h-.218c-.473 0-.91.22-1.2.62-.291.4-.328.945-.146 1.38C1.891 14.074 4.764 16 8 16c4.4 0 8-3.6 8-8a7.972 7.972 0 0 0-7.745-8h-.037Z"}))},P=function(){return S.createElement("svg",{viewBox:"0 0 16 16"},S.createElement("path",{d:"M8 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM8 3a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v1a1 1 0 0 1-1 1Zm7 4a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM3 8a1 1 0 0 1-1 1H1a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1Zm9.95 3.536.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414Zm-9.9-7.072-.707-.707a1 1 0 0 1 1.414-1.414l.707.707A1 1 0 0 1 3.05 4.464Zm9.9 0a1 1 0 0 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 1.414l-.707.707Zm-9.9 7.072a1 1 0 0 1 1.414 1.414l-.707.707a1 1 0 0 1-1.414-1.414l.707-.707ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 6.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"}))},I=function(){return S.createElement("svg",{viewBox:"0 0 16 16"},S.createElement("path",{d:"M14.595 8a6.595 6.595 0 1 1-13.19 0 6.595 6.595 0 0 1 13.19 0ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm0 2.014v11.972A5.986 5.986 0 0 0 8 2.014Z"}))},X={light:P,dark:J,auto:I},x=function(){var v=(0,e.useSiteData)(),h=v.themeConfig.prefersColor.default,b=(0,e.useIntl)(),j=(0,e.usePrefersColor)(),k=_(j,3),V=k[1],z=V===void 0?h:V,H=k[2],U=X[z];return S.createElement("span",{className:"dumi-default-color-switch","data-dumi-tooltip":b.formatMessage({id:"header.color.mode.".concat(z)}),"data-dumi-tooltip-bottom":!0},U&&S.createElement(U,null),S.createElement("select",{onChange:function($){return H($.target.value)},value:z,onClick:function($){return $.stopPropagation()}},["light","dark","auto"].map(function(B){return S.createElement("option",{value:B,key:B},b.formatMessage({id:"header.color.mode.".concat(B)}))})))},C=x},95071:function(E,w,f){"use strict";f.d(w,{ZP:function(){return p}});var e=f(21739),S=Object.defineProperty,_=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,O=(t,r,n)=>r in t?S(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,A=(t,r)=>{for(var n in r||(r={}))W.call(r,n)&&O(t,n,r[n]);if(_)for(var n of _(r))R.call(r,n)&&O(t,n,r[n]);return t};const K=t=>e.createElement("svg",A({viewBox:"64 64 896 896"},t),e.createElement("path",{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}));var J="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODYyIDQ2NS4zaC04MWMtNC42IDAtOSAyLTEyLjEgNS41TDU1MCA3MjMuMVYxNjBjMC00LjQtMy42LTgtOC04aC02MGMtNC40IDAtOCAzLjYtOCA4djU2My4xTDI1NS4xIDQ3MC44Yy0zLTMuNS03LjQtNS41LTEyLjEtNS41aC04MWMtNi44IDAtMTAuNSA4LjEtNiAxMy4yTDQ4Ny45IDg2MWEzMS45NiAzMS45NiAwIDAgMCA0OC4zIDBMODY4IDQ3OC41YzQuNS01LjIuOC0xMy4yLTYtMTMuMnoiLz48L3N2Zz4=",P=Object.defineProperty,I=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,C=(t,r,n)=>r in t?P(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,u=(t,r)=>{for(var n in r||(r={}))X.call(r,n)&&C(t,n,r[n]);if(I)for(var n of I(r))x.call(r,n)&&C(t,n,r[n]);return t};const v=t=>e.createElement("svg",u({viewBox:"64 64 896 896"},t),e.createElement("path",{d:"M868 545.5 536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}));var h="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODY4IDU0NS41IDUzNi4xIDE2M2EzMS45NiAzMS45NiAwIDAgMC00OC4zIDBMMTU2IDU0NS41YTcuOTcgNy45NyAwIDAgMCA2IDEzLjJoODFjNC42IDAgOS0yIDEyLjEtNS41TDQ3NCAzMDAuOVY4NjRjMCA0LjQgMy42IDggOCA4aDYwYzQuNCAwIDgtMy42IDgtOFYzMDAuOWwyMTguOSAyNTIuM2MzIDMuNSA3LjQgNS41IDEyLjEgNS41aDgxYzYuOCAwIDEwLjUtOCA2LTEzLjJ6Ii8+PC9zdmc+",b=Object.defineProperty,j=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,z=(t,r,n)=>r in t?b(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,H=(t,r)=>{for(var n in r||(r={}))k.call(r,n)&&z(t,n,r[n]);if(j)for(var n of j(r))V.call(r,n)&&z(t,n,r[n]);return t};const U=t=>e.createElement("svg",H({viewBox:"64 64 896 896"},t),e.createElement("path",{d:"M909.6 854.5 649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}));var B="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTA5LjYgODU0LjUgNjQ5LjkgNTk0LjhDNjkwLjIgNTQyLjcgNzEyIDQ3OSA3MTIgNDEyYzAtODAuMi0zMS4zLTE1NS40LTg3LjktMjEyLjEtNTYuNi01Ni43LTEzMi04Ny45LTIxMi4xLTg3LjlzLTE1NS41IDMxLjMtMjEyLjEgODcuOUMxNDMuMiAyNTYuNSAxMTIgMzMxLjggMTEyIDQxMmMwIDgwLjEgMzEuMyAxNTUuNSA4Ny45IDIxMi4xQzI1Ni41IDY4MC44IDMzMS44IDcxMiA0MTIgNzEyYzY3IDAgMTMwLjYtMjEuOCAxODIuNy02MmwyNTkuNyAyNTkuNmE4LjIgOC4yIDAgMCAwIDExLjYgMGw0My42LTQzLjVhOC4yIDguMiAwIDAgMCAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiLz48L3N2Zz4=",$=f(46530),ue=f(45751),se=(0,e.forwardRef)(function(t,r){var n=(0,$.useIntl)(),s=(0,e.useRef)(!1),m=(0,e.useRef)(null);return(0,e.useImperativeHandle)(r,function(){return m.current}),e.createElement("input",{className:"dumi-default-search-bar-input",onCompositionStart:function(){return s.current=!0},onCompositionEnd:function(c){s.current=!1,t.onChange(c.currentTarget.value)},onFocus:t.onFocus,onBlur:t.onBlur,onMouseEnter:t.onMouseEnter,onKeyDown:function(c){["ArrowDown","ArrowUp"].includes(c.key)&&c.preventDefault(),c.key==="Escape"&&!s.current&&c.currentTarget.blur()},onChange:function(c){var D=c.target.value;setTimeout(function(){s.current||t.onChange(D)},1)},placeholder:n.formatMessage({id:"header.search.placeholder"}),ref:m})}),pe=function(r){return(0,e.useEffect)(function(){if(r.visible)document.body.style.overflow="hidden";else if(document.body.style.overflow){var n;document.body.style.overflow="",(n=r.onClose)===null||n===void 0||n.call(r)}},[r.visible]),r.visible?e.createElement("div",{className:"dumi-default-search-modal"},e.createElement("div",{className:"dumi-default-search-modal-mask",onClick:r.onMaskClick}),e.createElement("div",{className:"dumi-default-search-modal-content"},r.children)):null},le;function re(t,r){return o(t)||l(t,r)||ye(t,r)||ve()}function ve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(t,r){if(t){if(typeof t=="string")return me(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(t,r)}}function me(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,s=new Array(r);n<r;n++)s[n]=t[n];return s}function l(t,r){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var s,m,y,c,D=[],d=!0,M=!1;try{if(y=(n=n.call(t)).next,r===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(s=y.call(n)).done)&&(D.push(s.value),D.length!==r);d=!0);}catch(T){M=!0,m=T}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(M)throw m}}return D}}function o(t){if(Array.isArray(t))return t}var a=/(mac|iphone|ipod|ipad)/i.test(typeof navigator!="undefined"?(le=navigator)===null||le===void 0?void 0:le.platform:""),i=function(r){return["TEXTAREA","INPUT"].includes(r.tagName)||r.contentEditable==="true"},g=function(){var r=(0,e.useState)(!1),n=re(r,2),s=n[0],m=n[1],y=(0,e.useRef)(null),c=(0,e.useRef)(null),D=(0,e.useState)("\u2318"),d=re(D,2),M=d[0],T=d[1],N=(0,$.useSiteSearch)(),q=N.keywords,ee=N.setKeywords,ce=N.result,G=N.loading,Y=N.load,de=(0,e.useState)(!1),Q=re(de,2),ie=Q[0],oe=Q[1];return(0,e.useEffect)(function(){a||T("Ctrl");var L=function(Z){if(((a?Z.metaKey:Z.ctrlKey)&&Z.key==="k"||Z.key==="/"&&!i(Z.target))&&(Z.preventDefault(),y.current)){var ne=y.current.getBoundingClientRect(),Me=ne.top,fe=ne.bottom,F=ne.left,he=ne.right,ge=Me>=0&&F>=0&&fe<=window.innerHeight&&he<=window.innerWidth;ge?y.current.focus():(ee(""),oe(!0),setTimeout(function(){var ae;(ae=c.current)===null||ae===void 0||ae.focus()}))}Z.key==="Escape"&&(Z.preventDefault(),oe(!1))};return document.addEventListener("keydown",L),function(){return document.removeEventListener("keydown",L)}},[]),e.createElement("div",{className:"dumi-default-search-bar"},e.createElement(U,{className:"dumi-default-search-bar-svg"}),e.createElement(se,{onFocus:function(){m(!0),Y()},onMouseEnter:function(){Y()},onBlur:function(){setTimeout(function(){m(!1)},1)},onChange:function(te){return ee(te)},ref:y}),e.createElement("span",{className:"dumi-default-search-shortcut"},M," K"),q.trim()&&s&&!ie&&e.createElement("div",{className:"dumi-default-search-popover"},e.createElement("section",null,e.createElement(ue.Z,{data:ce,loading:G}))),e.createElement(pe,{visible:ie,onMaskClick:function(){oe(!1)},onClose:function(){return ee("")}},e.createElement("div",{style:{position:"relative"}},e.createElement(U,{className:"dumi-default-search-bar-svg"}),e.createElement(se,{onFocus:function(){return m(!0)},onBlur:function(){setTimeout(function(){m(!1)},1)},onChange:function(te){return ee(te)},ref:c})),e.createElement(ue.Z,{data:ce,loading:G,onItemSelect:function(){oe(!1)}}),e.createElement("footer",null,e.createElement("ul",{className:"dumi-default-search-modal-commands"},e.createElement("li",{className:"dumi-default-search-modal-commands-arrow"},e.createElement("span",{className:"dumi-default-search-modal-shortcut"},e.createElement(v,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),e.createElement("span",{className:"dumi-default-search-modal-shortcut"},e.createElement(K,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),e.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to navigate")),e.createElement("li",null,e.createElement("span",{className:"dumi-default-search-modal-shortcut"},"esc"),e.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to close"))))))},p=g},18099:function(E,w,f){"use strict";f.d(w,{Z:function(){return me}});var e=f(21739),S=Object.defineProperty,_=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,O=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,A=(l,o)=>{for(var a in o||(o={}))W.call(o,a)&&O(l,a,o[a]);if(_)for(var a of _(o))R.call(o,a)&&O(l,a,o[a]);return l};const K=l=>e.createElement("svg",A({viewBox:"0 0 1024 1024"},l),e.createElement("path",{d:"m885.2 446.3-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}));var J="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0Ij48cGF0aCBkPSJtODg1LjIgNDQ2LjMtLjItLjgtMTEyLjItMjg1LjFjLTUtMTYuMS0xOS45LTI3LjItMzYuOC0yNy4ySDI4MS4yYy0xNyAwLTMyLjEgMTEuMy0zNi45IDI3LjZMMTM5LjQgNDQzbC0uMy43LS4yLjhjLTEuMyA0LjktMS43IDkuOS0xIDE0LjgtLjEgMS42LS4yIDMuMi0uMiA0LjhWODMwYTYwLjkgNjAuOSAwIDAgMCA2MC44IDYwLjhoNjI3LjJjMzMuNSAwIDYwLjgtMjcuMyA2MC45LTYwLjhWNDY0LjFjMC0xLjMgMC0yLjYtLjEtMy43LjQtNC45IDAtOS42LTEuMy0xNC4xem0tMjk1LjgtNDMtLjMgMTUuN2MtLjggNDQuOS0zMS44IDc1LjEtNzcuMSA3NS4xLTIyLjEgMC00MS4xLTcuMS01NC44LTIwLjZTNDM2IDQ0MS4yIDQzNS42IDQxOWwtLjMtMTUuN0gyMjkuNUwzMDkgMjEwaDM5OS4ybDgxLjcgMTkzLjNINTg5LjR6bS0zNzUgNzYuOGgxNTcuM2MyNC4zIDU3LjEgNzYgOTAuOCAxNDAuNCA5MC44IDMzLjcgMCA2NS05LjQgOTAuMy0yNy4yIDIyLjItMTUuNiAzOS41LTM3LjQgNTAuNy02My42aDE1Ni41VjgxNEgyMTQuNFY0ODAuMXoiLz48L3N2Zz4=",P=function(l,o,a,i){function g(p){return p instanceof a?p:new a(function(t){t(p)})}return new(a||(a=Promise))(function(p,t){function r(m){try{s(i.next(m))}catch(y){t(y)}}function n(m){try{s(i.throw(m))}catch(y){t(y)}}function s(m){m.done?p(m.value):g(m.value).then(r,n)}s((i=i.apply(l,o||[])).next())})};function I(l){let o=0,a=0,i=l;do o+=i.offsetTop||0,a+=i.offsetLeft||0,i=i.offsetParent;while(i);return{top:o,left:a}}class X{constructor(o){this.element=o}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(o,a){return I(o).left-I(a).left}getVerticalElementScrollOffset(o,a){return I(o).top-I(a).top}scrollTo(o,a){this.element.scrollLeft=o,this.element.scrollTop=a}}class x{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(o){return(window.scrollX||document.documentElement.scrollLeft)+o.getBoundingClientRect().left}getVerticalElementScrollOffset(o){return(window.scrollY||document.documentElement.scrollTop)+o.getBoundingClientRect().top}scrollTo(o,a){window.scrollTo(o,a)}}const C={elements:[],cancelMethods:[],add:(l,o)=>{C.elements.push(l),C.cancelMethods.push(o)},remove:(l,o)=>{const a=C.elements.indexOf(l);a>-1&&(o&&C.cancelMethods[a](),C.elements.splice(a,1),C.cancelMethods.splice(a,1))}},u=typeof window!="undefined",v={cancelOnUserAction:!0,easing:l=>--l*l*l+1,elementToScroll:u?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function h(l){return P(this,arguments,void 0,function*(o,a={}){if(u){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return new Promise(Y=>{Y(!1)});let i,g,p,t=Object.assign(Object.assign({},v),a);const r=t.elementToScroll===window,n=!!t.elementToScroll.nodeName;if(!r&&!n)throw"Element to scroll needs to be either window or DOM element.";const s=[{property:"scroll-behavior",value:"smooth"},{property:"scroll-snap-type",value:"mandatory"}],m=r?document.documentElement:t.elementToScroll,y=getComputedStyle(m);s.forEach(({property:Y,value:de})=>{const Q=y.getPropertyValue(Y);Q.includes(de)&&console.warn(`${m.tagName} has "${Y}: ${Q}" which can break animated-scroll-to's animations`)});const c=r?new x:new X(t.elementToScroll);if(o instanceof Element){if(p=o,n&&(!t.elementToScroll.contains(p)||t.elementToScroll.isSameNode(p)))throw"options.elementToScroll has to be a parent of scrollToElement";i=c.getHorizontalElementScrollOffset(p,t.elementToScroll),g=c.getVerticalElementScrollOffset(p,t.elementToScroll)}else if(typeof o=="number")i=c.getHorizontalScroll(),g=o;else if(Array.isArray(o)&&o.length===2)i=o[0]===null?c.getHorizontalScroll():o[0],g=o[1]===null?c.getVerticalScroll():o[1];else throw`Wrong function signature. Check documentation.
|
|
4
|
+
Available method signatures are:
|
|
5
|
+
animateScrollTo(y:number, options)
|
|
6
|
+
animateScrollTo([x:number | null, y:number | null], options)
|
|
7
|
+
animateScrollTo(scrollToElement:Element, options)`;i+=t.horizontalOffset,g+=t.verticalOffset;const D=c.getMaxHorizontalScroll(),d=c.getHorizontalScroll();i>D&&(i=D);const M=i-d,T=c.getMaxVerticalScroll(),N=c.getVerticalScroll();g>T&&(g=T);const q=g-N,ee=Math.abs(Math.round(M/1e3*t.speed)),ce=Math.abs(Math.round(q/1e3*t.speed));let G=ee>ce?ee:ce;return G<t.minDuration?G=t.minDuration:G>t.maxDuration&&(G=t.maxDuration),new Promise((Y,de)=>{M===0&&q===0&&Y(!0),C.remove(c.element,!0);let Q;const ie=()=>{ne(),cancelAnimationFrame(Q),Y(!1)};C.add(c.element,ie);const oe=F=>F.preventDefault(),L=t.cancelOnUserAction?ie:oe,te=t.cancelOnUserAction?{passive:!0}:{passive:!1},Z=["wheel","touchstart","keydown","mousedown"],ne=()=>{Z.forEach(F=>{c.element.removeEventListener(F,L,te)})};Z.forEach(F=>{c.element.addEventListener(F,L,te)});const Me=Date.now(),fe=()=>{var F=Date.now()-Me,he=F/G;const ge=Math.round(d+M*t.easing(he)),ae=Math.round(N+q*t.easing(he));F<G&&(ge!==i||ae!==g)?(c.scrollTo(ge,ae),Q=requestAnimationFrame(fe)):(c.scrollTo(i,g),cancelAnimationFrame(Q),ne(),C.remove(c.element,!1),Y(!0))};Q=requestAnimationFrame(fe)})})}var b=h,j=f(46530);function k(l,o){return B(l)||U(l,o)||z(l,o)||V()}function V(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(l,o){if(l){if(typeof l=="string")return H(l,o);var a=Object.prototype.toString.call(l).slice(8,-1);if(a==="Object"&&l.constructor&&(a=l.constructor.name),a==="Map"||a==="Set")return Array.from(l);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return H(l,o)}}function H(l,o){(o==null||o>l.length)&&(o=l.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=l[a];return i}function U(l,o){var a=l==null?null:typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(a!=null){var i,g,p,t,r=[],n=!0,s=!1;try{if(p=(a=a.call(l)).next,o===0){if(Object(a)!==a)return;n=!1}else for(;!(n=(i=p.call(a)).done)&&(r.push(i.value),r.length!==o);n=!0);}catch(m){s=!0,g=m}finally{try{if(!n&&a.return!=null&&(t=a.return(),Object(t)!==t))return}finally{if(s)throw g}}return r}}function B(l){if(Array.isArray(l))return l}var $=function(){return e.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.333 10.667h21.334c.889 0 1.333.444 1.333 1.333s-.444 1.333-1.333 1.333H5.333C4.444 13.333 4 12.89 4 12s.444-1.333 1.333-1.333Z"}),e.createElement("path",{d:"M13.207 2.667h.126a1.206 1.206 0 0 1 1.2 1.326l-2.413 24.14a1.333 1.333 0 0 1-1.327 1.2h-.126a1.206 1.206 0 0 1-1.2-1.326l2.413-24.14c.068-.682.642-1.2 1.327-1.2Zm8 0h.126a1.206 1.206 0 0 1 1.2 1.326l-2.413 24.14a1.333 1.333 0 0 1-1.327 1.2h-.126a1.206 1.206 0 0 1-1.2-1.326l2.413-24.14c.068-.682.642-1.2 1.327-1.2Z"}),e.createElement("path",{d:"M5.333 18.667h21.334c.889 0 1.333.444 1.333 1.333s-.444 1.333-1.333 1.333H5.333C4.444 21.333 4 20.89 4 20s.444-1.333 1.333-1.333Z"}))},ue=function(){return e.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9.402 0h14.78L30 6.16V24.5c0 1.933-1.71 3.5-3.589 3.5H9.401C7.524 28 6 26.433 6 24.5v-21C6 1.567 7.523 0 9.402 0ZM23 2v4.183c0 .451.366.817.817.817H28l-5-5Zm3.333 24c.92 0 1.667-.768 1.667-1.714V8.857h-5c-.92 0-1.667-.767-1.667-1.714V2H9.667C8.747 2 8 2.768 8 3.714v20.572C8 25.232 8.746 26 9.667 26h16.666Z"}))},se=function(){return e.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.12 14.589h6.628l1.52 4.004h2.485l-5.938-15.19H8.053L2.115 18.732H4.6l1.52-4.143ZM8.88 6.855c.139-.414.277-.828.415-1.38h.138c0 .138.138.414.414 1.104 0 .138.138.276.138.276 0 .138.829 2.072 2.21 5.938H6.672c1.519-3.866 2.21-5.8 2.21-5.938Zm8.148 2.348h12.705v1.933H17.029V9.203ZM2.115 20.665h27.619v1.933H2.114v-1.933Zm14.914-5.662h12.705v1.933H17.029v-1.933ZM2.115 26.327h27.619v1.933H2.114v-1.933ZM17.029 3.54h12.705v1.934H17.029V3.54Z"}))},pe=function(){return e.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M28 6h-5a5 5 0 0 0-10 0H8a2 2 0 0 0-2 2v5a5 5 0 0 0 0 10v5a2 2 0 0 0 2 2h7v-2a3 3 0 0 1 6 0v2h7a2 2 0 0 0 2-2v-7h-2a3 3 0 0 1 0-6h2V8a2 2 0 0 0-2-2Zm-5 12a5 5 0 0 0 5 5v5h-5a5 5 0 0 0-10 0H8v-7H6a3 3 0 0 1 0-6h2V8h7V6a3 3 0 0 1 6 0v2h7v5a5 5 0 0 0-5 5Z"}))},le={title:$,page:ue,content:se,demo:pe},re=function(o){return e.createElement(e.Fragment,null,o.texts.map(function(a,i){return e.createElement(e.Fragment,{key:i},a.highlighted?e.createElement("mark",null,a.text):a.text)}))},ve=function(o){var a=(0,e.useCallback)(function(){var r=0,n=[];return o.forEach(function(s){s.title&&n.push({type:"title",value:{title:s.title}}),s.hints.forEach(function(m){n.push({type:"hint",activeIndex:r++,value:m})})}),[n,r]},[o]),i=(0,e.useState)(a),g=k(i,2),p=g[0],t=g[1];return(0,e.useEffect)(function(){t(a)},[o]),p},ye=function(o){var a=ve(o.data),i=k(a,2),g=i[0],p=i[1],t=(0,e.useState)(-1),r=k(t,2),n=r[0],s=r[1],m=(0,j.useLocation)(),y=m.pathname,c=function(M){var T;(T=o.onItemSelect)===null||T===void 0||T.call(o,M);var N=new URL(M==null?void 0:M.link,location.origin);(N==null?void 0:N.pathname)===y&&!N.hash&&setTimeout(function(){b(0,{maxDuration:300})},1)};(0,e.useEffect)(function(){var d=function(T){if(T.key==="ArrowDown")s((n+1)%p);else if(T.key==="ArrowUp")s((n+p-1)%p);else if(T.key==="Enter"&&n>=0){var N=g.find(function(q){return q.type==="hint"&&q.activeIndex===n}).value;j.history.push(N.link),c==null||c(N),document.activeElement.blur()}["Escape","Enter"].includes(T.key)&&s(-1)};return document.addEventListener("keydown",d),function(){return document.removeEventListener("keydown",d)}});var D=null;return o.loading?D=e.createElement("div",{className:"dumi-default-search-empty"},e.createElement(K,null),e.createElement(j.FormattedMessage,{id:"search.loading"})):o.data.length?D=e.createElement("dl",null,g.map(function(d,M){return d.type==="title"?e.createElement("dt",{key:String(M)},d.value.title):e.createElement("dd",{key:String(M)},e.createElement(j.Link,{to:d.value.link,"data-active":n===d.activeIndex||void 0,onClick:function(){return c==null?void 0:c(d.value)}},e.createElement(le[d.value.type]),e.createElement("h4",null,e.createElement(re,{texts:d.value.highlightTitleTexts})),e.createElement("p",null,e.createElement(re,{texts:d.value.highlightTexts}))))})):D=e.createElement("div",{className:"dumi-default-search-empty"},e.createElement(K,null),e.createElement(j.FormattedMessage,{id:"search.not.found"})),e.createElement("div",{className:"dumi-default-search-result",onMouseEnter:function(){return s(-1)},onMouseDownCapture:function(M){return M.preventDefault()},onMouseUpCapture:function(){document.activeElement.blur()}},D)},me=ye},26112:function(E,w,f){"use strict";f.d(w,{Z:function(){return K}});var e=f(20439),S=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
9
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
10
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
11
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
12
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
13
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
14
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
15
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
16
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
17
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
18
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
19
|
+
summary tabIndex target title type useMap value width wmode wrap`,_=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
20
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
21
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
22
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
23
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
24
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
25
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,W="".concat(S," ").concat(_).split(/[\s\n]+/),R="aria-",O="data-";function A(J,P){return J.indexOf(P)===0}function K(J){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I;P===!1?I={aria:!0,data:!0,attr:!0}:P===!0?I={aria:!0}:I=(0,e.Z)({},P);var X={};return Object.keys(J).forEach(function(x){(I.aria&&(x==="role"||A(x,R))||I.data&&A(x,O)||I.attr&&W.includes(x))&&(X[x]=J[x])}),X}},16690:function(E,w,f){"use strict";var e=f(57947).default;Object.defineProperty(w,"__esModule",{value:!0}),w.default=O;var S=e(f(12594)),_=Symbol.for("react.element"),W=Symbol.for("react.transitional.element"),R=Symbol.for("react.fragment");function O(A){return A&&(0,S.default)(A)==="object"&&(A.$$typeof===_||A.$$typeof===W)&&A.type===R}},57947:function(E){function w(f){return f&&f.__esModule?f:{default:f}}E.exports=w,E.exports.__esModule=!0,E.exports.default=E.exports},12594:function(E){function w(f){"@babel/helpers - typeof";return E.exports=w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E.exports.__esModule=!0,E.exports.default=E.exports,w(f)}E.exports=w,E.exports.__esModule=!0,E.exports.default=E.exports}}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<link rel="shortcut icon" href="https://g.alicdn.com/liveme-console/agentscope-portal/0.0.3/assets/agentscope%20logo-af290c80.svg">
|
|
8
|
+
<link rel="stylesheet" href="/umi.css">
|
|
9
|
+
<script src="/preload_helper.js" crossorigin="anonymous"></script>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
<script src="/umi.js" crossorigin="anonymous"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|