@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.7
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 +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/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 +10 -2
- 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.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/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 +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/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/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/aireviewmodefinishreviewbuttonview.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/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5617(_0x25c10b,_0x282e03){const _0x120442=_0x1204();return _0x5617=function(_0x5617b6,_0x550a98){_0x5617b6=_0x5617b6-0x100;let _0x3f05f1=_0x120442[_0x5617b6];return _0x3f05f1;},_0x5617(_0x25c10b,_0x282e03);}const _0x14556d=_0x5617;(function(_0x329b85,_0x12a668){const _0x41743e=_0x5617,_0x57a127=_0x329b85();while(!![]){try{const _0x1d8949=parseInt(_0x41743e(0x10a))/0x1*(parseInt(_0x41743e(0x113))/0x2)+-parseInt(_0x41743e(0x105))/0x3*(-parseInt(_0x41743e(0x117))/0x4)+parseInt(_0x41743e(0x10f))/0x5+-parseInt(_0x41743e(0x11b))/0x6*(-parseInt(_0x41743e(0x115))/0x7)+parseInt(_0x41743e(0x110))/0x8*(parseInt(_0x41743e(0x108))/0x9)+parseInt(_0x41743e(0x101))/0xa*(-parseInt(_0x41743e(0x10c))/0xb)+-parseInt(_0x41743e(0x119))/0xc;if(_0x1d8949===_0x12a668)break;else _0x57a127['push'](_0x57a127['shift']());}catch(_0x4365da){_0x57a127['push'](_0x57a127['shift']());}}}(_0x1204,0x52343));import{ToolbarView as _0x25bbbc,ButtonView as _0x68de08}from'ckeditor5/src/ui.js';function _0x1204(){const _0xbb62ed=['21PJWdwP','_createButton','AI_BALLOON_APPLY_BUTTON','4329WeWYPY','suggestButton','7oUvsdg','locale','1050071ImOqrD','ck-ai-balloon__toolbar','ck-ai-button-secondary','3303165KumtYV','7824UHPwrL','ck-ai-button-primary','applyButton','134138xblsUk','add','7357hVplBb','items','199604MJrXRS','isEnabled','24621132uJCflm','bind','3594hZChPz','AI_BALLOON_SUGGEST_BUTTON','20aBjDOM','extendTemplate','set','isLoading'];_0x1204=function(){return _0xbb62ed;};return _0x1204();}import{getTranslation as _0x43cb9e}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x25bbbc{constructor(_0x56a445,_0x4ad16d=!0x0,_0x211691=!0x0){const _0x44b7ad=_0x5617;super(_0x56a445),this[_0x44b7ad(0x103)](_0x44b7ad(0x104),!0x1),_0x4ad16d&&(this[_0x44b7ad(0x112)]=this[_0x44b7ad(0x106)](_0x43cb9e(_0x56a445,_0x44b7ad(0x107)),_0x44b7ad(0x111)),this[_0x44b7ad(0x112)][_0x44b7ad(0x11a)](_0x44b7ad(0x118))['to'](this,_0x44b7ad(0x104),_0x478d2e=>!_0x478d2e),this[_0x44b7ad(0x116)][_0x44b7ad(0x114)](this[_0x44b7ad(0x112)])),_0x211691&&(this[_0x44b7ad(0x109)]=this[_0x44b7ad(0x106)](_0x43cb9e(_0x56a445,_0x44b7ad(0x100)),_0x4ad16d?_0x44b7ad(0x10e):_0x44b7ad(0x111)),this[_0x44b7ad(0x109)][_0x44b7ad(0x11a)](_0x44b7ad(0x118))['to'](this,_0x44b7ad(0x104),_0x552a4a=>!_0x552a4a),this[_0x44b7ad(0x116)][_0x44b7ad(0x114)](this[_0x44b7ad(0x109)])),this[_0x44b7ad(0x102)]({'attributes':{'class':[_0x44b7ad(0x10d)]}});}[_0x14556d(0x106)](_0x9e2d44,_0x1ba763){const _0x2775fc=_0x14556d,_0x3788bd=new _0x68de08(this[_0x2775fc(0x10b)]);return _0x3788bd[_0x2775fc(0x103)]({'label':_0x9e2d44,'class':_0x1ba763||'','isVisible':!0x0,'withText':!0x0}),_0x3788bd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xda34a=_0x252f;(function(_0x48b5ec,_0x5d41f7){const _0x124b81=_0x252f,_0x37c8b6=_0x48b5ec();while(!![]){try{const _0x51e0ce=parseInt(_0x124b81(0x134))/0x1+parseInt(_0x124b81(0x11c))/0x2+parseInt(_0x124b81(0x11b))/0x3*(parseInt(_0x124b81(0x10d))/0x4)+parseInt(_0x124b81(0x139))/0x5*(parseInt(_0x124b81(0x142))/0x6)+-parseInt(_0x124b81(0x156))/0x7*(parseInt(_0x124b81(0x146))/0x8)+-parseInt(_0x124b81(0x113))/0x9+parseInt(_0x124b81(0x125))/0xa*(-parseInt(_0x124b81(0x110))/0xb);if(_0x51e0ce===_0x5d41f7)break;else _0x37c8b6['push'](_0x37c8b6['shift']());}catch(_0x1dfb56){_0x37c8b6['push'](_0x37c8b6['shift']());}}}(_0x4710,0x61b81));import{ButtonView as _0xb4239f,View as _0x1613d0,ViewCollection as _0xca9f44,FocusCycler as _0x2a0ab7}from'ckeditor5/src/ui.js';import{FocusTracker as _0x518e5e,KeystrokeHandler as _0x3aeda3}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x196967,IconPreviousArrow as _0x2c047a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5d4dfb}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x42bd24}from'./aiballoondisclaimerview.js';import{getTranslation as _0x2fd04d}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0xda34a(0x116),_0xda34a(0x132),_0xda34a(0x117),_0xda34a(0x152)];export class AIBalloonView extends _0x1613d0{[_0xda34a(0x143)];[_0xda34a(0x13d)];[_0xda34a(0x150)];[_0xda34a(0x140)];[_0xda34a(0x13f)];[_0xda34a(0x115)];constructor(_0x425b9a,_0x5e9d4f,_0x53c1ae,_0x17da5a){const _0x5dca4c=_0xda34a;super(_0x425b9a),this[_0x5dca4c(0x140)]=_0x53c1ae,this[_0x5dca4c(0x155)](_0x5dca4c(0x13e),!0x1),this[_0x5dca4c(0x155)](_0x5dca4c(0x147),_0x17da5a),this[_0x5dca4c(0x155)](_0x5dca4c(0x12a),!0x1),this[_0x5dca4c(0x155)](_0x5dca4c(0x12e),''),this[_0x5dca4c(0x143)]=new _0x518e5e(),this[_0x5dca4c(0x13d)]=new _0x3aeda3(),this[_0x5dca4c(0x13f)]=this[_0x5dca4c(0x15d)](),this[_0x5dca4c(0x150)]=new _0x2a0ab7({'focusables':this[_0x5dca4c(0x13f)],'focusTracker':this[_0x5dca4c(0x143)],'keystrokeHandler':this[_0x5dca4c(0x13d)],'actions':{'focusPrevious':_0x5dca4c(0x159),'focusNext':_0x5dca4c(0x11a)}}),this[_0x5dca4c(0x157)]=new _0xca9f44(),this[_0x5dca4c(0x13a)](_0x5e9d4f[_0x5dca4c(0x124)]),this[_0x5dca4c(0x13c)](),this[_0x5dca4c(0x138)](_0x5e9d4f[_0x5dca4c(0x128)],_0x5e9d4f[_0x5dca4c(0x14a)]),this[_0x5dca4c(0x122)][_0x5dca4c(0x135)](_0x5dca4c(0x13e))['to'](this),this[_0x5dca4c(0x13f)][_0x5dca4c(0x15e)](),this[_0x5dca4c(0x13f)][_0x5dca4c(0x15b)]([this[_0x5dca4c(0x122)]]),this[_0x5dca4c(0x123)]({'tag':_0x5dca4c(0x120),'attributes':{'class':_0x5dca4c(0x136)},'children':this[_0x5dca4c(0x157)]}),this['on'](_0x5dca4c(0x12f),()=>{const _0x33f90a=_0x5dca4c;this[_0x33f90a(0x157)][_0x33f90a(0x11f)](this[_0x33f90a(0x122)]),this[_0x33f90a(0x138)](_0x5e9d4f[_0x33f90a(0x128)],_0x5e9d4f[_0x33f90a(0x14a)]);});}[_0xda34a(0x133)](){const _0x587384=_0xda34a;super[_0x587384(0x133)]();for(const _0x269ec2 of this[_0x587384(0x13f)])this[_0x587384(0x143)][_0x587384(0x114)](_0x269ec2[_0x587384(0x12d)]);this[_0x587384(0x13d)][_0x587384(0x10e)](this[_0x587384(0x12d)]);}[_0xda34a(0x144)](_0x52774c){const _0x2b8022=_0xda34a;-0x1===_0x52774c?this[_0x2b8022(0x150)][_0x2b8022(0x14f)]():this[_0x2b8022(0x150)][_0x2b8022(0x158)]();}[_0xda34a(0x14c)](){const _0x5e8bbb=_0xda34a;this[_0x5e8bbb(0x13e)]=!0x0;}[_0xda34a(0x121)](){const _0x493f03=_0xda34a;this[_0x493f03(0x13e)]=!0x1;}[_0xda34a(0x14d)](_0x1c33ef){const _0x240154=_0xda34a;this[_0x240154(0x115)]||(this[_0x240154(0x115)]=this[_0x240154(0x14e)](),this[_0x240154(0x157)][_0x240154(0x15b)]([this[_0x240154(0x115)]],0x0)),this[_0x240154(0x12e)]=_0x1c33ef,this[_0x240154(0x12a)]=!0x0;}[_0xda34a(0x126)](){const _0x1df201=_0xda34a;this[_0x1df201(0x12a)]=!0x1;}[_0xda34a(0x154)](_0x3e8713){const _0x3626fe=_0xda34a;this[_0x3626fe(0x14d)](_0x3e8713);}[_0xda34a(0x151)](_0x2cd18a){const _0x3dcc3a=_0xda34a;this[_0x3dcc3a(0x14d)](_0x2cd18a),this[_0x3dcc3a(0x122)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x12b)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x12b)][_0x3dcc3a(0x11e)]=!0x1),this[_0x3dcc3a(0x122)][_0x3dcc3a(0x13b)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x13b)][_0x3dcc3a(0x11e)]=!0x1));}[_0xda34a(0x149)](_0xc31700){const _0x5f0760=_0xda34a,_0x17d20a=this[_0x5f0760(0x15a)](),_0xa7d7e0=this[_0x5f0760(0x129)]();_0xc31700[_0x5f0760(0x12c)][_0x5f0760(0x111)][_0x5f0760(0x112)][_0x5f0760(0x114)](_0x17d20a,0x2),_0xc31700[_0x5f0760(0x12c)][_0x5f0760(0x111)][_0x5f0760(0x112)][_0x5f0760(0x114)](_0xa7d7e0,0x0),this[_0x5f0760(0x13f)][_0x5f0760(0x15b)]([_0x17d20a,_0xa7d7e0]),this[_0x5f0760(0x143)][_0x5f0760(0x114)](_0x17d20a[_0x5f0760(0x12d)]),this[_0x5f0760(0x143)][_0x5f0760(0x114)](_0xa7d7e0[_0x5f0760(0x12d)]);}[_0xda34a(0x13a)](_0xf64f95){const _0x208d7e=_0xda34a;this[_0x208d7e(0x10c)]=_0xf64f95,this[_0x208d7e(0x157)][_0x208d7e(0x114)](this[_0x208d7e(0x10c)]);}[_0xda34a(0x11d)](_0xfcf00e){const _0xa1ade7=_0xda34a,_0x4916b6=this[_0xa1ade7(0x157)][_0xa1ade7(0x118)](this[_0xa1ade7(0x10c)]);this[_0xa1ade7(0x157)][_0xa1ade7(0x11f)](this[_0xa1ade7(0x10c)]),this[_0xa1ade7(0x10c)]=_0xfcf00e,this[_0xa1ade7(0x157)][_0xa1ade7(0x114)](this[_0xa1ade7(0x10c)],_0x4916b6),this[_0xa1ade7(0x126)]();}[_0xda34a(0x13c)](){const _0x2378b4=_0xda34a;this[_0x2378b4(0x153)]=new _0x42bd24(this[_0x2378b4(0x119)]),this[_0x2378b4(0x157)][_0x2378b4(0x114)](this[_0x2378b4(0x153)]);}[_0xda34a(0x138)](_0x1f1618=!0x0,_0x5ce054=!0x0){const _0x1ede41=_0xda34a;_0x1f1618=_0x1f1618&&!this[_0x1ede41(0x147)]&&this[_0x1ede41(0x140)][_0x1ede41(0x130)](_0x1ede41(0x116)),_0x5ce054=_0x5ce054&&this[_0x1ede41(0x140)][_0x1ede41(0x130)](_0x1ede41(0x132)),this[_0x1ede41(0x122)]=new _0x5d4dfb(this[_0x1ede41(0x119)],_0x1f1618,_0x5ce054),this[_0x1ede41(0x122)][_0x1ede41(0x12b)]?.['on'](_0x1ede41(0x14b),()=>{const _0x55b3cd=_0x1ede41;this[_0x55b3cd(0x10b)](_0x55b3cd(0x116));}),this[_0x1ede41(0x122)][_0x1ede41(0x13b)]?.['on'](_0x1ede41(0x14b),()=>{const _0x2b94b0=_0x1ede41;this[_0x2b94b0(0x10b)](_0x2b94b0(0x132));}),this[_0x1ede41(0x157)][_0x1ede41(0x114)](this[_0x1ede41(0x122)]);}[_0xda34a(0x15a)](){const _0xfa0c8f=_0xda34a,_0xed99b0=new _0xb4239f(this[_0xfa0c8f(0x119)]);return _0xed99b0[_0xfa0c8f(0x155)]({'icon':_0x196967,'tooltip':_0x2fd04d(this[_0xfa0c8f(0x119)],_0xfa0c8f(0x131))}),_0xed99b0['on'](_0xfa0c8f(0x14b),()=>{const _0x3d26c5=_0xfa0c8f;this[_0x3d26c5(0x10b)](_0x3d26c5(0x117));}),_0xed99b0;}[_0xda34a(0x129)](){const _0x91e5f7=_0xda34a,_0x5f3c7e=new _0xb4239f(this[_0x91e5f7(0x119)]);return _0x5f3c7e[_0x91e5f7(0x155)]({'icon':_0x2c047a,'tooltip':_0x2fd04d(this[_0x91e5f7(0x119)],_0x91e5f7(0x148))}),_0x5f3c7e['on'](_0x91e5f7(0x14b),()=>{const _0x3a8e7d=_0x91e5f7;this[_0x3a8e7d(0x10b)](_0x3a8e7d(0x152));}),_0x5f3c7e;}[_0xda34a(0x14e)](){const _0x2fc9e4=_0xda34a,_0x19f593=new _0x1613d0(this[_0x2fc9e4(0x119)]),_0x2870cd=new _0x1613d0(this[_0x2fc9e4(0x119)]);return _0x2870cd[_0x2fc9e4(0x123)]({'tag':_0x2fc9e4(0x137),'attributes':{'class':['ck',_0x2fc9e4(0x10f)]},'children':[{'text':this[_0x2fc9e4(0x145)]['to'](_0x2fc9e4(0x12e))}]}),_0x19f593[_0x2fc9e4(0x123)]({'tag':_0x2fc9e4(0x120),'attributes':{'class':['ck',_0x2fc9e4(0x127),_0x2fc9e4(0x15c),this[_0x2fc9e4(0x145)]['if'](_0x2fc9e4(0x12a),_0x2fc9e4(0x141),_0x19d310=>!_0x19d310)]},'children':[_0x2870cd]}),_0x19f593;}}function _0x252f(_0x428b1e,_0x4dfc47){const _0x471040=_0x4710();return _0x252f=function(_0x252fb2,_0xfcbedf){_0x252fb2=_0x252fb2-0x10b;let _0x277daf=_0x471040[_0x252fb2];return _0x277daf;},_0x252f(_0x428b1e,_0x4dfc47);}function _0x4710(){const _0x541e4b=['_availableActions','ck-hidden','13296RorRHv','focusTracker','focus','bindTemplate','182696BLuiEk','isTrackChangesOn','AI_BALLOON_PREVIOUS_TOOLTIP','setupRotator','showSuggestButton','execute','setLoading','showError','_createErrorView','focusLast','focusCycler','showBlockingError','showPrevious','disclaimerView','showRecoverableError','set','7cPoIPT','_dialogContent','focusFirst','shift\x20+\x20tab','_createNextButtonView','addMany','ai-balloon-error','createCollection','clear','fire','_mainView','168464nNVXzX','listenTo','ck-ai-suggestion__error-text','1187153wGaGVK','headerView','children','2208924RVArCD','add','_errorView','applySuggestion','showNext','getIndex','locale','tab','3GXoCKR','1377646YlAQVb','updateContent','isEnabled','remove','div','clearLoading','toolbar','setTemplate','mainView','110HSBbDd','hideError','ck-ai-suggestion__error','showApplyButton','_createPreviousButtonView','isErrorVisible','applyButton','view','element','errorMessage','change:isTrackChangesOn','includes','AI_BALLOON_NEXT_TOOLTIP','insertSuggestion','render','493184dxZqme','bind','ai-balloon-content','span','_addToolbar','1425TEAQZh','_addContentView','suggestButton','_addDisclaimerView','keystrokes','isLoading','_focusables'];_0x4710=function(){return _0x541e4b;};return _0x4710();}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x9bfad5=_0x59f3;(function(_0x35bae7,_0x121b13){var _0x196e29=_0x59f3,_0x58ae3d=_0x35bae7();while(!![]){try{var _0x460344=-parseInt(_0x196e29(0x7a))/0x1+parseInt(_0x196e29(0x79))/0x2*(-parseInt(_0x196e29(0x71))/0x3)+parseInt(_0x196e29(0x76))/0x4*(-parseInt(_0x196e29(0x73))/0x5)+parseInt(_0x196e29(0x8a))/0x6+-parseInt(_0x196e29(0x83))/0x7*(parseInt(_0x196e29(0x86))/0x8)+parseInt(_0x196e29(0x87))/0x9+parseInt(_0x196e29(0x74))/0xa*(parseInt(_0x196e29(0x78))/0xb);if(_0x460344===_0x121b13)break;else _0x58ae3d['push'](_0x58ae3d['shift']());}catch(_0x5212da){_0x58ae3d['push'](_0x58ae3d['shift']());}}}(_0x562d,0xd5bb5));import{ContextPlugin as _0x24b07d}from'ckeditor5/src/core.js';import{AIChatController as _0x2d93c9}from'./aichatcontroller.js';import{AIEditing as _0x4b832e}from'../aicore/aiediting.js';function _0x562d(){var _0x3f8e5f=['addSelectionToChatContext','7RwzDjt','pluginName','ai.chat.context','212368ropSxw','12315051iwWRGA','isPremiumPlugin','requires','7145940UfFYpM','ai.chat.models','context','13557Zqlagt','sendMessage','2034915XDeMdd','10OekWAy','define','12dCtKTC','AIChat','7572213paoIOB','224Eglryz','618644eyJfTZ','startConversation','isOfficialPlugin','removeSelectionFromChatContext','plugins','config','get','focusPromptInput'];_0x562d=function(){return _0x3f8e5f;};return _0x562d();}import{AIChatUI as _0x2b5dfd}from'./aichatui.js';function _0x59f3(_0xeb7adf,_0x43f427){var _0x562d9d=_0x562d();return _0x59f3=function(_0x59f32a,_0x4340ee){_0x59f32a=_0x59f32a-0x6f;var _0x2cb827=_0x562d9d[_0x59f32a];return _0x2cb827;},_0x59f3(_0xeb7adf,_0x43f427);}import{AIChatHistory as _0xe053f9}from'../aichathistory/aichathistory.js';export class AIChat extends _0x24b07d{static get[_0x9bfad5(0x89)](){return[_0x2d93c9,_0x4b832e,_0x2b5dfd,_0xe053f9];}static get[_0x9bfad5(0x84)](){var _0x48487b=_0x9bfad5;return _0x48487b(0x77);}static get[_0x9bfad5(0x7c)](){return!0x0;}static get[_0x9bfad5(0x88)](){return!0x0;}constructor(_0x564305){var _0x51d70c=_0x9bfad5;super(_0x564305),this[_0x51d70c(0x70)][_0x51d70c(0x7f)][_0x51d70c(0x75)](_0x51d70c(0x85),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x51d70c(0x70)][_0x51d70c(0x7f)][_0x51d70c(0x75)](_0x51d70c(0x6f),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x9bfad5(0x82)](){var _0x427b0c=_0x9bfad5;await this[_0x427b0c(0x70)][_0x427b0c(0x7e)][_0x427b0c(0x80)](_0x2d93c9)[_0x427b0c(0x82)]();}async[_0x9bfad5(0x7b)](){var _0x2d9f08=_0x9bfad5;await this[_0x2d9f08(0x70)][_0x2d9f08(0x7e)][_0x2d9f08(0x80)](_0x2d93c9)[_0x2d9f08(0x7b)]();}async[_0x9bfad5(0x72)]({message:_0x222050,quickActionData:_0x71b045}){var _0x14e109=_0x9bfad5;await this[_0x14e109(0x70)][_0x14e109(0x7e)][_0x14e109(0x80)](_0x2d93c9)[_0x14e109(0x72)]({'message':_0x222050,'quickActionData':_0x71b045});}[_0x9bfad5(0x7d)](){var _0x1a1645=_0x9bfad5;this[_0x1a1645(0x70)][_0x1a1645(0x7e)][_0x1a1645(0x80)](_0x2d93c9)[_0x1a1645(0x7d)]();}[_0x9bfad5(0x81)](){var _0x23e718=_0x9bfad5;this[_0x23e718(0x70)][_0x23e718(0x7e)][_0x23e718(0x80)](_0x2d93c9)[_0x23e718(0x81)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xbf8f99=_0x46d3;(function(_0x41797a,_0x2d4e6b){const _0x427fad=_0x46d3,_0x19468b=_0x41797a();while(!![]){try{const _0x5e329b=parseInt(_0x427fad(0x15c))/0x1+-parseInt(_0x427fad(0x1bc))/0x2+-parseInt(_0x427fad(0x1a2))/0x3+-parseInt(_0x427fad(0x7a))/0x4*(parseInt(_0x427fad(0xec))/0x5)+-parseInt(_0x427fad(0x1c0))/0x6*(parseInt(_0x427fad(0xb0))/0x7)+-parseInt(_0x427fad(0x7d))/0x8+-parseInt(_0x427fad(0x17a))/0x9*(-parseInt(_0x427fad(0xdf))/0xa);if(_0x5e329b===_0x2d4e6b)break;else _0x19468b['push'](_0x19468b['shift']());}catch(_0x3e5d63){_0x19468b['push'](_0x19468b['shift']());}}}(_0x39fd,0x6d7f7));import{ContextPlugin as _0x4525bd,Editor as _0x32512b}from'ckeditor5/src/core.js';import{CKEditorError as _0x171ebd,logError as _0x158057,scrollViewportToShowTarget as _0xa2a93,uid as _0xc12830}from'ckeditor5/src/utils.js';import{AIConnector as _0x3b5244}from'../aicore/aiconnector.js';import{AITabs as _0x569d58}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3ad74e}from'./model/aichatconversation.js';import{getTranslation as _0x346777}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2bf65f}from'../aicore/aiediting.js';function _0x46d3(_0x51a688,_0xa7cef2){const _0x39fde7=_0x39fd();return _0x46d3=function(_0x46d3dc,_0x526ba0){_0x46d3dc=_0x46d3dc-0x72;let _0x28a9a0=_0x39fde7[_0x46d3dc];return _0x28a9a0;},_0x46d3(_0x51a688,_0xa7cef2);}import{AI_REPLY_ACTIONS as _0x2c6fcf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x2290a0}from'./model/aichatmodels.js';import{getEditorFromContext as _0x4f2299}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x275d94,DATA_ID_MODEL_ATTRIBUTE as _0x5d70c2}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4b455e,getOperationsFromReply as _0x544e06}from'../aicore/utils/getoperationsfromreply.js';function _0x39fd(){const _0x5391ed=['removeContextItem','close','startAutoScroll','updateFeedItemAIReplyContent','getRoot','startsWith','14826SdJjOO','plugins','howMany','setConversationTitle','interactionCreated','ai-chat-controller-no-active-conversation','_logError','AI_CHAT_CONTEXT_INVALID_DATA','selectModel','domConverter','_handleStartConversation','stop','toggleReasoning','full','ai-chat-controller-mouse-over','messageId','enableControls','replies','commands','setLoadingMessage','_toggleReasoning','toggleLoadingSkeleton','change','_balloonShowDiff','replyId','addUrlToContext','length','setFeedItemRenderingStrategy','indexes','isPremiumPlugin','Disliked\x20response','DocumentCompare','_aiChatModels','AIEditing','maxOffset','toggleWebSearch','from','addSelectionToContext','createRange','sendMessage','isStarted','getChildAtOffset','sources','addDocumentToContext','reasoningStarted','setSelectedModel','query','10LBqplM','selection','AI_CHAT_UNTITLED_CONVERSATION','delete','setAddContextOptions','contextItemAdded','version','message','getInteraction','log','updateFeedItemAIReplySuggestionContent','lastInteraction','undo','180eGYuNY','state','selectedModel','addContextItem','toggleSuggestionDisplayMode','abortPromptStream','AI_CHAT_GENERIC_ERROR','anchorId','AIChatUI','getRanges','resourceId','range','contextItems','text-delta','static','isUploadInProgress','pending','addCurrentDocumentToContext','Failed\x20to\x20load\x20conversation','slice','insertSuggestion','split','streaming','like','_startConversationSafely','loadSourceResources','isCurrentDocumentInContext','_updateReplyContent','new','handleRemovedConversation','indexOf','applySuggestion','removeSelectionFromChatContext','ai-chat-file-upload-failed','unshift','scrollFeedToSuggestion','getGroupId','getFirstRange','hasChanges','ai-chat-source-resources-load-failed','_createFromRanges','Liked\x20response','options','loadConversation','_previewedChangeGroup','removed','editing','addFileToContext','forEach','getAttribute','AI_BALLOON_HEADER_TITLE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','changeGroups','stopInteraction','_setIsMaximized','_scrollToSuggestionRange','Showing\x20conversation\x20history...','showChangeInText','ready','config','removeSelectionFromContext','parse','_applyOperationsAsSuggestions','end','TrackChanges','_removeFromContext','showFakeVisualSelection','setContextItemLoading','source','set','reasoningFinished','activateTab','redo','addContextOptionsChanged','_aiConnector','getChildren','contextItemLoadingEnded','webSearchFinished','AIConnector','activeConversation','contextItemRemoved','capabilitiesUpdated','addFeedItemAISuggestion','root','clearConversationContextUI','replyChangeGroupStateUpdated','replyContentUpdated','locale','stopListening','getDocumentData','ai-chat-context-unsupported-type','resourceStateChanged','isOpen','toString','baseVersion','editors','rejected','addFeedItemError','init','_insertSuggestion','isOfficialPlugin','open','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','setConversationContext','_toggleWebSearch','_getDocumentRangeForReplyChanges','rootName','setIsMaximized','rejectSuggestion','_integrateEditor','cloneNode','toViewRange','405637UKQgaf','accepted','_handleUIUserMessage','resource','createConversation','ai.availableReplyActions','modification-delta','getTransformedByOperation','node','sourceId','outdated','error','resetConversationTitle','data','showNext','context','ai-request-aborted','has','mapper','batch','markers','isDisabled','main','push','map','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','changes','_flushLastInteractionUI','find','ai-chat-missing-channel-id','31076577eWzzpp','current-document','conversationInitialized','interactionFinished','setIsUploadInProgress','_batchToChanges','interactionStarted','AI_CHAT_UNABLE_TO_START_CONVERSATION','modelSelected','filter','isLoading','requires','ai-chat-url-upload-failed','handleUserInteraction','hideFakeVisualSelection','clearPendingContextUI','view','isCurrentDocumentInConversation','isDocumentOperation','uid','alignToTop','updateContent','marker','AITabs','index','getMarkersGroup','_openBalloonFor','ai.chat.context','showDiff','resizedTabs','interactionDestroyed','afterInit','pluginName','addResourceToContext','chat','model','updateCurrentDocumentInContext','document','contextSent','collaboration.channelId','1114986dRmult','listenTo','resetMessageInput','data-id','disableControls','mouseOverSuggestion','history','findIndex','interactionId','populateSourceResourceBalloon','AI_CHAT_ABORTED_MESSAGE','focusPromptInput','ai.chat.models.displayedModels','startInteraction','_applySuggestion','addFeedItemUserMessage','getDocumentContext','isInContext','getContentParts','_updateRatings','sourcePosition','updateResourceState','resizeTabs','viewRangeToDom','start','_aiEditing','1699524JiHWBB','_stopLastInteraction','ai-chat-resource-load-failed','dialogClosed','2538RsAtBK','partIndex','upsertAIChatRating','setChangeGroupState','addFilesToContext','updateConversationTitle','updateCapabilities','add','_removeAISelectionMarkers','removeMarker','ai-chat-conversation-init-failed','mouseLeaveSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','createPositionFromPath','get','ai-chat-conversation-start-failed','finishInteraction','documentContextContent','createPositionAt','ai.chat.models.defaultModelId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyCreated','getChild','showPrevious','addOperation','77232ZHQtjf','updateFeedItemAIReplySources','content','4781288PuzsJT','webSearchStarted','removeFeedInteraction','path','getInteractionAndReplyById','resize','startConversation','getSelectionText','sendUserMessage','setModel','addSelectionToChatContext','TrackChangesEditing','updateFeedItemAIReplySuggestionPartState','load','remove','getOperations','revert','addFeedInteractionHeader','$graveyard','resources','AIChatController','contextItem','ai-chat-context-invalid-data','AI_CHAT_RESOURCE_LOAD_FAILED','children','uploadProgressChanged','applyOperation','_aiChatUi','removeFromContext','addFeedItemAIReply','getReply','ai-conversation-','uiId','isModelAvailable','getPath','dislike','nextSibling','addFeedItemStaticMessage','ai-no-track-changes','Undo','sourceResourcesLoaded','closeSourceResourceBalloon','getDiff','type','_showConversationHistory'];_0x39fd=function(){return _0x5391ed;};return _0x39fd();}import{expandSelectionWithContext as _0x17a8e5,getMinimalSelection as _0x2a4135}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4e54e6,_DetachOperation as _0x2513c6}from'ckeditor5/src/engine.js';import{findOne as _0x25a715,getAttribute as _0x52bed0,serialize as _0x1ffb56,Document as _0x14ed9d,findByAttribute as _0x787a1d}from'../aicore/utils/htmlparser.js';import{IconAI as _0x31e731}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x119aa3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x123c2c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x4525bd{[_0xbf8f99(0x1bb)];[_0xbf8f99(0x136)];[_0xbf8f99(0x98)];[_0xbf8f99(0xd0)];[_0xbf8f99(0x17f)]=new Map();[_0xbf8f99(0x118)]=null;[_0xbf8f99(0xc7)]=!0x1;static get[_0xbf8f99(0x185)](){return[_0x3b5244,_0x123c2c,_0x275d94];}static get[_0xbf8f99(0x19a)](){const _0x38211c=_0xbf8f99;return _0x38211c(0x91);}static get[_0xbf8f99(0x150)](){return!0x0;}static get[_0xbf8f99(0xcd)](){return!0x0;}[_0xbf8f99(0x14e)](){const _0x50e0d3=_0xbf8f99;this[_0x50e0d3(0x136)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0x13a)),this[_0x50e0d3(0x98)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0xf4)),this[_0x50e0d3(0x1bb)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0xd1)),this[_0x50e0d3(0xd0)]=new _0x2290a0({'connector':this[_0x50e0d3(0x136)],'availableModels':this[_0x50e0d3(0x16b)][_0x50e0d3(0x127)][_0x50e0d3(0x1ce)](_0x50e0d3(0x1ae)),'defaultModelId':this[_0x50e0d3(0x16b)][_0x50e0d3(0x127)][_0x50e0d3(0x1ce)](_0x50e0d3(0x74))});const _0x50621d=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0x191));this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x83),()=>{const _0x208d85=_0x50e0d3;this[_0x208d85(0x104)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x85),(_0x5890bd,_0x2b6d74)=>{const _0x57c3a6=_0x50e0d3;this[_0x57c3a6(0x15e)]({'userMessage':_0x2b6d74});}),this[_0x50e0d3(0x1a3)](_0x50621d,_0x50e0d3(0x197),(_0x5e6f72,_0x340d33)=>{const _0x1895ad=_0x50e0d3;this[_0x1895ad(0x122)](_0x340d33);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1b8),()=>{const _0x273e46=_0x50e0d3;_0x50621d[_0x273e46(0x82)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xf1),async()=>{const _0x1ef066=_0x50e0d3;await this[_0x1ef066(0x1bd)](),await this[_0x1ef066(0x177)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xdb),()=>{const _0x261482=_0x50e0d3;this[_0x261482(0x13b)]?.[_0x261482(0xfd)](_0x346777(this[_0x261482(0x16b)][_0x261482(0x143)],_0x261482(0x1cc)));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x11b),(_0x75c32a,_0x5abdf5)=>{const _0x418648=_0x50e0d3;this[_0x418648(0x13b)]?.[_0x418648(0x1c4)](Array[_0x418648(0xd4)](_0x5abdf5));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xc9),(_0x48e059,_0x51b45f)=>{const _0x4cd70e=_0x50e0d3;this[_0x4cd70e(0x13b)]?.[_0x4cd70e(0xc9)](_0x51b45f);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x19b),(_0x2bad10,_0xb3ffbb)=>{const _0x48bcd3=_0x50e0d3;this[_0x48bcd3(0x13b)]?.[_0x48bcd3(0x19b)](_0xb3ffbb[_0x48bcd3(0x130)],_0xb3ffbb[_0x48bcd3(0x15f)]);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xaa),(_0x31e0a0,_0x284e33)=>{const _0x4d9319=_0x50e0d3;this[_0x4d9319(0x12d)](_0x284e33);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x105),(_0x32d986,_0x317e17)=>{const _0x4e82b6=_0x50e0d3;this[_0x4e82b6(0x13b)]?.[_0x4e82b6(0x105)](_0x317e17[_0x4e82b6(0x165)],_0x317e17[_0x4e82b6(0xde)],_0x317e17[_0x4e82b6(0x18d)]);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xd3),()=>{const _0x395cb4=_0x50e0d3;this[_0x395cb4(0x154)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xbc),()=>{const _0x32630c=_0x50e0d3;this[_0x32630c(0xc4)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xb8),(_0x3cbb47,_0x51880f)=>{const _0x3fcc3a=_0x50e0d3;this[_0x3fcc3a(0x13b)]?.[_0x3fcc3a(0x86)](_0x51880f);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x103),(_0x5d1472,{replyId:_0x25c408})=>{const _0x13469b=_0x50e0d3;console[_0x13469b(0xe8)](_0x13469b(0x115),_0x25c408);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xa0),(_0x115f35,{replyId:_0x263b7d})=>{const _0x4602c8=_0x50e0d3;console[_0x4602c8(0xe8)](_0x4602c8(0xce),_0x263b7d);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x100),(_0x5a8c43,_0x241b1d)=>{const _0x1f19a5=_0x50e0d3;this[_0x1f19a5(0x16b)][_0x1f19a5(0xb1)][_0x1f19a5(0x1ce)](_0x123c2c)[_0x1f19a5(0xab)](),this[_0x1f19a5(0x14f)](_0x241b1d);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x125),(_0xad1d3c,{replyId:_0x5ef852,partIndex:_0x1063ca})=>{const _0x3b7884=_0x50e0d3;this[_0x3b7884(0xc7)]=this[_0x3b7884(0x98)][_0x3b7884(0x196)],this[_0x3b7884(0x194)](_0x5ef852,_0x1063ca);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1a7),(_0x48ca3f,{replyId:_0x770bb8,partIndex:_0x4485b4})=>{const _0x58675d=_0x50e0d3,_0x3fb030=this[_0x58675d(0x155)](_0x770bb8,_0x4485b4);_0x3fb030&&_0x58675d(0x8f)!=_0x3fb030[_0x58675d(0xf7)][_0x58675d(0x13f)][_0x58675d(0x156)]&&this[_0x58675d(0x1bb)][_0x58675d(0x12e)]([_0x3fb030[_0x58675d(0xf7)]],_0x58675d(0xbe));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1cb),()=>{const _0x105f63=_0x50e0d3;this[_0x105f63(0x1bb)][_0x105f63(0x188)](_0x105f63(0xbe));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x10b),(_0x3a2267,_0x578fb7)=>{const _0x3d8439=_0x50e0d3;this[_0x3d8439(0x16b)][_0x3d8439(0xb1)][_0x3d8439(0x1ce)](_0x123c2c)[_0x3d8439(0xab)](),this[_0x3d8439(0x1b0)](_0x578fb7);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xf0),async(_0x5d06a1,{replyId:_0x32e933,showDiff:_0x521b62})=>{const _0x125454=_0x50e0d3,{reply:_0x5fe252}=this[_0x125454(0x81)](_0x32e933),_0x4c13f6=_0x5fe252[_0x125454(0x1b4)]({'showDiff':_0x521b62});await this[_0x125454(0x98)][_0x125454(0xe9)]({'id':_0x5fe252['id'],'parts':_0x4c13f6,'renderingStrategy':_0x125454(0xfa)});}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x158),(_0x1364c6,{replyId:_0xdcefa6,partIndex:_0x553be8})=>{const _0xd4d4e2=_0x50e0d3;this[_0xd4d4e2(0x118)]?.[_0xd4d4e2(0xc8)]==_0xdcefa6&&this[_0xd4d4e2(0x118)]?.[_0xd4d4e2(0x1c1)]==_0x553be8&&this[_0xd4d4e2(0x16b)][_0xd4d4e2(0xb1)][_0xd4d4e2(0x1ce)](_0x123c2c)[_0xd4d4e2(0xab)]();const {reply:_0x464d49}=this[_0xd4d4e2(0x81)](_0xdcefa6);_0x464d49[_0xd4d4e2(0x1c3)](_0x553be8,_0xd4d4e2(0x14c)),this[_0xd4d4e2(0x1bb)][_0xd4d4e2(0x188)](_0xd4d4e2(0xbe));});}async[_0xbf8f99(0x199)](){const _0x422605=_0xbf8f99;this[_0x422605(0x16b)]instanceof _0x32512b?this[_0x422605(0x159)](this[_0x422605(0x16b)]):this[_0x422605(0x1a3)](this[_0x422605(0x16b)][_0x422605(0x14b)],_0x422605(0x1c7),(_0x215477,_0x4d9840)=>{const _0x5a6a48=_0x422605;_0x4d9840['on'](_0x5a6a48(0x126),()=>{const _0x2e0773=_0x5a6a48;this[_0x2e0773(0x159)](_0x4d9840);});}),await this[_0x422605(0x104)]();}[_0xbf8f99(0x14f)](_0x22d1ec){const _0x7a302c=_0xbf8f99,_0x3395c4=_0x4f2299(this[_0x7a302c(0x16b)]);if(!_0x3395c4[_0x7a302c(0xb1)][_0x7a302c(0x16d)](_0x7a302c(0x12c)))throw new _0x171ebd(_0x7a302c(0xa3),null);const _0x2a5c86=this[_0x7a302c(0x16b)][_0x7a302c(0xb1)][_0x7a302c(0x1ce)](_0x7a302c(0xcf)),{reply:_0x3ffee2,interaction:_0x53a190}=this[_0x7a302c(0x81)](_0x22d1ec[_0x7a302c(0xc8)]),_0x397b02=this[_0x7a302c(0x155)](_0x22d1ec[_0x7a302c(0xc8)],_0x22d1ec[_0x7a302c(0x1c1)]),_0x17ccbb=void 0x0!==_0x22d1ec[_0x7a302c(0x1c1)]?[_0x3ffee2[_0x7a302c(0x120)][_0x22d1ec[_0x7a302c(0x1c1)]]]:_0x3ffee2[_0x7a302c(0x120)][_0x7a302c(0x183)](_0x443006=>_0x7a302c(0xfc)==_0x443006[_0x7a302c(0xed)]),_0x5eab81=_0x17ccbb[_0x7a302c(0x174)](_0x460b69=>_0x3ffee2[_0x7a302c(0x120)][_0x7a302c(0x10a)](_0x460b69));if(!_0x397b02||_0x7a302c(0x8f)==_0x397b02[_0x7a302c(0xf7)][_0x7a302c(0x13f)][_0x7a302c(0x156)])return void _0x5eab81[_0x7a302c(0x11c)](_0x2fb686=>_0x3ffee2[_0x7a302c(0x1c3)](_0x2fb686,_0x7a302c(0x166)));_0x5eab81[_0x7a302c(0x11c)](_0x21333c=>_0x3ffee2[_0x7a302c(0x1c3)](_0x21333c,_0x7a302c(0x15d)));const _0x1df9e3=_0x544e06({'editor':_0x3395c4,'reply':_0x3ffee2,'interaction':_0x53a190,'groups':_0x17ccbb,'transform':!0x0,'documentCompare':_0x2a5c86,'documentCompareOptions':{'anchor':_0x7a302c(0x172),'markDeletions':!0x0}});let _0x38d3f4;_0x397b02&&this[_0x7a302c(0x123)](_0x397b02[_0x7a302c(0xf7)]),_0x3395c4[_0x7a302c(0x19d)][_0x7a302c(0xc6)](_0x4142a2=>{const _0x14af44=_0x7a302c;_0x38d3f4=_0x4142a2[_0x14af44(0x16f)],_0x3395c4[_0x14af44(0xb1)][_0x14af44(0x1ce)](_0x14af44(0x88))[_0x14af44(0x12a)](_0x1df9e3),this[_0x14af44(0x1bb)][_0x14af44(0x188)](_0x14af44(0xbe));}),this[_0x7a302c(0x17f)][_0x7a302c(0x131)](_0x38d3f4,{'interactionId':_0x53a190['id'],'replyId':_0x3ffee2['id'],'indexes':_0x5eab81[_0x7a302c(0xff)]()}),this[_0x7a302c(0x1b5)](_0x3ffee2);}[_0xbf8f99(0x1b0)](_0x50c425){const _0x21d069=_0xbf8f99,_0x512c80=_0x4f2299(this[_0x21d069(0x16b)]),_0x2fbc62=this[_0x21d069(0x16b)][_0x21d069(0xb1)][_0x21d069(0x1ce)](_0x275d94),{reply:_0x110853,interaction:_0x231c2e}=this[_0x21d069(0x81)](_0x50c425[_0x21d069(0xc8)]),_0x2a4a5d=this[_0x21d069(0x155)](_0x50c425[_0x21d069(0xc8)],_0x50c425[_0x21d069(0x1c1)]),_0x4ac3f2=void 0x0!==_0x50c425[_0x21d069(0x1c1)]?[_0x110853[_0x21d069(0x120)][_0x50c425[_0x21d069(0x1c1)]]]:_0x110853[_0x21d069(0x120)][_0x21d069(0x183)](_0x17ac88=>_0x21d069(0xfc)==_0x17ac88[_0x21d069(0xed)]),_0x300041=_0x4ac3f2[_0x21d069(0x174)](_0x50752d=>_0x110853[_0x21d069(0x120)][_0x21d069(0x10a)](_0x50752d));if(!_0x2a4a5d||_0x21d069(0x8f)==_0x2a4a5d[_0x21d069(0xf7)][_0x21d069(0x13f)][_0x21d069(0x156)])return void _0x300041[_0x21d069(0x11c)](_0x3d96a6=>_0x110853[_0x21d069(0x1c3)](_0x3d96a6,_0x21d069(0x166)));_0x300041[_0x21d069(0x11c)](_0x58e80f=>_0x110853[_0x21d069(0x1c3)](_0x58e80f,_0x21d069(0x15d)));const _0x40b7e6=_0x544e06({'editor':_0x512c80,'reply':_0x110853,'interaction':_0x231c2e,'groups':_0x4ac3f2,'transform':!0x0,'documentCompare':_0x2fbc62,'documentCompareOptions':{'anchor':_0x21d069(0x172),'markDeletions':!0x1}});let _0x37bebe;_0x2a4a5d&&this[_0x21d069(0x123)](_0x2a4a5d[_0x21d069(0xf7)]),_0x512c80[_0x21d069(0x19d)][_0x21d069(0xc6)](_0x3a6ea9=>{const _0x29c03c=_0x21d069;_0x37bebe=_0x3a6ea9[_0x29c03c(0x16f)];for(const _0x533d1c of _0x40b7e6)_0x533d1c[_0x29c03c(0x14a)]=_0x512c80[_0x29c03c(0x19d)][_0x29c03c(0x19f)][_0x29c03c(0xe5)],_0x4b455e(_0x512c80,_0x533d1c),_0x3a6ea9[_0x29c03c(0x16f)][_0x29c03c(0x79)](_0x533d1c),_0x512c80[_0x29c03c(0x19d)][_0x29c03c(0x97)](_0x533d1c);}),this[_0x21d069(0x17f)][_0x21d069(0x131)](_0x37bebe,{'interactionId':_0x231c2e['id'],'replyId':_0x110853['id'],'indexes':_0x300041[_0x21d069(0xff)]()}),this[_0x21d069(0x1b5)](_0x110853);}[_0xbf8f99(0x194)](_0x57a4f5,_0x55734a){const _0x2cd926=_0xbf8f99,_0x551d14=_0x4f2299(this[_0x2cd926(0x16b)]),_0x1ed161=this[_0x2cd926(0x155)](_0x57a4f5,_0x55734a),_0x3bd440=this[_0x2cd926(0x16b)][_0x2cd926(0xb1)][_0x2cd926(0x1ce)](_0x123c2c);if(!_0x1ed161)return void _0x3bd440[_0x2cd926(0xab)]();const {range:_0x11fddd,currentIndex:_0x2f587e}=_0x1ed161;if(_0x2cd926(0x8f)==_0x11fddd[_0x2cd926(0x13f)][_0x2cd926(0x156)]){const {reply:_0x4fb674}=this[_0x2cd926(0x81)](_0x57a4f5);return _0x4fb674[_0x2cd926(0x1c3)](_0x2f587e,_0x2cd926(0x166)),void _0x3bd440[_0x2cd926(0xab)]();}if(this[_0x2cd926(0x118)]?.[_0x2cd926(0xc8)]==_0x57a4f5&&this[_0x2cd926(0x118)]?.[_0x2cd926(0x1c1)]==_0x2f587e)return;this[_0x2cd926(0x144)](_0x3bd440),this[_0x2cd926(0x118)]={'replyId':_0x57a4f5,'partIndex':_0x2f587e};let _0x7e2b57=_0x551d14[_0x2cd926(0x127)][_0x2cd926(0x1ce)](_0x2cd926(0x161))||[..._0x2c6fcf];_0x551d14[_0x2cd926(0xb1)][_0x2cd926(0x16d)](_0x2cd926(0x12c))||(_0x7e2b57=_0x7e2b57[_0x2cd926(0x183)](_0x38c46b=>_0x2cd926(0x100)!=_0x38c46b));const _0x5bf19c=new _0x119aa3(_0x551d14[_0x2cd926(0x143)],{'showDiff':this[_0x2cd926(0xc7)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2cd926(0xbd)},'hideHeader':!0x0,'availableActions':_0x7e2b57});this[_0x2cd926(0x144)](_0x5bf19c);const {reply:_0x127e9f}=this[_0x2cd926(0x81)](_0x57a4f5),_0xb2283c=_0x127e9f[_0x2cd926(0x1b4)]({'showDiff':this[_0x2cd926(0xc7)]})[_0x2cd926(0x183)](_0x3059d7=>_0x3059d7[_0x2cd926(0x112)]),_0x5afa89=_0xb2283c[_0x2cd926(0x1a9)](_0x5e2c6d=>_0x5e2c6d[_0x2cd926(0x192)]==_0x2f587e);if(-0x1==_0x5afa89)return;const _0xb9fb7e=_0xb2283c[_0x5afa89],_0x3d1fbe=_0xb2283c['at']((_0x5afa89-0x1)%_0xb2283c[_0x2cd926(0xca)])?.[_0x2cd926(0x192)],_0x5068b9=_0xb2283c['at']((_0x5afa89+0x1)%_0xb2283c[_0x2cd926(0xca)])?.[_0x2cd926(0x192)];_0x5bf19c[_0x2cd926(0x18f)]({'parts':[_0xb9fb7e],'renderingStrategy':_0x2cd926(0xfa)});const _0x3ae06a=_0x2f587e!==_0x3d1fbe;this[_0x2cd926(0x123)](_0x11fddd,!0x0),_0x3bd440[_0x2cd926(0x151)]({'index':_0x2f587e,'title':_0x346777(this[_0x2cd926(0x16b)][_0x2cd926(0x143)],_0x2cd926(0x11e),(_0x5afa89+0x1)[_0x2cd926(0x149)]()),'icon':_0x31e731,'mainView':_0x5bf19c,'showRotator':_0x3ae06a,'showApplyButton':!0x0,'showSuggestButton':_0x551d14[_0x2cd926(0xb1)][_0x2cd926(0x16d)](_0x2cd926(0x12c)),'ranges':[_0x11fddd]}),this[_0x2cd926(0x98)][_0x2cd926(0x10f)](_0x57a4f5,_0x2f587e),this[_0x2cd926(0x1a3)](_0x5bf19c,_0x2cd926(0xf0),(_0x436800,{showDiff:_0x3a3c62})=>{const _0xc0eab3=_0x2cd926;this[_0xc0eab3(0xc7)]=_0x3a3c62;const {reply:_0x1c9820}=this[_0xc0eab3(0x81)](_0x57a4f5),_0x340dfb=_0x1c9820[_0xc0eab3(0x1b4)]({'showDiff':_0x3a3c62,'groupIndex':_0x2f587e});_0x5bf19c[_0xc0eab3(0x18f)]({'parts':_0x340dfb,'renderingStrategy':_0xc0eab3(0xfa)});}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x10b),()=>{const _0x4b3b09=_0x2cd926;this[_0x4b3b09(0x1b0)]({'replyId':_0x57a4f5,'partIndex':_0x2f587e}),_0x3ae06a?this[_0x4b3b09(0x194)](_0x57a4f5,_0x5068b9):_0x3bd440[_0x4b3b09(0xab)]();}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x100),()=>{const _0x109f4d=_0x2cd926;this[_0x109f4d(0x14f)]({'replyId':_0x57a4f5,'partIndex':_0x2f587e}),_0x3ae06a?this[_0x109f4d(0x194)](_0x57a4f5,_0x5068b9):_0x3bd440[_0x109f4d(0xab)]();}),_0x3ae06a&&(this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x16a),()=>{const _0x38bca1=_0x2cd926;this[_0x38bca1(0x194)](_0x57a4f5,_0x5068b9);}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x78),()=>{const _0x12d8de=_0x2cd926;this[_0x12d8de(0x194)](_0x57a4f5,_0x3d1fbe);})),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x1bf),()=>{const _0x3e7806=_0x2cd926;this[_0x3e7806(0x144)](_0x3bd440),this[_0x3e7806(0x144)](_0x5bf19c),this[_0x3e7806(0x118)]=null;});}[_0xbf8f99(0x155)](_0x23507e,_0x19c680){const _0x4e8d4a=_0xbf8f99,_0x153520=_0x4f2299(this[_0x4e8d4a(0x16b)]),{reply:_0x113997,interaction:_0x551c02}=this[_0x4e8d4a(0x81)](_0x23507e),_0x4431a7=_0x113997[_0x4e8d4a(0x120)][_0x4e8d4a(0x183)](_0x166b8a=>_0x4e8d4a(0xfc)==_0x166b8a[_0x4e8d4a(0xed)]),_0x5e0b52=_0x4431a7[_0x4e8d4a(0x174)](_0x1c78c7=>_0x113997[_0x4e8d4a(0x120)][_0x4e8d4a(0x10a)](_0x1c78c7));void 0x0===_0x19c680&&(_0x19c680=_0x5e0b52[0x0]);const _0x3deb9b=_0x5e0b52[_0x4e8d4a(0x10a)](_0x19c680);if(-0x1==_0x3deb9b)return null;const _0x35a5c0=_0x4431a7[_0x3deb9b],_0x489715=new _0x14ed9d([]),_0x40dd7d=new _0x14ed9d([]);for(const _0x5d3865 of _0x35a5c0[_0x4e8d4a(0x176)])if(_0x4e8d4a(0x119)!=_0x5d3865[_0x4e8d4a(0xa8)]&&_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x5d3865[_0x4e8d4a(0x164)][_0x4e8d4a(0x15a)](!0x0)),_0x4e8d4a(0x108)!=_0x5d3865[_0x4e8d4a(0xa8)]){const _0x32cd85=_0x25a715(_0x1e5f8c=>_0x52bed0(_0x1e5f8c,_0x4e8d4a(0x1a5))==_0x5d3865['id'],_0x113997[_0x4e8d4a(0x72)],!0x0);_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x32cd85[_0x4e8d4a(0x15a)](!0x0));}if(0x0==_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0xca)]){if(_0x35a5c0[_0x4e8d4a(0x176)][0x0][_0x4e8d4a(0xf3)]){const _0x3aac4f=_0x787a1d(_0x4e8d4a(0x1a5),_0x35a5c0[_0x4e8d4a(0x176)][0x0][_0x4e8d4a(0xf3)],_0x113997[_0x4e8d4a(0x72)]);_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x10e)](_0x3aac4f[_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x10e)](_0x3aac4f[_0x4e8d4a(0x15a)](!0x0)),_0x3aac4f[_0x4e8d4a(0xa1)]&&(_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x3aac4f[_0x4e8d4a(0xa1)][_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x3aac4f[_0x4e8d4a(0xa1)][_0x4e8d4a(0x15a)](!0x0)));}else{const _0x18328b=_0x113997[_0x4e8d4a(0x72)][_0x4e8d4a(0x95)][0x0];if(!_0x18328b)return null;_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x18328b[_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x18328b[_0x4e8d4a(0x15a)](!0x0));}}const _0x318767=_0x551c02[_0x4e8d4a(0x1b2)](),_0x578734=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x318767[_0x4e8d4a(0x7c)]),_0x3731db=_0x1ffb56(_0x489715),_0x5bb208=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x3731db),_0x174bfa=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x3731db),_0x4a90e4=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x73)](_0x5bb208,0x0),_0x48371e=_0x1ffb56(_0x40dd7d),_0x55423c={'anchor':_0x4a90e4,'markDeletions':!0x1},_0xfa1739=_0x153520[_0x4e8d4a(0xb1)][_0x4e8d4a(0x1ce)](_0x275d94)[_0x4e8d4a(0xa7)](_0x3731db,_0x48371e,_0x55423c)[_0x4e8d4a(0x8c)]();if(!_0xfa1739[_0x4e8d4a(0xca)])return null;_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xc6)](_0x3318c9=>{const _0x2ab168=_0x4e8d4a;for(const _0x361f15 of _0xfa1739)if(_0x2ab168(0x8b)==_0x361f15[_0x2ab168(0xa8)]){const _0x2c1bbf=_0x361f15[_0x2ab168(0x1b6)],_0x4d55e8=_0x361f15[_0x2ab168(0xb2)],_0x70e1ae=new _0x2513c6(_0x2c1bbf,_0x4d55e8);_0x3318c9[_0x2ab168(0x16f)][_0x2ab168(0x79)](_0x70e1ae),_0x153520[_0x2ab168(0x19d)][_0x2ab168(0x97)](_0x70e1ae);}else _0x2ab168(0x190)!==_0x361f15[_0x2ab168(0xa8)]&&(_0x361f15[_0x2ab168(0x14a)]=null,_0x361f15[_0x2ab168(0x18c)]=!0x1,_0x3318c9[_0x2ab168(0x16f)][_0x2ab168(0x79)](_0x361f15),_0x153520[_0x2ab168(0x19d)][_0x2ab168(0x97)](_0x361f15));});const _0x3269a2=_0x2a4135(_0x153520,_0xfa1739,_0x5bb208);_0x17a8e5(_0x153520[_0x4e8d4a(0x19d)],_0x3269a2);const _0x1f20be=_0x3269a2[_0x4e8d4a(0x111)]()[_0x4e8d4a(0x1ba)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x590962=_0x3269a2[_0x4e8d4a(0x111)]()[_0x4e8d4a(0x12b)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x5a74d5=[];let _0x8ed621=_0x5bb208,_0x186ca5=_0x174bfa;for(let _0x5e83f5=0x0;_0x5e83f5<_0x590962[_0x4e8d4a(0xca)];_0x5e83f5++){const _0x1d80e2=_0x8ed621[_0x4e8d4a(0xd2)]-_0x590962[_0x5e83f5];_0x5a74d5[_0x5e83f5]=_0x186ca5[_0x4e8d4a(0xd2)]-_0x1d80e2,_0x8ed621=_0x8ed621[_0x4e8d4a(0xd9)](_0x590962[_0x5e83f5]),_0x186ca5=_0x186ca5[_0x4e8d4a(0xd9)](_0x5a74d5[_0x5e83f5]);}const _0x24caac=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xd6)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x174bfa,_0x1f20be),_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x174bfa,_0x5a74d5)),_0x3cc925=_0x174bfa[_0x4e8d4a(0x77)](0x0)[_0x4e8d4a(0x11d)](_0x5d70c2),_0x3586de=Array[_0x4e8d4a(0xd4)](_0x578734[_0x4e8d4a(0x137)]())[_0x4e8d4a(0x178)](_0x3627de=>_0x3627de[_0x4e8d4a(0x11d)](_0x5d70c2)==_0x3cc925)[_0x4e8d4a(0x9f)](),_0x2ca2c5=_0x24caac[_0x4e8d4a(0x1ba)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x1e56fe=_0x24caac[_0x4e8d4a(0x12b)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)]();_0x2ca2c5[0x0]=_0x3586de[0x0]+_0x2ca2c5[0x0],_0x1e56fe[0x0]=_0x3586de[0x0]+_0x1e56fe[0x0];let _0x1c7d2f=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xd6)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0xae)](),_0x2ca2c5),_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0xae)](),_0x1e56fe));const _0xfa7cb8=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0x1a8)][_0x4e8d4a(0x8c)](_0x318767[_0x4e8d4a(0xe5)]);for(const _0x579e9f of _0xfa7cb8)_0x1c7d2f=_0x4e54e6[_0x4e8d4a(0x114)](_0x1c7d2f[_0x4e8d4a(0x163)](_0x579e9f));return{'range':_0x1c7d2f,'currentIndex':_0x19c680};}[_0xbf8f99(0x159)](_0x3b8110){const _0x98fef5=_0xbf8f99;if(!_0x3b8110[_0x98fef5(0xb1)][_0x98fef5(0x16d)](_0x98fef5(0xa4)))return;const _0x5a7e2b=_0x3b8110[_0x98fef5(0xc2)][_0x98fef5(0x1ce)](_0x98fef5(0xeb)),_0xefbbdf=_0x3b8110[_0x98fef5(0xc2)][_0x98fef5(0x1ce)](_0x98fef5(0x134));this[_0x98fef5(0x1a3)](_0x5a7e2b,_0x98fef5(0x8d),(_0x33ca13,_0x319b87,_0x280d63)=>{const _0x30dc4=_0x98fef5,_0x20b2bc=this[_0x30dc4(0x17f)][_0x30dc4(0x1ce)](_0x319b87);if(!_0x20b2bc)return;const _0x58eed3=this[_0x30dc4(0x13b)][_0x30dc4(0xe7)](_0x20b2bc[_0x30dc4(0x1aa)])[_0x30dc4(0x9b)](_0x20b2bc[_0x30dc4(0xc8)]);_0x20b2bc[_0x30dc4(0xcc)][_0x30dc4(0x11c)](_0x54e40f=>_0x58eed3[_0x30dc4(0x1c3)](_0x54e40f,_0x30dc4(0xfc))),this[_0x30dc4(0x17f)][_0x30dc4(0xe2)](_0x319b87),this[_0x30dc4(0x17f)][_0x30dc4(0x131)](_0x280d63,_0x20b2bc);}),this[_0x98fef5(0x1a3)](_0xefbbdf,_0x98fef5(0x8d),(_0x506f25,_0x542b7a,_0x255fbd)=>{const _0x48901a=_0x98fef5,_0x15f5ea=this[_0x48901a(0x17f)][_0x48901a(0x1ce)](_0x542b7a);if(!_0x15f5ea)return;const _0x5cff8c=this[_0x48901a(0x13b)][_0x48901a(0xe7)](_0x15f5ea[_0x48901a(0x1aa)])[_0x48901a(0x9b)](_0x15f5ea[_0x48901a(0xc8)]);_0x15f5ea[_0x48901a(0xcc)][_0x48901a(0x11c)](_0x585bad=>_0x5cff8c[_0x48901a(0x1c3)](_0x585bad,_0x48901a(0x15d))),this[_0x48901a(0x17f)][_0x48901a(0xe2)](_0x542b7a),this[_0x48901a(0x17f)][_0x48901a(0x131)](_0x255fbd,_0x15f5ea);});}async[_0xbf8f99(0x117)](_0x3fe3df){const _0x3d7194=_0xbf8f99;this[_0x3d7194(0x16b)][_0x3d7194(0xb1)][_0x3d7194(0x1ce)](_0x123c2c)[_0x3d7194(0xab)](),this[_0x3d7194(0x98)][_0x3d7194(0xcb)](_0x3d7194(0xfa)),this[_0x3d7194(0x98)][_0x3d7194(0xc5)](!0x0),await this[_0x3d7194(0x1bd)]();try{const _0x25d373=this[_0x3d7194(0x16b)][_0x3d7194(0xb1)][_0x3d7194(0x1ce)](_0x569d58);this[_0x3d7194(0x1c5)]('\x20'),_0x25d373[_0x3d7194(0x18a)][_0x3d7194(0x133)](_0x3d7194(0x19c)),await this[_0x3d7194(0x104)](_0x3fe3df);const {sessionId:_0x434664}=this[_0x3d7194(0x1bb)][_0x3d7194(0x145)]();await this[_0x3d7194(0x13b)][_0x3d7194(0x8a)](_0x3fe3df,_0x434664),this[_0x3d7194(0x13b)][_0x3d7194(0x18b)]()&&this[_0x3d7194(0x13b)][_0x3d7194(0xfd)](_0x346777(this[_0x3d7194(0x16b)][_0x3d7194(0x143)],_0x3d7194(0x1cc)));}catch(_0x222aa8){console[_0x3d7194(0x167)](_0x3d7194(0xfe),_0x222aa8);}finally{this[_0x3d7194(0x98)][_0x3d7194(0xac)](),this[_0x3d7194(0x98)][_0x3d7194(0xcb)](_0x3d7194(0x102)),this[_0x3d7194(0x98)][_0x3d7194(0xc5)](!0x1);}}[_0xbf8f99(0x109)](_0x266dd4){const _0x45376a=_0xbf8f99;this[_0x45376a(0x13b)]['id']===_0x266dd4&&this[_0x45376a(0x104)]();}async[_0xbf8f99(0x87)](){const _0x31d2c6=_0xbf8f99,_0x25da04=this[_0x31d2c6(0x1bb)][_0x31d2c6(0x84)]();this[_0x31d2c6(0x13b)]?.[_0x31d2c6(0xd5)](_0x25da04),this[_0x31d2c6(0x13b)]?.[_0x31d2c6(0xfd)](_0x346777(this[_0x31d2c6(0x16b)][_0x31d2c6(0x143)],_0x31d2c6(0x1cc)));}[_0xbf8f99(0x10c)](){const _0x3f2015=_0xbf8f99;this[_0x3f2015(0x13b)]?.[_0x3f2015(0x128)]();}[_0xbf8f99(0x1ad)](){const _0x2a9971=_0xbf8f99;this[_0x2a9971(0x98)][_0x2a9971(0x1ad)]();}async[_0xbf8f99(0x83)](){const _0x3e600b=_0xbf8f99;await this[_0x3e600b(0x104)]();}async[_0xbf8f99(0xd7)]({message:_0x2b5eba,quickActionData:_0x450ee6}){const _0x4af750=_0xbf8f99;await this[_0x4af750(0x15e)]({'userMessage':_0x2b5eba,'quickActionData':_0x450ee6});}[_0xbf8f99(0x110)](){const _0x30a7db=_0xbf8f99,_0x526bc8=this[_0x30a7db(0x16b)][_0x30a7db(0x127)][_0x30a7db(0x1ce)](_0x30a7db(0x1a1));if(!_0x526bc8)throw new _0x171ebd(_0x30a7db(0x179),this);return _0x526bc8;}async[_0xbf8f99(0x104)](_0x2df5c1){const _0x4aa70c=_0xbf8f99;try{this[_0x4aa70c(0x98)][_0x4aa70c(0xc0)](),await this[_0x4aa70c(0xba)](_0x2df5c1);}catch(_0xb08861){_0x158057(_0x4aa70c(0x1cf),_0xb08861),this[_0x4aa70c(0x13b)]=void 0x0,this[_0x4aa70c(0x98)][_0x4aa70c(0x1a6)]();}}async[_0xbf8f99(0xba)](_0x4fbb4f){const _0x2641ca=_0xbf8f99,_0x30ee5c=this[_0x2641ca(0x16b)][_0x2641ca(0xb1)][_0x2641ca(0x1ce)](_0x123c2c);let _0x230439;_0x30ee5c[_0x2641ca(0x148)]&&_0x30ee5c[_0x2641ca(0xab)](),_0x4fbb4f||!this[_0x2641ca(0x13b)]?_0x230439=this[_0x2641ca(0x16b)][_0x2641ca(0x127)][_0x2641ca(0x1ce)](_0x2641ca(0x74)):this[_0x2641ca(0x98)][_0x2641ca(0x9e)]&&(_0x230439=this[_0x2641ca(0x13b)][_0x2641ca(0xee)]['id']),await this[_0x2641ca(0x1bd)]();const _0x585b07=this[_0x2641ca(0x110)](),_0x5b4143=_0x4fbb4f||_0xc12830();this[_0x2641ca(0x13b)]=new _0x3ad74e({'connector':this[_0x2641ca(0x136)],'chatModels':this[_0x2641ca(0xd0)],'selectedModelId':_0x230439,'conversationId':_0x5b4143,'group':_0x585b07,'getEditor':()=>_0x4f2299(this[_0x2641ca(0x16b)])}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x17c),(_0x2c7a19,_0x149f3b)=>{const _0x38576d=_0x2641ca;this[_0x38576d(0x98)][_0x38576d(0x160)](_0x149f3b),this[_0x38576d(0x98)][_0x38576d(0x1a4)](),this[_0x38576d(0x98)][_0x38576d(0x189)](),this[_0x38576d(0x98)][_0x38576d(0x140)](),_0x4fbb4f||(this[_0x38576d(0x98)][_0x38576d(0x168)](),this[_0x38576d(0x13b)]?.[_0x38576d(0xfd)](_0x346777(this[_0x38576d(0x16b)][_0x38576d(0x143)],_0x38576d(0x1cc))));}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x96),(_0x2bf282,_0x480cfc)=>{const _0x139213=_0x2641ca;this[_0x139213(0x98)][_0x139213(0x17e)](_0x480cfc[_0x139213(0xfb)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xb4),(_0x354975,_0x1e0e4b)=>{const _0x332575=_0x2641ca;this[_0x332575(0x98)][_0x332575(0x1b1)](_0x1e0e4b);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x7e),()=>{const _0x140694=_0x2641ca;this[_0x140694(0x98)][_0x140694(0xc3)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xdc),()=>{const _0x543012=_0x2641ca;this[_0x543012(0x98)][_0x543012(0xc3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x139),(_0x4b5b8f,_0x902d6f)=>{const _0x1c69e4=_0x2641ca;this[_0x1c69e4(0x98)][_0x1c69e4(0x8e)](_0x902d6f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x132),(_0x39c07a,_0x586732)=>{const _0x23d977=_0x2641ca;this[_0x23d977(0x98)][_0x23d977(0x8e)](_0x586732,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x180),()=>{const _0x3a6c97=_0x2641ca;this[_0x3a6c97(0x98)][_0x3a6c97(0x1af)]();}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x17d),async()=>{const _0x580f39=_0x2641ca;await this[_0x580f39(0x98)][_0x580f39(0x1d0)]();}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x198),(_0x1bd5d1,_0x143498)=>{const _0x268f5e=_0x2641ca;this[_0x268f5e(0x98)][_0x268f5e(0x7f)](_0x143498['id']);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xb3),(_0x2717e2,_0x10deec,_0x1c5b0a)=>{const _0x2eb23c=_0x2641ca;this[_0x2eb23c(0x1c5)](_0x10deec,_0x1c5b0a);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x76),(_0x2c4cb2,_0x85e1bb)=>{const _0x8630e8=_0x2641ca;_0x8630e8(0xf9)===_0x85e1bb[_0x8630e8(0xa8)]?this[_0x8630e8(0x98)][_0x8630e8(0x9a)](_0x85e1bb):this[_0x8630e8(0x98)][_0x8630e8(0x13e)](_0x85e1bb);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x142),async(_0x5332c1,_0x5a4e07)=>{const _0x4c335a=_0x2641ca;await this[_0x4c335a(0x107)]({'reply':_0x5a4e07});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x141),(_0xcba882,{reply:_0x577065,index:_0x3d88c3,state:_0x5aca1c})=>{const _0x2c2de5=_0x2641ca;this[_0x2c2de5(0x98)][_0x2c2de5(0x89)]({'id':_0x577065['id'],'index':_0x3d88c3,'state':_0x5aca1c});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xe4),(_0x28d54c,_0x55c5be)=>{const _0x5d04dc=_0x2641ca;if(this[_0x5d04dc(0x98)][_0x5d04dc(0xef)](_0x55c5be[_0x5d04dc(0x92)],_0x55c5be[_0x5d04dc(0x184)]),_0x5d04dc(0xe0)===_0x55c5be[_0x5d04dc(0x92)][_0x5d04dc(0xa8)]){const _0x51863b=[..._0x4f2299(this[_0x5d04dc(0x16b)])[_0x5d04dc(0x19d)][_0x5d04dc(0x19f)][_0x5d04dc(0xe0)][_0x5d04dc(0xf5)]()];this[_0x5d04dc(0x1bb)][_0x5d04dc(0x12e)](_0x51863b,_0x5d04dc(0x9c)+this[_0x5d04dc(0x13b)]?.['id']);}}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x13c),(_0x5dc347,_0x403e5c)=>{const _0x4677a9=_0x2641ca;this[_0x4677a9(0x98)][_0x4677a9(0xaa)](_0x403e5c[_0x4677a9(0x9d)]),_0x4677a9(0x17b)==_0x403e5c[_0x4677a9(0x9d)]&&this[_0x4677a9(0x10c)](),_0x4677a9(0xe0)===_0x403e5c[_0x4677a9(0xa8)]&&this[_0x4677a9(0x1bb)][_0x4677a9(0x188)](_0x4677a9(0x9c)+this[_0x4677a9(0x13b)]?.['id']);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x138),(_0x4c4e12,_0x36b7f0)=>{const _0x47bae6=_0x2641ca;this[_0x47bae6(0x98)][_0x47bae6(0x12f)](_0x36b7f0[_0x47bae6(0x92)][_0x47bae6(0x9d)],_0x36b7f0[_0x47bae6(0x184)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x1a0),(_0x26deba,_0x29d7b8)=>{const _0x4eeabc=_0x2641ca;this[_0x4eeabc(0x98)][_0x4eeabc(0x153)](_0x29d7b8[_0x4eeabc(0xf8)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x135),(_0x59de76,_0x2e0fe1)=>{const _0x34fdfb=_0x2641ca;this[_0x34fdfb(0x98)][_0x34fdfb(0xe3)](_0x2e0fe1[_0x34fdfb(0x116)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xa5),(_0x432050,_0x30fd10)=>{const _0xf9c4be=_0x2641ca;this[_0xf9c4be(0x98)][_0xf9c4be(0x1ab)](_0x30fd10[_0xf9c4be(0x165)],_0x30fd10[_0xf9c4be(0x130)],_0x30fd10[_0xf9c4be(0x90)],_0x30fd10[_0xf9c4be(0x18d)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x147),(_0x741e0,_0x1f90d8)=>{const _0x3e6287=_0x2641ca;this[_0x3e6287(0x98)][_0x3e6287(0x1b7)](_0x1f90d8[_0x3e6287(0x165)],_0x1f90d8[_0x3e6287(0xf6)],_0x1f90d8[_0x3e6287(0x1b3)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x13d),(_0xdbbb1e,_0x2201d4)=>{const _0x5f5797=_0x2641ca;this[_0x5f5797(0x98)][_0x5f5797(0x1c6)](_0x2201d4);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x182),(_0x1607c7,_0x289f7c)=>{const _0x537151=_0x2641ca;this[_0x537151(0x98)][_0x537151(0xdd)](_0x289f7c[_0x537151(0xee)],_0x289f7c[_0x537151(0x171)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x167),(_0x18850e,{error:_0x570120,interactionId:_0x29488c,fileName:_0x17df22,url:_0x258698,sourceId:_0x58dd3d,sourceLabel:_0x1f511b})=>{const _0x29d14e=_0x2641ca,_0x4c6a44=_0x29488c?_0x29488c+':'+_0xc12830():_0xc12830();_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x16c))?this[_0x29d14e(0x98)][_0x29d14e(0xa2)]({'staticMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x1ac)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1ca))||_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1cf))?(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x181)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x10d))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x75),_0x17df22),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x186))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x11f),_0x258698),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x93))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0xb7)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x146))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x175)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x113))?(_0x58dd3d&&this[_0x29d14e(0x98)][_0x29d14e(0xa6)](_0x58dd3d),this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x152),_0x1f511b||_0x29d14e(0x130)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1be))?(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x94)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0xf2)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120));}),await this[_0x2641ca(0x13b)][_0x2641ca(0x14e)](this[_0x2641ca(0x16b)][_0x2641ca(0x127)][_0x2641ca(0x1ce)](_0x2641ca(0x195))),_0x4fbb4f||await this[_0x2641ca(0x13b)][_0x2641ca(0x1ba)]();}async[_0xbf8f99(0x15e)]({userMessage:_0x3d2e51,quickActionData:_0x3ecb21}){const _0x3d1eed=_0xbf8f99;if(!this[_0x3d1eed(0x13b)])throw new _0x171ebd(_0x3d1eed(0xb5));this[_0x3d1eed(0x13b)][_0x3d1eed(0x106)]()&&await this[_0x3d1eed(0x13b)][_0x3d1eed(0x19e)](this[_0x3d1eed(0x1bb)][_0x3d1eed(0x145)]()),this[_0x3d1eed(0x13b)]['id']&&this[_0x3d1eed(0x13b)][_0x3d1eed(0xd8)]&&await this[_0x3d1eed(0x13b)][_0x3d1eed(0x187)]({'userMessage':_0x3d2e51,'quickActionData':_0x3ecb21}),this[_0x3d1eed(0x1c8)]();}[_0xbf8f99(0x1c8)](){const _0x2a58bc=_0xbf8f99,_0x43dc95=_0x4f2299(this[_0x2a58bc(0x16b)])[_0x2a58bc(0x19d)],_0x3886ea=Array[_0x2a58bc(0xd4)](_0x43dc95[_0x2a58bc(0x170)][_0x2a58bc(0x193)](_0x2bf65f));_0x43dc95[_0x2a58bc(0xc6)](_0x55a2fa=>{const _0x1e707d=_0x2a58bc;_0x3886ea[_0x1e707d(0x11c)](_0x5edac7=>_0x55a2fa[_0x1e707d(0x1c9)](_0x5edac7));});}[_0xbf8f99(0xa9)](){const _0x1586a3=_0xbf8f99;console[_0x1586a3(0xe8)](_0x1586a3(0x124));}[_0xbf8f99(0x122)](_0x49ea86){const _0x1e85f4=_0xbf8f99;this[_0x1e85f4(0x98)][_0x1e85f4(0x157)](_0x49ea86);}[_0xbf8f99(0xb6)](_0x49fc68){const _0x1eab4b=_0xbf8f99;_0x158057(_0x49fc68[_0x1eab4b(0xe6)]);}[_0xbf8f99(0x12d)](_0x87c3d1){const _0x3893eb=_0xbf8f99;this[_0x3893eb(0x13b)]?.[_0x3893eb(0x99)](_0x87c3d1);}[_0xbf8f99(0x154)](){const _0x200bf4=_0xbf8f99;this[_0x200bf4(0x13b)]?.[_0x200bf4(0xd3)]();}[_0xbf8f99(0xc4)](){const _0x3c8c87=_0xbf8f99;this[_0x3c8c87(0x13b)]?.[_0x3c8c87(0xbc)]();}[_0xbf8f99(0x81)](_0x31ec65){const _0x277abe=_0xbf8f99,[_0x1998ce,_0x5bfc84]=_0x31ec65[_0x277abe(0x101)](':'),_0xfaa857=this[_0x277abe(0x13b)][_0x277abe(0xe7)](_0x1998ce),_0x2c7638=_0xfaa857[_0x277abe(0x9b)](_0x5bfc84);return{'interaction':_0xfaa857,'reply':_0x2c7638};}[_0xbf8f99(0x123)](_0x469d6a,_0x3f45cd=!0x1){const _0x771d7b=_0xbf8f99,_0x4137ed=_0x4f2299(this[_0x771d7b(0x16b)]),_0x1bee3f={'target':_0x4137ed[_0x771d7b(0x11a)][_0x771d7b(0x18a)][_0x771d7b(0xb9)][_0x771d7b(0x1b9)](_0x4137ed[_0x771d7b(0x11a)][_0x771d7b(0x16e)][_0x771d7b(0x15b)](_0x469d6a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3f45cd};_0x3f45cd&&(_0x1bee3f[_0x771d7b(0x18e)]=!0x0),_0xa2a93(_0x1bee3f);}[_0xbf8f99(0x1c5)](_0x587587,_0x4c7ce6=!0x1){const _0x2265cb=_0xbf8f99;this[_0x2265cb(0x98)][_0x2265cb(0xb3)](_0x587587||_0x346777(this[_0x2265cb(0x16b)][_0x2265cb(0x143)],_0x2265cb(0xe1)),_0x4c7ce6);}async[_0xbf8f99(0x107)]({reply:_0x5c40f1,renderingStrategy:_0x428bfa}){const _0x3c4bc5=_0xbf8f99,{id:_0x1d2862,isDone:_0x469906,type:_0x43d139,parsedContent:_0x11c2f0}=_0x5c40f1;if(_0x3c4bc5(0x162)===_0x43d139){const _0x54fb2b=_0x5c40f1[_0x3c4bc5(0x1b4)]({'showDiff':this[_0x3c4bc5(0x98)][_0x3c4bc5(0x196)]});await this[_0x3c4bc5(0x98)][_0x3c4bc5(0xe9)]({'id':_0x1d2862,'parts':_0x54fb2b,'renderingStrategy':_0x428bfa,'isDone':_0x469906});}else _0x3c4bc5(0xf9)===_0x43d139&&await this[_0x3c4bc5(0x98)][_0x3c4bc5(0xad)]({'id':_0x1d2862,'parsedContent':_0x11c2f0,'renderingStrategy':_0x428bfa,'isDone':_0x469906});_0x469906&&_0x5c40f1[_0x3c4bc5(0xda)][_0x3c4bc5(0xca)]>0x0&&this[_0x3c4bc5(0x98)][_0x3c4bc5(0x7b)](_0x1d2862,_0x5c40f1[_0x3c4bc5(0xda)]);}async[_0xbf8f99(0x1bd)](){const _0x458252=_0xbf8f99,_0x1598e7=this[_0x458252(0x13b)]?.[_0x458252(0xea)];_0x1598e7&&(_0x1598e7[_0x458252(0xbb)](),this[_0x458252(0x98)][_0x458252(0x121)](_0x1598e7));}async[_0xbf8f99(0x177)](){const _0x42b966=_0xbf8f99,_0x4aff5e=this[_0x42b966(0x13b)]?.[_0x42b966(0xea)];if(_0x4aff5e){for await(const _0x423062 of _0x4aff5e[_0x42b966(0xc1)])await this[_0x42b966(0x107)]({'reply':_0x423062,'renderingStrategy':_0x42b966(0xfa)});}}[_0xbf8f99(0x1b5)](_0x29ad71){const _0x49b40e=_0xbf8f99,_0xb22ab0={'positiveCount':_0x29ad71[_0x49b40e(0x120)][_0x49b40e(0x183)](_0x5ca97a=>_0x49b40e(0x15d)===_0x5ca97a[_0x49b40e(0xed)])[_0x49b40e(0xca)],'totalCount':_0x29ad71[_0x49b40e(0x120)][_0x49b40e(0xca)],'modificationId':_0x29ad71['id']},_0x14cb89=this[_0x49b40e(0x13b)][_0x49b40e(0xe7)](_0x29ad71[_0x49b40e(0x1aa)])[_0x49b40e(0xbf)];this[_0x49b40e(0x136)][_0x49b40e(0x1c2)](this[_0x49b40e(0x13b)]['id'],_0x14cb89,_0xb22ab0);}}
|
|
23
|
+
const _0x3eff34=_0x5b39;(function(_0x536b25,_0x40f198){const _0x266aae=_0x5b39,_0xe27935=_0x536b25();while(!![]){try{const _0x243bc6=parseInt(_0x266aae(0xad))/0x1+-parseInt(_0x266aae(0x1e8))/0x2*(parseInt(_0x266aae(0x176))/0x3)+-parseInt(_0x266aae(0x108))/0x4*(-parseInt(_0x266aae(0x151))/0x5)+parseInt(_0x266aae(0x157))/0x6*(-parseInt(_0x266aae(0x1b4))/0x7)+-parseInt(_0x266aae(0x9d))/0x8*(parseInt(_0x266aae(0x1d0))/0x9)+-parseInt(_0x266aae(0x19b))/0xa+parseInt(_0x266aae(0xf6))/0xb*(parseInt(_0x266aae(0xed))/0xc);if(_0x243bc6===_0x40f198)break;else _0xe27935['push'](_0xe27935['shift']());}catch(_0x3303cf){_0xe27935['push'](_0xe27935['shift']());}}}(_0x17db,0x845c1));import{ContextPlugin as _0x2db343,Editor as _0x598e4f}from'ckeditor5/src/core.js';import{CKEditorError as _0x28a58b,logError as _0x283934,scrollViewportToShowTarget as _0x2ddcb3,uid as _0x3728dc}from'ckeditor5/src/utils.js';import{AIConnector as _0x1885fc}from'../aicore/aiconnector.js';import{AITabs as _0x9c5646}from'../aitabs/aitabs.js';import{AIChatConversation as _0x33dcbb}from'./model/aichatconversation.js';import{getTranslation as _0xf28a5b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x447b84}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x57839b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x5478c2}from'./model/aichatmodels.js';import{getEditorFromContext as _0x5226e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x25a5f9,DATA_ID_MODEL_ATTRIBUTE as _0x336395}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x32446d,getOperationsFromReply as _0x396b8d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51024a,getMinimalSelection as _0x4307ed}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x17db(){const _0x4c99e7=['createConversation','loadSourceResources','removeContextItem','data-id','AI_CHAT_GENERIC_ERROR','_aiChatModels','replyCreated','context','version','_updateRatings','message','anchorId','chat','text-delta','map','contextItemAdded','dislike','uploadProgressChanged','like','toViewRange','partIndex','upsertAIChatRating','applyOperation','resetMessageInput','load','isPremiumPlugin','sources','type','getRoot','addResourceToContext','full','ai-chat-conversation-start-failed','selectedModel','indexes','getOperations','alignToTop','init','ai-chat-file-upload-failed','showDiff','mapper','505ChZNjn','AI_CHAT_UNABLE_TO_START_CONVERSATION','_showConversationHistory','add','lastInteraction','setIsUploadInProgress','198996cSLVmg','getFirstRange','updateCapabilities','setConversationTitle','_balloonShowDiff','_removeFromContext','addSelectionToChatContext','_aiEditing','remove','locale','replyId','applySuggestion','replyContentUpdated','addFeedItemAIReply','conversationInitialized','undo','updateFeedItemAIReplySources','_setIsMaximized','updateCurrentDocumentInContext','config','createPositionAt','open','_aiConnector','handleRemovedConversation','stopInteraction','outdated','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','children','sourceResourcesLoaded','isLoading','36390wNIASC','Showing\x20conversation\x20history...','setConversationContext','model','$graveyard','sourcePosition','path','getContentParts','interactionDestroyed','isOfficialPlugin','unshift','createPositionFromPath','requires','resize','_insertSuggestion','createRange','editors','getChild','cloneNode','addContextOptionsChanged','current-document','interactionFinished','showPrevious','abortPromptStream','addFeedItemUserMessage','setModel','getChildren','_openBalloonFor','populateSourceResourceBalloon','ai-conversation-','getPath','removed','filter','listenTo','resizeTabs','push','setContextItemLoading','2770320ejjeFB','isDocumentOperation','AIChatUI','changes','changeGroups','startConversation','has','messageId','revert','updateConversationTitle','error','finishInteraction','ai-chat-controller-no-active-conversation','close','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','forEach','start','getMarkersGroup','activeConversation','DocumentCompare','findIndex','capabilitiesUpdated','updateFeedItemAIReplySuggestionContent','ai-no-track-changes','_previewedChangeGroup','14iOzLgW','find','_aiChatUi','_applySuggestion','AI_CHAT_RESOURCE_LOAD_FAILED','getDocumentContext','options','scrollFeedToSuggestion','nextSibling','hasChanges','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNTITLED_CONVERSATION','plugins','_flushLastInteractionUI','ai-chat-context-invalid-data','setFeedItemRenderingStrategy','isOpen','sourceId','Disliked\x20response','addFeedItemError','getInteraction','isCurrentDocumentInConversation','streaming','delete','query','isUploadInProgress','_toggleReasoning','toggleWebSearch','18KsgweY','contextSent','Failed\x20to\x20load\x20conversation','node','AIEditing','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','closeSourceResourceBalloon','indexOf','getReply','addUrlToContext','removeSelectionFromChatContext','index','addFeedItemAISuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','activateTab','mouseLeaveSuggestion','AIConnector','addFeedItemStaticMessage','AITabs','data','TrackChanges','sendMessage','addFilesToContext','selectModel','24CfzBFC','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-source-resources-load-failed','focusPromptInput','getTransformedByOperation','history','setSelectedModel','webSearchFinished','selection','_batchToChanges','startsWith','_applyOperationsAsSuggestions','replyChangeGroupStateUpdated','resourceStateChanged','getGroupId','collaboration.channelId','_startConversationSafely','interactionCreated','range','rootName','_handleUIUserMessage','updateFeedItemAIReplyContent','4196840pJNFiw','showChangeInText','from','enableControls','_getDocumentRangeForReplyChanges','mouseOverSuggestion','addCurrentDocumentToContext','replies','resourceId','ai.chat.models.displayedModels','ready','view','removeSelectionFromContext','disableControls','batch','state','710302KzSLed','ai-request-aborted','_removeAISelectionMarkers','editing','howMany','loadConversation','pluginName','rejected','isStarted','toString','root','getSelectionText','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','insertSuggestion','getChildAtOffset','redo','documentContextContent','stop','ai-chat-controller-mouse-over','updateContent','pending','isCurrentDocumentInContext','updateFeedItemAIReplySuggestionPartState','resources','ai.chat.context','_logError','uiId','TrackChangesEditing','viewRangeToDom','removeFromContext','clearPendingContextUI','handleUserInteraction','showNext','markers','addFileToContext','toggleSuggestionDisplayMode','contextItems','ai.availableReplyActions','resetConversationTitle','afterInit','webSearchStarted','main','toggleReasoning','isDisabled','getDocumentData','setIsMaximized','dialogClosed','addOperation','domConverter','getDiff','reasoningFinished','_scrollToSuggestionRange','hideFakeVisualSelection','resizedTabs','isInContext','uid','showFakeVisualSelection','_toggleWebSearch','Undo','sendUserMessage','addFeedInteractionHeader','reasoningStarted','ai-chat-url-upload-failed','interactionId','1764408ZyIggs','source','rejectSuggestion','ai-chat-conversation-init-failed','log','setChangeGroupState','modelSelected','addContextItem','getAttribute','44puFTxG','split','new','_integrateEditor','contextItem','AIChatController','_updateReplyContent','AI_BALLOON_HEADER_TITLE','getInteractionAndReplyById','resource','modification-delta','ai-chat-missing-channel-id','addDocumentToContext','slice','toggleLoadingSkeleton','removeMarker','_handleStartConversation','clearConversationContextUI','30964OonTaX','end','length','_stopLastInteraction','contextItemRemoved','accepted','Liked\x20response','get','change','contextItemLoadingEnded','setLoadingMessage','baseVersion','getRanges','content','startAutoScroll','ai.chat.models.defaultModelId','parse','static','removeFeedInteraction','stopListening','updateResourceState','maxOffset','_createFromRanges','addSelectionToContext','setAddContextOptions','document','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','marker','isModelAvailable','interactionStarted','commands','startInteraction','set'];_0x17db=function(){return _0x4c99e7;};return _0x17db();}import{ModelRange as _0x5aebe5,_DetachOperation as _0x4ebe0e}from'ckeditor5/src/engine.js';import{findOne as _0xe31386,getAttribute as _0x4ed15a,serialize as _0x394252,Document as _0xc54126,findByAttribute as _0x2102a5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x57825b}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x1ee013}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x15895c}from'../aiballoon/aiballoon.js';function _0x5b39(_0x1d7405,_0x370131){const _0x17db48=_0x17db();return _0x5b39=function(_0x5b398d,_0x547d49){_0x5b398d=_0x5b398d-0x8c;let _0x2ccb98=_0x17db48[_0x5b398d];return _0x2ccb98;},_0x5b39(_0x1d7405,_0x370131);}export class AIChatController extends _0x2db343{[_0x3eff34(0x15e)];[_0x3eff34(0x16d)];[_0x3eff34(0x1b6)];[_0x3eff34(0x12e)];[_0x3eff34(0x90)]=new Map();[_0x3eff34(0x1b3)]=null;[_0x3eff34(0x15b)]=!0x1;static get[_0x3eff34(0x182)](){return[_0x1885fc,_0x15895c,_0x25a5f9];}static get[_0x3eff34(0xb3)](){const _0x3f50bf=_0x3eff34;return _0x3f50bf(0xfb);}static get[_0x3eff34(0x17f)](){return!0x0;}static get[_0x3eff34(0x142)](){return!0x0;}[_0x3eff34(0x14d)](){const _0xe50db7=_0x3eff34;this[_0xe50db7(0x16d)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e0)),this[_0xe50db7(0x1b6)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x19d)),this[_0xe50db7(0x15e)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1d4)),this[_0xe50db7(0x12e)]=new _0x5478c2({'connector':this[_0xe50db7(0x16d)],'availableModels':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0xa6)),'defaultModelId':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0x117))});const _0x7c87c8=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e2));this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1a0),()=>{const _0x6e06f1=_0xe50db7;this[_0x6e06f1(0x97)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xe8),(_0x395bf2,_0x329df1)=>{const _0x11a9fb=_0xe50db7;this[_0x11a9fb(0x9b)]({'userMessage':_0x329df1});}),this[_0xe50db7(0x197)](_0x7c87c8,_0xe50db7(0xe2),(_0x1984d4,_0x1d34e7)=>{const _0x499b5b=_0xe50db7;this[_0x499b5b(0x168)](_0x1d34e7);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x198),()=>{const _0x2e773f=_0xe50db7;_0x7c87c8[_0x2e773f(0x183)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x18d),async()=>{const _0x1b67b6=_0xe50db7;await this[_0x1b67b6(0x10b)](),await this[_0x1b67b6(0x1c1)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x102),()=>{const _0x416e3b=_0xe50db7;this[_0x416e3b(0x1ad)]?.[_0x416e3b(0xa3)](_0xf28a5b(this[_0x416e3b(0x130)][_0x416e3b(0x160)],_0x416e3b(0x1a9)));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xcf),(_0x22e9c9,_0x55c81a)=>{const _0x3246e7=_0xe50db7;this[_0x3246e7(0x1ad)]?.[_0x3246e7(0x1e6)](Array[_0x3246e7(0x9f)](_0x55c81a));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1d9),(_0x4a3db4,_0x160553)=>{const _0xc528a4=_0xe50db7;this[_0xc528a4(0x1ad)]?.[_0xc528a4(0x1d9)](_0x160553);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x146),(_0x3d0a31,_0x1a53e7)=>{const _0x266de3=_0xe50db7;this[_0x266de3(0x1ad)]?.[_0x266de3(0x146)](_0x1a53e7[_0x266de3(0xee)],_0x1a53e7[_0x266de3(0xff)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12b),(_0x414c83,_0x1a734b)=>{const _0x4537ef=_0xe50db7;this[_0x4537ef(0x15c)](_0x1a734b);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12a),(_0x13c4d9,_0x598729)=>{const _0x47f3f6=_0xe50db7;this[_0x47f3f6(0x1ad)]?.[_0x47f3f6(0x12a)](_0x598729[_0x47f3f6(0x1c5)],_0x598729[_0x47f3f6(0x1cc)],_0x598729[_0x47f3f6(0xe4)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1cf),()=>{const _0x2963bf=_0xe50db7;this[_0x2963bf(0xe6)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd7),()=>{const _0x4962d8=_0xe50db7;this[_0x4962d8(0x1ce)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1e7),(_0x2f5454,_0x826e4e)=>{const _0x55f4c2=_0xe50db7;this[_0x55f4c2(0x1ad)]?.[_0x55f4c2(0x18f)](_0x826e4e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x13b),(_0x777d64,{replyId:_0x4b5b0e})=>{const _0x5f3ca9=_0xe50db7;console[_0x5f3ca9(0xf1)](_0x5f3ca9(0x10e),_0x4b5b0e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x139),(_0x1eab10,{replyId:_0x1e4fc5})=>{const _0x132dad=_0xe50db7;console[_0x132dad(0xf1)](_0x132dad(0x1c6),_0x1e4fc5);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xba),(_0x25eca3,_0x1c6078)=>{const _0x1f3199=_0xe50db7;this[_0x1f3199(0x130)][_0x1f3199(0x1c0)][_0x1f3199(0x10f)](_0x15895c)[_0x1f3199(0x1a8)](),this[_0x1f3199(0x184)](_0x1c6078);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x9e),(_0x2ebb82,{replyId:_0x22fe1b,partIndex:_0x2666d9})=>{const _0x40b149=_0xe50db7;this[_0x40b149(0x15b)]=this[_0x40b149(0x1b6)][_0x40b149(0x14f)],this[_0x40b149(0x191)](_0x22fe1b,_0x2666d9);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xa2),(_0x12735c,{replyId:_0x30be5e,partIndex:_0x698001})=>{const _0x350b5a=_0xe50db7,_0x273a85=this[_0x350b5a(0xa1)](_0x30be5e,_0x698001);_0x273a85&&_0x350b5a(0x17a)!=_0x273a85[_0x350b5a(0x99)][_0x350b5a(0xb7)][_0x350b5a(0x9a)]&&this[_0x350b5a(0x15e)][_0x350b5a(0xe5)]([_0x273a85[_0x350b5a(0x99)]],_0x350b5a(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1df),()=>{const _0x28883b=_0xe50db7;this[_0x28883b(0x15e)][_0x28883b(0xe1)](_0x28883b(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x162),(_0x1c1420,_0x536037)=>{const _0x522c6d=_0xe50db7;this[_0x522c6d(0x130)][_0x522c6d(0x1c0)][_0x522c6d(0x10f)](_0x15895c)[_0x522c6d(0x1a8)](),this[_0x522c6d(0x1b7)](_0x536037);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd0),async(_0x4bd625,{replyId:_0x280a16,showDiff:_0x235f38})=>{const _0x3fa501=_0xe50db7,{reply:_0x41aac4}=this[_0x3fa501(0xfe)](_0x280a16),_0x1fa0d3=_0x41aac4[_0x3fa501(0x17d)]({'showDiff':_0x235f38});await this[_0x3fa501(0x1b6)][_0x3fa501(0x1b1)]({'id':_0x41aac4['id'],'parts':_0x1fa0d3,'renderingStrategy':_0x3fa501(0x119)});}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xef),(_0x20914e,{replyId:_0x2f1d91,partIndex:_0x4b334b})=>{const _0x43d8d2=_0xe50db7;this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x161)]==_0x2f1d91&&this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x13d)]==_0x4b334b&&this[_0x43d8d2(0x130)][_0x43d8d2(0x1c0)][_0x43d8d2(0x10f)](_0x15895c)[_0x43d8d2(0x1a8)]();const {reply:_0x5a6085}=this[_0x43d8d2(0xfe)](_0x2f1d91);_0x5a6085[_0x43d8d2(0xf2)](_0x4b334b,_0x43d8d2(0xb4)),this[_0x43d8d2(0x15e)][_0x43d8d2(0xe1)](_0x43d8d2(0xbf));});}async[_0x3eff34(0xd4)](){const _0x40c715=_0x3eff34;this[_0x40c715(0x130)]instanceof _0x598e4f?this[_0x40c715(0xf9)](this[_0x40c715(0x130)]):this[_0x40c715(0x197)](this[_0x40c715(0x130)][_0x40c715(0x186)],_0x40c715(0x154),(_0x54c836,_0x5e0426)=>{const _0x112d2b=_0x40c715;_0x5e0426['on'](_0x112d2b(0xa7),()=>{const _0x1b86dd=_0x112d2b;this[_0x1b86dd(0xf9)](_0x5e0426);});}),await this[_0x40c715(0x97)]();}[_0x3eff34(0x184)](_0x2662cd){const _0x407fab=_0x3eff34,_0x8ddf77=_0x5226e4(this[_0x407fab(0x130)]);if(!_0x8ddf77[_0x407fab(0x1c0)][_0x407fab(0x1a1)](_0x407fab(0x1e4)))throw new _0x28a58b(_0x407fab(0x1b2),null);const _0x23b812=this[_0x407fab(0x130)][_0x407fab(0x1c0)][_0x407fab(0x10f)](_0x407fab(0x1ae)),{reply:_0xee138f,interaction:_0xb3c894}=this[_0x407fab(0xfe)](_0x2662cd[_0x407fab(0x161)]),_0x27a8e=this[_0x407fab(0xa1)](_0x2662cd[_0x407fab(0x161)],_0x2662cd[_0x407fab(0x13d)]),_0x519fe9=void 0x0!==_0x2662cd[_0x407fab(0x13d)]?[_0xee138f[_0x407fab(0x19f)][_0x2662cd[_0x407fab(0x13d)]]]:_0xee138f[_0x407fab(0x19f)][_0x407fab(0x196)](_0x33eb8c=>_0x407fab(0xc1)==_0x33eb8c[_0x407fab(0xac)]),_0x54a94a=_0x519fe9[_0x407fab(0x137)](_0x3d736d=>_0xee138f[_0x407fab(0x19f)][_0x407fab(0x1d7)](_0x3d736d));if(!_0x27a8e||_0x407fab(0x17a)==_0x27a8e[_0x407fab(0x99)][_0x407fab(0xb7)][_0x407fab(0x9a)])return void _0x54a94a[_0x407fab(0x1aa)](_0xf90db6=>_0xee138f[_0x407fab(0xf2)](_0xf90db6,_0x407fab(0x170)));_0x54a94a[_0x407fab(0x1aa)](_0x3c7059=>_0xee138f[_0x407fab(0xf2)](_0x3c7059,_0x407fab(0x10d)));const _0x3543b4=_0x396b8d({'editor':_0x8ddf77,'reply':_0xee138f,'interaction':_0xb3c894,'groups':_0x519fe9,'transform':!0x0,'documentCompare':_0x23b812,'documentCompareOptions':{'anchor':_0x407fab(0xd6),'markDeletions':!0x0}});let _0x3f5601;_0x27a8e&&this[_0x407fab(0xe0)](_0x27a8e[_0x407fab(0x99)]),_0x8ddf77[_0x407fab(0x179)][_0x407fab(0x110)](_0x55b92b=>{const _0x3577eb=_0x407fab;_0x3f5601=_0x55b92b[_0x3577eb(0xab)],_0x8ddf77[_0x3577eb(0x1c0)][_0x3577eb(0x10f)](_0x3577eb(0xc8))[_0x3577eb(0x92)](_0x3543b4),this[_0x3577eb(0x15e)][_0x3577eb(0xe1)](_0x3577eb(0xbf));}),this[_0x407fab(0x90)][_0x407fab(0x128)](_0x3f5601,{'interactionId':_0xb3c894['id'],'replyId':_0xee138f['id'],'indexes':_0x54a94a[_0x407fab(0x103)]()}),this[_0x407fab(0x132)](_0xee138f);}[_0x3eff34(0x1b7)](_0x31861e){const _0x17e854=_0x3eff34,_0x665495=_0x5226e4(this[_0x17e854(0x130)]),_0x4b7815=this[_0x17e854(0x130)][_0x17e854(0x1c0)][_0x17e854(0x10f)](_0x25a5f9),{reply:_0x4192eb,interaction:_0x4ac77f}=this[_0x17e854(0xfe)](_0x31861e[_0x17e854(0x161)]),_0x2caed0=this[_0x17e854(0xa1)](_0x31861e[_0x17e854(0x161)],_0x31861e[_0x17e854(0x13d)]),_0x1eeb1e=void 0x0!==_0x31861e[_0x17e854(0x13d)]?[_0x4192eb[_0x17e854(0x19f)][_0x31861e[_0x17e854(0x13d)]]]:_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x196)](_0x4d8a84=>_0x17e854(0xc1)==_0x4d8a84[_0x17e854(0xac)]),_0x17d54b=_0x1eeb1e[_0x17e854(0x137)](_0x238feb=>_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x1d7)](_0x238feb));if(!_0x2caed0||_0x17e854(0x17a)==_0x2caed0[_0x17e854(0x99)][_0x17e854(0xb7)][_0x17e854(0x9a)])return void _0x17d54b[_0x17e854(0x1aa)](_0x6f2296=>_0x4192eb[_0x17e854(0xf2)](_0x6f2296,_0x17e854(0x170)));_0x17d54b[_0x17e854(0x1aa)](_0x3f51b3=>_0x4192eb[_0x17e854(0xf2)](_0x3f51b3,_0x17e854(0x10d)));const _0x3b123e=_0x396b8d({'editor':_0x665495,'reply':_0x4192eb,'interaction':_0x4ac77f,'groups':_0x1eeb1e,'transform':!0x0,'documentCompare':_0x4b7815,'documentCompareOptions':{'anchor':_0x17e854(0xd6),'markDeletions':!0x1}});let _0x4ea5cf;_0x2caed0&&this[_0x17e854(0xe0)](_0x2caed0[_0x17e854(0x99)]),_0x665495[_0x17e854(0x179)][_0x17e854(0x110)](_0x3595c0=>{const _0x121218=_0x17e854;_0x4ea5cf=_0x3595c0[_0x121218(0xab)];for(const _0x275fb2 of _0x3b123e)_0x275fb2[_0x121218(0x113)]=_0x665495[_0x121218(0x179)][_0x121218(0x121)][_0x121218(0x131)],_0x32446d(_0x665495,_0x275fb2),_0x3595c0[_0x121218(0xab)][_0x121218(0xdc)](_0x275fb2),_0x665495[_0x121218(0x179)][_0x121218(0x13f)](_0x275fb2);}),this[_0x17e854(0x90)][_0x17e854(0x128)](_0x4ea5cf,{'interactionId':_0x4ac77f['id'],'replyId':_0x4192eb['id'],'indexes':_0x17d54b[_0x17e854(0x103)]()}),this[_0x17e854(0x132)](_0x4192eb);}[_0x3eff34(0x191)](_0x247e7c,_0x15952e){const _0x33d9af=_0x3eff34,_0x58d38d=_0x5226e4(this[_0x33d9af(0x130)]),_0x24e94f=this[_0x33d9af(0xa1)](_0x247e7c,_0x15952e),_0x5b4fdd=this[_0x33d9af(0x130)][_0x33d9af(0x1c0)][_0x33d9af(0x10f)](_0x15895c);if(!_0x24e94f)return void _0x5b4fdd[_0x33d9af(0x1a8)]();const {range:_0x197429,currentIndex:_0x467123}=_0x24e94f;if(_0x33d9af(0x17a)==_0x197429[_0x33d9af(0xb7)][_0x33d9af(0x9a)]){const {reply:_0x497ff2}=this[_0x33d9af(0xfe)](_0x247e7c);return _0x497ff2[_0x33d9af(0xf2)](_0x467123,_0x33d9af(0x170)),void _0x5b4fdd[_0x33d9af(0x1a8)]();}if(this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x161)]==_0x247e7c&&this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x13d)]==_0x467123)return;this[_0x33d9af(0x11b)](_0x5b4fdd),this[_0x33d9af(0x1b3)]={'replyId':_0x247e7c,'partIndex':_0x467123};let _0x4ff260=_0x58d38d[_0x33d9af(0x16a)][_0x33d9af(0x10f)](_0x33d9af(0xd2))||[..._0x57839b];_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4))||(_0x4ff260=_0x4ff260[_0x33d9af(0x196)](_0x116175=>_0x33d9af(0xba)!=_0x116175));const _0x301838=new _0x1ee013(_0x58d38d[_0x33d9af(0x160)],{'showDiff':this[_0x33d9af(0x15b)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x33d9af(0x147)},'hideHeader':!0x0,'availableActions':_0x4ff260});this[_0x33d9af(0x11b)](_0x301838);const {reply:_0x197a7b}=this[_0x33d9af(0xfe)](_0x247e7c),_0x1fd030=_0x197a7b[_0x33d9af(0x17d)]({'showDiff':this[_0x33d9af(0x15b)]})[_0x33d9af(0x196)](_0x477f47=>_0x477f47[_0x33d9af(0x1bd)]),_0x48bc1b=_0x1fd030[_0x33d9af(0x1af)](_0x330099=>_0x330099[_0x33d9af(0x1db)]==_0x467123);if(-0x1==_0x48bc1b)return;const _0x22c373=_0x1fd030[_0x48bc1b],_0x4dc57e=_0x1fd030['at']((_0x48bc1b-0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)],_0x32b6da=_0x1fd030['at']((_0x48bc1b+0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)];_0x301838[_0x33d9af(0xc0)]({'parts':[_0x22c373],'renderingStrategy':_0x33d9af(0x119)});const _0x48c63c=_0x467123!==_0x4dc57e;this[_0x33d9af(0xe0)](_0x197429,!0x0),_0x5b4fdd[_0x33d9af(0x16c)]({'index':_0x467123,'title':_0xf28a5b(this[_0x33d9af(0x130)][_0x33d9af(0x160)],_0x33d9af(0xfd),(_0x48bc1b+0x1)[_0x33d9af(0xb6)]()),'icon':_0x57825b,'mainView':_0x301838,'showRotator':_0x48c63c,'showApplyButton':!0x0,'showSuggestButton':_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4)),'ranges':[_0x197429]}),this[_0x33d9af(0x1b6)][_0x33d9af(0x1bb)](_0x247e7c,_0x467123),this[_0x33d9af(0x197)](_0x301838,_0x33d9af(0xd0),(_0x3772e7,{showDiff:_0x399c4e})=>{const _0x44b66e=_0x33d9af;this[_0x44b66e(0x15b)]=_0x399c4e;const {reply:_0x13b7ca}=this[_0x44b66e(0xfe)](_0x247e7c),_0x5f31cc=_0x13b7ca[_0x44b66e(0x17d)]({'showDiff':_0x399c4e,'groupIndex':_0x467123});_0x301838[_0x44b66e(0xc0)]({'parts':_0x5f31cc,'renderingStrategy':_0x44b66e(0x119)});}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x162),()=>{const _0x2fbf00=_0x33d9af;this[_0x2fbf00(0x1b7)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x2fbf00(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x2fbf00(0x1a8)]();}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xba),()=>{const _0x44b970=_0x33d9af;this[_0x44b970(0x184)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x44b970(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x44b970(0x1a8)]();}),_0x48c63c&&(this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xcd),()=>{const _0x41d416=_0x33d9af;this[_0x41d416(0x191)](_0x247e7c,_0x32b6da);}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x18c),()=>{const _0x19e045=_0x33d9af;this[_0x19e045(0x191)](_0x247e7c,_0x4dc57e);})),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xdb),()=>{const _0x12b166=_0x33d9af;this[_0x12b166(0x11b)](_0x5b4fdd),this[_0x12b166(0x11b)](_0x301838),this[_0x12b166(0x1b3)]=null;});}[_0x3eff34(0xa1)](_0x51a1b4,_0x464bab){const _0x3befd8=_0x3eff34,_0x2a01c5=_0x5226e4(this[_0x3befd8(0x130)]),{reply:_0x57a614,interaction:_0x4da4c7}=this[_0x3befd8(0xfe)](_0x51a1b4),_0x400097=_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x196)](_0x47cd9f=>_0x3befd8(0xc1)==_0x47cd9f[_0x3befd8(0xac)]),_0x5d2629=_0x400097[_0x3befd8(0x137)](_0x22ff03=>_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x1d7)](_0x22ff03));void 0x0===_0x464bab&&(_0x464bab=_0x5d2629[0x0]);const _0x57784e=_0x5d2629[_0x3befd8(0x1d7)](_0x464bab);if(-0x1==_0x57784e)return null;const _0x549c8a=_0x400097[_0x57784e],_0x47f2c4=new _0xc54126([]),_0x1b95fc=new _0xc54126([]);for(const _0x2a7b2e of _0x549c8a[_0x3befd8(0x19e)])if(_0x3befd8(0x195)!=_0x2a7b2e[_0x3befd8(0x144)]&&_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x2a7b2e[_0x3befd8(0x1d3)][_0x3befd8(0x188)](!0x0)),_0x3befd8(0xf8)!=_0x2a7b2e[_0x3befd8(0x144)]){const _0x1b9dea=_0xe31386(_0x5f04e6=>_0x4ed15a(_0x5f04e6,_0x3befd8(0x12c))==_0x2a7b2e['id'],_0x57a614[_0x3befd8(0xbd)],!0x0);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x1b9dea[_0x3befd8(0x188)](!0x0));}if(0x0==_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x10a)]){if(_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)]){const _0x57a03e=_0x2102a5(_0x3befd8(0x12c),_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)],_0x57a614[_0x3befd8(0xbd)]);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x57a03e[_0x3befd8(0x1bc)]&&(_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)));}else{const _0x4e3783=_0x57a614[_0x3befd8(0xbd)][_0x3befd8(0x173)][0x0];if(!_0x4e3783)return null;_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0));}}const _0x1fc74e=_0x4da4c7[_0x3befd8(0x1b9)](),_0x3268cf=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x1fc74e[_0x3befd8(0x115)]),_0x4735e9=_0x394252(_0x47f2c4),_0x545825=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x1e05b8=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x6f8584=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x16b)](_0x545825,0x0),_0x2333e8=_0x394252(_0x1b95fc),_0x4af19b={'anchor':_0x6f8584,'markDeletions':!0x1},_0x308eeb=_0x2a01c5[_0x3befd8(0x1c0)][_0x3befd8(0x10f)](_0x25a5f9)[_0x3befd8(0xde)](_0x4735e9,_0x2333e8,_0x4af19b)[_0x3befd8(0x14b)]();if(!_0x308eeb[_0x3befd8(0x10a)])return null;_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x110)](_0x5099d6=>{const _0x1eb2e4=_0x3befd8;for(const _0x3b5f49 of _0x308eeb)if(_0x1eb2e4(0x15f)==_0x3b5f49[_0x1eb2e4(0x144)]){const _0x4d9b95=_0x3b5f49[_0x1eb2e4(0x17b)],_0x24b1e2=_0x3b5f49[_0x1eb2e4(0xb1)],_0x3f0689=new _0x4ebe0e(_0x4d9b95,_0x24b1e2);_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3f0689),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3f0689);}else _0x1eb2e4(0x123)!==_0x3b5f49[_0x1eb2e4(0x144)]&&(_0x3b5f49[_0x1eb2e4(0x113)]=null,_0x3b5f49[_0x1eb2e4(0x19c)]=!0x1,_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3b5f49),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3b5f49));});const _0x26aec8=_0x4307ed(_0x2a01c5,_0x308eeb,_0x545825);_0x51024a(_0x2a01c5[_0x3befd8(0x179)],_0x26aec8);const _0x201e69=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x2670ee=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x5ccbfe=[];let _0x4037c1=_0x545825,_0x36bf85=_0x1e05b8;for(let _0x19a143=0x0;_0x19a143<_0x2670ee[_0x3befd8(0x10a)];_0x19a143++){const _0x46470a=_0x4037c1[_0x3befd8(0x11d)]-_0x2670ee[_0x19a143];_0x5ccbfe[_0x19a143]=_0x36bf85[_0x3befd8(0x11d)]-_0x46470a,_0x4037c1=_0x4037c1[_0x3befd8(0xbb)](_0x2670ee[_0x19a143]),_0x36bf85=_0x36bf85[_0x3befd8(0xbb)](_0x5ccbfe[_0x19a143]);}const _0xaa03d6=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x201e69),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x5ccbfe)),_0x4a7be8=_0x1e05b8[_0x3befd8(0x187)](0x0)[_0x3befd8(0xf5)](_0x336395),_0x4882cd=Array[_0x3befd8(0x9f)](_0x3268cf[_0x3befd8(0x190)]())[_0x3befd8(0x1b5)](_0x3c3a28=>_0x3c3a28[_0x3befd8(0xf5)](_0x336395)==_0x4a7be8)[_0x3befd8(0x194)](),_0x4aebe4=_0xaa03d6[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x23df3a=_0xaa03d6[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)]();_0x4aebe4[0x0]=_0x4882cd[0x0]+_0x4aebe4[0x0],_0x23df3a[0x0]=_0x4882cd[0x0]+_0x23df3a[0x0];let _0x441c2d=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x4aebe4),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x23df3a));const _0x1f9e58=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x8c)][_0x3befd8(0x14b)](_0x1fc74e[_0x3befd8(0x131)]);for(const _0x436778 of _0x1f9e58)_0x441c2d=_0x5aebe5[_0x3befd8(0x11e)](_0x441c2d[_0x3befd8(0x1ec)](_0x436778));return{'range':_0x441c2d,'currentIndex':_0x464bab};}[_0x3eff34(0xf9)](_0x12453c){const _0x84acd6=_0x3eff34;if(!_0x12453c[_0x84acd6(0x1c0)][_0x84acd6(0x1a1)](_0x84acd6(0xe7)))return;const _0x34c53a=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0x166)),_0x2d9f30=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0xbc));this[_0x84acd6(0x197)](_0x34c53a,_0x84acd6(0x1a3),(_0xb84d5d,_0x1be876,_0x175c6d)=>{const _0x3d1a27=_0x84acd6,_0x3bfe8a=this[_0x3d1a27(0x90)][_0x3d1a27(0x10f)](_0x1be876);if(!_0x3bfe8a)return;const _0x38e967=this[_0x3d1a27(0x1ad)][_0x3d1a27(0x1c8)](_0x3bfe8a[_0x3d1a27(0xec)])[_0x3d1a27(0x1d8)](_0x3bfe8a[_0x3d1a27(0x161)]);_0x3bfe8a[_0x3d1a27(0x14a)][_0x3d1a27(0x1aa)](_0x283372=>_0x38e967[_0x3d1a27(0xf2)](_0x283372,_0x3d1a27(0xc1))),this[_0x3d1a27(0x90)][_0x3d1a27(0x1cb)](_0x1be876),this[_0x3d1a27(0x90)][_0x3d1a27(0x128)](_0x175c6d,_0x3bfe8a);}),this[_0x84acd6(0x197)](_0x2d9f30,_0x84acd6(0x1a3),(_0x526c09,_0x225b94,_0x23d72b)=>{const _0x126d77=_0x84acd6,_0xa65c2e=this[_0x126d77(0x90)][_0x126d77(0x10f)](_0x225b94);if(!_0xa65c2e)return;const _0x289af2=this[_0x126d77(0x1ad)][_0x126d77(0x1c8)](_0xa65c2e[_0x126d77(0xec)])[_0x126d77(0x1d8)](_0xa65c2e[_0x126d77(0x161)]);_0xa65c2e[_0x126d77(0x14a)][_0x126d77(0x1aa)](_0x5a9845=>_0x289af2[_0x126d77(0xf2)](_0x5a9845,_0x126d77(0x10d))),this[_0x126d77(0x90)][_0x126d77(0x1cb)](_0x225b94),this[_0x126d77(0x90)][_0x126d77(0x128)](_0x23d72b,_0xa65c2e);});}async[_0x3eff34(0xb2)](_0x902aca){const _0x5c0837=_0x3eff34;this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x15895c)[_0x5c0837(0x1a8)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x119)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x0),await this[_0x5c0837(0x10b)]();try{const _0x2c48b6=this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x9c5646);this[_0x5c0837(0x1a4)]('\x20'),_0x2c48b6[_0x5c0837(0xa8)][_0x5c0837(0x1de)](_0x5c0837(0x135)),await this[_0x5c0837(0x97)](_0x902aca);const {sessionId:_0x2879e5}=this[_0x5c0837(0x15e)][_0x5c0837(0xd9)]();await this[_0x5c0837(0x1ad)][_0x5c0837(0x141)](_0x902aca,_0x2879e5),this[_0x5c0837(0x1ad)][_0x5c0837(0x1c9)]()&&this[_0x5c0837(0x1ad)][_0x5c0837(0xa3)](_0xf28a5b(this[_0x5c0837(0x130)][_0x5c0837(0x160)],_0x5c0837(0x1a9)));}catch(_0x1509e9){console[_0x5c0837(0x1a5)](_0x5c0837(0x1d2),_0x1509e9);}finally{this[_0x5c0837(0x1b6)][_0x5c0837(0x116)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x1ca)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x1);}}[_0x3eff34(0x16e)](_0x5cff5c){const _0x5f178e=_0x3eff34;this[_0x5f178e(0x1ad)]['id']===_0x5cff5c&&this[_0x5f178e(0x97)]();}async[_0x3eff34(0x15d)](){const _0x206a44=_0x3eff34,_0x57db0c=this[_0x206a44(0x15e)][_0x206a44(0xb8)]();this[_0x206a44(0x1ad)]?.[_0x206a44(0x11f)](_0x57db0c),this[_0x206a44(0x1ad)]?.[_0x206a44(0xa3)](_0xf28a5b(this[_0x206a44(0x130)][_0x206a44(0x160)],_0x206a44(0x1a9)));}[_0x3eff34(0x1da)](){const _0x17e056=_0x3eff34;this[_0x17e056(0x1ad)]?.[_0x17e056(0xa9)]();}[_0x3eff34(0x1eb)](){const _0x253d66=_0x3eff34;this[_0x253d66(0x1b6)][_0x253d66(0x1eb)]();}async[_0x3eff34(0x1a0)](){const _0xdd06bb=_0x3eff34;await this[_0xdd06bb(0x97)]();}async[_0x3eff34(0x1e5)]({message:_0x200c9a,quickActionData:_0x444a3d}){const _0x50886d=_0x3eff34;await this[_0x50886d(0x9b)]({'userMessage':_0x200c9a,'quickActionData':_0x444a3d});}[_0x3eff34(0x95)](){const _0x55c164=_0x3eff34,_0x3b8582=this[_0x55c164(0x130)][_0x55c164(0x16a)][_0x55c164(0x10f)](_0x55c164(0x96));if(!_0x3b8582)throw new _0x28a58b(_0x55c164(0x101),this);return _0x3b8582;}async[_0x3eff34(0x97)](_0x191313){const _0x53b68e=_0x3eff34;try{this[_0x53b68e(0x1b6)][_0x53b68e(0xa0)](),await this[_0x53b68e(0x106)](_0x191313);}catch(_0x567a0c){_0x283934(_0x53b68e(0x148),_0x567a0c),this[_0x53b68e(0x1ad)]=void 0x0,this[_0x53b68e(0x1b6)][_0x53b68e(0xaa)]();}}async[_0x3eff34(0x106)](_0x3e2797){const _0x346f06=_0x3eff34,_0x5bc748=this[_0x346f06(0x130)][_0x346f06(0x1c0)][_0x346f06(0x10f)](_0x15895c);let _0x24e562;_0x5bc748[_0x346f06(0x1c4)]&&_0x5bc748[_0x346f06(0x1a8)](),_0x3e2797||!this[_0x346f06(0x1ad)]?_0x24e562=this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0x117)):this[_0x346f06(0x1b6)][_0x346f06(0x124)]&&(_0x24e562=this[_0x346f06(0x1ad)][_0x346f06(0x149)]['id']),await this[_0x346f06(0x10b)]();const _0x36c6fb=this[_0x346f06(0x95)](),_0x5a3e85=_0x3e2797||_0x3728dc();this[_0x346f06(0x1ad)]=new _0x33dcbb({'connector':this[_0x346f06(0x16d)],'chatModels':this[_0x346f06(0x12e)],'selectedModelId':_0x24e562,'conversationId':_0x5a3e85,'group':_0x36c6fb,'getEditor':()=>_0x5226e4(this[_0x346f06(0x130)])}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x165),(_0x5973bd,_0x1cf62a)=>{const _0x17212a=_0x346f06;this[_0x17212a(0x1b6)][_0x17212a(0x129)](_0x1cf62a),this[_0x17212a(0x1b6)][_0x17212a(0x140)](),this[_0x17212a(0x1b6)][_0x17212a(0xcb)](),this[_0x17212a(0x1b6)][_0x17212a(0x107)](),_0x3e2797||(this[_0x17212a(0x1b6)][_0x17212a(0xd3)](),this[_0x17212a(0x1ad)]?.[_0x17212a(0xa3)](_0xf28a5b(this[_0x17212a(0x130)][_0x17212a(0x160)],_0x17212a(0x1a9))));}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x13a),(_0x1bc27f,_0x1f87b7)=>{const _0x4d006f=_0x346f06;this[_0x4d006f(0x1b6)][_0x4d006f(0x156)](_0x1f87b7[_0x4d006f(0x1cd)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x98),(_0x758de8,_0x14a597)=>{const _0x33b896=_0x346f06;this[_0x33b896(0x1b6)][_0x33b896(0x18e)](_0x14a597);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xd5),()=>{const _0x557d36=_0x346f06;this[_0x557d36(0x1b6)][_0x557d36(0x112)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xea),()=>{const _0x146282=_0x346f06;this[_0x146282(0x1b6)][_0x146282(0x112)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x8e),(_0x4ce616,_0x5b256c)=>{const _0x4c5c27=_0x346f06;this[_0x4c5c27(0x1b6)][_0x4c5c27(0xe9)](_0x5b256c,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xdf),(_0x212adf,_0x1c2ff1)=>{const _0x5c78b4=_0x346f06;this[_0x5c78b4(0x1b6)][_0x5c78b4(0xe9)](_0x1c2ff1,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x125),()=>{const _0xbc6a84=_0x346f06;this[_0xbc6a84(0x1b6)][_0xbc6a84(0x127)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x18b),async()=>{const _0x444925=_0x346f06;await this[_0x444925(0x1b6)][_0x444925(0x1a6)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x17e),(_0x25c9f4,_0x5e5e33)=>{const _0x5c401c=_0x346f06;this[_0x5c401c(0x1b6)][_0x5c401c(0x11a)](_0x5e5e33['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x15a),(_0x2b6945,_0x497ec8,_0x1bde43)=>{const _0x4d1d7a=_0x346f06;this[_0x4d1d7a(0x1a4)](_0x497ec8,_0x1bde43);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x12f),(_0x382d1d,_0x381f46)=>{const _0x2d17c2=_0x346f06;_0x2d17c2(0x136)===_0x381f46[_0x2d17c2(0x144)]?this[_0x2d17c2(0x1b6)][_0x2d17c2(0x164)](_0x381f46):this[_0x2d17c2(0x1b6)][_0x2d17c2(0x1dc)](_0x381f46);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x163),async(_0x53985e,_0x2bebc1)=>{const _0x3fd448=_0x346f06;await this[_0x3fd448(0xfc)]({'reply':_0x2bebc1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x93),(_0x71e78c,{reply:_0x3561d1,index:_0x4ab065,state:_0x4399d2})=>{const _0x12a16c=_0x346f06;this[_0x12a16c(0x1b6)][_0x12a16c(0xc3)]({'id':_0x3561d1['id'],'index':_0x4ab065,'state':_0x4399d2});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x138),(_0x11b7c8,_0x4b3d9b)=>{const _0x14e77c=_0x346f06;if(this[_0x14e77c(0x1b6)][_0x14e77c(0xf4)](_0x4b3d9b[_0x14e77c(0xfa)],_0x4b3d9b[_0x14e77c(0x175)]),_0x14e77c(0x8f)===_0x4b3d9b[_0x14e77c(0xfa)][_0x14e77c(0x144)]){const _0x509f04=[..._0x5226e4(this[_0x14e77c(0x130)])[_0x14e77c(0x179)][_0x14e77c(0x121)][_0x14e77c(0x8f)][_0x14e77c(0x114)]()];this[_0x14e77c(0x15e)][_0x14e77c(0xe5)](_0x509f04,_0x14e77c(0x193)+this[_0x14e77c(0x1ad)]?.['id']);}}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x10c),(_0x41aedd,_0xd321cb)=>{const _0x2f5df2=_0x346f06;this[_0x2f5df2(0x1b6)][_0x2f5df2(0x12b)](_0xd321cb[_0x2f5df2(0xc7)]),_0x2f5df2(0x18a)==_0xd321cb[_0x2f5df2(0xc7)]&&this[_0x2f5df2(0x1da)](),_0x2f5df2(0x8f)===_0xd321cb[_0x2f5df2(0x144)]&&this[_0x2f5df2(0x15e)][_0x2f5df2(0xe1)](_0x2f5df2(0x193)+this[_0x2f5df2(0x1ad)]?.['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x111),(_0x184661,_0x28572a)=>{const _0x4f49d4=_0x346f06;this[_0x4f49d4(0x1b6)][_0x4f49d4(0x19a)](_0x28572a[_0x4f49d4(0xfa)][_0x4f49d4(0xc7)],_0x28572a[_0x4f49d4(0x175)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1d1),(_0x399076,_0x95e53b)=>{const _0x524bca=_0x346f06;this[_0x524bca(0x1b6)][_0x524bca(0x178)](_0x95e53b[_0x524bca(0xd1)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x189),(_0xf9bc68,_0x4b738f)=>{const _0x23371a=_0x346f06;this[_0x23371a(0x1b6)][_0x23371a(0x120)](_0x4b738f[_0x23371a(0x1ba)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x174),(_0x44d8fc,_0x1b9664)=>{const _0x26f571=_0x346f06;this[_0x26f571(0x1b6)][_0x26f571(0x192)](_0x1b9664[_0x26f571(0x1c5)],_0x1b9664[_0x26f571(0xee)],_0x1b9664[_0x26f571(0xc4)],_0x1b9664[_0x26f571(0xe4)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x94),(_0x5d4143,_0x12a67a)=>{const _0x477064=_0x346f06;this[_0x477064(0x1b6)][_0x477064(0x11c)](_0x12a67a[_0x477064(0x1c5)],_0x12a67a[_0x477064(0xa5)],_0x12a67a[_0x477064(0xe3)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1b0),(_0x339d32,_0x419a40)=>{const _0x816425=_0x346f06;this[_0x816425(0x1b6)][_0x816425(0x159)](_0x419a40);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xf3),(_0x308fc5,_0x3f89f2)=>{const _0x4a03ed=_0x346f06;this[_0x4a03ed(0x1b6)][_0x4a03ed(0x8d)](_0x3f89f2[_0x4a03ed(0x149)],_0x3f89f2[_0x4a03ed(0xd8)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1a5),(_0x552122,{error:_0xdf2453,interactionId:_0x2ce81e,fileName:_0x58eaaf,url:_0x71f46e,sourceId:_0x9a9fe9,sourceLabel:_0x1490cc})=>{const _0x2930dd=_0x346f06,_0x1a18fe=_0x2ce81e?_0x2ce81e+':'+_0x3728dc():_0x3728dc();_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xae))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1e1)]({'staticMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1be)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xf0))||_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x148))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x152)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x14e))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0xb9),_0x58eaaf),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xeb))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1dd),_0x71f46e),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1c2))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1e9)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x172))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1d5)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1ea))?(_0x9a9fe9&&this[_0x2930dd(0x1b6)][_0x2930dd(0x1d6)](_0x9a9fe9),this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x122),_0x1490cc||_0x2930dd(0xee)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x171))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1b8)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x12d)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453));}),await this[_0x346f06(0x1ad)][_0x346f06(0x14d)](this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0xc5))),_0x3e2797||await this[_0x346f06(0x1ad)][_0x346f06(0x1ab)]();}async[_0x3eff34(0x9b)]({userMessage:_0x2478c0,quickActionData:_0x21eaca}){const _0x429099=_0x3eff34;if(!this[_0x429099(0x1ad)])throw new _0x28a58b(_0x429099(0x1a7));this[_0x429099(0x1ad)][_0x429099(0xc2)]()&&await this[_0x429099(0x1ad)][_0x429099(0x169)](this[_0x429099(0x15e)][_0x429099(0xd9)]()),this[_0x429099(0x1ad)]['id']&&this[_0x429099(0x1ad)][_0x429099(0xb5)]&&await this[_0x429099(0x1ad)][_0x429099(0xcc)]({'userMessage':_0x2478c0,'quickActionData':_0x21eaca}),this[_0x429099(0xaf)]();}[_0x3eff34(0xaf)](){const _0x5849e6=_0x3eff34,_0x9b69c4=_0x5226e4(this[_0x5849e6(0x130)])[_0x5849e6(0x179)],_0x50537a=Array[_0x5849e6(0x9f)](_0x9b69c4[_0x5849e6(0xce)][_0x5849e6(0x1ac)](_0x447b84));_0x9b69c4[_0x5849e6(0x110)](_0x59d6e1=>{const _0x26b653=_0x5849e6;_0x50537a[_0x26b653(0x1aa)](_0xdabd40=>_0x59d6e1[_0x26b653(0x105)](_0xdabd40));});}[_0x3eff34(0x153)](){const _0x21464c=_0x3eff34;console[_0x21464c(0xf1)](_0x21464c(0x177));}[_0x3eff34(0x168)](_0x5bb26b){const _0x9c4167=_0x3eff34;this[_0x9c4167(0x1b6)][_0x9c4167(0xda)](_0x5bb26b);}[_0x3eff34(0xc6)](_0x2afc5b){const _0x297c1b=_0x3eff34;_0x283934(_0x2afc5b[_0x297c1b(0x133)]);}[_0x3eff34(0x15c)](_0x35bca7){const _0x341e3f=_0x3eff34;this[_0x341e3f(0x1ad)]?.[_0x341e3f(0xca)](_0x35bca7);}[_0x3eff34(0xe6)](){const _0x2b1914=_0x3eff34;this[_0x2b1914(0x1ad)]?.[_0x2b1914(0x1cf)]();}[_0x3eff34(0x1ce)](){const _0x4b1f9e=_0x3eff34;this[_0x4b1f9e(0x1ad)]?.[_0x4b1f9e(0xd7)]();}[_0x3eff34(0xfe)](_0x479e46){const _0x4a3025=_0x3eff34,[_0x4af365,_0x27194e]=_0x479e46[_0x4a3025(0xf7)](':'),_0xa26729=this[_0x4a3025(0x1ad)][_0x4a3025(0x1c8)](_0x4af365),_0x47ea81=_0xa26729[_0x4a3025(0x1d8)](_0x27194e);return{'interaction':_0xa26729,'reply':_0x47ea81};}[_0x3eff34(0xe0)](_0x34ec4c,_0x2061fb=!0x1){const _0x3d2de1=_0x3eff34,_0x5cdc89=_0x5226e4(this[_0x3d2de1(0x130)]),_0x5d1023={'target':_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0xa8)][_0x3d2de1(0xdd)][_0x3d2de1(0xc9)](_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0x150)][_0x3d2de1(0x13c)](_0x34ec4c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2061fb};_0x2061fb&&(_0x5d1023[_0x3d2de1(0x14c)]=!0x0),_0x2ddcb3(_0x5d1023);}[_0x3eff34(0x1a4)](_0x14077e,_0x450389=!0x1){const _0x31da76=_0x3eff34;this[_0x31da76(0x1b6)][_0x31da76(0x15a)](_0x14077e||_0xf28a5b(this[_0x31da76(0x130)][_0x31da76(0x160)],_0x31da76(0x1bf)),_0x450389);}async[_0x3eff34(0xfc)]({reply:_0x2f26a1,renderingStrategy:_0x53d1b1}){const _0x249989=_0x3eff34,{id:_0x4f8355,isDone:_0x4c8731,type:_0x5f23cb,parsedContent:_0xc0481}=_0x2f26a1;if(_0x249989(0x100)===_0x5f23cb){const _0x2b0a92=_0x2f26a1[_0x249989(0x17d)]({'showDiff':this[_0x249989(0x1b6)][_0x249989(0x14f)]});await this[_0x249989(0x1b6)][_0x249989(0x1b1)]({'id':_0x4f8355,'parts':_0x2b0a92,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});}else _0x249989(0x136)===_0x5f23cb&&await this[_0x249989(0x1b6)][_0x249989(0x9c)]({'id':_0x4f8355,'parsedContent':_0xc0481,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});_0x4c8731&&_0x2f26a1[_0x249989(0x143)][_0x249989(0x10a)]>0x0&&this[_0x249989(0x1b6)][_0x249989(0x167)](_0x4f8355,_0x2f26a1[_0x249989(0x143)]);}async[_0x3eff34(0x10b)](){const _0x5a0448=_0x3eff34,_0x38caf6=this[_0x5a0448(0x1ad)]?.[_0x5a0448(0x155)];_0x38caf6&&(_0x38caf6[_0x5a0448(0xbe)](),this[_0x5a0448(0x1b6)][_0x5a0448(0x16f)](_0x38caf6));}async[_0x3eff34(0x1c1)](){const _0xfbce0c=_0x3eff34,_0x5f8fb8=this[_0xfbce0c(0x1ad)]?.[_0xfbce0c(0x155)];if(_0x5f8fb8){for await(const _0x1de35c of _0x5f8fb8[_0xfbce0c(0xa4)])await this[_0xfbce0c(0xfc)]({'reply':_0x1de35c,'renderingStrategy':_0xfbce0c(0x119)});}}[_0x3eff34(0x132)](_0x45a2be){const _0x4896d7=_0x3eff34,_0x5e73ce={'positiveCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x196)](_0x28caa3=>_0x4896d7(0x10d)===_0x28caa3[_0x4896d7(0xac)])[_0x4896d7(0x10a)],'totalCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x10a)],'modificationId':_0x45a2be['id']},_0x350c8a=this[_0x4896d7(0x1ad)][_0x4896d7(0x1c8)](_0x45a2be[_0x4896d7(0xec)])[_0x4896d7(0x1a2)];this[_0x4896d7(0x16d)][_0x4896d7(0x13e)](this[_0x4896d7(0x1ad)]['id'],_0x350c8a,_0x5e73ce);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf9347=_0x2ab3;function _0x2ab3(_0x4cb7f6,_0x44c075){const _0x5cca04=_0x5cca();return _0x2ab3=function(_0x2ab32d,_0x39b265){_0x2ab32d=_0x2ab32d-0x76;let _0x5d0c3b=_0x5cca04[_0x2ab32d];return _0x5d0c3b;},_0x2ab3(_0x4cb7f6,_0x44c075);}function _0x5cca(){const _0x31afdd=['get','setContextItemLoading','forEach','conversation-start','options','AI_CHAT_WELCOME_MESSAGE','isModelAvailable','capabilities','scrollFeedToSuggestion','setLoadingMessage','interaction-header','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','removeItem','set','1GclAvV','markFeedItemAsDone','updateSuggestionPartState','isDisabled','from','displayedPrompt','chatFeed','commands','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','config','updateCapabilities','children','removeContextItem','setInputPlaceholder','chat','AITabs','addContextItem','updateFeedItemAIReplySuggestionContent','last','ai-suggestion-reply','setConversationContext','find','label','setIsMaximized','interactionId','updateReplyItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','addFeedItemAIReply','focusPromptInput','toggleLoadingSkeleton','markItemAsDone','isWebSearchEnabled','_titleAnimationInterval','userMessage','pluginName','setIsUploadInProgress','addFeedInteractionHeader','AI_CHAT_HEADING','resetConversationTitle','createConversation','clear','getItemIds','_promiseQueue','enableModelSelector','isBusy','availableModels','feedItemRenderingStrategy','startInteraction','finishInteraction','isPending','resetMessageInput','error-message','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','remove','ai.chat.context.searchInputVisibleFrom','startAutoScroll','then','70960trCbhU','showDiff','addFeedItemUserMessage','user-message','setSelectedModel','addFeedItemAISuggestion','trackChanges','length','_getLoadingMessage','<p>','values','isReasoningEnabled','isVisible','updateFeedItemAIReplyContent','264645ibVHfK','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','57xiHCBp','40zRkMdj','1647564BXeJUS','_animateConversationTitle','setWebSearch','view','isPremiumPlugin','populateSourceResourceBalloon','disableModelSelector','streaming','setModel','_view','setModelList','isMaximized','51716zkSjsP','_getInputPlaceholder','contextItems','insertSuggestion','destroy','value','has','AIChatUI','areActionsDisabled','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','4823767Hdlcux','_interactionPromiseResolver','showResizeButton','790678OLjPxp','</p>','delegate','TrackChanges','queueEmptyPromise','_isTrackChangesCommandValueBound','context','addFeedItemError','abort','closeSourceResourceBalloon','133GVeNhd','ai-reply','isLoading','addItem','startsWith','isTrackChangesOn','updateFeedItemAIReplySuggestionPartState','updateFeedInteractionHeader','clearPendingContextUI','chatHeader','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.availableReplyActions','quickActionData','setConversationTitle','isDone','requires','locale','stopInteraction','12zwDSkb','isOfficialPlugin','stopAutoScroll','addFeedItemStaticMessage','filter','1028753jpprWi','updateFeedItemAIReplySources','plugins','scrollToSuggestion','setFeedItemRenderingStrategy','toggleSuggestionDisplayMode','enableControls','chatControls','updateResourceState','updateWebSources','5tcjKmb','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','addTab','bind','setAddContextOptions','ai.chat.models.modelSelectorAlwaysVisible','enqueue','setReasoning','removeFeedInteraction','clearConversationContextUI'];_0x5cca=function(){return _0x31afdd;};return _0x5cca();}(function(_0x3a6977,_0x2d3008){const _0x3021dc=_0x2ab3,_0x14e660=_0x3a6977();while(!![]){try{const _0x236711=-parseInt(_0x3021dc(0xb9))/0x1*(-parseInt(_0x3021dc(0x11e))/0x2)+-parseInt(_0x3021dc(0x103))/0x3*(parseInt(_0x3021dc(0x111))/0x4)+parseInt(_0x3021dc(0xa0))/0x5*(parseInt(_0x3021dc(0x105))/0x6)+parseInt(_0x3021dc(0x7e))/0x7*(parseInt(_0x3021dc(0xf3))/0x8)+parseInt(_0x3021dc(0x101))/0x9*(parseInt(_0x3021dc(0x104))/0xa)+parseInt(_0x3021dc(0x96))/0xb*(-parseInt(_0x3021dc(0x91))/0xc)+-parseInt(_0x3021dc(0x11b))/0xd;if(_0x236711===_0x2d3008)break;else _0x14e660['push'](_0x14e660['shift']());}catch(_0x43f86a){_0x14e660['push'](_0x14e660['shift']());}}}(_0x5cca,0x3c05a));import{ContextPlugin as _0x568026}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2e8485}from'ckeditor5/src/utils.js';import{AIChatView as _0x2759c1}from'./ui/aichatview.js';import{AITabs as _0x44d1fa}from'../aitabs/aitabs.js';import{getTranslation as _0x3c3c88}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x35182f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x316173}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x4a5093}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xb0a303}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x345e50}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1654c6}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x568026{static get[_0xf9347(0x8e)](){return[_0x44d1fa];}[_0xf9347(0x10e)];static get[_0xf9347(0xdb)](){const _0x1ce4f3=_0xf9347;return _0x1ce4f3(0x118);}static get[_0xf9347(0x92)](){return!0x0;}static get[_0xf9347(0x109)](){return!0x0;}[_0xf9347(0xe7)]=_0xf9347(0x10c);[_0xf9347(0xf4)]=!0x0;[_0xf9347(0xe3)];[_0xf9347(0x11c)];[_0xf9347(0xd9)]=void 0x0;[_0xf9347(0x79)]=!0x1;constructor(_0x287833){const _0x4ae24c=_0xf9347;super(_0x287833);const _0x4058a0=this[_0x4ae24c(0x7a)][_0x4ae24c(0x98)][_0x4ae24c(0xaa)](_0x4ae24c(0xc8));this[_0x4ae24c(0xb8)](_0x4ae24c(0xe5),!0x1),this[_0x4ae24c(0xe3)]=new _0x4a5093(),this[_0x4ae24c(0x10e)]=new _0x2759c1(this[_0x4ae24c(0x7a)][_0x4ae24c(0x8f)],{'showResizeButton':_0x4058a0[_0x4ae24c(0x11d)],'contextResourcesSearchInputVisibleFrom':this[_0x4ae24c(0x7a)][_0x4ae24c(0xc2)][_0x4ae24c(0xaa)](_0x4ae24c(0xf0))}),this[_0x4ae24c(0x10e)][_0x4ae24c(0x76)](..._0xb0a303)['to'](this),this[_0x4ae24c(0x10e)]['on'](_0x4ae24c(0x9b),(_0x56927e,{showDiff:_0x28ac5d})=>{const _0x3c628a=_0x4ae24c;this[_0x3c628a(0xf4)]=_0x28ac5d;}),_0x4058a0[_0x4ae24c(0x108)][_0x4ae24c(0xa2)]({'id':_0x4ae24c(0xc7),'buttonLabel':_0x3c3c88(this[_0x4ae24c(0x7a)][_0x4ae24c(0x8f)],_0x4ae24c(0xde)),'buttonIcon':_0x35182f,'order':0x0,'content':this[_0x4ae24c(0x10e)]}),this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)][_0x4ae24c(0xa3)](_0x4ae24c(0x80))['to'](this,_0x4ae24c(0xe5),_0x2c8796=>_0x2c8796),this[_0x4ae24c(0x10e)][_0x4ae24c(0xbf)][_0x4ae24c(0xa3)](_0x4ae24c(0xea))['to'](this,_0x4ae24c(0xe5),_0x1b627d=>_0x1b627d),this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)][_0x4ae24c(0xc6)](this[_0x4ae24c(0x112)]()),this[_0x4ae24c(0xa3)](_0x4ae24c(0xb0))['to'](this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)],_0x4ae24c(0xb0));}[_0xf9347(0x115)](){const _0x3b033c=_0xf9347;super[_0x3b033c(0x115)](),this[_0x3b033c(0xd9)]&&clearInterval(this[_0x3b033c(0xd9)]);}[_0xf9347(0xe0)](_0x34907f){const _0x51b84a=_0xf9347;this[_0x51b84a(0x10e)][_0x51b84a(0xbf)][_0x51b84a(0xe1)](),this[_0x51b84a(0x10e)][_0x51b84a(0x9d)][_0x51b84a(0xe4)](),this[_0x51b84a(0x10e)][_0x51b84a(0x9d)][_0x51b84a(0x10f)](_0x34907f[_0x51b84a(0xe6)],!this[_0x51b84a(0x7a)][_0x51b84a(0xc2)][_0x51b84a(0xaa)](_0x51b84a(0xa5))),this[_0x51b84a(0x94)]({'id':_0x51b84a(0xad),'staticMessage':_0x3c3c88(this[_0x51b84a(0x7a)][_0x51b84a(0x8f)],_0x51b84a(0xaf))});}[_0xf9347(0x94)]({id:_0x1b5720,staticMessage:_0x51c8f6}){const _0x535da0=_0xf9347;this[_0x535da0(0x10e)][_0x535da0(0xbf)][_0x535da0(0x81)](_0x535da0(0x7f),{'id':_0x1b5720,'initialContent':_0x535da0(0xfc)+_0x51c8f6+_0x535da0(0x11f)});}[_0xf9347(0xf5)](_0x1ef993){const _0x17f278=_0xf9347,_0x179d34=_0x1ef993[_0x17f278(0x8b)]?.[_0x17f278(0xbe)]||_0x1ef993[_0x17f278(0xda)];this[_0x17f278(0x10e)][_0x17f278(0xbf)][_0x17f278(0x81)](_0x17f278(0xf6),{'contextItems':Array[_0x17f278(0xbd)](_0x1ef993[_0x17f278(0x113)][_0x17f278(0xfd)]()),'initialContent':_0x17f278(0xfc)+_0x179d34+_0x17f278(0x11f),'id':_0x1ef993['id']});}[_0xf9347(0x7b)]({errorMessage:_0x9390e2,id:_0x1bcc52}){const _0x45ae25=_0xf9347;this[_0x45ae25(0x10e)][_0x45ae25(0xbf)][_0x45ae25(0x81)](_0x45ae25(0xec),{'initialContent':_0x45ae25(0xfc)+_0x9390e2+_0x45ae25(0x11f),'id':_0x1bcc52});}[_0xf9347(0xd4)](_0x25478a){const _0x4ead2e=_0xf9347;return this[_0x4ead2e(0xe3)][_0x4ead2e(0xa6)](async()=>{const _0xc34e4=_0x4ead2e;this[_0xc34e4(0x10e)][_0xc34e4(0xbf)][_0xc34e4(0x81)](_0xc34e4(0x7f),{'id':_0x25478a[_0xc34e4(0xd1)]+':'+_0x25478a['id']}),this[_0xc34e4(0xb3)](null);});}async[_0xf9347(0xf8)](_0x977b08){const _0x5dfc3d=_0xf9347,_0x55f1f4=_0x345e50(this[_0x5dfc3d(0x7a)]);let _0x26d264=_0x55f1f4[_0x5dfc3d(0xc2)][_0x5dfc3d(0xaa)](_0x5dfc3d(0x8a))||[..._0x1654c6];if(_0x55f1f4[_0x5dfc3d(0x98)][_0x5dfc3d(0x117)](_0x5dfc3d(0x77))){if(!this[_0x5dfc3d(0x79)]){this[_0x5dfc3d(0x79)]=!0x0;const _0x5d0227=_0x55f1f4[_0x5dfc3d(0xc0)][_0x5dfc3d(0xaa)](_0x5dfc3d(0xf9));this[_0x5dfc3d(0x10e)][_0x5dfc3d(0xbf)][_0x5dfc3d(0xa3)](_0x5dfc3d(0x83))['to'](_0x5d0227,_0x5dfc3d(0x116));}}else _0x26d264=_0x26d264[_0x5dfc3d(0x95)](_0x3055a9=>_0x5dfc3d(0x114)!=_0x3055a9);return this[_0x5dfc3d(0xe3)][_0x5dfc3d(0xa6)](async()=>{const _0x425c77=_0x5dfc3d;this[_0x425c77(0x10e)][_0x425c77(0xbf)][_0x425c77(0x81)](_0x425c77(0xcc),{'id':_0x977b08[_0x425c77(0xd1)]+':'+_0x977b08['id'],'areActionsDisabled':_0x977b08[_0x425c77(0x119)],'showDiff':this[_0x425c77(0xf4)],'availableActions':_0x26d264}),this[_0x425c77(0xb3)](null);});}[_0xf9347(0xdd)](_0x1d3a3f,_0x121fff){const _0x9dc131=_0xf9347,_0x5df4d9=this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0xc4)][_0x9dc131(0xcb)];if(_0x5df4d9 instanceof _0x316173)return this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0xc4)][_0x9dc131(0xef)](_0x5df4d9),void this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0x81)](_0x9dc131(0xb4),{'id':_0x1d3a3f['id'],'capabilities':{'isWebSearchEnabled':_0x5df4d9[_0x9dc131(0xb1)][_0x9dc131(0xd8)]||_0x121fff[_0x9dc131(0xd8)],'isReasoningEnabled':_0x5df4d9[_0x9dc131(0xb1)][_0x9dc131(0xfe)]||_0x121fff[_0x9dc131(0xfe)]}});this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0x81)](_0x9dc131(0xb4),{'id':_0x1d3a3f['id'],'capabilities':_0x121fff});}[_0xf9347(0x85)](_0x583078){const _0x4465c7=_0xf9347,_0x23e2c8=this[_0x4465c7(0x10e)][_0x4465c7(0xbf)][_0x4465c7(0xc4)][_0x4465c7(0xce)](_0x124461=>_0x124461[_0x4465c7(0xae)]['id']==_0x583078['id']&&_0x124461 instanceof _0x316173);_0x23e2c8&&_0x23e2c8[_0x4465c7(0xb8)](_0x4465c7(0xff),_0x583078[_0x4465c7(0xff)]);}async[_0xf9347(0x100)](_0x326961){const _0x484e96=_0xf9347,_0x54826f=_0x326961[_0x484e96(0xb5)]||this[_0x484e96(0xe7)];return this[_0x484e96(0xe3)][_0x484e96(0xa6)](async _0x4a08e4=>{const _0x225e11=_0x484e96;await this[_0x225e11(0x10e)][_0x225e11(0xbf)][_0x225e11(0xd2)]({..._0x326961,'abortSignal':_0x4a08e4,'renderingStrategy':_0x54826f}),_0x326961[_0x225e11(0x8d)]&&this[_0x225e11(0xba)](_0x326961['id']);});}[_0xf9347(0x97)](_0x1061e4,_0xb99189){const _0x2888d2=_0xf9347;this[_0x2888d2(0x10e)][_0x2888d2(0xbf)][_0x2888d2(0x9f)](_0x1061e4,_0xb99189);}async[_0xf9347(0xca)](_0x4eaf3f){const _0x15cf01=_0xf9347,_0x462285=_0x4eaf3f[_0x15cf01(0xb5)]||this[_0x15cf01(0xe7)];return this[_0x15cf01(0xe3)][_0x15cf01(0xa6)](async _0x2c999c=>{const _0x220fc7=_0x15cf01;await this[_0x220fc7(0x10e)][_0x220fc7(0xbf)][_0x220fc7(0x88)]({..._0x4eaf3f,'abortSignal':_0x2c999c,'renderingStrategy':_0x462285}),_0x4eaf3f[_0x220fc7(0x8d)]&&this[_0x220fc7(0xba)](_0x4eaf3f['id']);});}[_0xf9347(0x84)](_0x32d625){const _0x17990c=_0xf9347;this[_0x17990c(0x10e)][_0x17990c(0xbf)][_0x17990c(0xbb)](_0x32d625);}[_0xf9347(0xba)](_0x1cd491){const _0xfac0b4=_0xf9347;this[_0xfac0b4(0x10e)][_0xfac0b4(0xbf)][_0xfac0b4(0xd7)](_0x1cd491);}[_0xf9347(0xa8)](_0x274842){const _0x23c8d6=_0xf9347;this[_0x23c8d6(0x10e)][_0x23c8d6(0xbf)][_0x23c8d6(0xe2)]()[_0x23c8d6(0x95)](_0x3c16ac=>_0x3c16ac[_0x23c8d6(0x82)](_0x274842))[_0x23c8d6(0xac)](_0x1d27c1=>this[_0x23c8d6(0x10e)][_0x23c8d6(0xbf)][_0x23c8d6(0xb7)](_0x1d27c1));}[_0xf9347(0xe8)](){const _0x1e9502=_0xf9347;this[_0x1e9502(0xb3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1e9502(0x10e)][_0x1e9502(0x9d)][_0x1e9502(0x10b)](!this[_0x1e9502(0x7a)][_0x1e9502(0xc2)][_0x1e9502(0xaa)](_0x1e9502(0xa5))),this[_0x1e9502(0xe5)]=!0x0,this[_0x1e9502(0x10e)][_0x1e9502(0xbf)][_0x1e9502(0xf1)]();}[_0xf9347(0x90)](_0x29e2f9){const _0x47985f=_0xf9347;this[_0x47985f(0xe3)][_0x47985f(0x7c)](),this[_0x47985f(0x10e)][_0x47985f(0xbf)][_0x47985f(0xe2)]()[_0x47985f(0x95)](_0x99910d=>_0x99910d[_0x47985f(0x82)](_0x29e2f9['id']))[_0x47985f(0xac)](_0x3fa925=>this[_0x47985f(0xba)](_0x3fa925)),this[_0x47985f(0xe5)]=!0x1,this[_0x47985f(0x10e)][_0x47985f(0xbf)][_0x47985f(0x93)]();}async[_0xf9347(0xe9)](){const _0x1fa928=_0xf9347;return this[_0x1fa928(0xe3)][_0x1fa928(0x78)][_0x1fa928(0xf2)](()=>{const _0x48ea4a=_0x1fa928;this[_0x48ea4a(0xe5)]=!0x1,this[_0x48ea4a(0x10e)][_0x48ea4a(0xbf)][_0x48ea4a(0x93)]();});}[_0xf9347(0xc9)](_0x3ed892,_0x3f0c73){const _0x349100=_0xf9347;this[_0x349100(0x10e)][_0x349100(0x9d)][_0x349100(0xc9)](_0x3ed892,_0x3f0c73);}[_0xf9347(0xc5)](_0x473ef2){const _0x2a6a8f=_0xf9347;this[_0x2a6a8f(0x10e)][_0x2a6a8f(0x9d)][_0x2a6a8f(0xc5)](_0x473ef2);}[_0xf9347(0xab)](_0x1dc0d7,_0x593f51){const _0x117530=_0xf9347;this[_0x117530(0x10e)][_0x117530(0x9d)][_0x117530(0xab)](_0x1dc0d7,_0x593f51);}[_0xf9347(0xdc)](_0x18f419){const _0x598cc9=_0xf9347;this[_0x598cc9(0x10e)][_0x598cc9(0x9d)][_0x598cc9(0xdc)](_0x18f419);}[_0xf9347(0xcd)](_0x28c33){const _0x3f3924=_0xf9347;this[_0x3f3924(0x10e)][_0x3f3924(0x9d)][_0x3f3924(0xcd)](_0x28c33);}[_0xf9347(0x86)](){const _0x20758f=_0xf9347;this[_0x20758f(0x10e)][_0x20758f(0x9d)][_0x20758f(0x86)]();}[_0xf9347(0xa9)](){const _0xe79641=_0xf9347;this[_0xe79641(0x10e)][_0xe79641(0x9d)][_0xe79641(0xa9)]();}[_0xf9347(0x9e)](_0x4d8747,_0xf3bb39,_0x28abd7){const _0x3c92eb=_0xf9347;this[_0x3c92eb(0x10e)][_0x3c92eb(0x9d)][_0x3c92eb(0x9e)](_0x4d8747,_0xf3bb39,_0x28abd7);}[_0xf9347(0xeb)](){const _0x596ca1=_0xf9347;this[_0x596ca1(0x10e)][_0x596ca1(0x9d)][_0x596ca1(0xeb)](),this[_0x596ca1(0x10e)][_0x596ca1(0x9d)][_0x596ca1(0xc6)](this[_0x596ca1(0x112)]());}[_0xf9347(0xa4)](_0x3839db){const _0x4831a2=_0xf9347;this[_0x4831a2(0x10e)][_0x4831a2(0x9d)][_0x4831a2(0xa4)](_0x3839db);}[_0xf9347(0xc3)](_0x1947cc){const _0x48cd3a=_0xf9347;this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0x107)](_0x1947cc[_0x48cd3a(0xd8)]),this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0xa7)](_0x1947cc[_0x48cd3a(0xfe)]),this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0xc6)](this[_0x48cd3a(0x112)](_0x1947cc));}[_0xf9347(0xf7)](_0x253892,_0x208fa0){const _0x4b9c39=_0xf9347;this[_0x4b9c39(0x10e)][_0x4b9c39(0x9d)][_0x4b9c39(0x10d)](_0x253892),_0x208fa0&&this[_0x4b9c39(0x10e)][_0x4b9c39(0x9d)][_0x4b9c39(0x10b)](!0x1);}[_0xf9347(0x9a)](_0x5ef5d8){const _0x5056b0=_0xf9347;this[_0x5056b0(0xe7)]=_0x5ef5d8;}[_0xf9347(0xd6)](_0x5bcaa9){const _0x294d1c=_0xf9347;this[_0x294d1c(0x10e)][_0x294d1c(0xbf)][_0x294d1c(0xd6)](_0x5bcaa9);}[_0xf9347(0xdf)](){const _0x458be8=_0xf9347;this[_0x458be8(0x8c)](_0x3c3c88(this[_0x458be8(0x7a)][_0x458be8(0x8f)],_0x458be8(0xde)));}[_0xf9347(0x8c)](_0x121881,_0x342bdb=!0x1){const _0x2c5789=_0xf9347;if(_0x342bdb&&!_0x2e8485()&&_0x121881[_0x2c5789(0xfa)])return this[_0x2c5789(0x10e)][_0x2c5789(0x87)][_0x2c5789(0xcf)]='',void this[_0x2c5789(0x106)](_0x121881);this[_0x2c5789(0x10e)][_0x2c5789(0x87)][_0x2c5789(0xcf)]=_0x121881;}[_0xf9347(0xb3)](_0x5bd635){const _0x21bdce=_0xf9347,_0x3b0da5=this[_0x21bdce(0xfb)](_0x5bd635);this[_0x21bdce(0x10e)][_0x21bdce(0xbf)][_0x21bdce(0xb3)](_0x3b0da5);}[_0xf9347(0x106)](_0x50dfa3){const _0x3453fe=_0xf9347;let _0x38b3d6=0x0;clearInterval(this[_0x3453fe(0xd9)]),this[_0x3453fe(0xd9)]=setInterval(()=>{const _0x3842d6=_0x3453fe;this[_0x3842d6(0x10e)][_0x3842d6(0x87)][_0x3842d6(0xcf)]=this[_0x3842d6(0x10e)][_0x3842d6(0x87)][_0x3842d6(0xcf)]+_0x50dfa3[_0x38b3d6],_0x38b3d6++,_0x38b3d6===_0x50dfa3[_0x3842d6(0xfa)]&&clearInterval(this[_0x3842d6(0xd9)]);},0x1e);}[_0xf9347(0xd0)](_0x5ef7c7){const _0x435944=_0xf9347;this[_0x435944(0x10e)][_0x435944(0x87)][_0x435944(0x110)]=_0x5ef7c7;}[_0xf9347(0xfb)](_0x23cce5){const _0x259d32=_0xf9347;return _0x23cce5?_0x23cce5[_0x259d32(0xd8)]&&_0x23cce5[_0x259d32(0xfe)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0x102)):_0x23cce5[_0x259d32(0xd8)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0xa1)):_0x23cce5[_0x259d32(0xfe)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0x11a)):_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0xee)):'';}[_0xf9347(0x112)](_0x3e9723){const _0x58554c=_0xf9347;return _0x3e9723?_0x3e9723[_0x58554c(0xd8)]&&_0x3e9723[_0x58554c(0xfe)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xd3)):_0x3e9723[_0x58554c(0xd8)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0x89)):_0x3e9723[_0x58554c(0xfe)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xb6)):_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xc1)):_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xc1));}[_0xf9347(0x10a)](_0x474f44,_0x216c09,_0x403aff,_0x29e08e){const _0x2da7d4=_0xf9347;this[_0x2da7d4(0x10e)][_0x2da7d4(0x10a)](_0x474f44,_0x216c09,_0x403aff,_0x29e08e);}[_0xf9347(0x7d)](_0x583fcd){const _0x3c5d53=_0xf9347;this[_0x3c5d53(0x10e)][_0x3c5d53(0x7d)](_0x583fcd);}[_0xf9347(0xd5)](){const _0x24370f=_0xf9347;this[_0x24370f(0x10e)][_0x24370f(0x9d)][_0x24370f(0xd5)]();}[_0xf9347(0xb2)](_0x1d36a2,_0x226d52){const _0x30c17e=_0xf9347;this[_0x30c17e(0x10e)][_0x30c17e(0xbf)][_0x30c17e(0x99)](_0x1d36a2,_0x226d52);}[_0xf9347(0xf1)](){const _0x1fd116=_0xf9347;this[_0x1fd116(0x10e)][_0x1fd116(0xbf)][_0x1fd116(0xf1)]();}[_0xf9347(0xed)](){const _0x5105d8=_0xf9347;this[_0x5105d8(0x10e)][_0x5105d8(0x9d)][_0x5105d8(0xbc)]=!0x0;}[_0xf9347(0x9c)](){const _0x4a70fb=_0xf9347;this[_0x4a70fb(0x10e)][_0x4a70fb(0x9d)][_0x4a70fb(0xbc)]=!0x1;}}
|
|
23
|
+
const _0x57d517=_0x5858;(function(_0x4dc0d8,_0x55df08){const _0x4195d1=_0x5858,_0x1e1fb6=_0x4dc0d8();while(!![]){try{const _0x2ee3e9=parseInt(_0x4195d1(0xf2))/0x1+-parseInt(_0x4195d1(0x11e))/0x2*(parseInt(_0x4195d1(0xb5))/0x3)+parseInt(_0x4195d1(0xa9))/0x4+parseInt(_0x4195d1(0x96))/0x5*(parseInt(_0x4195d1(0x91))/0x6)+-parseInt(_0x4195d1(0xb4))/0x7*(-parseInt(_0x4195d1(0xf8))/0x8)+parseInt(_0x4195d1(0xef))/0x9*(-parseInt(_0x4195d1(0xd5))/0xa)+-parseInt(_0x4195d1(0x107))/0xb*(parseInt(_0x4195d1(0xf7))/0xc);if(_0x2ee3e9===_0x55df08)break;else _0x1e1fb6['push'](_0x1e1fb6['shift']());}catch(_0x240fac){_0x1e1fb6['push'](_0x1e1fb6['shift']());}}}(_0x32c7,0xb4f6b));import{ContextPlugin as _0x2537a1}from'ckeditor5/src/core.js';function _0x32c7(){const _0x2e0164=['812210bSQNjW','showResizeButton','bind','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setContextItemLoading','addFeedInteractionHeader','then','toggleSuggestionDisplayMode','removeContextItem','enableModelSelector','stopInteraction','removeFeedInteraction','addContextItem','stopAutoScroll','isReasoningEnabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','has','setSelectedModel','4680452QfwlnI','userMessage','feedItemRenderingStrategy','availableModels','addTab','clearConversationContextUI','_view','interaction-header','queueEmptyPromise','isTrackChangesOn','delegate','7QFdgPz','3MbYVPH','ai-reply','markItemAsDone','quickActionData','disableControls','error-message','filter','children','updateFeedItemAIReplyContent','context','scrollFeedToSuggestion','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','focusPromptInput','closeSourceResourceBalloon','chatControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','scrollToSuggestion','_promiseQueue','isDisabled','values','TrackChanges','_animateConversationTitle','length','chatFeed','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_isTrackChangesCommandValueBound','</p>','startsWith','isDone','addItem','finishInteraction','10myLqfr','streaming','addFeedItemAIReply','view','chat','isPending','updateFeedItemAIReplySources','_getLoadingMessage','addFeedItemError','setInputPlaceholder','<p>','ai.chat.context.searchInputVisibleFrom','clearPendingContextUI','label','isOfficialPlugin','AI_CHAT_HEADING','updateWebSources','set','last','find','commands','setFeedItemRenderingStrategy','ai.availableReplyActions','addFeedItemUserMessage','conversation-start','_interactionPromiseResolver','6817707UstWbt','displayedPrompt','insertSuggestion','351219udJWtq','enableControls','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedItemAISuggestion','1644PZDZHU','3740048rKeLzX','resetConversationTitle','isModelAvailable','setLoadingMessage','showDiff','abort','isMaximized','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','forEach','_getInputPlaceholder','AI_CHAT_WELCOME_MESSAGE','updateSuggestionPartState','isVisible','119097VRWpir','requires','setReasoning','setModelList','markFeedItemAsDone','updateResourceState','pluginName','interactionId','setConversationTitle','startAutoScroll','addFeedItemStaticMessage','from','enqueue','isPremiumPlugin','populateSourceResourceBalloon','removeItem','startInteraction','value','plugins','ai-suggestion-reply','updateFeedItemAIReplySuggestionContent','updateReplyItem','setConversationContext','612650IDziYM','options','setIsMaximized','_titleAnimationInterval','get','areActionsDisabled','isBusy','clear','createConversation','setIsUploadInProgress','updateFeedInteractionHeader','setModel','AITabs','AIChatUI','chatHeader','locale','updateFeedItemAIReplySuggestionPartState','ai.chat.models.modelSelectorAlwaysVisible','isWebSearchEnabled','setAddContextOptions','updateCapabilities','config','user-message','toggleLoadingSkeleton','destroy','trackChanges','isLoading','disableModelSelector','48FMvEJm','resetMessageInput','remove','contextItems','setWebSearch'];_0x32c7=function(){return _0x2e0164;};return _0x32c7();}import{_isMotionReduced as _0x273781}from'ckeditor5/src/utils.js';import{AIChatView as _0x60ff05}from'./ui/aichatview.js';import{AITabs as _0x2959ad}from'../aitabs/aitabs.js';function _0x5858(_0x80ccc4,_0x4f085c){const _0x32c7db=_0x32c7();return _0x5858=function(_0x585891,_0x3a7cb3){_0x585891=_0x585891-0x7c;let _0x5f1819=_0x32c7db[_0x585891];return _0x5f1819;},_0x5858(_0x80ccc4,_0x4f085c);}import{getTranslation as _0x2f2911}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x158aee}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x35ba7a}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x48b59a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43a607}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x149006}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x416fd8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2537a1{static get[_0x57d517(0x108)](){return[_0x2959ad];}[_0x57d517(0xaf)];static get[_0x57d517(0x10d)](){const _0x174277=_0x57d517;return _0x174277(0x82);}static get[_0x57d517(0xe3)](){return!0x0;}static get[_0x57d517(0x114)](){return!0x0;}[_0x57d517(0xab)]=_0x57d517(0xd6);[_0x57d517(0xfc)]=!0x0;[_0x57d517(0xc7)];[_0x57d517(0xee)];[_0x57d517(0x121)]=void 0x0;[_0x57d517(0xcf)]=!0x1;constructor(_0x3e5f72){const _0xf73cd5=_0x57d517;super(_0x3e5f72);const _0x4f98aa=this[_0xf73cd5(0xbe)][_0xf73cd5(0x119)][_0xf73cd5(0x122)](_0xf73cd5(0x81));this[_0xf73cd5(0xe6)](_0xf73cd5(0x124),!0x1),this[_0xf73cd5(0xc7)]=new _0x48b59a(),this[_0xf73cd5(0xaf)]=new _0x60ff05(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],{'showResizeButton':_0x4f98aa[_0xf73cd5(0x97)],'contextResourcesSearchInputVisibleFrom':this[_0xf73cd5(0xbe)][_0xf73cd5(0x8a)][_0xf73cd5(0x122)](_0xf73cd5(0xe0))}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xb3)](..._0x43a607)['to'](this),this[_0xf73cd5(0xaf)]['on'](_0xf73cd5(0x9e),(_0x5d500d,{showDiff:_0xec250})=>{const _0x3248ea=_0xf73cd5;this[_0x3248ea(0xfc)]=_0xec250;}),_0x4f98aa[_0xf73cd5(0xd8)][_0xf73cd5(0xad)]({'id':_0xf73cd5(0xd9),'buttonLabel':_0x2f2911(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],_0xf73cd5(0xe4)),'buttonIcon':_0x158aee,'order':0x0,'content':this[_0xf73cd5(0xaf)]}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0x98)](_0xf73cd5(0x8f))['to'](this,_0xf73cd5(0x124),_0x551d81=>_0x551d81),this[_0xf73cd5(0xaf)][_0xf73cd5(0xcd)][_0xf73cd5(0x98)](_0xf73cd5(0xda))['to'](this,_0xf73cd5(0x124),_0x4261ab=>_0x4261ab),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0xde)](this[_0xf73cd5(0x103)]()),this[_0xf73cd5(0x98)](_0xf73cd5(0xfa))['to'](this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)],_0xf73cd5(0xfa));}[_0x57d517(0x8d)](){const _0xcb3b03=_0x57d517;super[_0xcb3b03(0x8d)](),this[_0xcb3b03(0x121)]&&clearInterval(this[_0xcb3b03(0x121)]);}[_0x57d517(0x7d)](_0x3ebe54){const _0x28806e=_0x57d517;this[_0x28806e(0xaf)][_0x28806e(0xcd)][_0x28806e(0x7c)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0xa0)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0x10a)](_0x3ebe54[_0x28806e(0xac)],!this[_0x28806e(0xbe)][_0x28806e(0x8a)][_0x28806e(0x122)](_0x28806e(0x86))),this[_0x28806e(0x111)]({'id':_0x28806e(0xed),'staticMessage':_0x2f2911(this[_0x28806e(0xbe)][_0x28806e(0x84)],_0x28806e(0x104))});}[_0x57d517(0x111)]({id:_0x43bb10,staticMessage:_0x2228e4}){const _0x7c5e06=_0x57d517;this[_0x7c5e06(0xaf)][_0x7c5e06(0xcd)][_0x7c5e06(0xd3)](_0x7c5e06(0xb6),{'id':_0x43bb10,'initialContent':_0x7c5e06(0xdf)+_0x2228e4+_0x7c5e06(0xd0)});}[_0x57d517(0xec)](_0x554242){const _0x1769a9=_0x57d517,_0x5c5979=_0x554242[_0x1769a9(0xb8)]?.[_0x1769a9(0xf0)]||_0x554242[_0x1769a9(0xaa)];this[_0x1769a9(0xaf)][_0x1769a9(0xcd)][_0x1769a9(0xd3)](_0x1769a9(0x8b),{'contextItems':Array[_0x1769a9(0x112)](_0x554242[_0x1769a9(0x94)][_0x1769a9(0xc9)]()),'initialContent':_0x1769a9(0xdf)+_0x5c5979+_0x1769a9(0xd0),'id':_0x554242['id']});}[_0x57d517(0xdd)]({errorMessage:_0x172ee1,id:_0x34f6}){const _0x5160b9=_0x57d517;this[_0x5160b9(0xaf)][_0x5160b9(0xcd)][_0x5160b9(0xd3)](_0x5160b9(0xba),{'initialContent':_0x5160b9(0xdf)+_0x172ee1+_0x5160b9(0xd0),'id':_0x34f6});}[_0x57d517(0xd7)](_0x24d12c){const _0x1238f6=_0x57d517;return this[_0x1238f6(0xc7)][_0x1238f6(0x113)](async()=>{const _0x10eaa4=_0x1238f6;this[_0x10eaa4(0xaf)][_0x10eaa4(0xcd)][_0x10eaa4(0xd3)](_0x10eaa4(0xb6),{'id':_0x24d12c[_0x10eaa4(0x10e)]+':'+_0x24d12c['id']}),this[_0x10eaa4(0xfb)](null);});}async[_0x57d517(0xf6)](_0xdf766b){const _0x560d22=_0x57d517,_0xc405b7=_0x149006(this[_0x560d22(0xbe)]);let _0x72c0ac=_0xc405b7[_0x560d22(0x8a)][_0x560d22(0x122)](_0x560d22(0xeb))||[..._0x416fd8];if(_0xc405b7[_0x560d22(0x119)][_0x560d22(0xa7)](_0x560d22(0xca))){if(!this[_0x560d22(0xcf)]){this[_0x560d22(0xcf)]=!0x0;const _0x187708=_0xc405b7[_0x560d22(0xe9)][_0x560d22(0x122)](_0x560d22(0x8e));this[_0x560d22(0xaf)][_0x560d22(0xcd)][_0x560d22(0x98)](_0x560d22(0xb2))['to'](_0x187708,_0x560d22(0x118));}}else _0x72c0ac=_0x72c0ac[_0x560d22(0xbb)](_0x48196c=>_0x560d22(0xf1)!=_0x48196c);return this[_0x560d22(0xc7)][_0x560d22(0x113)](async()=>{const _0x3e808a=_0x560d22;this[_0x3e808a(0xaf)][_0x3e808a(0xcd)][_0x3e808a(0xd3)](_0x3e808a(0x11a),{'id':_0xdf766b[_0x3e808a(0x10e)]+':'+_0xdf766b['id'],'areActionsDisabled':_0xdf766b[_0x3e808a(0x123)],'showDiff':this[_0x3e808a(0xfc)],'availableActions':_0x72c0ac}),this[_0x3e808a(0xfb)](null);});}[_0x57d517(0x9c)](_0x14bb26,_0x3bd6f5){const _0x57677f=_0x57d517,_0x19d6a0=this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0xe7)];if(_0x19d6a0 instanceof _0x35ba7a)return this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0x93)](_0x19d6a0),void this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':{'isWebSearchEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0x87)]||_0x3bd6f5[_0x57677f(0x87)],'isReasoningEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0xa5)]||_0x3bd6f5[_0x57677f(0xa5)]}});this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':_0x3bd6f5});}[_0x57d517(0x7f)](_0x4cee3d){const _0x2c3325=_0x57d517,_0x49b66d=this[_0x2c3325(0xaf)][_0x2c3325(0xcd)][_0x2c3325(0xbc)][_0x2c3325(0xe8)](_0x482de4=>_0x482de4[_0x2c3325(0x11f)]['id']==_0x4cee3d['id']&&_0x482de4 instanceof _0x35ba7a);_0x49b66d&&_0x49b66d[_0x2c3325(0xe6)](_0x2c3325(0x106),_0x4cee3d[_0x2c3325(0x106)]);}async[_0x57d517(0xbd)](_0x3af041){const _0x52f593=_0x57d517,_0x221982=_0x3af041[_0x52f593(0xff)]||this[_0x52f593(0xab)];return this[_0x52f593(0xc7)][_0x52f593(0x113)](async _0x2fc90a=>{const _0x1b11f7=_0x52f593;await this[_0x1b11f7(0xaf)][_0x1b11f7(0xcd)][_0x1b11f7(0x11c)]({..._0x3af041,'abortSignal':_0x2fc90a,'renderingStrategy':_0x221982}),_0x3af041[_0x1b11f7(0xd2)]&&this[_0x1b11f7(0x10b)](_0x3af041['id']);});}[_0x57d517(0xdb)](_0x12788d,_0x179105){const _0x115b95=_0x57d517;this[_0x115b95(0xaf)][_0x115b95(0xcd)][_0x115b95(0xe5)](_0x12788d,_0x179105);}async[_0x57d517(0x11b)](_0x4fff99){const _0x3da720=_0x57d517,_0x89d411=_0x4fff99[_0x3da720(0xff)]||this[_0x3da720(0xab)];return this[_0x3da720(0xc7)][_0x3da720(0x113)](async _0x58c20d=>{const _0x424041=_0x3da720;await this[_0x424041(0xaf)][_0x424041(0xcd)][_0x424041(0x99)]({..._0x4fff99,'abortSignal':_0x58c20d,'renderingStrategy':_0x89d411}),_0x4fff99[_0x424041(0xd2)]&&this[_0x424041(0x10b)](_0x4fff99['id']);});}[_0x57d517(0x85)](_0x399c98){const _0x2c0f7a=_0x57d517;this[_0x2c0f7a(0xaf)][_0x2c0f7a(0xcd)][_0x2c0f7a(0x105)](_0x399c98);}[_0x57d517(0x10b)](_0x555e86){const _0x17053e=_0x57d517;this[_0x17053e(0xaf)][_0x17053e(0xcd)][_0x17053e(0xb7)](_0x555e86);}[_0x57d517(0xa2)](_0x25bf84){const _0x14e527=_0x57d517;this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0xf4)]()[_0x14e527(0xbb)](_0xa64901=>_0xa64901[_0x14e527(0xd1)](_0x25bf84))[_0x14e527(0x102)](_0x72f709=>this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0x116)](_0x72f709));}[_0x57d517(0x117)](){const _0x4bc009=_0x57d517;this[_0x4bc009(0xfb)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x4bc009(0xaf)][_0x4bc009(0xc4)][_0x4bc009(0x90)](!this[_0x4bc009(0xbe)][_0x4bc009(0x8a)][_0x4bc009(0x122)](_0x4bc009(0x86))),this[_0x4bc009(0x124)]=!0x0,this[_0x4bc009(0xaf)][_0x4bc009(0xcd)][_0x4bc009(0x110)]();}[_0x57d517(0xa1)](_0xf16f2c){const _0x84f258=_0x57d517;this[_0x84f258(0xc7)][_0x84f258(0xfd)](),this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xf4)]()[_0x84f258(0xbb)](_0x1c9e71=>_0x1c9e71[_0x84f258(0xd1)](_0xf16f2c['id']))[_0x84f258(0x102)](_0x297c42=>this[_0x84f258(0x10b)](_0x297c42)),this[_0x84f258(0x124)]=!0x1,this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xa4)]();}async[_0x57d517(0xd4)](){const _0x56fb7c=_0x57d517;return this[_0x56fb7c(0xc7)][_0x56fb7c(0xb1)][_0x56fb7c(0x9d)](()=>{const _0x7f1e0c=_0x56fb7c;this[_0x7f1e0c(0x124)]=!0x1,this[_0x7f1e0c(0xaf)][_0x7f1e0c(0xcd)][_0x7f1e0c(0xa4)]();});}[_0x57d517(0xa3)](_0x3cabaf,_0x5a184f){const _0x44b38a=_0x57d517;this[_0x44b38a(0xaf)][_0x44b38a(0xc4)][_0x44b38a(0xa3)](_0x3cabaf,_0x5a184f);}[_0x57d517(0x9f)](_0x21ff59){const _0x5c47a9=_0x57d517;this[_0x5c47a9(0xaf)][_0x5c47a9(0xc4)][_0x5c47a9(0x9f)](_0x21ff59);}[_0x57d517(0x9b)](_0x4791f8,_0x5b0544){const _0x2d8174=_0x57d517;this[_0x2d8174(0xaf)][_0x2d8174(0xc4)][_0x2d8174(0x9b)](_0x4791f8,_0x5b0544);}[_0x57d517(0x7e)](_0x2cc9fe){const _0x225c86=_0x57d517;this[_0x225c86(0xaf)][_0x225c86(0xc4)][_0x225c86(0x7e)](_0x2cc9fe);}[_0x57d517(0x11d)](_0x4f8891){const _0x5629dd=_0x57d517;this[_0x5629dd(0xaf)][_0x5629dd(0xc4)][_0x5629dd(0x11d)](_0x4f8891);}[_0x57d517(0xe1)](){const _0x474528=_0x57d517;this[_0x474528(0xaf)][_0x474528(0xc4)][_0x474528(0xe1)]();}[_0x57d517(0xae)](){const _0x86edbe=_0x57d517;this[_0x86edbe(0xaf)][_0x86edbe(0xc4)][_0x86edbe(0xae)]();}[_0x57d517(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9){const _0x118aa8=_0x57d517;this[_0x118aa8(0xaf)][_0x118aa8(0xc4)][_0x118aa8(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9);}[_0x57d517(0x92)](){const _0x2bfe2f=_0x57d517;this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0x92)](),this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0xde)](this[_0x2bfe2f(0x103)]());}[_0x57d517(0x88)](_0x940a16){const _0x369a60=_0x57d517;this[_0x369a60(0xaf)][_0x369a60(0xc4)][_0x369a60(0x88)](_0x940a16);}[_0x57d517(0x89)](_0x30b03b){const _0x157270=_0x57d517;this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x95)](_0x30b03b[_0x157270(0x87)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x109)](_0x30b03b[_0x157270(0xa5)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0xde)](this[_0x157270(0x103)](_0x30b03b));}[_0x57d517(0xa8)](_0x32c596,_0x34a7de){const _0x5a0307=_0x57d517;this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x80)](_0x32c596),_0x34a7de&&this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x90)](!0x1);}[_0x57d517(0xea)](_0x4bdafc){const _0x878fb2=_0x57d517;this[_0x878fb2(0xab)]=_0x4bdafc;}[_0x57d517(0x8c)](_0x8d9e1f){const _0x3c2d54=_0x57d517;this[_0x3c2d54(0xaf)][_0x3c2d54(0xcd)][_0x3c2d54(0x8c)](_0x8d9e1f);}[_0x57d517(0xf9)](){const _0x269998=_0x57d517;this[_0x269998(0x10f)](_0x2f2911(this[_0x269998(0xbe)][_0x269998(0x84)],_0x269998(0xe4)));}[_0x57d517(0x10f)](_0x5c5797,_0x5f1893=!0x1){const _0x437349=_0x57d517;if(_0x5f1893&&!_0x273781()&&_0x5c5797[_0x437349(0xcc)])return this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]='',void this[_0x437349(0xcb)](_0x5c5797);this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]=_0x5c5797;}[_0x57d517(0xfb)](_0x267e41){const _0x4b2e60=_0x57d517,_0x21842d=this[_0x4b2e60(0xdc)](_0x267e41);this[_0x4b2e60(0xaf)][_0x4b2e60(0xcd)][_0x4b2e60(0xfb)](_0x21842d);}[_0x57d517(0xcb)](_0x500aaa){const _0x417251=_0x57d517;let _0x5951cd=0x0;clearInterval(this[_0x417251(0x121)]),this[_0x417251(0x121)]=setInterval(()=>{const _0x27c1da=_0x417251;this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]=this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]+_0x500aaa[_0x5951cd],_0x5951cd++,_0x5951cd===_0x500aaa[_0x27c1da(0xcc)]&&clearInterval(this[_0x27c1da(0x121)]);},0x1e);}[_0x57d517(0x120)](_0x4379d7){const _0x3e9b65=_0x57d517;this[_0x3e9b65(0xaf)][_0x3e9b65(0x83)][_0x3e9b65(0xfe)]=_0x4379d7;}[_0x57d517(0xdc)](_0x1dc7fd){const _0x29083e=_0x57d517;return _0x1dc7fd?_0x1dc7fd[_0x29083e(0x87)]&&_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xc1)):_0x1dc7fd[_0x29083e(0x87)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0x101)):_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xce)):_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xf5)):'';}[_0x57d517(0x103)](_0xf30f55){const _0x2780ae=_0x57d517;return _0xf30f55?_0xf30f55[_0x2780ae(0x87)]&&_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xa6)):_0xf30f55[_0x2780ae(0x87)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x9a)):_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x100)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5));}[_0x57d517(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660){const _0xaa097b=_0x57d517;this[_0xaa097b(0xaf)][_0xaa097b(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660);}[_0x57d517(0xc3)](_0x1c6432){const _0x404a00=_0x57d517;this[_0x404a00(0xaf)][_0x404a00(0xc3)](_0x1c6432);}[_0x57d517(0xc2)](){const _0x1c3abb=_0x57d517;this[_0x1c3abb(0xaf)][_0x1c3abb(0xc4)][_0x1c3abb(0xc2)]();}[_0x57d517(0xbf)](_0x30a14e,_0x29f8cd){const _0x45a0c8=_0x57d517;this[_0x45a0c8(0xaf)][_0x45a0c8(0xcd)][_0x45a0c8(0xc6)](_0x30a14e,_0x29f8cd);}[_0x57d517(0x110)](){const _0x1a68cf=_0x57d517;this[_0x1a68cf(0xaf)][_0x1a68cf(0xcd)][_0x1a68cf(0x110)]();}[_0x57d517(0xb9)](){const _0x119c59=_0x57d517;this[_0x119c59(0xaf)][_0x119c59(0xc4)][_0x119c59(0xc8)]=!0x0;}[_0x57d517(0xf3)](){const _0x236302=_0x57d517;this[_0x236302(0xaf)][_0x236302(0xc4)][_0x236302(0xc8)]=!0x1;}}
|
|
@@ -206,6 +206,9 @@ export type AIContextResourceState = AIContextResource & {
|
|
|
206
206
|
* providing the AI with more context for generating responses. The properties defined in this config are set
|
|
207
207
|
* in the `config.ai.chat.context` namespace.
|
|
208
208
|
*
|
|
209
|
+
* It also allows to change the minimal number of items in the context adding menu required to show the search input
|
|
210
|
+
* using `searchInputVisibleFrom` option.
|
|
211
|
+
*
|
|
209
212
|
* ```ts
|
|
210
213
|
* ClassicEditor
|
|
211
214
|
* .create( editorElement, {
|
|
@@ -222,7 +225,8 @@ export type AIContextResourceState = AIContextResource & {
|
|
|
222
225
|
* getResources: ( query?: string ) => fetchMyDocuments( query ),
|
|
223
226
|
* getData: ( id ) => fetchDocumentContent( id )
|
|
224
227
|
* }
|
|
225
|
-
* ]
|
|
228
|
+
* ],
|
|
229
|
+
* searchInputVisibleFrom: 5
|
|
226
230
|
* }
|
|
227
231
|
* }
|
|
228
232
|
* }
|
|
@@ -237,7 +241,9 @@ export type AIContextResourceState = AIContextResource & {
|
|
|
237
241
|
* The `sources` property is an array where each element represents a custom option in the context menu.
|
|
238
242
|
* When a user clicks on a custom source option, it will display a list of available resources returned by the
|
|
239
243
|
* `getResources` callback. If a resource doesn't have content provided in the `getResources` response, the content
|
|
240
|
-
* will be retrieved using the `getData` callback when the resource is selected.
|
|
244
|
+
* will be retrieved using the `getData` callback when the resource is selected. If the list of resources is long enough,
|
|
245
|
+
* the search input will be shown to filter the resources. The minimal number of resources required to show the search input
|
|
246
|
+
* can be configured using `searchInputVisibleFrom` option.
|
|
241
247
|
*
|
|
242
248
|
* See {@link module:ai/aichat/model/aichatcontext~AIContextProvider} and
|
|
243
249
|
* {@link module:ai/aichat/model/aichatcontext~AIContextResource}.
|
|
@@ -255,6 +261,8 @@ export type AIChatContextConfig = {
|
|
|
255
261
|
sources?: Array<AIContextProvider>;
|
|
256
262
|
/**
|
|
257
263
|
* The minimum number of resources to show the search input.
|
|
264
|
+
*
|
|
265
|
+
* @default 7
|
|
258
266
|
*/
|
|
259
267
|
searchInputVisibleFrom?: number;
|
|
260
268
|
};
|