@ckeditor/ckeditor5-ai 47.0.0-alpha.8 → 47.0.0-alpha.9
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/build/ai.js +1 -1
- package/dist/index.js +4 -4
- 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/package.json +15 -15
- 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.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- 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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +197 -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/model/aichatmodels.d.ts +30 -0
- package/src/aichat/model/aichatmodels.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.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/aichat/utils/scrollmanager.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 +1 -1
- 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/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/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/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.d.ts +1 -0
- 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.d.ts +49 -0
- 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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +14 -0
- 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/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45e5cc=_0x2cf0;(function(_0x29a380,_0x4cd4b2){const _0x4e1b81=_0x2cf0,_0x3bdccf=_0x29a380();while(!![]){try{const _0x20a984=parseInt(_0x4e1b81(0x1bf))/0x1+-parseInt(_0x4e1b81(0x220))/0x2*(-parseInt(_0x4e1b81(0x17e))/0x3)+-parseInt(_0x4e1b81(0x254))/0x4+-parseInt(_0x4e1b81(0x1c5))/0x5+parseInt(_0x4e1b81(0x19f))/0x6*(parseInt(_0x4e1b81(0x1d1))/0x7)+parseInt(_0x4e1b81(0x1dc))/0x8+parseInt(_0x4e1b81(0x216))/0x9;if(_0x20a984===_0x4cd4b2)break;else _0x3bdccf['push'](_0x3bdccf['shift']());}catch(_0x3fc9f6){_0x3bdccf['push'](_0x3bdccf['shift']());}}}(_0x344d,0xac185));import{ContextPlugin as _0x3158cb,Editor as _0x3918b3}from'ckeditor5/src/core.js';import{CKEditorError as _0x16faf9,logError as _0x50a61f,scrollViewportToShowTarget as _0x2339dd,uid as _0x2d2414}from'ckeditor5/src/utils.js';import{AIConnector as _0x234755}from'../aicore/aiconnector.js';import{AITabs as _0x2cb794}from'../aitabs/aitabs.js';import{AIChatConversation as _0x28056c}from'./model/aichatconversation.js';import{getTranslation as _0x3dfaa9}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x38ead6}from'../aicore/aiediting.js';import{AIChatModels as _0x47dfa3}from'./model/aichatmodels.js';function _0x2cf0(_0x37b36a,_0x4ac155){const _0x344d49=_0x344d();return _0x2cf0=function(_0x2cf0ab,_0x17a7ec){_0x2cf0ab=_0x2cf0ab-0x177;let _0xb26161=_0x344d49[_0x2cf0ab];return _0xb26161;},_0x2cf0(_0x37b36a,_0x4ac155);}import{getEditorFromContext as _0x3cc6c6}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x151f22,DATA_ID_MODEL_ATTRIBUTE as _0x39eb9b}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x27c536}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x16a2b5,getMinimalSelection as _0x1d20c2,getSuggestionPartsFromReply as _0x1a511c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x503dc3,_DetachOperation as _0x10e379}from'ckeditor5/src/engine.js';import{findOne as _0x2327f3,getAttribute as _0x2777d2,serialize as _0x30a863,Document as _0x284939,findByAttribute as _0x5885d0}from'../aicore/utils/htmlparser.js';import{IconAI as _0xf4914d}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x2c138a}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x385be5}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3158cb{[_0x45e5cc(0x204)];[_0x45e5cc(0x2b3)];[_0x45e5cc(0x24f)];[_0x45e5cc(0x1ef)];[_0x45e5cc(0x235)]=new Map();[_0x45e5cc(0x27c)]=null;[_0x45e5cc(0x2ab)]=!0x1;static get[_0x45e5cc(0x1a3)](){return[_0x234755,_0x385be5,_0x151f22];}static get[_0x45e5cc(0x269)](){const _0x4e3a0c=_0x45e5cc;return _0x4e3a0c(0x237);}static get[_0x45e5cc(0x28c)](){return!0x0;}static get[_0x45e5cc(0x1a8)](){return!0x0;}[_0x45e5cc(0x282)](){const _0x153806=_0x45e5cc;this[_0x153806(0x2b3)]=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x2ca)),this[_0x153806(0x24f)]=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x2c9)),this[_0x153806(0x204)]=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x206)),this[_0x153806(0x1ef)]=new _0x47dfa3({'connector':this[_0x153806(0x2b3)]});const _0x23e263=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x1b9));this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x24e),()=>{const _0xe988ec=_0x153806;this[_0xe988ec(0x272)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x22d),(_0x577c6f,_0x200b39)=>{const _0x2eace0=_0x153806;this[_0x2eace0(0x279)]({'userMessage':_0x200b39});}),this[_0x153806(0x262)](_0x23e263,_0x153806(0x2ad),(_0x328681,_0x570167)=>{const _0x50c604=_0x153806;this[_0x50c604(0x209)](_0x570167);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1da),()=>{const _0x3aecd8=_0x153806;_0x23e263[_0x3aecd8(0x222)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1f6),async()=>{const _0x4fc2e0=_0x153806;await this[_0x4fc2e0(0x218)](),await this[_0x4fc2e0(0x21f)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2bc),()=>{const _0x5aabf5=_0x153806;this[_0x5aabf5(0x1fe)]?.[_0x5aabf5(0x2a5)](_0x3dfaa9(this[_0x5aabf5(0x251)][_0x5aabf5(0x23c)],_0x5aabf5(0x29f)));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x23e),(_0xd9d066,_0x48c912)=>{const _0x149efa=_0x153806;this[_0x149efa(0x1fe)]?.[_0x149efa(0x1f5)](Array[_0x149efa(0x1e3)](_0x48c912));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2a8),(_0x5174d5,_0xc8913)=>{const _0x4d2bc2=_0x153806;this[_0x4d2bc2(0x1fe)]?.[_0x4d2bc2(0x2a8)](_0xc8913);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1df),(_0x332678,_0x129e2d)=>{const _0x355777=_0x153806;this[_0x355777(0x1fe)]?.[_0x355777(0x1df)](_0x129e2d[_0x355777(0x184)],_0x129e2d[_0x355777(0x2c7)]);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1a7),(_0x1a1301,_0x5503ee)=>{const _0x39ba09=_0x153806;this[_0x39ba09(0x1d9)](_0x5503ee);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2be),(_0x247303,_0x772b06)=>{const _0x219a18=_0x153806;this[_0x219a18(0x1fe)]?.[_0x219a18(0x2be)](_0x772b06[_0x219a18(0x2a1)],_0x772b06[_0x219a18(0x270)],_0x772b06[_0x219a18(0x19e)]);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x247),()=>{const _0x54a8ab=_0x153806;this[_0x54a8ab(0x1ac)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x295),()=>{const _0x29eca4=_0x153806;this[_0x29eca4(0x1e7)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x248),(_0x866eeb,_0x4b448f)=>{const _0x263ddb=_0x153806;this[_0x263ddb(0x1fe)]?.[_0x263ddb(0x2cc)](_0x4b448f);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x18e),(_0x4a176a,{replyId:_0x5ed2fc})=>{const _0x479f94=_0x153806;console[_0x479f94(0x2b6)](_0x479f94(0x255),_0x5ed2fc);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1a6),(_0x1aa0e7,{replyId:_0x226a29})=>{const _0x29905a=_0x153806;console[_0x29905a(0x2b6)](_0x29905a(0x27b),_0x226a29);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2a2),(_0x1838a8,_0x398c21)=>{const _0x52b085=_0x153806;this[_0x52b085(0x251)][_0x52b085(0x26b)][_0x52b085(0x191)](_0x385be5)[_0x52b085(0x2b5)](),this[_0x52b085(0x21c)](_0x398c21);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x224),(_0x3b5f46,{replyId:_0x83ac5b,partIndex:_0x5daf05})=>{const _0x255fa8=_0x153806;this[_0x255fa8(0x2ab)]=this[_0x255fa8(0x24f)][_0x255fa8(0x1b1)],this[_0x255fa8(0x17b)](_0x83ac5b,_0x5daf05);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x186),(_0x380b7a,{replyId:_0x2df470,partIndex:_0x3f2c0a})=>{const _0x58cd64=_0x153806,_0x4835d9=this[_0x58cd64(0x1cf)](_0x2df470,_0x3f2c0a);_0x4835d9&&_0x58cd64(0x298)!=_0x4835d9[_0x58cd64(0x2b4)][_0x58cd64(0x2b9)][_0x58cd64(0x2ba)]&&this[_0x58cd64(0x204)][_0x58cd64(0x26e)]([_0x4835d9[_0x58cd64(0x2b4)]],_0x58cd64(0x213));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x252),()=>{const _0x53c388=_0x153806;this[_0x53c388(0x204)][_0x53c388(0x260)](_0x53c388(0x213));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x27d),(_0x4a4c3c,_0x3b2bdd)=>{const _0x5b0687=_0x153806;this[_0x5b0687(0x251)][_0x5b0687(0x26b)][_0x5b0687(0x191)](_0x385be5)[_0x5b0687(0x2b5)](),this[_0x5b0687(0x296)](_0x3b2bdd);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1b7),async(_0x27b229,_0x248dcd)=>{const _0x13f71a=_0x153806,{reply:_0x5366e9}=this[_0x13f71a(0x229)](_0x248dcd[_0x13f71a(0x1ee)]),_0x2f2d3b=_0x3cc6c6(this[_0x13f71a(0x251)]),_0x3b575e=_0x1a511c({'editor':_0x2f2d3b,'changeGroups':_0x5366e9[_0x13f71a(0x1f0)],'documentContextContent':_0x5366e9[_0x13f71a(0x18a)],'showDiff':_0x248dcd[_0x13f71a(0x1b1)]});await this[_0x13f71a(0x24f)][_0x13f71a(0x1b0)]({'id':_0x5366e9['id'],'parts':_0x3b575e,'renderingStrategy':_0x13f71a(0x20f)});}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x245),(_0x5d7bec,{replyId:_0x2c8095,partIndex:_0x14b468})=>{const _0x55bebd=_0x153806;this[_0x55bebd(0x27c)]?.[_0x55bebd(0x1ee)]==_0x2c8095&&this[_0x55bebd(0x27c)]?.[_0x55bebd(0x2bd)]==_0x14b468&&this[_0x55bebd(0x251)][_0x55bebd(0x26b)][_0x55bebd(0x191)](_0x385be5)[_0x55bebd(0x2b5)]();const {reply:_0x3c2009}=this[_0x55bebd(0x229)](_0x2c8095);_0x3c2009[_0x55bebd(0x1d2)](_0x14b468,_0x55bebd(0x1ae)),this[_0x55bebd(0x204)][_0x55bebd(0x260)](_0x55bebd(0x213));});}async[_0x45e5cc(0x1ab)](){const _0x3b2a44=_0x45e5cc;this[_0x3b2a44(0x251)]instanceof _0x3918b3?this[_0x3b2a44(0x29b)](this[_0x3b2a44(0x251)]):this[_0x3b2a44(0x262)](this[_0x3b2a44(0x251)][_0x3b2a44(0x280)],_0x3b2a44(0x240),(_0x285955,_0x3daca7)=>{const _0x15307f=_0x3b2a44;_0x3daca7['on'](_0x15307f(0x265),()=>{const _0x260eda=_0x15307f;this[_0x260eda(0x29b)](_0x3daca7);});}),await this[_0x3b2a44(0x272)]();}[_0x45e5cc(0x21c)](_0x2aba21){const _0x36cae8=_0x45e5cc,_0x357c6e=_0x3cc6c6(this[_0x36cae8(0x251)]);if(!_0x357c6e[_0x36cae8(0x26b)][_0x36cae8(0x1e0)](_0x36cae8(0x1ba)))return;const _0x5eb2ae=this[_0x36cae8(0x251)][_0x36cae8(0x26b)][_0x36cae8(0x191)](_0x36cae8(0x2b1)),{reply:_0x1fbd23,interaction:_0x2718c}=this[_0x36cae8(0x229)](_0x2aba21[_0x36cae8(0x1ee)]),_0x3a4b4b=this[_0x36cae8(0x1cf)](_0x2aba21[_0x36cae8(0x1ee)],_0x2aba21[_0x36cae8(0x2bd)]),_0x3d4a2f=void 0x0!==_0x2aba21[_0x36cae8(0x2bd)]?[_0x1fbd23[_0x36cae8(0x1f0)][_0x2aba21[_0x36cae8(0x2bd)]]]:_0x1fbd23[_0x36cae8(0x1f0)][_0x36cae8(0x180)](_0x24f729=>_0x36cae8(0x22e)==_0x24f729[_0x36cae8(0x21d)]),_0x6a360f=_0x3d4a2f[_0x36cae8(0x1cc)](_0x26e58c=>_0x1fbd23[_0x36cae8(0x1f0)][_0x36cae8(0x266)](_0x26e58c));_0x6a360f[_0x36cae8(0x211)](_0x45cfad=>_0x1fbd23[_0x36cae8(0x1d2)](_0x45cfad,_0x36cae8(0x1cd)));const _0x10396b=_0x27c536({'editor':_0x357c6e,'reply':_0x1fbd23,'interaction':_0x2718c,'groups':_0x3d4a2f,'transform':!0x0,'documentCompare':_0x5eb2ae,'documentCompareOptions':{'anchor':_0x36cae8(0x196),'markDeletions':!0x0}});let _0x3b2c6b;_0x3a4b4b&&this[_0x36cae8(0x29c)](_0x3a4b4b[_0x36cae8(0x2b4)]),_0x357c6e[_0x36cae8(0x24b)][_0x36cae8(0x287)](_0x33f133=>{const _0x1eca77=_0x36cae8;_0x3b2c6b=_0x33f133[_0x1eca77(0x28f)],_0x357c6e[_0x1eca77(0x26b)][_0x1eca77(0x191)](_0x1eca77(0x1ba))[_0x1eca77(0x217)](_0x10396b),this[_0x1eca77(0x204)][_0x1eca77(0x260)](_0x1eca77(0x213));}),this[_0x36cae8(0x235)][_0x36cae8(0x242)](_0x3b2c6b,{'interactionId':_0x2718c['id'],'replyId':_0x1fbd23['id'],'indexes':_0x6a360f[_0x36cae8(0x257)]()}),this[_0x36cae8(0x2a0)](_0x1fbd23);}[_0x45e5cc(0x296)](_0x404728){const _0x269166=_0x45e5cc,_0x16d349=_0x3cc6c6(this[_0x269166(0x251)]),_0x2019cd=this[_0x269166(0x251)][_0x269166(0x26b)][_0x269166(0x191)](_0x151f22),{reply:_0x4b4c69,interaction:_0x406bf8}=this[_0x269166(0x229)](_0x404728[_0x269166(0x1ee)]),_0x279062=this[_0x269166(0x1cf)](_0x404728[_0x269166(0x1ee)],_0x404728[_0x269166(0x2bd)]),_0x431470=void 0x0!==_0x404728[_0x269166(0x2bd)]?[_0x4b4c69[_0x269166(0x1f0)][_0x404728[_0x269166(0x2bd)]]]:_0x4b4c69[_0x269166(0x1f0)][_0x269166(0x180)](_0x66654e=>_0x269166(0x22e)==_0x66654e[_0x269166(0x21d)]),_0x4abca1=_0x431470[_0x269166(0x1cc)](_0x2a4cf2=>_0x4b4c69[_0x269166(0x1f0)][_0x269166(0x266)](_0x2a4cf2));_0x4abca1[_0x269166(0x211)](_0x3cf057=>_0x4b4c69[_0x269166(0x1d2)](_0x3cf057,_0x269166(0x1cd)));const _0x2e05cd=_0x27c536({'editor':_0x16d349,'reply':_0x4b4c69,'interaction':_0x406bf8,'groups':_0x431470,'transform':!0x0,'documentCompare':_0x2019cd,'documentCompareOptions':{'anchor':_0x269166(0x196),'markDeletions':!0x1}});let _0x589abf;_0x279062&&this[_0x269166(0x29c)](_0x279062[_0x269166(0x2b4)]),_0x16d349[_0x269166(0x24b)][_0x269166(0x287)](_0x4f5118=>{const _0x119970=_0x269166;_0x589abf=_0x4f5118[_0x119970(0x28f)];for(const _0x52fb93 of _0x2e05cd)_0x52fb93[_0x119970(0x2ce)]=_0x16d349[_0x119970(0x24b)][_0x119970(0x29d)][_0x119970(0x24c)],_0x4f5118[_0x119970(0x28f)][_0x119970(0x1ea)](_0x52fb93),_0x16d349[_0x119970(0x24b)][_0x119970(0x1d3)](_0x52fb93);}),this[_0x269166(0x235)][_0x269166(0x242)](_0x589abf,{'interactionId':_0x406bf8['id'],'replyId':_0x4b4c69['id'],'indexes':_0x4abca1[_0x269166(0x257)]()}),this[_0x269166(0x2a0)](_0x4b4c69);}[_0x45e5cc(0x17b)](_0x4b02a2,_0x3437b3){const _0x11ca39=_0x45e5cc,_0x13dc98=_0x3cc6c6(this[_0x11ca39(0x251)]),_0x4eba88=this[_0x11ca39(0x1cf)](_0x4b02a2,_0x3437b3),_0x107b1b=this[_0x11ca39(0x251)][_0x11ca39(0x26b)][_0x11ca39(0x191)](_0x385be5);if(!_0x4eba88)return void _0x107b1b[_0x11ca39(0x2b5)]();const {range:_0x25ba22,currentIndex:_0x48b61a,previousIndex:_0x4fcbc2,nextIndex:_0x110cda}=_0x4eba88;if(this[_0x11ca39(0x27c)]?.[_0x11ca39(0x1ee)]==_0x4b02a2&&this[_0x11ca39(0x27c)]?.[_0x11ca39(0x2bd)]==_0x48b61a)return;this[_0x11ca39(0x27c)]={'replyId':_0x4b02a2,'partIndex':_0x48b61a};const _0x3d72b2=new _0x2c138a(_0x13dc98[_0x11ca39(0x23c)],{'showDiff':this[_0x11ca39(0x2ab)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x11ca39(0x17d)},'hideHeader':!0x0}),{reply:_0x4a793c}=this[_0x11ca39(0x229)](_0x4b02a2),_0xedc03=_0x1a511c({'editor':_0x13dc98,'changeGroups':[_0x4a793c[_0x11ca39(0x1f0)][_0x48b61a]],'documentContextContent':_0x4a793c[_0x11ca39(0x18a)],'showDiff':this[_0x11ca39(0x2ab)]});_0x3d72b2[_0x11ca39(0x183)]({'parts':_0xedc03,'renderingStrategy':_0x11ca39(0x20f)});const _0x3c2a0e=_0x48b61a!==_0x4fcbc2;this[_0x11ca39(0x29c)](_0x25ba22,!0x0),_0x107b1b[_0x11ca39(0x2c2)]({'index':_0x48b61a,'title':_0x3dfaa9(this[_0x11ca39(0x251)][_0x11ca39(0x23c)],_0x11ca39(0x1aa),(_0x48b61a+0x1)[_0x11ca39(0x1d4)]()),'icon':_0xf4914d,'mainView':_0x3d72b2,'showRotator':_0x3c2a0e,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x25ba22]}),this[_0x11ca39(0x24f)][_0x11ca39(0x250)](_0x4b02a2,_0x48b61a),this[_0x11ca39(0x262)](_0x3d72b2,_0x11ca39(0x1b7),(_0x1c038e,{showDiff:_0x473d83})=>{const _0x27110c=_0x11ca39;this[_0x27110c(0x2ab)]=_0x473d83;const {reply:_0x511e4a}=this[_0x27110c(0x229)](_0x4b02a2),_0x20a3e6=_0x1a511c({'editor':_0x13dc98,'changeGroups':[_0x511e4a[_0x27110c(0x1f0)][_0x48b61a]],'documentContextContent':_0x511e4a[_0x27110c(0x18a)],'showDiff':_0x473d83});_0x3d72b2[_0x27110c(0x183)]({'parts':_0x20a3e6,'renderingStrategy':_0x27110c(0x20f)});}),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x27d),()=>{const _0x57e3ba=_0x11ca39;this[_0x57e3ba(0x296)]({'replyId':_0x4b02a2,'partIndex':_0x48b61a}),_0x3c2a0e?this[_0x57e3ba(0x17b)](_0x4b02a2,_0x110cda):_0x107b1b[_0x57e3ba(0x2b5)]();}),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x2a2),()=>{const _0x146db3=_0x11ca39;this[_0x146db3(0x21c)]({'replyId':_0x4b02a2,'partIndex':_0x48b61a}),_0x3c2a0e?this[_0x146db3(0x17b)](_0x4b02a2,_0x110cda):_0x107b1b[_0x146db3(0x2b5)]();}),_0x3c2a0e&&(this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x1bd),()=>{const _0x231b9e=_0x11ca39;this[_0x231b9e(0x17b)](_0x4b02a2,_0x110cda);}),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x239),()=>{const _0x19fe2c=_0x11ca39;this[_0x19fe2c(0x17b)](_0x4b02a2,_0x4fcbc2);})),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x231),()=>{const _0x4d785e=_0x11ca39;this[_0x4d785e(0x25a)](_0x107b1b),this[_0x4d785e(0x25a)](_0x3d72b2),this[_0x4d785e(0x27c)]=null;});}[_0x45e5cc(0x1cf)](_0x484b98,_0x4e5228){const _0x5f49ab=_0x45e5cc,_0x1cab8e=_0x3cc6c6(this[_0x5f49ab(0x251)]),{reply:_0x5dd20b,interaction:_0x475959}=this[_0x5f49ab(0x229)](_0x484b98),_0x25bb0e=_0x5dd20b[_0x5f49ab(0x1f0)][_0x5f49ab(0x180)](_0x142cad=>_0x5f49ab(0x22e)==_0x142cad[_0x5f49ab(0x21d)]),_0x14389b=_0x25bb0e[_0x5f49ab(0x1cc)](_0x5c1fe8=>_0x5dd20b[_0x5f49ab(0x1f0)][_0x5f49ab(0x266)](_0x5c1fe8));void 0x0===_0x4e5228&&(_0x4e5228=_0x14389b[0x0]);const _0x1e63ac=_0x14389b[_0x5f49ab(0x266)](_0x4e5228);if(-0x1==_0x1e63ac)return null;const _0x3a83c8=0x0==_0x1e63ac?_0x14389b[_0x14389b[_0x5f49ab(0x190)]-0x1]:_0x14389b[_0x1e63ac-0x1],_0x562b87=_0x1e63ac==_0x14389b[_0x5f49ab(0x190)]-0x1?_0x14389b[0x0]:_0x14389b[_0x1e63ac+0x1],_0x3ec794=_0x25bb0e[_0x1e63ac],_0x311da8=new _0x284939([]),_0x478a9d=new _0x284939([]);for(const _0x2b0826 of _0x3ec794[_0x5f49ab(0x26a)])if(_0x5f49ab(0x297)!=_0x2b0826[_0x5f49ab(0x1c9)]&&_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x2b0826[_0x5f49ab(0x18c)][_0x5f49ab(0x17c)](!0x0)),_0x5f49ab(0x286)!=_0x2b0826[_0x5f49ab(0x1c9)]){const _0xccb8fb=_0x2327f3(_0x392936=>_0x2777d2(_0x392936,_0x5f49ab(0x2bb))==_0x2b0826['id'],_0x5dd20b[_0x5f49ab(0x18a)],!0x0);_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0xccb8fb[_0x5f49ab(0x17c)](!0x0));}if(0x0==_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x190)]){if(_0x3ec794[_0x5f49ab(0x26a)][0x0][_0x5f49ab(0x1b4)]){const _0x3e3650=_0x5885d0(_0x5f49ab(0x2bb),_0x3ec794[_0x5f49ab(0x26a)][0x0][_0x5f49ab(0x1b4)],_0x5dd20b[_0x5f49ab(0x18a)]);_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x1af)](_0x3e3650[_0x5f49ab(0x17c)](!0x0)),_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x1af)](_0x3e3650[_0x5f49ab(0x17c)](!0x0)),_0x3e3650[_0x5f49ab(0x228)]&&(_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x3e3650[_0x5f49ab(0x228)][_0x5f49ab(0x17c)](!0x0)),_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x3e3650[_0x5f49ab(0x228)][_0x5f49ab(0x17c)](!0x0)));}else{const _0x4742d1=_0x5dd20b[_0x5f49ab(0x18a)][_0x5f49ab(0x26d)][0x0];if(!_0x4742d1)return null;_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x4742d1[_0x5f49ab(0x17c)](!0x0)),_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x4742d1[_0x5f49ab(0x17c)](!0x0));}}const _0x132388=_0x475959[_0x5f49ab(0x1f9)](),_0x26cca2=_0x1cab8e[_0x5f49ab(0x1f2)][_0x5f49ab(0x1f3)](_0x132388[_0x5f49ab(0x28a)]),_0x1d188c=_0x30a863(_0x311da8),_0x402783=_0x1cab8e[_0x5f49ab(0x1f2)][_0x5f49ab(0x1f3)](_0x1d188c),_0x10c314=_0x1cab8e[_0x5f49ab(0x1f2)][_0x5f49ab(0x1f3)](_0x1d188c),_0x20863a=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x2af)](_0x402783,0x0),_0x12b5ce=_0x30a863(_0x478a9d),_0x4da7b4={'anchor':_0x20863a,'markDeletions':!0x1},_0x35f590=_0x1cab8e[_0x5f49ab(0x26b)][_0x5f49ab(0x191)](_0x151f22)[_0x5f49ab(0x193)](_0x1d188c,_0x12b5ce,_0x4da7b4)[_0x5f49ab(0x22f)]();if(!_0x35f590[_0x5f49ab(0x190)])return null;_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x287)](_0x42ff38=>{const _0x454de4=_0x5f49ab;for(const _0x393465 of _0x35f590)if(_0x454de4(0x194)==_0x393465[_0x454de4(0x1c9)]){const _0x2e2f54=_0x393465[_0x454de4(0x25b)],_0x4ab9a6=_0x393465[_0x454de4(0x1d0)],_0x2bb8d6=new _0x10e379(_0x2e2f54,_0x4ab9a6);_0x42ff38[_0x454de4(0x28f)][_0x454de4(0x1ea)](_0x2bb8d6),_0x1cab8e[_0x454de4(0x24b)][_0x454de4(0x1d3)](_0x2bb8d6);}else _0x454de4(0x284)!==_0x393465[_0x454de4(0x1c9)]&&(_0x393465[_0x454de4(0x2ce)]=null,_0x393465[_0x454de4(0x215)]=!0x1,_0x42ff38[_0x454de4(0x28f)][_0x454de4(0x1ea)](_0x393465),_0x1cab8e[_0x454de4(0x24b)][_0x454de4(0x1d3)](_0x393465));});const _0x2ace6e=_0x1d20c2(_0x1cab8e,_0x35f590,_0x402783);_0x16a2b5(_0x1cab8e[_0x5f49ab(0x24b)],_0x2ace6e);const _0x2cdd73=_0x2ace6e[_0x5f49ab(0x273)]()[_0x5f49ab(0x275)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)](),_0x44c0ab=_0x2ace6e[_0x5f49ab(0x273)]()[_0x5f49ab(0x263)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)](),_0x3147e9=[];let _0x135aa8=_0x402783,_0x223870=_0x10c314;for(let _0x586169=0x0;_0x586169<_0x44c0ab[_0x5f49ab(0x190)];_0x586169++){const _0x279d86=_0x135aa8[_0x5f49ab(0x1fa)]-_0x44c0ab[_0x586169];_0x3147e9[_0x586169]=_0x223870[_0x5f49ab(0x1fa)]-_0x279d86,_0x135aa8=_0x135aa8[_0x5f49ab(0x26f)](_0x44c0ab[_0x586169]),_0x223870=_0x223870[_0x5f49ab(0x26f)](_0x3147e9[_0x586169]);}const _0x293432=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x24a)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x10c314,_0x2cdd73),_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x10c314,_0x3147e9)),_0x1cca13=_0x10c314[_0x5f49ab(0x1c0)](0x0)[_0x5f49ab(0x20c)](_0x39eb9b),_0x1d7c76=Array[_0x5f49ab(0x1e3)](_0x26cca2[_0x5f49ab(0x227)]())[_0x5f49ab(0x21e)](_0x158f1a=>_0x158f1a[_0x5f49ab(0x20c)](_0x39eb9b)==_0x1cca13)[_0x5f49ab(0x179)](),_0x3582cd=_0x293432[_0x5f49ab(0x275)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)](),_0x4ef354=_0x293432[_0x5f49ab(0x263)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)]();_0x3582cd[0x0]=_0x1d7c76[0x0]+_0x3582cd[0x0],_0x4ef354[0x0]=_0x1d7c76[0x0]+_0x4ef354[0x0];let _0x1aff40=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x24a)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x29d)][_0x5f49ab(0x285)](),_0x3582cd),_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x29d)][_0x5f49ab(0x285)](),_0x4ef354));const _0xd4a72f=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x29d)][_0x5f49ab(0x271)][_0x5f49ab(0x22f)](_0x132388[_0x5f49ab(0x24c)]);for(const _0x1c325c of _0xd4a72f)_0x1aff40=_0x503dc3[_0x5f49ab(0x19d)](_0x1aff40[_0x5f49ab(0x19b)](_0x1c325c));return{'range':_0x1aff40,'previousIndex':_0x3a83c8,'nextIndex':_0x562b87,'currentIndex':_0x4e5228};}[_0x45e5cc(0x29b)](_0x27b487){const _0xee507b=_0x45e5cc;if(!_0x27b487[_0xee507b(0x26b)][_0xee507b(0x1e0)](_0xee507b(0x29e)))return;const _0x2645a2=_0x27b487[_0xee507b(0x2ac)][_0xee507b(0x191)](_0xee507b(0x22b)),_0x5ad454=_0x27b487[_0xee507b(0x2ac)][_0xee507b(0x191)](_0xee507b(0x283));this[_0xee507b(0x262)](_0x2645a2,_0xee507b(0x1ad),(_0x536b78,_0x3eadbe,_0x1fb493)=>{const _0x35049b=_0xee507b,_0x3c3867=this[_0x35049b(0x235)][_0x35049b(0x191)](_0x3eadbe);if(!_0x3c3867)return;const _0x42505f=this[_0x35049b(0x1fe)][_0x35049b(0x1e2)](_0x3c3867[_0x35049b(0x2a3)])[_0x35049b(0x18d)](_0x3c3867[_0x35049b(0x1ee)]);_0x3c3867[_0x35049b(0x299)][_0x35049b(0x211)](_0xb7422a=>_0x42505f[_0x35049b(0x1d2)](_0xb7422a,_0x35049b(0x22e))),this[_0x35049b(0x235)][_0x35049b(0x181)](_0x3eadbe),this[_0x35049b(0x235)][_0x35049b(0x242)](_0x1fb493,_0x3c3867);}),this[_0xee507b(0x262)](_0x5ad454,_0xee507b(0x1ad),(_0x4662fc,_0x3d56c3,_0x2595f2)=>{const _0x3f6c1f=_0xee507b,_0x48abdf=this[_0x3f6c1f(0x235)][_0x3f6c1f(0x191)](_0x3d56c3);if(!_0x48abdf)return;const _0x755339=this[_0x3f6c1f(0x1fe)][_0x3f6c1f(0x1e2)](_0x48abdf[_0x3f6c1f(0x2a3)])[_0x3f6c1f(0x18d)](_0x48abdf[_0x3f6c1f(0x1ee)]);_0x48abdf[_0x3f6c1f(0x299)][_0x3f6c1f(0x211)](_0x710b59=>_0x755339[_0x3f6c1f(0x1d2)](_0x710b59,_0x3f6c1f(0x1cd))),this[_0x3f6c1f(0x235)][_0x3f6c1f(0x181)](_0x3d56c3),this[_0x3f6c1f(0x235)][_0x3f6c1f(0x242)](_0x2595f2,_0x48abdf);});}async[_0x45e5cc(0x1ed)](_0x477c2e){const _0x429978=_0x45e5cc;this[_0x429978(0x251)][_0x429978(0x26b)][_0x429978(0x191)](_0x385be5)[_0x429978(0x2b5)](),this[_0x429978(0x24f)][_0x429978(0x187)](_0x429978(0x20f)),this[_0x429978(0x24f)][_0x429978(0x2b7)](!0x0),await this[_0x429978(0x218)]();try{const _0x2ea007=this[_0x429978(0x251)][_0x429978(0x26b)][_0x429978(0x191)](_0x2cb794);this[_0x429978(0x25f)]('\x20'),_0x2ea007[_0x429978(0x2b8)][_0x429978(0x195)](_0x429978(0x2cd)),await this[_0x429978(0x272)](_0x477c2e);const {sessionId:_0x442979}=this[_0x429978(0x204)][_0x429978(0x277)]();await this[_0x429978(0x1fe)][_0x429978(0x1c2)](_0x477c2e,_0x442979),this[_0x429978(0x1fe)][_0x429978(0x2a7)]()&&this[_0x429978(0x1fe)][_0x429978(0x2a5)](_0x3dfaa9(this[_0x429978(0x251)][_0x429978(0x23c)],_0x429978(0x29f)));}catch(_0xd1e228){console[_0x429978(0x1ce)](_0x429978(0x29a),_0xd1e228);}finally{this[_0x429978(0x24f)][_0x429978(0x187)](_0x429978(0x192)),this[_0x429978(0x24f)][_0x429978(0x2b7)](!0x1);}}[_0x45e5cc(0x28e)](_0x3624d0){const _0x3c50b1=_0x45e5cc;this[_0x3c50b1(0x1fe)]['id']===_0x3624d0&&this[_0x3c50b1(0x272)]();}async[_0x45e5cc(0x1b2)](){const _0x2ee722=_0x45e5cc,_0x1fa18b=this[_0x2ee722(0x204)][_0x2ee722(0x268)]();this[_0x2ee722(0x1fe)]?.[_0x2ee722(0x1f1)](_0x1fa18b),this[_0x2ee722(0x1fe)]?.[_0x2ee722(0x2a5)](_0x3dfaa9(this[_0x2ee722(0x251)][_0x2ee722(0x23c)],_0x2ee722(0x29f)));}[_0x45e5cc(0x208)](){const _0x1fb5f2=_0x45e5cc;this[_0x1fb5f2(0x1fe)]?.[_0x1fb5f2(0x2ae)]();}[_0x45e5cc(0x261)](){const _0x1c0438=_0x45e5cc;this[_0x1c0438(0x24f)][_0x1c0438(0x261)]();}async[_0x45e5cc(0x24e)](){const _0x5b8c6d=_0x45e5cc;await this[_0x5b8c6d(0x272)]();}async[_0x45e5cc(0x20b)]({message:_0x43ec18,quickActionData:_0x180f86}){const _0x4dbd48=_0x45e5cc;await this[_0x4dbd48(0x279)]({'userMessage':_0x43ec18,'quickActionData':_0x180f86});}[_0x45e5cc(0x214)](){const _0x53254b=_0x45e5cc,_0x5acb75=this[_0x53254b(0x251)][_0x53254b(0x293)][_0x53254b(0x191)](_0x53254b(0x198));if(!_0x5acb75)throw new _0x16faf9(_0x53254b(0x17a),this);return _0x5acb75;}async[_0x45e5cc(0x272)](_0x928679){const _0x58a981=_0x45e5cc;try{this[_0x58a981(0x24f)][_0x58a981(0x2a9)](),await this[_0x58a981(0x1dd)](_0x928679);}catch(_0x20a9c0){_0x50a61f(_0x58a981(0x1a5),_0x20a9c0),this[_0x58a981(0x1fe)]=void 0x0,this[_0x58a981(0x24f)][_0x58a981(0x1e1)]();}}async[_0x45e5cc(0x1dd)](_0x1d9c04){const _0x139c2a=_0x45e5cc,_0x2ad8bd=this[_0x139c2a(0x251)][_0x139c2a(0x26b)][_0x139c2a(0x191)](_0x385be5);let _0x5c75b4;_0x2ad8bd[_0x139c2a(0x292)]&&_0x2ad8bd[_0x139c2a(0x2b5)](),_0x5c75b4=_0x1d9c04||!this[_0x139c2a(0x1fe)]?this[_0x139c2a(0x251)][_0x139c2a(0x293)][_0x139c2a(0x191)](_0x139c2a(0x2a6)):this[_0x139c2a(0x1fe)][_0x139c2a(0x207)]['id'],await this[_0x139c2a(0x218)]();const _0x31c609=this[_0x139c2a(0x214)](),_0x271752=_0x1d9c04||_0x2d2414();this[_0x139c2a(0x1fe)]=new _0x28056c({'connector':this[_0x139c2a(0x2b3)],'chatModels':this[_0x139c2a(0x1ef)],'defaultModelId':_0x5c75b4,'conversationId':_0x271752,'group':_0x31c609,'getEditor':()=>_0x3cc6c6(this[_0x139c2a(0x251)])}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x210),(_0x495a9e,_0x3eb520)=>{const _0x1fad67=_0x139c2a;_0x3eb520[_0x1fad67(0x1a2)]=this[_0x1fad67(0x234)](_0x3eb520[_0x1fad67(0x1a2)],this[_0x1fad67(0x251)][_0x1fad67(0x293)][_0x1fad67(0x191)](_0x1fad67(0x1cb))),this[_0x1fad67(0x24f)][_0x1fad67(0x21b)](_0x3eb520),this[_0x1fad67(0x24f)][_0x1fad67(0x1a4)](),this[_0x1fad67(0x24f)][_0x1fad67(0x219)](),this[_0x1fad67(0x24f)][_0x1fad67(0x22c)](),_0x1d9c04||(this[_0x1fad67(0x24f)][_0x1fad67(0x256)](),this[_0x1fad67(0x1fe)]?.[_0x1fad67(0x2a5)](_0x3dfaa9(this[_0x1fad67(0x251)][_0x1fad67(0x23c)],_0x1fad67(0x29f))));}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x205),(_0x14514f,_0x2ac49e)=>{const _0x144b06=_0x139c2a;this[_0x144b06(0x24f)][_0x144b06(0x1f4)](_0x2ac49e[_0x144b06(0x289)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2cb),(_0x231c50,_0x16eb05)=>{const _0x2b68a4=_0x139c2a;this[_0x2b68a4(0x24f)][_0x2b68a4(0x202)](_0x16eb05);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x28d),()=>{const _0x2842b1=_0x139c2a;this[_0x2842b1(0x24f)][_0x2842b1(0x1b3)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2c0),()=>{const _0xa89a6b=_0x139c2a;this[_0xa89a6b(0x24f)][_0xa89a6b(0x1b3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x25c),(_0x5af0cd,_0x43bc3f)=>{const _0x2c8321=_0x139c2a;this[_0x2c8321(0x24f)][_0x2c8321(0x1d6)](_0x43bc3f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x291),(_0xee4183,_0x402002)=>{const _0x5d4419=_0x139c2a;this[_0x5d4419(0x24f)][_0x5d4419(0x1d6)](_0x402002,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2cf),()=>{const _0x46e120=_0x139c2a;this[_0x46e120(0x24f)][_0x46e120(0x27e)]();}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1a0),async()=>{const _0x4cd462=_0x139c2a;await this[_0x4cd462(0x24f)][_0x4cd462(0x221)]();}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x225),(_0x2c0657,_0x2a1a52)=>{const _0x5b727c=_0x139c2a;this[_0x5b727c(0x24f)][_0x5b727c(0x243)](_0x2a1a52['id']);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1bc),(_0x4ed305,_0x25d785,_0x27fa35)=>{const _0x33b0da=_0x139c2a;this[_0x33b0da(0x25f)](_0x25d785,_0x27fa35);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x223),(_0x27e5fd,_0xb298ed)=>{const _0x5aa101=_0x139c2a;_0x5aa101(0x259)===_0xb298ed[_0x5aa101(0x1c9)]?this[_0x5aa101(0x24f)][_0x5aa101(0x23a)](_0xb298ed):this[_0x5aa101(0x24f)][_0x5aa101(0x200)](_0xb298ed);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x182),async(_0x2aea7d,_0x3f6a41,_0x351cbd)=>{const _0x32c6ac=_0x139c2a;await this[_0x32c6ac(0x1e8)]({'reply':_0x3f6a41,'changeGroups':_0x351cbd});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2b2),(_0x4424fb,{reply:_0x5efe25,index:_0x176c32,state:_0x2c767c})=>{const _0x5d92a1=_0x139c2a;this[_0x5d92a1(0x24f)][_0x5d92a1(0x294)]({'id':_0x5efe25['id'],'index':_0x176c32,'state':_0x2c767c});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2c5),(_0x52d171,_0x4a9368)=>{const _0x56c1fd=_0x139c2a;if(this[_0x56c1fd(0x24f)][_0x56c1fd(0x1ff)](_0x4a9368[_0x56c1fd(0x203)],_0x4a9368[_0x56c1fd(0x23f)]),_0x56c1fd(0x1b5)===_0x4a9368[_0x56c1fd(0x203)][_0x56c1fd(0x1c9)]){const _0xa6185c=[..._0x3cc6c6(this[_0x56c1fd(0x251)])[_0x56c1fd(0x24b)][_0x56c1fd(0x29d)][_0x56c1fd(0x1b5)][_0x56c1fd(0x27f)]()];this[_0x56c1fd(0x204)][_0x56c1fd(0x26e)](_0xa6185c,_0x56c1fd(0x233)+this[_0x56c1fd(0x1fe)]?.['id']);}}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x177),(_0x31acd7,_0x2e3152)=>{const _0x3fefa0=_0x139c2a;this[_0x3fefa0(0x24f)][_0x3fefa0(0x1a7)](_0x2e3152[_0x3fefa0(0x1fc)]),_0x3fefa0(0x1e4)==_0x2e3152[_0x3fefa0(0x1fc)]&&this[_0x3fefa0(0x208)](),_0x3fefa0(0x1b5)===_0x2e3152[_0x3fefa0(0x1c9)]&&this[_0x3fefa0(0x204)][_0x3fefa0(0x260)](_0x3fefa0(0x233)+this[_0x3fefa0(0x1fe)]?.['id']);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x17f),(_0x66f75a,_0x30621c)=>{const _0xbcce4=_0x139c2a;this[_0xbcce4(0x24f)][_0xbcce4(0x264)](_0x30621c[_0xbcce4(0x203)][_0xbcce4(0x1fc)],_0x30621c[_0xbcce4(0x23f)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1b6),(_0x31b958,_0x7ddbab)=>{const _0x40f854=_0x139c2a;this[_0x40f854(0x24f)][_0x40f854(0x2c6)](_0x7ddbab[_0x40f854(0x249)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x20e),(_0xc85c7,_0xe573c9)=>{const _0x4ee86c=_0x139c2a;this[_0x4ee86c(0x24f)][_0x4ee86c(0x1b8)](_0xe573c9[_0x4ee86c(0x267)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x230),(_0x5824d3,_0x3abcb0)=>{const _0x5b015a=_0x139c2a;this[_0x5b015a(0x24f)][_0x5b015a(0x1fb)](_0x3abcb0[_0x5b015a(0x2a1)],_0x3abcb0[_0x5b015a(0x184)],_0x3abcb0[_0x5b015a(0x1c1)],_0x3abcb0[_0x5b015a(0x19e)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x274),(_0x34e8b0,_0x5af76b)=>{const _0xc15e45=_0x139c2a;this[_0xc15e45(0x24f)][_0xc15e45(0x1eb)](_0x5af76b[_0xc15e45(0x2a1)],_0x5af76b[_0xc15e45(0x253)],_0x5af76b[_0xc15e45(0x290)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1d8),(_0x33d22f,_0x5f4847)=>{const _0x3fa006=_0x139c2a;this[_0x3fa006(0x24f)][_0x3fa006(0x288)](_0x5f4847);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1bb),(_0x46f589,_0x635b3b)=>{const _0x1d4921=_0x139c2a;this[_0x1d4921(0x24f)][_0x1d4921(0x281)](_0x635b3b[_0x1d4921(0x207)],_0x635b3b[_0x1d4921(0x27a)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1ce),(_0x302208,{error:_0x58fd8d,interactionId:_0x588da6,fileName:_0x2715fa,url:_0x139a24,sourceId:_0x8254b8,sourceLabel:_0xdfc5ca})=>{const _0x111b0a=_0x139c2a,_0x56a629=_0x588da6?_0x588da6+':'+_0x2d2414():_0x2d2414();_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x25e))?this[_0x111b0a(0x24f)][_0x111b0a(0x26c)]({'staticMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x236)),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1ec))||_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1a5))?(this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x178)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d)):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1f7))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x2b0),_0x2715fa),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1d7))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x19c),_0x139a24),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x2c8))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x1fd)),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x20d))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x1c3)),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x23d))?(_0x8254b8&&this[_0x111b0a(0x24f)][_0x111b0a(0x1c8)](_0x8254b8),this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x188),_0xdfc5ca||_0x111b0a(0x184)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d)):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x232))?(this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x2c1)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d)):(this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x201)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d));}),await this[_0x139c2a(0x1fe)][_0x139c2a(0x282)](this[_0x139c2a(0x251)][_0x139c2a(0x293)][_0x139c2a(0x191)](_0x139c2a(0x1be))),_0x1d9c04||await this[_0x139c2a(0x1fe)][_0x139c2a(0x275)]();}async[_0x45e5cc(0x279)]({userMessage:_0x4dd081,quickActionData:_0x3d425d}){const _0x493238=_0x45e5cc;if(!this[_0x493238(0x1fe)])throw new _0x16faf9(_0x493238(0x238));this[_0x493238(0x1fe)][_0x493238(0x185)]()&&await this[_0x493238(0x1fe)][_0x493238(0x1c4)](this[_0x493238(0x204)][_0x493238(0x277)]()),this[_0x493238(0x1fe)]['id']&&this[_0x493238(0x1fe)][_0x493238(0x197)]&&await this[_0x493238(0x1fe)][_0x493238(0x2d0)]({'userMessage':_0x4dd081,'quickActionData':_0x3d425d}),this[_0x493238(0x1e5)]();}[_0x45e5cc(0x1e5)](){const _0x385360=_0x45e5cc,_0x24d1ca=_0x3cc6c6(this[_0x385360(0x251)])[_0x385360(0x24b)],_0x831f7e=Array[_0x385360(0x1e3)](_0x24d1ca[_0x385360(0x1a1)][_0x385360(0x1ca)](_0x38ead6));_0x24d1ca[_0x385360(0x287)](_0x5de4a6=>{const _0x2a1899=_0x385360;_0x831f7e[_0x2a1899(0x211)](_0x154c81=>_0x5de4a6[_0x2a1899(0x24d)](_0x154c81));});}[_0x45e5cc(0x18b)](){const _0x28942e=_0x45e5cc;console[_0x28942e(0x2b6)](_0x28942e(0x18f));}[_0x45e5cc(0x209)](_0x5e9321){const _0x16d385=_0x45e5cc;this[_0x16d385(0x24f)][_0x16d385(0x1e9)](_0x5e9321);}[_0x45e5cc(0x1d5)](_0x109714){const _0x3444c9=_0x45e5cc;_0x50a61f(_0x109714[_0x3444c9(0x189)]);}[_0x45e5cc(0x1d9)](_0x30c5d8){const _0x270c0b=_0x45e5cc;this[_0x270c0b(0x1fe)]?.[_0x270c0b(0x2c4)](_0x30c5d8);}[_0x45e5cc(0x1ac)](){const _0x33ab6f=_0x45e5cc;this[_0x33ab6f(0x1fe)]?.[_0x33ab6f(0x247)]();}[_0x45e5cc(0x1e7)](){const _0xd4d44f=_0x45e5cc;this[_0xd4d44f(0x1fe)]?.[_0xd4d44f(0x295)]();}[_0x45e5cc(0x229)](_0x47023e){const _0x451e4c=_0x45e5cc,[_0x392c7a,_0x486bfd]=_0x47023e[_0x451e4c(0x1f8)](':'),_0x38cb6a=this[_0x451e4c(0x1fe)][_0x451e4c(0x1e2)](_0x392c7a),_0x30d756=_0x38cb6a[_0x451e4c(0x18d)](_0x486bfd);return{'interaction':_0x38cb6a,'reply':_0x30d756};}[_0x45e5cc(0x29c)](_0x26b2e1,_0x1bc453=!0x1){const _0x31a0b6=_0x45e5cc,_0x31fa02=_0x3cc6c6(this[_0x31a0b6(0x251)]),_0x357f44={'target':_0x31fa02[_0x31a0b6(0x258)][_0x31a0b6(0x2b8)][_0x31a0b6(0x2aa)][_0x31a0b6(0x1c6)](_0x31fa02[_0x31a0b6(0x258)][_0x31a0b6(0x246)][_0x31a0b6(0x1c7)](_0x26b2e1)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1bc453};_0x1bc453&&(_0x357f44[_0x31a0b6(0x226)]=!0x0),_0x2339dd(_0x357f44);}[_0x45e5cc(0x25f)](_0x789f93,_0x3696b8=!0x1){const _0x28816e=_0x45e5cc;this[_0x28816e(0x24f)][_0x28816e(0x1bc)](_0x789f93||_0x3dfaa9(this[_0x28816e(0x251)][_0x28816e(0x23c)],_0x28816e(0x23b)),_0x3696b8);}[_0x45e5cc(0x234)](_0x46ea30,_0x81f92f){const _0x210630=_0x45e5cc;let _0xd9ab61;if(_0x81f92f){_0xd9ab61=[];const _0x3456b0=_0x210630(0x199)==typeof _0x81f92f?[_0x81f92f[_0x210630(0x1de)]()]:_0x81f92f[_0x210630(0x1cc)](_0x1002ad=>_0x1002ad[_0x210630(0x1de)]());for(const _0x18fa78 of _0x3456b0)for(const _0x49cc4b of _0x46ea30)(_0x49cc4b['id'][_0x210630(0x1de)]()===_0x18fa78||_0x49cc4b[_0x210630(0x1db)][_0x210630(0x1de)]()===_0x18fa78||_0x49cc4b[_0x210630(0x1e6)][_0x210630(0x1de)]()===_0x18fa78||_0x49cc4b['id'][_0x210630(0x1de)]()[_0x210630(0x2bf)](_0x18fa78))&&_0xd9ab61[_0x210630(0x21a)](_0x49cc4b);}else _0xd9ab61=_0x46ea30;return _0xd9ab61;}async[_0x45e5cc(0x1e8)]({reply:_0x5601ef,changeGroups:_0x570ec4,renderingStrategy:_0x311f77}){const _0x27d549=_0x45e5cc,{id:_0x43b641,isDone:_0x4d67d6,type:_0x1662ad,parsedContent:_0x5cca3b}=_0x5601ef;if(_0x27d549(0x278)===_0x1662ad){const _0x4329db=_0x3cc6c6(this[_0x27d549(0x251)]),_0x51229a=_0x1a511c({'editor':_0x4329db,'showDiff':this[_0x27d549(0x24f)][_0x27d549(0x1b1)],'changeGroups':_0x570ec4,'documentContextContent':_0x5601ef[_0x27d549(0x18a)]});await this[_0x27d549(0x24f)][_0x27d549(0x1b0)]({'id':_0x43b641,'parts':_0x51229a,'renderingStrategy':_0x311f77,'isDone':_0x4d67d6});}else _0x27d549(0x259)===_0x1662ad&&await this[_0x27d549(0x24f)][_0x27d549(0x276)]({'id':_0x43b641,'parsedContent':_0x5cca3b,'renderingStrategy':_0x311f77,'isDone':_0x4d67d6});_0x4d67d6&&_0x5601ef[_0x27d549(0x1a9)][_0x27d549(0x190)]>0x0&&this[_0x27d549(0x24f)][_0x27d549(0x244)](_0x43b641,_0x5601ef[_0x27d549(0x1a9)]);}async[_0x45e5cc(0x218)](){const _0x4a14fd=_0x45e5cc,_0x15ff42=this[_0x4a14fd(0x1fe)]?.[_0x4a14fd(0x241)];_0x15ff42&&(_0x15ff42[_0x4a14fd(0x2a4)](),this[_0x4a14fd(0x24f)][_0x4a14fd(0x212)](_0x15ff42));}async[_0x45e5cc(0x21f)](){const _0x49967d=_0x45e5cc,_0x425ad8=this[_0x49967d(0x1fe)]?.[_0x49967d(0x241)];if(_0x425ad8){for await(const _0x1162ac of _0x425ad8[_0x49967d(0x22a)])await this[_0x49967d(0x1e8)]({'reply':_0x1162ac,'changeGroups':_0x1162ac[_0x49967d(0x1f0)],'renderingStrategy':_0x49967d(0x20f)});}}[_0x45e5cc(0x2a0)](_0x3702f3){const _0x284f5b=_0x45e5cc,_0x15acd9={'positiveCount':_0x3702f3[_0x284f5b(0x1f0)][_0x284f5b(0x180)](_0x265013=>_0x284f5b(0x1cd)===_0x265013[_0x284f5b(0x21d)])[_0x284f5b(0x190)],'totalCount':_0x3702f3[_0x284f5b(0x1f0)][_0x284f5b(0x190)]},_0x3e8cf5=this[_0x284f5b(0x1fe)][_0x284f5b(0x1e2)](_0x3702f3[_0x284f5b(0x2a3)])[_0x284f5b(0x19a)];this[_0x284f5b(0x2b3)][_0x284f5b(0x2c3)](this[_0x284f5b(0x1fe)]['id'],_0x3e8cf5,_0x15acd9);}}function _0x344d(){const _0x56b3d7=['revert','rejected','unshift','updateFeedItemAIReplySuggestionContent','showDiff','addSelectionToChatContext','setLoadingMessage','anchorId','selection','contextSent','toggleSuggestionDisplayMode','setAddContextOptions','AITabs','TrackChangesEditing','modelSelected','setConversationTitle','showNext','ai.chat.context','705185qINtpG','getChild','resources','load','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','updateCurrentDocumentInContext','6086830ScpyLU','viewRangeToDom','toViewRange','closeSourceResourceBalloon','type','getMarkersGroup','ai.chat.models.displayedModels','map','accepted','error','_getDocumentRangeForReplyChanges','howMany','14zfkUrr','setChangeGroupState','applyOperation','toString','_logError','addFeedInteractionHeader','ai-chat-url-upload-failed','capabilitiesUpdated','_removeFromContext','resizeTabs','name','4515080cMYofq','_handleStartConversation','toLocaleLowerCase','addResourceToContext','has','disableControls','getInteraction','from','current-document','_removeAISelectionMarkers','provider','_toggleReasoning','_updateReplyContent','setIsMaximized','addOperation','updateResourceState','ai-chat-conversation-init-failed','loadConversation','replyId','_aiChatModels','changeGroups','addSelectionToContext','data','parse','setIsUploadInProgress','addFilesToContext','abortPromptStream','ai-chat-file-upload-failed','split','getDocumentContext','maxOffset','populateSourceResourceBalloon','uiId','AI_CHAT_CONTEXT_INVALID_DATA','activeConversation','addContextItem','addFeedItemAISuggestion','AI_CHAT_GENERIC_ERROR','addFeedItemUserMessage','contextItem','_aiEditing','uploadProgressChanged','AIEditing','selectedModel','removeSelectionFromChatContext','_setIsMaximized','path','sendMessage','getAttribute','ai-chat-context-unsupported-type','addContextOptionsChanged','static','conversationInitialized','forEach','stopInteraction','ai-chat-controller-mouse-over','getGroupId','isDocumentOperation','7268319SwPxBW','_applyOperationsAsSuggestions','_stopLastInteraction','clearPendingContextUI','push','createConversation','_insertSuggestion','state','find','_flushLastInteractionUI','2GTMDLg','finishInteraction','resize','replyCreated','showChangeInText','interactionDestroyed','alignToTop','getChildren','nextSibling','getInteractionAndReplyById','replies','undo','clearConversationContextUI','sendUserMessage','pending','getOperations','sourceResourcesLoaded','dialogClosed','ai-chat-resource-load-failed','ai-conversation-','_filterModels','_batchToChanges','AI_CHAT_ABORTED_MESSAGE','AIChatController','ai-chat-controller-no-active-conversation','showPrevious','addFeedItemAIReply','AI_CHAT_UNTITLED_CONVERSATION','locale','ai-chat-source-resources-load-failed','addFileToContext','isLoading','add','lastInteraction','set','removeFeedInteraction','updateFeedItemAIReplySources','rejectSuggestion','mapper','toggleWebSearch','selectModel','contextItems','createRange','model','version','removeMarker','startConversation','_aiChatUi','scrollFeedToSuggestion','context','mouseLeaveSuggestion','resourceId','4922260tfQjNR','Liked\x20response','resetConversationTitle','slice','editing','text-delta','stopListening','sourcePosition','webSearchFinished','addFeedItemError','ai-request-aborted','updateConversationTitle','hideFakeVisualSelection','focusPromptInput','listenTo','end','setContextItemLoading','ready','indexOf','options','getSelectionText','pluginName','changes','plugins','addFeedItemStaticMessage','children','showFakeVisualSelection','getChildAtOffset','query','history','_startConversationSafely','getFirstRange','resourceStateChanged','start','updateFeedItemAIReplyContent','getDocumentData','modification-delta','_handleUIUserMessage','isDisabled','Disliked\x20response','_previewedChangeGroup','applySuggestion','startInteraction','getRanges','editors','setSelectedModel','init','redo','marker','getRoot','new','change','updateCapabilities','isUploadInProgress','content','createPositionFromPath','isOfficialPlugin','webSearchStarted','handleRemovedConversation','batch','isInContext','reasoningFinished','isOpen','config','updateFeedItemAIReplySuggestionPartState','toggleReasoning','_applySuggestion','removed','$graveyard','indexes','Failed\x20to\x20load\x20conversation','_integrateEditor','_scrollToSuggestionRange','document','Undo','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_updateRatings','sourceId','insertSuggestion','interactionId','stop','addCurrentDocumentToContext','ai.chat.models.defaultModelId','isCurrentDocumentInConversation','addUrlToContext','enableControls','domConverter','_balloonShowDiff','commands','resizedTabs','removeSelectionFromContext','createPositionAt','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','DocumentCompare','replyChangeGroupStateUpdated','_aiConnector','range','close','log','toggleLoadingSkeleton','view','root','rootName','data-id','addDocumentToContext','partIndex','loadSourceResources','startsWith','reasoningStarted','AI_CHAT_RESOURCE_LOAD_FAILED','open','upsertAIChatRating','removeFromContext','contextItemAdded','setConversationContext','resource','ai-chat-context-invalid-data','AIChatUI','AIConnector','interactionCreated','setModel','chat','baseVersion','interactionStarted','handleUserInteraction','contextItemRemoved','AI_CHAT_UNABLE_TO_START_CONVERSATION','getPath','ai-chat-missing-channel-id','_openBalloonFor','cloneNode','full','2264523XUAYDv','contextItemLoadingEnded','filter','delete','replyContentUpdated','updateContent','source','isCurrentDocumentInContext','mouseOverSuggestion','setFeedItemRenderingStrategy','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','message','documentContextContent','_showConversationHistory','node','getReply','like','Showing\x20conversation\x20history...','length','get','streaming','getDiff','remove','activateTab','main','isStarted','collaboration.channelId','string','messageId','getTransformedByOperation','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_createFromRanges','uid','962490eJMCgU','interactionFinished','markers','availableModels','requires','resetMessageInput','ai-chat-conversation-start-failed','dislike','removeContextItem','isPremiumPlugin','sources','AI_BALLOON_HEADER_TITLE','afterInit','_toggleWebSearch'];_0x344d=function(){return _0x56b3d7;};return _0x344d();}
|
|
23
|
+
const _0x4f553e=_0x25e6;(function(_0x124070,_0x1c866b){const _0x277b1d=_0x25e6,_0x460264=_0x124070();while(!![]){try{const _0x3c48c5=parseInt(_0x277b1d(0xd6))/0x1*(parseInt(_0x277b1d(0x99))/0x2)+-parseInt(_0x277b1d(0x139))/0x3+parseInt(_0x277b1d(0x196))/0x4*(parseInt(_0x277b1d(0xe1))/0x5)+parseInt(_0x277b1d(0x1c0))/0x6*(-parseInt(_0x277b1d(0x162))/0x7)+parseInt(_0x277b1d(0x1b9))/0x8*(parseInt(_0x277b1d(0x93))/0x9)+parseInt(_0x277b1d(0x16c))/0xa*(-parseInt(_0x277b1d(0xa9))/0xb)+parseInt(_0x277b1d(0x1aa))/0xc;if(_0x3c48c5===_0x1c866b)break;else _0x460264['push'](_0x460264['shift']());}catch(_0x4efcd4){_0x460264['push'](_0x460264['shift']());}}}(_0x4333,0x8a24a));import{ContextPlugin as _0x3418f4,Editor as _0x277810}from'ckeditor5/src/core.js';import{CKEditorError as _0x26389e,logError as _0x24ffd0,scrollViewportToShowTarget as _0xa319c1,uid as _0x2cbd4a}from'ckeditor5/src/utils.js';function _0x4333(){const _0x2662fc=['setSelectedModel','messageId','ai.chat.models.displayedModels','51205UmQRRE','getRoot','addResourceToContext','static','ai-chat-url-upload-failed','remove','_applySuggestion','sendMessage','_handleStartConversation','_openBalloonFor','afterInit','removeMarker','getInteractionAndReplyById','updateCapabilities','chat','_scrollToSuggestionRange','AI_CHAT_UNABLE_TO_START_CONVERSATION','split','ai-chat-controller-mouse-over','addFeedItemStaticMessage','Liked\x20response','from','updateResourceState','addContextOptionsChanged','applyOperation','replies','webSearchStarted','init','documentContextContent','toggleWebSearch','indexes','applySuggestion','ai-chat-controller-no-active-conversation','contextItemLoadingEnded','listenTo','AITabs','uiId','clearPendingContextUI','reasoningFinished','ai-chat-conversation-start-failed','addSelectionToContext','accepted','toViewRange','focusPromptInput','selectedModel','37491pCTDyo','setContextItemLoading','_batchToChanges','setAddContextOptions','map','replyChangeGroupStateUpdated','modelSelected','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','toggleSuggestionDisplayMode','change','availableModels','422500fGAimN','data','resize','updateCurrentDocumentInContext','interactionDestroyed','activateTab','toString','_removeAISelectionMarkers','baseVersion','contextItems','alignToTop','_logError','createRange','resources','AI_CHAT_ABORTED_MESSAGE','like','getMarkersGroup','revert','current-document','resizeTabs','addSelectionToChatContext','getChild','Disliked\x20response','sourceId','handleUserInteraction','isUploadInProgress','addContextItem','anchorId','find','model','getFirstRange','showChangeInText','addFeedItemAISuggestion','enableControls','isOpen','has','ai-chat-context-unsupported-type','_startConversationSafely','upsertAIChatRating','_handleUIUserMessage','_aiChatModels','setFeedItemRenderingStrategy','partIndex','contextItemAdded','AI_CHAT_RESOURCE_LOAD_FAILED','createPositionAt','_updateRatings','activeConversation','parse','slice','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','uploadProgressChanged','viewRangeToDom','isOfficialPlugin','setIsUploadInProgress','rejectSuggestion','finishInteraction','Undo','stopInteraction','lastInteraction','interactionId','stop','AI_BALLOON_HEADER_TITLE','resetMessageInput','howMany','removed','delete','updateFeedItemAIReplySources','updateContent','mapper','rootName','createPositionFromPath','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','maxOffset','isInContext','scrollFeedToSuggestion','provider','getDocumentData','removeSelectionFromChatContext','toggleReasoning','sourcePosition','_aiChatUi','_showConversationHistory','log','_insertSuggestion','2213364dxhDmd','_toggleWebSearch','isStarted','Showing\x20conversation\x20history...','updateFeedItemAIReplySuggestionContent','ai-chat-context-invalid-data','mouseOverSuggestion','length','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-chat-missing-channel-id','toggleLoadingSkeleton','showPrevious','AIChatController','dislike','replyContentUpdated','addFileToContext','resizedTabs','main','getAttribute','getReply','filter','resourceId','addFilesToContext','TrackChangesEditing','get','reasoningStarted','forEach','AI_CHAT_UNTITLED_CONVERSATION','contextSent','children','changeGroups','start','conversationInitialized','undo','text-delta','resource','nextSibling','query','selectModel','DocumentCompare','showDiff','7aPwzpD','_getDocumentRangeForReplyChanges','insertSuggestion','disableControls','sourceResourcesLoaded','ai.chat.context','_updateReplyContent','plugins','_aiEditing','abortPromptStream','1990uJHfbS','ai.chat.models.defaultModelId','loadConversation','message','addFeedInteractionHeader','push','getInteraction','AIChatUI','_integrateEditor','name','removeContextItem','ai-chat-file-upload-failed','handleRemovedConversation','version','$graveyard','domConverter','getDocumentContext','_applyOperationsAsSuggestions','requires','closeSourceResourceBalloon','add','uid','path','updateConversationTitle','addUrlToContext','Failed\x20to\x20load\x20conversation','interactionFinished','set','range','populateSourceResourceBalloon','type','getRanges','_filterModels','getOperations','startConversation','_balloonShowDiff','setConversationTitle','setIsMaximized','context','addFeedItemUserMessage','addFeedItemError','sendUserMessage','20BwwCMm','getGroupId','modification-delta','isPremiumPlugin','isCurrentDocumentInContext','addDocumentToContext','getChildren','pluginName','view','AI_CHAT_CONTEXT_INVALID_DATA','interactionCreated','editing','resetConversationTitle','options','root','_previewedChangeGroup','_flushLastInteractionUI','marker','new','cloneNode','27385476rykvKY','indexOf','removeSelectionFromContext','toLocaleLowerCase','loadSourceResources','capabilitiesUpdated','setLoadingMessage','AIConnector','error','_createFromRanges','createConversation','_toggleReasoning','locale','ai-conversation-','isCurrentDocumentInConversation','2504ppxiaY','showFakeVisualSelection','getChildAtOffset','_removeFromContext','unshift','interactionStarted','resourceStateChanged','5608818SyUUQs','load','AI_CHAT_GENERIC_ERROR','setModel','getTransformedByOperation','end','state','pending','setConversationContext','contextItem','isLoading','webSearchFinished','config','addFeedItemAIReply','node','getDiff','data-id','updateFeedItemAIReplySuggestionPartState','addOperation','AIEditing','redo','isDisabled','document','sources','source','rejected','getPath','collaboration.channelId','addCurrentDocumentToContext','dialogClosed','full','markers','startsWith','_stopLastInteraction','showNext','setChangeGroupState','selection','stopListening','streaming','updateFeedItemAIReplyContent','getSelectionText','batch','hideFakeVisualSelection','mouseLeaveSuggestion','_setIsMaximized','content','startInteraction','ai-chat-resource-load-failed','8919AqlPCN','history','ai-request-aborted','close','ready','commands','8UBHhUv','ai-chat-conversation-init-failed','removeFeedInteraction','removeFromContext','ai-chat-source-resources-load-failed','replyId','_aiConnector','changes','clearConversationContextUI','replyCreated','open','isDocumentOperation','string'];_0x4333=function(){return _0x2662fc;};return _0x4333();}import{AIConnector as _0x47b9e8}from'../aicore/aiconnector.js';import{AITabs as _0x74747e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1ed617}from'./model/aichatconversation.js';import{getTranslation as _0x5269c3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x58a634}from'../aicore/aiediting.js';import{AIChatModels as _0x56d036}from'./model/aichatmodels.js';import{getEditorFromContext as _0x10405a}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x5d9df3,DATA_ID_MODEL_ATTRIBUTE as _0x53944a}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1ad353}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x5248cd,getMinimalSelection as _0x2fe0c8,getSuggestionPartsFromReply as _0x3580fd}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x584fd6,_DetachOperation as _0x321ea8}from'ckeditor5/src/engine.js';import{findOne as _0x1956c3,getAttribute as _0x1f6704,serialize as _0x1996f6,Document as _0x5b6d5a,findByAttribute as _0x219e9c}from'../aicore/utils/htmlparser.js';function _0x25e6(_0x2ae543,_0x3eb6cb){const _0x43335f=_0x4333();return _0x25e6=function(_0x25e6df,_0x15afed){_0x25e6df=_0x25e6df-0x88;let _0x477b58=_0x43335f[_0x25e6df];return _0x477b58;},_0x25e6(_0x2ae543,_0x3eb6cb);}import{IconAI as _0x3ad88e}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3e84cd}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x16a9ea}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3418f4{[_0x4f553e(0x16a)];[_0x4f553e(0x9f)];[_0x4f553e(0x135)];[_0x4f553e(0x109)];[_0x4f553e(0xd8)]=new Map();[_0x4f553e(0x1a5)]=null;[_0x4f553e(0x18f)]=!0x1;static get[_0x4f553e(0x17e)](){return[_0x47b9e8,_0x16a9ea,_0x5d9df3];}static get[_0x4f553e(0x19d)](){const _0xeaa5bf=_0x4f553e;return _0xeaa5bf(0x145);}static get[_0x4f553e(0x119)](){return!0x0;}static get[_0x4f553e(0x199)](){return!0x0;}[_0x4f553e(0xc4)](){const _0x2ca398=_0x4f553e;this[_0x2ca398(0x9f)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x1b1)),this[_0x2ca398(0x135)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x173)),this[_0x2ca398(0x16a)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x1d3)),this[_0x2ca398(0x109)]=new _0x56d036({'connector':this[_0x2ca398(0x9f)]});const _0x120948=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0xcc));this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x18e),()=>{const _0x369ba1=_0x2ca398;this[_0x369ba1(0x106)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x195),(_0x533c8c,_0x31dfad)=>{const _0x180ae9=_0x2ca398;this[_0x180ae9(0x108)]({'userMessage':_0x31dfad});}),this[_0x2ca398(0xcb)](_0x120948,_0x2ca398(0x149),(_0x56b057,_0x140940)=>{const _0x245a26=_0x2ca398;this[_0x245a26(0x8f)](_0x140940);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xf4),()=>{const _0x3889dc=_0x2ca398;_0x120948[_0x3889dc(0xe3)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x16b),async()=>{const _0x37aab0=_0x2ca398;await this[_0x37aab0(0x1e1)](),await this[_0x37aab0(0x1a6)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x19b),()=>{const _0x65e268=_0x2ca398;this[_0x65e268(0x110)]?.[_0x65e268(0x1dc)](_0x5269c3(this[_0x65e268(0x192)][_0x65e268(0x1b6)],_0x65e268(0x113)));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x148),(_0x1d14b5,_0x10ac3c)=>{const _0x5563f5=_0x2ca398;this[_0x5563f5(0x110)]?.[_0x5563f5(0x14f)](Array[_0x5563f5(0xbe)](_0x10ac3c));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x184),(_0x413fd6,_0x3caf88)=>{const _0x2a4acb=_0x2ca398;this[_0x2a4acb(0x110)]?.[_0x2a4acb(0x184)](_0x3caf88);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xab),(_0xb53588,_0x1bf97d)=>{const _0x521e23=_0x2ca398;this[_0x521e23(0x110)]?.[_0x521e23(0xab)](_0x1bf97d[_0x521e23(0x1d8)],_0x1bf97d[_0x521e23(0x15c)]);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x176),(_0x589f31,_0x521b90)=>{const _0x18ee29=_0x2ca398;this[_0x18ee29(0x1bc)](_0x521b90);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x1ae),(_0x1d0e9f,_0x14e0ed)=>{const _0x3b6ff2=_0x2ca398;this[_0x3b6ff2(0x110)]?.[_0x3b6ff2(0x1ae)](_0x14e0ed[_0x3b6ff2(0xf8)],_0x14e0ed[_0x3b6ff2(0x15e)],_0x14e0ed[_0x3b6ff2(0x181)]);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xc6),()=>{const _0xdc7e12=_0x2ca398;this[_0xdc7e12(0x13a)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x133),()=>{const _0x451dd6=_0x2ca398;this[_0x451dd6(0x1b5)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x15f),(_0x4b3a4d,_0x28db44)=>{const _0x1c9139=_0x2ca398;this[_0x1c9139(0x110)]?.[_0x1c9139(0x1c3)](_0x28db44);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xf0),(_0x3f7395,{replyId:_0x392b3b})=>{const _0x99a17e=_0x2ca398;console[_0x99a17e(0x137)](_0x99a17e(0xbd),_0x392b3b);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x146),(_0x29d9db,{replyId:_0x17776c})=>{const _0x215e04=_0x2ca398;console[_0x215e04(0x137)](_0x215e04(0xf7),_0x17776c);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x164),(_0x274205,_0x428b05)=>{const _0x322858=_0x2ca398;this[_0x322858(0x192)][_0x322858(0x169)][_0x322858(0x151)](_0x16a9ea)[_0x322858(0x96)](),this[_0x322858(0x138)](_0x428b05);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x100),(_0x2607df,{replyId:_0x3ea529,partIndex:_0x2d90a4})=>{const _0x41b9da=_0x2ca398;this[_0x41b9da(0x18f)]=this[_0x41b9da(0x135)][_0x41b9da(0x161)],this[_0x41b9da(0xb2)](_0x3ea529,_0x2d90a4);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x13f),(_0x1650da,{replyId:_0x20e702,partIndex:_0x4b873e})=>{const _0x3589a1=_0x2ca398,_0x503135=this[_0x3589a1(0x163)](_0x20e702,_0x4b873e);_0x503135&&_0x3589a1(0x17a)!=_0x503135[_0x3589a1(0x188)][_0x3589a1(0x1a4)][_0x3589a1(0x12a)]&&this[_0x3589a1(0x16a)][_0x3589a1(0x1ba)]([_0x503135[_0x3589a1(0x188)]],_0x3589a1(0xbb));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x8e),()=>{const _0x4a76ee=_0x2ca398;this[_0x4a76ee(0x16a)][_0x4a76ee(0x8d)](_0x4a76ee(0xbb));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xc8),(_0x2d004f,_0x68a48c)=>{const _0x4cc344=_0x2ca398;this[_0x4cc344(0x192)][_0x4cc344(0x169)][_0x4cc344(0x151)](_0x16a9ea)[_0x4cc344(0x96)](),this[_0x4cc344(0xaf)](_0x68a48c);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xde),async(_0x1f5b85,_0x2a9f39)=>{const _0x22be74=_0x2ca398,{reply:_0x17a61f}=this[_0x22be74(0xb5)](_0x2a9f39[_0x22be74(0x9e)]),_0x1c624e=_0x10405a(this[_0x22be74(0x192)]),_0x29a132=_0x3580fd({'editor':_0x1c624e,'changeGroups':_0x17a61f[_0x22be74(0x157)],'documentContextContent':_0x17a61f[_0x22be74(0xc5)],'showDiff':_0x2a9f39[_0x22be74(0x161)]});await this[_0x22be74(0x135)][_0x22be74(0x13d)]({'id':_0x17a61f['id'],'parts':_0x29a132,'renderingStrategy':_0x22be74(0xac)});}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x11b),(_0x8646f2,{replyId:_0x503c98,partIndex:_0x907407})=>{const _0x19b6e8=_0x2ca398;this[_0x19b6e8(0x1a5)]?.[_0x19b6e8(0x9e)]==_0x503c98&&this[_0x19b6e8(0x1a5)]?.[_0x19b6e8(0x10b)]==_0x907407&&this[_0x19b6e8(0x192)][_0x19b6e8(0x169)][_0x19b6e8(0x151)](_0x16a9ea)[_0x19b6e8(0x96)]();const {reply:_0x8ded17}=this[_0x19b6e8(0xb5)](_0x503c98);_0x8ded17[_0x19b6e8(0x1e3)](_0x907407,_0x19b6e8(0x1d9)),this[_0x19b6e8(0x16a)][_0x19b6e8(0x8d)](_0x19b6e8(0xbb));});}async[_0x4f553e(0xb3)](){const _0x1d3d01=_0x4f553e;this[_0x1d3d01(0x192)]instanceof _0x277810?this[_0x1d3d01(0x174)](this[_0x1d3d01(0x192)]):this[_0x1d3d01(0xcb)](this[_0x1d3d01(0x192)][_0x1d3d01(0x115)],_0x1d3d01(0x180),(_0x27d9d0,_0x4b8854)=>{const _0x2a224f=_0x1d3d01;_0x4b8854['on'](_0x2a224f(0x97),()=>{const _0x39b196=_0x2a224f;this[_0x39b196(0x174)](_0x4b8854);});}),await this[_0x1d3d01(0x106)]();}[_0x4f553e(0x138)](_0x1c5ac2){const _0x593662=_0x4f553e,_0x1943a6=_0x10405a(this[_0x593662(0x192)]);if(!_0x1943a6[_0x593662(0x169)][_0x593662(0x104)](_0x593662(0x150)))return;const _0x207c00=this[_0x593662(0x192)][_0x593662(0x169)][_0x593662(0x151)](_0x593662(0x160)),{reply:_0x534f35,interaction:_0x539ff0}=this[_0x593662(0xb5)](_0x1c5ac2[_0x593662(0x9e)]),_0x2a30aa=this[_0x593662(0x163)](_0x1c5ac2[_0x593662(0x9e)],_0x1c5ac2[_0x593662(0x10b)]),_0x574e6a=void 0x0!==_0x1c5ac2[_0x593662(0x10b)]?[_0x534f35[_0x593662(0x157)][_0x1c5ac2[_0x593662(0x10b)]]]:_0x534f35[_0x593662(0x157)][_0x593662(0x14d)](_0x1851f8=>_0x593662(0x1c7)==_0x1851f8[_0x593662(0x1c6)]),_0x5944d4=_0x574e6a[_0x593662(0xda)](_0x2cd8a7=>_0x534f35[_0x593662(0x157)][_0x593662(0x1ab)](_0x2cd8a7));_0x5944d4[_0x593662(0x153)](_0xf85b33=>_0x534f35[_0x593662(0x1e3)](_0xf85b33,_0x593662(0xd2)));const _0x16193c=_0x1ad353({'editor':_0x1943a6,'reply':_0x534f35,'interaction':_0x539ff0,'groups':_0x574e6a,'transform':!0x0,'documentCompare':_0x207c00,'documentCompareOptions':{'anchor':_0x593662(0x14a),'markDeletions':!0x0}});let _0x5f53b8;_0x2a30aa&&this[_0x593662(0xb8)](_0x2a30aa[_0x593662(0x188)]),_0x1943a6[_0x593662(0xfe)][_0x593662(0xdf)](_0x5dee0e=>{const _0x207a99=_0x593662;_0x5f53b8=_0x5dee0e[_0x207a99(0x8c)],_0x1943a6[_0x207a99(0x169)][_0x207a99(0x151)](_0x207a99(0x150))[_0x207a99(0x17d)](_0x16193c),this[_0x207a99(0x16a)][_0x207a99(0x8d)](_0x207a99(0xbb));}),this[_0x593662(0xd8)][_0x593662(0x187)](_0x5f53b8,{'interactionId':_0x539ff0['id'],'replyId':_0x534f35['id'],'indexes':_0x5944d4[_0x593662(0x112)]()}),this[_0x593662(0x10f)](_0x534f35);}[_0x4f553e(0xaf)](_0x5457cc){const _0x11784d=_0x4f553e,_0x3b626f=_0x10405a(this[_0x11784d(0x192)]),_0x45c5d2=this[_0x11784d(0x192)][_0x11784d(0x169)][_0x11784d(0x151)](_0x5d9df3),{reply:_0x5d9701,interaction:_0x597515}=this[_0x11784d(0xb5)](_0x5457cc[_0x11784d(0x9e)]),_0x1c2cd2=this[_0x11784d(0x163)](_0x5457cc[_0x11784d(0x9e)],_0x5457cc[_0x11784d(0x10b)]),_0x3c613c=void 0x0!==_0x5457cc[_0x11784d(0x10b)]?[_0x5d9701[_0x11784d(0x157)][_0x5457cc[_0x11784d(0x10b)]]]:_0x5d9701[_0x11784d(0x157)][_0x11784d(0x14d)](_0x20c99a=>_0x11784d(0x1c7)==_0x20c99a[_0x11784d(0x1c6)]),_0x56135e=_0x3c613c[_0x11784d(0xda)](_0x512bc0=>_0x5d9701[_0x11784d(0x157)][_0x11784d(0x1ab)](_0x512bc0));_0x56135e[_0x11784d(0x153)](_0x35f6c8=>_0x5d9701[_0x11784d(0x1e3)](_0x35f6c8,_0x11784d(0xd2)));const _0x58fcda=_0x1ad353({'editor':_0x3b626f,'reply':_0x5d9701,'interaction':_0x597515,'groups':_0x3c613c,'transform':!0x0,'documentCompare':_0x45c5d2,'documentCompareOptions':{'anchor':_0x11784d(0x14a),'markDeletions':!0x1}});let _0x8a9897;_0x1c2cd2&&this[_0x11784d(0xb8)](_0x1c2cd2[_0x11784d(0x188)]),_0x3b626f[_0x11784d(0xfe)][_0x11784d(0xdf)](_0x3d5bcc=>{const _0x8483e1=_0x11784d;_0x8a9897=_0x3d5bcc[_0x8483e1(0x8c)];for(const _0x3e089f of _0x58fcda)_0x3e089f[_0x8483e1(0xe9)]=_0x3b626f[_0x8483e1(0xfe)][_0x8483e1(0x1d6)][_0x8483e1(0x179)],_0x3d5bcc[_0x8483e1(0x8c)][_0x8483e1(0x1d2)](_0x3e089f),_0x3b626f[_0x8483e1(0xfe)][_0x8483e1(0xc1)](_0x3e089f);}),this[_0x11784d(0xd8)][_0x11784d(0x187)](_0x8a9897,{'interactionId':_0x597515['id'],'replyId':_0x5d9701['id'],'indexes':_0x56135e[_0x11784d(0x112)]()}),this[_0x11784d(0x10f)](_0x5d9701);}[_0x4f553e(0xb2)](_0x6ef504,_0x3e5ff8){const _0x4a9773=_0x4f553e,_0x29e8a9=_0x10405a(this[_0x4a9773(0x192)]),_0x28d6a5=this[_0x4a9773(0x163)](_0x6ef504,_0x3e5ff8),_0x1fe9b5=this[_0x4a9773(0x192)][_0x4a9773(0x169)][_0x4a9773(0x151)](_0x16a9ea);if(!_0x28d6a5)return void _0x1fe9b5[_0x4a9773(0x96)]();const {range:_0x3611e3,currentIndex:_0x1609fc,previousIndex:_0x1d5959,nextIndex:_0x34d193}=_0x28d6a5;if(this[_0x4a9773(0x1a5)]?.[_0x4a9773(0x9e)]==_0x6ef504&&this[_0x4a9773(0x1a5)]?.[_0x4a9773(0x10b)]==_0x1609fc)return;this[_0x4a9773(0x1a5)]={'replyId':_0x6ef504,'partIndex':_0x1609fc};const _0x412b12=new _0x3e84cd(_0x29e8a9[_0x4a9773(0x1b6)],{'showDiff':this[_0x4a9773(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x4a9773(0x1de)},'hideHeader':!0x0}),{reply:_0x198ee0}=this[_0x4a9773(0xb5)](_0x6ef504),_0x1f5c70=_0x3580fd({'editor':_0x29e8a9,'changeGroups':[_0x198ee0[_0x4a9773(0x157)][_0x1609fc]],'documentContextContent':_0x198ee0[_0x4a9773(0xc5)],'showDiff':this[_0x4a9773(0x18f)]});_0x412b12[_0x4a9773(0x128)]({'parts':_0x1f5c70,'renderingStrategy':_0x4a9773(0xac)});const _0x7b31fb=_0x1609fc!==_0x1d5959;this[_0x4a9773(0xb8)](_0x3611e3,!0x0),_0x1fe9b5[_0x4a9773(0xa3)]({'index':_0x1609fc,'title':_0x5269c3(this[_0x4a9773(0x192)][_0x4a9773(0x1b6)],_0x4a9773(0x122),(_0x1609fc+0x1)[_0x4a9773(0xe7)]()),'icon':_0x3ad88e,'mainView':_0x412b12,'showRotator':_0x7b31fb,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3611e3]}),this[_0x4a9773(0x135)][_0x4a9773(0x12f)](_0x6ef504,_0x1609fc),this[_0x4a9773(0xcb)](_0x412b12,_0x4a9773(0xde),(_0x57e2bb,{showDiff:_0x3c3367})=>{const _0x418936=_0x4a9773;this[_0x418936(0x18f)]=_0x3c3367;const {reply:_0x317b66}=this[_0x418936(0xb5)](_0x6ef504),_0x5aab50=_0x3580fd({'editor':_0x29e8a9,'changeGroups':[_0x317b66[_0x418936(0x157)][_0x1609fc]],'documentContextContent':_0x317b66[_0x418936(0xc5)],'showDiff':_0x3c3367});_0x412b12[_0x418936(0x128)]({'parts':_0x5aab50,'renderingStrategy':_0x418936(0xac)});}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0xc8),()=>{const _0x342fcb=_0x4a9773;this[_0x342fcb(0xaf)]({'replyId':_0x6ef504,'partIndex':_0x1609fc}),_0x7b31fb?this[_0x342fcb(0xb2)](_0x6ef504,_0x34d193):_0x1fe9b5[_0x342fcb(0x96)]();}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x164),()=>{const _0x54c8d3=_0x4a9773;this[_0x54c8d3(0x138)]({'replyId':_0x6ef504,'partIndex':_0x1609fc}),_0x7b31fb?this[_0x54c8d3(0xb2)](_0x6ef504,_0x34d193):_0x1fe9b5[_0x54c8d3(0x96)]();}),_0x7b31fb&&(this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x1e2),()=>{const _0x253caa=_0x4a9773;this[_0x253caa(0xb2)](_0x6ef504,_0x34d193);}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x144),()=>{const _0xe87984=_0x4a9773;this[_0xe87984(0xb2)](_0x6ef504,_0x1d5959);})),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x1dd),()=>{const _0x490ae0=_0x4a9773;this[_0x490ae0(0x88)](_0x1fe9b5),this[_0x490ae0(0x88)](_0x412b12),this[_0x490ae0(0x1a5)]=null;});}[_0x4f553e(0x163)](_0x41ce24,_0x1af229){const _0x1ac652=_0x4f553e,_0x51dba1=_0x10405a(this[_0x1ac652(0x192)]),{reply:_0x21f6aa,interaction:_0x559c5e}=this[_0x1ac652(0xb5)](_0x41ce24),_0x54c711=_0x21f6aa[_0x1ac652(0x157)][_0x1ac652(0x14d)](_0x319a08=>_0x1ac652(0x1c7)==_0x319a08[_0x1ac652(0x1c6)]),_0x4775e8=_0x54c711[_0x1ac652(0xda)](_0xcfcbc5=>_0x21f6aa[_0x1ac652(0x157)][_0x1ac652(0x1ab)](_0xcfcbc5));void 0x0===_0x1af229&&(_0x1af229=_0x4775e8[0x0]);const _0x5b2624=_0x4775e8[_0x1ac652(0x1ab)](_0x1af229);if(-0x1==_0x5b2624)return null;const _0x190727=0x0==_0x5b2624?_0x4775e8[_0x4775e8[_0x1ac652(0x140)]-0x1]:_0x4775e8[_0x5b2624-0x1],_0x581c07=_0x5b2624==_0x4775e8[_0x1ac652(0x140)]-0x1?_0x4775e8[0x0]:_0x4775e8[_0x5b2624+0x1],_0x1b2ed0=_0x54c711[_0x5b2624],_0x347f45=new _0x5b6d5a([]),_0x12ec76=new _0x5b6d5a([]);for(const _0x29c6ab of _0x1b2ed0[_0x1ac652(0xa0)])if(_0x1ac652(0x125)!=_0x29c6ab[_0x1ac652(0x18a)]&&_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x29c6ab[_0x1ac652(0x1ce)][_0x1ac652(0x1a9)](!0x0)),_0x1ac652(0x1a8)!=_0x29c6ab[_0x1ac652(0x18a)]){const _0x36022a=_0x1956c3(_0x158588=>_0x1f6704(_0x158588,_0x1ac652(0x1d0))==_0x29c6ab['id'],_0x21f6aa[_0x1ac652(0xc5)],!0x0);_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x36022a[_0x1ac652(0x1a9)](!0x0));}if(0x0==_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x140)]){if(_0x1b2ed0[_0x1ac652(0xa0)][0x0][_0x1ac652(0xfc)]){const _0x5dd79e=_0x219e9c(_0x1ac652(0x1d0),_0x1b2ed0[_0x1ac652(0xa0)][0x0][_0x1ac652(0xfc)],_0x21f6aa[_0x1ac652(0xc5)]);_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x1bd)](_0x5dd79e[_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x1bd)](_0x5dd79e[_0x1ac652(0x1a9)](!0x0)),_0x5dd79e[_0x1ac652(0x15d)]&&(_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x5dd79e[_0x1ac652(0x15d)][_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x5dd79e[_0x1ac652(0x15d)][_0x1ac652(0x1a9)](!0x0)));}else{const _0x14c0ff=_0x21f6aa[_0x1ac652(0xc5)][_0x1ac652(0x156)][0x0];if(!_0x14c0ff)return null;_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x14c0ff[_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x14c0ff[_0x1ac652(0x1a9)](!0x0));}}const _0x2abcc8=_0x559c5e[_0x1ac652(0x17c)](),_0x59341a=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x2abcc8[_0x1ac652(0x90)]),_0x44ad82=_0x1996f6(_0x347f45),_0x467894=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x44ad82),_0x2a3f38=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x44ad82),_0x584daa=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x10e)](_0x467894,0x0),_0x1b4f6a=_0x1996f6(_0x12ec76),_0x2a79df={'anchor':_0x584daa,'markDeletions':!0x1},_0x2f27bb=_0x51dba1[_0x1ac652(0x169)][_0x1ac652(0x151)](_0x5d9df3)[_0x1ac652(0x1cf)](_0x44ad82,_0x1b4f6a,_0x2a79df)[_0x1ac652(0x18d)]();if(!_0x2f27bb[_0x1ac652(0x140)])return null;_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xdf)](_0xa45762=>{const _0x280b47=_0x1ac652;for(const _0xadb425 of _0x2f27bb)if(_0x280b47(0xae)==_0xadb425[_0x280b47(0x18a)]){const _0x1e4422=_0xadb425[_0x280b47(0x134)],_0x3f496d=_0xadb425[_0x280b47(0x124)],_0x1a87ce=new _0x321ea8(_0x1e4422,_0x3f496d);_0xa45762[_0x280b47(0x8c)][_0x280b47(0x1d2)](_0x1a87ce),_0x51dba1[_0x280b47(0xfe)][_0x280b47(0xc1)](_0x1a87ce);}else _0x280b47(0x1a7)!==_0xadb425[_0x280b47(0x18a)]&&(_0xadb425[_0x280b47(0xe9)]=null,_0xadb425[_0x280b47(0xa4)]=!0x1,_0xa45762[_0x280b47(0x8c)][_0x280b47(0x1d2)](_0xadb425),_0x51dba1[_0x280b47(0xfe)][_0x280b47(0xc1)](_0xadb425));});const _0x2aceee=_0x2fe0c8(_0x51dba1,_0x2f27bb,_0x467894);_0x5248cd(_0x51dba1[_0x1ac652(0xfe)],_0x2aceee);const _0x37744f=_0x2aceee[_0x1ac652(0xff)]()[_0x1ac652(0x158)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x43a5d4=_0x2aceee[_0x1ac652(0xff)]()[_0x1ac652(0x1c5)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x101fb1=[];let _0x19b512=_0x467894,_0x52556b=_0x2a3f38;for(let _0x2afc11=0x0;_0x2afc11<_0x43a5d4[_0x1ac652(0x140)];_0x2afc11++){const _0x463fb4=_0x19b512[_0x1ac652(0x12d)]-_0x43a5d4[_0x2afc11];_0x101fb1[_0x2afc11]=_0x52556b[_0x1ac652(0x12d)]-_0x463fb4,_0x19b512=_0x19b512[_0x1ac652(0x1bb)](_0x43a5d4[_0x2afc11]),_0x52556b=_0x52556b[_0x1ac652(0x1bb)](_0x101fb1[_0x2afc11]);}const _0x3d8e67=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xed)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x2a3f38,_0x37744f),_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x2a3f38,_0x101fb1)),_0x2c8cca=_0x2a3f38[_0x1ac652(0xf6)](0x0)[_0x1ac652(0x14b)](_0x53944a),_0x239e73=Array[_0x1ac652(0xbe)](_0x59341a[_0x1ac652(0x19c)]())[_0x1ac652(0xfd)](_0x25d524=>_0x25d524[_0x1ac652(0x14b)](_0x53944a)==_0x2c8cca)[_0x1ac652(0x1da)](),_0x43b6cc=_0x3d8e67[_0x1ac652(0x158)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x47e122=_0x3d8e67[_0x1ac652(0x1c5)][_0x1ac652(0x182)][_0x1ac652(0x112)]();_0x43b6cc[0x0]=_0x239e73[0x0]+_0x43b6cc[0x0],_0x47e122[0x0]=_0x239e73[0x0]+_0x47e122[0x0];let _0x48da7d=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xed)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0xaa)](),_0x43b6cc),_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0xaa)](),_0x47e122));const _0x5dddb9=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0x94)][_0x1ac652(0x18d)](_0x2abcc8[_0x1ac652(0x179)]);for(const _0x286404 of _0x5dddb9)_0x48da7d=_0x584fd6[_0x1ac652(0x1b3)](_0x48da7d[_0x1ac652(0x1c4)](_0x286404));return{'range':_0x48da7d,'previousIndex':_0x190727,'nextIndex':_0x581c07,'currentIndex':_0x1af229};}[_0x4f553e(0x174)](_0x540066){const _0xf1ca70=_0x4f553e;if(!_0x540066[_0xf1ca70(0x169)][_0xf1ca70(0x104)](_0xf1ca70(0x11d)))return;const _0x43cf8a=_0x540066[_0xf1ca70(0x98)][_0xf1ca70(0x151)](_0xf1ca70(0x15a)),_0x527d46=_0x540066[_0xf1ca70(0x98)][_0xf1ca70(0x151)](_0xf1ca70(0x1d4));this[_0xf1ca70(0xcb)](_0x43cf8a,_0xf1ca70(0xf2),(_0x2907fd,_0x260892,_0x1045a6)=>{const _0x18904d=_0xf1ca70,_0xf4f676=this[_0x18904d(0xd8)][_0x18904d(0x151)](_0x260892);if(!_0xf4f676)return;const _0xcc68c4=this[_0x18904d(0x110)][_0x18904d(0x172)](_0xf4f676[_0x18904d(0x120)])[_0x18904d(0x14c)](_0xf4f676[_0x18904d(0x9e)]);_0xf4f676[_0x18904d(0xc7)][_0x18904d(0x153)](_0x3ecbf4=>_0xcc68c4[_0x18904d(0x1e3)](_0x3ecbf4,_0x18904d(0x1c7))),this[_0x18904d(0xd8)][_0x18904d(0x126)](_0x260892),this[_0x18904d(0xd8)][_0x18904d(0x187)](_0x1045a6,_0xf4f676);}),this[_0xf1ca70(0xcb)](_0x527d46,_0xf1ca70(0xf2),(_0x5700fb,_0x4ce3ca,_0x20aa08)=>{const _0x1dc504=_0xf1ca70,_0x186515=this[_0x1dc504(0xd8)][_0x1dc504(0x151)](_0x4ce3ca);if(!_0x186515)return;const _0xa3c636=this[_0x1dc504(0x110)][_0x1dc504(0x172)](_0x186515[_0x1dc504(0x120)])[_0x1dc504(0x14c)](_0x186515[_0x1dc504(0x9e)]);_0x186515[_0x1dc504(0xc7)][_0x1dc504(0x153)](_0x122f53=>_0xa3c636[_0x1dc504(0x1e3)](_0x122f53,_0x1dc504(0xd2))),this[_0x1dc504(0xd8)][_0x1dc504(0x126)](_0x4ce3ca),this[_0x1dc504(0xd8)][_0x1dc504(0x187)](_0x20aa08,_0x186515);});}async[_0x4f553e(0x16e)](_0x4ebb45){const _0x3b89cf=_0x4f553e;this[_0x3b89cf(0x192)][_0x3b89cf(0x169)][_0x3b89cf(0x151)](_0x16a9ea)[_0x3b89cf(0x96)](),this[_0x3b89cf(0x135)][_0x3b89cf(0x10a)](_0x3b89cf(0xac)),this[_0x3b89cf(0x135)][_0x3b89cf(0x143)](!0x0),await this[_0x3b89cf(0x1e1)]();try{const _0x4618cb=this[_0x3b89cf(0x192)][_0x3b89cf(0x169)][_0x3b89cf(0x151)](_0x74747e);this[_0x3b89cf(0x183)]('\x20'),_0x4618cb[_0x3b89cf(0x19e)][_0x3b89cf(0xe6)](_0x3b89cf(0xb7)),await this[_0x3b89cf(0x106)](_0x4ebb45);const {sessionId:_0x5c3a39}=this[_0x3b89cf(0x16a)][_0x3b89cf(0x131)]();await this[_0x3b89cf(0x110)][_0x3b89cf(0x1c1)](_0x4ebb45,_0x5c3a39),this[_0x3b89cf(0x110)][_0x3b89cf(0x1b8)]()&&this[_0x3b89cf(0x110)][_0x3b89cf(0x1dc)](_0x5269c3(this[_0x3b89cf(0x192)][_0x3b89cf(0x1b6)],_0x3b89cf(0x113)));}catch(_0x4b5c28){console[_0x3b89cf(0x1b2)](_0x3b89cf(0x185),_0x4b5c28);}finally{this[_0x3b89cf(0x135)][_0x3b89cf(0x10a)](_0x3b89cf(0x89)),this[_0x3b89cf(0x135)][_0x3b89cf(0x143)](!0x1);}}[_0x4f553e(0x178)](_0x9c19b3){const _0x1b2b7d=_0x4f553e;this[_0x1b2b7d(0x110)]['id']===_0x9c19b3&&this[_0x1b2b7d(0x106)]();}async[_0x4f553e(0xf5)](){const _0x418b25=_0x4f553e,_0xe28f88=this[_0x418b25(0x16a)][_0x418b25(0x8b)]();this[_0x418b25(0x110)]?.[_0x418b25(0xd1)](_0xe28f88),this[_0x418b25(0x110)]?.[_0x418b25(0x1dc)](_0x5269c3(this[_0x418b25(0x192)][_0x418b25(0x1b6)],_0x418b25(0x113)));}[_0x4f553e(0x132)](){const _0x51520b=_0x4f553e;this[_0x51520b(0x110)]?.[_0x51520b(0x1ac)]();}[_0x4f553e(0xd4)](){const _0x1029b0=_0x4f553e;this[_0x1029b0(0x135)][_0x1029b0(0xd4)]();}async[_0x4f553e(0x18e)](){const _0x16df22=_0x4f553e;await this[_0x16df22(0x106)]();}async[_0x4f553e(0xb0)]({message:_0x566059,quickActionData:_0xafa489}){const _0x7f2215=_0x4f553e;await this[_0x7f2215(0x108)]({'userMessage':_0x566059,'quickActionData':_0xafa489});}[_0x4f553e(0x197)](){const _0x12befc=_0x4f553e,_0x225f5e=this[_0x12befc(0x192)][_0x12befc(0x1cc)][_0x12befc(0x151)](_0x12befc(0x1db));if(!_0x225f5e)throw new _0x26389e(_0x12befc(0x142),this);return _0x225f5e;}async[_0x4f553e(0x106)](_0x359fa2){const _0x3dd563=_0x4f553e;try{this[_0x3dd563(0x135)][_0x3dd563(0x102)](),await this[_0x3dd563(0xb1)](_0x359fa2);}catch(_0x37a29a){_0x24ffd0(_0x3dd563(0xd0),_0x37a29a),this[_0x3dd563(0x110)]=void 0x0,this[_0x3dd563(0x135)][_0x3dd563(0x165)]();}}async[_0x4f553e(0xb1)](_0x3a2a71){const _0x44eebd=_0x4f553e,_0x27e636=this[_0x44eebd(0x192)][_0x44eebd(0x169)][_0x44eebd(0x151)](_0x16a9ea);let _0xefb62b;_0x27e636[_0x44eebd(0x103)]&&_0x27e636[_0x44eebd(0x96)](),_0xefb62b=_0x3a2a71||!this[_0x44eebd(0x110)]?this[_0x44eebd(0x192)][_0x44eebd(0x1cc)][_0x44eebd(0x151)](_0x44eebd(0x16d)):this[_0x44eebd(0x110)][_0x44eebd(0xd5)]['id'],await this[_0x44eebd(0x1e1)]();const _0x692d1b=this[_0x44eebd(0x197)](),_0x4a2b3b=_0x3a2a71||_0x2cbd4a();this[_0x44eebd(0x110)]=new _0x1ed617({'connector':this[_0x44eebd(0x9f)],'chatModels':this[_0x44eebd(0x109)],'defaultModelId':_0xefb62b,'conversationId':_0x4a2b3b,'group':_0x692d1b,'getEditor':()=>_0x10405a(this[_0x44eebd(0x192)])}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x159),(_0x57d5cf,_0x30ed54)=>{const _0x53513d=_0x44eebd;_0x30ed54[_0x53513d(0xe0)]=this[_0x53513d(0x18c)](_0x30ed54[_0x53513d(0xe0)],this[_0x53513d(0x192)][_0x53513d(0x1cc)][_0x53513d(0x151)](_0x53513d(0xa8))),this[_0x53513d(0x135)][_0x53513d(0x1b4)](_0x30ed54),this[_0x53513d(0x135)][_0x53513d(0x123)](),this[_0x53513d(0x135)][_0x53513d(0xce)](),this[_0x53513d(0x135)][_0x53513d(0xa1)](),_0x3a2a71||(this[_0x53513d(0x135)][_0x53513d(0x1a2)](),this[_0x53513d(0x110)]?.[_0x53513d(0x1dc)](_0x5269c3(this[_0x53513d(0x192)][_0x53513d(0x1b6)],_0x53513d(0x113))));}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x117),(_0x121ab0,_0xac1d25)=>{const _0x22b62d=_0x44eebd;this[_0x22b62d(0x135)][_0x22b62d(0x11a)](_0xac1d25[_0x22b62d(0xfa)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1a0),(_0x2c18e5,_0x1ab8c2)=>{const _0x26f9d4=_0x44eebd;this[_0x26f9d4(0x135)][_0x26f9d4(0x193)](_0x1ab8c2);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xc3),()=>{const _0x3a2307=_0x44eebd;this[_0x3a2307(0x135)][_0x3a2307(0x1b0)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x152),()=>{const _0x521a3c=_0x44eebd;this[_0x521a3c(0x135)][_0x521a3c(0x1b0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1cb),(_0x1734d5,_0x4c1f85)=>{const _0x46887a=_0x44eebd;this[_0x46887a(0x135)][_0x46887a(0x170)](_0x4c1f85,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xcf),(_0x2e8a05,_0x3e47e8)=>{const _0x4c22ea=_0x44eebd;this[_0x4c22ea(0x135)][_0x4c22ea(0x170)](_0x3e47e8,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1be),()=>{const _0x40740d=_0x44eebd;this[_0x40740d(0x135)][_0x40740d(0x91)]();}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x186),async()=>{const _0x420082=_0x44eebd;await this[_0x420082(0x135)][_0x420082(0x11c)]();}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xe5),(_0x3ad70e,_0x1c53f5)=>{const _0x1d3e62=_0x44eebd;this[_0x1d3e62(0x135)][_0x1d3e62(0x9b)](_0x1c53f5['id']);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x190),(_0x4ed543,_0x3d4b51,_0x4e27e0)=>{const _0x56c0b4=_0x44eebd;this[_0x56c0b4(0x183)](_0x3d4b51,_0x4e27e0);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xa2),(_0x738782,_0x28c64b)=>{const _0x3c93a6=_0x44eebd;_0x3c93a6(0x15b)===_0x28c64b[_0x3c93a6(0x18a)]?this[_0x3c93a6(0x135)][_0x3c93a6(0x1cd)](_0x28c64b):this[_0x3c93a6(0x135)][_0x3c93a6(0x101)](_0x28c64b);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x147),async(_0x430394,_0x5b52af,_0x287394)=>{const _0x2615e0=_0x44eebd;await this[_0x2615e0(0x168)]({'reply':_0x5b52af,'changeGroups':_0x287394});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xdb),(_0x314aa9,{reply:_0x19919a,index:_0x317f22,state:_0x483236})=>{const _0x5ae96c=_0x44eebd;this[_0x5ae96c(0x135)][_0x5ae96c(0x1d1)]({'id':_0x19919a['id'],'index':_0x317f22,'state':_0x483236});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x10c),(_0x222be,_0x1eeea0)=>{const _0x4aec95=_0x44eebd;if(this[_0x4aec95(0x135)][_0x4aec95(0xfb)](_0x1eeea0[_0x4aec95(0x1c9)],_0x1eeea0[_0x4aec95(0x1ca)]),_0x4aec95(0x1e4)===_0x1eeea0[_0x4aec95(0x1c9)][_0x4aec95(0x18a)]){const _0x281a5f=[..._0x10405a(this[_0x4aec95(0x192)])[_0x4aec95(0xfe)][_0x4aec95(0x1d6)][_0x4aec95(0x1e4)][_0x4aec95(0x18b)]()];this[_0x4aec95(0x16a)][_0x4aec95(0x1ba)](_0x281a5f,_0x4aec95(0x1b7)+this[_0x4aec95(0x110)]?.['id']);}}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x114),(_0x5345c6,_0x4d8bde)=>{const _0x26fc6d=_0x44eebd;this[_0x26fc6d(0x135)][_0x26fc6d(0x176)](_0x4d8bde[_0x26fc6d(0xcd)]),_0x26fc6d(0xf3)==_0x4d8bde[_0x26fc6d(0xcd)]&&this[_0x26fc6d(0x132)](),_0x26fc6d(0x1e4)===_0x4d8bde[_0x26fc6d(0x18a)]&&this[_0x26fc6d(0x16a)][_0x26fc6d(0x8d)](_0x26fc6d(0x1b7)+this[_0x26fc6d(0x110)]?.['id']);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xca),(_0x46ee93,_0x238097)=>{const _0x506664=_0x44eebd;this[_0x506664(0x135)][_0x506664(0xd7)](_0x238097[_0x506664(0x1c9)][_0x506664(0xcd)],_0x238097[_0x506664(0x1ca)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x155),(_0x767c64,_0x2fb937)=>{const _0x15e486=_0x44eebd;this[_0x15e486(0x135)][_0x15e486(0x1c8)](_0x2fb937[_0x15e486(0xea)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xc0),(_0x7c1a9d,_0x56f302)=>{const _0x38da7d=_0x44eebd;this[_0x38da7d(0x135)][_0x38da7d(0xd9)](_0x56f302[_0x38da7d(0x1a3)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x166),(_0x498028,_0x323e16)=>{const _0x52783c=_0x44eebd;this[_0x52783c(0x135)][_0x52783c(0x189)](_0x323e16[_0x52783c(0xf8)],_0x323e16[_0x52783c(0x1d8)],_0x323e16[_0x52783c(0xee)],_0x323e16[_0x52783c(0x181)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1bf),(_0x19815d,_0x1a5899)=>{const _0x45a33d=_0x44eebd;this[_0x45a33d(0x135)][_0x45a33d(0xbf)](_0x1a5899[_0x45a33d(0xf8)],_0x1a5899[_0x45a33d(0x14e)],_0x1a5899[_0x45a33d(0x12e)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1af),(_0x5cf358,_0x82857a)=>{const _0x20b11d=_0x44eebd;this[_0x20b11d(0x135)][_0x20b11d(0xb6)](_0x82857a);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xdc),(_0x3c235b,_0x5f117e)=>{const _0x56131d=_0x44eebd;this[_0x56131d(0x135)][_0x56131d(0xa6)](_0x5f117e[_0x56131d(0xd5)],_0x5f117e[_0x56131d(0x1d5)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1b2),(_0x159ec2,{error:_0x3f1e61,interactionId:_0x4a29b1,fileName:_0x345d3e,url:_0x27ace4,sourceId:_0x23c928,sourceLabel:_0x12c164})=>{const _0x3f5dfd=_0x44eebd,_0xc95019=_0x4a29b1?_0x4a29b1+':'+_0x2cbd4a():_0x2cbd4a();_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x95))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0xbc)]({'staticMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xef)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x9a))||_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0xd0))?(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xb9)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x177))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x12c),_0x345d3e),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0xad))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xdd),_0x27ace4),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x13e))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x19f)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x105))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x141)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x9d))?(_0x23c928&&this[_0x3f5dfd(0x135)][_0x3f5dfd(0x17f)](_0x23c928),this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x116),_0x12c164||_0x3f5dfd(0x1d8)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x92))?(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x10d)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x1c2)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61));}),await this[_0x44eebd(0x110)][_0x44eebd(0xc4)](this[_0x44eebd(0x192)][_0x44eebd(0x1cc)][_0x44eebd(0x151)](_0x44eebd(0x167))),_0x3a2a71||await this[_0x44eebd(0x110)][_0x44eebd(0x158)]();}async[_0x4f553e(0x108)]({userMessage:_0x25f0c8,quickActionData:_0x2c615f}){const _0x1f7baa=_0x4f553e;if(!this[_0x1f7baa(0x110)])throw new _0x26389e(_0x1f7baa(0xc9));this[_0x1f7baa(0x110)][_0x1f7baa(0x19a)]()&&await this[_0x1f7baa(0x110)][_0x1f7baa(0xe4)](this[_0x1f7baa(0x16a)][_0x1f7baa(0x131)]()),this[_0x1f7baa(0x110)]['id']&&this[_0x1f7baa(0x110)][_0x1f7baa(0x13b)]&&await this[_0x1f7baa(0x110)][_0x1f7baa(0xf9)]({'userMessage':_0x25f0c8,'quickActionData':_0x2c615f}),this[_0x1f7baa(0xe8)]();}[_0x4f553e(0xe8)](){const _0x2cdf7f=_0x4f553e,_0x1b0037=_0x10405a(this[_0x2cdf7f(0x192)])[_0x2cdf7f(0xfe)],_0x306cf6=Array[_0x2cdf7f(0xbe)](_0x1b0037[_0x2cdf7f(0x1df)][_0x2cdf7f(0xf1)](_0x58a634));_0x1b0037[_0x2cdf7f(0xdf)](_0xf61587=>{const _0x36594a=_0x2cdf7f;_0x306cf6[_0x36594a(0x153)](_0x3c94b9=>_0xf61587[_0x36594a(0xb4)](_0x3c94b9));});}[_0x4f553e(0x136)](){const _0x3a338e=_0x4f553e;console[_0x3a338e(0x137)](_0x3a338e(0x13c));}[_0x4f553e(0x8f)](_0x4b7668){const _0x4275a5=_0x4f553e;this[_0x4275a5(0x135)][_0x4275a5(0x191)](_0x4b7668);}[_0x4f553e(0xec)](_0xed2dd8){const _0x5c560e=_0x4f553e;_0x24ffd0(_0xed2dd8[_0x5c560e(0x16f)]);}[_0x4f553e(0x1bc)](_0x4b4af1){const _0x462388=_0x4f553e;this[_0x462388(0x110)]?.[_0x462388(0x9c)](_0x4b4af1);}[_0x4f553e(0x13a)](){const _0x1c6995=_0x4f553e;this[_0x1c6995(0x110)]?.[_0x1c6995(0xc6)]();}[_0x4f553e(0x1b5)](){const _0x321cfb=_0x4f553e;this[_0x321cfb(0x110)]?.[_0x321cfb(0x133)]();}[_0x4f553e(0xb5)](_0x536bf0){const _0x512348=_0x4f553e,[_0x7bcf5d,_0xcb595d]=_0x536bf0[_0x512348(0xba)](':'),_0x4c61f1=this[_0x512348(0x110)][_0x512348(0x172)](_0x7bcf5d),_0x3e8e5d=_0x4c61f1[_0x512348(0x14c)](_0xcb595d);return{'interaction':_0x4c61f1,'reply':_0x3e8e5d};}[_0x4f553e(0xb8)](_0x4c14bf,_0x65ef0b=!0x1){const _0x2b6868=_0x4f553e,_0xb8e583=_0x10405a(this[_0x2b6868(0x192)]),_0x22055b={'target':_0xb8e583[_0x2b6868(0x1a1)][_0x2b6868(0x19e)][_0x2b6868(0x17b)][_0x2b6868(0x118)](_0xb8e583[_0x2b6868(0x1a1)][_0x2b6868(0x129)][_0x2b6868(0xd3)](_0x4c14bf)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x65ef0b};_0x65ef0b&&(_0x22055b[_0x2b6868(0xeb)]=!0x0),_0xa319c1(_0x22055b);}[_0x4f553e(0x183)](_0x515041,_0x5fbf12=!0x1){const _0x27eeba=_0x4f553e;this[_0x27eeba(0x135)][_0x27eeba(0x190)](_0x515041||_0x5269c3(this[_0x27eeba(0x192)][_0x27eeba(0x1b6)],_0x27eeba(0x154)),_0x5fbf12);}[_0x4f553e(0x18c)](_0x113154,_0x1f8642){const _0x49d68b=_0x4f553e;let _0x4b3e5d;if(_0x1f8642){_0x4b3e5d=[];const _0x23043e=_0x49d68b(0xa5)==typeof _0x1f8642?[_0x1f8642[_0x49d68b(0x1ad)]()]:_0x1f8642[_0x49d68b(0xda)](_0x5269ee=>_0x5269ee[_0x49d68b(0x1ad)]());for(const _0x21da10 of _0x23043e)for(const _0x1daa88 of _0x113154)(_0x1daa88['id'][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88[_0x49d68b(0x175)][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88[_0x49d68b(0x130)][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88['id'][_0x49d68b(0x1ad)]()[_0x49d68b(0x1e0)](_0x21da10))&&_0x4b3e5d[_0x49d68b(0x171)](_0x1daa88);}else _0x4b3e5d=_0x113154;return _0x4b3e5d;}async[_0x4f553e(0x168)]({reply:_0xfa7caa,changeGroups:_0x4ee84f,renderingStrategy:_0x5b0c4e}){const _0x567291=_0x4f553e,{id:_0xe0f876,isDone:_0x1688d6,type:_0x55ca8f,parsedContent:_0x48fc1b}=_0xfa7caa;if(_0x567291(0x198)===_0x55ca8f){const _0x15f3b4=_0x10405a(this[_0x567291(0x192)]),_0x7db71b=_0x3580fd({'editor':_0x15f3b4,'showDiff':this[_0x567291(0x135)][_0x567291(0x161)],'changeGroups':_0x4ee84f,'documentContextContent':_0xfa7caa[_0x567291(0xc5)]});await this[_0x567291(0x135)][_0x567291(0x13d)]({'id':_0xe0f876,'parts':_0x7db71b,'renderingStrategy':_0x5b0c4e,'isDone':_0x1688d6});}else _0x567291(0x15b)===_0x55ca8f&&await this[_0x567291(0x135)][_0x567291(0x8a)]({'id':_0xe0f876,'parsedContent':_0x48fc1b,'renderingStrategy':_0x5b0c4e,'isDone':_0x1688d6});_0x1688d6&&_0xfa7caa[_0x567291(0x1d7)][_0x567291(0x140)]>0x0&&this[_0x567291(0x135)][_0x567291(0x127)](_0xe0f876,_0xfa7caa[_0x567291(0x1d7)]);}async[_0x4f553e(0x1e1)](){const _0xe8a9a7=_0x4f553e,_0x77a6e5=this[_0xe8a9a7(0x110)]?.[_0xe8a9a7(0x11f)];_0x77a6e5&&(_0x77a6e5[_0xe8a9a7(0x121)](),this[_0xe8a9a7(0x135)][_0xe8a9a7(0x11e)](_0x77a6e5));}async[_0x4f553e(0x1a6)](){const _0x3563d8=_0x4f553e,_0x432aba=this[_0x3563d8(0x110)]?.[_0x3563d8(0x11f)];if(_0x432aba){for await(const _0x7e1900 of _0x432aba[_0x3563d8(0xc2)])await this[_0x3563d8(0x168)]({'reply':_0x7e1900,'changeGroups':_0x7e1900[_0x3563d8(0x157)],'renderingStrategy':_0x3563d8(0xac)});}}[_0x4f553e(0x10f)](_0x4b816e){const _0xad828a=_0x4f553e,_0x4f30b0={'positiveCount':_0x4b816e[_0xad828a(0x157)][_0xad828a(0x14d)](_0x21d484=>_0xad828a(0xd2)===_0x21d484[_0xad828a(0x1c6)])[_0xad828a(0x140)],'totalCount':_0x4b816e[_0xad828a(0x157)][_0xad828a(0x140)]},_0x543e69=this[_0xad828a(0x110)][_0xad828a(0x172)](_0x4b816e[_0xad828a(0x120)])[_0xad828a(0xa7)];this[_0xad828a(0x9f)][_0xad828a(0x107)](this[_0xad828a(0x110)]['id'],_0x543e69,_0x4f30b0);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2f9983=_0x572b;function _0x572b(_0x5739a9,_0x348283){const _0x2ee647=_0x2ee6();return _0x572b=function(_0x572bc2,_0x105609){_0x572bc2=_0x572bc2-0x88;let _0xa3c0f=_0x2ee647[_0x572bc2];return _0xa3c0f;},_0x572b(_0x5739a9,_0x348283);}(function(_0x1b6c09,_0x4355d8){const _0x4dd359=_0x572b,_0x2ced72=_0x1b6c09();while(!![]){try{const _0x46dd20=-parseInt(_0x4dd359(0x96))/0x1*(-parseInt(_0x4dd359(0xfd))/0x2)+-parseInt(_0x4dd359(0x124))/0x3*(-parseInt(_0x4dd359(0xe7))/0x4)+-parseInt(_0x4dd359(0xb2))/0x5*(parseInt(_0x4dd359(0xb8))/0x6)+-parseInt(_0x4dd359(0xe5))/0x7+parseInt(_0x4dd359(0xf6))/0x8+-parseInt(_0x4dd359(0xe4))/0x9+parseInt(_0x4dd359(0x10b))/0xa*(parseInt(_0x4dd359(0xde))/0xb);if(_0x46dd20===_0x4355d8)break;else _0x2ced72['push'](_0x2ced72['shift']());}catch(_0x43a9ae){_0x2ced72['push'](_0x2ced72['shift']());}}}(_0x2ee6,0x750ec));import{ContextPlugin as _0x19876f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x54cab1}from'ckeditor5/src/utils.js';import{AIChatView as _0x43041c}from'./ui/aichatview.js';import{AITabs as _0x33aa86}from'../aitabs/aitabs.js';import{getTranslation as _0x2343bc}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x5db672}from'ckeditor5/src/icons.js';function _0x2ee6(){const _0xe60033=['startAutoScroll','updateCapabilities','addFeedItemError','children','setSelectedModel','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','AIChatUI','setModelList','isLoading','config','showResizeButton','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','delegate','user-message','disableControls','addFeedItemStaticMessage','_isTrackChangesCommandValueBound','chatControls','5RNithZ','set','chatFeed','updateFeedItemAIReplySources','then','addContextItem','4609482SFmzrD','ai.availableReplyActions','isVisible','find','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','label','setConversationContext','isDone','addTab','updateWebSources','setFeedItemRenderingStrategy','updateFeedItemAIReplyContent','ai.chat.models.modelSelectorAlwaysVisible','interactionId','queueEmptyPromise','forEach','abort','filter','addItem','setIsUploadInProgress','removeItem','value','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','removeFeedInteraction','focusPromptInput','setReasoning','pluginName','availableModels','toggleLoadingSkeleton','clear','clearConversationContextUI','view','isReasoningEnabled','isBusy','chatHeader','removeContextItem','1584nQcQrp','displayedPrompt','setConversationTitle','addFeedInteractionHeader','_promiseQueue','resetMessageInput','5652333YWCyTw','5224576IlxfJU','enableModelSelector','19892yFkVKZ','setWebSearch','stopAutoScroll','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','requires','addFeedItemAISuggestion','ai-reply','get','streaming','updateSuggestionPartState','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','scrollFeedToSuggestion','ai-suggestion-reply','1114656sBOcpR','AI_CHAT_HEADING','trackChanges','locale','setModel','areActionsDisabled','closeSourceResourceBalloon','46yIIxSL','_animateConversationTitle','isPremiumPlugin','interaction-header','_view','conversation-start','bind','AITabs','startsWith','finishInteraction','updateFeedInteractionHeader','destroy','context','remove','166760pwYpjH','toggleSuggestionDisplayMode','options','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setIsMaximized','populateSourceResourceBalloon','values','scrollToSuggestion','_titleAnimationInterval','<p>','resetConversationTitle','enqueue','chat','_getLoadingMessage','quickActionData','isOfficialPlugin','setInputPlaceholder','isMaximized','getItemIds','commands','updateResourceState','stopInteraction','capabilities','isPending','showDiff','42TJexUv','updateFeedItemAIReplySuggestionPartState','markFeedItemAsDone','createConversation','_getInputPlaceholder','addFeedItemAIReply','updateReplyItem','isWebSearchEnabled','clearPendingContextUI','startInteraction','enableControls','setContextItemLoading','addFeedItemUserMessage','setAddContextOptions','AI_CHAT_WELCOME_MESSAGE','contextItems','userMessage','isTrackChangesOn','markItemAsDone','setLoadingMessage','length','514JDAQmZ','plugins','updateFeedItemAIReplySuggestionContent','feedItemRenderingStrategy','last','_interactionPromiseResolver','from','disableModelSelector','</p>','error-message'];_0x2ee6=function(){return _0xe60033;};return _0x2ee6();}import{AIChatFeedInteractionHeaderView as _0x1ec2e3}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5b6e0a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x261911}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x4b209a}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x19876f{static get[_0x2f9983(0xec)](){return[_0x33aa86];}[_0x2f9983(0x101)];static get[_0x2f9983(0xd4)](){const _0x85df86=_0x2f9983;return _0x85df86(0xa6);}static get[_0x2f9983(0x11a)](){return!0x0;}static get[_0x2f9983(0xff)](){return!0x0;}[_0x2f9983(0x99)]=_0x2f9983(0xf0);[_0x2f9983(0x123)]=!0x0;[_0x2f9983(0xe2)];[_0x2f9983(0x9b)];[_0x2f9983(0x113)]=void 0x0;[_0x2f9983(0xb0)]=!0x1;constructor(_0x5f5a08){const _0x1a5617=_0x2f9983;super(_0x5f5a08);const _0x22c989=this[_0x1a5617(0x109)][_0x1a5617(0x97)][_0x1a5617(0xef)](_0x1a5617(0x104));this[_0x1a5617(0xb3)](_0x1a5617(0xdb),!0x1),this[_0x1a5617(0xe2)]=new _0x5b6e0a(),this[_0x1a5617(0x101)]=new _0x43041c(this[_0x1a5617(0x109)][_0x1a5617(0xf9)],_0x22c989[_0x1a5617(0xaa)]),this[_0x1a5617(0x101)][_0x1a5617(0xac)](..._0x261911)['to'](this),this[_0x1a5617(0x101)]['on'](_0x1a5617(0x10c),(_0x58d8b3,{showDiff:_0x36b91e})=>{const _0x12eafe=_0x1a5617;this[_0x12eafe(0x123)]=_0x36b91e;}),_0x22c989[_0x1a5617(0xd9)][_0x1a5617(0xc0)]({'id':_0x1a5617(0x117),'buttonLabel':_0x2343bc(this[_0x1a5617(0x109)][_0x1a5617(0xf9)],_0x1a5617(0xf7)),'buttonIcon':_0x5db672,'order':0x0,'content':this[_0x1a5617(0x101)]}),this[_0x1a5617(0x101)][_0x1a5617(0xb1)][_0x1a5617(0x103)](_0x1a5617(0xa8))['to'](this,_0x1a5617(0xdb),_0x41c93a=>_0x41c93a),this[_0x1a5617(0x101)][_0x1a5617(0xb4)][_0x1a5617(0x103)](_0x1a5617(0x122))['to'](this,_0x1a5617(0xdb),_0x3713d2=>_0x3713d2),this[_0x1a5617(0x101)][_0x1a5617(0xb1)][_0x1a5617(0x11b)](this[_0x1a5617(0x128)]());}[_0x2f9983(0x108)](){const _0x2812e7=_0x2f9983;super[_0x2812e7(0x108)](),this[_0x2812e7(0x113)]&&clearInterval(this[_0x2812e7(0x113)]);}[_0x2f9983(0x127)](_0x8a8c9e){const _0x97dd34=_0x2f9983;this[_0x97dd34(0x101)][_0x97dd34(0xb4)][_0x97dd34(0xd7)](),this[_0x97dd34(0x101)][_0x97dd34(0xb1)][_0x97dd34(0xe6)](),this[_0x97dd34(0x101)][_0x97dd34(0xb1)][_0x97dd34(0xa7)](_0x8a8c9e[_0x97dd34(0xd5)],!this[_0x97dd34(0x109)][_0x97dd34(0xa9)][_0x97dd34(0xef)](_0x97dd34(0xc4))),this[_0x97dd34(0xaf)]({'id':_0x97dd34(0x102),'staticMessage':_0x2343bc(this[_0x97dd34(0x109)][_0x97dd34(0xf9)],_0x97dd34(0x8f))});}[_0x2f9983(0xaf)]({id:_0x32b6e4,staticMessage:_0x2fed9c}){const _0x2e8312=_0x2f9983;this[_0x2e8312(0x101)][_0x2e8312(0xb4)][_0x2e8312(0xca)](_0x2e8312(0xee),{'id':_0x32b6e4,'initialContent':_0x2e8312(0x114)+_0x2fed9c+_0x2e8312(0x9e)});}[_0x2f9983(0x8d)](_0xac7984){const _0x5b974f=_0x2f9983,_0x491f26=_0xac7984[_0x5b974f(0x119)]?.[_0x5b974f(0xdf)]||_0xac7984[_0x5b974f(0x91)];this[_0x5b974f(0x101)][_0x5b974f(0xb4)][_0x5b974f(0xca)](_0x5b974f(0xad),{'contextItems':Array[_0x5b974f(0x9c)](_0xac7984[_0x5b974f(0x90)][_0x5b974f(0x111)]()),'initialContent':_0x5b974f(0x114)+_0x491f26+_0x5b974f(0x9e),'id':_0xac7984['id']});}[_0x2f9983(0xa2)]({errorMessage:_0x463cf9,id:_0x17893d}){const _0x16804b=_0x2f9983;this[_0x16804b(0x101)][_0x16804b(0xb4)][_0x16804b(0xca)](_0x16804b(0x9f),{'initialContent':_0x16804b(0x114)+_0x463cf9+_0x16804b(0x9e),'id':_0x17893d});}[_0x2f9983(0x129)](_0x39504e){const _0x4ef87e=_0x2f9983;return this[_0x4ef87e(0xe2)][_0x4ef87e(0x116)](async()=>{const _0x49313b=_0x4ef87e;this[_0x49313b(0x101)][_0x49313b(0xb4)][_0x49313b(0xca)](_0x49313b(0xee),{'id':_0x39504e[_0x49313b(0xc5)]+':'+_0x39504e['id']}),this[_0x49313b(0x94)](null);});}async[_0x2f9983(0xed)](_0x504e84){const _0x1b44f2=_0x2f9983,_0x2d35dc=_0x4b209a(this[_0x1b44f2(0x109)]);if(_0x2d35dc){const _0x18b9c6=_0x2d35dc[_0x1b44f2(0x11e)][_0x1b44f2(0xef)](_0x1b44f2(0xf8));_0x18b9c6&&!this[_0x1b44f2(0xb0)]&&(this[_0x1b44f2(0xb0)]=!0x0,this[_0x1b44f2(0x101)][_0x1b44f2(0xb4)][_0x1b44f2(0x103)](_0x1b44f2(0x92))['to'](_0x18b9c6,_0x1b44f2(0xcd)));}return this[_0x1b44f2(0xe2)][_0x1b44f2(0x116)](async()=>{const _0xaca768=_0x1b44f2;this[_0xaca768(0x101)][_0xaca768(0xb4)][_0xaca768(0xca)](_0xaca768(0xf5),{'id':_0x504e84[_0xaca768(0xc5)]+':'+_0x504e84['id'],'areActionsDisabled':_0x504e84[_0xaca768(0xfb)],'showDiff':this[_0xaca768(0x123)],'dropdownConfig':this[_0xaca768(0x109)][_0xaca768(0xa9)][_0xaca768(0xef)](_0xaca768(0xb9))}),this[_0xaca768(0x94)](null);});}[_0x2f9983(0xe1)](_0x53e27c,_0x48b47d){const _0x2d53b5=_0x2f9983,_0xe55cbc=this[_0x2d53b5(0x101)][_0x2d53b5(0xb4)][_0x2d53b5(0xa3)][_0x2d53b5(0x9a)];if(_0xe55cbc instanceof _0x1ec2e3)return this[_0x2d53b5(0x101)][_0x2d53b5(0xb4)][_0x2d53b5(0xa3)][_0x2d53b5(0x10a)](_0xe55cbc),void this[_0x2d53b5(0x101)][_0x2d53b5(0xb4)][_0x2d53b5(0xca)](_0x2d53b5(0x100),{'id':_0x53e27c['id'],'capabilities':{'isWebSearchEnabled':_0xe55cbc[_0x2d53b5(0x121)][_0x2d53b5(0x88)]||_0x48b47d[_0x2d53b5(0x88)],'isReasoningEnabled':_0xe55cbc[_0x2d53b5(0x121)][_0x2d53b5(0xda)]||_0x48b47d[_0x2d53b5(0xda)]}});this[_0x2d53b5(0x101)][_0x2d53b5(0xb4)][_0x2d53b5(0xca)](_0x2d53b5(0x100),{'id':_0x53e27c['id'],'capabilities':_0x48b47d});}[_0x2f9983(0x107)](_0x470db6){const _0x3c0515=_0x2f9983,_0xa938fc=this[_0x3c0515(0x101)][_0x3c0515(0xb4)][_0x3c0515(0xa3)][_0x3c0515(0xbb)](_0x197b1a=>_0x197b1a[_0x3c0515(0x10d)]['id']==_0x470db6['id']&&_0x197b1a instanceof _0x1ec2e3);_0xa938fc&&_0xa938fc[_0x3c0515(0xb3)](_0x3c0515(0xba),_0x470db6[_0x3c0515(0xba)]);}async[_0x2f9983(0xc3)](_0x4c652f){const _0x51f921=_0x2f9983,_0x1c2628=_0x4c652f[_0x51f921(0xcf)]||this[_0x51f921(0x99)];return this[_0x51f921(0xe2)][_0x51f921(0x116)](async _0x20f27a=>{const _0x16fe01=_0x51f921;await this[_0x16fe01(0x101)][_0x16fe01(0xb4)][_0x16fe01(0x12a)]({..._0x4c652f,'abortSignal':_0x20f27a,'renderingStrategy':_0x1c2628}),_0x4c652f[_0x16fe01(0xbf)]&&this[_0x16fe01(0x126)](_0x4c652f['id']);});}[_0x2f9983(0xb5)](_0x58b3f0,_0x1a3dcf){const _0x4463a7=_0x2f9983;this[_0x4463a7(0x101)][_0x4463a7(0xb4)][_0x4463a7(0xc1)](_0x58b3f0,_0x1a3dcf);}async[_0x2f9983(0x98)](_0x18730c){const _0x3538f2=_0x2f9983,_0x29cdd2=_0x18730c[_0x3538f2(0xcf)]||this[_0x3538f2(0x99)];return this[_0x3538f2(0xe2)][_0x3538f2(0x116)](async _0x111d4b=>{const _0x5120bf=_0x3538f2;await this[_0x5120bf(0x101)][_0x5120bf(0xb4)][_0x5120bf(0xea)]({..._0x18730c,'abortSignal':_0x111d4b,'renderingStrategy':_0x29cdd2}),_0x18730c[_0x5120bf(0xbf)]&&this[_0x5120bf(0x126)](_0x18730c['id']);});}[_0x2f9983(0x125)](_0x24f064){const _0x10123b=_0x2f9983;this[_0x10123b(0x101)][_0x10123b(0xb4)][_0x10123b(0xf1)](_0x24f064);}[_0x2f9983(0x126)](_0x2d4285){const _0x4d1f90=_0x2f9983;this[_0x4d1f90(0x101)][_0x4d1f90(0xb4)][_0x4d1f90(0x93)](_0x2d4285);}[_0x2f9983(0xd1)](_0x5477b2){const _0x474ec6=_0x2f9983;this[_0x474ec6(0x101)][_0x474ec6(0xb4)][_0x474ec6(0x11d)]()[_0x474ec6(0xc9)](_0x679dd8=>_0x679dd8[_0x474ec6(0x105)](_0x5477b2))[_0x474ec6(0xc7)](_0x372285=>this[_0x474ec6(0x101)][_0x474ec6(0xb4)][_0x474ec6(0xcc)](_0x372285));}[_0x2f9983(0x8a)](){const _0x1a670a=_0x2f9983;this[_0x1a670a(0x94)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1a670a(0x101)][_0x1a670a(0xb1)][_0x1a670a(0x9d)](!this[_0x1a670a(0x109)][_0x1a670a(0xa9)][_0x1a670a(0xef)](_0x1a670a(0xc4))),this[_0x1a670a(0xdb)]=!0x0,this[_0x1a670a(0x101)][_0x1a670a(0xb4)][_0x1a670a(0xa0)]();}[_0x2f9983(0x120)](_0x45fd56){const _0x5eef4d=_0x2f9983;this[_0x5eef4d(0xe2)][_0x5eef4d(0xc8)](),this[_0x5eef4d(0x101)][_0x5eef4d(0xb4)][_0x5eef4d(0x11d)]()[_0x5eef4d(0xc9)](_0x5b0da4=>_0x5b0da4[_0x5eef4d(0x105)](_0x45fd56['id']))[_0x5eef4d(0xc7)](_0x21461a=>this[_0x5eef4d(0x126)](_0x21461a)),this[_0x5eef4d(0xdb)]=!0x1,this[_0x5eef4d(0x101)][_0x5eef4d(0xb4)][_0x5eef4d(0xe9)]();}async[_0x2f9983(0x106)](){const _0x57d55d=_0x2f9983;return this[_0x57d55d(0xe2)][_0x57d55d(0xc6)][_0x57d55d(0xb6)](()=>{const _0x50866d=_0x57d55d;this[_0x50866d(0xdb)]=!0x1,this[_0x50866d(0x101)][_0x50866d(0xb4)][_0x50866d(0xe9)]();});}[_0x2f9983(0xb7)](_0x2997bd,_0x37b3a1){const _0x51ef41=_0x2f9983;this[_0x51ef41(0x101)][_0x51ef41(0xb1)][_0x51ef41(0xb7)](_0x2997bd,_0x37b3a1);}[_0x2f9983(0xdd)](_0x1e37e2){const _0x3ece3a=_0x2f9983;this[_0x3ece3a(0x101)][_0x3ece3a(0xb1)][_0x3ece3a(0xdd)](_0x1e37e2);}[_0x2f9983(0x8c)](_0xabfb8b,_0x1a3e88){const _0x287def=_0x2f9983;this[_0x287def(0x101)][_0x287def(0xb1)][_0x287def(0x8c)](_0xabfb8b,_0x1a3e88);}[_0x2f9983(0xcb)](_0x19026){const _0x10b68b=_0x2f9983;this[_0x10b68b(0x101)][_0x10b68b(0xb1)][_0x10b68b(0xcb)](_0x19026);}[_0x2f9983(0xbe)](_0x51621f){const _0x4b6818=_0x2f9983;this[_0x4b6818(0x101)][_0x4b6818(0xb1)][_0x4b6818(0xbe)](_0x51621f);}[_0x2f9983(0x89)](){const _0x2607e7=_0x2f9983;this[_0x2607e7(0x101)][_0x2607e7(0xb1)][_0x2607e7(0x89)]();}[_0x2f9983(0xd8)](){const _0x12eb72=_0x2f9983;this[_0x12eb72(0x101)][_0x12eb72(0xb1)][_0x12eb72(0xd8)]();}[_0x2f9983(0x11f)](_0x500c9e,_0x6ff35,_0x4e6afd){const _0x2a55d5=_0x2f9983;this[_0x2a55d5(0x101)][_0x2a55d5(0xb1)][_0x2a55d5(0x11f)](_0x500c9e,_0x6ff35,_0x4e6afd);}[_0x2f9983(0xe3)](){const _0x1ac5f1=_0x2f9983;this[_0x1ac5f1(0x101)][_0x1ac5f1(0xb1)][_0x1ac5f1(0xe3)](),this[_0x1ac5f1(0x101)][_0x1ac5f1(0xb1)][_0x1ac5f1(0x11b)](this[_0x1ac5f1(0x128)]());}[_0x2f9983(0x8e)](_0x1dacf4){const _0x499adf=_0x2f9983;this[_0x499adf(0x101)][_0x499adf(0xb1)][_0x499adf(0x8e)](_0x1dacf4);}[_0x2f9983(0xa1)](_0x27e28e){const _0x44a20d=_0x2f9983;this[_0x44a20d(0x101)][_0x44a20d(0xb1)][_0x44a20d(0xe8)](_0x27e28e[_0x44a20d(0x88)]),this[_0x44a20d(0x101)][_0x44a20d(0xb1)][_0x44a20d(0xd3)](_0x27e28e[_0x44a20d(0xda)]),this[_0x44a20d(0x101)][_0x44a20d(0xb1)][_0x44a20d(0x11b)](this[_0x44a20d(0x128)](_0x27e28e));}[_0x2f9983(0xa4)](_0x2f3718,_0x2f5bf8){const _0x825956=_0x2f9983;this[_0x825956(0x101)][_0x825956(0xb1)][_0x825956(0xfa)](_0x2f3718),_0x2f5bf8&&this[_0x825956(0x101)][_0x825956(0xb1)][_0x825956(0x9d)](!0x1);}[_0x2f9983(0xc2)](_0x366e34){const _0x7da7e=_0x2f9983;this[_0x7da7e(0x99)]=_0x366e34;}[_0x2f9983(0xd6)](_0x1b8b9a){const _0x502fcd=_0x2f9983;this[_0x502fcd(0x101)][_0x502fcd(0xb4)][_0x502fcd(0xd6)](_0x1b8b9a);}[_0x2f9983(0x115)](){const _0x34d448=_0x2f9983;this[_0x34d448(0xe0)](_0x2343bc(this[_0x34d448(0x109)][_0x34d448(0xf9)],_0x34d448(0xf7)));}[_0x2f9983(0xe0)](_0x54e0db,_0x6c41f=!0x1){const _0x5c6ed7=_0x2f9983;if(_0x6c41f&&!_0x54cab1()&&_0x54e0db[_0x5c6ed7(0x95)])return this[_0x5c6ed7(0x101)][_0x5c6ed7(0xdc)][_0x5c6ed7(0xbd)]='',void this[_0x5c6ed7(0xfe)](_0x54e0db);this[_0x5c6ed7(0x101)][_0x5c6ed7(0xdc)][_0x5c6ed7(0xbd)]=_0x54e0db;}[_0x2f9983(0x94)](_0x4db87d){const _0x2ab656=_0x2f9983,_0x3cf7cd=this[_0x2ab656(0x118)](_0x4db87d);this[_0x2ab656(0x101)][_0x2ab656(0xb4)][_0x2ab656(0x94)](_0x3cf7cd);}[_0x2f9983(0xfe)](_0x5008d7){const _0x485ba0=_0x2f9983;let _0x38dd6b=0x0;clearInterval(this[_0x485ba0(0x113)]),this[_0x485ba0(0x113)]=setInterval(()=>{const _0x19383c=_0x485ba0;this[_0x19383c(0x101)][_0x19383c(0xdc)][_0x19383c(0xbd)]=this[_0x19383c(0x101)][_0x19383c(0xdc)][_0x19383c(0xbd)]+_0x5008d7[_0x38dd6b],_0x38dd6b++,_0x38dd6b===_0x5008d7[_0x19383c(0x95)]&&clearInterval(this[_0x19383c(0x113)]);},0x1e);}[_0x2f9983(0x10f)](_0x5e945c){const _0xadd68f=_0x2f9983;this[_0xadd68f(0x101)][_0xadd68f(0xdc)][_0xadd68f(0x11c)]=_0x5e945c;}[_0x2f9983(0x118)](_0x39a36d){const _0x3070ca=_0x2f9983;return _0x39a36d?_0x39a36d[_0x3070ca(0x88)]&&_0x39a36d[_0x3070ca(0xda)]?_0x2343bc(this[_0x3070ca(0x109)][_0x3070ca(0xf9)],_0x3070ca(0xa5)):_0x39a36d[_0x3070ca(0x88)]?_0x2343bc(this[_0x3070ca(0x109)][_0x3070ca(0xf9)],_0x3070ca(0xab)):_0x39a36d[_0x3070ca(0xda)]?_0x2343bc(this[_0x3070ca(0x109)][_0x3070ca(0xf9)],_0x3070ca(0x10e)):_0x2343bc(this[_0x3070ca(0x109)][_0x3070ca(0xf9)],_0x3070ca(0xbc)):'';}[_0x2f9983(0x128)](_0x40aa09){const _0x393a2b=_0x2f9983;return _0x40aa09?_0x40aa09[_0x393a2b(0x88)]&&_0x40aa09[_0x393a2b(0xda)]?_0x2343bc(this[_0x393a2b(0x109)][_0x393a2b(0xf9)],_0x393a2b(0xf3)):_0x40aa09[_0x393a2b(0x88)]?_0x2343bc(this[_0x393a2b(0x109)][_0x393a2b(0xf9)],_0x393a2b(0xd0)):_0x40aa09[_0x393a2b(0xda)]?_0x2343bc(this[_0x393a2b(0x109)][_0x393a2b(0xf9)],_0x393a2b(0xeb)):_0x2343bc(this[_0x393a2b(0x109)][_0x393a2b(0xf9)],_0x393a2b(0xce)):_0x2343bc(this[_0x393a2b(0x109)][_0x393a2b(0xf9)],_0x393a2b(0xce));}[_0x2f9983(0x110)](_0x437b22,_0x28c818,_0x2f1159,_0x157346){const _0x5707a9=_0x2f9983;this[_0x5707a9(0x101)][_0x5707a9(0x110)](_0x437b22,_0x28c818,_0x2f1159,_0x157346);}[_0x2f9983(0xfc)](_0x21c0dd){const _0x205a02=_0x2f9983;this[_0x205a02(0x101)][_0x205a02(0xfc)](_0x21c0dd);}[_0x2f9983(0xd2)](){const _0x3a2afe=_0x2f9983;this[_0x3a2afe(0x101)][_0x3a2afe(0xb1)][_0x3a2afe(0xd2)]();}[_0x2f9983(0xf4)](_0x4db056,_0x1685ab){const _0x3b2f2e=_0x2f9983;this[_0x3b2f2e(0x101)][_0x3b2f2e(0xb4)][_0x3b2f2e(0x112)](_0x4db056,_0x1685ab);}[_0x2f9983(0xae)](){const _0x4ff6b8=_0x2f9983;this[_0x4ff6b8(0x101)][_0x4ff6b8(0xb1)][_0x4ff6b8(0xf2)]=!0x0;}[_0x2f9983(0x8b)](){const _0x1ed7b4=_0x2f9983;this[_0x1ed7b4(0x101)][_0x1ed7b4(0xb1)][_0x1ed7b4(0xf2)]=!0x1;}}
|
|
23
|
+
const _0x43518f=_0x3f9a;(function(_0x414a5e,_0x5c7628){const _0x3c5dfc=_0x3f9a,_0xc0543f=_0x414a5e();while(!![]){try{const _0x4c69fe=parseInt(_0x3c5dfc(0x109))/0x1+-parseInt(_0x3c5dfc(0x15f))/0x2+parseInt(_0x3c5dfc(0x10b))/0x3*(parseInt(_0x3c5dfc(0x11d))/0x4)+-parseInt(_0x3c5dfc(0xe9))/0x5+parseInt(_0x3c5dfc(0xc2))/0x6*(parseInt(_0x3c5dfc(0x125))/0x7)+-parseInt(_0x3c5dfc(0x12c))/0x8+parseInt(_0x3c5dfc(0x134))/0x9;if(_0x4c69fe===_0x5c7628)break;else _0xc0543f['push'](_0xc0543f['shift']());}catch(_0x4ec699){_0xc0543f['push'](_0xc0543f['shift']());}}}(_0x58f9,0xceb08));import{ContextPlugin as _0x20c261}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4eee28}from'ckeditor5/src/utils.js';import{AIChatView as _0x458fb9}from'./ui/aichatview.js';function _0x58f9(){const _0xb8fdd1=['chat','_view','interactionId','clear','resetMessageInput','quickActionData','addFeedItemError','isVisible','addTab','startInteraction','_isTrackChangesCommandValueBound','isReasoningEnabled','updateFeedItemAIReplyContent','remove','ai-reply','scrollFeedToSuggestion','updateResourceState','4550290LdmXfo','capabilities','clearPendingContextUI','showResizeButton','updateFeedItemAIReplySources','setLoadingMessage','addFeedItemAIReply','updateFeedInteractionHeader','find','_interactionPromiseResolver','_animateConversationTitle','ai.availableReplyActions','markFeedItemAsDone','delegate','chatFeed','isDone','isTrackChangesOn','addFeedItemUserMessage','markItemAsDone','interaction-header','createConversation','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateCapabilities','AI_CHAT_WELCOME_MESSAGE','_getLoadingMessage','userMessage','addFeedItemAISuggestion','abort','stopAutoScroll','finishInteraction','902296fuMqCb','availableModels','3bhtrla','contextItems','queueEmptyPromise','context','setSelectedModel','forEach','value','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','filter','destroy','view','setIsUploadInProgress','addFeedInteractionHeader','AIChatUI','removeItem','closeSourceResourceBalloon','isLoading','3795692dSwhMS','setFeedItemRenderingStrategy','setInputPlaceholder','populateSourceResourceBalloon','isBusy','locale','commands','children','4741891UruzLC','updateWebSources','chatControls','</p>','removeContextItem','focusPromptInput','set','2776480eSEMWu','setModelList','addItem','options','user-message','setContextItemLoading','setConversationTitle','disableControls','2130012pSpIxV','get','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','enableControls','bind','updateFeedItemAIReplySuggestionContent','addFeedItemStaticMessage','trackChanges','last','feedItemRenderingStrategy','ai-suggestion-reply','label','stopInteraction','length','enqueue','resetConversationTitle','toggleLoadingSkeleton','then','areActionsDisabled','clearConversationContextUI','setConversationContext','error-message','AITabs','streaming','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isPending','setIsMaximized','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','enableModelSelector','addContextItem','getItemIds','scrollToSuggestion','setAddContextOptions','chatHeader','plugins','pluginName','_titleAnimationInterval','setWebSearch','removeFeedInteraction','isDisabled','startsWith','2677990iziOSM','updateSuggestionItem','_promiseQueue','AI_CHAT_HEADING','12WSRenM','showDiff','renderingStrategy','isPremiumPlugin','disableModelSelector','updateReplyItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','config','isMaximized','setModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','requires','displayedPrompt','conversation-start','isOfficialPlugin','_getInputPlaceholder','values','setReasoning','toggleSuggestionDisplayMode','updateSuggestionPartState','startAutoScroll','isWebSearchEnabled'];_0x58f9=function(){return _0xb8fdd1;};return _0x58f9();}function _0x3f9a(_0x32ec66,_0x4204b7){const _0x58f974=_0x58f9();return _0x3f9a=function(_0x3f9a1e,_0x3eae83){_0x3f9a1e=_0x3f9a1e-0xbf;let _0x1e766c=_0x58f974[_0x3f9a1e];return _0x1e766c;},_0x3f9a(_0x32ec66,_0x4204b7);}import{AITabs as _0x256107}from'../aitabs/aitabs.js';import{getTranslation as _0x1fde07}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1279db}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x778ee3}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2e7ab1}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x47ab33}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x234fc3}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x20c261{static get[_0x43518f(0xcd)](){return[_0x256107];}[_0x43518f(0xd9)];static get[_0x43518f(0x159)](){const _0x4f434f=_0x43518f;return _0x4f434f(0x119);}static get[_0x43518f(0xd0)](){return!0x0;}static get[_0x43518f(0xc5)](){return!0x0;}[_0x43518f(0x13e)]=_0x43518f(0x14c);[_0x43518f(0xc3)]=!0x0;[_0x43518f(0xc0)];[_0x43518f(0xf2)];[_0x43518f(0x15a)]=void 0x0;[_0x43518f(0xe2)]=!0x1;constructor(_0x4fb1e8){const _0x33ef31=_0x43518f;super(_0x4fb1e8);const _0x217514=this[_0x33ef31(0x10e)][_0x33ef31(0x158)][_0x33ef31(0x135)](_0x33ef31(0x14b));this[_0x33ef31(0x12b)](_0x33ef31(0x121),!0x1),this[_0x33ef31(0xc0)]=new _0x2e7ab1(),this[_0x33ef31(0xd9)]=new _0x458fb9(this[_0x33ef31(0x10e)][_0x33ef31(0x122)],_0x217514[_0x33ef31(0xec)]),this[_0x33ef31(0xd9)][_0x33ef31(0xf6)](..._0x47ab33)['to'](this),this[_0x33ef31(0xd9)]['on'](_0x33ef31(0xd4),(_0x477e80,{showDiff:_0x5cd8ce})=>{const _0x2a9ee0=_0x33ef31;this[_0x2a9ee0(0xc3)]=_0x5cd8ce;}),_0x217514[_0x33ef31(0x116)][_0x33ef31(0xe0)]({'id':_0x33ef31(0xd8),'buttonLabel':_0x1fde07(this[_0x33ef31(0x10e)][_0x33ef31(0x122)],_0x33ef31(0xc1)),'buttonIcon':_0x1279db,'order':0x0,'content':this[_0x33ef31(0xd9)]}),this[_0x33ef31(0xd9)][_0x33ef31(0x127)][_0x33ef31(0x139)](_0x33ef31(0x11c))['to'](this,_0x33ef31(0x121),_0x4078e6=>_0x4078e6),this[_0x33ef31(0xd9)][_0x33ef31(0xf7)][_0x33ef31(0x139)](_0x33ef31(0x14e))['to'](this,_0x33ef31(0x121),_0x4f0e99=>_0x4f0e99),this[_0x33ef31(0xd9)][_0x33ef31(0x127)][_0x33ef31(0x11f)](this[_0x33ef31(0xd1)]());}[_0x43518f(0x115)](){const _0x20f9d8=_0x43518f;super[_0x20f9d8(0x115)](),this[_0x20f9d8(0x15a)]&&clearInterval(this[_0x20f9d8(0x15a)]);}[_0x43518f(0xfd)](_0x23d5a0){const _0x5d8e10=_0x43518f;this[_0x5d8e10(0xd9)][_0x5d8e10(0xf7)][_0x5d8e10(0xdb)](),this[_0x5d8e10(0xd9)][_0x5d8e10(0x127)][_0x5d8e10(0x152)](),this[_0x5d8e10(0xd9)][_0x5d8e10(0x127)][_0x5d8e10(0x12d)](_0x23d5a0[_0x5d8e10(0x10a)],!this[_0x5d8e10(0x10e)][_0x5d8e10(0xc9)][_0x5d8e10(0x135)](_0x5d8e10(0xfe))),this[_0x5d8e10(0x13b)]({'id':_0x5d8e10(0xcf),'staticMessage':_0x1fde07(this[_0x5d8e10(0x10e)][_0x5d8e10(0x122)],_0x5d8e10(0x102))});}[_0x43518f(0x13b)]({id:_0x217ad8,staticMessage:_0x429c52}){const _0x3d8182=_0x43518f;this[_0x3d8182(0xd9)][_0x3d8182(0xf7)][_0x3d8182(0x12e)](_0x3d8182(0xe6),{'id':_0x217ad8,'initialContent':_0x3d8182(0x150)+_0x429c52+_0x3d8182(0x128)});}[_0x43518f(0xfa)](_0x181bcc){const _0x29c7de=_0x43518f,_0x13dc9b=_0x181bcc[_0x29c7de(0xdd)]?.[_0x29c7de(0xce)]||_0x181bcc[_0x29c7de(0x104)];this[_0x29c7de(0xd9)][_0x29c7de(0xf7)][_0x29c7de(0x12e)](_0x29c7de(0x130),{'contextItems':Array[_0x29c7de(0x112)](_0x181bcc[_0x29c7de(0x10c)][_0x29c7de(0xd2)]()),'initialContent':_0x29c7de(0x150)+_0x13dc9b+_0x29c7de(0x128),'id':_0x181bcc['id']});}[_0x43518f(0xde)]({errorMessage:_0xb3943c,id:_0xa0040}){const _0x2ef125=_0x43518f;this[_0x2ef125(0xd9)][_0x2ef125(0xf7)][_0x2ef125(0x12e)](_0x2ef125(0x14a),{'initialContent':_0x2ef125(0x150)+_0xb3943c+_0x2ef125(0x128),'id':_0xa0040});}[_0x43518f(0xef)](_0x307021){const _0x4c3466=_0x43518f;return this[_0x4c3466(0xc0)][_0x4c3466(0x143)](async()=>{const _0x557ec3=_0x4c3466;this[_0x557ec3(0xd9)][_0x557ec3(0xf7)][_0x557ec3(0x12e)](_0x557ec3(0xe6),{'id':_0x307021[_0x557ec3(0xda)]+':'+_0x307021['id']}),this[_0x557ec3(0xee)](null);});}async[_0x43518f(0x105)](_0x24e886){const _0x37030f=_0x43518f,_0xbf82c7=_0x234fc3(this[_0x37030f(0x10e)]);if(_0xbf82c7){const _0x2b71fc=_0xbf82c7[_0x37030f(0x123)][_0x37030f(0x135)](_0x37030f(0x13c));_0x2b71fc&&!this[_0x37030f(0xe2)]&&(this[_0x37030f(0xe2)]=!0x0,this[_0x37030f(0xd9)][_0x37030f(0xf7)][_0x37030f(0x139)](_0x37030f(0xf9))['to'](_0x2b71fc,_0x37030f(0x111)));}return this[_0x37030f(0xc0)][_0x37030f(0x143)](async()=>{const _0xb43651=_0x37030f;this[_0xb43651(0xd9)][_0xb43651(0xf7)][_0xb43651(0x12e)](_0xb43651(0x13f),{'id':_0x24e886[_0xb43651(0xda)]+':'+_0x24e886['id'],'areActionsDisabled':_0x24e886[_0xb43651(0x147)],'showDiff':this[_0xb43651(0xc3)],'dropdownConfig':this[_0xb43651(0x10e)][_0xb43651(0xc9)][_0xb43651(0x135)](_0xb43651(0xf4))}),this[_0xb43651(0xee)](null);});}[_0x43518f(0x118)](_0x1df034,_0x57df93){const _0x189a0c=_0x43518f,_0x3c8609=this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x124)][_0x189a0c(0x13d)];if(_0x3c8609 instanceof _0x778ee3)return this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x124)][_0x189a0c(0xe5)](_0x3c8609),void this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x12e)](_0x189a0c(0xfc),{'id':_0x1df034['id'],'capabilities':{'isWebSearchEnabled':_0x3c8609[_0x189a0c(0xea)][_0x189a0c(0xd7)]||_0x57df93[_0x189a0c(0xd7)],'isReasoningEnabled':_0x3c8609[_0x189a0c(0xea)][_0x189a0c(0xe3)]||_0x57df93[_0x189a0c(0xe3)]}});this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x12e)](_0x189a0c(0xfc),{'id':_0x1df034['id'],'capabilities':_0x57df93});}[_0x43518f(0xf0)](_0x141498){const _0x5b584a=_0x43518f,_0x21e778=this[_0x5b584a(0xd9)][_0x5b584a(0xf7)][_0x5b584a(0x124)][_0x5b584a(0xf1)](_0x25b197=>_0x25b197[_0x5b584a(0x12f)]['id']==_0x141498['id']&&_0x25b197 instanceof _0x778ee3);_0x21e778&&_0x21e778[_0x5b584a(0x12b)](_0x5b584a(0xdf),_0x141498[_0x5b584a(0xdf)]);}async[_0x43518f(0xe4)](_0x5c66c9){const _0x1ce865=_0x43518f,_0x2537e6=_0x5c66c9[_0x1ce865(0xc4)]||this[_0x1ce865(0x13e)];return this[_0x1ce865(0xc0)][_0x1ce865(0x143)](async _0x578c79=>{const _0x435dbf=_0x1ce865;await this[_0x435dbf(0xd9)][_0x435dbf(0xf7)][_0x435dbf(0xc7)]({..._0x5c66c9,'abortSignal':_0x578c79,'renderingStrategy':_0x2537e6}),_0x5c66c9[_0x435dbf(0xf8)]&&this[_0x435dbf(0xf5)](_0x5c66c9['id']);});}[_0x43518f(0xed)](_0x594292,_0x1c0b0c){const _0x5bbc4e=_0x43518f;this[_0x5bbc4e(0xd9)][_0x5bbc4e(0xf7)][_0x5bbc4e(0x126)](_0x594292,_0x1c0b0c);}async[_0x43518f(0x13a)](_0x58d02d){const _0x51ed0f=_0x43518f,_0x725b98=_0x58d02d[_0x51ed0f(0xc4)]||this[_0x51ed0f(0x13e)];return this[_0x51ed0f(0xc0)][_0x51ed0f(0x143)](async _0x4fbb69=>{const _0x8312ab=_0x51ed0f;await this[_0x8312ab(0xd9)][_0x8312ab(0xf7)][_0x8312ab(0xbf)]({..._0x58d02d,'abortSignal':_0x4fbb69,'renderingStrategy':_0x725b98}),_0x58d02d[_0x8312ab(0xf8)]&&this[_0x8312ab(0xf5)](_0x58d02d['id']);});}[_0x43518f(0x136)](_0x378a74){const _0x24627c=_0x43518f;this[_0x24627c(0xd9)][_0x24627c(0xf7)][_0x24627c(0xd5)](_0x378a74);}[_0x43518f(0xf5)](_0x26ac30){const _0x4a8240=_0x43518f;this[_0x4a8240(0xd9)][_0x4a8240(0xf7)][_0x4a8240(0xfb)](_0x26ac30);}[_0x43518f(0x15c)](_0x586703){const _0x15a5c3=_0x43518f;this[_0x15a5c3(0xd9)][_0x15a5c3(0xf7)][_0x15a5c3(0x154)]()[_0x15a5c3(0x114)](_0x29c991=>_0x29c991[_0x15a5c3(0x15e)](_0x586703))[_0x15a5c3(0x110)](_0x2c645c=>this[_0x15a5c3(0xd9)][_0x15a5c3(0xf7)][_0x15a5c3(0x11a)](_0x2c645c));}[_0x43518f(0xe1)](){const _0x1186dd=_0x43518f;this[_0x1186dd(0xee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1186dd(0xd9)][_0x1186dd(0x127)][_0x1186dd(0xc6)](!this[_0x1186dd(0x10e)][_0x1186dd(0xc9)][_0x1186dd(0x135)](_0x1186dd(0xfe))),this[_0x1186dd(0x121)]=!0x0,this[_0x1186dd(0xd9)][_0x1186dd(0xf7)][_0x1186dd(0xd6)]();}[_0x43518f(0x141)](_0x41f63c){const _0x53e2be=_0x43518f;this[_0x53e2be(0xc0)][_0x53e2be(0x106)](),this[_0x53e2be(0xd9)][_0x53e2be(0xf7)][_0x53e2be(0x154)]()[_0x53e2be(0x114)](_0x1b098c=>_0x1b098c[_0x53e2be(0x15e)](_0x41f63c['id']))[_0x53e2be(0x110)](_0x59280e=>this[_0x53e2be(0xf5)](_0x59280e)),this[_0x53e2be(0x121)]=!0x1,this[_0x53e2be(0xd9)][_0x53e2be(0xf7)][_0x53e2be(0x107)]();}async[_0x43518f(0x108)](){const _0x416c0e=_0x43518f;return this[_0x416c0e(0xc0)][_0x416c0e(0x10d)][_0x416c0e(0x146)](()=>{const _0x26e0ff=_0x416c0e;this[_0x26e0ff(0x121)]=!0x1,this[_0x26e0ff(0xd9)][_0x26e0ff(0xf7)][_0x26e0ff(0x107)]();});}[_0x43518f(0x153)](_0xe9f34b,_0x5e4ff8){const _0x3bc350=_0x43518f;this[_0x3bc350(0xd9)][_0x3bc350(0x127)][_0x3bc350(0x153)](_0xe9f34b,_0x5e4ff8);}[_0x43518f(0x129)](_0x2c4fa3){const _0x30c662=_0x43518f;this[_0x30c662(0xd9)][_0x30c662(0x127)][_0x30c662(0x129)](_0x2c4fa3);}[_0x43518f(0x131)](_0x124f60,_0x1f9798){const _0x30e63d=_0x43518f;this[_0x30e63d(0xd9)][_0x30e63d(0x127)][_0x30e63d(0x131)](_0x124f60,_0x1f9798);}[_0x43518f(0x117)](_0x24886d){const _0x5a1389=_0x43518f;this[_0x5a1389(0xd9)][_0x5a1389(0x127)][_0x5a1389(0x117)](_0x24886d);}[_0x43518f(0x149)](_0x1e6533){const _0x42473e=_0x43518f;this[_0x42473e(0xd9)][_0x42473e(0x127)][_0x42473e(0x149)](_0x1e6533);}[_0x43518f(0xeb)](){const _0x1143ed=_0x43518f;this[_0x1143ed(0xd9)][_0x1143ed(0x127)][_0x1143ed(0xeb)]();}[_0x43518f(0x148)](){const _0x2a30ee=_0x43518f;this[_0x2a30ee(0xd9)][_0x2a30ee(0x127)][_0x2a30ee(0x148)]();}[_0x43518f(0xe8)](_0x373e49,_0x289e26,_0x4876d0){const _0x1ae03c=_0x43518f;this[_0x1ae03c(0xd9)][_0x1ae03c(0x127)][_0x1ae03c(0xe8)](_0x373e49,_0x289e26,_0x4876d0);}[_0x43518f(0xdc)](){const _0x47e65e=_0x43518f;this[_0x47e65e(0xd9)][_0x47e65e(0x127)][_0x47e65e(0xdc)](),this[_0x47e65e(0xd9)][_0x47e65e(0x127)][_0x47e65e(0x11f)](this[_0x47e65e(0xd1)]());}[_0x43518f(0x156)](_0x1819ed){const _0xe66236=_0x43518f;this[_0xe66236(0xd9)][_0xe66236(0x127)][_0xe66236(0x156)](_0x1819ed);}[_0x43518f(0x101)](_0xc22a36){const _0x236b61=_0x43518f;this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0x15b)](_0xc22a36[_0x236b61(0xd7)]),this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0xd3)](_0xc22a36[_0x236b61(0xe3)]),this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0x11f)](this[_0x236b61(0xd1)](_0xc22a36));}[_0x43518f(0x10f)](_0x292d74,_0x40fa11){const _0x540caf=_0x43518f;this[_0x540caf(0xd9)][_0x540caf(0x127)][_0x540caf(0xcb)](_0x292d74),_0x40fa11&&this[_0x540caf(0xd9)][_0x540caf(0x127)][_0x540caf(0xc6)](!0x1);}[_0x43518f(0x11e)](_0x1672e3){const _0x237da6=_0x43518f;this[_0x237da6(0x13e)]=_0x1672e3;}[_0x43518f(0x145)](_0x5c6a65){const _0x1ae629=_0x43518f;this[_0x1ae629(0xd9)][_0x1ae629(0xf7)][_0x1ae629(0x145)](_0x5c6a65);}[_0x43518f(0x144)](){const _0xb19a81=_0x43518f;this[_0xb19a81(0x132)](_0x1fde07(this[_0xb19a81(0x10e)][_0xb19a81(0x122)],_0xb19a81(0xc1)));}[_0x43518f(0x132)](_0x300014,_0x33915d=!0x1){const _0x19d7bc=_0x43518f;if(_0x33915d&&!_0x4eee28()&&_0x300014[_0x19d7bc(0x142)])return this[_0x19d7bc(0xd9)][_0x19d7bc(0x157)][_0x19d7bc(0x140)]='',void this[_0x19d7bc(0xf3)](_0x300014);this[_0x19d7bc(0xd9)][_0x19d7bc(0x157)][_0x19d7bc(0x140)]=_0x300014;}[_0x43518f(0xee)](_0x5993fe){const _0xe9bf55=_0x43518f,_0x4d7b9d=this[_0xe9bf55(0x103)](_0x5993fe);this[_0xe9bf55(0xd9)][_0xe9bf55(0xf7)][_0xe9bf55(0xee)](_0x4d7b9d);}[_0x43518f(0xf3)](_0x2c15c9){const _0x524ac5=_0x43518f;let _0x4ed6dd=0x0;clearInterval(this[_0x524ac5(0x15a)]),this[_0x524ac5(0x15a)]=setInterval(()=>{const _0x312c6d=_0x524ac5;this[_0x312c6d(0xd9)][_0x312c6d(0x157)][_0x312c6d(0x140)]=this[_0x312c6d(0xd9)][_0x312c6d(0x157)][_0x312c6d(0x140)]+_0x2c15c9[_0x4ed6dd],_0x4ed6dd++,_0x4ed6dd===_0x2c15c9[_0x312c6d(0x142)]&&clearInterval(this[_0x312c6d(0x15a)]);},0x1e);}[_0x43518f(0x14f)](_0x831354){const _0x4bde34=_0x43518f;this[_0x4bde34(0xd9)][_0x4bde34(0x157)][_0x4bde34(0xca)]=_0x831354;}[_0x43518f(0x103)](_0x4f6f26){const _0x39f9f1=_0x43518f;return _0x4f6f26?_0x4f6f26[_0x39f9f1(0xd7)]&&_0x4f6f26[_0x39f9f1(0xe3)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x137)):_0x4f6f26[_0x39f9f1(0xd7)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0xff)):_0x4f6f26[_0x39f9f1(0xe3)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x14d)):_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x100)):'';}[_0x43518f(0xd1)](_0x5bab33){const _0x4ce5c2=_0x43518f;return _0x5bab33?_0x5bab33[_0x4ce5c2(0xd7)]&&_0x5bab33[_0x4ce5c2(0xe3)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0x151)):_0x5bab33[_0x4ce5c2(0xd7)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xcc)):_0x5bab33[_0x4ce5c2(0xe3)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0x113)):_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xc8)):_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xc8));}[_0x43518f(0x120)](_0x5e9a87,_0x208e69,_0x140c7a,_0x20c4a8){const _0x56d03f=_0x43518f;this[_0x56d03f(0xd9)][_0x56d03f(0x120)](_0x5e9a87,_0x208e69,_0x140c7a,_0x20c4a8);}[_0x43518f(0x11b)](_0x11c636){const _0x481265=_0x43518f;this[_0x481265(0xd9)][_0x481265(0x11b)](_0x11c636);}[_0x43518f(0x12a)](){const _0x5e0217=_0x43518f;this[_0x5e0217(0xd9)][_0x5e0217(0x127)][_0x5e0217(0x12a)]();}[_0x43518f(0xe7)](_0xcf3514,_0x539a93){const _0x1fcb0b=_0x43518f;this[_0x1fcb0b(0xd9)][_0x1fcb0b(0xf7)][_0x1fcb0b(0x155)](_0xcf3514,_0x539a93);}[_0x43518f(0x133)](){const _0x5996f1=_0x43518f;this[_0x5996f1(0xd9)][_0x5996f1(0x127)][_0x5996f1(0x15d)]=!0x0;}[_0x43518f(0x138)](){const _0x3febf9=_0x43518f;this[_0x3febf9(0xd9)][_0x3febf9(0x127)][_0x3febf9(0x15d)]=!0x1;}}
|
|
@@ -2,8 +2,203 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { type AIConnector, type AIUserMessage } from '../../aicore/aiconnector.js';
|
|
6
|
+
import { AIContextItemType, AIContextTextResourceType, type AIContextItem, type AIContextItemRequestData } from '../../aicore/model/aicontext.js';
|
|
6
7
|
export declare const AI_CONTEXT_MODEL_EVENT_NAMES: readonly ["contextItemAdded", "contextItemRemoved", "contextItemLoadingEnded", "contextSent", "error", "addContextOptionsChanged", "sourceResourcesLoaded", "resourceStateChanged", "uploadProgressChanged"];
|
|
8
|
+
declare const AIChatContext_base: {
|
|
9
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Manages the context of the current conversation.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AIChatContext extends /* #__PURE__ */ AIChatContext_base {
|
|
16
|
+
constructor({ connector, config, ownerId }: {
|
|
17
|
+
connector: AIConnector;
|
|
18
|
+
config?: AIChatContextConfig;
|
|
19
|
+
ownerId: string;
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Initializes the context.
|
|
23
|
+
*/
|
|
24
|
+
init(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the pending context items that will be sent to the AI endpoint in the next interaction.
|
|
27
|
+
*
|
|
28
|
+
* @returns Map of pending context items keyed by their uiId
|
|
29
|
+
*/
|
|
30
|
+
getPendingContextItems(): Map<string, AIContextItem>;
|
|
31
|
+
/**
|
|
32
|
+
* Populates context items from message data.
|
|
33
|
+
* This method converts user message content to context items and adds them to the conversation context.
|
|
34
|
+
*/
|
|
35
|
+
populateFromMessage(content: AIUserMessage['content'][0]): Promise<AIContextItem>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a context item from conversation content.
|
|
38
|
+
*/
|
|
39
|
+
private _createContextItemFromContent;
|
|
40
|
+
/**
|
|
41
|
+
* Returns all context items that have been sent to the AI endpoint in the current conversation.
|
|
42
|
+
*
|
|
43
|
+
* @returns Map of sent context items keyed by their uiId
|
|
44
|
+
*/
|
|
45
|
+
getSentContextItems(): Map<string, AIContextItem>;
|
|
46
|
+
/**
|
|
47
|
+
* Removes a context item from the pending context.
|
|
48
|
+
* Read-only items cannot be removed and the method returns early.
|
|
49
|
+
*
|
|
50
|
+
* @param uiId The unique identifier of the context item to remove
|
|
51
|
+
*/
|
|
52
|
+
removeFromContext(uiId: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Clears all pending context items and adds the current document to the conversation context if it exists.
|
|
55
|
+
*/
|
|
56
|
+
clearPendingContextItems(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Adds context items to the conversation context and clears the pending context items.
|
|
59
|
+
*/
|
|
60
|
+
addToConversationContext(contextItems: Map<string, AIContextItem>): void;
|
|
61
|
+
/**
|
|
62
|
+
* Checks if the current document is in the pending context.
|
|
63
|
+
*
|
|
64
|
+
* @returns True if the current document is in pending context, false otherwise
|
|
65
|
+
*/
|
|
66
|
+
isCurrentDocumentInContext(): boolean;
|
|
67
|
+
isSelectionInContext(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Checks if the current document is in the conversation context.
|
|
70
|
+
*
|
|
71
|
+
* @returns True if the current document is in conversation context, false otherwise
|
|
72
|
+
*/
|
|
73
|
+
isCurrentDocumentInConversation(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Converts context items to request data format for API endpoint.
|
|
76
|
+
* This static method transforms the internal context item format to the format expected by the AI connector.
|
|
77
|
+
*
|
|
78
|
+
* @param contextItems Map of context items to convert
|
|
79
|
+
* @returns Array of context items in API request format
|
|
80
|
+
*/
|
|
81
|
+
static mapContextItemsToRequestData(contextItems: Map<string, AIContextItem>): Array<AIContextItemRequestData>;
|
|
82
|
+
/**
|
|
83
|
+
* Adds files to the context by uploading them and creating context items.
|
|
84
|
+
* This method handles multiple files concurrently and tracks upload progress.
|
|
85
|
+
*
|
|
86
|
+
* @param files Array of File objects to upload and add to context
|
|
87
|
+
* @param [attributes] Optional attributes object containing resourceId and label for tracking purposes and context chips
|
|
88
|
+
* @param [type] Context item type, defaults to AIContextItemType.FILE to indicate that the file is being added as a file or text
|
|
89
|
+
* @returns Promise that resolves when all files are processed
|
|
90
|
+
*/
|
|
91
|
+
addFilesToContext(files: Array<File>, attributes?: {
|
|
92
|
+
resourceId: string;
|
|
93
|
+
label: string;
|
|
94
|
+
}, type?: AIContextItemType.FILE | AIContextItemType.TEXT): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Adds the current document to the pending context.
|
|
97
|
+
* If the document is already in context, this method returns early without changes.
|
|
98
|
+
*
|
|
99
|
+
* @param label Display label for the current document
|
|
100
|
+
*/
|
|
101
|
+
addCurrentDocumentToContext(label: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Updates the current document in the pending context with new content and version.
|
|
104
|
+
* This method uploads the document content and updates the context item accordingly.
|
|
105
|
+
*
|
|
106
|
+
* @param content The document content to upload, or undefined to skip
|
|
107
|
+
* @param version Version number of the document for change tracking
|
|
108
|
+
* @returns Promise that resolves when the document is updated
|
|
109
|
+
*/
|
|
110
|
+
updateCurrentDocument(content: string | undefined, version: number, sessionId: string | null, selections: Array<{
|
|
111
|
+
start: number;
|
|
112
|
+
end: number;
|
|
113
|
+
htmlFragment: string;
|
|
114
|
+
}>): Promise<void>;
|
|
115
|
+
addSelectionToContext(selection: string): void;
|
|
116
|
+
removeSelectionFromContext(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Adds a URL to the context by uploading it and creating a context item.
|
|
119
|
+
* This method handles URL upload with proper error handling and progress tracking.
|
|
120
|
+
*
|
|
121
|
+
* @param url The URL to upload and add to context
|
|
122
|
+
* @param [attributes] Optional attributes object containing resourceId and label for tracking purposes and context chips
|
|
123
|
+
* @returns Promise that resolves when the URL is processed
|
|
124
|
+
*/
|
|
125
|
+
addUrlToContext(url: string, attributes?: {
|
|
126
|
+
resourceId: string;
|
|
127
|
+
label: string;
|
|
128
|
+
}): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Loads resources for a given source provider with the specified query.
|
|
131
|
+
* This method calls the source's getResources callback and updates resource states.
|
|
132
|
+
*
|
|
133
|
+
* @param sourceId The unique identifier of the source provider
|
|
134
|
+
* @param query Search query to filter resources
|
|
135
|
+
* @param uid Unique identifier for the request to prevent race conditions
|
|
136
|
+
* @returns Promise resolving to array of resources with context state
|
|
137
|
+
*/
|
|
138
|
+
loadSourceResources(sourceId: string, query: string, uid: string): Promise<Array<AIContextResourceState>>;
|
|
139
|
+
addResourceToContext(source: AIContextProvider, resource: AIContextResource): Promise<void>;
|
|
140
|
+
}
|
|
141
|
+
export type AIChatContextItemAddedEvent = {
|
|
142
|
+
name: 'contextItemAdded';
|
|
143
|
+
args: [
|
|
144
|
+
{
|
|
145
|
+
contextItem: AIContextItem;
|
|
146
|
+
isLoading: boolean;
|
|
147
|
+
}
|
|
148
|
+
];
|
|
149
|
+
};
|
|
150
|
+
export type AIChatContextItemRemovedEvent = {
|
|
151
|
+
name: 'contextItemRemoved';
|
|
152
|
+
args: [
|
|
153
|
+
{
|
|
154
|
+
uiId: string;
|
|
155
|
+
type?: AIContextItemType;
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
};
|
|
159
|
+
export type AIChatContextSentEvent = {
|
|
160
|
+
name: 'contextSent';
|
|
161
|
+
args: [
|
|
162
|
+
{
|
|
163
|
+
contextItems: Array<AIContextItem>;
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
};
|
|
167
|
+
export type AIChatContextAddContextOptionsChangedEvent = {
|
|
168
|
+
name: 'addContextOptionsChanged';
|
|
169
|
+
args: [
|
|
170
|
+
{
|
|
171
|
+
options: AIAddContextOptionsState;
|
|
172
|
+
}
|
|
173
|
+
];
|
|
174
|
+
};
|
|
175
|
+
export type AIChatContextUploadProgressChangedEvent = {
|
|
176
|
+
name: 'uploadProgressChanged';
|
|
177
|
+
args: [
|
|
178
|
+
{
|
|
179
|
+
isUploadInProgress: boolean;
|
|
180
|
+
}
|
|
181
|
+
];
|
|
182
|
+
};
|
|
183
|
+
export type AIAddContextOptionsState = {
|
|
184
|
+
document: {
|
|
185
|
+
enabled: boolean;
|
|
186
|
+
isHidden: boolean;
|
|
187
|
+
};
|
|
188
|
+
urls: {
|
|
189
|
+
enabled: boolean;
|
|
190
|
+
};
|
|
191
|
+
files: {
|
|
192
|
+
enabled: boolean;
|
|
193
|
+
};
|
|
194
|
+
sources: Array<AIContextProviderState>;
|
|
195
|
+
};
|
|
196
|
+
export type AIContextProviderState = AIContextProvider & {
|
|
197
|
+
resources: Array<AIContextResourceState>;
|
|
198
|
+
};
|
|
199
|
+
export type AIContextResourceState = AIContextResource & {
|
|
200
|
+
isInContext?: boolean;
|
|
201
|
+
};
|
|
7
202
|
/**
|
|
8
203
|
* The configuration of the AI Chat menu for adding resources to the prompt context.
|
|
9
204
|
*
|
|
@@ -132,3 +327,4 @@ export type AIContextTextResource = {
|
|
|
132
327
|
content: string;
|
|
133
328
|
type: AIContextTextResourceType;
|
|
134
329
|
};
|
|
330
|
+
export {};
|