@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +0 -4
- package/build/ai.js +2 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +1 -0
- package/package.json +15 -16
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.d.ts +15 -156
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.d.ts +2 -0
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/build/966.ai.js +0 -5
- package/build/translations/en.js +0 -1
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xe28811=_0x4cea;(function(_0x3dc0fd,_0x495654){const _0x3759a6=_0x4cea,_0x4b79ff=_0x3dc0fd();while(!![]){try{const _0x551522=-parseInt(_0x3759a6(0x152))/0x1*(parseInt(_0x3759a6(0x150))/0x2)+-parseInt(_0x3759a6(0x18c))/0x3+parseInt(_0x3759a6(0x169))/0x4*(-parseInt(_0x3759a6(0x1fb))/0x5)+-parseInt(_0x3759a6(0x195))/0x6*(-parseInt(_0x3759a6(0x1a4))/0x7)+-parseInt(_0x3759a6(0x1be))/0x8*(parseInt(_0x3759a6(0x1a6))/0x9)+-parseInt(_0x3759a6(0x1e4))/0xa*(parseInt(_0x3759a6(0x182))/0xb)+parseInt(_0x3759a6(0x1c2))/0xc;if(_0x551522===_0x495654)break;else _0x4b79ff['push'](_0x4b79ff['shift']());}catch(_0x880ddc){_0x4b79ff['push'](_0x4b79ff['shift']());}}}(_0x14e9,0x67849));function _0x4cea(_0x2a9f7f,_0x2b73b9){const _0x14e92b=_0x14e9();return _0x4cea=function(_0x4ceae8,_0x4274f5){_0x4ceae8=_0x4ceae8-0x14d;let _0x41060e=_0x14e92b[_0x4ceae8];return _0x41060e;},_0x4cea(_0x2a9f7f,_0x2b73b9);}import{ContextPlugin as _0x14d162}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x140a1c}from'ckeditor5/src/utils.js';import{AIChatView as _0x31b1c0}from'./ui/aichatview.js';import{AITabs as _0x1ca5d9}from'../aitabs/aitabs.js';import{getTranslation as _0x43b0a6}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2d062d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x30b8f9}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x59fa61}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x328b22}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x485934}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4da602}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x14e9(){const _0x57f402=['1uRGbvh','interaction-header','populateSourceResourceBalloon','ai-suggestion-reply','set','label','isMaximized','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','removeItem','isModelAvailable','addFeedItemAISuggestion','enableModelSelector','AI_CHAT_HEADING','disableControls','availableModels','hasFeedItem','renderingStrategy','scrollToSuggestion','conversation-start','isReasoningEnabled','clearConversationContextUI','updateWebSources','has','853112fmBmUj','AITabs','enqueue','addFeedItemCustomElement','setFeedItemAIReplySuggestionPartActive','clear','from','AI_CHAT_WELCOME_MESSAGE','createConversation','pluginName','closeSourceResourceBalloon','areActionsDisabled','fire','focusPromptInput','toggleLoadingSkeleton','setWebSearch','contextItems','setInputPlaceholder','chat','isLoading','forEach','updateCapabilities','showDiff','_view','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','2981XBdrvy','scrollFeedToSuggestion','getItemIds','displayedPrompt','_interactionPromiseResolver','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setSuggestionPartActive','length','resetMessageInput','ai.chat.welcomeMessage','2265105wauhxl','feedItemRenderingStrategy','destroy','streaming','resetConversationTitle','locale','showResizeButton','TrackChanges','addItem','102aMIQhF','children','chatFeed','setConversationTitle','setLoadingMessage','setConversationContext','addFeedItemStaticMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','values','stopInteraction','removeContextItem','capabilities','updateFeedItemAIReplySuggestionPartState','isPending','clearPendingContextUI','21329qxvZIR','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','9chqgpC','AIChatUI','setAddContextOptions','conversationCreated','_titleAnimationInterval','then','addContextItem','addFeedItemAIReply','finishInteraction','setModelList','plugins','delegate','error-message','disableModelSelector','isTrackChangesOn','updateFeedInteractionHeader','userMessage','hasItem','isDisabled','removeFeedInteraction','startInteraction','queueEmptyPromise','addTab','setFeedItemRenderingStrategy','6275896rClYLr','updateSuggestionItem','setIsUploadInProgress','requires','34709856QNfbOE','trackChanges','options','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','removeFeedItem','</p>','ai.models.showModelSelector','setIsMaximized','isPremiumPlugin','markFeedItemAsDone','addFeedItemError','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','chatHeader','commands','config','stopAutoScroll','ai.chat.context.searchInputVisibleFrom','startAutoScroll','setPromptInputValue','updateFeedItemAIReplySuggestionContent','get','addFeedItemUserMessage','abort','isBusy','context','user-message','_isTrackChangesCommandValueBound','setContextItemLoading','markItemAsDone','_promiseQueue','updateReplyItem','setModel','insertSuggestion','updateFeedItemAIReplyContent','7270bmnOsC','remove','prepareLoadingMessage','view','interactionId','ai-reply','last','updateFeedItemAIReplySources','isOfficialPlugin','_animateConversationTitle','updateResourceState','clearLoadingMessage','attributes','setSelectedModel','<p>','filter','startsWith','addFeedInteractionHeader','toggleSuggestionDisplayMode','isWebSearchEnabled','isDone','_getInputPlaceholder','chatControls','10TnsRqM','isVisible','setReasoning','updateSuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','find','enableControls','ai.availableReplyActions','bind','custom-element','714366HZtqUD','value'];_0x14e9=function(){return _0x57f402;};return _0x14e9();}export class AIChatUI extends _0x14d162{static get[_0xe28811(0x1c1)](){return[_0x1ca5d9];}[_0xe28811(0x180)];static get[_0xe28811(0x172)](){const _0x24bdd0=_0xe28811;return _0x24bdd0(0x1a7);}static get[_0xe28811(0x1ec)](){return!0x0;}static get[_0xe28811(0x1ca)](){return!0x0;}[_0xe28811(0x18d)]=_0xe28811(0x18f);[_0xe28811(0x17f)]=!0x0;[_0xe28811(0x1df)];[_0xe28811(0x186)];[_0xe28811(0x1aa)]=void 0x0;[_0xe28811(0x1dc)]=!0x1;constructor(_0x3f4ffb){const _0x486b14=_0xe28811;super(_0x3f4ffb);const _0xfb0e72=this[_0x486b14(0x1da)][_0x486b14(0x1b0)][_0x486b14(0x1d6)](_0x486b14(0x16a));this[_0x486b14(0x156)](_0x486b14(0x1d9),!0x1),this[_0x486b14(0x1df)]=new _0x59fa61(),this[_0x486b14(0x180)]=new _0x31b1c0(this[_0x486b14(0x1da)][_0x486b14(0x191)],{'showResizeButton':_0xfb0e72[_0x486b14(0x192)],'contextResourcesSearchInputVisibleFrom':this[_0x486b14(0x1da)][_0x486b14(0x1d0)][_0x486b14(0x1d6)](_0x486b14(0x1d2))}),this[_0x486b14(0x180)][_0x486b14(0x1b1)](..._0x328b22)['to'](this),this[_0x486b14(0x180)]['on'](_0x486b14(0x1f6),(_0x39b0d0,{showDiff:_0x1e48a3})=>{const _0x1bcf24=_0x486b14;this[_0x1bcf24(0x17f)]=_0x1e48a3;}),_0xfb0e72[_0x486b14(0x1e7)][_0x486b14(0x1bc)]({'id':_0x486b14(0x17b),'buttonLabel':_0x43b0a6(this[_0x486b14(0x1da)][_0x486b14(0x191)],_0x486b14(0x15e)),'buttonIcon':_0x2d062d,'order':0x0,'content':this[_0x486b14(0x180)]}),this[_0x486b14(0x180)][_0x486b14(0x1fa)][_0x486b14(0x14e)](_0x486b14(0x17c))['to'](this,_0x486b14(0x1d9),_0x5f5bdb=>_0x5f5bdb),this[_0x486b14(0x180)][_0x486b14(0x197)][_0x486b14(0x14e)](_0x486b14(0x1a2))['to'](this,_0x486b14(0x1d9),_0x1470cd=>_0x1470cd),this[_0x486b14(0x180)][_0x486b14(0x1fa)][_0x486b14(0x17a)](this[_0x486b14(0x1f9)]()),this[_0x486b14(0x14e)](_0x486b14(0x15b))['to'](this[_0x486b14(0x180)][_0x486b14(0x1fa)],_0x486b14(0x15b));}[_0xe28811(0x18e)](){const _0x4f35cd=_0xe28811;super[_0x4f35cd(0x18e)](),this[_0x4f35cd(0x1aa)]&&clearInterval(this[_0x4f35cd(0x1aa)]);}[_0xe28811(0x171)](_0x324c4b){const _0x3b5233=_0xe28811,_0x17a28e=this[_0x3b5233(0x1da)][_0x3b5233(0x1d0)][_0x3b5233(0x1d6)](_0x3b5233(0x18b))??_0x43b0a6(this[_0x3b5233(0x1da)][_0x3b5233(0x191)],_0x3b5233(0x170));this[_0x3b5233(0x180)][_0x3b5233(0x197)][_0x3b5233(0x16e)](),this[_0x3b5233(0x180)][_0x3b5233(0x1fa)][_0x3b5233(0x15d)](),this[_0x3b5233(0x180)][_0x3b5233(0x1fa)][_0x3b5233(0x1af)](_0x324c4b[_0x3b5233(0x160)],!this[_0x3b5233(0x1da)][_0x3b5233(0x1d0)][_0x3b5233(0x1d6)](_0x3b5233(0x1c8))),this[_0x3b5233(0x19b)]({'id':_0x3b5233(0x164),'staticMessage':_0x17a28e}),this[_0x3b5233(0x175)](_0x3b5233(0x1a9));}[_0xe28811(0x19b)]({id:_0x53f823,staticMessage:_0x216c98}){const _0x26c390=_0xe28811;this[_0x26c390(0x180)][_0x26c390(0x197)][_0x26c390(0x194)](_0x26c390(0x1e9),{'id':_0x53f823,'initialContent':_0x26c390(0x1f2)+_0x216c98+_0x26c390(0x1c7)});}[_0xe28811(0x1d7)](_0x330ae9){const _0x1e6d16=_0xe28811,_0x39111b=_0x330ae9[_0x1e6d16(0x1f0)]?.[_0x1e6d16(0x185)]||_0x330ae9[_0x1e6d16(0x1b6)];this[_0x1e6d16(0x180)][_0x1e6d16(0x197)][_0x1e6d16(0x194)](_0x1e6d16(0x1db),{'contextItems':Array[_0x1e6d16(0x16f)](_0x330ae9[_0x1e6d16(0x179)][_0x1e6d16(0x19d)]()),'initialContent':_0x1e6d16(0x1f2)+_0x39111b+_0x1e6d16(0x1c7),'id':_0x330ae9['id']});}[_0xe28811(0x1cc)]({errorMessage:_0x10fc7a,id:_0x21a7bc}){const _0xbab9d3=_0xe28811;this[_0xbab9d3(0x180)][_0xbab9d3(0x197)][_0xbab9d3(0x194)](_0xbab9d3(0x1b2),{'initialContent':_0xbab9d3(0x1f2)+_0x10fc7a+_0xbab9d3(0x1c7),'id':_0x21a7bc});}[_0xe28811(0x1ad)](_0x329f29){const _0x4a04d0=_0xe28811;return this[_0x4a04d0(0x1df)][_0x4a04d0(0x16b)](async()=>{const _0x1d447c=_0x4a04d0;this[_0x1d447c(0x180)][_0x1d447c(0x197)][_0x1d447c(0x194)](_0x1d447c(0x1e9),{'id':_0x329f29[_0x1d447c(0x1e8)]+':'+_0x329f29['id']}),this[_0x1d447c(0x1ef)]();});}async[_0xe28811(0x15c)](_0x32e39a){const _0x5b2d57=_0xe28811,_0x39708f=_0x485934(this[_0x5b2d57(0x1da)]);let _0x1f95ff=_0x39708f[_0x5b2d57(0x1d0)][_0x5b2d57(0x1d6)](_0x5b2d57(0x14d))||[..._0x4da602];if(_0x39708f[_0x5b2d57(0x1b0)][_0x5b2d57(0x168)](_0x5b2d57(0x193))){if(!this[_0x5b2d57(0x1dc)]){this[_0x5b2d57(0x1dc)]=!0x0;const _0x2f6a42=_0x39708f[_0x5b2d57(0x1cf)][_0x5b2d57(0x1d6)](_0x5b2d57(0x1c3));this[_0x5b2d57(0x180)][_0x5b2d57(0x197)][_0x5b2d57(0x14e)](_0x5b2d57(0x1b4))['to'](_0x2f6a42,_0x5b2d57(0x151));}}else _0x1f95ff=_0x1f95ff[_0x5b2d57(0x1f3)](_0x12dfea=>_0x5b2d57(0x1e2)!=_0x12dfea);return this[_0x5b2d57(0x1df)][_0x5b2d57(0x16b)](async()=>{const _0x396b3b=_0x5b2d57;this[_0x396b3b(0x180)][_0x396b3b(0x197)][_0x396b3b(0x194)](_0x396b3b(0x155),{'id':_0x32e39a[_0x396b3b(0x1e8)]+':'+_0x32e39a['id'],'areActionsDisabled':_0x32e39a[_0x396b3b(0x174)],'showDiff':this[_0x396b3b(0x17f)],'availableActions':_0x1f95ff}),this[_0x396b3b(0x1ef)]();});}[_0xe28811(0x1f5)](_0x3852f4,_0x22e882){const _0x43a3c7=_0xe28811,_0x1a0dd8=this[_0x43a3c7(0x180)][_0x43a3c7(0x197)][_0x43a3c7(0x196)][_0x43a3c7(0x1ea)];if(_0x1a0dd8 instanceof _0x30b8f9)return this[_0x43a3c7(0x180)][_0x43a3c7(0x197)][_0x43a3c7(0x196)][_0x43a3c7(0x1e5)](_0x1a0dd8),void this[_0x43a3c7(0x180)][_0x43a3c7(0x197)][_0x43a3c7(0x194)](_0x43a3c7(0x153),{'id':_0x3852f4['id'],'capabilities':{'isWebSearchEnabled':_0x1a0dd8[_0x43a3c7(0x1a0)][_0x43a3c7(0x1f7)]||_0x22e882[_0x43a3c7(0x1f7)],'isReasoningEnabled':_0x1a0dd8[_0x43a3c7(0x1a0)][_0x43a3c7(0x165)]||_0x22e882[_0x43a3c7(0x165)]}});this[_0x43a3c7(0x180)][_0x43a3c7(0x197)][_0x43a3c7(0x194)](_0x43a3c7(0x153),{'id':_0x3852f4['id'],'capabilities':_0x22e882});}async[_0xe28811(0x16c)](_0x3f80b4,_0x92c826){const _0x149593=_0xe28811;let _0x1c69eb;return await this[_0x149593(0x1df)][_0x149593(0x16b)](async()=>{const _0x34270b=_0x149593;_0x1c69eb=this[_0x34270b(0x180)][_0x34270b(0x197)][_0x34270b(0x194)](_0x34270b(0x14f),{'content':_0x3f80b4,'id':_0x92c826});}),_0x1c69eb;}[_0xe28811(0x1c6)](_0x3abed5){const _0x87c35f=_0xe28811;this[_0x87c35f(0x180)][_0x87c35f(0x197)][_0x87c35f(0x15a)](_0x3abed5);}[_0xe28811(0x161)](_0xa1fec){const _0x429064=_0xe28811;return this[_0x429064(0x180)][_0x429064(0x197)][_0x429064(0x1b7)](_0xa1fec);}[_0xe28811(0x1b5)](_0xef2939){const _0x3293cb=_0xe28811,_0x3ff96a=this[_0x3293cb(0x180)][_0x3293cb(0x197)][_0x3293cb(0x196)][_0x3293cb(0x200)](_0x22920d=>_0x22920d[_0x3293cb(0x1c4)]['id']==_0xef2939['id']&&_0x22920d instanceof _0x30b8f9);_0x3ff96a&&_0x3ff96a[_0x3293cb(0x156)](_0x3293cb(0x1fc),_0xef2939[_0x3293cb(0x1fc)]);}async[_0xe28811(0x1e3)](_0x2d3749){const _0x1244a8=_0xe28811,_0x3a4131=_0x2d3749[_0x1244a8(0x162)]||this[_0x1244a8(0x18d)];return this[_0x1244a8(0x1df)][_0x1244a8(0x16b)](async _0xaf7184=>{const _0x2abc08=_0x1244a8;await this[_0x2abc08(0x180)][_0x2abc08(0x197)][_0x2abc08(0x1e0)]({..._0x2d3749,'abortSignal':_0xaf7184,'renderingStrategy':_0x3a4131}),_0x2d3749[_0x2abc08(0x1f8)]&&this[_0x2abc08(0x1cb)](_0x2d3749['id']);});}[_0xe28811(0x1eb)](_0x2e47d1,_0x5c847e){const _0x1f9c88=_0xe28811;this[_0x1f9c88(0x180)][_0x1f9c88(0x197)][_0x1f9c88(0x167)](_0x2e47d1,_0x5c847e);}async[_0xe28811(0x1d5)](_0x4fd832){const _0xe0098b=_0xe28811,_0x468aea=_0x4fd832[_0xe0098b(0x162)]||this[_0xe0098b(0x18d)];return this[_0xe0098b(0x1df)][_0xe0098b(0x16b)](async _0x52d934=>{const _0x17bc55=_0xe0098b;await this[_0x17bc55(0x180)][_0x17bc55(0x197)][_0x17bc55(0x1bf)]({..._0x4fd832,'abortSignal':_0x52d934,'renderingStrategy':_0x468aea}),_0x4fd832[_0x17bc55(0x1f8)]&&this[_0x17bc55(0x1cb)](_0x4fd832['id']);});}[_0xe28811(0x1a1)](_0x1d3de4){const _0x357e3f=_0xe28811;this[_0x357e3f(0x180)][_0x357e3f(0x197)][_0x357e3f(0x1fe)](_0x1d3de4);}[_0xe28811(0x16d)](_0x57aecb){const _0x4040c5=_0xe28811;this[_0x4040c5(0x180)][_0x4040c5(0x197)][_0x4040c5(0x188)](_0x57aecb);}[_0xe28811(0x1cb)](_0x816e9d){const _0x343928=_0xe28811;this[_0x343928(0x180)][_0x343928(0x197)][_0x343928(0x1de)](_0x816e9d);}[_0xe28811(0x1b9)](_0x31c978){const _0x127a3f=_0xe28811;this[_0x127a3f(0x180)][_0x127a3f(0x197)][_0x127a3f(0x184)]()[_0x127a3f(0x1f3)](_0x100254=>_0x100254[_0x127a3f(0x1f4)](_0x31c978))[_0x127a3f(0x17d)](_0x35fd43=>this[_0x127a3f(0x180)][_0x127a3f(0x197)][_0x127a3f(0x15a)](_0x35fd43));}[_0xe28811(0x1ba)](){const _0x436a63=_0xe28811,_0x5f64ef=this[_0x436a63(0x1e6)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x436a63(0x199)](_0x5f64ef),this[_0x436a63(0x180)][_0x436a63(0x1fa)][_0x436a63(0x1b3)](!this[_0x436a63(0x1da)][_0x436a63(0x1d0)][_0x436a63(0x1d6)](_0x436a63(0x1c8))),this[_0x436a63(0x1d9)]=!0x0,this[_0x436a63(0x180)][_0x436a63(0x197)][_0x436a63(0x1d3)]();}[_0xe28811(0x19e)](_0x3438bc){const _0x4668c6=_0xe28811;this[_0x4668c6(0x1df)][_0x4668c6(0x1d8)](),this[_0x4668c6(0x180)][_0x4668c6(0x197)][_0x4668c6(0x184)]()[_0x4668c6(0x1f3)](_0x33c26a=>_0x33c26a[_0x4668c6(0x1f4)](_0x3438bc['id']))[_0x4668c6(0x17d)](_0x1011d2=>this[_0x4668c6(0x1cb)](_0x1011d2)),this[_0x4668c6(0x1d9)]=!0x1,this[_0x4668c6(0x180)][_0x4668c6(0x197)][_0x4668c6(0x1d1)]();}async[_0xe28811(0x1ae)](){const _0x1351b4=_0xe28811;return this[_0x1351b4(0x1df)][_0x1351b4(0x1bb)][_0x1351b4(0x1ab)](()=>{const _0x568075=_0x1351b4;this[_0x568075(0x1d9)]=!0x1,this[_0x568075(0x180)][_0x568075(0x197)][_0x568075(0x1d1)]();});}[_0xe28811(0x1ac)](_0x44ea04,_0x5f5758){const _0x4c7f11=_0xe28811;this[_0x4c7f11(0x180)][_0x4c7f11(0x1fa)][_0x4c7f11(0x1ac)](_0x44ea04,_0x5f5758);}[_0xe28811(0x19f)](_0x9b3631){const _0x250653=_0xe28811;this[_0x250653(0x180)][_0x250653(0x1fa)][_0x250653(0x19f)](_0x9b3631);}[_0xe28811(0x1dd)](_0x1e7166,_0x188903){const _0x4ca598=_0xe28811;this[_0x4ca598(0x180)][_0x4ca598(0x1fa)][_0x4ca598(0x1dd)](_0x1e7166,_0x188903);}[_0xe28811(0x1c0)](_0x185fb5){const _0xfe82be=_0xe28811;this[_0xfe82be(0x180)][_0xfe82be(0x1fa)][_0xfe82be(0x1c0)](_0x185fb5);}[_0xe28811(0x19a)](_0x4724c5){const _0x49ae21=_0xe28811;this[_0x49ae21(0x180)][_0x49ae21(0x1fa)][_0x49ae21(0x19a)](_0x4724c5);}[_0xe28811(0x1a3)](){const _0x4f1c87=_0xe28811;this[_0x4f1c87(0x180)][_0x4f1c87(0x1fa)][_0x4f1c87(0x1a3)]();}[_0xe28811(0x166)](){const _0x487782=_0xe28811;this[_0x487782(0x180)][_0x487782(0x1fa)][_0x487782(0x166)]();}[_0xe28811(0x1ee)](_0x397d80,_0x28c990,_0x107606){const _0x57e84d=_0xe28811;this[_0x57e84d(0x180)][_0x57e84d(0x1fa)][_0x57e84d(0x1ee)](_0x397d80,_0x28c990,_0x107606);}[_0xe28811(0x18a)](){const _0x511c47=_0xe28811;this[_0x511c47(0x180)][_0x511c47(0x1fa)][_0x511c47(0x18a)](),this[_0x511c47(0x180)][_0x511c47(0x1fa)][_0x511c47(0x17a)](this[_0x511c47(0x1f9)]());}[_0xe28811(0x1a8)](_0x227f4a){const _0x11c8dd=_0xe28811;this[_0x11c8dd(0x180)][_0x11c8dd(0x1fa)][_0x11c8dd(0x1a8)](_0x227f4a);}[_0xe28811(0x17e)](_0x12a33d){const _0x1e0eca=_0xe28811;this[_0x1e0eca(0x180)][_0x1e0eca(0x1fa)][_0x1e0eca(0x178)](_0x12a33d[_0x1e0eca(0x1f7)]),this[_0x1e0eca(0x180)][_0x1e0eca(0x1fa)][_0x1e0eca(0x1fd)](_0x12a33d[_0x1e0eca(0x165)]),this[_0x1e0eca(0x180)][_0x1e0eca(0x1fa)][_0x1e0eca(0x17a)](this[_0x1e0eca(0x1f9)](_0x12a33d));}[_0xe28811(0x1f1)](_0x1a6243,_0x5add5e){const _0x2ebef2=_0xe28811;this[_0x2ebef2(0x180)][_0x2ebef2(0x1fa)][_0x2ebef2(0x1e1)](_0x1a6243),_0x5add5e&&this[_0x2ebef2(0x180)][_0x2ebef2(0x1fa)][_0x2ebef2(0x1b3)](!0x1);}[_0xe28811(0x1bd)](_0x25352c){const _0x1c2a20=_0xe28811;this[_0x1c2a20(0x18d)]=_0x25352c;}[_0xe28811(0x177)](_0x535e85){const _0x4489f2=_0xe28811;this[_0x4489f2(0x180)][_0x4489f2(0x197)][_0x4489f2(0x177)](_0x535e85);}[_0xe28811(0x190)](){const _0x29846a=_0xe28811;this[_0x29846a(0x198)](_0x43b0a6(this[_0x29846a(0x1da)][_0x29846a(0x191)],_0x29846a(0x15e)));}[_0xe28811(0x198)](_0x1515e9,_0x14f235=!0x1){const _0x35a7b8=_0xe28811;if(_0x14f235&&!_0x140a1c()&&_0x1515e9[_0x35a7b8(0x189)])return this[_0x35a7b8(0x180)][_0x35a7b8(0x1ce)][_0x35a7b8(0x157)]='',void this[_0x35a7b8(0x1ed)](_0x1515e9);this[_0x35a7b8(0x180)][_0x35a7b8(0x1ce)][_0x35a7b8(0x157)]=_0x1515e9;}[_0xe28811(0x199)](_0x1581c8){const _0x3c2ae4=_0xe28811;this[_0x3c2ae4(0x180)][_0x3c2ae4(0x197)][_0x3c2ae4(0x199)](_0x1581c8);}[_0xe28811(0x1ef)](){const _0x10d8ec=_0xe28811;this[_0x10d8ec(0x180)][_0x10d8ec(0x197)][_0x10d8ec(0x199)]('');}[_0xe28811(0x1ed)](_0x58bca1){const _0x3e8a3f=_0xe28811;let _0x16268c=0x0;clearInterval(this[_0x3e8a3f(0x1aa)]),this[_0x3e8a3f(0x1aa)]=setInterval(()=>{const _0x5f39fa=_0x3e8a3f;this[_0x5f39fa(0x180)][_0x5f39fa(0x1ce)][_0x5f39fa(0x157)]=this[_0x5f39fa(0x180)][_0x5f39fa(0x1ce)][_0x5f39fa(0x157)]+_0x58bca1[_0x16268c],_0x16268c++,_0x16268c===_0x58bca1[_0x5f39fa(0x189)]&&clearInterval(this[_0x5f39fa(0x1aa)]);},0x1e);}[_0xe28811(0x1c9)](_0x4a77f9){const _0x145335=_0xe28811;this[_0x145335(0x180)][_0x145335(0x1ce)][_0x145335(0x158)]=_0x4a77f9;}[_0xe28811(0x1e6)](_0x36c89f){const _0x128a8f=_0xe28811;return _0x36c89f[_0x128a8f(0x1f7)]&&_0x36c89f[_0x128a8f(0x165)]?_0x43b0a6(this[_0x128a8f(0x1da)][_0x128a8f(0x191)],_0x128a8f(0x1cd)):_0x36c89f[_0x128a8f(0x1f7)]?_0x43b0a6(this[_0x128a8f(0x1da)][_0x128a8f(0x191)],_0x128a8f(0x1c5)):_0x36c89f[_0x128a8f(0x165)]?_0x43b0a6(this[_0x128a8f(0x1da)][_0x128a8f(0x191)],_0x128a8f(0x1ff)):_0x43b0a6(this[_0x128a8f(0x1da)][_0x128a8f(0x191)],_0x128a8f(0x1a5));}[_0xe28811(0x1f9)](_0x230fd0){const _0x678ff0=_0xe28811;return _0x230fd0?_0x230fd0[_0x678ff0(0x1f7)]&&_0x230fd0[_0x678ff0(0x165)]?_0x43b0a6(this[_0x678ff0(0x1da)][_0x678ff0(0x191)],_0x678ff0(0x19c)):_0x230fd0[_0x678ff0(0x1f7)]?_0x43b0a6(this[_0x678ff0(0x1da)][_0x678ff0(0x191)],_0x678ff0(0x181)):_0x230fd0[_0x678ff0(0x165)]?_0x43b0a6(this[_0x678ff0(0x1da)][_0x678ff0(0x191)],_0x678ff0(0x159)):_0x43b0a6(this[_0x678ff0(0x1da)][_0x678ff0(0x191)],_0x678ff0(0x187)):_0x43b0a6(this[_0x678ff0(0x1da)][_0x678ff0(0x191)],_0x678ff0(0x187));}[_0xe28811(0x154)](_0x3f6118,_0x23e53c,_0x6d23c4,_0x420330){const _0x33fca4=_0xe28811;this[_0x33fca4(0x180)][_0x33fca4(0x154)](_0x3f6118,_0x23e53c,_0x6d23c4,_0x420330);}[_0xe28811(0x173)](_0x4381d9){const _0x402591=_0xe28811;this[_0x402591(0x180)][_0x402591(0x173)](_0x4381d9);}[_0xe28811(0x1d4)](_0x4f10c9){const _0x256972=_0xe28811;this[_0x256972(0x180)][_0x256972(0x1fa)][_0x256972(0x1d4)](_0x4f10c9);}[_0xe28811(0x176)](_0x5bdfd1=!0x1){const _0x5db883=_0xe28811;this[_0x5db883(0x180)][_0x5db883(0x1fa)][_0x5db883(0x176)](_0x5bdfd1);}[_0xe28811(0x183)](_0x4e084e,_0x3e6d54){const _0x50cad8=_0xe28811;this[_0x50cad8(0x180)][_0x50cad8(0x197)][_0x50cad8(0x163)](_0x4e084e,_0x3e6d54);}[_0xe28811(0x1d3)](){const _0x5a7904=_0xe28811;this[_0x5a7904(0x180)][_0x5a7904(0x197)][_0x5a7904(0x1d3)]();}[_0xe28811(0x15f)](){const _0x16058c=_0xe28811;this[_0x16058c(0x180)][_0x16058c(0x1fa)][_0x16058c(0x1b8)]=!0x0;}[_0xe28811(0x201)](){const _0x2a1932=_0xe28811;this[_0x2a1932(0x180)][_0x2a1932(0x1fa)][_0x2a1932(0x1b8)]=!0x1;}}
|
|
23
|
+
const _0x1991b4=_0x2d92;(function(_0x34eb97,_0x43575e){const _0x3098da=_0x2d92,_0x1d0c5e=_0x34eb97();while(!![]){try{const _0x57a2b2=parseInt(_0x3098da(0x1a5))/0x1+-parseInt(_0x3098da(0x1c9))/0x2*(-parseInt(_0x3098da(0x20e))/0x3)+parseInt(_0x3098da(0x227))/0x4+-parseInt(_0x3098da(0x1d0))/0x5*(-parseInt(_0x3098da(0x1c3))/0x6)+-parseInt(_0x3098da(0x1da))/0x7*(parseInt(_0x3098da(0x1b0))/0x8)+parseInt(_0x3098da(0x1f7))/0x9+parseInt(_0x3098da(0x1fd))/0xa*(-parseInt(_0x3098da(0x1e9))/0xb);if(_0x57a2b2===_0x43575e)break;else _0x1d0c5e['push'](_0x1d0c5e['shift']());}catch(_0x38b666){_0x1d0c5e['push'](_0x1d0c5e['shift']());}}}(_0x30df,0x650c6));import{ContextPlugin as _0x415174}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x23ad55}from'ckeditor5/src/utils.js';import{AIChatView as _0x1367a0}from'./ui/aichatview.js';import{AITabs as _0xd3db3}from'../aitabs/aitabs.js';function _0x2d92(_0x2096bf,_0x12beb7){const _0x30df45=_0x30df();return _0x2d92=function(_0x2d92cf,_0xcc9804){_0x2d92cf=_0x2d92cf-0x176;let _0x98659e=_0x30df45[_0x2d92cf];return _0x98659e;},_0x2d92(_0x2096bf,_0x12beb7);}import{getTranslation as _0x23f727}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x355c86}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1ffc5e}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x464f05}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x185abc}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x5f090e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x22d29b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x30df(){const _0x244404=['setConversationTitle','setIsUploadInProgress','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','677800EZgwtY','_titleAnimationInterval','setModelList','updateWebSources','prepareLoadingMessage','attributes','setSelectedModel','interaction-header','queueEmptyPromise','isDone','setFeedItemAIReplySuggestionPartActive','AIChatUI','setInputPlaceholder','value','bind','delegate','setModel','areActionsDisabled','requires','chatControls','ai.chat.welcomeMessage','view','setPromptInputValue','ai-suggestion-reply','chatFeed','getItemIds','capabilities','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','filter','label','renderingStrategy','set','startInteraction','ai.availableReplyActions','</p>','scrollToSuggestion','<p>','displayedPrompt','focusPromptInput','remove','enqueue','setIsMaximized','toggleSuggestionDisplayMode','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','abort','showResizeButton','addFeedItemAISuggestion','removeFeedInteraction','updateCapabilities','221085DWLesT','isOfficialPlugin','addTab','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setAddContextOptions','enableControls','interactionId','addFeedItemUserMessage','removeItem','destroy','closeSourceResourceBalloon','5442792AWTMzV','clearConversationContextUI','addFeedItemStaticMessage','chatHeader','isWebSearchEnabled','populateSourceResourceBalloon','error-message','streaming','AI_CHAT_WELCOME_MESSAGE','values','enableModelSelector','setSuggestionPartActive','markFeedItemAsDone','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','finishInteraction','setLoadingMessage','_getInputPlaceholder','addContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','66ZecSGc','pluginName','ai.chat.context.searchInputVisibleFrom','stopInteraction','updateFeedItemAIReplySuggestionContent','TrackChanges','15680TdJaYF','toggleLoadingSkeleton','conversation-start','createConversation','isMaximized','isPremiumPlugin','availableModels','1340fwGMxd','_interactionPromiseResolver','_animateConversationTitle','find','addFeedItemError','fire','options','resetConversationTitle','insertSuggestion','updateFeedItemAIReplySources','7eIyyOU','from','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setFeedItemRenderingStrategy','userMessage','scrollFeedToSuggestion','hasItem','resetMessageInput','startAutoScroll','stopAutoScroll','setWebSearch','isPending','setContextItemLoading','55uEtZsB','clearLoadingMessage','trackChanges','markItemAsDone','has','isModelAvailable','chat','conversationCreated','removeFeedItem','user-message','context','setConversationContext','updateFeedInteractionHeader','length','6107985dxcTCW','locale','custom-element','disableControls','isReasoningEnabled','forEach','1570850MyRDgq','ai-reply','updateSuggestionItem','get','updateResourceState','clearPendingContextUI','hasFeedItem','commands','isTrackChangesOn','AI_CHAT_HEADING','_promiseQueue','_view','updateFeedItemAIReplySuggestionPartState','updateSuggestionPartState','addFeedInteractionHeader','setReasoning','clear','309KGdDzf','config','then','isLoading','_isTrackChangesCommandValueBound','addFeedItemAIReply','feedItemRenderingStrategy','isVisible','last','contextItems','addItem','updateReplyItem','children','removeContextItem','plugins','showDiff','updateFeedItemAIReplyContent','AITabs','isBusy','addFeedItemCustomElement','ai.models.showModelSelector','disableModelSelector'];_0x30df=function(){return _0x244404;};return _0x30df();}export class AIChatUI extends _0x415174{static get[_0x1991b4(0x185)](){return[_0xd3db3];}[_0x1991b4(0x208)];static get[_0x1991b4(0x1c4)](){const _0x4d9190=_0x1991b4;return _0x4d9190(0x17e);}static get[_0x1991b4(0x1a6)](){return!0x0;}static get[_0x1991b4(0x1ce)](){return!0x0;}[_0x1991b4(0x214)]=_0x1991b4(0x1b7);[_0x1991b4(0x21d)]=!0x0;[_0x1991b4(0x207)];[_0x1991b4(0x1d1)];[_0x1991b4(0x228)]=void 0x0;[_0x1991b4(0x212)]=!0x1;constructor(_0x80c29b){const _0x5a367e=_0x1991b4;super(_0x80c29b);const _0x2597c6=this[_0x5a367e(0x1f3)][_0x5a367e(0x21c)][_0x5a367e(0x200)](_0x5a367e(0x21f));this[_0x5a367e(0x192)](_0x5a367e(0x220),!0x1),this[_0x5a367e(0x207)]=new _0x464f05(),this[_0x5a367e(0x208)]=new _0x1367a0(this[_0x5a367e(0x1f3)][_0x5a367e(0x1f8)],{'showResizeButton':_0x2597c6[_0x5a367e(0x1a1)],'contextResourcesSearchInputVisibleFrom':this[_0x5a367e(0x1f3)][_0x5a367e(0x20f)][_0x5a367e(0x200)](_0x5a367e(0x1c5))}),this[_0x5a367e(0x208)][_0x5a367e(0x182)](..._0x185abc)['to'](this),this[_0x5a367e(0x208)]['on'](_0x5a367e(0x19d),(_0x5e265f,{showDiff:_0x4b41b6})=>{const _0x4a025c=_0x5a367e;this[_0x4a025c(0x21d)]=_0x4b41b6;}),_0x2597c6[_0x5a367e(0x188)][_0x5a367e(0x1a7)]({'id':_0x5a367e(0x1ef),'buttonLabel':_0x23f727(this[_0x5a367e(0x1f3)][_0x5a367e(0x1f8)],_0x5a367e(0x206)),'buttonIcon':_0x355c86,'order':0x0,'content':this[_0x5a367e(0x208)]}),this[_0x5a367e(0x208)][_0x5a367e(0x186)][_0x5a367e(0x181)](_0x5a367e(0x211))['to'](this,_0x5a367e(0x220),_0x2d4b3e=>_0x2d4b3e),this[_0x5a367e(0x208)][_0x5a367e(0x18b)][_0x5a367e(0x181)](_0x5a367e(0x1e7))['to'](this,_0x5a367e(0x220),_0x11b3e5=>_0x11b3e5),this[_0x5a367e(0x208)][_0x5a367e(0x186)][_0x5a367e(0x17f)](this[_0x5a367e(0x1c0)]()),this[_0x5a367e(0x181)](_0x5a367e(0x1ee))['to'](this[_0x5a367e(0x208)][_0x5a367e(0x186)],_0x5a367e(0x1ee));}[_0x1991b4(0x1ae)](){const _0x20ff53=_0x1991b4;super[_0x20ff53(0x1ae)](),this[_0x20ff53(0x228)]&&clearInterval(this[_0x20ff53(0x228)]);}[_0x1991b4(0x1cc)](_0x751f2){const _0x405a89=_0x1991b4,_0x1afac7=this[_0x405a89(0x1f3)][_0x405a89(0x20f)][_0x405a89(0x200)](_0x405a89(0x187))??_0x23f727(this[_0x405a89(0x1f3)][_0x405a89(0x1f8)],_0x405a89(0x1b8));this[_0x405a89(0x208)][_0x405a89(0x18b)][_0x405a89(0x20d)](),this[_0x405a89(0x208)][_0x405a89(0x186)][_0x405a89(0x1ba)](),this[_0x405a89(0x208)][_0x405a89(0x186)][_0x405a89(0x229)](_0x751f2[_0x405a89(0x1cf)],!this[_0x405a89(0x1f3)][_0x405a89(0x20f)][_0x405a89(0x200)](_0x405a89(0x222))),this[_0x405a89(0x1b2)]({'id':_0x405a89(0x1cb),'staticMessage':_0x1afac7}),this[_0x405a89(0x1d5)](_0x405a89(0x1f0));}[_0x1991b4(0x1b2)]({id:_0x8f2306,staticMessage:_0x1b1931}){const _0x443a87=_0x1991b4;this[_0x443a87(0x208)][_0x443a87(0x18b)][_0x443a87(0x218)](_0x443a87(0x1fe),{'id':_0x8f2306,'initialContent':_0x443a87(0x197)+_0x1b1931+_0x443a87(0x195)});}[_0x1991b4(0x1ac)](_0x5a60b2){const _0x19be5d=_0x1991b4,_0x58b3eb=_0x5a60b2[_0x19be5d(0x178)]?.[_0x19be5d(0x198)]||_0x5a60b2[_0x19be5d(0x1e0)];this[_0x19be5d(0x208)][_0x19be5d(0x18b)][_0x19be5d(0x218)](_0x19be5d(0x1f2),{'contextItems':Array[_0x19be5d(0x1db)](_0x5a60b2[_0x19be5d(0x217)][_0x19be5d(0x1b9)]()),'initialContent':_0x19be5d(0x197)+_0x58b3eb+_0x19be5d(0x195),'id':_0x5a60b2['id']});}[_0x1991b4(0x1d4)]({errorMessage:_0x334368,id:_0x4c84c3}){const _0x2dfde8=_0x1991b4;this[_0x2dfde8(0x208)][_0x2dfde8(0x18b)][_0x2dfde8(0x218)](_0x2dfde8(0x1b6),{'initialContent':_0x2dfde8(0x197)+_0x334368+_0x2dfde8(0x195),'id':_0x4c84c3});}[_0x1991b4(0x213)](_0x5eff94){const _0x321a11=_0x1991b4;return this[_0x321a11(0x207)][_0x321a11(0x19b)](async()=>{const _0x155371=_0x321a11;this[_0x155371(0x208)][_0x155371(0x18b)][_0x155371(0x218)](_0x155371(0x1fe),{'id':_0x5eff94[_0x155371(0x1ab)]+':'+_0x5eff94['id']}),this[_0x155371(0x1ea)]();});}async[_0x1991b4(0x1a2)](_0x5df796){const _0x4ff100=_0x1991b4,_0x51f732=_0x5f090e(this[_0x4ff100(0x1f3)]);let _0x31d47=_0x51f732[_0x4ff100(0x20f)][_0x4ff100(0x200)](_0x4ff100(0x194))||[..._0x22d29b];if(_0x51f732[_0x4ff100(0x21c)][_0x4ff100(0x1ed)](_0x4ff100(0x1c8))){if(!this[_0x4ff100(0x212)]){this[_0x4ff100(0x212)]=!0x0;const _0x99cee=_0x51f732[_0x4ff100(0x204)][_0x4ff100(0x200)](_0x4ff100(0x1eb));this[_0x4ff100(0x208)][_0x4ff100(0x18b)][_0x4ff100(0x181)](_0x4ff100(0x205))['to'](_0x99cee,_0x4ff100(0x180));}}else _0x31d47=_0x31d47[_0x4ff100(0x18f)](_0x321298=>_0x4ff100(0x1d8)!=_0x321298);return this[_0x4ff100(0x207)][_0x4ff100(0x19b)](async()=>{const _0x2a0d0c=_0x4ff100;this[_0x2a0d0c(0x208)][_0x2a0d0c(0x18b)][_0x2a0d0c(0x218)](_0x2a0d0c(0x18a),{'id':_0x5df796[_0x2a0d0c(0x1ab)]+':'+_0x5df796['id'],'areActionsDisabled':_0x5df796[_0x2a0d0c(0x184)],'showDiff':this[_0x2a0d0c(0x21d)],'availableActions':_0x31d47}),this[_0x2a0d0c(0x1ea)]();});}[_0x1991b4(0x20b)](_0x1891d7,_0xc1572d){const _0x121997=_0x1991b4,_0x2b0cf5=this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x21a)][_0x121997(0x216)];if(_0x2b0cf5 instanceof _0x1ffc5e)return this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x21a)][_0x121997(0x19a)](_0x2b0cf5),void this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x218)](_0x121997(0x17a),{'id':_0x1891d7['id'],'capabilities':{'isWebSearchEnabled':_0x2b0cf5[_0x121997(0x18d)][_0x121997(0x1b4)]||_0xc1572d[_0x121997(0x1b4)],'isReasoningEnabled':_0x2b0cf5[_0x121997(0x18d)][_0x121997(0x1fb)]||_0xc1572d[_0x121997(0x1fb)]}});this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x218)](_0x121997(0x17a),{'id':_0x1891d7['id'],'capabilities':_0xc1572d});}async[_0x1991b4(0x221)](_0x4891c6,_0x3a1350){const _0xe0dfc9=_0x1991b4;let _0x4c6238;return await this[_0xe0dfc9(0x207)][_0xe0dfc9(0x19b)](async()=>{const _0x1086e1=_0xe0dfc9;_0x4c6238=this[_0x1086e1(0x208)][_0x1086e1(0x18b)][_0x1086e1(0x218)](_0x1086e1(0x1f9),{'content':_0x4891c6,'id':_0x3a1350});}),_0x4c6238;}[_0x1991b4(0x1f1)](_0x1b29db){const _0x280938=_0x1991b4;this[_0x280938(0x208)][_0x280938(0x18b)][_0x280938(0x1ad)](_0x1b29db);}[_0x1991b4(0x203)](_0x53585f){const _0x28af9b=_0x1991b4;return this[_0x28af9b(0x208)][_0x28af9b(0x18b)][_0x28af9b(0x1e2)](_0x53585f);}[_0x1991b4(0x1f5)](_0x3ea978){const _0x38ffba=_0x1991b4,_0x33fec9=this[_0x38ffba(0x208)][_0x38ffba(0x18b)][_0x38ffba(0x21a)][_0x38ffba(0x1d3)](_0x4015af=>_0x4015af[_0x38ffba(0x1d6)]['id']==_0x3ea978['id']&&_0x4015af instanceof _0x1ffc5e);_0x33fec9&&_0x33fec9[_0x38ffba(0x192)](_0x38ffba(0x215),_0x3ea978[_0x38ffba(0x215)]);}async[_0x1991b4(0x21e)](_0x18020a){const _0x3294a4=_0x1991b4,_0x3538cd=_0x18020a[_0x3294a4(0x191)]||this[_0x3294a4(0x214)];return this[_0x3294a4(0x207)][_0x3294a4(0x19b)](async _0x4540fb=>{const _0x249687=_0x3294a4;await this[_0x249687(0x208)][_0x249687(0x18b)][_0x249687(0x219)]({..._0x18020a,'abortSignal':_0x4540fb,'renderingStrategy':_0x3538cd}),_0x18020a[_0x249687(0x17c)]&&this[_0x249687(0x1bc)](_0x18020a['id']);});}[_0x1991b4(0x1d9)](_0x4ceae6,_0x512e8e){const _0x44fddd=_0x1991b4;this[_0x44fddd(0x208)][_0x44fddd(0x18b)][_0x44fddd(0x176)](_0x4ceae6,_0x512e8e);}async[_0x1991b4(0x1c7)](_0x575403){const _0x105cf0=_0x1991b4,_0x3c1e0d=_0x575403[_0x105cf0(0x191)]||this[_0x105cf0(0x214)];return this[_0x105cf0(0x207)][_0x105cf0(0x19b)](async _0x12dd31=>{const _0x1f4017=_0x105cf0;await this[_0x1f4017(0x208)][_0x1f4017(0x18b)][_0x1f4017(0x1ff)]({..._0x575403,'abortSignal':_0x12dd31,'renderingStrategy':_0x3c1e0d}),_0x575403[_0x1f4017(0x17c)]&&this[_0x1f4017(0x1bc)](_0x575403['id']);});}[_0x1991b4(0x209)](_0x46838f){const _0x338ef6=_0x1991b4;this[_0x338ef6(0x208)][_0x338ef6(0x18b)][_0x338ef6(0x20a)](_0x46838f);}[_0x1991b4(0x17d)](_0x1bc443){const _0x271ccd=_0x1991b4;this[_0x271ccd(0x208)][_0x271ccd(0x18b)][_0x271ccd(0x1bb)](_0x1bc443);}[_0x1991b4(0x1bc)](_0x6c6b58){const _0x36de05=_0x1991b4;this[_0x36de05(0x208)][_0x36de05(0x18b)][_0x36de05(0x1ec)](_0x6c6b58);}[_0x1991b4(0x1a3)](_0x557eed){const _0x228473=_0x1991b4;this[_0x228473(0x208)][_0x228473(0x18b)][_0x228473(0x18c)]()[_0x228473(0x18f)](_0x2b5786=>_0x2b5786[_0x228473(0x19e)](_0x557eed))[_0x228473(0x1fc)](_0xfceef0=>this[_0x228473(0x208)][_0x228473(0x18b)][_0x228473(0x1ad)](_0xfceef0));}[_0x1991b4(0x193)](){const _0x12ee4d=_0x1991b4,_0x2cc579=this[_0x12ee4d(0x177)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x12ee4d(0x1bf)](_0x2cc579),this[_0x12ee4d(0x208)][_0x12ee4d(0x186)][_0x12ee4d(0x223)](!this[_0x12ee4d(0x1f3)][_0x12ee4d(0x20f)][_0x12ee4d(0x200)](_0x12ee4d(0x222))),this[_0x12ee4d(0x220)]=!0x0,this[_0x12ee4d(0x208)][_0x12ee4d(0x18b)][_0x12ee4d(0x1e4)]();}[_0x1991b4(0x1c6)](_0x3260f1){const _0x36623c=_0x1991b4;this[_0x36623c(0x207)][_0x36623c(0x1a0)](),this[_0x36623c(0x208)][_0x36623c(0x18b)][_0x36623c(0x18c)]()[_0x36623c(0x18f)](_0x28d3d2=>_0x28d3d2[_0x36623c(0x19e)](_0x3260f1['id']))[_0x36623c(0x1fc)](_0x158761=>this[_0x36623c(0x1bc)](_0x158761)),this[_0x36623c(0x220)]=!0x1,this[_0x36623c(0x208)][_0x36623c(0x18b)][_0x36623c(0x1e5)]();}async[_0x1991b4(0x1be)](){const _0x5d95af=_0x1991b4;return this[_0x5d95af(0x207)][_0x5d95af(0x17b)][_0x5d95af(0x210)](()=>{const _0x47f5c6=_0x5d95af;this[_0x47f5c6(0x220)]=!0x1,this[_0x47f5c6(0x208)][_0x47f5c6(0x18b)][_0x47f5c6(0x1e5)]();});}[_0x1991b4(0x1c1)](_0x58dc11,_0x36b9de){const _0x25abac=_0x1991b4;this[_0x25abac(0x208)][_0x25abac(0x186)][_0x25abac(0x1c1)](_0x58dc11,_0x36b9de);}[_0x1991b4(0x21b)](_0x3f9fb9){const _0x17e497=_0x1991b4;this[_0x17e497(0x208)][_0x17e497(0x186)][_0x17e497(0x21b)](_0x3f9fb9);}[_0x1991b4(0x1e8)](_0x572ee1,_0x5152d3){const _0x37d5e8=_0x1991b4;this[_0x37d5e8(0x208)][_0x37d5e8(0x186)][_0x37d5e8(0x1e8)](_0x572ee1,_0x5152d3);}[_0x1991b4(0x225)](_0x3724b7){const _0x2fb22c=_0x1991b4;this[_0x2fb22c(0x208)][_0x2fb22c(0x186)][_0x2fb22c(0x225)](_0x3724b7);}[_0x1991b4(0x1f4)](_0x49a9de){const _0x2748f2=_0x1991b4;this[_0x2748f2(0x208)][_0x2748f2(0x186)][_0x2748f2(0x1f4)](_0x49a9de);}[_0x1991b4(0x202)](){const _0x3c5e63=_0x1991b4;this[_0x3c5e63(0x208)][_0x3c5e63(0x186)][_0x3c5e63(0x202)]();}[_0x1991b4(0x1b1)](){const _0x2eb296=_0x1991b4;this[_0x2eb296(0x208)][_0x2eb296(0x186)][_0x2eb296(0x1b1)]();}[_0x1991b4(0x201)](_0x13e1de,_0x396778,_0x2cbc96){const _0x48b2f3=_0x1991b4;this[_0x48b2f3(0x208)][_0x48b2f3(0x186)][_0x48b2f3(0x201)](_0x13e1de,_0x396778,_0x2cbc96);}[_0x1991b4(0x1e3)](){const _0x45b55c=_0x1991b4;this[_0x45b55c(0x208)][_0x45b55c(0x186)][_0x45b55c(0x1e3)](),this[_0x45b55c(0x208)][_0x45b55c(0x186)][_0x45b55c(0x17f)](this[_0x45b55c(0x1c0)]());}[_0x1991b4(0x1a9)](_0x3bd381){const _0x520c04=_0x1991b4;this[_0x520c04(0x208)][_0x520c04(0x186)][_0x520c04(0x1a9)](_0x3bd381);}[_0x1991b4(0x1a4)](_0xd2f85c){const _0x48dcc0=_0x1991b4;this[_0x48dcc0(0x208)][_0x48dcc0(0x186)][_0x48dcc0(0x1e6)](_0xd2f85c[_0x48dcc0(0x1b4)]),this[_0x48dcc0(0x208)][_0x48dcc0(0x186)][_0x48dcc0(0x20c)](_0xd2f85c[_0x48dcc0(0x1fb)]),this[_0x48dcc0(0x208)][_0x48dcc0(0x186)][_0x48dcc0(0x17f)](this[_0x48dcc0(0x1c0)](_0xd2f85c));}[_0x1991b4(0x179)](_0x41c5db,_0x18ba88){const _0x5e4d8d=_0x1991b4;this[_0x5e4d8d(0x208)][_0x5e4d8d(0x186)][_0x5e4d8d(0x183)](_0x41c5db),_0x18ba88&&this[_0x5e4d8d(0x208)][_0x5e4d8d(0x186)][_0x5e4d8d(0x223)](!0x1);}[_0x1991b4(0x1df)](_0xa57f41){const _0x255fc9=_0x1991b4;this[_0x255fc9(0x214)]=_0xa57f41;}[_0x1991b4(0x1ca)](_0x3efed0){const _0x135311=_0x1991b4;this[_0x135311(0x208)][_0x135311(0x18b)][_0x135311(0x1ca)](_0x3efed0);}[_0x1991b4(0x1d7)](){const _0x423b8f=_0x1991b4;this[_0x423b8f(0x224)](_0x23f727(this[_0x423b8f(0x1f3)][_0x423b8f(0x1f8)],_0x423b8f(0x206)));}[_0x1991b4(0x224)](_0x35dd17,_0x22fd74=!0x1){const _0x45b3d1=_0x1991b4;if(_0x22fd74&&!_0x23ad55()&&_0x35dd17[_0x45b3d1(0x1f6)])return this[_0x45b3d1(0x208)][_0x45b3d1(0x1b3)][_0x45b3d1(0x190)]='',void this[_0x45b3d1(0x1d2)](_0x35dd17);this[_0x45b3d1(0x208)][_0x45b3d1(0x1b3)][_0x45b3d1(0x190)]=_0x35dd17;}[_0x1991b4(0x1bf)](_0x1f80d6){const _0x589ec4=_0x1991b4;this[_0x589ec4(0x208)][_0x589ec4(0x18b)][_0x589ec4(0x1bf)](_0x1f80d6);}[_0x1991b4(0x1ea)](){const _0x1d9059=_0x1991b4;this[_0x1d9059(0x208)][_0x1d9059(0x18b)][_0x1d9059(0x1bf)]('');}[_0x1991b4(0x1d2)](_0x10ca18){const _0x25c417=_0x1991b4;let _0x4cfa5c=0x0;clearInterval(this[_0x25c417(0x228)]),this[_0x25c417(0x228)]=setInterval(()=>{const _0x26090a=_0x25c417;this[_0x26090a(0x208)][_0x26090a(0x1b3)][_0x26090a(0x190)]=this[_0x26090a(0x208)][_0x26090a(0x1b3)][_0x26090a(0x190)]+_0x10ca18[_0x4cfa5c],_0x4cfa5c++,_0x4cfa5c===_0x10ca18[_0x26090a(0x1f6)]&&clearInterval(this[_0x26090a(0x228)]);},0x1e);}[_0x1991b4(0x19c)](_0x44c3d8){const _0x112ea1=_0x1991b4;this[_0x112ea1(0x208)][_0x112ea1(0x1b3)][_0x112ea1(0x1cd)]=_0x44c3d8;}[_0x1991b4(0x177)](_0x2e32b3){const _0x12f3be=_0x1991b4;return _0x2e32b3[_0x12f3be(0x1b4)]&&_0x2e32b3[_0x12f3be(0x1fb)]?_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x1a8)):_0x2e32b3[_0x12f3be(0x1b4)]?_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x1de)):_0x2e32b3[_0x12f3be(0x1fb)]?_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x1bd)):_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x19f));}[_0x1991b4(0x1c0)](_0x4fbd93){const _0x5da173=_0x1991b4;return _0x4fbd93?_0x4fbd93[_0x5da173(0x1b4)]&&_0x4fbd93[_0x5da173(0x1fb)]?_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x1c2)):_0x4fbd93[_0x5da173(0x1b4)]?_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x1dd)):_0x4fbd93[_0x5da173(0x1fb)]?_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x226)):_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x18e)):_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x18e));}[_0x1991b4(0x1b5)](_0x372509,_0x15d9c0,_0x2c6972,_0x49cac0){const _0x3d2d35=_0x1991b4;this[_0x3d2d35(0x208)][_0x3d2d35(0x1b5)](_0x372509,_0x15d9c0,_0x2c6972,_0x49cac0);}[_0x1991b4(0x1af)](_0x1bdfe3){const _0x82cafd=_0x1991b4;this[_0x82cafd(0x208)][_0x82cafd(0x1af)](_0x1bdfe3);}[_0x1991b4(0x189)](_0x5c2ffe){const _0x27a81d=_0x1991b4;this[_0x27a81d(0x208)][_0x27a81d(0x186)][_0x27a81d(0x189)](_0x5c2ffe);}[_0x1991b4(0x199)](_0x4485e5=!0x1){const _0x1f2bcb=_0x1991b4;this[_0x1f2bcb(0x208)][_0x1f2bcb(0x186)][_0x1f2bcb(0x199)](_0x4485e5);}[_0x1991b4(0x1e1)](_0x6334b,_0x30d881){const _0x2ccc2f=_0x1991b4;this[_0x2ccc2f(0x208)][_0x2ccc2f(0x18b)][_0x2ccc2f(0x196)](_0x6334b,_0x30d881);}[_0x1991b4(0x1e4)](){const _0x25ece0=_0x1991b4;this[_0x25ece0(0x208)][_0x25ece0(0x18b)][_0x25ece0(0x1e4)]();}[_0x1991b4(0x1fa)](){const _0x12d34b=_0x1991b4;this[_0x12d34b(0x208)][_0x12d34b(0x186)][_0x12d34b(0x1dc)]=!0x0;}[_0x1991b4(0x1aa)](){const _0x114da1=_0x1991b4;this[_0x114da1(0x208)][_0x114da1(0x186)][_0x114da1(0x1dc)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xaa15a6=_0x1e28;(function(_0x3f7ac9,_0x459f9f){const _0x58d36f=_0x1e28,_0x1c55e3=_0x3f7ac9();while(!![]){try{const _0x4aa53d=-parseInt(_0x58d36f(0x195))/0x1*(parseInt(_0x58d36f(0x207))/0x2)+parseInt(_0x58d36f(0x1f6))/0x3+parseInt(_0x58d36f(0x1e6))/0x4+-parseInt(_0x58d36f(0x1df))/0x5+parseInt(_0x58d36f(0x200))/0x6+parseInt(_0x58d36f(0x1c7))/0x7+-parseInt(_0x58d36f(0x1eb))/0x8;if(_0x4aa53d===_0x459f9f)break;else _0x1c55e3['push'](_0x1c55e3['shift']());}catch(_0x2abb42){_0x1c55e3['push'](_0x1c55e3['shift']());}}}(_0xab59,0x4de1a));import{CKEditorError as _0x376154,ObservableMixin as _0x12c65e,uid as _0x2c2382}from'ckeditor5/src/utils.js';function _0x1e28(_0x312586,_0x1472c3){const _0xab59f2=_0xab59();return _0x1e28=function(_0x1e285b,_0x391ae0){_0x1e285b=_0x1e285b-0x191;let _0x46bd3c=_0xab59f2[_0x1e285b];return _0x46bd3c;},_0x1e28(_0x312586,_0x1472c3);}function _0xab59(){const _0x390c1d=['label','loadSourceResources','sourceResourcesLoaded','ai-chat-resource-load-failed','_getCustomSourcesInitialState','addToConversationContext','push','ai-chat-url-upload-failed','_config','_convertTextResourceToFile','end','isSelectionInContext','current-document','removeFromContext','clearPendingContextItems','init','FILE','code','files','SELECTION','type','784406JrJXHj','getResources','isCurrentDocumentInContext','_ownerId','ai-chat-resource-no-data','find','uploadProgressChanged','addFilesToContext','version','_setAddContextOptionsDefaultState','ai-chat-context-unsupported-type','ai-request-aborted','toolName','text/plain','getData','attributes','_createContextItemFromContent','url-','abort','isCurrentDocumentInConversation','contextSent','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploads','ai-chat-source-not-found','136125klQwiG','isReadOnly','_removeContextItem','customItems','populateFromMessage','object\x20with\x20content\x20and\x20type\x20properties','contextItemRemoved','1450428WfoXqI','removeSelectionFromContext','mapContextItemsToRequestData','isHidden','_finishContextItemLoading','4146376hprCMk','message','isInContext','files-','startsWith','text/markdown','fire','object','_isResourceInContext','start','addToolItemToContext','1163244jrdMbb','hidden','sessionId','ai-chat-file-upload-failed','addSelectionToContext','_connector','_finishUploadOperation','urls','url','addUrlToContext','3227490WlYXAx','map','file-','error','Current\x20document','abortController','resourceStateChanged','1071608qUMAky','addCurrentDocumentToContext','_mapContextItemToRequestData','get','ai-chat-source-resources-load-failed','substring','_startUploadOperation','fetchDocument','all','text/html','size','TEXT','filter','forEach','_findSourceIdsByResourceId','URL','ai-chat-context-invalid-data','getPendingContextItems','HTML','content','uploadUrl','length','string','name','uploadFile','contextItemAdded','addResourceToContext','_conversationContextItems','_addContextOptionsState','getId','values','document','contextItemLoadingEnded','1XKKOgj','set','ai-chat-document-upload-failed','getSentContextItems','selection','enabled','getDocument','DOCUMENT','addContextOptionsChanged','MARKDOWN','updateCurrentDocument','stack','_addContextItem','has','_pendingContextItems','mcpServerName','uiId','uploadDocument','_ongoingUploadOperations','_updateResourceInContextState','sources','TOOL','resources','data','from','delete','resourceId','_addToConversationContextItem','File'];_0xab59=function(){return _0x390c1d;};return _0xab59();}import{AIContextItemType as _0x1fb19b,AIContextTextResourceType as _0x14d817}from'../../aicore/model/aicontext.js';import{escape as _0x25df55}from'es-toolkit/compat';import{errorsMap as _0x28d69b}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xaa15a6(0x220),_0xaa15a6(0x1e5),_0xaa15a6(0x194),_0xaa15a6(0x1db),_0xaa15a6(0x203),_0xaa15a6(0x19d),_0xaa15a6(0x1b4),_0xaa15a6(0x206),_0xaa15a6(0x1cd)];export class AIChatContext extends _0x12c65e(){[_0xaa15a6(0x1fb)];[_0xaa15a6(0x1ba)];[_0xaa15a6(0x1ca)];constructor({connector:_0x24178e,config:_0x5717dd,ownerId:_0x489a29}){const _0xb2a556=_0xaa15a6;super(),this[_0xb2a556(0x1fb)]=_0x24178e,this[_0xb2a556(0x1ba)]=_0x5717dd,this[_0xb2a556(0x1ca)]=_0x489a29;}[_0xaa15a6(0x1c1)](){const _0x2d1468=_0xaa15a6;this[_0x2d1468(0x1a3)]=new Map(),this[_0x2d1468(0x222)]=new Map(),this[_0x2d1468(0x1dd)]=new Map(),this[_0x2d1468(0x1a7)]=new Map(),this[_0x2d1468(0x1d0)]();}[_0xaa15a6(0x218)](){const _0x1102b9=_0xaa15a6;return this[_0x1102b9(0x1a3)];}async[_0xaa15a6(0x1e3)](_0x3c952e){const _0x36de12=_0xaa15a6,_0x23bfd7=await this[_0x36de12(0x1d7)](_0x3c952e);return this[_0x36de12(0x1b0)](_0x23bfd7),_0x36de12(0x1be)===_0x23bfd7[_0x36de12(0x1a5)]&&this[_0x36de12(0x1dc)](),_0x23bfd7;}async[_0xaa15a6(0x1d7)](_0x220b2b){const _0x54f7c7=_0xaa15a6;if(_0x220b2b[_0x54f7c7(0x1c6)]===_0x1fb19b[_0x54f7c7(0x19c)]){const _0x32267b=await this[_0x54f7c7(0x1fb)][_0x54f7c7(0x20e)](this[_0x54f7c7(0x1ca)],_0x220b2b['id'])[_0x54f7c7(0x19b)]();return{'id':_0x54f7c7(0x1be),'uiId':_0x54f7c7(0x1be),'label':_0x54f7c7(0x204),'type':_0x220b2b[_0x54f7c7(0x1c6)],'content':_0x32267b[_0x54f7c7(0x21a)],'hidden':this[_0x54f7c7(0x222)][_0x54f7c7(0x1a2)](_0x54f7c7(0x1be)),'version':_0x32267b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1cf)],'sessionId':_0x32267b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1f8)]};}if(_0x220b2b[_0x54f7c7(0x1c6)]===_0x1fb19b[_0x54f7c7(0x1aa)])return{'id':_0x220b2b['id'],'uiId':_0x220b2b['id'],'label':_0x220b2b[_0x54f7c7(0x1ac)]?.[_0x54f7c7(0x1b2)]||_0x220b2b['id'],'type':_0x1fb19b[_0x54f7c7(0x1aa)],'mcpServerName':_0x220b2b[_0x54f7c7(0x1a4)],'toolName':_0x220b2b[_0x54f7c7(0x1d3)],'data':_0x220b2b[_0x54f7c7(0x1ac)]||{}};return{'id':_0x220b2b['id'],'uiId':_0x220b2b['id'],'label':_0x220b2b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1b2)]||_0x220b2b[_0x54f7c7(0x21e)]||_0x220b2b[_0x54f7c7(0x1fe)]||_0x220b2b['id'],'type':_0x220b2b[_0x54f7c7(0x1c6)],..._0x220b2b?.[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1af)]?{'resourceId':_0x220b2b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1af)]}:{}};}[_0xaa15a6(0x198)](){const _0x409be8=_0xaa15a6;return new Map(this[_0x409be8(0x222)]);}[_0xaa15a6(0x1bf)](_0x59ddb2){const _0x328871=_0xaa15a6,_0xc5f8ca=this[_0x328871(0x1a3)][_0x328871(0x20a)](_0x59ddb2);_0xc5f8ca?.[_0x328871(0x1e0)]||this[_0x328871(0x1e1)](_0x59ddb2);}[_0xaa15a6(0x1c0)](){const _0x2ccc17=_0xaa15a6;if(0x0===this[_0x2ccc17(0x1a3)][_0x2ccc17(0x211)])return;for(const _0x409ac8 of this[_0x2ccc17(0x1a3)][_0x2ccc17(0x192)]())this[_0x2ccc17(0x1e1)](_0x409ac8[_0x2ccc17(0x1a5)]);const _0xcc9099=this[_0x2ccc17(0x222)][_0x2ccc17(0x20a)](_0x2ccc17(0x1be))||this[_0x2ccc17(0x1a3)][_0x2ccc17(0x20a)](_0x2ccc17(0x1be));_0xcc9099&&this[_0x2ccc17(0x1a1)]({..._0xcc9099,'isReadOnly':!0x0,'hidden':!0x0});}[_0xaa15a6(0x1b7)](_0x300ff7){const _0x23945f=_0xaa15a6;for(const _0x4f3e1b of _0x300ff7[_0x23945f(0x192)]())this[_0x23945f(0x1b0)](_0x4f3e1b);this[_0x23945f(0x1c0)](),this[_0x23945f(0x1f1)](_0x23945f(0x1db),{'contextItems':Array[_0x23945f(0x1ad)](this[_0x23945f(0x198)]()[_0x23945f(0x192)]())});}[_0xaa15a6(0x1c9)](){const _0x1491b2=_0xaa15a6;return this[_0x1491b2(0x1a3)][_0x1491b2(0x1a2)](_0x1491b2(0x1be));}[_0xaa15a6(0x1bd)](){const _0x57a124=_0xaa15a6;return this[_0x57a124(0x1a3)][_0x57a124(0x1a2)](_0x57a124(0x199));}[_0xaa15a6(0x1da)](){const _0x499c22=_0xaa15a6;return this[_0x499c22(0x222)][_0x499c22(0x1a2)](_0x499c22(0x1be));}static[_0xaa15a6(0x1e8)](_0x228cf5){const _0x588757=_0xaa15a6;return Array[_0x588757(0x1ad)](_0x228cf5[_0x588757(0x192)]())[_0x588757(0x201)](_0x4db105=>this[_0x588757(0x209)](_0x4db105))[_0x588757(0x213)](_0x78c11e=>null!==_0x78c11e);}async[_0xaa15a6(0x1ce)](_0x286d6e,_0x181464,_0x359232=_0x1fb19b[_0xaa15a6(0x1c2)]){const _0x365bdf=_0xaa15a6,_0x4bdeb8=_0x365bdf(0x1ee)+_0x2c2382();this[_0x365bdf(0x20d)](_0x4bdeb8);try{await Promise[_0x365bdf(0x20f)](_0x286d6e[_0x365bdf(0x201)](async _0x4c0022=>{const _0x267d9a=_0x365bdf,_0x4da4bc=_0x267d9a(0x202)+_0x2c2382(),_0x2568dc=_0x25df55(_0x4c0022[_0x267d9a(0x21e)]);try{this[_0x267d9a(0x1a1)]({'type':_0x359232,'label':_0x181464?.[_0x267d9a(0x1b2)]||_0x2568dc,'uiId':_0x4da4bc,'resourceId':_0x181464?.[_0x267d9a(0x1af)]},!0x0);const _0x75932b=this[_0x267d9a(0x1fb)][_0x267d9a(0x21f)](this[_0x267d9a(0x1ca)],_0x4c0022,_0x181464);this[_0x267d9a(0x1dd)][_0x267d9a(0x196)](_0x4da4bc,_0x75932b[_0x267d9a(0x205)]);const {id:_0x3da961}=await _0x75932b[_0x267d9a(0x191)]();this[_0x267d9a(0x1dd)][_0x267d9a(0x1ae)](_0x4da4bc),this[_0x267d9a(0x1ea)]({'type':_0x359232,'id':_0x3da961,'label':_0x181464?.[_0x267d9a(0x1b2)]||_0x2568dc,'uiId':_0x4da4bc,'resourceId':_0x181464?.[_0x267d9a(0x1af)]},!0x1);}catch(_0x565343){this[_0x267d9a(0x1dd)][_0x267d9a(0x1ae)](_0x4da4bc);if(!(_0x565343 instanceof _0x376154&&_0x565343[_0x267d9a(0x1ec)][_0x267d9a(0x1ef)](_0x267d9a(0x1d2)))){const _0x323760=_0x28d69b[_0x267d9a(0x20a)](_0x565343[_0x267d9a(0x1c3)])||_0x267d9a(0x1f9),_0x393edd=new _0x376154(_0x323760,null,{'fileName':_0x2568dc,..._0x565343});_0x393edd[_0x267d9a(0x1a0)]=_0x565343[_0x267d9a(0x1a0)],this[_0x267d9a(0x1f1)](_0x267d9a(0x203),{'error':_0x393edd});}this[_0x267d9a(0x1e1)](_0x4da4bc);}}));}finally{this[_0x365bdf(0x1fc)](_0x4bdeb8);}}[_0xaa15a6(0x208)](_0x3bc379){const _0xb5aadb=_0xaa15a6;if(this[_0xb5aadb(0x1c9)]()||!this[_0xb5aadb(0x223)][_0xb5aadb(0x193)][_0xb5aadb(0x19a)])return;const _0x28487a={'type':_0x1fb19b[_0xb5aadb(0x19c)],'uiId':_0xb5aadb(0x1be),'label':_0x3bc379,'isReadOnly':this[_0xb5aadb(0x222)][_0xb5aadb(0x1a2)](_0xb5aadb(0x1be)),'hidden':this[_0xb5aadb(0x222)][_0xb5aadb(0x1a2)](_0xb5aadb(0x1be))};this[_0xb5aadb(0x1a1)](_0x28487a);}async[_0xaa15a6(0x19f)](_0x12ef1a,_0x1a04f8,_0x1d625d,_0x2529f6){const _0x55715a=_0xaa15a6,_0x349421=this[_0x55715a(0x1a3)][_0x55715a(0x20a)](_0x55715a(0x1be));if(_0x349421&&_0x12ef1a){_0x349421[_0x55715a(0x199)]=_0x2529f6?_0x2529f6[_0x55715a(0x201)](_0x20299d=>({'start':_0x20299d[_0x55715a(0x1f4)],'end':_0x20299d[_0x55715a(0x1bc)]})):[];try{if(_0x349421[_0x55715a(0x1cf)]===_0x1a04f8)return;const {id:_0x356528}=await this[_0x55715a(0x1fb)][_0x55715a(0x1a6)](this[_0x55715a(0x1ca)],_0x12ef1a,{'version':_0x1a04f8,'sessionId':_0x1d625d})[_0x55715a(0x191)]();_0x349421['id']=_0x356528,_0x349421[_0x55715a(0x21a)]=_0x12ef1a,_0x349421[_0x55715a(0x1cf)]=_0x1a04f8,_0x349421[_0x55715a(0x1f8)]=_0x1d625d;}catch(_0xa8b1b1){const _0x3534d1=new _0x376154(_0x55715a(0x197),null);_0x3534d1[_0x55715a(0x1a0)]=_0xa8b1b1[_0x55715a(0x1a0)],this[_0x55715a(0x1f1)](_0x55715a(0x203),{'error':_0x3534d1});}}}[_0xaa15a6(0x1fa)](_0x41e622){const _0x3cb6bd=_0xaa15a6;this[_0x3cb6bd(0x1a1)]({'type':_0x1fb19b[_0x3cb6bd(0x1c5)],'label':_0x41e622,'uiId':_0x3cb6bd(0x199),'content':_0x41e622});}[_0xaa15a6(0x1e7)](){const _0x3d17a6=_0xaa15a6;this[_0x3d17a6(0x1e1)](_0x3d17a6(0x199));}async[_0xaa15a6(0x1ff)](_0x3358bb,_0x53d5a6){const _0x8807a2=_0xaa15a6,_0xe75b89=_0x8807a2(0x1d8)+_0x2c2382();this[_0x8807a2(0x20d)](_0xe75b89);const _0x82b333=_0x8807a2(0x1d8)+_0x2c2382();try{this[_0x8807a2(0x1a1)]({'type':_0x1fb19b[_0x8807a2(0x216)],'label':_0x53d5a6?.[_0x8807a2(0x1b2)]||_0x3358bb,'uiId':_0x82b333,'resourceId':_0x53d5a6?.[_0x8807a2(0x1af)]},!0x0);const _0x2efc36=this[_0x8807a2(0x1fb)][_0x8807a2(0x21b)](this[_0x8807a2(0x1ca)],_0x3358bb,_0x53d5a6);this[_0x8807a2(0x1dd)][_0x8807a2(0x196)](_0x82b333,_0x2efc36[_0x8807a2(0x205)]);const {id:_0x3f7011}=await _0x2efc36[_0x8807a2(0x191)]();this[_0x8807a2(0x1dd)][_0x8807a2(0x1ae)](_0x82b333),this[_0x8807a2(0x1ea)]({'type':_0x1fb19b[_0x8807a2(0x216)],'id':_0x3f7011,'label':_0x53d5a6?.[_0x8807a2(0x1b2)]||_0x3358bb,'uiId':_0x82b333,'resourceId':_0x53d5a6?.[_0x8807a2(0x1af)]},!0x1);}catch(_0x129f92){this[_0x8807a2(0x1dd)][_0x8807a2(0x1ae)](_0x82b333),(_0x129f92[_0x8807a2(0x1ec)][_0x8807a2(0x1ef)](_0x8807a2(0x1d2))||this[_0x8807a2(0x1f1)](_0x8807a2(0x203),{'error':new _0x376154(_0x8807a2(0x1b9),this,{'url':_0x3358bb,'originalError':_0x129f92}),'url':_0x3358bb}),this[_0x8807a2(0x1e1)](_0x82b333));}finally{this[_0x8807a2(0x1fc)](_0xe75b89);}}[_0xaa15a6(0x1f5)](_0xb8bee3){const _0x45ddbf=_0xaa15a6;_0xb8bee3['id']=_0xb8bee3['id']??_0x2c2382()[_0x45ddbf(0x20c)](0x0,0x15),this[_0x45ddbf(0x1a3)][_0x45ddbf(0x196)](_0xb8bee3[_0x45ddbf(0x1a5)],_0xb8bee3),this[_0x45ddbf(0x1f1)](_0x45ddbf(0x220),{'contextItem':_0xb8bee3,'isLoading':!0x1});}async[_0xaa15a6(0x1b3)](_0x1e5d1e,_0x3e159f,_0x4fa18a){const _0x8d13c1=_0xaa15a6,_0x5ce4a0=this[_0x8d13c1(0x223)][_0x8d13c1(0x1a9)][_0x8d13c1(0x1cc)](_0xef6700=>_0xef6700['id']===_0x1e5d1e);if(!_0x5ce4a0)return this[_0x8d13c1(0x1f1)](_0x8d13c1(0x203),{'error':new _0x376154(_0x8d13c1(0x1de),this,{'sourceId':_0x1e5d1e}),'sourceId':_0x1e5d1e}),[];try{const _0x15e131=(await _0x5ce4a0[_0x8d13c1(0x1c8)](_0x3e159f))[_0x8d13c1(0x201)](_0x312226=>{const _0x3af8e0=_0x8d13c1,_0x3013c5=this[_0x3af8e0(0x1f3)](_0x312226['id']);return{..._0x312226,'isInContext':_0x3013c5};});return _0x5ce4a0[_0x8d13c1(0x1ab)]=_0x15e131,this[_0x8d13c1(0x1f1)](_0x8d13c1(0x1b4),{'sourceId':_0x1e5d1e,'source':_0x5ce4a0,'resources':_0x15e131,'uid':_0x4fa18a}),_0x15e131;}catch(_0x170826){return this[_0x8d13c1(0x1f1)](_0x8d13c1(0x203),{'error':new _0x376154(_0x8d13c1(0x20b),this,{'sourceId':_0x1e5d1e,'originalError':_0x170826}),'sourceId':_0x1e5d1e,'sourceLabel':_0x5ce4a0[_0x8d13c1(0x1b2)]}),[];}}async[_0xaa15a6(0x221)](_0x14ab49,_0x3d829d){const _0x42f5f4=_0xaa15a6;if(this[_0x42f5f4(0x1f3)](_0x3d829d['id']))return;let _0xff6a1e=_0x3d829d[_0x42f5f4(0x1ac)];if(!_0xff6a1e&&_0x14ab49[_0x42f5f4(0x1d5)])try{_0xff6a1e=await _0x14ab49[_0x42f5f4(0x1d5)](_0x3d829d['id']);}catch(_0x49f586){return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x1b5),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'originalError':_0x49f586}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});}if(_0xff6a1e)switch(_0x3d829d[_0x42f5f4(0x1c6)]){case _0x1fb19b[_0x42f5f4(0x216)]:if(_0x42f5f4(0x21d)!=typeof _0xff6a1e)return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x217),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'expectedType':_0x42f5f4(0x21d),'actualType':typeof _0xff6a1e}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});await this[_0x42f5f4(0x1ff)](_0xff6a1e,{'label':_0x3d829d[_0x42f5f4(0x1b2)],'resourceId':_0x3d829d['id']});break;case _0x1fb19b[_0x42f5f4(0x1c2)]:if(!(_0xff6a1e instanceof File))return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x217),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'expectedType':_0x42f5f4(0x1b1),'actualType':typeof _0xff6a1e}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});await this[_0x42f5f4(0x1ce)]([_0xff6a1e],{'label':_0x3d829d[_0x42f5f4(0x1b2)],'resourceId':_0x3d829d['id']});break;case _0x1fb19b[_0x42f5f4(0x212)]:if(_0x42f5f4(0x1f2)!=typeof _0xff6a1e||!(_0x42f5f4(0x21a)in _0xff6a1e)||!(_0x42f5f4(0x1c6)in _0xff6a1e))return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x217),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'expectedType':_0x42f5f4(0x1e4),'actualType':typeof _0xff6a1e}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});_0xff6a1e=AIChatContext[_0x42f5f4(0x1bb)](_0xff6a1e,_0x3d829d[_0x42f5f4(0x1b2)]),await this[_0x42f5f4(0x1ce)]([_0xff6a1e],{'label':_0x3d829d[_0x42f5f4(0x1b2)],'resourceId':_0x3d829d['id']},_0x1fb19b[_0x42f5f4(0x212)]);break;case _0x1fb19b[_0x42f5f4(0x1aa)]:break;default:this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x1d1),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'resourceType':_0x3d829d[_0x42f5f4(0x1c6)]}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});}else this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x1cb),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});}static[_0xaa15a6(0x1bb)](_0x3ba37d,_0x1384de){const _0xab6b0d=_0xaa15a6;switch(_0x3ba37d[_0xab6b0d(0x1c6)]){case _0x14d817[_0xab6b0d(0x19e)]:return new File([_0x3ba37d[_0xab6b0d(0x21a)]],_0x1384de,{'type':_0xab6b0d(0x1f0)});case _0x14d817[_0xab6b0d(0x219)]:return new File([_0x3ba37d[_0xab6b0d(0x21a)]],_0x1384de,{'type':_0xab6b0d(0x210)});default:return new File([_0x3ba37d[_0xab6b0d(0x21a)]],_0x1384de,{'type':_0xab6b0d(0x1d4)});}}static[_0xaa15a6(0x209)](_0x4e9d97){const _0x4aa3c7=_0xaa15a6;switch(_0x4e9d97[_0x4aa3c7(0x1c6)]){case _0x1fb19b[_0x4aa3c7(0x1c2)]:return{'type':_0x1fb19b[_0x4aa3c7(0x1c2)],'id':_0x4e9d97['id']};case _0x1fb19b[_0x4aa3c7(0x216)]:return{'type':_0x1fb19b[_0x4aa3c7(0x216)],'id':_0x4e9d97['id']};case _0x1fb19b[_0x4aa3c7(0x19c)]:return{'type':_0x1fb19b[_0x4aa3c7(0x19c)],'id':_0x4e9d97['id'],..._0x4e9d97[_0x4aa3c7(0x199)]?.[_0x4aa3c7(0x21c)]&&{'selection':_0x4e9d97[_0x4aa3c7(0x199)]}};case _0x1fb19b[_0x4aa3c7(0x212)]:return{'type':_0x1fb19b[_0x4aa3c7(0x1c2)],'id':_0x4e9d97['id']};case _0x1fb19b[_0x4aa3c7(0x1aa)]:{const _0x967d9e=_0x4e9d97;return{'type':_0x1fb19b[_0x4aa3c7(0x1aa)],'mcpServerName':_0x967d9e[_0x4aa3c7(0x1a4)],'toolName':_0x967d9e[_0x4aa3c7(0x1d3)],'data':_0x967d9e[_0x4aa3c7(0x1ac)],'id':_0x967d9e['id']};}default:return null;}}[_0xaa15a6(0x1a1)](_0x4574e2,_0x3ae057=!0x1){const _0x3b9658=_0xaa15a6;if(this[_0x3b9658(0x1a3)][_0x3b9658(0x196)](_0x4574e2[_0x3b9658(0x1a5)],_0x4574e2),_0x4574e2[_0x3b9658(0x1f7)]||this[_0x3b9658(0x1f1)](_0x3b9658(0x220),{'contextItem':_0x4574e2,'isLoading':_0x3ae057}),_0x3b9658(0x1be)===_0x4574e2[_0x3b9658(0x1a5)]&&this[_0x3b9658(0x1dc)](),_0x4574e2[_0x3b9658(0x1af)]){const _0x3b72cb=this[_0x3b9658(0x215)](_0x4574e2[_0x3b9658(0x1af)]);_0x3b72cb&&_0x3b72cb[_0x3b9658(0x214)](_0x354562=>{const _0xd661ce=_0x3b9658;this[_0xd661ce(0x1a8)](_0x354562,_0x4574e2[_0xd661ce(0x1af)],!0x0);});}}[_0xaa15a6(0x1e1)](_0x405a54){const _0x1f0129=_0xaa15a6,_0x3c65e8=this[_0x1f0129(0x1a3)][_0x1f0129(0x20a)](_0x405a54),_0x2257d7=this[_0x1f0129(0x1dd)][_0x1f0129(0x20a)](_0x405a54);if(_0x2257d7&&(_0x2257d7[_0x1f0129(0x1d9)](),this[_0x1f0129(0x1dd)][_0x1f0129(0x1ae)](_0x405a54)),_0x3c65e8?.[_0x1f0129(0x1af)]){const _0x5ecc23=this[_0x1f0129(0x215)](_0x3c65e8[_0x1f0129(0x1af)]);_0x5ecc23&&_0x5ecc23[_0x1f0129(0x214)](_0x9385b9=>{const _0x59037a=_0x1f0129;this[_0x59037a(0x1a8)](_0x9385b9,_0x3c65e8[_0x59037a(0x1af)],!0x1);});}this[_0x1f0129(0x1a3)][_0x1f0129(0x1ae)](_0x405a54),this[_0x1f0129(0x1f1)](_0x1f0129(0x1e5),{'uiId':_0x405a54,'type':_0x3c65e8?.[_0x1f0129(0x1c6)]}),_0x1f0129(0x1be)===_0x405a54&&this[_0x1f0129(0x1dc)]();}[_0xaa15a6(0x1ea)](_0x3eb499,_0x3160fb){const _0x35f71b=_0xaa15a6;if(this[_0x35f71b(0x1a3)][_0x35f71b(0x1a2)](_0x3eb499[_0x35f71b(0x1a5)])&&(this[_0x35f71b(0x1a3)][_0x35f71b(0x196)](_0x3eb499[_0x35f71b(0x1a5)],_0x3eb499),this[_0x35f71b(0x1f1)](_0x35f71b(0x194),{'contextItem':_0x3eb499,'isLoading':_0x3160fb}),_0x3eb499[_0x35f71b(0x1af)])){const _0xecc5c9=this[_0x35f71b(0x215)](_0x3eb499[_0x35f71b(0x1af)]);_0xecc5c9&&_0xecc5c9[_0x35f71b(0x214)](_0x12b0f8=>{const _0x2d9c3d=_0x35f71b;this[_0x2d9c3d(0x1a8)](_0x12b0f8,_0x3eb499[_0x2d9c3d(0x1af)],!0x0);});}}[_0xaa15a6(0x1b0)](_0x3c5404){const _0x2c1dc9=_0xaa15a6;this[_0x2c1dc9(0x222)][_0x2c1dc9(0x196)](_0x3c5404[_0x2c1dc9(0x1a5)],_0x3c5404);}[_0xaa15a6(0x1d0)](){const _0x18b52e=_0xaa15a6;this[_0x18b52e(0x223)]={'document':{'enabled':!0x1!==this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x193)]?.[_0x18b52e(0x19a)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x1fd)]?.[_0x18b52e(0x19a)]},'files':{'enabled':!0x1!==this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x1c4)]?.[_0x18b52e(0x19a)]},'sources':this[_0x18b52e(0x1b6)](),'customItems':this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x1e2)]?.[_0x18b52e(0x201)](_0xfd186=>({..._0xfd186,'enabled':!0x0}))??[]},this[_0x18b52e(0x1f1)](_0x18b52e(0x19d),{'options':this[_0x18b52e(0x223)]});}[_0xaa15a6(0x1b6)](){const _0x25f608=_0xaa15a6;return this[_0x25f608(0x1ba)]?.[_0x25f608(0x1a9)]?.[_0x25f608(0x201)](_0x70804e=>({..._0x70804e,'resources':[]}))??[];}[_0xaa15a6(0x1dc)](){const _0x5bbf55=_0xaa15a6,_0x1c5162=this[_0x5bbf55(0x1c9)]()||this[_0x5bbf55(0x1da)]();this[_0x5bbf55(0x223)][_0x5bbf55(0x193)][_0x5bbf55(0x1e9)]=_0x1c5162,this[_0x5bbf55(0x1f1)](_0x5bbf55(0x19d),{'options':this[_0x5bbf55(0x223)]});}[_0xaa15a6(0x1f3)](_0x2d6429){const _0x263e5c=_0xaa15a6;for(const _0x50cfc0 of this[_0x263e5c(0x1a3)][_0x263e5c(0x192)]())if(_0x50cfc0[_0x263e5c(0x1af)]===_0x2d6429)return!0x0;for(const _0x1d8a8a of this[_0x263e5c(0x222)][_0x263e5c(0x192)]())if(_0x1d8a8a[_0x263e5c(0x1af)]===_0x2d6429)return!0x0;return!0x1;}[_0xaa15a6(0x215)](_0x12b159){const _0x398b32=_0xaa15a6,_0xe94a1b=[];for(const _0x13a41e of this[_0x398b32(0x223)][_0x398b32(0x1a9)]){_0x13a41e[_0x398b32(0x1ab)][_0x398b32(0x1cc)](_0x5aa8b9=>_0x5aa8b9['id']===_0x12b159)&&_0xe94a1b[_0x398b32(0x1b8)](_0x13a41e['id']);}return 0x0===_0xe94a1b[_0x398b32(0x21c)]?null:_0xe94a1b;}[_0xaa15a6(0x1a8)](_0xfe922e,_0x2e5df4,_0x242500){const _0x4dc387=_0xaa15a6,_0x2e421b=this[_0x4dc387(0x223)][_0x4dc387(0x1a9)][_0x4dc387(0x1cc)](_0x1db450=>_0x1db450['id']===_0xfe922e);if(!_0x2e421b)return;const _0x26f687=_0x2e421b[_0x4dc387(0x1ab)][_0x4dc387(0x1cc)](_0x21c2dc=>_0x21c2dc['id']===_0x2e5df4);_0x26f687&&(_0x26f687[_0x4dc387(0x1ed)]=_0x242500,this[_0x4dc387(0x1f1)](_0x4dc387(0x206),{'sourceId':_0xfe922e,'resourceId':_0x2e5df4,'isInContext':_0x242500}));}[_0xaa15a6(0x20d)](_0x408fd6){const _0x59116d=_0xaa15a6;this[_0x59116d(0x1a7)][_0x59116d(0x196)](_0x408fd6,!0x0),this[_0x59116d(0x1a7)][_0x59116d(0x211)]&&this[_0x59116d(0x1f1)](_0x59116d(0x1cd),{'isUploadInProgress':!0x0});}[_0xaa15a6(0x1fc)](_0x13a38e){const _0x401e7f=_0xaa15a6;this[_0x401e7f(0x1a7)][_0x401e7f(0x1ae)](_0x13a38e),0x0===this[_0x401e7f(0x1a7)][_0x401e7f(0x211)]&&this[_0x401e7f(0x1f1)](_0x401e7f(0x1cd),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x3fea2e=_0x254f;(function(_0x417596,_0x511194){const _0x131c36=_0x254f,_0x4dab0c=_0x417596();while(!![]){try{const _0x38a64e=-parseInt(_0x131c36(0x1b5))/0x1+-parseInt(_0x131c36(0x1b2))/0x2*(parseInt(_0x131c36(0x1ca))/0x3)+-parseInt(_0x131c36(0x179))/0x4*(parseInt(_0x131c36(0x1c6))/0x5)+-parseInt(_0x131c36(0x185))/0x6*(parseInt(_0x131c36(0x155))/0x7)+parseInt(_0x131c36(0x1c8))/0x8*(-parseInt(_0x131c36(0x1da))/0x9)+parseInt(_0x131c36(0x1b7))/0xa+-parseInt(_0x131c36(0x1c0))/0xb*(-parseInt(_0x131c36(0x17d))/0xc);if(_0x38a64e===_0x511194)break;else _0x4dab0c['push'](_0x4dab0c['shift']());}catch(_0x2b57ac){_0x4dab0c['push'](_0x4dab0c['shift']());}}}(_0x52cd,0x25360));import{CKEditorError as _0x1e13a2,ObservableMixin as _0x525c8f,uid as _0x145148}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x448885,AIContextTextResourceType as _0x490edc}from'../../aicore/model/aicontext.js';import{escape as _0x572261}from'es-toolkit/compat';import{errorsMap as _0x1083a4}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3fea2e(0x16f),_0x3fea2e(0x1a0),_0x3fea2e(0x189),_0x3fea2e(0x1e3),_0x3fea2e(0x173),_0x3fea2e(0x18c),_0x3fea2e(0x19b),_0x3fea2e(0x1bc),_0x3fea2e(0x152)];function _0x254f(_0x6145cc,_0x298c9){const _0x52cd46=_0x52cd();return _0x254f=function(_0x254f14,_0x5c053b){_0x254f14=_0x254f14-0x14d;let _0x4dd4cf=_0x52cd46[_0x254f14];return _0x4dd4cf;},_0x254f(_0x6145cc,_0x298c9);}export class AIChatContext extends _0x525c8f(){[_0x3fea2e(0x1c5)];[_0x3fea2e(0x19d)];[_0x3fea2e(0x188)];constructor({connector:_0x5774fe,config:_0x5f27bc,ownerId:_0x228963}){const _0x3816f0=_0x3fea2e;super(),this[_0x3816f0(0x1c5)]=_0x5774fe,this[_0x3816f0(0x19d)]=_0x5f27bc,this[_0x3816f0(0x188)]=_0x228963;}[_0x3fea2e(0x1b9)](){const _0x21ac1b=_0x3fea2e;this[_0x21ac1b(0x165)]=new Map(),this[_0x21ac1b(0x1a3)]=new Map(),this[_0x21ac1b(0x171)]=new Map(),this[_0x21ac1b(0x190)]=new Map(),this[_0x21ac1b(0x18f)]();}[_0x3fea2e(0x1b4)](){const _0x532a67=_0x3fea2e;return this[_0x532a67(0x165)];}async[_0x3fea2e(0x17a)](_0x19c1c2){const _0x1fb0c7=_0x3fea2e,_0x58d79a=await this[_0x1fb0c7(0x1ba)](_0x19c1c2);return this[_0x1fb0c7(0x1af)](_0x58d79a),_0x1fb0c7(0x192)===_0x58d79a[_0x1fb0c7(0x160)]&&this[_0x1fb0c7(0x1cb)](),_0x58d79a;}async[_0x3fea2e(0x1ba)](_0x531cf9){const _0x4955be=_0x3fea2e;if(_0x531cf9[_0x4955be(0x159)]===_0x448885[_0x4955be(0x166)]){const _0x80b550=await this[_0x4955be(0x1c5)][_0x4955be(0x177)](this[_0x4955be(0x188)],_0x531cf9['id'])[_0x4955be(0x1b3)]();return{'id':_0x4955be(0x192),'uiId':_0x4955be(0x192),'label':_0x4955be(0x175),'type':_0x531cf9[_0x4955be(0x159)],'content':_0x80b550[_0x4955be(0x154)],'hidden':this[_0x4955be(0x1a3)][_0x4955be(0x1ad)](_0x4955be(0x192)),'version':_0x80b550[_0x4955be(0x1c3)]?.[_0x4955be(0x1a2)],'sessionId':_0x80b550[_0x4955be(0x1c3)]?.[_0x4955be(0x1ab)]};}if(_0x531cf9[_0x4955be(0x159)]===_0x448885[_0x4955be(0x1c9)])return{'id':_0x531cf9['id'],'uiId':_0x531cf9['id'],'label':_0x531cf9[_0x4955be(0x16a)]?.[_0x4955be(0x151)]||_0x531cf9['id'],'type':_0x448885[_0x4955be(0x1c9)],'mcpServerName':_0x531cf9[_0x4955be(0x18e)],'toolName':_0x531cf9[_0x4955be(0x1b6)],'data':_0x531cf9[_0x4955be(0x16a)]||{}};return{'id':_0x531cf9['id'],'uiId':_0x531cf9['id'],'label':_0x531cf9[_0x4955be(0x1c3)]?.[_0x4955be(0x151)]||_0x531cf9[_0x4955be(0x1d6)]||_0x531cf9[_0x4955be(0x191)]||_0x531cf9['id'],'type':_0x531cf9[_0x4955be(0x159)],..._0x531cf9?.[_0x4955be(0x1c3)]?.[_0x4955be(0x1c2)]?{'resourceId':_0x531cf9[_0x4955be(0x1c3)]?.[_0x4955be(0x1c2)]}:{}};}[_0x3fea2e(0x1c1)](){const _0x24371a=_0x3fea2e;return new Map(this[_0x24371a(0x1a3)]);}[_0x3fea2e(0x15b)](_0x45b4f9){const _0x15a5cf=_0x3fea2e,_0x4bf2e3=this[_0x15a5cf(0x165)][_0x15a5cf(0x164)](_0x45b4f9);_0x4bf2e3?.[_0x15a5cf(0x183)]||this[_0x15a5cf(0x17f)](_0x45b4f9);}[_0x3fea2e(0x153)](){const _0x48348e=_0x3fea2e;if(0x0===this[_0x48348e(0x165)][_0x48348e(0x196)])return;for(const _0x390943 of this[_0x48348e(0x165)][_0x48348e(0x18a)]())this[_0x48348e(0x17f)](_0x390943[_0x48348e(0x160)]);const _0x38c33f=this[_0x48348e(0x1a3)][_0x48348e(0x164)](_0x48348e(0x192))||this[_0x48348e(0x165)][_0x48348e(0x164)](_0x48348e(0x192));_0x38c33f&&this[_0x48348e(0x1bd)]({..._0x38c33f,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3fea2e(0x150)](_0x4bbc1d){const _0x4b21d8=_0x3fea2e;for(const _0x4baee0 of _0x4bbc1d[_0x4b21d8(0x18a)]())this[_0x4b21d8(0x1af)](_0x4baee0);this[_0x4b21d8(0x153)](),this[_0x4b21d8(0x195)](_0x4b21d8(0x1e3),{'contextItems':Array[_0x4b21d8(0x199)](this[_0x4b21d8(0x1c1)]()[_0x4b21d8(0x18a)]())});}[_0x3fea2e(0x1cd)](){const _0x11f19e=_0x3fea2e;return this[_0x11f19e(0x165)][_0x11f19e(0x1ad)](_0x11f19e(0x192));}[_0x3fea2e(0x1de)](){const _0xa48d03=_0x3fea2e;return this[_0xa48d03(0x165)][_0xa48d03(0x1ad)](_0xa48d03(0x157));}[_0x3fea2e(0x1dd)](){const _0x1b0c2f=_0x3fea2e;return this[_0x1b0c2f(0x1a3)][_0x1b0c2f(0x1ad)](_0x1b0c2f(0x192));}static[_0x3fea2e(0x198)](_0x809f3d){const _0x5ea4cb=_0x3fea2e;return Array[_0x5ea4cb(0x199)](_0x809f3d[_0x5ea4cb(0x18a)]())[_0x5ea4cb(0x1dc)](_0x30443c=>this[_0x5ea4cb(0x178)](_0x30443c))[_0x5ea4cb(0x1d9)](_0x158c29=>null!==_0x158c29);}async[_0x3fea2e(0x1d7)](_0x52cf08,_0x68e6f0,_0x2afce9=_0x448885[_0x3fea2e(0x1cc)]){const _0x19a264=_0x3fea2e,_0x19f7a0=_0x19a264(0x1b0)+_0x145148();this[_0x19a264(0x162)](_0x19f7a0);try{await Promise[_0x19a264(0x1a7)](_0x52cf08[_0x19a264(0x1dc)](async _0x1bf053=>{const _0x2b410b=_0x19a264,_0x34dcd3=_0x2b410b(0x184)+_0x145148(),_0x553f53=_0x572261(_0x1bf053[_0x2b410b(0x1d6)]);try{this[_0x2b410b(0x1bd)]({'type':_0x2afce9,'label':_0x68e6f0?.[_0x2b410b(0x151)]||_0x553f53,'uiId':_0x34dcd3,'resourceId':_0x68e6f0?.[_0x2b410b(0x1c2)]},!0x0);const _0x537615=this[_0x2b410b(0x1c5)][_0x2b410b(0x1a4)](this[_0x2b410b(0x188)],_0x1bf053,_0x68e6f0);this[_0x2b410b(0x171)][_0x2b410b(0x16b)](_0x34dcd3,_0x537615[_0x2b410b(0x1a1)]);const {id:_0x1bd344}=await _0x537615[_0x2b410b(0x1b1)]();this[_0x2b410b(0x171)][_0x2b410b(0x1ac)](_0x34dcd3),this[_0x2b410b(0x18d)]({'type':_0x2afce9,'id':_0x1bd344,'label':_0x68e6f0?.[_0x2b410b(0x151)]||_0x553f53,'uiId':_0x34dcd3,'resourceId':_0x68e6f0?.[_0x2b410b(0x1c2)]},!0x1);}catch(_0x4ae78e){this[_0x2b410b(0x171)][_0x2b410b(0x1ac)](_0x34dcd3);if(!(_0x4ae78e instanceof _0x1e13a2&&_0x4ae78e[_0x2b410b(0x182)][_0x2b410b(0x1a6)](_0x2b410b(0x15e)))){const _0x51f340=_0x1083a4[_0x2b410b(0x164)](_0x4ae78e[_0x2b410b(0x186)])||_0x2b410b(0x1bb),_0x2ccff4=new _0x1e13a2(_0x51f340,null,{'fileName':_0x553f53,..._0x4ae78e});_0x2ccff4[_0x2b410b(0x1d1)]=_0x4ae78e[_0x2b410b(0x1d1)],this[_0x2b410b(0x195)](_0x2b410b(0x173),{'error':_0x2ccff4});}this[_0x2b410b(0x17f)](_0x34dcd3);}}));}finally{this[_0x19a264(0x169)](_0x19f7a0);}}[_0x3fea2e(0x193)](_0x3d2593){const _0x16c6d3=_0x3fea2e;if(this[_0x16c6d3(0x1cd)]()||!this[_0x16c6d3(0x172)][_0x16c6d3(0x1d3)][_0x16c6d3(0x18b)])return;const _0x187fe7={'type':_0x448885[_0x16c6d3(0x166)],'uiId':_0x16c6d3(0x192),'label':_0x3d2593,'isReadOnly':this[_0x16c6d3(0x1a3)][_0x16c6d3(0x1ad)](_0x16c6d3(0x192)),'hidden':this[_0x16c6d3(0x1a3)][_0x16c6d3(0x1ad)](_0x16c6d3(0x192))};this[_0x16c6d3(0x1bd)](_0x187fe7);}async[_0x3fea2e(0x15c)](_0x3ff43d,_0x3d081d,_0x250766,_0x360925){const _0x151192=_0x3fea2e,_0x136921=this[_0x151192(0x165)][_0x151192(0x164)](_0x151192(0x192));if(_0x136921&&_0x3ff43d){_0x136921[_0x151192(0x157)]=_0x360925?_0x360925[_0x151192(0x1dc)](_0x5a1cff=>({'start':_0x5a1cff[_0x151192(0x156)],'end':_0x5a1cff[_0x151192(0x1a9)]})):[];try{if(_0x136921[_0x151192(0x1a2)]===_0x3d081d)return;const {id:_0x3fb1e8}=await this[_0x151192(0x1c5)][_0x151192(0x1a8)](this[_0x151192(0x188)],_0x3ff43d,{'version':_0x3d081d,'sessionId':_0x250766})[_0x151192(0x1b1)]();_0x136921['id']=_0x3fb1e8,_0x136921[_0x151192(0x154)]=_0x3ff43d,_0x136921[_0x151192(0x1a2)]=_0x3d081d,_0x136921[_0x151192(0x1ab)]=_0x250766;}catch(_0x313cb6){const _0x53ac07=new _0x1e13a2(_0x151192(0x14e),null);_0x53ac07[_0x151192(0x1d1)]=_0x313cb6[_0x151192(0x1d1)],this[_0x151192(0x195)](_0x151192(0x173),{'error':_0x53ac07});}}}[_0x3fea2e(0x1df)](_0x58cdd5){const _0x225209=_0x3fea2e;this[_0x225209(0x1bd)]({'type':_0x448885[_0x225209(0x1bf)],'label':_0x58cdd5,'uiId':_0x225209(0x157),'content':_0x58cdd5});}[_0x3fea2e(0x19a)](){const _0x5d95ed=_0x3fea2e;this[_0x5d95ed(0x17f)](_0x5d95ed(0x157));}async[_0x3fea2e(0x1aa)](_0xf6f1e6,_0x3dfdae){const _0x4a88d1=_0x3fea2e,_0x1db598=_0x4a88d1(0x1be)+_0x145148();this[_0x4a88d1(0x162)](_0x1db598);const _0x1c7f50=_0x4a88d1(0x1be)+_0x145148();try{this[_0x4a88d1(0x1bd)]({'type':_0x448885[_0x4a88d1(0x19c)],'label':_0x3dfdae?.[_0x4a88d1(0x151)]||_0xf6f1e6,'uiId':_0x1c7f50,'resourceId':_0x3dfdae?.[_0x4a88d1(0x1c2)]},!0x0);const _0x303144=this[_0x4a88d1(0x1c5)][_0x4a88d1(0x168)](this[_0x4a88d1(0x188)],_0xf6f1e6,_0x3dfdae);this[_0x4a88d1(0x171)][_0x4a88d1(0x16b)](_0x1c7f50,_0x303144[_0x4a88d1(0x1a1)]);const {id:_0x2b73c8}=await _0x303144[_0x4a88d1(0x1b1)]();this[_0x4a88d1(0x171)][_0x4a88d1(0x1ac)](_0x1c7f50),this[_0x4a88d1(0x18d)]({'type':_0x448885[_0x4a88d1(0x19c)],'id':_0x2b73c8,'label':_0x3dfdae?.[_0x4a88d1(0x151)]||_0xf6f1e6,'uiId':_0x1c7f50,'resourceId':_0x3dfdae?.[_0x4a88d1(0x1c2)]},!0x1);}catch(_0x52127f){this[_0x4a88d1(0x171)][_0x4a88d1(0x1ac)](_0x1c7f50),(_0x52127f[_0x4a88d1(0x182)][_0x4a88d1(0x1a6)](_0x4a88d1(0x15e))||this[_0x4a88d1(0x195)](_0x4a88d1(0x173),{'error':new _0x1e13a2(_0x4a88d1(0x167),this,{'url':_0xf6f1e6,'originalError':_0x52127f}),'url':_0xf6f1e6}),this[_0x4a88d1(0x17f)](_0x1c7f50));}finally{this[_0x4a88d1(0x169)](_0x1db598);}}[_0x3fea2e(0x187)](_0xe0d14){const _0x2c2067=_0x3fea2e;_0xe0d14['id']=_0xe0d14['id']??_0x145148()[_0x2c2067(0x19f)](0x0,0x15),this[_0x2c2067(0x165)][_0x2c2067(0x16b)](_0xe0d14[_0x2c2067(0x160)],_0xe0d14),this[_0x2c2067(0x195)](_0x2c2067(0x16f),{'contextItem':_0xe0d14,'isLoading':!0x1});}async[_0x3fea2e(0x16e)](_0x8ad087,_0x3ecb04,_0x201f3c){const _0x5b5669=_0x3fea2e,_0x345824=this[_0x5b5669(0x172)][_0x5b5669(0x158)][_0x5b5669(0x1db)](_0x169c15=>_0x169c15['id']===_0x8ad087);if(!_0x345824)return this[_0x5b5669(0x195)](_0x5b5669(0x173),{'error':new _0x1e13a2(_0x5b5669(0x15d),this,{'sourceId':_0x8ad087}),'sourceId':_0x8ad087}),[];try{const _0x1c0b91=(await _0x345824[_0x5b5669(0x16d)](_0x3ecb04))[_0x5b5669(0x1dc)](_0x12737b=>{const _0x5e6fc5=_0x5b5669,_0x155f0d=this[_0x5e6fc5(0x163)](_0x12737b['id']);return{..._0x12737b,'isInContext':_0x155f0d};});return _0x345824[_0x5b5669(0x14f)]=_0x1c0b91,this[_0x5b5669(0x195)](_0x5b5669(0x19b),{'sourceId':_0x8ad087,'source':_0x345824,'resources':_0x1c0b91,'uid':_0x201f3c}),_0x1c0b91;}catch(_0x311dce){return this[_0x5b5669(0x195)](_0x5b5669(0x173),{'error':new _0x1e13a2(_0x5b5669(0x1d8),this,{'sourceId':_0x8ad087,'originalError':_0x311dce}),'sourceId':_0x8ad087,'sourceLabel':_0x345824[_0x5b5669(0x151)]}),[];}}async[_0x3fea2e(0x181)](_0x45877f,_0x38c9ee){const _0x435b12=_0x3fea2e;if(this[_0x435b12(0x163)](_0x38c9ee['id']))return;let _0x865571=_0x38c9ee[_0x435b12(0x16a)];if(!_0x865571&&_0x45877f[_0x435b12(0x197)])try{_0x865571=await _0x45877f[_0x435b12(0x197)](_0x38c9ee['id']);}catch(_0x1f74de){return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17c),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'originalError':_0x1f74de}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});}if(_0x865571)switch(_0x38c9ee[_0x435b12(0x159)]){case _0x448885[_0x435b12(0x19c)]:if(_0x435b12(0x1c4)!=typeof _0x865571)return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17e),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'expectedType':_0x435b12(0x1c4),'actualType':typeof _0x865571}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});await this[_0x435b12(0x1aa)](_0x865571,{'label':_0x38c9ee[_0x435b12(0x151)],'resourceId':_0x38c9ee['id']});break;case _0x448885[_0x435b12(0x1cc)]:if(!(_0x865571 instanceof File))return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17e),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'expectedType':_0x435b12(0x1c7),'actualType':typeof _0x865571}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});await this[_0x435b12(0x1d7)]([_0x865571],{'label':_0x38c9ee[_0x435b12(0x151)],'resourceId':_0x38c9ee['id']});break;case _0x448885[_0x435b12(0x1cf)]:if(_0x435b12(0x1b8)!=typeof _0x865571||!(_0x435b12(0x154)in _0x865571)||!(_0x435b12(0x159)in _0x865571))return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17e),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'expectedType':_0x435b12(0x1d4),'actualType':typeof _0x865571}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});_0x865571=AIChatContext[_0x435b12(0x1d2)](_0x865571,_0x38c9ee[_0x435b12(0x151)]),await this[_0x435b12(0x1d7)]([_0x865571],{'label':_0x38c9ee[_0x435b12(0x151)],'resourceId':_0x38c9ee['id']},_0x448885[_0x435b12(0x1cf)]);break;case _0x448885[_0x435b12(0x1c9)]:break;default:this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x1d5),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'resourceType':_0x38c9ee[_0x435b12(0x159)]}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});}else this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x14d),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});}static[_0x3fea2e(0x1d2)](_0x5a0e02,_0x4b3b8d){const _0x122141=_0x3fea2e;switch(_0x5a0e02[_0x122141(0x159)]){case _0x490edc[_0x122141(0x1d0)]:return new File([_0x5a0e02[_0x122141(0x154)]],_0x4b3b8d,{'type':_0x122141(0x17b)});case _0x490edc[_0x122141(0x1e1)]:return new File([_0x5a0e02[_0x122141(0x154)]],_0x4b3b8d,{'type':_0x122141(0x174)});default:return new File([_0x5a0e02[_0x122141(0x154)]],_0x4b3b8d,{'type':_0x122141(0x1e0)});}}static[_0x3fea2e(0x178)](_0x47acc2){const _0x4de578=_0x3fea2e;switch(_0x47acc2[_0x4de578(0x159)]){case _0x448885[_0x4de578(0x1cc)]:return{'type':_0x448885[_0x4de578(0x1cc)],'id':_0x47acc2['id']};case _0x448885[_0x4de578(0x19c)]:return{'type':_0x448885[_0x4de578(0x19c)],'id':_0x47acc2['id']};case _0x448885[_0x4de578(0x166)]:return{'type':_0x448885[_0x4de578(0x166)],'id':_0x47acc2['id'],..._0x47acc2[_0x4de578(0x157)]?.[_0x4de578(0x1a5)]&&{'selection':_0x47acc2[_0x4de578(0x157)]}};case _0x448885[_0x4de578(0x1cf)]:return{'type':_0x448885[_0x4de578(0x1cc)],'id':_0x47acc2['id']};case _0x448885[_0x4de578(0x1c9)]:{const _0x5285ef=_0x47acc2;return{'type':_0x448885[_0x4de578(0x1c9)],'mcpServerName':_0x5285ef[_0x4de578(0x18e)],'toolName':_0x5285ef[_0x4de578(0x1b6)],'data':_0x5285ef[_0x4de578(0x16a)],'id':_0x5285ef['id']};}default:return null;}}[_0x3fea2e(0x1bd)](_0x3aed1e,_0x35b846=!0x1){const _0x27dde9=_0x3fea2e;if(this[_0x27dde9(0x165)][_0x27dde9(0x16b)](_0x3aed1e[_0x27dde9(0x160)],_0x3aed1e),_0x3aed1e[_0x27dde9(0x1e2)]||this[_0x27dde9(0x195)](_0x27dde9(0x16f),{'contextItem':_0x3aed1e,'isLoading':_0x35b846}),_0x27dde9(0x192)===_0x3aed1e[_0x27dde9(0x160)]&&this[_0x27dde9(0x1cb)](),_0x3aed1e[_0x27dde9(0x1c2)]){const _0x174bed=this[_0x27dde9(0x15a)](_0x3aed1e[_0x27dde9(0x1c2)]);_0x174bed&&_0x174bed[_0x27dde9(0x170)](_0x26ec3d=>{const _0x5026ee=_0x27dde9;this[_0x5026ee(0x194)](_0x26ec3d,_0x3aed1e[_0x5026ee(0x1c2)],!0x0);});}}[_0x3fea2e(0x17f)](_0x24879d){const _0x4661b0=_0x3fea2e,_0x17b84e=this[_0x4661b0(0x165)][_0x4661b0(0x164)](_0x24879d),_0x271748=this[_0x4661b0(0x171)][_0x4661b0(0x164)](_0x24879d);if(_0x271748&&(_0x271748[_0x4661b0(0x180)](),this[_0x4661b0(0x171)][_0x4661b0(0x1ac)](_0x24879d)),_0x17b84e?.[_0x4661b0(0x1c2)]){const _0x3773ed=this[_0x4661b0(0x15a)](_0x17b84e[_0x4661b0(0x1c2)]);_0x3773ed&&_0x3773ed[_0x4661b0(0x170)](_0x132cc1=>{const _0x5ebea7=_0x4661b0;this[_0x5ebea7(0x194)](_0x132cc1,_0x17b84e[_0x5ebea7(0x1c2)],!0x1);});}this[_0x4661b0(0x165)][_0x4661b0(0x1ac)](_0x24879d),this[_0x4661b0(0x195)](_0x4661b0(0x1a0),{'uiId':_0x24879d,'type':_0x17b84e?.[_0x4661b0(0x159)]}),_0x4661b0(0x192)===_0x24879d&&this[_0x4661b0(0x1cb)]();}[_0x3fea2e(0x18d)](_0x518d93,_0x209321){const _0x28b18a=_0x3fea2e;if(this[_0x28b18a(0x165)][_0x28b18a(0x1ad)](_0x518d93[_0x28b18a(0x160)])&&(this[_0x28b18a(0x165)][_0x28b18a(0x16b)](_0x518d93[_0x28b18a(0x160)],_0x518d93),this[_0x28b18a(0x195)](_0x28b18a(0x189),{'contextItem':_0x518d93,'isLoading':_0x209321}),_0x518d93[_0x28b18a(0x1c2)])){const _0x166b3b=this[_0x28b18a(0x15a)](_0x518d93[_0x28b18a(0x1c2)]);_0x166b3b&&_0x166b3b[_0x28b18a(0x170)](_0x5634e0=>{const _0x28ea49=_0x28b18a;this[_0x28ea49(0x194)](_0x5634e0,_0x518d93[_0x28ea49(0x1c2)],!0x0);});}}[_0x3fea2e(0x1af)](_0x147d3f){const _0x49b2c2=_0x3fea2e;this[_0x49b2c2(0x1a3)][_0x49b2c2(0x16b)](_0x147d3f[_0x49b2c2(0x160)],_0x147d3f);}[_0x3fea2e(0x18f)](){const _0x13b53c=_0x3fea2e;this[_0x13b53c(0x172)]={'document':{'enabled':!0x1!==this[_0x13b53c(0x19d)]?.[_0x13b53c(0x1d3)]?.[_0x13b53c(0x18b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13b53c(0x19d)]?.[_0x13b53c(0x176)]?.[_0x13b53c(0x18b)]},'files':{'enabled':!0x1!==this[_0x13b53c(0x19d)]?.[_0x13b53c(0x15f)]?.[_0x13b53c(0x18b)]},'sources':this[_0x13b53c(0x1ae)](),'customItems':this[_0x13b53c(0x19d)]?.[_0x13b53c(0x1ce)]?.[_0x13b53c(0x1dc)](_0x269bdf=>({..._0x269bdf,'enabled':!0x0}))??[]},this[_0x13b53c(0x195)](_0x13b53c(0x18c),{'options':this[_0x13b53c(0x172)]});}[_0x3fea2e(0x1ae)](){const _0x400e89=_0x3fea2e;return this[_0x400e89(0x19d)]?.[_0x400e89(0x158)]?.[_0x400e89(0x1dc)](_0xd580cc=>({..._0xd580cc,'resources':[]}))??[];}[_0x3fea2e(0x1cb)](){const _0xc87528=_0x3fea2e,_0x4cafa2=this[_0xc87528(0x1cd)]()||this[_0xc87528(0x1dd)]();this[_0xc87528(0x172)][_0xc87528(0x1d3)][_0xc87528(0x161)]=_0x4cafa2,this[_0xc87528(0x195)](_0xc87528(0x18c),{'options':this[_0xc87528(0x172)]});}[_0x3fea2e(0x163)](_0x11a9f6){const _0x4e5eb2=_0x3fea2e;for(const _0x57ae63 of this[_0x4e5eb2(0x165)][_0x4e5eb2(0x18a)]())if(_0x57ae63[_0x4e5eb2(0x1c2)]===_0x11a9f6)return!0x0;for(const _0x3c9024 of this[_0x4e5eb2(0x1a3)][_0x4e5eb2(0x18a)]())if(_0x3c9024[_0x4e5eb2(0x1c2)]===_0x11a9f6)return!0x0;return!0x1;}[_0x3fea2e(0x15a)](_0x1ad180){const _0x49eb63=_0x3fea2e,_0x5ec430=[];for(const _0x121bb3 of this[_0x49eb63(0x172)][_0x49eb63(0x158)]){_0x121bb3[_0x49eb63(0x14f)][_0x49eb63(0x1db)](_0x3a2248=>_0x3a2248['id']===_0x1ad180)&&_0x5ec430[_0x49eb63(0x16c)](_0x121bb3['id']);}return 0x0===_0x5ec430[_0x49eb63(0x1a5)]?null:_0x5ec430;}[_0x3fea2e(0x194)](_0x3e63ad,_0x1e696a,_0x115c95){const _0x1b45cf=_0x3fea2e,_0x1447c2=this[_0x1b45cf(0x172)][_0x1b45cf(0x158)][_0x1b45cf(0x1db)](_0x9711ba=>_0x9711ba['id']===_0x3e63ad);if(!_0x1447c2)return;const _0x3398a1=_0x1447c2[_0x1b45cf(0x14f)][_0x1b45cf(0x1db)](_0x1b5a79=>_0x1b5a79['id']===_0x1e696a);_0x3398a1&&(_0x3398a1[_0x1b45cf(0x19e)]=_0x115c95,this[_0x1b45cf(0x195)](_0x1b45cf(0x1bc),{'sourceId':_0x3e63ad,'resourceId':_0x1e696a,'isInContext':_0x115c95}));}[_0x3fea2e(0x162)](_0x2ef528){const _0x53810b=_0x3fea2e;this[_0x53810b(0x190)][_0x53810b(0x16b)](_0x2ef528,!0x0),this[_0x53810b(0x190)][_0x53810b(0x196)]&&this[_0x53810b(0x195)](_0x53810b(0x152),{'isUploadInProgress':!0x0});}[_0x3fea2e(0x169)](_0x20c5c4){const _0x771d96=_0x3fea2e;this[_0x771d96(0x190)][_0x771d96(0x1ac)](_0x20c5c4),0x0===this[_0x771d96(0x190)][_0x771d96(0x196)]&&this[_0x771d96(0x195)](_0x771d96(0x152),{'isUploadInProgress':!0x1});}}function _0x52cd(){const _0xea815b=['size','getData','mapContextItemsToRequestData','from','removeSelectionFromContext','sourceResourcesLoaded','URL','_config','isInContext','substring','contextItemRemoved','abortController','version','_conversationContextItems','uploadFile','length','startsWith','all','uploadDocument','end','addUrlToContext','sessionId','delete','has','_getCustomSourcesInitialState','_addToConversationContextItem','files-','getId','354uSeaHJ','getDocument','getPendingContextItems','287645NXIVZz','toolName','712690EywiwO','object','init','_createContextItemFromContent','ai-chat-file-upload-failed','resourceStateChanged','_addContextItem','url-','SELECTION','458557yHOcyJ','getSentContextItems','resourceId','attributes','string','_connector','5930SWweoH','File','136BOSejl','TOOL','1821JeTXlZ','_toggleAddCurrentDocumentOptionVisibility','FILE','isCurrentDocumentInContext','customItems','TEXT','MARKDOWN','stack','_convertTextResourceToFile','document','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-unsupported-type','name','addFilesToContext','ai-chat-source-resources-load-failed','filter','109395SLuDit','find','map','isCurrentDocumentInConversation','isSelectionInContext','addSelectionToContext','text/plain','HTML','hidden','contextSent','ai-chat-resource-no-data','ai-chat-document-upload-failed','resources','addToConversationContext','label','uploadProgressChanged','clearPendingContextItems','content','7qKcNqI','start','selection','sources','type','_findSourceIdsByResourceId','removeFromContext','updateCurrentDocument','ai-chat-source-not-found','ai-request-aborted','files','uiId','isHidden','_startUploadOperation','_isResourceInContext','get','_pendingContextItems','DOCUMENT','ai-chat-url-upload-failed','uploadUrl','_finishUploadOperation','data','set','push','getResources','loadSourceResources','contextItemAdded','forEach','_ongoingUploads','_addContextOptionsState','error','text/html','Current\x20document','urls','fetchDocument','_mapContextItemToRequestData','992PhhIBI','populateFromMessage','text/markdown','ai-chat-resource-load-failed','324dApulY','ai-chat-context-invalid-data','_removeContextItem','abort','addResourceToContext','message','isReadOnly','file-','891330THIEHt','code','addToolItemToContext','_ownerId','contextItemLoadingEnded','values','enabled','addContextOptionsChanged','_finishContextItemLoading','mcpServerName','_setAddContextOptionsDefaultState','_ongoingUploadOperations','url','current-document','addCurrentDocumentToContext','_updateResourceInContextState','fire'];_0x52cd=function(){return _0xea815b;};return _0x52cd();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4dc5c4=_0x3c7b;(function(_0x422e42,_0x3d2f2f){const _0x57145d=_0x3c7b,_0xe9712a=_0x422e42();while(!![]){try{const _0x14dd69=parseInt(_0x57145d(0x1f9))/0x1+parseInt(_0x57145d(0x21a))/0x2*(-parseInt(_0x57145d(0x20e))/0x3)+parseInt(_0x57145d(0x1fa))/0x4+-parseInt(_0x57145d(0x259))/0x5+-parseInt(_0x57145d(0x245))/0x6+-parseInt(_0x57145d(0x257))/0x7+parseInt(_0x57145d(0x21f))/0x8;if(_0x14dd69===_0x3d2f2f)break;else _0xe9712a['push'](_0xe9712a['shift']());}catch(_0x462fbf){_0xe9712a['push'](_0xe9712a['shift']());}}}(_0x3759,0xeef19));import{CKEditorError as _0x30fc02,EmitterMixin as _0x3115ec,logWarning as _0x52680a}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x582dcd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x40ebe5,AI_CONTEXT_MODEL_EVENT_NAMES as _0x6f40a4}from'./aichatcontext.js';import{AICapabilities as _0x48ddd8,CAPABILITIES_MODEL_EVENT_NAMES as _0x286034}from'../../aicore/model/aicapabilities.js';function _0x3759(){const _0x65ea76=['1014781hfbvRJ','2784676jvqLsT','code','conversationStarted','conversationInitialized','currentReply','start','modification','error','lastInteraction','type','delegate','loadSourceResources','user','_extractContextItems','interactions','getConversation','ai-chat-conversation-already-started','ai-chat-handle-user-conversation-not-initialized','getPendingContextItems','modelSelected','222lGDDVi','push','chatContext','hasOwn','isStarted','addFilesToContext','getAvailableModels','getEditor','ai-chat-conversation-set-model-not-available','isCurrentDocumentInConversation','removeFromContext','webSearch','47462trjPzg','addToConversationContext','ai-chat-conversation-init-failed','updateCurrentDocument','indexOf','20670176pripyw','removeSelectionFromContext','updateCurrentDocumentInContext','ai-chat-conversation-init-from-id-failed','getMessages','options','isAvailable','handleUserInteraction','url','group','splice','getCapabilitiesConfig','parse','reset','removeInteraction','interactionCreated','fetchConversation','destroy','model','setWebSearch','get','content','find','ai-chat-handle-user-interaction-already-in-progress','stack','assistant','addUrlToContext','addToolItemToContext','init','addSelectionToContext','mcp-tool-result','_handleToolResultData','createReply','message','selectedModelId','isFromHistory','set','length','5451414sFvzFq','createInteraction','selectedModel','toggleReasoning','attributes','setReasoning','reasoning','toolName','fetchConversationMessages','getAll','ai-chat-conversation-set-model-null','ai-chat-conversation-start-failed','conversationId','toggleWebSearch','isSelectionInContext','load','setConversationTitle','isCurrentDocumentInContext','3053309GFncoh','capabilities','1075795HiHVcr','addCurrentDocumentToContext','getInteraction','role','sessionId','getModel','title','connector','appendContent','populateFromMessage','getCurrentDocumentContext','setModel','chatModels','contextItems','_processMessagesToInteractions','addResourceToContext','fire','toLowerCase','prompt','currentInteraction','ai-chat-conversation-start-no-model-selected','sources','text','chatCapabilities','ai-chat-handle-user-interaction-start-failed','startConversation','getDocumentContext','stop'];_0x3759=function(){return _0x65ea76;};return _0x3759();}import{AIChatInteraction as _0x57978a}from'./aichatinteraction.js';import{errorsMap as _0x212693}from'../../errorsmap.js';function _0x3c7b(_0x3ff803,_0x5bccf7){const _0x375998=_0x3759();return _0x3c7b=function(_0x3c7b76,_0x312bd4){_0x3c7b76=_0x3c7b76-0x1f0;let _0x55c860=_0x375998[_0x3c7b76];return _0x55c860;},_0x3c7b(_0x3ff803,_0x5bccf7);}export class AIChatConversation extends _0x3115ec(){['id'];[_0x4dc5c4(0x212)]=!0x1;[_0x4dc5c4(0x242)];[_0x4dc5c4(0x208)]=[];[_0x4dc5c4(0x1f0)];[_0x4dc5c4(0x247)];[_0x4dc5c4(0x260)];[_0x4dc5c4(0x224)];constructor(_0x53c80b){const _0x523b6c=_0x4dc5c4;super(),this[_0x523b6c(0x224)]=_0x53c80b,this[_0x523b6c(0x260)]=_0x53c80b[_0x523b6c(0x260)],this[_0x523b6c(0x265)]=_0x53c80b[_0x523b6c(0x265)],this['id']=_0x53c80b[_0x523b6c(0x251)],this[_0x523b6c(0x242)]=_0x53c80b[_0x523b6c(0x242)];}async[_0x4dc5c4(0x23b)](_0x4fd69b){const _0x3cf830=_0x4dc5c4;try{this[_0x3cf830(0x210)]=new _0x40ebe5({'connector':this[_0x3cf830(0x260)],'config':_0x4fd69b,'ownerId':this['id']}),this[_0x3cf830(0x210)][_0x3cf830(0x204)](..._0x6f40a4)['to'](this),this[_0x3cf830(0x210)][_0x3cf830(0x23b)](),this[_0x3cf830(0x1f4)]=new _0x48ddd8(),this[_0x3cf830(0x1f4)][_0x3cf830(0x204)](..._0x286034)['to'](this),this[_0x3cf830(0x1f4)][_0x3cf830(0x23b)]();const _0x107f59=await this[_0x3cf830(0x265)][_0x3cf830(0x214)]();this[_0x3cf830(0x269)](_0x3cf830(0x1fd),{'availableModels':_0x107f59});const _0x297eb8=await this[_0x3cf830(0x265)][_0x3cf830(0x25e)](this[_0x3cf830(0x224)][_0x3cf830(0x241)]);_0x297eb8&&await this[_0x3cf830(0x264)](_0x297eb8);}catch(_0x454b01){const _0x24e739=new _0x30fc02(_0x3cf830(0x21c),null,{'message':_0x454b01[_0x3cf830(0x240)]||_0x454b01});_0x24e739[_0x3cf830(0x237)]=_0x454b01[_0x3cf830(0x237)],this[_0x3cf830(0x269)](_0x3cf830(0x201),{'error':_0x24e739});}}async[_0x4dc5c4(0x1ff)](){const _0x3d86b5=_0x4dc5c4;if(this[_0x3d86b5(0x212)])throw new _0x30fc02(_0x3d86b5(0x20a),null,{'conversation':this});if(!this[_0x3d86b5(0x247)])throw new _0x30fc02(_0x3d86b5(0x1f1),null,{'conversation':this});try{const {id:_0x12f989}=await this[_0x3d86b5(0x260)][_0x3d86b5(0x1f6)](this['id'],this[_0x3d86b5(0x224)][_0x3d86b5(0x228)])[_0x3d86b5(0x209)]();this['id']=_0x12f989,this[_0x3d86b5(0x212)]=!0x0,this[_0x3d86b5(0x269)](_0x3d86b5(0x1fc),{'conversationId':this['id'],'selectedModel':this[_0x3d86b5(0x247)]});}catch(_0x5335cd){const _0x17e87d=new _0x30fc02(_0x3d86b5(0x250),null,{'message':_0x5335cd[_0x3d86b5(0x240)],'conversationId':this['id']});throw _0x17e87d[_0x3d86b5(0x237)]=_0x5335cd[_0x3d86b5(0x237)],this[_0x3d86b5(0x269)](_0x3d86b5(0x201),{'error':_0x17e87d}),_0x17e87d;}}async[_0x4dc5c4(0x254)](_0x1ecaac,_0x3d19a2){const _0x3b8a70=_0x4dc5c4;try{const _0x26c101=await this[_0x3b8a70(0x260)][_0x3b8a70(0x22f)](_0x1ecaac)[_0x3b8a70(0x209)](),_0x50bdb1=await this[_0x3b8a70(0x260)][_0x3b8a70(0x24d)](_0x1ecaac)[_0x3b8a70(0x223)](),_0x37876c=_0x50bdb1[0x0][_0x3b8a70(0x231)];this[_0x3b8a70(0x212)]=!0x0,this['id']=_0x26c101['id'],_0x3b8a70(0x25f)in _0x26c101?this[_0x3b8a70(0x269)](_0x3b8a70(0x255),_0x26c101[_0x3b8a70(0x25f)],!0x0):this[_0x3b8a70(0x269)](_0x3b8a70(0x255),'',!0x0);const _0xee36f1=(await this[_0x3b8a70(0x265)][_0x3b8a70(0x24e)]())[_0x3b8a70(0x235)](_0x491649=>_0x491649['id'][_0x3b8a70(0x26a)]()===_0x37876c[_0x3b8a70(0x26a)]());return this[_0x3b8a70(0x247)]=_0xee36f1,this[_0x3b8a70(0x269)](_0x3b8a70(0x20d),{'selectedModel':_0xee36f1,'isDisabled':!0x0}),await this[_0x3b8a70(0x267)](_0x50bdb1,_0x3d19a2,_0x37876c),this[_0x3b8a70(0x1f0)]=void 0x0,this;}catch(_0x23bf3d){const _0xb59be=new _0x30fc02(_0x3b8a70(0x222),null,{'message':_0x23bf3d[_0x3b8a70(0x240)],'conversationId':_0x1ecaac});throw _0xb59be[_0x3b8a70(0x237)]=_0x23bf3d[_0x3b8a70(0x237)],this[_0x3b8a70(0x269)](_0x3b8a70(0x201),{'error':_0xb59be}),_0xb59be;}}async[_0x4dc5c4(0x267)](_0x4fcd68,_0x248665,_0x18bfca){const _0x582ec3=_0x4dc5c4;let _0x55fcaf;for(const _0x181611 of _0x4fcd68)if(_0x582ec3(0x206)===_0x181611[_0x582ec3(0x25c)]){const _0x2bd3f4=await this[_0x582ec3(0x207)](_0x181611),_0x270931={'isReasoningEnabled':Object[_0x582ec3(0x211)](_0x181611[_0x582ec3(0x258)],_0x582ec3(0x24b)),'isWebSearchEnabled':Object[_0x582ec3(0x211)](_0x181611[_0x582ec3(0x258)],_0x582ec3(0x219))};_0x55fcaf=this[_0x582ec3(0x246)]({'userMessage':_0x181611[_0x582ec3(0x26b)],'contextItems':_0x2bd3f4,'capabilities':_0x270931,'modelId':_0x18bfca,'attributes':_0x181611[_0x582ec3(0x249)]}),this[_0x582ec3(0x1f0)]=_0x55fcaf,this[_0x582ec3(0x210)][_0x582ec3(0x21b)](this[_0x582ec3(0x1f0)][_0x582ec3(0x266)]);}else{if(_0x582ec3(0x238)===_0x181611[_0x582ec3(0x25c)]&&_0x55fcaf){const _0xb123d9=[];for(const _0x2ffd00 of _0x181611[_0x582ec3(0x234)])switch(_0x2ffd00[_0x582ec3(0x203)]){case _0x582ec3(0x1f3):case _0x582ec3(0x200):{const _0x3a1afa=_0x55fcaf[_0x582ec3(0x1f7)]()?.[_0x582ec3(0x25d)]!==_0x248665;_0x55fcaf[_0x582ec3(0x1fe)]=_0x55fcaf[_0x582ec3(0x23f)]({'type':_0x2ffd00[_0x582ec3(0x203)],'isDone':!0x0,'interactionId':_0x55fcaf['id'],'areActionsDisabled':_0x3a1afa}),_0x55fcaf[_0x582ec3(0x1fe)][_0x582ec3(0x261)](_0x2ffd00[_0x582ec3(0x234)]),_0xb123d9[_0x582ec3(0x244)]>0x0&&(_0x55fcaf[_0x582ec3(0x1fe)][_0x582ec3(0x1f2)]=_0xb123d9[_0x582ec3(0x229)](0x0));break;}case _0x582ec3(0x227):_0xb123d9[_0x582ec3(0x20f)](_0x2ffd00);break;case _0x582ec3(0x23d):{const {data:_0xe8dfe5,attributes:_0x53fd47}=JSON[_0x582ec3(0x22b)](_0x2ffd00[_0x582ec3(0x234)]);_0x55fcaf[_0x582ec3(0x23e)]({'toolName':_0x2ffd00[_0x582ec3(0x24c)],'data':_0xe8dfe5,'attributes':_0x53fd47});break;}}}}}async[_0x4dc5c4(0x207)](_0x2c373f){const _0x1f5c65=_0x4dc5c4,_0x58932e=new Map();if(!_0x2c373f[_0x1f5c65(0x234)])return _0x58932e;for(const _0x2dd44f of _0x2c373f[_0x1f5c65(0x234)]){const _0x4e97e4=await this[_0x1f5c65(0x210)][_0x1f5c65(0x262)](_0x2dd44f);_0x4e97e4&&_0x58932e[_0x1f5c65(0x243)](_0x4e97e4['id'],_0x4e97e4);}return _0x58932e;}async[_0x4dc5c4(0x226)]({userMessage:_0x32e24e,attributes:_0x507635}){const _0x51022a=_0x4dc5c4;if(!this[_0x51022a(0x212)])throw new _0x30fc02(_0x51022a(0x20b),null,{'conversation':this});if(this[_0x51022a(0x1f0)])throw new _0x30fc02(_0x51022a(0x236),null,{'conversation':this});try{const _0x4b71ba=this[_0x51022a(0x210)][_0x51022a(0x20c)](),_0x20cc93=this[_0x51022a(0x1f4)][_0x51022a(0x22a)](),_0x478d2c=this[_0x51022a(0x247)]['id'];this[_0x51022a(0x1f0)]=this[_0x51022a(0x246)]({'userMessage':_0x32e24e,'contextItems':_0x4b71ba,'capabilities':_0x20cc93,'modelId':_0x478d2c,'attributes':_0x507635}),await this[_0x51022a(0x1f0)][_0x51022a(0x1ff)](),this[_0x51022a(0x210)][_0x51022a(0x21b)](this[_0x51022a(0x1f0)][_0x51022a(0x266)]);}catch(_0x461196){if(_0x461196 instanceof _0x30fc02)this[_0x51022a(0x269)](_0x51022a(0x201),{'interactionId':this[_0x51022a(0x1f0)]?this[_0x51022a(0x1f0)]['id']:void 0x0,'error':_0x461196});else{const _0x5ae4b3=_0x212693[_0x51022a(0x233)](_0x461196[_0x51022a(0x1fb)])||_0x51022a(0x1f5);this[_0x51022a(0x269)](_0x51022a(0x201),{'interactionId':this[_0x51022a(0x1f0)]?this[_0x51022a(0x1f0)]['id']:void 0x0,'error':new _0x30fc02(_0x5ae4b3,null,{'error':_0x461196})});}}finally{this[_0x51022a(0x1f0)]?.[_0x51022a(0x1f8)](),this[_0x51022a(0x1f0)]=void 0x0;}}[_0x4dc5c4(0x246)]({userMessage:_0x29523d,contextItems:_0x2e1424,capabilities:_0xa6bb88,modelId:_0x50d5b1,attributes:_0x1f01ab}){const _0x20f8e0=_0x4dc5c4,_0x5a3d9d=new _0x57978a({'userMessage':_0x29523d,'contextItems':_0x2e1424,'capabilities':_0xa6bb88,'conversationId':this['id'],'connector':this[_0x20f8e0(0x260)],'editor':this[_0x20f8e0(0x224)][_0x20f8e0(0x215)]&&this[_0x20f8e0(0x224)][_0x20f8e0(0x215)](),'model':_0x50d5b1,'attributes':_0x1f01ab});return _0x5a3d9d[_0x20f8e0(0x204)](..._0x582dcd)['to'](this),this[_0x20f8e0(0x208)][_0x20f8e0(0x20f)](_0x5a3d9d),this[_0x20f8e0(0x269)](_0x20f8e0(0x22e),_0x5a3d9d),_0x5a3d9d;}[_0x4dc5c4(0x25b)](_0x2db809){const _0x117e89=_0x4dc5c4;return this[_0x117e89(0x208)][_0x117e89(0x235)](_0x5ddd6a=>_0x5ddd6a['id']===_0x2db809);}[_0x4dc5c4(0x22d)](_0x403758){const _0x456ee0=_0x4dc5c4,_0x140a38=this[_0x456ee0(0x25b)](_0x403758);_0x140a38&&(_0x140a38[_0x456ee0(0x230)](),this[_0x456ee0(0x208)][_0x456ee0(0x229)](this[_0x456ee0(0x208)][_0x456ee0(0x21e)](_0x140a38),0x1));}get[_0x4dc5c4(0x202)](){const _0x23eca1=_0x4dc5c4;return this[_0x23eca1(0x208)][this[_0x23eca1(0x208)][_0x23eca1(0x244)]-0x1];}[_0x4dc5c4(0x25a)](_0x1ed514){const _0x45ba9d=_0x4dc5c4;this[_0x45ba9d(0x210)][_0x45ba9d(0x25a)](_0x1ed514);}async[_0x4dc5c4(0x221)]({content:_0x39dc0e,version:_0x5ea340,sessionId:_0x3faf4f,selections:_0x3db1ac}){const _0x2de55f=_0x4dc5c4;await this[_0x2de55f(0x210)][_0x2de55f(0x21d)](_0x39dc0e,_0x5ea340,_0x3faf4f,_0x3db1ac);}[_0x4dc5c4(0x263)](){const _0x43b28e=_0x4dc5c4;return this[_0x43b28e(0x1f0)]?.[_0x43b28e(0x1f7)]()?.[_0x43b28e(0x234)]||'';}[_0x4dc5c4(0x23c)](_0x477ae4){const _0x2526d7=_0x4dc5c4;this[_0x2526d7(0x210)][_0x2526d7(0x23c)](_0x477ae4);}[_0x4dc5c4(0x220)](){const _0x334f49=_0x4dc5c4;this[_0x334f49(0x210)][_0x334f49(0x220)]();}[_0x4dc5c4(0x213)](_0x5d9627){const _0x3cb51b=_0x4dc5c4;this[_0x3cb51b(0x210)][_0x3cb51b(0x213)](_0x5d9627);}[_0x4dc5c4(0x239)](_0x1a40fd){const _0x41b03a=_0x4dc5c4;this[_0x41b03a(0x210)][_0x41b03a(0x239)](_0x1a40fd);}[_0x4dc5c4(0x23a)](_0x6478c){const _0x11c63a=_0x4dc5c4;this[_0x11c63a(0x210)][_0x11c63a(0x23a)](_0x6478c);}[_0x4dc5c4(0x268)](_0x8ad06b,_0x1048fc){const _0x9a1b5=_0x4dc5c4;this[_0x9a1b5(0x210)][_0x9a1b5(0x268)](_0x8ad06b,_0x1048fc);}[_0x4dc5c4(0x205)](_0x3a5380,_0x4e14a2,_0x48a4f2){const _0x5b62a4=_0x4dc5c4;return this[_0x5b62a4(0x210)][_0x5b62a4(0x205)](_0x3a5380,_0x4e14a2,_0x48a4f2);}[_0x4dc5c4(0x218)](_0x5e4bba){const _0x39b847=_0x4dc5c4;this[_0x39b847(0x210)][_0x39b847(0x218)](_0x5e4bba);}[_0x4dc5c4(0x232)](_0x5a5576){const _0x213777=_0x4dc5c4;this[_0x213777(0x1f4)][_0x213777(0x232)](_0x5a5576);}[_0x4dc5c4(0x252)](){const _0x53dfa8=_0x4dc5c4;this[_0x53dfa8(0x1f4)][_0x53dfa8(0x252)]();}[_0x4dc5c4(0x24a)](_0x164784){const _0x4b74e4=_0x4dc5c4;this[_0x4b74e4(0x1f4)][_0x4b74e4(0x24a)](_0x164784);}[_0x4dc5c4(0x248)](){const _0x4e33bf=_0x4dc5c4;this[_0x4e33bf(0x1f4)][_0x4e33bf(0x248)]();}[_0x4dc5c4(0x256)](){const _0x306fda=_0x4dc5c4;return this[_0x306fda(0x210)][_0x306fda(0x256)]();}[_0x4dc5c4(0x217)](){const _0x89ce49=_0x4dc5c4;return this[_0x89ce49(0x210)][_0x89ce49(0x217)]();}[_0x4dc5c4(0x253)](){const _0x335fc8=_0x4dc5c4;return this[_0x335fc8(0x210)][_0x335fc8(0x253)]();}async[_0x4dc5c4(0x264)](_0x4bbad1){const _0x49865d=_0x4dc5c4;_0x4bbad1?!0x1===await this[_0x49865d(0x265)][_0x49865d(0x225)](_0x4bbad1)&&(_0x52680a(_0x49865d(0x216),{'conversation':this,'model':_0x4bbad1}),_0x4bbad1=(await this[_0x49865d(0x265)][_0x49865d(0x214)]())[0x0]):(_0x52680a(_0x49865d(0x24f),{'conversation':this}),_0x4bbad1=(await this[_0x49865d(0x265)][_0x49865d(0x214)]())[0x0]),_0x4bbad1['id']!==this[_0x49865d(0x247)]?.['id']&&(this[_0x49865d(0x247)]=_0x4bbad1,this[_0x49865d(0x1f4)][_0x49865d(0x22c)](),this[_0x49865d(0x269)](_0x49865d(0x20d),{'selectedModel':_0x4bbad1}));}}
|
|
23
|
+
const _0x1baad4=_0x17f3;(function(_0x5ca3a4,_0x382aa9){const _0x3290f9=_0x17f3,_0x388d14=_0x5ca3a4();while(!![]){try{const _0x1e2e1b=parseInt(_0x3290f9(0xde))/0x1*(parseInt(_0x3290f9(0xdf))/0x2)+-parseInt(_0x3290f9(0xd0))/0x3+-parseInt(_0x3290f9(0x8a))/0x4+-parseInt(_0x3290f9(0xcd))/0x5+-parseInt(_0x3290f9(0xd9))/0x6*(-parseInt(_0x3290f9(0xca))/0x7)+parseInt(_0x3290f9(0xa5))/0x8+parseInt(_0x3290f9(0xcf))/0x9*(parseInt(_0x3290f9(0xe5))/0xa);if(_0x1e2e1b===_0x382aa9)break;else _0x388d14['push'](_0x388d14['shift']());}catch(_0x1fe712){_0x388d14['push'](_0x388d14['shift']());}}}(_0x52d4,0x1c6ab));import{CKEditorError as _0x2f3932,EmitterMixin as _0x5d4eae,logWarning as _0x170edb}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x9a1559}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4cd5dd,AI_CONTEXT_MODEL_EVENT_NAMES as _0x82ac4}from'./aichatcontext.js';import{AICapabilities as _0x250680,CAPABILITIES_MODEL_EVENT_NAMES as _0x296dac}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x41454a}from'./aichatinteraction.js';function _0x17f3(_0xfaaa53,_0x5ee57e){const _0x52d446=_0x52d4();return _0x17f3=function(_0x17f38c,_0x22a975){_0x17f38c=_0x17f38c-0x85;let _0x4d98b1=_0x52d446[_0x17f38c];return _0x4d98b1;},_0x17f3(_0xfaaa53,_0x5ee57e);}function _0x52d4(){const _0x203364=['startConversation','_processMessagesToInteractions','getEditor','options','toggleReasoning','currentInteraction','ai-chat-conversation-start-failed','ai-chat-handle-user-interaction-already-in-progress','266xBVQEm','getAvailableModels','code','571210wkdzzU','toolName','9dtyBlJ','221889tghLwn','ai-chat-conversation-init-from-id-failed','find','setWebSearch','selectedModelId','loadSourceResources','createReply','handleUserInteraction','getAll','2712LLhBss','isCurrentDocumentInConversation','isStarted','modelSelected','appendContent','29pVodda','8326agMPHb','length','attributes','stop','populateFromMessage','ai-chat-conversation-set-model-not-available','1980310SeuNvW','getPendingContextItems','text','ai-chat-conversation-set-model-null','toggleWebSearch','mcp-tool-result','group','indexOf','getMessages','conversationStarted','chatCapabilities','type','url','getCurrentDocumentContext','selectedModel','reset','toLowerCase','getInteraction','conversationId','addSelectionToContext','createInteraction','conversationInitialized','prompt','message','addToConversationContext','destroy','interactionCreated','setModel','load','start','contextItems','setReasoning','chatContext','getConversation','delegate','335896VLNsiY','removeInteraction','setConversationTitle','currentReply','fetchConversationMessages','interactions','push','ai-chat-handle-user-interaction-start-failed','getCapabilitiesConfig','assistant','content','ai-chat-handle-user-conversation-not-initialized','hasOwn','user','sessionId','isSelectionInContext','addCurrentDocumentToContext','updateCurrentDocument','updateCurrentDocumentInContext','getModel','removeSelectionFromContext','set','isFromHistory','role','addToolItemToContext','parse','_extractContextItems','421120VGMxwY','connector','title','lastInteraction','ai-chat-conversation-start-no-model-selected','init','removeFromContext','isCurrentDocumentInContext','error','ai-chat-conversation-already-started','getDocumentContext','addFilesToContext','reasoning','addResourceToContext','isAvailable','modification','capabilities','model','stack','webSearch','fire','splice','_handleToolResultData','get','addUrlToContext','chatModels','fetchConversation','ai-chat-conversation-init-failed','sources'];_0x52d4=function(){return _0x203364;};return _0x52d4();}import{errorsMap as _0x111c90}from'../../errorsmap.js';export class AIChatConversation extends _0x5d4eae(){['id'];[_0x1baad4(0xdb)]=!0x1;[_0x1baad4(0xa0)];[_0x1baad4(0x8f)]=[];[_0x1baad4(0xc7)];[_0x1baad4(0xf3)];[_0x1baad4(0xa6)];[_0x1baad4(0xc5)];constructor(_0x518bef){const _0x257fb8=_0x1baad4;super(),this[_0x257fb8(0xc5)]=_0x518bef,this[_0x257fb8(0xa6)]=_0x518bef[_0x257fb8(0xa6)],this[_0x257fb8(0xbe)]=_0x518bef[_0x257fb8(0xbe)],this['id']=_0x518bef[_0x257fb8(0xf7)],this[_0x257fb8(0xa0)]=_0x518bef[_0x257fb8(0xa0)];}async[_0x1baad4(0xaa)](_0x59f7f8){const _0x17eb12=_0x1baad4;try{this[_0x17eb12(0x87)]=new _0x4cd5dd({'connector':this[_0x17eb12(0xa6)],'config':_0x59f7f8,'ownerId':this['id']}),this[_0x17eb12(0x87)][_0x17eb12(0x89)](..._0x82ac4)['to'](this),this[_0x17eb12(0x87)][_0x17eb12(0xaa)](),this[_0x17eb12(0xef)]=new _0x250680(),this[_0x17eb12(0xef)][_0x17eb12(0x89)](..._0x296dac)['to'](this),this[_0x17eb12(0xef)][_0x17eb12(0xaa)]();const _0x2776c6=await this[_0x17eb12(0xbe)][_0x17eb12(0xcb)]();this[_0x17eb12(0xb9)](_0x17eb12(0xfa),{'availableModels':_0x2776c6});const _0x5b396d=await this[_0x17eb12(0xbe)][_0x17eb12(0x9d)](this[_0x17eb12(0xc5)][_0x17eb12(0xd4)]);_0x5b396d&&await this[_0x17eb12(0x100)](_0x5b396d);}catch(_0x203247){const _0x338b7d=new _0x2f3932(_0x17eb12(0xc0),null,{'message':_0x203247[_0x17eb12(0xfc)]||_0x203247});_0x338b7d[_0x17eb12(0xb7)]=_0x203247[_0x17eb12(0xb7)],this[_0x17eb12(0xb9)](_0x17eb12(0xad),{'error':_0x338b7d});}}async[_0x1baad4(0x102)](){const _0x573931=_0x1baad4;if(this[_0x573931(0xdb)])throw new _0x2f3932(_0x573931(0xae),null,{'conversation':this});if(!this[_0x573931(0xf3)])throw new _0x2f3932(_0x573931(0xa9),null,{'conversation':this});try{const {id:_0x44c621}=await this[_0x573931(0xa6)][_0x573931(0xc2)](this['id'],this[_0x573931(0xc5)][_0x573931(0xeb)])[_0x573931(0x88)]();this['id']=_0x44c621,this[_0x573931(0xdb)]=!0x0,this[_0x573931(0xb9)](_0x573931(0xee),{'conversationId':this['id'],'selectedModel':this[_0x573931(0xf3)]});}catch(_0x40439e){const _0x1eed37=new _0x2f3932(_0x573931(0xc8),null,{'message':_0x40439e[_0x573931(0xfc)],'conversationId':this['id']});throw _0x1eed37[_0x573931(0xb7)]=_0x40439e[_0x573931(0xb7)],this[_0x573931(0xb9)](_0x573931(0xad),{'error':_0x1eed37}),_0x1eed37;}}async[_0x1baad4(0x101)](_0x91ae26,_0x570fca){const _0x370f37=_0x1baad4;try{const _0x5f2b7b=await this[_0x370f37(0xa6)][_0x370f37(0xbf)](_0x91ae26)[_0x370f37(0x88)](),_0x4e16db=await this[_0x370f37(0xa6)][_0x370f37(0x8e)](_0x91ae26)[_0x370f37(0xed)](),_0x1d1e5d=_0x4e16db[0x0][_0x370f37(0xb6)];this[_0x370f37(0xdb)]=!0x0,this['id']=_0x5f2b7b['id'],_0x370f37(0xa7)in _0x5f2b7b?this[_0x370f37(0xb9)](_0x370f37(0x8c),_0x5f2b7b[_0x370f37(0xa7)],!0x0):this[_0x370f37(0xb9)](_0x370f37(0x8c),'',!0x0);const _0x2f7832=(await this[_0x370f37(0xbe)][_0x370f37(0xd8)]())[_0x370f37(0xd2)](_0x22f8ae=>_0x22f8ae['id'][_0x370f37(0xf5)]()===_0x1d1e5d[_0x370f37(0xf5)]());return this[_0x370f37(0xf3)]=_0x2f7832,this[_0x370f37(0xb9)](_0x370f37(0xdc),{'selectedModel':_0x2f7832,'isDisabled':!0x0}),await this[_0x370f37(0xc3)](_0x4e16db,_0x570fca,_0x1d1e5d),this[_0x370f37(0xc7)]=void 0x0,this;}catch(_0xbec0c1){const _0x522b99=new _0x2f3932(_0x370f37(0xd1),null,{'message':_0xbec0c1[_0x370f37(0xfc)],'conversationId':_0x91ae26});throw _0x522b99[_0x370f37(0xb7)]=_0xbec0c1[_0x370f37(0xb7)],this[_0x370f37(0xb9)](_0x370f37(0xad),{'error':_0x522b99}),_0x522b99;}}async[_0x1baad4(0xc3)](_0x564cd3,_0x2853d3,_0x5aeb77){const _0x13377d=_0x1baad4;let _0x5c2f4b;for(const _0x13362e of _0x564cd3)if(_0x13377d(0x97)===_0x13362e[_0x13377d(0xa1)]){const _0x47eb47=await this[_0x13377d(0xa4)](_0x13362e),_0x1af229={'isReasoningEnabled':Object[_0x13377d(0x96)](_0x13362e[_0x13377d(0xb5)],_0x13377d(0xb1)),'isWebSearchEnabled':Object[_0x13377d(0x96)](_0x13362e[_0x13377d(0xb5)],_0x13377d(0xb8))};_0x5c2f4b=this[_0x13377d(0xf9)]({'userMessage':_0x13362e[_0x13377d(0xfb)],'contextItems':_0x47eb47,'capabilities':_0x1af229,'modelId':_0x5aeb77,'attributes':_0x13362e[_0x13377d(0xe1)]}),this[_0x13377d(0xc7)]=_0x5c2f4b,this[_0x13377d(0x87)][_0x13377d(0xfd)](this[_0x13377d(0xc7)][_0x13377d(0x85)]);}else{if(_0x13377d(0x93)===_0x13362e[_0x13377d(0xa1)]&&_0x5c2f4b){const _0x983071=[];for(const _0x10122d of _0x13362e[_0x13377d(0x94)])switch(_0x10122d[_0x13377d(0xf0)]){case _0x13377d(0xe7):case _0x13377d(0xb4):{const _0x2224b5=_0x5c2f4b[_0x13377d(0xaf)]()?.[_0x13377d(0x98)]!==_0x2853d3;_0x5c2f4b[_0x13377d(0x8d)]=_0x5c2f4b[_0x13377d(0xd6)]({'type':_0x10122d[_0x13377d(0xf0)],'isDone':!0x0,'interactionId':_0x5c2f4b['id'],'areActionsDisabled':_0x2224b5}),_0x5c2f4b[_0x13377d(0x8d)][_0x13377d(0xdd)](_0x10122d[_0x13377d(0x94)]),_0x983071[_0x13377d(0xe0)]>0x0&&(_0x5c2f4b[_0x13377d(0x8d)][_0x13377d(0xc1)]=_0x983071[_0x13377d(0xba)](0x0));break;}case _0x13377d(0xf1):_0x983071[_0x13377d(0x90)](_0x10122d);break;case _0x13377d(0xea):{const {data:_0x648c4b,attributes:_0x4fa738}=JSON[_0x13377d(0xa3)](_0x10122d[_0x13377d(0x94)]);_0x5c2f4b[_0x13377d(0xbb)]({'toolName':_0x10122d[_0x13377d(0xce)],'data':_0x648c4b,'attributes':_0x4fa738});break;}}}}}async[_0x1baad4(0xa4)](_0x45fba8){const _0x47a2e4=_0x1baad4,_0x1cd6e1=new Map();if(!_0x45fba8[_0x47a2e4(0x94)])return _0x1cd6e1;for(const _0x501d31 of _0x45fba8[_0x47a2e4(0x94)]){const _0x7b7f0a=await this[_0x47a2e4(0x87)][_0x47a2e4(0xe3)](_0x501d31);_0x7b7f0a&&_0x1cd6e1[_0x47a2e4(0x9f)](_0x7b7f0a['id'],_0x7b7f0a);}return _0x1cd6e1;}async[_0x1baad4(0xd7)]({userMessage:_0x5b7573,attributes:_0x30e4b0}){const _0x14bc3e=_0x1baad4;if(!this[_0x14bc3e(0xdb)])throw new _0x2f3932(_0x14bc3e(0x95),null,{'conversation':this});if(this[_0x14bc3e(0xc7)])throw new _0x2f3932(_0x14bc3e(0xc9),null,{'conversation':this});try{const _0x269e4e=this[_0x14bc3e(0x87)][_0x14bc3e(0xe6)](),_0x465e2a=this[_0x14bc3e(0xef)][_0x14bc3e(0x92)](),_0x322f6b=this[_0x14bc3e(0xf3)]['id'];this[_0x14bc3e(0xc7)]=this[_0x14bc3e(0xf9)]({'userMessage':_0x5b7573,'contextItems':_0x269e4e,'capabilities':_0x465e2a,'modelId':_0x322f6b,'attributes':_0x30e4b0}),await this[_0x14bc3e(0xc7)][_0x14bc3e(0x102)](),this[_0x14bc3e(0x87)][_0x14bc3e(0xfd)](this[_0x14bc3e(0xc7)][_0x14bc3e(0x85)]);}catch(_0x3c06a9){if(_0x3c06a9 instanceof _0x2f3932)this[_0x14bc3e(0xb9)](_0x14bc3e(0xad),{'interactionId':this[_0x14bc3e(0xc7)]?this[_0x14bc3e(0xc7)]['id']:void 0x0,'error':_0x3c06a9});else{const _0x2af359=_0x111c90[_0x14bc3e(0xbc)](_0x3c06a9[_0x14bc3e(0xcc)])||_0x14bc3e(0x91);this[_0x14bc3e(0xb9)](_0x14bc3e(0xad),{'interactionId':this[_0x14bc3e(0xc7)]?this[_0x14bc3e(0xc7)]['id']:void 0x0,'error':new _0x2f3932(_0x2af359,null,{'error':_0x3c06a9})});}}finally{this[_0x14bc3e(0xc7)]?.[_0x14bc3e(0xe2)](),this[_0x14bc3e(0xc7)]=void 0x0;}}[_0x1baad4(0xf9)]({userMessage:_0xe95f23,contextItems:_0x4940c2,capabilities:_0x1e7c9e,modelId:_0x51d7aa,attributes:_0x545c0e}){const _0x101fcd=_0x1baad4,_0x540df6=new _0x41454a({'userMessage':_0xe95f23,'contextItems':_0x4940c2,'capabilities':_0x1e7c9e,'conversationId':this['id'],'connector':this[_0x101fcd(0xa6)],'editor':this[_0x101fcd(0xc5)][_0x101fcd(0xc4)]&&this[_0x101fcd(0xc5)][_0x101fcd(0xc4)](),'model':_0x51d7aa,'attributes':_0x545c0e});return _0x540df6[_0x101fcd(0x89)](..._0x9a1559)['to'](this),this[_0x101fcd(0x8f)][_0x101fcd(0x90)](_0x540df6),this[_0x101fcd(0xb9)](_0x101fcd(0xff),_0x540df6),_0x540df6;}[_0x1baad4(0xf6)](_0x412439){const _0x22073b=_0x1baad4;return this[_0x22073b(0x8f)][_0x22073b(0xd2)](_0xecf08d=>_0xecf08d['id']===_0x412439);}[_0x1baad4(0x8b)](_0x5eb03b){const _0x14fd7f=_0x1baad4,_0x4ab388=this[_0x14fd7f(0xf6)](_0x5eb03b);_0x4ab388&&(_0x4ab388[_0x14fd7f(0xfe)](),this[_0x14fd7f(0x8f)][_0x14fd7f(0xba)](this[_0x14fd7f(0x8f)][_0x14fd7f(0xec)](_0x4ab388),0x1));}get[_0x1baad4(0xa8)](){const _0x51d1b1=_0x1baad4;return this[_0x51d1b1(0x8f)][this[_0x51d1b1(0x8f)][_0x51d1b1(0xe0)]-0x1];}[_0x1baad4(0x9a)](_0x947732){const _0x439ddb=_0x1baad4;this[_0x439ddb(0x87)][_0x439ddb(0x9a)](_0x947732);}async[_0x1baad4(0x9c)]({content:_0x379bf3,version:_0x385c0f,sessionId:_0x98d6b6,selections:_0x437dc6}){const _0x43ab92=_0x1baad4;await this[_0x43ab92(0x87)][_0x43ab92(0x9b)](_0x379bf3,_0x385c0f,_0x98d6b6,_0x437dc6);}[_0x1baad4(0xf2)](){const _0x33a580=_0x1baad4;return this[_0x33a580(0xc7)]?.[_0x33a580(0xaf)]()?.[_0x33a580(0x94)]||'';}[_0x1baad4(0xf8)](_0x23431e){const _0x286aff=_0x1baad4;this[_0x286aff(0x87)][_0x286aff(0xf8)](_0x23431e);}[_0x1baad4(0x9e)](){const _0x5e4cba=_0x1baad4;this[_0x5e4cba(0x87)][_0x5e4cba(0x9e)]();}[_0x1baad4(0xb0)](_0x2c8141){const _0x1bc385=_0x1baad4;this[_0x1bc385(0x87)][_0x1bc385(0xb0)](_0x2c8141);}[_0x1baad4(0xbd)](_0x1fe64e){const _0x56d784=_0x1baad4;this[_0x56d784(0x87)][_0x56d784(0xbd)](_0x1fe64e);}[_0x1baad4(0xa2)](_0x32bae6){const _0x20689c=_0x1baad4;this[_0x20689c(0x87)][_0x20689c(0xa2)](_0x32bae6);}[_0x1baad4(0xb2)](_0x15d48b,_0x46b457){const _0x114f7e=_0x1baad4;this[_0x114f7e(0x87)][_0x114f7e(0xb2)](_0x15d48b,_0x46b457);}[_0x1baad4(0xd5)](_0x13f28f,_0x1b1bfb,_0x34a7e0){const _0x48d622=_0x1baad4;return this[_0x48d622(0x87)][_0x48d622(0xd5)](_0x13f28f,_0x1b1bfb,_0x34a7e0);}[_0x1baad4(0xab)](_0x191708){const _0x415398=_0x1baad4;this[_0x415398(0x87)][_0x415398(0xab)](_0x191708);}[_0x1baad4(0xd3)](_0x213313){const _0x461ad6=_0x1baad4;this[_0x461ad6(0xef)][_0x461ad6(0xd3)](_0x213313);}[_0x1baad4(0xe9)](){const _0xa102da=_0x1baad4;this[_0xa102da(0xef)][_0xa102da(0xe9)]();}[_0x1baad4(0x86)](_0x68f275){const _0x557a7b=_0x1baad4;this[_0x557a7b(0xef)][_0x557a7b(0x86)](_0x68f275);}[_0x1baad4(0xc6)](){const _0x5d3c9b=_0x1baad4;this[_0x5d3c9b(0xef)][_0x5d3c9b(0xc6)]();}[_0x1baad4(0xac)](){const _0x11040c=_0x1baad4;return this[_0x11040c(0x87)][_0x11040c(0xac)]();}[_0x1baad4(0xda)](){const _0x309ac6=_0x1baad4;return this[_0x309ac6(0x87)][_0x309ac6(0xda)]();}[_0x1baad4(0x99)](){const _0x2a98a6=_0x1baad4;return this[_0x2a98a6(0x87)][_0x2a98a6(0x99)]();}async[_0x1baad4(0x100)](_0x2f70af){const _0x4a8aa2=_0x1baad4;_0x2f70af?!0x1===await this[_0x4a8aa2(0xbe)][_0x4a8aa2(0xb3)](_0x2f70af)&&(_0x170edb(_0x4a8aa2(0xe4),{'conversation':this,'model':_0x2f70af}),_0x2f70af=(await this[_0x4a8aa2(0xbe)][_0x4a8aa2(0xcb)]())[0x0]):(_0x170edb(_0x4a8aa2(0xe8),{'conversation':this}),_0x2f70af=(await this[_0x4a8aa2(0xbe)][_0x4a8aa2(0xcb)]())[0x0]),_0x2f70af['id']!==this[_0x4a8aa2(0xf3)]?.['id']&&(this[_0x4a8aa2(0xf3)]=_0x2f70af,this[_0x4a8aa2(0xef)][_0x4a8aa2(0xf4)](),this[_0x4a8aa2(0xb9)](_0x4a8aa2(0xdc),{'selectedModel':_0x2f70af}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe98f6d=_0x139e;(function(_0x2ab1a7,_0x3f38e8){var _0x2baa33=_0x139e,_0x59f9f2=_0x2ab1a7();while(!![]){try{var _0x40c6ab=parseInt(_0x2baa33(0xcb))/0x1*(parseInt(_0x2baa33(0xb4))/0x2)+-parseInt(_0x2baa33(0xb9))/0x3*(parseInt(_0x2baa33(0xbb))/0x4)+-parseInt(_0x2baa33(0xc4))/0x5+parseInt(_0x2baa33(0xbd))/0x6*(parseInt(_0x2baa33(0xba))/0x7)+parseInt(_0x2baa33(0xbe))/0x8*(parseInt(_0x2baa33(0xc7))/0x9)+parseInt(_0x2baa33(0xc1))/0xa*(-parseInt(_0x2baa33(0xb8))/0xb)+parseInt(_0x2baa33(0xb2))/0xc*(parseInt(_0x2baa33(0xb5))/0xd);if(_0x40c6ab===_0x3f38e8)break;else _0x59f9f2['push'](_0x59f9f2['shift']());}catch(_0x5ae9e8){_0x59f9f2['push'](_0x59f9f2['shift']());}}}(_0x26dd,0xaf749));function _0x139e(_0x389afe,_0x4623a7){var _0x26ddc2=_0x26dd();return _0x139e=function(_0x139e73,_0x1e69bd){_0x139e73=_0x139e73-0xb2;var _0x5e60eb=_0x26ddc2[_0x139e73];return _0x5e60eb;},_0x139e(_0x389afe,_0x4623a7);}import{AICapabilities as _0x5bae77}from'../../aicore/model/aicapabilities.js';function _0x26dd(){var _0x31319c=['1085166IirJPr','7DRFqhy','8GbZWpQ','attributes','1242810qxBhIL','2412768ojbkEf','model','connector','20UhRYfk','get','current-document','2997075AdeZpy','userMessage','conversationId','9QCyQvJ','getCapabilitiesRequestData','contextItems','sendRequest','1knmhTy','getDocumentContext','1860MsTOdb','mapContextItemsToRequestData','141628diaILU','207987MDDlZW','queryAssistant','capabilities','5598263EXcegq'];_0x26dd=function(){return _0x31319c;};return _0x26dd();}import{AIInteraction as _0x4c55a2}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1db5d1}from'./aichatcontext.js';export class AIChatInteraction extends _0x4c55a2{[_0xe98f6d(0xc5)];[_0xe98f6d(0xc6)];[_0xe98f6d(0xc9)]=new Map();[_0xe98f6d(0xbf)];[_0xe98f6d(0xbc)];constructor(_0x15f794){var _0x2d3cf7=_0xe98f6d;super(_0x15f794),this[_0x2d3cf7(0xc6)]=_0x15f794[_0x2d3cf7(0xc6)],this[_0x2d3cf7(0xc9)]=_0x15f794[_0x2d3cf7(0xc9)],this[_0x2d3cf7(0xb7)]=_0x15f794[_0x2d3cf7(0xb7)],this[_0x2d3cf7(0xc5)]=_0x15f794[_0x2d3cf7(0xc5)],this[_0x2d3cf7(0xbf)]=_0x15f794[_0x2d3cf7(0xbf)],this[_0x2d3cf7(0xbc)]=_0x15f794[_0x2d3cf7(0xbc)];}async[_0xe98f6d(0xca)](){var _0x3e7dad=_0xe98f6d;return this[_0x3e7dad(0xc0)][_0x3e7dad(0xb6)]({'message':this[_0x3e7dad(0xc5)],'conversationId':this[_0x3e7dad(0xc6)],'parts':_0x1db5d1[_0x3e7dad(0xb3)](this[_0x3e7dad(0xc9)]),'capabilities':_0x5bae77[_0x3e7dad(0xc8)](this[_0x3e7dad(0xb7)]),'model':this[_0x3e7dad(0xbf)],'attributes':this[_0x3e7dad(0xbc)]});}[_0xe98f6d(0xcc)](){var _0x5c12a5=_0xe98f6d;return this[_0x5c12a5(0xc9)][_0x5c12a5(0xc2)](_0x5c12a5(0xc3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xed3f52=_0x18e1;function _0x2625(){const _0x342430=['4993616VckspW','_createNextButtonView','change:isTrackChangesOn','toggleSuggestionDisplayMode','_createPreviousButtonView','locale','722316rOlfub','_keystrokes','fire','_isErrorVisible','_stateView','includes','previousButtonView','children','_togglePartToolbarButtonsVisibility','availableActions','_partToolbarView','render','createCollection','AI_BALLOON_NEXT_LABEL','destroy','focusLast','updateContent','_toolbarContainerView','_config','element','nextButtonView','div','1426173MDsphO','focusFirst','setButtonsVisibility','isShowChangesOn','addMany','full','_focusTracker','ck-ai-chat-balloon-main_state_','1375070uzqWhL','_streamableContentView','listenTo','_miniToolbarView','AI_BALLOON_PREVIOUS_LABEL','2BPcvhm','toggleRotatorButtonsVisibility','focusCycler','208mHrFlv','bindTemplate','toggleShowChanges','tab','showPrevious','showDiff','_errorView','isTrackChangesOn','1202346PHWxSx','isEnabled','execute','pending','setState','showError','delegate','3588440eRXoHt','rejectSuggestion','set','add','focus','showBlockingError','has','keepErrors','applySuggestion','ck-ai-chat-balloon__toolbar-container','isVisible','shift\x20+\x20tab','change:_state','update','insertSuggestion','togglePartToolbarEnabled','showNext','709446YTBpRJ','_focusables','hideError','ck-ai-chat-balloon-main','setTemplate','bind','_state'];_0x2625=function(){return _0x342430;};return _0x2625();}(function(_0x43308e,_0x3670c3){const _0x57175a=_0x18e1,_0x3ef6aa=_0x43308e();while(!![]){try{const _0x5cdee0=-parseInt(_0x57175a(0x1b4))/0x1+parseInt(_0x57175a(0x1b9))/0x2*(parseInt(_0x57175a(0x189))/0x3)+-parseInt(_0x57175a(0x190))/0x4+-parseInt(_0x57175a(0x1cb))/0x5+parseInt(_0x57175a(0x196))/0x6+parseInt(_0x57175a(0x1ac))/0x7+parseInt(_0x57175a(0x1bc))/0x8*(parseInt(_0x57175a(0x1c4))/0x9);if(_0x5cdee0===_0x3670c3)break;else _0x3ef6aa['push'](_0x3ef6aa['shift']());}catch(_0x567950){_0x3ef6aa['push'](_0x3ef6aa['shift']());}}}(_0x2625,0xa9299));import{FocusTracker as _0x6122c8,KeystrokeHandler as _0x55e54c}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3324b5}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x18e1(_0x56cc20,_0x57a849){const _0x2625c5=_0x2625();return _0x18e1=function(_0x18e1d5,_0x1c3951){_0x18e1d5=_0x18e1d5-0x17f;let _0x5b236a=_0x2625c5[_0x18e1d5];return _0x5b236a;},_0x18e1(_0x56cc20,_0x57a849);}import{AISuggestionContentPartToolbarView as _0x1c6544}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x19c6d8}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x56c006}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x1a8758,FocusCycler as _0x4ce837,View as _0x103061}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x319d6b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x50e553,IconChevronUp as _0x5c80ef}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a1fb8}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x56c006{[_0xed3f52(0x19d)];[_0xed3f52(0x1aa)];[_0xed3f52(0x19c)];[_0xed3f52(0x1bb)];[_0xed3f52(0x18a)];[_0xed3f52(0x1b2)];[_0xed3f52(0x197)];[_0xed3f52(0x1a8)];[_0xed3f52(0x1b5)];[_0xed3f52(0x1a7)];[_0xed3f52(0x1a0)];[_0xed3f52(0x19a)];[_0xed3f52(0x1b7)];constructor(_0x21df95,_0x5baca8){const _0x4e8484=_0xed3f52;super(_0x21df95);const _0x21c0ec=this[_0x4e8484(0x1bd)];this[_0x4e8484(0x1cd)](_0x4e8484(0x1c1),!0x1),this[_0x4e8484(0x1cd)](_0x4e8484(0x18f),_0x4e8484(0x1c7)),this[_0x4e8484(0x1b2)]=new _0x6122c8(),this[_0x4e8484(0x197)]=new _0x55e54c(),this[_0x4e8484(0x18a)]=this[_0x4e8484(0x1a2)](),this[_0x4e8484(0x1bb)]=new _0x4ce837({'focusables':this[_0x4e8484(0x18a)],'focusTracker':this[_0x4e8484(0x1b2)],'keystrokeHandler':this[_0x4e8484(0x197)],'actions':{'focusPrevious':_0x4e8484(0x183),'focusNext':_0x4e8484(0x1bf)}}),this[_0x4e8484(0x1a8)]=_0x5baca8,this[_0x4e8484(0x1aa)]=this[_0x4e8484(0x191)](),this[_0x4e8484(0x19c)]=this[_0x4e8484(0x194)](),this[_0x4e8484(0x1b5)]=new _0x3324b5(_0x21df95),this[_0x4e8484(0x1a0)]=new _0x1c6544(_0x21df95,_0x5baca8[_0x4e8484(0x19f)]),this[_0x4e8484(0x1a0)][_0x4e8484(0x1ca)](_0x4e8484(0x180),_0x4e8484(0x186),_0x4e8484(0x1cc))['to'](this),this[_0x4e8484(0x19e)](_0x5baca8),this[_0x4e8484(0x19a)]=new _0x319d6b(_0x21df95),this[_0x4e8484(0x19a)][_0x4e8484(0x182)]=!0x1,this[_0x4e8484(0x1b7)]=new _0x19c6d8(_0x21df95,{'showChanges':_0x4e8484(0x1b1)}),this[_0x4e8484(0x1b7)][_0x4e8484(0x18e)](_0x4e8484(0x1af))['to'](this,_0x4e8484(0x1c1)),this[_0x4e8484(0x1b7)]['on'](_0x4e8484(0x1be),()=>{const _0x468e39=_0x4e8484;this[_0x468e39(0x198)](_0x468e39(0x193));}),this[_0x4e8484(0x1a7)]=new fs(_0x21df95,[this[_0x4e8484(0x1a0)],this[_0x4e8484(0x19a)],this[_0x4e8484(0x1b7)]]),this[_0x4e8484(0x19d)]=this[_0x4e8484(0x1a2)]([this[_0x4e8484(0x1b5)],this[_0x4e8484(0x1a7)]]),this['on'](_0x4e8484(0x184),(_0x318210,_0x18b583,_0x41f6c0,_0x3d01a7)=>{const _0x57d814=_0x4e8484;let _0x1ff056,_0x24dd14;_0x57d814(0x1c7)===_0x3d01a7?(_0x1ff056=this[_0x57d814(0x1a0)],_0x24dd14=this[_0x57d814(0x19a)]):(_0x1ff056=this[_0x57d814(0x19a)],_0x24dd14=this[_0x57d814(0x1a0)]),this[_0x57d814(0x19a)][_0x57d814(0x1c8)](_0x41f6c0),_0x1ff056[_0x57d814(0x182)]=!0x1,_0x24dd14[_0x57d814(0x182)]=!0x0;}),this[_0x4e8484(0x18d)]({'tag':_0x4e8484(0x1ab),'attributes':{'class':['ck',_0x4e8484(0x18c),_0x21c0ec['to'](_0x4e8484(0x18f),_0xbc71df=>_0x4e8484(0x1b3)+_0xbc71df)]},'children':this[_0x4e8484(0x19d)]}),this['on'](_0x4e8484(0x192),()=>{const _0x4a1581=_0x4e8484;this[_0x4a1581(0x19e)](_0x5baca8);});}[_0xed3f52(0x1a1)](){const _0x19a2d8=_0xed3f52;super[_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x1aa)][_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x19c)][_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1aa)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x19c)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1b7)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1a0)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x1aa)][_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x19c)][_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x18a)][_0x19a2d8(0x1b0)]([this[_0x19a2d8(0x1aa)],this[_0x19a2d8(0x19c)],this[_0x19a2d8(0x1a0)],this[_0x19a2d8(0x1b7)]]);}[_0xed3f52(0x1a4)](){const _0x4f85a3=_0xed3f52;super[_0x4f85a3(0x1a4)](),this[_0x4f85a3(0x19c)][_0x4f85a3(0x1a4)](),this[_0x4f85a3(0x1aa)][_0x4f85a3(0x1a4)]();}[_0xed3f52(0x1cf)](){const _0x151d7b=_0xed3f52;this[_0x151d7b(0x1bb)][_0x151d7b(0x1ad)]();}[_0xed3f52(0x1a5)](){const _0x3cb305=_0xed3f52;this[_0x3cb305(0x1bb)][_0x3cb305(0x1a5)]();}async[_0xed3f52(0x1a6)](_0x5383c3){const _0x47324d=_0xed3f52;_0x5383c3?.[_0x47324d(0x17f)]||this[_0x47324d(0x18b)](),await this[_0x47324d(0x1b5)][_0x47324d(0x185)](_0x5383c3);}[_0xed3f52(0x1c8)](_0x34c339){const _0x53317f=_0xed3f52;this[_0x53317f(0x18f)]=_0x34c339;}[_0xed3f52(0x1c9)](_0x2aaddd){const _0x719157=_0xed3f52;super[_0x719157(0x1c9)](_0x2aaddd),this[_0x719157(0x19d)][_0x719157(0x1d1)](this[_0x719157(0x1c2)])||this[_0x719157(0x19d)][_0x719157(0x1ce)](this[_0x719157(0x1c2)],0x0);}[_0xed3f52(0x18b)](){const _0x2c2553=_0xed3f52;this[_0x2c2553(0x199)]&&(super[_0x2c2553(0x18b)](),this[_0x2c2553(0x187)](!0x0));}[_0xed3f52(0x1d0)](_0x7ee02){const _0x2ecf92=_0xed3f52;super[_0x2ecf92(0x1d0)](_0x7ee02),this[_0x2ecf92(0x187)](!0x1);}[_0xed3f52(0x1ba)](_0x2cf641){const _0xfa7bdb=_0xed3f52;this[_0xfa7bdb(0x1aa)][_0xfa7bdb(0x182)]=this[_0xfa7bdb(0x19c)][_0xfa7bdb(0x182)]=_0x2cf641;}[_0xed3f52(0x187)](_0x12a70b){const _0x106efe=_0xed3f52;this[_0x106efe(0x1a0)][_0x106efe(0x1c5)]=_0x12a70b;}[_0xed3f52(0x19e)]({showApplyButton:_0x31e3e7,showSuggestButton:_0x320a84}){const _0x50166b=_0xed3f52;_0x31e3e7=_0x31e3e7&&!this[_0x50166b(0x1c3)]&&this[_0x50166b(0x1a8)][_0x50166b(0x19f)][_0x50166b(0x19b)](_0x50166b(0x180)),_0x320a84=_0x320a84&&this[_0x50166b(0x1a8)][_0x50166b(0x19f)][_0x50166b(0x19b)](_0x50166b(0x186)),this[_0x50166b(0x1a0)][_0x50166b(0x1ae)]({'showApplyButton':_0x31e3e7,'showSuggestButton':_0x320a84});}[_0xed3f52(0x191)](){const _0x148bb8=_0xed3f52,_0x2a5ac8=new _0x1a8758(this[_0x148bb8(0x195)]);return _0x2a5ac8[_0x148bb8(0x1cd)]({'icon':_0x50e553,'label':_0x1a1fb8(this[_0x148bb8(0x195)],_0x148bb8(0x1a3)),'isVisible':!0x0}),_0x2a5ac8['on'](_0x148bb8(0x1c6),()=>{const _0x41ee94=_0x148bb8;this[_0x41ee94(0x198)](_0x41ee94(0x188));}),_0x2a5ac8;}[_0xed3f52(0x194)](){const _0x13ec4c=_0xed3f52,_0x4a33a6=new _0x1a8758(this[_0x13ec4c(0x195)]);return _0x4a33a6[_0x13ec4c(0x1cd)]({'icon':_0x5c80ef,'label':_0x1a1fb8(this[_0x13ec4c(0x195)],_0x13ec4c(0x1b8)),'isVisible':!0x0}),_0x4a33a6['on'](_0x13ec4c(0x1c6),()=>{const _0x27710a=_0x13ec4c;this[_0x27710a(0x198)](_0x27710a(0x1c0));}),_0x4a33a6;}}class fs extends _0x103061{constructor(_0x1bb914,_0x587ec7){const _0x2f5588=_0xed3f52;super(_0x1bb914),this[_0x2f5588(0x18d)]({'tag':_0x2f5588(0x1ab),'attributes':{'class':[_0x2f5588(0x181)]},'children':_0x587ec7});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28fe80=_0x2bf9;function _0x2bf9(_0x3fec14,_0x1ba2fe){const _0x19637f=_0x1963();return _0x2bf9=function(_0x2bf9c7,_0x34a3d8){_0x2bf9c7=_0x2bf9c7-0x103;let _0x336745=_0x19637f[_0x2bf9c7];return _0x336745;},_0x2bf9(_0x3fec14,_0x1ba2fe);}(function(_0x23ec3c,_0x2ccc96){const _0x482e0a=_0x2bf9,_0x216e6a=_0x23ec3c();while(!![]){try{const _0x1e6ecd=parseInt(_0x482e0a(0x13f))/0x1+-parseInt(_0x482e0a(0x14d))/0x2*(parseInt(_0x482e0a(0x10b))/0x3)+-parseInt(_0x482e0a(0x144))/0x4+-parseInt(_0x482e0a(0x137))/0x5*(parseInt(_0x482e0a(0x106))/0x6)+-parseInt(_0x482e0a(0x139))/0x7*(parseInt(_0x482e0a(0x12d))/0x8)+-parseInt(_0x482e0a(0x152))/0x9*(parseInt(_0x482e0a(0x136))/0xa)+parseInt(_0x482e0a(0x10c))/0xb*(parseInt(_0x482e0a(0x147))/0xc);if(_0x1e6ecd===_0x2ccc96)break;else _0x216e6a['push'](_0x216e6a['shift']());}catch(_0x594f3e){_0x216e6a['push'](_0x216e6a['shift']());}}}(_0x1963,0xb2f51));import{ButtonView as _0x444530,clickOutsideHandler as _0x5144b6,View as _0x1715f5}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x39b16c}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2da390}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x33a858,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x52e9ef}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x50c3aa}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4c16b0}from'../../aicore/utils/common-translations.js';function _0x1963(){const _0x38e41f=['bodyCollection','872qrtXTf','value','queryView','ck-ai-chat-controls__start-new-chat-button','clearConversationContextUI','_createPromptInputView','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_handlePromptInputFocus','30oHJHLC','1695gyjnpC','toggleWebSearch','41097KvDuuP','setPlaceholderText','removeContextItem','disableModelSelector','locale','setReasoning','106132SSAMSa','setModel','setConversationContext','clearPendingContextUI','setTemplate','5753296Mnznsr','setIsUploadInProgress','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','3804cBQMFb','addContextItem','_shouldRestorePromptInputFocus','resetMessageInput','reset','_contextPanelView','3846ZRQqKT','startConversation','enableModelSelector','setInputPlaceholder','closeSourceResourceBalloon','964107sXwqlk','fieldView','element','setModelList','clearCurrentContextItems','populateSourceResourceBalloon','clearConversationContextItems','8292YlcjRx','contextResourcesSearchInputVisibleFrom','_createContextPanelView','setWebSearch','execute','894baoNXl','141163uxfLXn','setAddContextOptions','_modelUnavailableMessageView','focus','div','delegate','setPromptInputValue','toggleReasoning','setContextItemLoading','isModelAvailable','_loaderView','sendUserMessage','updateResourceState','abortPromptStream','change:isLoading','ck-ai-chat-controls-disabled','addContextButtonView','isLoading','set','form','_createPromptCapabilitiesView','ck-hidden','bindTemplate','focusPromptInput','isDisabled','_promptInputView','_createLoaderView','_createModelUnavailableMessageView','ck-ai-chat-controls','ck-ai-chat-controls-model-unavailable-message','selectModel','low'];_0x1963=function(){return _0x38e41f;};return _0x1963();}import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x1715f5{[_0x28fe80(0x14c)];[_0x28fe80(0x125)];[_0x28fe80(0x133)];[_0x28fe80(0x116)];[_0x28fe80(0x10e)];[_0x28fe80(0x149)];constructor(_0x8887ea,_0x153510){const _0xc8b84d=_0x28fe80;super(_0x8887ea),this[_0xc8b84d(0x14c)]=this[_0xc8b84d(0x108)](_0x8887ea,{'bodyCollection':_0x153510[_0xc8b84d(0x12c)],'searchInputVisibleFrom':_0x153510[_0xc8b84d(0x107)]}),this[_0xc8b84d(0x125)]=this[_0xc8b84d(0x132)](_0x8887ea),this[_0xc8b84d(0x133)]=this[_0xc8b84d(0x120)](_0x8887ea),this[_0xc8b84d(0x116)]=this[_0xc8b84d(0x126)](_0x8887ea),this[_0xc8b84d(0x10e)]=this[_0xc8b84d(0x127)](_0x8887ea),this[_0xc8b84d(0x149)]=!0x1,this[_0xc8b84d(0x125)][_0xc8b84d(0x111)](_0xc8b84d(0x117))['to'](this),this[_0xc8b84d(0x116)][_0xc8b84d(0x111)](_0xc8b84d(0x119))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x138))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x113))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x12a))['to'](this),this[_0xc8b84d(0x14c)][_0xc8b84d(0x111)](..._0x52e9ef)['to'](this),this[_0xc8b84d(0x11e)](_0xc8b84d(0x115),!0x0),this[_0xc8b84d(0x11e)](_0xc8b84d(0x124),!0x1);const _0x464e7b=this[_0xc8b84d(0x122)];this[_0xc8b84d(0x143)]({'tag':_0xc8b84d(0x11f),'attributes':{'class':['ck',_0xc8b84d(0x128),_0x464e7b['if'](_0xc8b84d(0x124),_0xc8b84d(0x11b))]},'children':[{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x11d),_0xc8b84d(0x121),_0x11cdb2=>_0x11cdb2||!this[_0xc8b84d(0x115)]),_0x464e7b['if'](_0xc8b84d(0x115),_0xc8b84d(0x121),_0x5aa1f9=>!_0x5aa1f9||this[_0xc8b84d(0x11d)])]},'children':[this[_0xc8b84d(0x14c)],this[_0xc8b84d(0x125)],this[_0xc8b84d(0x133)]]},{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x11d),_0xc8b84d(0x121),_0x315b25=>!_0x315b25)]},'children':[this[_0xc8b84d(0x116)]]},{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x115),_0xc8b84d(0x121),_0x2e941b=>_0x2e941b)]},'children':[this[_0xc8b84d(0x10e)]]}]}),_0x5144b6({'emitter':this[_0xc8b84d(0x125)],'activator':()=>this[_0xc8b84d(0x11d)],'contextElements':()=>[this[_0xc8b84d(0x154)]],'callback':()=>{const _0x1e09b6=_0xc8b84d;this[_0x1e09b6(0x149)]=!0x1;}}),this['on'](_0xc8b84d(0x11a),this[_0xc8b84d(0x135)],{'priority':_0xc8b84d(0x12b)});}[_0x28fe80(0x108)](_0x393ec1,_0x48a5bb){return new _0x33a858(_0x393ec1,_0x48a5bb);}[_0x28fe80(0x132)](_0x30ed70){const _0x55df01=_0x28fe80;return new _0x39b16c(_0x30ed70,this[_0x55df01(0x14c)][_0x55df01(0x11c)]);}[_0x28fe80(0x120)](_0x258d3e){return new _0x2da390(_0x258d3e);}[_0x28fe80(0x126)](_0x3c119b){return new _0x50c3aa(_0x3c119b);}[_0x28fe80(0x127)](_0x2a97ae){const _0x59d823=_0x28fe80,_0x28d738=new As(_0x2a97ae);return _0x28d738[_0x59d823(0x111)](_0x59d823(0x14e))['to'](this),_0x28d738;}[_0x28fe80(0x135)](_0x113dd3,_0x170d9c,_0x2b635f){const _0x22d1b8=_0x28fe80;_0x2b635f?this[_0x22d1b8(0x149)]=!0x0:this[_0x22d1b8(0x149)]&&this[_0x22d1b8(0x125)][_0x22d1b8(0x10f)]();}[_0x28fe80(0x148)](_0x52be1c,_0x429734){const _0x5eb5b5=_0x28fe80;this[_0x5eb5b5(0x14c)][_0x5eb5b5(0x148)](_0x52be1c,_0x429734);}[_0x28fe80(0x13b)](_0x4d4c89){const _0x595258=_0x28fe80;this[_0x595258(0x14c)][_0x595258(0x13b)](_0x4d4c89);}[_0x28fe80(0x114)](_0x28de4e,_0x3ab429){const _0x1b6d4b=_0x28fe80;this[_0x1b6d4b(0x14c)][_0x1b6d4b(0x114)](_0x28de4e,_0x3ab429);}[_0x28fe80(0x145)](_0x58d559){const _0x178606=_0x28fe80;this[_0x178606(0x125)][_0x178606(0x145)](_0x58d559);}[_0x28fe80(0x141)](_0x4c9bb7){const _0x3f0ddf=_0x28fe80;this[_0x3f0ddf(0x14c)][_0x3f0ddf(0x141)](_0x4c9bb7);}[_0x28fe80(0x142)](){const _0x4903d3=_0x28fe80;this[_0x4903d3(0x14c)][_0x4903d3(0x103)]();}[_0x28fe80(0x131)](){const _0x3481e1=_0x28fe80;this[_0x3481e1(0x14c)][_0x3481e1(0x105)]();}[_0x28fe80(0x118)](_0x48070c,_0x59c2c0,_0x5b3f1c){const _0x2156ea=_0x28fe80;this[_0x2156ea(0x14c)][_0x2156ea(0x118)](_0x48070c,_0x59c2c0,_0x5b3f1c);}[_0x28fe80(0x109)](_0x4a4655){const _0x2bc7df=_0x28fe80;this[_0x2bc7df(0x133)][_0x2bc7df(0x109)](_0x4a4655);}[_0x28fe80(0x13e)](_0x341e6d){const _0x28cb5d=_0x28fe80;this[_0x28cb5d(0x133)][_0x28cb5d(0x13e)](_0x341e6d);}[_0x28fe80(0x14a)](){const _0x32ca83=_0x28fe80;this[_0x32ca83(0x125)][_0x32ca83(0x14b)]();}[_0x28fe80(0x10d)](_0xdd3537){const _0x33fb69=_0x28fe80;this[_0x33fb69(0x14c)][_0x33fb69(0x10d)](_0xdd3537);}[_0x28fe80(0x150)](_0x5192cc){const _0x64e647=_0x28fe80;this[_0x64e647(0x125)][_0x64e647(0x13a)](_0x5192cc);}[_0x28fe80(0x155)](_0x260163,_0x211023){const _0x4207d7=_0x28fe80;this[_0x4207d7(0x133)][_0x4207d7(0x155)](_0x260163,_0x211023);}[_0x28fe80(0x140)](_0x628e42){const _0x1ad900=_0x28fe80;_0x628e42?(this[_0x1ad900(0x115)]=!0x0,this[_0x1ad900(0x133)][_0x1ad900(0x140)](_0x628e42)):this[_0x1ad900(0x115)]=!0x1;}[_0x28fe80(0x14f)](){const _0x4f80c0=_0x28fe80;this[_0x4f80c0(0x133)][_0x4f80c0(0x14f)]();}[_0x28fe80(0x13c)](_0x9b81d8){const _0x4ceb9f=_0x28fe80;this[_0x4ceb9f(0x133)][_0x4ceb9f(0x13c)](_0x9b81d8);}[_0x28fe80(0x104)](_0x43e4ab,_0x23617b,_0x67a08d,_0x5ce48b){const _0x31bfa8=_0x28fe80;this[_0x31bfa8(0x14c)][_0x31bfa8(0x104)](_0x43e4ab,_0x23617b,_0x67a08d,_0x5ce48b);}[_0x28fe80(0x151)](_0x3ca284){const _0x14e896=_0x28fe80;this[_0x14e896(0x14c)][_0x14e896(0x151)](_0x3ca284);}[_0x28fe80(0x123)](_0x8ac1da=!0x1){const _0x10a467=_0x28fe80;this[_0x10a467(0x125)][_0x10a467(0x10f)](_0x8ac1da);}[_0x28fe80(0x112)](_0x49e2b9){const _0x148462=_0x28fe80;this[_0x148462(0x125)][_0x148462(0x12f)][_0x148462(0x153)][_0x148462(0x14b)](),this[_0x148462(0x125)][_0x148462(0x12f)][_0x148462(0x153)][_0x148462(0x12e)]=_0x49e2b9;}}class As extends _0x1715f5{constructor(_0x5c2f96){const _0x119237=_0x28fe80;super(_0x5c2f96);const _0x349277=new _0x444530(_0x5c2f96);_0x349277[_0x119237(0x11e)]({'label':_0x4c16b0(this[_0x119237(0x13d)],_0x119237(0x134)),'withText':!0x0,'class':[_0x119237(0x130)],'tooltip':''}),_0x349277[_0x119237(0x111)](_0x119237(0x10a))['to'](this,_0x119237(0x14e)),this[_0x119237(0x143)]({'tag':_0x119237(0x110),'attributes':{'class':['ck',_0x119237(0x129)]},'children':[{'tag':'p','children':[{'text':_0x4c16b0(this[_0x119237(0x13d)],_0x119237(0x146))+'\x20'},_0x349277]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1ec9d6=_0x21ba;(function(_0x155ae4,_0x4e8838){const _0x2a4363=_0x21ba,_0x262668=_0x155ae4();while(!![]){try{const _0x53e1c0=parseInt(_0x2a4363(0xfb))/0x1+-parseInt(_0x2a4363(0xf5))/0x2*(parseInt(_0x2a4363(0xe3))/0x3)+-parseInt(_0x2a4363(0xcf))/0x4+parseInt(_0x2a4363(0xe5))/0x5*(parseInt(_0x2a4363(0xee))/0x6)+-parseInt(_0x2a4363(0xe2))/0x7*(parseInt(_0x2a4363(0xf1))/0x8)+parseInt(_0x2a4363(0xfe))/0x9+parseInt(_0x2a4363(0x10a))/0xa;if(_0x53e1c0===_0x4e8838)break;else _0x262668['push'](_0x262668['shift']());}catch(_0x3727cb){_0x262668['push'](_0x262668['shift']());}}}(_0x3686,0xec18a));function _0x21ba(_0x4fd999,_0x421a59){const _0x3686ac=_0x3686();return _0x21ba=function(_0x21ba47,_0x27e458){_0x21ba47=_0x21ba47-0xbc;let _0x59a09c=_0x3686ac[_0x21ba47];return _0x59a09c;},_0x21ba(_0x4fd999,_0x421a59);}import{CKEditorError as _0x16a1f3,logWarning as _0x1f546b,scrollAncestorsToShowTarget as _0x4eaacc}from'ckeditor5/src/utils.js';import{View as _0x2e2776}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2d3c6e}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2c50c5}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x370201}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x16a3d7}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4ea8ef}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x20f0da}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x421741}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4b6116,SKELETON_DEFINITIONS as _0x570daa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x39749d}from'../../aicore/ui/aispinner.js';function _0x3686(){const _0x3c0d18=['set','17342100ayKeKm','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','setLoadingMessage','_createFeedLoader','children','isVisible','scrollManager','_setupTemplate','markItemAsDone','ck-ai-chat__loader','forEach','_createSkeletonLoader','clear','updateSuggestionPartState','destroy','bindTemplate','hasItem','includes','map','updateContent','updateSuggestionItem','setSuggestionPartActive','isPending','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','user-message','ai-chat-feed-view-item-not-a-suggestion-item','custom-element','4876868ehWzPy','setPartActive','ck-ai-chat__feed__items','isLoadingSkeletonVisible','addItem','ck-hidden','_createLoaderChildren','createCollection','interaction-header','ai-reply','ck-ai-chat__loader-text','ck-ai-chat__feed','aiFeed','getItemIds','add','ai-chat-feed-view-item-not-a-reply-item','ai-suggestion-reply','stopAutoScroll','find','1617gygQep','1062069nMHVhj','updateWebSources','6675555CGZpBB','_createTemplateChildren','updatePartState','parentElement','start','remove','_createFeedItems','ai-chat-feed-view-item-not-found','updateReplyItem','6EgTJsC','markAsDone','loadingMessage','9752jxpxJV','div','startAutoScroll','bind','8aJsOmj','removeItem','filter','delegate','toggleLoadingSkeleton','scrollToSuggestion','373724ktzluT','getPartView','getItemById','3968127UZSAsT','isTrackChangesOn','render','setTemplate','extendTemplate','_bodyCollection','element','stop','updateSources','span','locale'];_0x3686=function(){return _0x3c0d18;};return _0x3686();}import{AIChatFeedCustomElementView as _0x142ab5}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2e2776{[_0x1ec9d6(0x10f)];[_0x1ec9d6(0x111)];[_0x1ec9d6(0x103)];constructor(_0x27318e,_0x4c9036){const _0x219f0d=_0x1ec9d6;super(_0x27318e),this[_0x219f0d(0x103)]=_0x4c9036,this[_0x219f0d(0x109)](_0x219f0d(0xc9),!0x1),this[_0x219f0d(0x109)](_0x219f0d(0xf0),''),this[_0x219f0d(0x109)](_0x219f0d(0xd2),!0x1),this[_0x219f0d(0x109)](_0x219f0d(0xff),!0x1),this[_0x219f0d(0x10f)]=this[_0x219f0d(0xd6)](),this[_0x219f0d(0x10f)][_0x219f0d(0xf8)](..._0x2d3c6e)['to'](this),this[_0x219f0d(0x112)]();}[_0x1ec9d6(0x100)](){const _0x207820=_0x1ec9d6;super[_0x207820(0x100)](),this[_0x207820(0x111)]=new _0x421741(this[_0x207820(0x104)]);}[_0x1ec9d6(0xc1)](){const _0x14ff36=_0x1ec9d6;super[_0x14ff36(0xc1)](),this[_0x14ff36(0x111)][_0x14ff36(0xc1)]();}[_0x1ec9d6(0xbf)](){const _0x35aad7=_0x1ec9d6;this[_0x35aad7(0x10f)][_0x35aad7(0xbf)]();}[_0x1ec9d6(0xd3)](_0x34e2cf,_0x432f8){const _0x4d3452=_0x1ec9d6;let _0x21e6ff;return _0x4d3452(0xd8)===_0x34e2cf?_0x21e6ff=new _0x370201(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]):_0x4d3452(0xdf)===_0x34e2cf?(_0x21e6ff=new _0x2c50c5(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]),_0x21e6ff[_0x4d3452(0xf4)](_0x4d3452(0xff))['to'](this)):_0x21e6ff=_0x4d3452(0xcc)===_0x34e2cf?new _0x16a3d7(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]):_0x4d3452(0xd7)===_0x34e2cf?new _0x20f0da(this[_0x4d3452(0x108)],_0x432f8):_0x4d3452(0xce)===_0x34e2cf?new _0x142ab5(_0x432f8):new _0x4ea8ef(_0x432f8),this[_0x4d3452(0x10f)][_0x4d3452(0xdd)](_0x21e6ff),_0x21e6ff;}async[_0x1ec9d6(0xed)]({id:_0x3f5edc,parsedContent:_0x439c25,renderingStrategy:_0x4a8b9f,abortSignal:_0x3b03d2}){const _0x44104e=_0x1ec9d6,_0x1f6065=this[_0x44104e(0xfd)](_0x3f5edc);if(!(_0x1f6065 instanceof _0x370201))throw new _0x16a1f3(_0x44104e(0xde),null,{'itemView':_0x1f6065,'id':_0x3f5edc,'parsedContent':_0x439c25});await _0x1f6065[_0x44104e(0xc6)]({'parsedContent':_0x439c25,'renderingStrategy':_0x4a8b9f,'abortSignal':_0x3b03d2});}async[_0x1ec9d6(0xe4)](_0x839e98,_0x66c2d7){const _0x47ddf3=_0x1ec9d6,_0x421667=this[_0x47ddf3(0xfd)](_0x839e98);if(_0x421667 instanceof _0x2c50c5)_0x421667[_0x47ddf3(0x106)](_0x66c2d7);else{if(!(_0x421667 instanceof _0x370201))throw new _0x16a1f3(_0x47ddf3(0xcb),null,{'itemView':_0x421667,'id':_0x839e98,'sources':_0x66c2d7});_0x421667[_0x47ddf3(0x106)](_0x66c2d7);}}async[_0x1ec9d6(0xc7)]({id:_0x245be2,parts:_0xd1a9b8,renderingStrategy:_0x189a27,abortSignal:_0x25a77b}){const _0x23e547=_0x1ec9d6,_0x38126a=this[_0x23e547(0xfd)](_0x245be2);if(!(_0x38126a instanceof _0x2c50c5))throw new _0x16a1f3(_0x23e547(0xcd),null,{'itemView':_0x38126a,'id':_0x245be2,'parts':_0xd1a9b8});await _0x38126a[_0x23e547(0xc6)]({'parts':_0xd1a9b8,'renderingStrategy':_0x189a27,'abortSignal':_0x25a77b});}[_0x1ec9d6(0xc0)]({id:_0x5dd999,index:_0x1af5b7,state:_0x112c69}){const _0x17aaa4=_0x1ec9d6,_0x46a9b5=this[_0x17aaa4(0xfd)](_0x5dd999);if(!(_0x46a9b5 instanceof _0x2c50c5))throw new _0x16a1f3(_0x17aaa4(0xcd),this,{'id':_0x5dd999});_0x46a9b5[_0x17aaa4(0xe7)](_0x1af5b7,_0x112c69);}[_0x1ec9d6(0xc8)]({id:_0x44edad,index:_0x4133ad,isActive:_0xa9c95d}){const _0x3b33a3=_0x1ec9d6,_0x2c8794=this[_0x3b33a3(0xfd)](_0x44edad);if(!(_0x2c8794 instanceof _0x2c50c5))throw new _0x16a1f3(_0x3b33a3(0xcd),this,{'id':_0x44edad});this[_0x3b33a3(0x10f)][_0x3b33a3(0xf7)](_0xf6a3e=>_0xf6a3e instanceof _0x2c50c5)[_0x3b33a3(0xbd)](_0xa2c27=>{const _0x27581d=_0x3b33a3;_0xa2c27[_0x27581d(0xd0)](!0x1);}),_0x2c8794[_0x3b33a3(0xd0)](_0x4133ad,_0xa9c95d);}[_0x1ec9d6(0x113)](_0x3d3ce7){const _0x39c236=_0x1ec9d6;this[_0x39c236(0xfd)](_0x3d3ce7)[_0x39c236(0xef)]();}[_0x1ec9d6(0xdc)](){const _0x4a6fdd=_0x1ec9d6;return this[_0x4a6fdd(0x10f)][_0x4a6fdd(0xc5)](_0x1d135a=>_0x1d135a[_0x4a6fdd(0x10c)]['id']);}[_0x1ec9d6(0xf6)](_0x507033){const _0x330d50=_0x1ec9d6;this[_0x330d50(0x10f)][_0x330d50(0xea)](this[_0x330d50(0xfd)](_0x507033));}[_0x1ec9d6(0xc3)](_0x1f398a){const _0x554854=_0x1ec9d6;return!!this[_0x554854(0x10f)][_0x554854(0xe1)](_0x3c9255=>_0x3c9255[_0x554854(0x10c)]['id'][_0x554854(0xc4)](_0x1f398a));}[_0x1ec9d6(0xfa)](_0x52270d,_0x5d3227){const _0x17b551=_0x1ec9d6,_0x5d1734=this[_0x17b551(0xfd)](_0x52270d);if(!(_0x5d1734 instanceof _0x2c50c5))return void _0x1f546b(_0x17b551(0x10b),{'replyId':_0x52270d,'partIndex':_0x5d3227});const _0x25c2b4=_0x5d1734[_0x17b551(0xfc)](_0x5d3227);_0x25c2b4?_0x4eaacc(_0x25c2b4[_0x17b551(0x104)],0x14,this[_0x17b551(0x104)][_0x17b551(0xe8)],!0x0,!0x0):_0x1f546b(_0x17b551(0xca),{'replyId':_0x52270d,'partIndex':_0x5d3227});}[_0x1ec9d6(0x112)](){const _0x5796c0=_0x1ec9d6;this[_0x5796c0(0x101)]({'tag':_0x5796c0(0xf2),'attributes':{'class':['ck',_0x5796c0(0xda)]},'children':this[_0x5796c0(0xe6)]()});}[_0x1ec9d6(0xe6)](){const _0x330cb1=_0x1ec9d6,_0x52a380=this[_0x330cb1(0xbe)]();return[this[_0x330cb1(0xeb)](),_0x52a380,this[_0x330cb1(0x10e)]()];}[_0x1ec9d6(0xbe)](){const _0x416e3f=_0x1ec9d6,_0x28baa2=new _0x4b6116(this[_0x416e3f(0x108)],_0x570daa[_0x416e3f(0xdb)]);return _0x28baa2[_0x416e3f(0x102)]({'attributes':{'class':[this[_0x416e3f(0xc2)]['if'](_0x416e3f(0xd2),_0x416e3f(0xd4),_0x483dcf=>!_0x483dcf)]}}),_0x28baa2;}[_0x1ec9d6(0xeb)](){const _0x70b1e0=_0x1ec9d6,_0x14226e=new _0x2e2776(this[_0x70b1e0(0x108)]);return _0x14226e[_0x70b1e0(0x101)]({'tag':_0x70b1e0(0xf2),'attributes':{'class':['ck',_0x70b1e0(0xd1),this[_0x70b1e0(0xc2)]['if'](_0x70b1e0(0xd2),_0x70b1e0(0xd4))]},'children':this[_0x70b1e0(0x10f)]}),_0x14226e;}[_0x1ec9d6(0x10e)](){const _0x5f1294=_0x1ec9d6,_0x5af40d=new _0x2e2776(this[_0x5f1294(0x108)]);return _0x5af40d[_0x5f1294(0x101)]({'tag':_0x5f1294(0xf2),'attributes':{'class':['ck',_0x5f1294(0xbc),this[_0x5f1294(0xc2)]['if'](_0x5f1294(0xc9),_0x5f1294(0xd4),_0x2d4bef=>!_0x2d4bef)]},'children':this[_0x5f1294(0xd5)]()}),_0x5af40d;}[_0x1ec9d6(0xd5)](){const _0x117742=_0x1ec9d6,_0x3b63dd=new _0x39749d();return _0x3b63dd[_0x117742(0x110)]=!0x0,[_0x3b63dd,{'tag':_0x117742(0x107),'attributes':{'class':['ck',_0x117742(0xd9)]},'children':[{'text':this[_0x117742(0xc2)]['to'](_0x117742(0xf0))}]}];}[_0x1ec9d6(0xfd)](_0x2b39c6){const _0x15f55b=_0x1ec9d6,_0x3f853e=this[_0x15f55b(0x10f)][_0x15f55b(0xe1)](_0x1b4cd4=>_0x1b4cd4[_0x15f55b(0x10c)]['id'][_0x15f55b(0xc4)](_0x2b39c6));if(!_0x3f853e)throw new _0x16a1f3(_0x15f55b(0xec),this,{'id':_0x2b39c6});return _0x3f853e;}[_0x1ec9d6(0x10d)](_0x560ec6){const _0x11862a=_0x1ec9d6;this[_0x11862a(0x109)](_0x11862a(0xf0),_0x560ec6);}[_0x1ec9d6(0xf9)](_0x29e5d3){const _0x5eb7d8=_0x1ec9d6;this[_0x5eb7d8(0x109)](_0x5eb7d8(0xd2),_0x29e5d3);}[_0x1ec9d6(0xf3)](){const _0x5a70c2=_0x1ec9d6;this[_0x5a70c2(0x111)][_0x5a70c2(0xe9)]();}[_0x1ec9d6(0xe0)](){const _0x6c033e=_0x1ec9d6;this[_0x6c033e(0x111)][_0x6c033e(0x105)]();}}
|
|
23
|
+
const _0x2c5fdb=_0x5cbb;function _0x1e9b(){const _0x597928=['startAutoScroll','map','getItemById','updateSuggestionPartState','updateSources','25362730aWCbFo','user-message','start','_createFeedItems','ck-ai-chat__loader','isPending','markAsDone','updateWebSources','updatePartState','getPartView','setPartActive','305HbLekr','isVisible','options','12660984TAQuaO','removeItem','addItem','remove','setTemplate','children','stopAutoScroll','ai-suggestion-reply','isTrackChangesOn','includes','updateContent','setLoadingMessage','942590AiHhjG','loadingMessage','updateSuggestionItem','getItemIds','146022amLUMR','_createTemplateChildren','updateReplyItem','locale','ai-reply','toggleLoadingSkeleton','extendTemplate','_setupTemplate','aiFeed','_createSkeletonLoader','307234GffibS','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__feed__items','_createLoaderChildren','ck-ai-chat__loader-text','scrollManager','hasItem','ai-chat-feed-view-item-not-a-reply-item','custom-element','ai-chat-feed-view-item-not-found','createCollection','delegate','24KwxFuV','div','destroy','add','find','isLoadingSkeletonVisible','_bodyCollection','forEach','24snphBg','span','set','interaction-header','ck-ai-chat__feed','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','615517zAepqz','scrollToSuggestion','filter','380802myGvII','clear','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_createFeedLoader','markItemAsDone','parentElement','ck-hidden','bindTemplate','element','render','bind','setSuggestionPartActive','stop'];_0x1e9b=function(){return _0x597928;};return _0x1e9b();}function _0x5cbb(_0x14aae4,_0x35746b){const _0x1e9bd1=_0x1e9b();return _0x5cbb=function(_0x5cbb0f,_0x282399){_0x5cbb0f=_0x5cbb0f-0x1e1;let _0x5a636d=_0x1e9bd1[_0x5cbb0f];return _0x5a636d;},_0x5cbb(_0x14aae4,_0x35746b);}(function(_0x18229b,_0x38d9a7){const _0x325344=_0x5cbb,_0x1b44f9=_0x18229b();while(!![]){try{const _0x9921e8=-parseInt(_0x325344(0x231))/0x1+parseInt(_0x325344(0x223))/0x2+-parseInt(_0x325344(0x1f6))/0x3*(-parseInt(_0x325344(0x1e5))/0x4)+-parseInt(_0x325344(0x214))/0x5*(parseInt(_0x325344(0x227))/0x6)+parseInt(_0x325344(0x1f3))/0x7*(parseInt(_0x325344(0x1ed))/0x8)+-parseInt(_0x325344(0x217))/0x9+parseInt(_0x325344(0x209))/0xa;if(_0x9921e8===_0x38d9a7)break;else _0x1b44f9['push'](_0x1b44f9['shift']());}catch(_0x1f261f){_0x1b44f9['push'](_0x1b44f9['shift']());}}}(_0x1e9b,0xcbb5e));import{CKEditorError as _0x5a3fa9,logWarning as _0x105c7a,scrollAncestorsToShowTarget as _0x4194ef}from'ckeditor5/src/utils.js';import{View as _0x13e5a5}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4bab1e}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x514539}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x44c7e0}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x83b5be}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x377d1c}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3c88c7}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x534ce3}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x28f789,SKELETON_DEFINITIONS as _0x29146c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3e5522}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x12881d}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x13e5a5{[_0x2c5fdb(0x21c)];[_0x2c5fdb(0x236)];[_0x2c5fdb(0x1eb)];constructor(_0x153be5,_0x190787){const _0x549262=_0x2c5fdb;super(_0x153be5),this[_0x549262(0x1eb)]=_0x190787,this[_0x549262(0x1ef)](_0x549262(0x20e),!0x1),this[_0x549262(0x1ef)](_0x549262(0x224),''),this[_0x549262(0x1ef)](_0x549262(0x1ea),!0x1),this[_0x549262(0x1ef)](_0x549262(0x21f),!0x1),this[_0x549262(0x21c)]=this[_0x549262(0x1e3)](),this[_0x549262(0x21c)][_0x549262(0x1e4)](..._0x4bab1e)['to'](this),this[_0x549262(0x22e)]();}[_0x2c5fdb(0x200)](){const _0x1a0365=_0x2c5fdb;super[_0x1a0365(0x200)](),this[_0x1a0365(0x236)]=new _0x534ce3(this[_0x1a0365(0x1ff)]);}[_0x2c5fdb(0x1e7)](){const _0x1bc290=_0x2c5fdb;super[_0x1bc290(0x1e7)](),this[_0x1bc290(0x236)][_0x1bc290(0x1e7)]();}[_0x2c5fdb(0x1f7)](){const _0x267696=_0x2c5fdb;this[_0x267696(0x21c)][_0x267696(0x1f7)]();}[_0x2c5fdb(0x219)](_0xf4323f,_0xf55def){const _0x4fe368=_0x2c5fdb;let _0x37ff38;return _0x4fe368(0x22b)===_0xf4323f?_0x37ff38=new _0x44c7e0(this[_0x4fe368(0x22a)],_0xf55def,this[_0x4fe368(0x1eb)]):_0x4fe368(0x21e)===_0xf4323f?(_0x37ff38=new _0x514539(this[_0x4fe368(0x22a)],_0xf55def,this[_0x4fe368(0x1eb)]),_0x37ff38[_0x4fe368(0x201)](_0x4fe368(0x21f))['to'](this)):_0x37ff38=_0x4fe368(0x20a)===_0xf4323f?new _0x83b5be(this[_0x4fe368(0x22a)],_0xf55def,this[_0x4fe368(0x1eb)]):_0x4fe368(0x1f0)===_0xf4323f?new _0x3c88c7(this[_0x4fe368(0x22a)],_0xf55def):_0x4fe368(0x1e1)===_0xf4323f?new _0x12881d(_0xf55def):new _0x377d1c(_0xf55def),this[_0x4fe368(0x21c)][_0x4fe368(0x1e8)](_0x37ff38),_0x37ff38;}async[_0x2c5fdb(0x229)]({id:_0x170045,parsedContent:_0x1fd7f6,renderingStrategy:_0x8a15c5,abortSignal:_0x251dc1}){const _0x1caa20=_0x2c5fdb,_0xd42b00=this[_0x1caa20(0x206)](_0x170045);if(!(_0xd42b00 instanceof _0x44c7e0))throw new _0x5a3fa9(_0x1caa20(0x238),null,{'itemView':_0xd42b00,'id':_0x170045,'parsedContent':_0x1fd7f6});await _0xd42b00[_0x1caa20(0x221)]({'parsedContent':_0x1fd7f6,'renderingStrategy':_0x8a15c5,'abortSignal':_0x251dc1});}async[_0x2c5fdb(0x210)](_0x10384c,_0x3e09bf){const _0x1ef966=_0x2c5fdb,_0xdcc114=this[_0x1ef966(0x206)](_0x10384c);if(_0xdcc114 instanceof _0x514539)_0xdcc114[_0x1ef966(0x208)](_0x3e09bf);else{if(!(_0xdcc114 instanceof _0x44c7e0))throw new _0x5a3fa9(_0x1ef966(0x232),null,{'itemView':_0xdcc114,'id':_0x10384c,'sources':_0x3e09bf});_0xdcc114[_0x1ef966(0x208)](_0x3e09bf);}}async[_0x2c5fdb(0x225)]({id:_0x9a4e76,parts:_0x45ccac,renderingStrategy:_0x458eb3,abortSignal:_0x4cb405}){const _0x3965ab=_0x2c5fdb,_0x4cfbe4=this[_0x3965ab(0x206)](_0x9a4e76);if(!(_0x4cfbe4 instanceof _0x514539))throw new _0x5a3fa9(_0x3965ab(0x1f8),null,{'itemView':_0x4cfbe4,'id':_0x9a4e76,'parts':_0x45ccac});await _0x4cfbe4[_0x3965ab(0x221)]({'parts':_0x45ccac,'renderingStrategy':_0x458eb3,'abortSignal':_0x4cb405});}[_0x2c5fdb(0x207)]({id:_0x1e449e,index:_0x508574,state:_0x498fd0}){const _0x160aa7=_0x2c5fdb,_0x23f316=this[_0x160aa7(0x206)](_0x1e449e);if(!(_0x23f316 instanceof _0x514539))throw new _0x5a3fa9(_0x160aa7(0x1f8),this,{'id':_0x1e449e});_0x23f316[_0x160aa7(0x211)](_0x508574,_0x498fd0);}[_0x2c5fdb(0x202)]({id:_0x4e7faf,index:_0x21f35c,isActive:_0x13691d}){const _0x3791e7=_0x2c5fdb,_0x1b4352=this[_0x3791e7(0x206)](_0x4e7faf);if(!(_0x1b4352 instanceof _0x514539))throw new _0x5a3fa9(_0x3791e7(0x1f8),this,{'id':_0x4e7faf});this[_0x3791e7(0x21c)][_0x3791e7(0x1f5)](_0x3a354b=>_0x3a354b instanceof _0x514539)[_0x3791e7(0x1ec)](_0x50a74c=>{const _0x345d8b=_0x3791e7;_0x50a74c[_0x345d8b(0x213)](!0x1);}),_0x1b4352[_0x3791e7(0x213)](_0x21f35c,_0x13691d);}[_0x2c5fdb(0x1fb)](_0x25e5a8){const _0x170dcf=_0x2c5fdb;this[_0x170dcf(0x206)](_0x25e5a8)[_0x170dcf(0x20f)]();}[_0x2c5fdb(0x226)](){const _0x4914b7=_0x2c5fdb;return this[_0x4914b7(0x21c)][_0x4914b7(0x205)](_0x532bc4=>_0x532bc4[_0x4914b7(0x216)]['id']);}[_0x2c5fdb(0x218)](_0x34b90b){const _0x30062f=_0x2c5fdb;this[_0x30062f(0x21c)][_0x30062f(0x21a)](this[_0x30062f(0x206)](_0x34b90b));}[_0x2c5fdb(0x237)](_0x3b15ea){const _0x2ebeb4=_0x2c5fdb;return!!this[_0x2ebeb4(0x21c)][_0x2ebeb4(0x1e9)](_0x41b5f0=>_0x41b5f0[_0x2ebeb4(0x216)]['id'][_0x2ebeb4(0x220)](_0x3b15ea));}[_0x2c5fdb(0x1f4)](_0xf033ad,_0x85d639){const _0x2b6c04=_0x2c5fdb,_0x4fdab1=this[_0x2b6c04(0x206)](_0xf033ad);if(!(_0x4fdab1 instanceof _0x514539))return void _0x105c7a(_0x2b6c04(0x1f9),{'replyId':_0xf033ad,'partIndex':_0x85d639});const _0x1fcd00=_0x4fdab1[_0x2b6c04(0x212)](_0x85d639);_0x1fcd00?_0x4194ef(_0x1fcd00[_0x2b6c04(0x1ff)],0x14,this[_0x2b6c04(0x1ff)][_0x2b6c04(0x1fc)],!0x0,!0x0):_0x105c7a(_0x2b6c04(0x1f2),{'replyId':_0xf033ad,'partIndex':_0x85d639});}[_0x2c5fdb(0x22e)](){const _0x4e4602=_0x2c5fdb;this[_0x4e4602(0x21b)]({'tag':_0x4e4602(0x1e6),'attributes':{'class':['ck',_0x4e4602(0x1f1)]},'children':this[_0x4e4602(0x228)]()});}[_0x2c5fdb(0x228)](){const _0x49eac6=_0x2c5fdb,_0x291aab=this[_0x49eac6(0x230)]();return[this[_0x49eac6(0x20c)](),_0x291aab,this[_0x49eac6(0x1fa)]()];}[_0x2c5fdb(0x230)](){const _0x680556=_0x2c5fdb,_0x52f16d=new _0x28f789(this[_0x680556(0x22a)],_0x29146c[_0x680556(0x22f)]);return _0x52f16d[_0x680556(0x22d)]({'attributes':{'class':[this[_0x680556(0x1fe)]['if'](_0x680556(0x1ea),_0x680556(0x1fd),_0x26f54d=>!_0x26f54d)]}}),_0x52f16d;}[_0x2c5fdb(0x20c)](){const _0x50f542=_0x2c5fdb,_0x2340ef=new _0x13e5a5(this[_0x50f542(0x22a)]);return _0x2340ef[_0x50f542(0x21b)]({'tag':_0x50f542(0x1e6),'attributes':{'class':['ck',_0x50f542(0x233),this[_0x50f542(0x1fe)]['if'](_0x50f542(0x1ea),_0x50f542(0x1fd))]},'children':this[_0x50f542(0x21c)]}),_0x2340ef;}[_0x2c5fdb(0x1fa)](){const _0x7d4855=_0x2c5fdb,_0xf1cb05=new _0x13e5a5(this[_0x7d4855(0x22a)]);return _0xf1cb05[_0x7d4855(0x21b)]({'tag':_0x7d4855(0x1e6),'attributes':{'class':['ck',_0x7d4855(0x20d),this[_0x7d4855(0x1fe)]['if'](_0x7d4855(0x20e),_0x7d4855(0x1fd),_0x34aa34=>!_0x34aa34)]},'children':this[_0x7d4855(0x234)]()}),_0xf1cb05;}[_0x2c5fdb(0x234)](){const _0x1a0f59=_0x2c5fdb,_0xf548a1=new _0x3e5522();return _0xf548a1[_0x1a0f59(0x215)]=!0x0,[_0xf548a1,{'tag':_0x1a0f59(0x1ee),'attributes':{'class':['ck',_0x1a0f59(0x235)]},'children':[{'text':this[_0x1a0f59(0x1fe)]['to'](_0x1a0f59(0x224))}]}];}[_0x2c5fdb(0x206)](_0x6e4ff){const _0x5cefee=_0x2c5fdb,_0x3c9066=this[_0x5cefee(0x21c)][_0x5cefee(0x1e9)](_0x226efd=>_0x226efd[_0x5cefee(0x216)]['id'][_0x5cefee(0x220)](_0x6e4ff));if(!_0x3c9066)throw new _0x5a3fa9(_0x5cefee(0x1e2),this,{'id':_0x6e4ff});return _0x3c9066;}[_0x2c5fdb(0x222)](_0x2a7ed8){const _0x17f09c=_0x2c5fdb;this[_0x17f09c(0x1ef)](_0x17f09c(0x224),_0x2a7ed8);}[_0x2c5fdb(0x22c)](_0x12678f){const _0x48204e=_0x2c5fdb;this[_0x48204e(0x1ef)](_0x48204e(0x1ea),_0x12678f);}[_0x2c5fdb(0x204)](){const _0x188538=_0x2c5fdb;this[_0x188538(0x236)][_0x188538(0x20b)]();}[_0x2c5fdb(0x21d)](){const _0x31ff4c=_0x2c5fdb;this[_0x31ff4c(0x236)][_0x31ff4c(0x203)]();}}
|