@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.2
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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5eff(){const _0x38512c=['nextButtonView','get','4205536QCCQJH','updateContent','4442560dRKSKK','_createChatBalloonView','previousButtonView','ai.availableReplyActions','ck-ai-chat-balloon','bind','applySuggestion','pluginName','showRotator','close','showDiff','has','set','_chatBalloonView','locale','setState','5ShcDqk','isOfficialPlugin','plugins','isPremiumPlugin','AIChatBalloon','render','TrackChanges','toggleRotatorButtonsVisibility','aiChatBalloon','filter','once','1179615FUISsN','_restoreDefaultViewFocus','togglePartToolbarEnabled','2614913kNmdVR','rejectSuggestion','remove','AIBalloon','open','areActionsDisabled','view','focus','trackChanges','8643690zyQXnp','addMany','_toggleRotatorButtonsInDialogHeader','config','editor','dialogClosed','showNext','delegate','4915160VuysKb','requires','value','insertSuggestion','headerView','children','showPrevious','459764ioRYgF','Dialog','isTrackChangesOn','commands','beforeDialogClosed'];_0x5eff=function(){return _0x38512c;};return _0x5eff();}const _0x4ca625=_0x5f0f;(function(_0x5db650,_0x14f9bd){const _0x32affc=_0x5f0f,_0x2d1a39=_0x5db650();while(!![]){try{const _0x51a409=-parseInt(_0x32affc(0x153))/0x1*(parseInt(_0x32affc(0x13a))/0x2)+-parseInt(_0x32affc(0x15e))/0x3+-parseInt(_0x32affc(0x141))/0x4+parseInt(_0x32affc(0x172))/0x5+parseInt(_0x32affc(0x16a))/0x6+parseInt(_0x32affc(0x161))/0x7+parseInt(_0x32affc(0x143))/0x8;if(_0x51a409===_0x14f9bd)break;else _0x2d1a39['push'](_0x2d1a39['shift']());}catch(_0x4a62eb){_0x2d1a39['push'](_0x2d1a39['shift']());}}}(_0x5eff,0xb92ff));import{Plugin as _0x5e7b60}from'ckeditor5/src/core.js';import{AIBalloon as _0x3d013d}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0xbe219c}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x474b40}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1cdd27}from'../aicore/utils/eventnames.js';function _0x5f0f(_0x53f11b,_0x3260e6){const _0x5eff9f=_0x5eff();return _0x5f0f=function(_0x5f0fd4,_0x5f282f){_0x5f0fd4=_0x5f0fd4-0x137;let _0x2e5895=_0x5eff9f[_0x5f0fd4];return _0x2e5895;},_0x5f0f(_0x53f11b,_0x3260e6);}import{Dialog as _0x55dc1e}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x5e7b60{static get[_0x4ca625(0x173)](){return[_0x55dc1e,_0x3d013d];}static get[_0x4ca625(0x14a)](){const _0x4023c4=_0x4ca625;return _0x4023c4(0x157);}static get[_0x4ca625(0x154)](){return!0x0;}static get[_0x4ca625(0x156)](){return!0x0;}[_0x4ca625(0x150)];constructor(_0x2fa0f5){const _0x50d218=_0x4ca625;super(_0x2fa0f5),this[_0x50d218(0x14f)](_0x50d218(0x14d),!0x1);}[_0x4ca625(0x165)](_0x2ebd1d){const _0x37253e=_0x4ca625,_0x1d1cf8=this[_0x37253e(0x16e)];this[_0x37253e(0x150)]||(this[_0x37253e(0x150)]=this[_0x37253e(0x144)]()),_0x1d1cf8[_0x37253e(0x155)][_0x37253e(0x140)](_0x37253e(0x164))[_0x37253e(0x165)]({..._0x2ebd1d,'id':_0x37253e(0x15b),'class':_0x37253e(0x147),'mainView':this[_0x37253e(0x150)]}),this[_0x37253e(0x16c)](_0x2ebd1d[_0x37253e(0x14b)]),this[_0x37253e(0x150)][_0x37253e(0x160)](!_0x2ebd1d[_0x37253e(0x166)]),this[_0x37253e(0x15f)]();}[_0x4ca625(0x14c)](){const _0xfa85bf=_0x4ca625;this[_0xfa85bf(0x16e)][_0xfa85bf(0x155)][_0xfa85bf(0x140)](_0xfa85bf(0x164))[_0xfa85bf(0x14c)]();}[_0x4ca625(0x142)](_0x1c2488){const _0x1c1f20=_0x4ca625;return this[_0x1c1f20(0x150)]||(this[_0x1c1f20(0x150)]=this[_0x1c1f20(0x144)]()),this[_0x1c1f20(0x150)][_0x1c1f20(0x142)](_0x1c2488);}[_0x4ca625(0x152)](_0x494005){const _0x58f8f7=_0x4ca625;this[_0x58f8f7(0x150)]&&this[_0x58f8f7(0x150)][_0x58f8f7(0x152)](_0x494005);}[_0x4ca625(0x144)](){const _0xa2eb8f=_0x4ca625,_0x3326a0=this[_0xa2eb8f(0x16e)],_0x4c2d=_0x3326a0[_0xa2eb8f(0x155)][_0xa2eb8f(0x140)](_0xa2eb8f(0x164)),_0x361353=_0x3326a0[_0xa2eb8f(0x13d)][_0xa2eb8f(0x140)](_0xa2eb8f(0x169));let _0x431433=_0x3326a0[_0xa2eb8f(0x16d)][_0xa2eb8f(0x140)](_0xa2eb8f(0x146))||[..._0xbe219c];_0x3326a0[_0xa2eb8f(0x155)][_0xa2eb8f(0x14e)](_0xa2eb8f(0x159))||(_0x431433=_0x431433[_0xa2eb8f(0x15c)](_0x5176fe=>_0xa2eb8f(0x175)!=_0x5176fe));const _0x580fff=new _0x474b40(_0x3326a0[_0xa2eb8f(0x151)],{'availableActions':_0x431433,'showApplyButton':!0x0,'showSuggestButton':!!_0x361353});return _0x580fff[_0xa2eb8f(0x148)](_0xa2eb8f(0x14d))['to'](this),_0x580fff[_0xa2eb8f(0x171)](..._0x1cdd27)['to'](this),_0x580fff[_0xa2eb8f(0x171)](_0xa2eb8f(0x139),_0xa2eb8f(0x170))['to'](this),_0x4c2d[_0xa2eb8f(0x171)](_0xa2eb8f(0x16f))['to'](this),_0x580fff['on'](_0xa2eb8f(0x149),this[_0xa2eb8f(0x15f)][_0xa2eb8f(0x148)](this)),_0x580fff['on'](_0xa2eb8f(0x175),this[_0xa2eb8f(0x15f)][_0xa2eb8f(0x148)](this)),_0x580fff['on'](_0xa2eb8f(0x162),this[_0xa2eb8f(0x15f)][_0xa2eb8f(0x148)](this)),_0x361353&&_0x580fff[_0xa2eb8f(0x148)](_0xa2eb8f(0x13c))['to'](_0x361353,_0xa2eb8f(0x174)),_0x580fff[_0xa2eb8f(0x158)](),_0x580fff;}[_0x4ca625(0x16c)](_0xa0a287){const _0x24470f=_0x4ca625,_0xd77ee6=this[_0x24470f(0x16e)],_0x2fe9b0=_0xd77ee6[_0x24470f(0x155)][_0x24470f(0x140)](_0x24470f(0x13b))[_0x24470f(0x167)][_0x24470f(0x137)][_0x24470f(0x138)];this[_0x24470f(0x150)][_0x24470f(0x15a)](_0xa0a287),_0x2fe9b0[_0x24470f(0x14e)](this[_0x24470f(0x150)][_0x24470f(0x145)])||(_0x2fe9b0[_0x24470f(0x16b)]([this[_0x24470f(0x150)][_0x24470f(0x145)],this[_0x24470f(0x150)][_0x24470f(0x13f)]],0x0),_0xd77ee6[_0x24470f(0x155)][_0x24470f(0x140)](_0x24470f(0x164))[_0x24470f(0x15d)](_0x24470f(0x13e),()=>{const _0x517de3=_0x24470f;_0x2fe9b0[_0x517de3(0x163)](this[_0x517de3(0x150)][_0x517de3(0x145)]),_0x2fe9b0[_0x517de3(0x163)](this[_0x517de3(0x150)][_0x517de3(0x13f)]);}));}[_0x4ca625(0x15f)](){const _0x81f633=_0x4ca625;this[_0x81f633(0x150)][_0x81f633(0x168)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18ef55=_0x14d5;function _0x2879(){const _0x2dc7c8=['_getPresentableSiblingContentPartIndex','viewRangeToDom','scrollFeedToSuggestion','ai-chat-context-invalid-data','getContentParts','AI_CHAT_UNABLE_TO_START_CONVERSATION','_integrateEditor','79044cqgNbM','_getUserPresentableContentPartDocumentRange','isDisabled','addSelectionToChatContext','pending','toViewRange','baseVersion','setModel','focusPromptInput','find','uploadProgressChanged','executeCustomItemCallback','interactionFinished','interactionId','toggleLoadingSkeleton','getTransformedByOperation','path','done','toString','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','getChild','attachToDom','_getDocumentRangeForReplyChanges','setAddContextOptions','addFilesToContext','isOfficialPlugin','accepted','end','sendMessage','ai-chat-context-form-data-size-limits-exceeded','addCurrentDocumentToContext','uiId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','toolDataReceived','lastCreated','set','parse','clearPendingContextUI','getAll','_handleUIUserMessage','fetchConversations','toggleWebSearch','ai.models.defaultModelId','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-conversation-not-found','updateFeedItemAIReplySuggestionPartState','toggleReasoning','resources','setContextItemLoading','context','AITabs','redo','documentContextContent','init','data-id','startsWith','editors','push','getRoot','aiChatBalloon','detachFromDom','state','_updateRatings','isCurrentDocumentInContext','_aiChatBalloonShowDiff','_toggleReasoning','prepareLoadingMessage','ai-chat-missing-channel-id','getFirstRange','loadSourceResources','AI_BALLOON_HEADER_TITLE','handleRemovedConversation','abortPromptStream','has','add','ai-chat-context-file-too-many-pages','_batchToChanges','setState','options','length','addContextOptionsChanged','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','2737902sVTaGK','dislike','root','TrackChangesEditing','_aiConnector','ai-chat-url-upload-failed','replyCreated','getDocumentContext','new','ai-chat-controller-mouse-over','_aiChatBalloon','hasChanges','ai.chat.initialConversation','plugins','enableControls','getAttribute','upsertAIChatRating','Liked\x20response','mouseOverSuggestion','batch','clearLoadingMessage','resetWebSearchState','listenTo','getRanges','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','sourceId','content','changeGroups','startAutoScroll','undo','mapper','populateSourceResourceBalloon','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-conversation-init-failed','callback','createRange','AIConnector','load','resizeTabs','activateTab','2744052FyIBuj','get','resetReasoningState','selectedModel','applyOperation','interactionCreated','close','indexOf','startConversation','setConversationContext','static','setChangeGroupState','history','delegate','contextItemRemoved','main','AI_CHAT_INVALID_REQUEST','Disliked\x20response','capabilitiesUpdated','interactionDestroyed','ai-chat-invalid-request','_startConversationSafely','messageId','replyId','isPremiumPlugin','streaming','getOperations','setFeedItemRenderingStrategy','TrackChanges','AI_CHAT_ABORTED_MESSAGE','_aiChatModels','replyChangeGroupStateUpdated','updateFeedItemAIReplySuggestionContent','isCurrentDocumentInConversation','modelSelected','addSelectionToContext','lastInteraction','findIndex','closeSourceResourceBalloon','Showing\x20conversation\x20history...','updateConversationTitle','alignToTop','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','cloneNode','next','collaboration.channelId','handleUserInteraction','addFeedItemCustomElement','addFileToContext','removeContextItem','bind','ai-chat-file-upload-failed','config','resourceStateChanged','isStarted','ai-request-aborted','sendUserMessage','showDiff','_scrollToSuggestionRange','insertSuggestion','_bodyCollection','updateContent','error','showFakeVisualSelection','selection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','AI_CHAT_CONTEXT_FILE_TOO_LARGE','requires','commands','updateFeedItemAIReplySources','_handleStartConversation','rejectSuggestion','slice','contextItemLoadingEnded','rootName','reasoningStarted','conversationInitialized','updateCapabilities','_getLastCreatedConversationId','isLoading','resetMessageInput','loadConversation','contextSent','text','ai-chat-context-unsupported-file-type','Undo','like','startInteraction','getInteractionAndReplyById','stop','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','split','setConversationTitle','_insertSuggestion','type','_showConversationHistory','current-document','includes','addFeedInteractionHeader','799582fndbYN','from','afterInit','marker','_flushLastInteractionUI','map','addFeedItemUserMessage','fetchConversation','createdAt','activeConversation','AI_CHAT_UNTITLED_CONVERSATION','removeSelectionFromContext','domConverter','sources','createPositionFromPath','getInteraction','sourceResourcesLoaded','resizedTabs','_aiChatUi','createConversation','_logError','index','partIndex','removeFromContext','getChildren','addFeedItemAIReply','addOperation','contextItemAdded','getPath','resize','isModelAvailable','_setIsMaximized','ai-chat-context-unsupported-type','updateCurrentDocumentInContext','contextItem','remove','replyContentUpdated','forEach','rejected','reasoningFinished','isDocumentOperation','node','pluginName','_removeFromContext','webSearchFinished','unshift','_updateReplyContent','change','removeSelectionFromChatContext','isInContext','getGroupId','modification','addFeedItemError','showChangeInText','indexes','view','areActionsDisabled','setSelectedModel','dialogClosed','sourcePosition','delete','outdated','webSearchStarted','ai.chat.context','addDocumentToContext','chat','hideFakeVisualSelection','$graveyard','_applyOperationsAsSuggestions','_getAIChatInteractionAPI','ready','setIsMaximized','message','contextItems','_toggleWebSearch','AIChatUI','howMany','addFeedItemAISuggestion','4033824vqxLez','AIEditing','resetConversationTitle','_rejectSuggestion','editing','finishInteraction','ai.models','updateResourceState','clearConversationContextUI','_stopLastInteraction','toggleSuggestionDisplayMode','log','95590PuveiA','isUploadInProgress','applySuggestion','getConversation','addResourceToContext','maxOffset','version','addCurrentDocumentToChatContext','ai-chat-conversation-start-failed','1226440ldkAvy','_currentPreviewedChangeGroup','disableControls','ai-chat-resource-load-failed','range','showNext','getSelectionText','anchorId','model','_applySuggestion','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','open','mouseLeaveSuggestion','data','ai-chat-context-file-too-large','getReply','_aiEditing','ai-no-track-changes','ai-conversation-','updateFeedItemAIReplyContent','addFeedItemStaticMessage','AIChatController','replies','ai-chat-controller-no-active-conversation','start','resourceId','ai-chat-source-resources-load-failed','locale','nextSibling','setLoadingMessage','removeFeedInteraction','createPositionAt','currentReply','children','getChildAtOffset','_openBalloonFor','filter','setIsUploadInProgress','query','addUrlToContext','AIChatBalloon','DocumentCompare','sessionId','changes','resource','selectModel','source','getDiff','previous','revert','document','createReply','70jaQMdF','AI_CHAT_GENERIC_ERROR','removed','stopInteraction','getDocumentData','_createFromRanges','_registerToolDataCallback','destroy','getConversations','addContextItem','setFeedItemAIReplySuggestionPartActive','interactionStarted','uid'];_0x2879=function(){return _0x2dc7c8;};return _0x2879();}(function(_0x1f8fca,_0x389662){const _0x2602c7=_0x14d5,_0xed13d=_0x1f8fca();while(!![]){try{const _0xbcd9d8=parseInt(_0x2602c7(0x1e5))/0x1+parseInt(_0x2602c7(0x2c2))/0x2+-parseInt(_0x2602c7(0x25f))/0x3+-parseInt(_0x2602c7(0x310))/0x4+-parseInt(_0x2602c7(0x31c))/0x5+parseInt(_0x2602c7(0x237))/0x6+-parseInt(_0x2602c7(0x1d1))/0x7*(-parseInt(_0x2602c7(0x19b))/0x8);if(_0xbcd9d8===_0x389662)break;else _0xed13d['push'](_0xed13d['shift']());}catch(_0x28779b){_0xed13d['push'](_0xed13d['shift']());}}}(_0x2879,0x80678));function _0x14d5(_0x571aa9,_0x2d03db){const _0x2879bc=_0x2879();return _0x14d5=function(_0x14d5b1,_0x1c00d4){_0x14d5b1=_0x14d5b1-0x194;let _0x18fca9=_0x2879bc[_0x14d5b1];return _0x18fca9;},_0x14d5(_0x571aa9,_0x2d03db);}import{ContextPlugin as _0x256a68,Editor as _0x2d24c9}from'ckeditor5/src/core.js';import{BodyCollection as _0x348e94}from'ckeditor5/src/ui.js';import{CKEditorError as _0x28fffa,logError as _0x2a7396,scrollViewportToShowTarget as _0xd00776,uid as _0x1c2e87}from'ckeditor5/src/utils.js';import{AIConnector as _0x2c1613}from'../aicore/aiconnector.js';import{AITabs as _0x48cd0d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2a92ed}from'./model/aichatconversation.js';import{getTranslation as _0x38b507}from'../aicore/utils/common-translations.js';import{AIModels as _0x1e0f8b}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x408387}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x411323,DATA_ID_MODEL_ATTRIBUTE as _0x2cd343}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1e59cd,getOperationsFromReply as _0x5acd3e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x589116,getMinimalSelection as _0x2058a7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x76749,_DetachOperation as _0x42eab9}from'ckeditor5/src/engine.js';import{findOne as _0x4fa18a,getAttribute as _0x54996d,serialize as _0x4cddf6,Document as _0x539ee1,findByAttribute as _0x1bbf33}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x256a68{[_0x18ef55(0x1ad)];[_0x18ef55(0x23b)];[_0x18ef55(0x2d4)];[_0x18ef55(0x27d)];[_0x18ef55(0x241)];[_0x18ef55(0x231)]=new Map();[_0x18ef55(0x19c)]=null;[_0x18ef55(0x29b)];static get[_0x18ef55(0x2a2)](){return[_0x2c1613,_0x411323];}static get[_0x18ef55(0x2ec)](){const _0x4f9723=_0x18ef55;return _0x4f9723(0x1b2);}static get[_0x18ef55(0x1fe)](){return!0x0;}static get[_0x18ef55(0x277)](){return!0x0;}[_0x18ef55(0x21a)](){const _0x2ac36c=_0x18ef55;this[_0x2ac36c(0x29b)]=new _0x348e94(this[_0x2ac36c(0x216)][_0x2ac36c(0x1b8)]),this[_0x2ac36c(0x29b)][_0x2ac36c(0x1fa)](),this[_0x2ac36c(0x23b)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x25b)),this[_0x2ac36c(0x2d4)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x30d)),this[_0x2ac36c(0x1ad)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x311)),this[_0x2ac36c(0x27d)]=new _0x1e0f8b({'connector':this[_0x2ac36c(0x23b)],'config':this[_0x2ac36c(0x216)][_0x2ac36c(0x293)][_0x2ac36c(0x260)](_0x2ac36c(0x316)),'locale':this[_0x2ac36c(0x216)][_0x2ac36c(0x1b8)]});const _0x2e1f4a=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x217));this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x267),()=>{const _0x12c600=_0x2ac36c;this[_0x12c600(0x274)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x297),(_0x20c85b,_0x53d6c3)=>{const _0x5d3986=_0x2ac36c;this[_0x5d3986(0x20c)]({'userMessage':_0x53d6c3});}),this[_0x2ac36c(0x24d)](_0x2e1f4a,_0x2ac36c(0x2d3),(_0x269d71,_0xc41da1)=>{const _0x13b36b=_0x2ac36c;this[_0x13b36b(0x2e1)](_0xc41da1);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x25d),()=>{const _0x1fde59=_0x2ac36c;_0x2e1f4a[_0x1fde59(0x2df)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x22d),async()=>{const _0x2e7e74=_0x2ac36c;await this[_0x2e7e74(0x319)](),await this[_0x2e7e74(0x2c6)](),this[_0x2e7e74(0x2f2)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x302),()=>{const _0x4e8cc8=_0x2ac36c;this[_0x4e8cc8(0x199)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x28f),(_0x151ca7,_0x1f0499)=>{const _0x3ce319=_0x2ac36c;this[_0x3ce319(0x2cb)]?.[_0x3ce319(0x1fd)](Array[_0x3ce319(0x2c3)](_0x1f0499));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1c4),(_0x5553dd,_0x4b0a5c)=>{const _0x40a26d=_0x2ac36c;this[_0x40a26d(0x2cb)]?.[_0x40a26d(0x1c4)](_0x4b0a5c);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1f0),(_0x1bf19c,_0xa9d1c1)=>{const _0x2fad0b=_0x2ac36c;_0xa9d1c1[_0x2fad0b(0x259)](this[_0x2fad0b(0x216)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x196),(_0x3fe7c5,_0x7bf12a)=>{const _0x1e9064=_0x2ac36c;this[_0x1e9064(0x2cb)]?.[_0x1e9064(0x196)](_0x7bf12a[_0x1e9064(0x1cb)],_0x7bf12a[_0x1e9064(0x1c9)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x290),(_0x1987d3,_0x31d388)=>{const _0x2da628=_0x2ac36c;this[_0x2da628(0x2ed)](_0x31d388);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x22a),(_0x224d0c,_0xfda8fd)=>{const _0x3c5fbe=_0x2ac36c;this[_0x3c5fbe(0x2cb)]?.[_0x3c5fbe(0x22a)](_0xfda8fd[_0x3c5fbe(0x250)],_0xfda8fd[_0x3c5fbe(0x1c3)],_0xfda8fd[_0x3c5fbe(0x1dd)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x20e),()=>{const _0x11f0f1=_0x2ac36c;this[_0x11f0f1(0x30c)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x213),()=>{const _0x5e7344=_0x2ac36c;this[_0x5e7344(0x226)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1ca),(_0x209034,_0x50c6dc)=>{const _0x18444d=_0x2ac36c;this[_0x18444d(0x2cb)]?.[_0x18444d(0x1ec)](_0x50c6dc);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2b5),(_0x51a2e9,{replyId:_0x54ada0})=>{const _0x5cbd5c=_0x2ac36c;console[_0x5cbd5c(0x31b)](_0x5cbd5c(0x248),_0x54ada0);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x238),(_0xbf44a0,{replyId:_0x3f4c6b})=>{const _0x548297=_0x2ac36c;console[_0x548297(0x31b)](_0x548297(0x270),_0x3f4c6b);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x29a),(_0x59596d,_0x3db8a1)=>{const _0x22ae2b=_0x2ac36c;this[_0x22ae2b(0x2bc)](_0x3db8a1);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2f7),(_0x11ef6d,{replyId:_0x1ad650,partIndex:_0x35f6c8})=>{const _0x3eeb1e=_0x2ac36c;this[_0x3eeb1e(0x225)]=this[_0x3eeb1e(0x2d4)][_0x3eeb1e(0x298)],this[_0x3eeb1e(0x1c0)](_0x1ad650,_0x35f6c8);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x249),(_0x6efafb,{replyId:_0x28b625,partIndex:_0x124d49})=>{const _0x2a26d0=_0x2ac36c,_0x1cd0f4=this[_0x2a26d0(0x1fb)](_0x28b625,_0x124d49);_0x1cd0f4&&_0x2a26d0(0x305)!=_0x1cd0f4[_0x2a26d0(0x19f)][_0x2a26d0(0x239)][_0x2a26d0(0x2a9)]&&this[_0x2a26d0(0x1ad)][_0x2a26d0(0x29e)]([_0x1cd0f4[_0x2a26d0(0x19f)]],_0x2a26d0(0x240));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1a9),()=>{const _0x3e190a=_0x2ac36c;this[_0x3e190a(0x1ad)][_0x3e190a(0x304)](_0x3e190a(0x240));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x194),(_0x4f9819,_0x1e0016)=>{const _0x25bf2f=_0x2ac36c;this[_0x25bf2f(0x1ad)][_0x25bf2f(0x304)](_0x25bf2f(0x240)),this[_0x25bf2f(0x1a4)](_0x1e0016);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x31a),async(_0x16296b,{replyId:_0x2a4cc3,showDiff:_0x28a6db})=>{const _0x2f6336=_0x2ac36c,{reply:_0x380ff4}=this[_0x2f6336(0x2b7)](_0x2a4cc3),_0xde7c67=_0x380ff4[_0x2f6336(0x1e2)]({'showDiff':_0x28a6db});await this[_0x2f6336(0x2d4)][_0x2f6336(0x27f)]({'id':_0x380ff4['id'],'parts':_0xde7c67,'renderingStrategy':_0x2f6336(0x269)});}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2a6),(_0x59b72a,{replyId:_0x2c072b,partIndex:_0x4b6731})=>{const _0x58f983=_0x2ac36c;this[_0x58f983(0x313)]({'replyId':_0x2c072b,'partIndex':_0x4b6731}),this[_0x58f983(0x1ad)][_0x58f983(0x304)](_0x58f983(0x240));}),this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x22e)](_0x2ac36c(0x1c5))&&(this[_0x2ac36c(0x241)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x1c5)),this[_0x2ac36c(0x208)](_0x2ac36c(0x225),!0x1),this[_0x2ac36c(0x241)][_0x2ac36c(0x291)](_0x2ac36c(0x298))['to'](this,_0x2ac36c(0x225)),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x31a),()=>{const _0x8378fc=_0x2ac36c,{replyId:_0x2c62db,partIndex:_0xb63fa7}=this[_0x8378fc(0x19c)];this[_0x8378fc(0x225)]=!this[_0x8378fc(0x225)];const {reply:_0xb16380}=this[_0x8378fc(0x2b7)](_0x2c62db),_0x1f22d2=_0xb16380[_0x8378fc(0x1e2)]({'showDiff':this[_0x8378fc(0x225)],'groupIndex':_0xb63fa7});this[_0x8378fc(0x241)][_0x8378fc(0x29c)]({'part':_0x1f22d2[0x0],'renderingStrategy':_0x8378fc(0x269),'keepErrors':!0x0});}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x194),()=>{const _0x5cc11b=_0x2ac36c,{replyId:_0x2e8f85,partIndex:_0x247dfb}=this[_0x5cc11b(0x19c)];this[_0x5cc11b(0x1a4)]({'replyId':_0x2e8f85,'partIndex':_0x247dfb}),this[_0x5cc11b(0x241)][_0x5cc11b(0x232)](_0x5cc11b(0x1ff));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x29a),()=>{const _0x5452a4=_0x2ac36c,{replyId:_0x57a1ef,partIndex:_0x3282ea}=this[_0x5452a4(0x19c)];this[_0x5452a4(0x2bc)]({'replyId':_0x57a1ef,'partIndex':_0x3282ea}),this[_0x5452a4(0x241)][_0x5452a4(0x232)](_0x5452a4(0x1ff));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x2a6),()=>{const _0x28d6ef=_0x2ac36c,{replyId:_0xf9b62f,partIndex:_0x5d1226}=this[_0x28d6ef(0x19c)];this[_0x28d6ef(0x313)]({'replyId':_0xf9b62f,'partIndex':_0x5d1226}),this[_0x28d6ef(0x241)][_0x28d6ef(0x232)](_0x28d6ef(0x2e8));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x1a0),()=>{const _0x260b85=_0x2ac36c,{replyId:_0x32d919,partIndex:_0x1919ee}=this[_0x260b85(0x19c)],_0x45ece5=this[_0x260b85(0x1de)](_0x32d919,_0x1919ee,_0x260b85(0x28b));null!==_0x45ece5&&this[_0x260b85(0x1c0)](_0x32d919,_0x45ece5);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x1a7),()=>{const _0x3807d8=_0x2ac36c,{replyId:_0x1135dc,partIndex:_0x5afae3}=this[_0x3807d8(0x19c)],_0x484f71=this[_0x3807d8(0x1de)](_0x1135dc,_0x5afae3,_0x3807d8(0x1cd));null!==_0x484f71&&this[_0x3807d8(0x1c0)](_0x1135dc,_0x484f71);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x2fc),(_0x172360,{id:_0xd582ac})=>{const _0x3ed964=_0x2ac36c;if(_0x3ed964(0x220)!==_0xd582ac)return;const {replyId:_0x184707,partIndex:_0x119c59}=this[_0x3ed964(0x19c)];this[_0x3ed964(0x19c)]=null,this[_0x3ed964(0x2d4)][_0x3ed964(0x1db)]({'id':_0x184707,'index':_0x119c59,'isActive':!0x1});}));}async[_0x18ef55(0x2c4)](){const _0x3ea5b7=_0x18ef55;this[_0x3ea5b7(0x216)]instanceof _0x2d24c9?this[_0x3ea5b7(0x1e4)](this[_0x3ea5b7(0x216)]):this[_0x3ea5b7(0x24d)](this[_0x3ea5b7(0x216)][_0x3ea5b7(0x21d)],_0x3ea5b7(0x22f),(_0x3c81ec,_0x14a999)=>{const _0x275293=_0x3ea5b7;_0x14a999['on'](_0x275293(0x308),()=>{const _0x5a16ad=_0x275293;this[_0x5a16ad(0x1e4)](_0x14a999);});});const _0x4e1c78=this[_0x3ea5b7(0x216)][_0x3ea5b7(0x293)][_0x3ea5b7(0x260)](_0x3ea5b7(0x243));let _0x54193e=_0x4e1c78;if(_0x3ea5b7(0x207)!=_0x4e1c78||(_0x54193e=await this[_0x3ea5b7(0x2ad)](),_0x54193e))return _0x3ea5b7(0x23f)==_0x54193e?this[_0x3ea5b7(0x274)]():this[_0x3ea5b7(0x2b0)](_0x54193e);}async[_0x18ef55(0x1d8)](){const _0x3cf827=_0x18ef55;return await this[_0x3cf827(0x319)](),this[_0x3cf827(0x29b)][_0x3cf827(0x221)](),super[_0x3cf827(0x1d8)]();}[_0x18ef55(0x2bc)](_0x571a83){const _0x414007=_0x18ef55,_0x451e29=_0x408387(this[_0x414007(0x216)]);if(!_0x451e29[_0x414007(0x244)][_0x414007(0x22e)](_0x414007(0x27b)))throw new _0x28fffa(_0x414007(0x1ae),null);const _0x26e3e2=this[_0x414007(0x216)][_0x414007(0x244)][_0x414007(0x260)](_0x414007(0x1c6)),{reply:_0x57bfd8,interaction:_0x17901a}=this[_0x414007(0x2b7)](_0x571a83[_0x414007(0x276)]),_0x1ac8cc=this[_0x414007(0x1fb)](_0x571a83[_0x414007(0x276)],_0x571a83[_0x414007(0x2d8)]),_0x2c438f=void 0x0!==_0x571a83[_0x414007(0x2d8)]?[_0x57bfd8[_0x414007(0x252)][_0x571a83[_0x414007(0x2d8)]]]:_0x57bfd8[_0x414007(0x252)][_0x414007(0x1c1)](_0x5c05a0=>_0x414007(0x1e9)==_0x5c05a0[_0x414007(0x222)]),_0x5b4e7b=_0x2c438f[_0x414007(0x2c7)](_0x47bc53=>_0x57bfd8[_0x414007(0x252)][_0x414007(0x266)](_0x47bc53));if(!_0x1ac8cc||_0x414007(0x305)==_0x1ac8cc[_0x414007(0x19f)][_0x414007(0x239)][_0x414007(0x2a9)])return void _0x5b4e7b[_0x414007(0x2e7)](_0x3c8c15=>_0x57bfd8[_0x414007(0x26a)](_0x3c8c15,_0x414007(0x2ff)));_0x5b4e7b[_0x414007(0x2e7)](_0x593f33=>_0x57bfd8[_0x414007(0x26a)](_0x593f33,_0x414007(0x1ff)));const _0x2c19dc=_0x5acd3e({'editor':_0x451e29,'reply':_0x57bfd8,'interaction':_0x17901a,'groups':_0x2c438f,'transform':!0x0,'documentCompare':_0x26e3e2,'documentCompareOptions':{'anchor':_0x414007(0x26e),'markDeletions':!0x0}});let _0x11b91c;_0x1ac8cc&&this[_0x414007(0x299)](_0x1ac8cc[_0x414007(0x19f)]),_0x451e29[_0x414007(0x1a3)][_0x414007(0x2f1)](_0x1be441=>{const _0x165614=_0x414007;_0x11b91c=_0x1be441[_0x165614(0x24a)],_0x451e29[_0x165614(0x244)][_0x165614(0x260)](_0x165614(0x23a))[_0x165614(0x306)](_0x2c19dc),this[_0x165614(0x1ad)][_0x165614(0x304)](_0x165614(0x240));}),this[_0x414007(0x231)][_0x414007(0x208)](_0x11b91c,{'interactionId':_0x17901a['id'],'replyId':_0x57bfd8['id'],'indexes':_0x5b4e7b[_0x414007(0x2a7)]()}),this[_0x414007(0x223)](_0x57bfd8);}[_0x18ef55(0x1a4)](_0x15f928){const _0x44918e=_0x18ef55,_0x827d40=_0x408387(this[_0x44918e(0x216)]),_0x895692=this[_0x44918e(0x216)][_0x44918e(0x244)][_0x44918e(0x260)](_0x411323),{reply:_0x24f2b1,interaction:_0x46ecc2}=this[_0x44918e(0x2b7)](_0x15f928[_0x44918e(0x276)]),_0x560fcf=this[_0x44918e(0x1fb)](_0x15f928[_0x44918e(0x276)],_0x15f928[_0x44918e(0x2d8)]),_0x23da6f=void 0x0!==_0x15f928[_0x44918e(0x2d8)]?[_0x24f2b1[_0x44918e(0x252)][_0x15f928[_0x44918e(0x2d8)]]]:_0x24f2b1[_0x44918e(0x252)][_0x44918e(0x1c1)](_0x5ae47c=>_0x44918e(0x1e9)==_0x5ae47c[_0x44918e(0x222)]),_0x5a4868=_0x23da6f[_0x44918e(0x2c7)](_0x2d897d=>_0x24f2b1[_0x44918e(0x252)][_0x44918e(0x266)](_0x2d897d));if(!_0x560fcf||_0x44918e(0x305)==_0x560fcf[_0x44918e(0x19f)][_0x44918e(0x239)][_0x44918e(0x2a9)])return void _0x5a4868[_0x44918e(0x2e7)](_0x44b13a=>_0x24f2b1[_0x44918e(0x26a)](_0x44b13a,_0x44918e(0x2ff)));_0x5a4868[_0x44918e(0x2e7)](_0x3386f4=>_0x24f2b1[_0x44918e(0x26a)](_0x3386f4,_0x44918e(0x1ff)));const _0x4ff22d=_0x5acd3e({'editor':_0x827d40,'reply':_0x24f2b1,'interaction':_0x46ecc2,'groups':_0x23da6f,'transform':!0x0,'documentCompare':_0x895692,'documentCompareOptions':{'anchor':_0x44918e(0x26e),'markDeletions':!0x1}});let _0x51baa2;_0x560fcf&&this[_0x44918e(0x299)](_0x560fcf[_0x44918e(0x19f)]),_0x827d40[_0x44918e(0x1a3)][_0x44918e(0x2f1)](_0xfdb1ee=>{const _0x26f228=_0x44918e;_0x51baa2=_0xfdb1ee[_0x26f228(0x24a)];for(const _0x28c5cf of _0x4ff22d)_0x28c5cf[_0x26f228(0x1eb)]=_0x827d40[_0x26f228(0x1a3)][_0x26f228(0x1cf)][_0x26f228(0x198)],_0x1e59cd(_0x827d40,_0x28c5cf),_0xfdb1ee[_0x26f228(0x24a)][_0x26f228(0x2dc)](_0x28c5cf),_0x827d40[_0x26f228(0x1a3)][_0x26f228(0x263)](_0x28c5cf);}),this[_0x44918e(0x231)][_0x44918e(0x208)](_0x51baa2,{'interactionId':_0x46ecc2['id'],'replyId':_0x24f2b1['id'],'indexes':_0x5a4868[_0x44918e(0x2a7)]()}),this[_0x44918e(0x223)](_0x24f2b1);}[_0x18ef55(0x313)](_0x42b72e){const _0x417182=_0x18ef55,{reply:_0x23a142}=this[_0x417182(0x2b7)](_0x42b72e[_0x417182(0x276)]);_0x23a142[_0x417182(0x26a)](_0x42b72e[_0x417182(0x2d8)],_0x417182(0x2e8));}[_0x18ef55(0x1c0)](_0x70d1eb,_0xd63097){const _0x20962e=_0x18ef55;if(!this[_0x20962e(0x241)])return;const {reply:_0x543377}=this[_0x20962e(0x2b7)](_0x70d1eb),_0x3ec21d=_0x543377[_0x20962e(0x1e2)]({'showDiff':this[_0x20962e(0x225)]});let _0x203b02,_0x19a601;if(void 0x0!==_0xd63097?(_0x19a601=_0x3ec21d[_0x20962e(0x1ee)](_0x5ad099=>_0x5ad099[_0x20962e(0x2d7)]==_0xd63097),_0x203b02=_0x19a601?.[_0x20962e(0x2d7)]):(_0x19a601=_0x3ec21d[0x0],_0x203b02=_0x19a601[_0x20962e(0x2d7)]),this[_0x20962e(0x19c)]?.[_0x20962e(0x276)]==_0x70d1eb&&this[_0x20962e(0x19c)]?.[_0x20962e(0x2d8)]==_0x203b02)return;const _0x2bbf61=this[_0x20962e(0x1e6)](_0x70d1eb,_0x543377,_0x19a601);if(!_0x2bbf61)return void this[_0x20962e(0x241)][_0x20962e(0x265)]();this[_0x20962e(0x19c)]={'replyId':_0x70d1eb,'partIndex':_0x203b02},this[_0x20962e(0x299)](_0x2bbf61,!0x0);const _0x5dccad=this[_0x20962e(0x1de)](_0x70d1eb,_0x203b02,_0x20962e(0x28b));this[_0x20962e(0x241)][_0x20962e(0x29c)]({'part':_0x19a601,'renderingStrategy':_0x20962e(0x269)}),this[_0x20962e(0x241)][_0x20962e(0x1a8)]({'index':_0x203b02,'title':_0x38b507(this[_0x20962e(0x216)][_0x20962e(0x1b8)],_0x20962e(0x22b),(_0x203b02+0x1)[_0x20962e(0x1f7)]()),'showRotator':null!==_0x5dccad,'ranges':[_0x2bbf61],'areActionsDisabled':_0x543377[_0x20962e(0x2fa)]}),this[_0x20962e(0x241)][_0x20962e(0x232)](_0x20962e(0x1e9)),this[_0x20962e(0x2d4)][_0x20962e(0x1e0)](_0x70d1eb,_0x203b02),this[_0x20962e(0x2d4)][_0x20962e(0x1db)]({'id':_0x70d1eb,'index':_0x203b02,'isActive':!0x0});}[_0x18ef55(0x1de)](_0x2d1fd5,_0x116eec,_0x15c2bf){const _0x5f4196=_0x18ef55,{reply:_0x23e2fb}=this[_0x5f4196(0x2b7)](_0x2d1fd5),_0x58cdb2=_0x23e2fb[_0x5f4196(0x1e2)]({'showDiff':this[_0x5f4196(0x225)]});if(0x1==_0x58cdb2[_0x5f4196(0x234)])return null;const _0x5ddb81=_0x58cdb2[_0x5f4196(0x284)](_0x3206e0=>_0x3206e0[_0x5f4196(0x2d7)]==_0x116eec),_0x1ca8f5=_0x5f4196(0x28b)==_0x15c2bf?0x1:-0x1;let _0x2d7eee=_0x58cdb2['at']((_0x5ddb81+_0x1ca8f5)%_0x58cdb2[_0x5f4196(0x234)])[_0x5f4196(0x2d7)],_0x2ee1b6=_0x58cdb2[_0x2d7eee];for(;!this[_0x5f4196(0x1e6)](_0x2d1fd5,_0x23e2fb,_0x2ee1b6);){if(_0x2d7eee=_0x58cdb2['at']((_0x2d7eee+_0x1ca8f5)%_0x58cdb2[_0x5f4196(0x234)])[_0x5f4196(0x2d7)],_0x2d7eee===_0x5ddb81)return null;_0x2ee1b6=_0x58cdb2[_0x2d7eee];}return _0x2d7eee;}[_0x18ef55(0x1e6)](_0xcb5ef0,_0x56ebd8,_0x171103){const _0x1506ac=_0x18ef55,_0x4c90e0=_0x56ebd8[_0x1506ac(0x252)];if(!_0x171103[_0x1506ac(0x242)])return null;const _0x585ed2=_0x4c90e0[_0x1506ac(0x1ee)](_0x48d54e=>_0x48d54e[_0x1506ac(0x2d7)]==_0x171103[_0x1506ac(0x2d7)]);if(_0x1506ac(0x1e9)!==_0x585ed2?.[_0x1506ac(0x222)])return null;const _0x4b64d9=this[_0x1506ac(0x1fb)](_0xcb5ef0,_0x171103[_0x1506ac(0x2d7)]);if(!_0x4b64d9)return null;const {range:_0x2db0c6,currentIndex:_0x2b3caa}=_0x4b64d9;return _0x1506ac(0x305)==_0x2db0c6[_0x1506ac(0x239)][_0x1506ac(0x2a9)]?(_0x56ebd8[_0x1506ac(0x26a)](_0x2b3caa,_0x1506ac(0x2ff)),null):_0x4b64d9[_0x1506ac(0x19f)];}[_0x18ef55(0x1fb)](_0x3f035f,_0x193292){const _0x50586c=_0x18ef55,_0x427c83=_0x408387(this[_0x50586c(0x216)]),{reply:_0x1be22d,interaction:_0x19babd}=this[_0x50586c(0x2b7)](_0x3f035f),_0x427d38=_0x1be22d[_0x50586c(0x252)][_0x50586c(0x1c1)](_0xf33cb3=>_0x50586c(0x1e9)==_0xf33cb3[_0x50586c(0x222)]),_0x190436=_0x427d38[_0x50586c(0x2c7)](_0xb69754=>_0x1be22d[_0x50586c(0x252)][_0x50586c(0x266)](_0xb69754));void 0x0===_0x193292&&(_0x193292=_0x190436[0x0]);const _0x407fae=_0x190436[_0x50586c(0x266)](_0x193292);if(-0x1==_0x407fae)return null;const _0x408ca3=_0x427d38[_0x407fae],_0x563b25=new _0x539ee1([]),_0x40a677=new _0x539ee1([]);for(const _0x378925 of _0x408ca3[_0x50586c(0x1c8)])if(_0x50586c(0x1d3)!=_0x378925[_0x50586c(0x2bd)]&&_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x378925[_0x50586c(0x2eb)][_0x50586c(0x28a)](!0x0)),_0x50586c(0x23f)!=_0x378925[_0x50586c(0x2bd)]){const _0x52f504=_0x4fa18a(_0x2d76eb=>_0x54996d(_0x2d76eb,_0x50586c(0x21b))==_0x378925['id'],_0x1be22d[_0x50586c(0x219)],!0x0);_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x52f504[_0x50586c(0x28a)](!0x0));}if(0x0==_0x563b25[_0x50586c(0x1be)][_0x50586c(0x234)]){if(_0x408ca3[_0x50586c(0x1c8)][0x0][_0x50586c(0x1a2)]){const _0x25908c=_0x1bbf33(_0x50586c(0x21b),_0x408ca3[_0x50586c(0x1c8)][0x0][_0x50586c(0x1a2)],_0x1be22d[_0x50586c(0x219)]);_0x563b25[_0x50586c(0x1be)][_0x50586c(0x2ef)](_0x25908c[_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x2ef)](_0x25908c[_0x50586c(0x28a)](!0x0)),_0x25908c[_0x50586c(0x1b9)]&&(_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x25908c[_0x50586c(0x1b9)][_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x25908c[_0x50586c(0x1b9)][_0x50586c(0x28a)](!0x0)));}else{const _0x2a37d4=_0x1be22d[_0x50586c(0x219)][_0x50586c(0x1be)][0x0];if(!_0x2a37d4)return null;_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x2a37d4[_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x2a37d4[_0x50586c(0x28a)](!0x0));}}const _0x2baa93=_0x19babd[_0x50586c(0x23e)](),_0x493610=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x2baa93[_0x50586c(0x251)]),_0x4f5b41=_0x4cddf6(_0x563b25),_0x5af1f0=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x4f5b41),_0x599ae2=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x4f5b41),_0x4d1d02=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1bc)](_0x5af1f0,0x0),_0x3ac7b5=_0x4cddf6(_0x40a677),_0x3fcd1e={'anchor':_0x4d1d02,'markDeletions':!0x1},_0x52396d=_0x427c83[_0x50586c(0x244)][_0x50586c(0x260)](_0x411323)[_0x50586c(0x1cc)](_0x4f5b41,_0x3ac7b5,_0x3fcd1e)[_0x50586c(0x279)]();if(!_0x52396d[_0x50586c(0x234)])return null;_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2f1)](_0x26cd94=>{const _0x41f768=_0x50586c;for(const _0x5e5a8e of _0x52396d)if(_0x41f768(0x2e5)==_0x5e5a8e[_0x41f768(0x2bd)]){const _0xf0a3cc=_0x5e5a8e[_0x41f768(0x2fd)],_0x419f1f=_0x5e5a8e[_0x41f768(0x30e)],_0x489fe4=new _0x42eab9(_0xf0a3cc,_0x419f1f);_0x26cd94[_0x41f768(0x24a)][_0x41f768(0x2dc)](_0x489fe4),_0x427c83[_0x41f768(0x1a3)][_0x41f768(0x263)](_0x489fe4);}else _0x41f768(0x2c5)!==_0x5e5a8e[_0x41f768(0x2bd)]&&(_0x5e5a8e[_0x41f768(0x1eb)]=null,_0x5e5a8e[_0x41f768(0x2ea)]=!0x1,_0x26cd94[_0x41f768(0x24a)][_0x41f768(0x2dc)](_0x5e5a8e),_0x427c83[_0x41f768(0x1a3)][_0x41f768(0x263)](_0x5e5a8e));});const _0x35a3ce=_0x2058a7(_0x427c83,_0x52396d,_0x5af1f0);_0x589116(_0x427c83[_0x50586c(0x1a3)],_0x35a3ce);const _0x9023ca=_0x35a3ce[_0x50586c(0x229)]()[_0x50586c(0x1b5)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x362941=_0x35a3ce[_0x50586c(0x229)]()[_0x50586c(0x200)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x27ad07=[];let _0x15bcdf=_0x5af1f0,_0x1a1eaa=_0x599ae2;for(let _0x40f9b8=0x0;_0x40f9b8<_0x362941[_0x50586c(0x234)];_0x40f9b8++){const _0x109ed2=_0x15bcdf[_0x50586c(0x197)]-_0x362941[_0x40f9b8];_0x27ad07[_0x40f9b8]=_0x1a1eaa[_0x50586c(0x197)]-_0x109ed2,_0x15bcdf=_0x15bcdf[_0x50586c(0x1bf)](_0x362941[_0x40f9b8]),_0x1a1eaa=_0x1a1eaa[_0x50586c(0x1bf)](_0x27ad07[_0x40f9b8]);}const _0x27072d=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x25a)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x599ae2,_0x9023ca),_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x599ae2,_0x27ad07)),_0xd05134=_0x599ae2[_0x50586c(0x1f9)](0x0)[_0x50586c(0x246)](_0x2cd343),_0x212709=Array[_0x50586c(0x2c3)](_0x493610[_0x50586c(0x2da)]())[_0x50586c(0x1ee)](_0x7617de=>_0x7617de[_0x50586c(0x246)](_0x2cd343)==_0xd05134)[_0x50586c(0x2de)](),_0x5791e3=_0x27072d[_0x50586c(0x1b5)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x5000e7=_0x27072d[_0x50586c(0x200)][_0x50586c(0x1f5)][_0x50586c(0x2a7)]();_0x5791e3[0x0]=_0x212709[0x0]+_0x5791e3[0x0],_0x5000e7[0x0]=_0x212709[0x0]+_0x5000e7[0x0];let _0x224dfc=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x25a)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x21f)](),_0x5791e3),_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x21f)](),_0x5000e7));const _0xe34253=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x26b)][_0x50586c(0x279)](_0x2baa93[_0x50586c(0x198)]);for(const _0x401758 of _0xe34253)_0x224dfc=_0x76749[_0x50586c(0x1d6)](_0x224dfc[_0x50586c(0x1f4)](_0x401758));return{'range':_0x224dfc,'currentIndex':_0x193292};}[_0x18ef55(0x1e4)](_0x3a2db9){const _0x1f585=_0x18ef55;if(!_0x3a2db9[_0x1f585(0x244)][_0x1f585(0x22e)](_0x1f585(0x2b4)))return;const _0x3458e7=_0x3a2db9[_0x1f585(0x2a3)][_0x1f585(0x260)](_0x1f585(0x254)),_0x59222a=_0x3a2db9[_0x1f585(0x2a3)][_0x1f585(0x260)](_0x1f585(0x218));this[_0x1f585(0x24d)](_0x3458e7,_0x1f585(0x1ce),(_0x2c18b3,_0x28e29b,_0x16fb2a)=>{const _0x14f564=_0x1f585,_0x50a92a=this[_0x14f564(0x231)][_0x14f564(0x260)](_0x28e29b);if(!_0x50a92a)return;const _0x3ed7f7=this[_0x14f564(0x2cb)][_0x14f564(0x2d1)](_0x50a92a[_0x14f564(0x1f2)])[_0x14f564(0x1ac)](_0x50a92a[_0x14f564(0x276)]);_0x50a92a[_0x14f564(0x2f8)][_0x14f564(0x2e7)](_0x2d4724=>_0x3ed7f7[_0x14f564(0x26a)](_0x2d4724,_0x14f564(0x1e9))),this[_0x14f564(0x231)][_0x14f564(0x2fe)](_0x28e29b),this[_0x14f564(0x231)][_0x14f564(0x208)](_0x16fb2a,_0x50a92a);}),this[_0x1f585(0x24d)](_0x59222a,_0x1f585(0x1ce),(_0x264502,_0x4579a7,_0x401e21)=>{const _0x3150f7=_0x1f585,_0x557118=this[_0x3150f7(0x231)][_0x3150f7(0x260)](_0x4579a7);if(!_0x557118)return;const _0x42d412=this[_0x3150f7(0x2cb)][_0x3150f7(0x2d1)](_0x557118[_0x3150f7(0x1f2)])[_0x3150f7(0x1ac)](_0x557118[_0x3150f7(0x276)]);_0x557118[_0x3150f7(0x2f8)][_0x3150f7(0x2e7)](_0x565b17=>_0x42d412[_0x3150f7(0x26a)](_0x565b17,_0x3150f7(0x1ff))),this[_0x3150f7(0x231)][_0x3150f7(0x2fe)](_0x4579a7),this[_0x3150f7(0x231)][_0x3150f7(0x208)](_0x401e21,_0x557118);});}async[_0x18ef55(0x2b0)](_0x491482){const _0x2c95b2=_0x18ef55;this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x22e)](_0x2c95b2(0x1c5))&&this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x260)](_0x2c95b2(0x1c5))[_0x2c95b2(0x265)](),(this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x260)](_0x48cd0d)[_0x2c95b2(0x2f9)][_0x2c95b2(0x25e)](_0x2c95b2(0x303)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x27a)](_0x2c95b2(0x269)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x1f3)](!0x0),await this[_0x2c95b2(0x319)]());try{await this[_0x2c95b2(0x23b)][_0x2c95b2(0x2c9)](_0x491482)[_0x2c95b2(0x195)](),await this[_0x2c95b2(0x274)](_0x491482),this[_0x2c95b2(0x287)]('\x20'),await this[_0x2c95b2(0x2cb)][_0x2c95b2(0x25c)](_0x491482,this[_0x2c95b2(0x1ad)][_0x2c95b2(0x1c7)]),this[_0x2c95b2(0x2cb)][_0x2c95b2(0x280)]()&&this[_0x2c95b2(0x199)]();}catch(_0x185e0f){this[_0x2c95b2(0x2d4)][_0x2c95b2(0x2f6)]({'errorMessage':_0x38b507(this[_0x2c95b2(0x216)][_0x2c95b2(0x1b8)],_0x2c95b2(0x236)),'id':_0x491482}),this[_0x2c95b2(0x2d6)](new _0x28fffa(_0x2c95b2(0x211),this,{'error':_0x185e0f}));}finally{this[_0x2c95b2(0x2d4)][_0x2c95b2(0x253)](),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x27a)](_0x2c95b2(0x278)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x1f3)](!0x1);}}async[_0x18ef55(0x2ad)](){const _0xb78562=_0x18ef55,_0x1e1d84=this[_0xb78562(0x23b)][_0xb78562(0x20d)](this[_0xb78562(0x2f4)](),{'limit':0x1,'sortBy':_0xb78562(0x2ca)});try{const _0x1f5250=await _0x1e1d84[_0xb78562(0x1d9)]();return _0x1f5250[_0xb78562(0x234)]?_0x1f5250[0x0]['id']:_0xb78562(0x23f);}catch(_0x5622ac){return this[_0xb78562(0x2d4)][_0xb78562(0x2f6)]({'errorMessage':_0x38b507(this[_0xb78562(0x216)][_0xb78562(0x1b8)],_0xb78562(0x236)),'id':_0x1c2e87()}),this[_0xb78562(0x2d6)](new _0x28fffa(_0xb78562(0x258),this,{'error':_0x5622ac})),this[_0xb78562(0x2d4)][_0xb78562(0x1f3)](!0x1),this[_0xb78562(0x2d4)][_0xb78562(0x19d)](),null;}}[_0x18ef55(0x22c)](_0x5768c2){const _0x2c3ae5=_0x18ef55;this[_0x2c3ae5(0x2cb)]['id']===_0x5768c2&&this[_0x2c3ae5(0x274)]();}[_0x18ef55(0x199)](){const _0x496e08=_0x18ef55;this[_0x496e08(0x2cb)]?.[_0x496e08(0x203)](_0x38b507(this[_0x496e08(0x216)][_0x496e08(0x1b8)],_0x496e08(0x1a6)));}async[_0x18ef55(0x1e8)](){const _0x55fee1=_0x18ef55,_0x421aab=this[_0x55fee1(0x1ad)][_0x55fee1(0x1a1)]();this[_0x55fee1(0x2cb)]?.[_0x55fee1(0x282)](_0x421aab),this[_0x55fee1(0x199)]();}[_0x18ef55(0x2f2)](){const _0x53ff6f=_0x18ef55;this[_0x53ff6f(0x2cb)]?.[_0x53ff6f(0x2cd)]();}[_0x18ef55(0x1ed)](){const _0x4d45c9=_0x18ef55;this[_0x4d45c9(0x2d4)][_0x4d45c9(0x1ed)]();}async[_0x18ef55(0x267)](){const _0x3161ba=_0x18ef55;await this[_0x3161ba(0x274)]();}async[_0x18ef55(0x201)]({message:_0x2e291a,attributes:_0x26d75d}){const _0x5d20f5=_0x18ef55;await this[_0x5d20f5(0x20c)]({'userMessage':_0x2e291a,'attributes':_0x26d75d});}[_0x18ef55(0x2f4)](){const _0xaf28=_0x18ef55,_0x4d5f6a=this[_0xaf28(0x216)][_0xaf28(0x293)][_0xaf28(0x260)](_0xaf28(0x28c));if(!_0x4d5f6a)throw new _0x28fffa(_0xaf28(0x228),this);return _0x4d5f6a;}async[_0x18ef55(0x274)](_0x1af12e){const _0x4e167d=_0x18ef55;try{this[_0x4e167d(0x2d4)][_0x4e167d(0x245)](),await this[_0x4e167d(0x2a5)](_0x1af12e);}catch(_0xaac7e0){this[_0x4e167d(0x2d4)][_0x4e167d(0x2f6)]({'errorMessage':_0x38b507(this[_0x4e167d(0x216)][_0x4e167d(0x1b8)],_0x4e167d(0x1e3)),'id':_0x1af12e||_0x1c2e87()}),console[_0x4e167d(0x29d)](_0xaac7e0),this[_0x4e167d(0x2cb)]=void 0x0,this[_0x4e167d(0x2d4)][_0x4e167d(0x19d)]();}}async[_0x18ef55(0x2a5)](_0x56f534){const _0x1f1183=_0x18ef55;let _0x1e47c7;this[_0x1f1183(0x216)][_0x1f1183(0x244)][_0x1f1183(0x22e)](_0x1f1183(0x1c5))&&this[_0x1f1183(0x216)][_0x1f1183(0x244)][_0x1f1183(0x260)](_0x1f1183(0x1c5))[_0x1f1183(0x265)](),_0x56f534||!this[_0x1f1183(0x2cb)]?_0x1e47c7=this[_0x1f1183(0x216)][_0x1f1183(0x293)][_0x1f1183(0x260)](_0x1f1183(0x20f)):this[_0x1f1183(0x2d4)][_0x1f1183(0x2e0)]&&(_0x1e47c7=this[_0x1f1183(0x2cb)][_0x1f1183(0x262)]['id']),await this[_0x1f1183(0x319)]();const _0xe9cb4b=this[_0x1f1183(0x2f4)](),_0x657b4f=_0x56f534||_0x1c2e87();this[_0x1f1183(0x2cb)]=new _0x2a92ed({'connector':this[_0x1f1183(0x23b)],'chatModels':this[_0x1f1183(0x27d)],'selectedModelId':_0x1e47c7,'conversationId':_0x657b4f,'group':_0xe9cb4b,'getEditor':()=>_0x408387(this[_0x1f1183(0x216)]),'isFromHistory':!!_0x56f534}),this[_0x1f1183(0x2cb)][_0x1f1183(0x26c)](_0x1f1183(0x206),_0x1f1183(0x1dc))['to'](this),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2ab),(_0x460dc3,_0x4958f4)=>{const _0x2198c9=_0x1f1183;this[_0x2198c9(0x2d4)][_0x2198c9(0x2d5)](_0x4958f4),this[_0x2198c9(0x2d4)][_0x2198c9(0x2af)](),this[_0x2198c9(0x2d4)][_0x2198c9(0x20a)](),this[_0x2198c9(0x2d4)][_0x2198c9(0x318)](),_0x56f534||(this[_0x2198c9(0x2d4)][_0x2198c9(0x312)](),this[_0x2198c9(0x199)]());}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1ef),(_0xfb3e2,_0x33aea8)=>{const _0x3458e5=_0x1f1183;this[_0x3458e5(0x2d4)][_0x3458e5(0x1c2)](_0x33aea8[_0x3458e5(0x31d)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x264),(_0x4e2a55,_0x19e1d7)=>{const _0x5b898e=_0x1f1183;this[_0x5b898e(0x2d4)][_0x5b898e(0x2c8)](_0x19e1d7);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x300),()=>{const _0x478db4=_0x1f1183,_0x4989dd=this[_0x478db4(0x2d4)][_0x478db4(0x227)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x478db4(0x2d4)][_0x478db4(0x1ba)](_0x4989dd);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2aa),()=>{const _0x10ee66=_0x1f1183,_0x31098b=this[_0x10ee66(0x2d4)][_0x10ee66(0x227)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x10ee66(0x2d4)][_0x10ee66(0x1ba)](_0x31098b);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2ee),(_0x4b8fbd,_0x4af394)=>{const _0x13a551=_0x1f1183;this[_0x13a551(0x2d4)][_0x13a551(0x2c1)](_0x4af394,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2e9),(_0x560369,_0x48e5ee)=>{const _0x3331c2=_0x1f1183;this[_0x3331c2(0x2d4)][_0x3331c2(0x2c1)](_0x48e5ee,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1dc),()=>{const _0xf7fadc=_0x1f1183;this[_0xf7fadc(0x2d4)][_0xf7fadc(0x2b6)]();}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1f1),async()=>{const _0xe839c4=_0x1f1183;await this[_0xe839c4(0x2d4)][_0xe839c4(0x315)]();}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x272),(_0x2a7b10,_0x4a37fa)=>{const _0x4c3670=_0x1f1183;this[_0x4c3670(0x2d4)][_0x4c3670(0x1bb)](_0x4a37fa['id']);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2bb),(_0x3cc603,_0x2a02f1,_0x2330db)=>{const _0x5b03c1=_0x1f1183;this[_0x5b03c1(0x287)](_0x2a02f1,_0x2330db);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x23d),(_0x49c25b,_0x28c783)=>{const _0x24cc09=_0x1f1183;_0x24cc09(0x2b2)===_0x28c783[_0x24cc09(0x2bd)]?this[_0x24cc09(0x2d4)][_0x24cc09(0x2db)](_0x28c783):this[_0x24cc09(0x2d4)][_0x24cc09(0x30f)](_0x28c783);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2e6),async(_0x12b46a,_0x678492)=>{const _0x1650de=_0x1f1183;await this[_0x1650de(0x2f0)]({'reply':_0x678492});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x27e),(_0x41af17,{reply:_0x513126,index:_0xde19c4,state:_0x3287e6})=>{const _0x11a555=_0x1f1183;this[_0x11a555(0x2d4)][_0x11a555(0x212)]({'id':_0x513126['id'],'index':_0xde19c4,'state':_0x3287e6}),this[_0x11a555(0x19c)]?.[_0x11a555(0x276)][_0x11a555(0x2c0)](_0x513126['id'])&&this[_0x11a555(0x19c)]?.[_0x11a555(0x2d8)]==_0xde19c4&&this[_0x11a555(0x241)]?.[_0x11a555(0x232)](_0x3287e6);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2dd),(_0x1830a4,_0x44e213)=>{const _0x4d4e44=_0x1f1183;if(this[_0x4d4e44(0x2d4)][_0x4d4e44(0x1da)](_0x44e213[_0x4d4e44(0x2e4)],_0x44e213[_0x4d4e44(0x2ae)]),_0x4d4e44(0x29f)===_0x44e213[_0x4d4e44(0x2e4)][_0x4d4e44(0x2bd)]){const _0x2f0ce=[..._0x408387(this[_0x4d4e44(0x216)])[_0x4d4e44(0x1a3)][_0x4d4e44(0x1cf)][_0x4d4e44(0x29f)][_0x4d4e44(0x24e)]()];this[_0x4d4e44(0x1ad)][_0x4d4e44(0x29e)](_0x2f0ce,_0x4d4e44(0x1af)+this[_0x4d4e44(0x2cb)]?.['id']);}}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x26d),(_0x5e71a8,_0x1191f4)=>{const _0x54b4c4=_0x1f1183;this[_0x54b4c4(0x2d4)][_0x54b4c4(0x290)](_0x1191f4[_0x54b4c4(0x204)]),_0x54b4c4(0x2bf)==_0x1191f4[_0x54b4c4(0x204)]&&this[_0x54b4c4(0x2f2)](),_0x54b4c4(0x29f)===_0x1191f4[_0x54b4c4(0x2bd)]&&this[_0x54b4c4(0x1ad)][_0x54b4c4(0x304)](_0x54b4c4(0x1af)+this[_0x54b4c4(0x2cb)]?.['id']);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2a8),(_0x5c7b64,_0x19c989)=>{const _0x12b4c5=_0x1f1183;this[_0x12b4c5(0x2d4)][_0x12b4c5(0x215)](_0x19c989[_0x12b4c5(0x2e4)][_0x12b4c5(0x204)],_0x19c989[_0x12b4c5(0x2ae)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2b1),(_0x231dc5,_0xf6a6c8)=>{const _0x56660d=_0x1f1183;this[_0x56660d(0x2d4)][_0x56660d(0x268)](_0xf6a6c8[_0x56660d(0x30b)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x235),(_0x1641d4,_0x26717b)=>{const _0x956f8a=_0x1f1183;this[_0x956f8a(0x2d4)][_0x956f8a(0x1fc)](_0x26717b[_0x956f8a(0x233)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2d2),(_0x3cc2f5,_0x44b9d4)=>{const _0x4c2f5f=_0x1f1183;this[_0x4c2f5f(0x2d4)][_0x4c2f5f(0x256)](_0x44b9d4[_0x4c2f5f(0x250)],_0x44b9d4[_0x4c2f5f(0x1cb)],_0x44b9d4[_0x4c2f5f(0x214)],_0x44b9d4[_0x4c2f5f(0x1dd)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x294),(_0x15f8fb,_0x20e5c7)=>{const _0x82ee86=_0x1f1183;this[_0x82ee86(0x2d4)][_0x82ee86(0x317)](_0x20e5c7[_0x82ee86(0x250)],_0x20e5c7[_0x82ee86(0x1b6)],_0x20e5c7[_0x82ee86(0x2f3)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x271),(_0x59a1b6,_0x44373c)=>{const _0x1fd87f=_0x1f1183;this[_0x1fd87f(0x2d4)][_0x1fd87f(0x2ac)](_0x44373c);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x281),async(_0x56b681,_0x45c871)=>{const _0x29c6aa=_0x1f1183,_0x4c9dbd=(await this[_0x29c6aa(0x27d)][_0x29c6aa(0x20b)]())[_0x29c6aa(0x1ee)](_0x916e52=>_0x916e52['id']===_0x45c871[_0x29c6aa(0x262)]?.['id'])||null;this[_0x29c6aa(0x2d4)][_0x29c6aa(0x2fb)](_0x4c9dbd,_0x45c871[_0x29c6aa(0x1e7)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x29d),(_0x939e4,{error:_0x23aa73,interactionId:_0x3fd0d1,fileName:_0xc06372,url:_0x58f27b,sourceId:_0x1f9610,sourceLabel:_0x421ee2})=>{const _0x285a36=_0x1f1183,_0x3ac77c=_0x3fd0d1?_0x3fd0d1+':'+_0x1c2e87():_0x1c2e87();_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x296))?this[_0x285a36(0x2d4)][_0x285a36(0x1b1)]({'staticMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x27c)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x258))||_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x19a))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1e3)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x292))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x205),_0xc06372),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x23c))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2a0),_0x58f27b),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1e1))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x210)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x2e2))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1a5)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1b7))?(_0x1f9610&&this[_0x285a36(0x2d4)][_0x285a36(0x285)](_0x1f9610),this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x24f),_0x421ee2||_0x285a36(0x1cb)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x19e))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x257)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x273))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x26f)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x2b3))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1f8)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1ab))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2a1)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x230))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x289)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x202))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2b9)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1d2)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73));}),await this[_0x1f1183(0x2cb)][_0x1f1183(0x21a)](this[_0x1f1183(0x216)][_0x1f1183(0x293)][_0x1f1183(0x260)](_0x1f1183(0x301))),_0x56f534||await this[_0x1f1183(0x2cb)][_0x1f1183(0x1b5)]();}async[_0x18ef55(0x20c)]({userMessage:_0x1e0e84,attributes:_0x1fcc15}){const _0x1e8148=_0x18ef55;if(!this[_0x1e8148(0x2cb)])throw new _0x28fffa(_0x1e8148(0x1b4));if(this[_0x1e8148(0x2cb)][_0x1e8148(0x224)]()){const _0x3becd7=await this[_0x1e8148(0x1ad)][_0x1e8148(0x1d5)]();await this[_0x1e8148(0x2cb)][_0x1e8148(0x2e3)](_0x3becd7);}this[_0x1e8148(0x2cb)]['id']&&this[_0x1e8148(0x2cb)][_0x1e8148(0x295)]&&await this[_0x1e8148(0x2cb)][_0x1e8148(0x28d)]({'userMessage':_0x1e0e84,'attributes':_0x1fcc15});}[_0x18ef55(0x2be)](){const _0x2b167c=_0x18ef55;console[_0x2b167c(0x31b)](_0x2b167c(0x286));}[_0x18ef55(0x2e1)](_0x30f677){const _0x359eae=_0x18ef55;this[_0x359eae(0x2d4)][_0x359eae(0x309)](_0x30f677);}[_0x18ef55(0x2d6)](_0x17507e){const _0xa8797c=_0x18ef55;_0x2a7396(_0x17507e[_0xa8797c(0x30a)]);}[_0x18ef55(0x2ed)](_0x106108){const _0x3c5c15=_0x18ef55;this[_0x3c5c15(0x2cb)]?.[_0x3c5c15(0x2d9)](_0x106108);}[_0x18ef55(0x30c)](){const _0x5608b1=_0x18ef55;this[_0x5608b1(0x2cb)]?.[_0x5608b1(0x20e)]();}[_0x18ef55(0x226)](){const _0x1474ac=_0x18ef55;this[_0x1474ac(0x2cb)]?.[_0x1474ac(0x213)]();}[_0x18ef55(0x2b7)](_0x23c83d){const _0xd8fcfb=_0x18ef55,[_0x233493,_0x5bc5c1]=_0x23c83d[_0xd8fcfb(0x2ba)](':'),_0x2243c4=this[_0xd8fcfb(0x2cb)][_0xd8fcfb(0x2d1)](_0x233493),_0x51a447=_0x2243c4[_0xd8fcfb(0x1ac)](_0x5bc5c1);return{'interaction':_0x2243c4,'reply':_0x51a447};}[_0x18ef55(0x299)](_0x4f3fce,_0x547178=!0x1){const _0x1efedf=_0x18ef55,_0xd26eee=_0x408387(this[_0x1efedf(0x216)]),_0x5d8343={'target':_0xd26eee[_0x1efedf(0x314)][_0x1efedf(0x2f9)][_0x1efedf(0x2ce)][_0x1efedf(0x1df)](_0xd26eee[_0x1efedf(0x314)][_0x1efedf(0x255)][_0x1efedf(0x1ea)](_0x4f3fce)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x547178};_0x547178&&(_0x5d8343[_0x1efedf(0x288)]=!0x0),_0xd00776(_0x5d8343);}[_0x18ef55(0x287)](_0x13eef5,_0x1d2a75=!0x1){const _0x3e6564=_0x18ef55;this[_0x3e6564(0x2d4)][_0x3e6564(0x2bb)](_0x13eef5||_0x38b507(this[_0x3e6564(0x216)][_0x3e6564(0x1b8)],_0x3e6564(0x2cc)),_0x1d2a75);}async[_0x18ef55(0x2f0)]({reply:_0x56402d,renderingStrategy:_0xaf429a}){const _0xa02281=_0x18ef55,{id:_0x45c395,interactionId:_0xa66cff,isDone:_0x42a874,type:_0x5046aa,parsedContent:_0x1ae65f}=_0x56402d,_0x423453=_0xa66cff+':'+_0x45c395;if(_0xa02281(0x2f5)===_0x5046aa){const _0x203bed=_0x56402d[_0xa02281(0x1e2)]({'showDiff':this[_0xa02281(0x2d4)][_0xa02281(0x298)]});await this[_0xa02281(0x2d4)][_0xa02281(0x27f)]({'id':_0x423453,'parts':_0x203bed,'renderingStrategy':_0xaf429a,'isDone':_0x42a874});}else _0xa02281(0x2b2)===_0x5046aa&&await this[_0xa02281(0x2d4)][_0xa02281(0x1b0)]({'id':_0x423453,'parsedContent':_0x1ae65f,'renderingStrategy':_0xaf429a,'isDone':_0x42a874});_0x42a874&&_0x56402d[_0xa02281(0x2cf)][_0xa02281(0x234)]>0x0&&this[_0xa02281(0x2d4)][_0xa02281(0x2a4)](_0x423453,_0x56402d[_0xa02281(0x2cf)]);}async[_0x18ef55(0x319)](){const _0x5f2eb4=_0x18ef55,_0x434b9b=this[_0x5f2eb4(0x2cb)]?.[_0x5f2eb4(0x283)];_0x434b9b&&(_0x434b9b[_0x5f2eb4(0x2b8)](),this[_0x5f2eb4(0x2d4)][_0x5f2eb4(0x1d4)](_0x434b9b));}async[_0x18ef55(0x2c6)](){const _0x2625ae=_0x18ef55,_0x37183b=this[_0x2625ae(0x2cb)]?.[_0x2625ae(0x283)];if(_0x37183b){for await(const _0x575077 of _0x37183b[_0x2625ae(0x1b3)])await this[_0x2625ae(0x2f0)]({'reply':_0x575077,'renderingStrategy':_0x2625ae(0x269)});}}[_0x18ef55(0x223)](_0x38517c){const _0x499323=_0x18ef55,_0x168979={'positiveCount':_0x38517c[_0x499323(0x252)][_0x499323(0x1c1)](_0x8ed7ef=>_0x499323(0x1ff)===_0x8ed7ef[_0x499323(0x222)])[_0x499323(0x234)],'totalCount':_0x38517c[_0x499323(0x252)][_0x499323(0x234)],'modificationId':_0x38517c['id']},_0x53ec9a=this[_0x499323(0x2cb)][_0x499323(0x2d1)](_0x38517c[_0x499323(0x1f2)])[_0x499323(0x275)];_0x53ec9a&&this[_0x499323(0x23b)][_0x499323(0x247)](this[_0x499323(0x2cb)]['id'],_0x53ec9a,_0x168979);}[_0x18ef55(0x1d7)](_0x4302a3){const _0x476d82=_0x18ef55;let _0x5af208=null,_0x25bb3e=null;this['on'](_0x476d82(0x206),(_0x3ef48e,_0x286fe8,_0x37b8b6)=>{const _0xe8996b=_0x476d82;_0x37b8b6['id']!==_0x5af208&&(_0x5af208=_0x37b8b6['id'],_0x25bb3e=this[_0xe8996b(0x307)](_0x37b8b6)),_0x4302a3(_0x286fe8,_0x25bb3e);});}[_0x18ef55(0x307)](_0x4a82e7){const _0x4bfdf6=_0x18ef55,_0x5a324e=this[_0x4bfdf6(0x2d4)],_0x37be67=()=>{const _0x1def6e=_0x4bfdf6;_0x4a82e7[_0x1def6e(0x24c)](),_0x4a82e7[_0x1def6e(0x261)](),_0x5a324e[_0x1def6e(0x24b)]();},_0x3c681a=()=>{const _0x3b7f02=_0x4bfdf6;_0x4a82e7[_0x3b7f02(0x1bd)]&&(_0x4a82e7[_0x3b7f02(0x1bd)][_0x3b7f02(0x1f6)](),_0x4a82e7[_0x3b7f02(0x1bd)]=void 0x0);};return{'insertTextReply':(_0x55c3fa,_0x7639c1)=>{const _0x50bb40=_0x4bfdf6;_0x3c681a(),_0x37be67();const _0x382594=_0x4a82e7[_0x50bb40(0x1bd)]=_0x4a82e7[_0x50bb40(0x1d0)]({'type':_0x50bb40(0x2b2),'interactionId':_0x4a82e7['id'],'content':_0x55c3fa,'id':_0x7639c1||_0x1c2e87()});return _0x3c681a(),_0x382594;},'insertCustomElement':async(_0x57b721,_0x5014e3)=>(_0x3c681a(),_0x37be67(),_0x5a324e[_0x4bfdf6(0x28e)](_0x57b721,_0x5014e3||_0x1c2e87())),'setLoadingMessage':_0x56d417=>{const _0x3ea59b=_0x4bfdf6;_0x5a324e[_0x3ea59b(0x1ba)](_0x56d417);},'clearLoadingMessage':()=>{const _0x142515=_0x4bfdf6;_0x5a324e[_0x142515(0x24b)]();}};}}
|
|
23
|
+
const _0x2747dd=_0x34fc;(function(_0x235cef,_0x1ff040){const _0x44197f=_0x34fc,_0x1fb211=_0x235cef();while(!![]){try{const _0x2c35cd=parseInt(_0x44197f(0x2cb))/0x1+-parseInt(_0x44197f(0x293))/0x2+parseInt(_0x44197f(0x35e))/0x3*(-parseInt(_0x44197f(0x2a0))/0x4)+parseInt(_0x44197f(0x1fe))/0x5*(-parseInt(_0x44197f(0x33e))/0x6)+parseInt(_0x44197f(0x23c))/0x7*(-parseInt(_0x44197f(0x368))/0x8)+parseInt(_0x44197f(0x2bd))/0x9+parseInt(_0x44197f(0x214))/0xa;if(_0x2c35cd===_0x1ff040)break;else _0x1fb211['push'](_0x1fb211['shift']());}catch(_0x518e9a){_0x1fb211['push'](_0x1fb211['shift']());}}}(_0x3048,0xabf23));import{ContextPlugin as _0x2d315c,Editor as _0x2e07c5}from'ckeditor5/src/core.js';function _0x34fc(_0x2976cd,_0xfcc963){const _0x30482b=_0x3048();return _0x34fc=function(_0x34fced,_0x3ad431){_0x34fced=_0x34fced-0x1e4;let _0x69b37c=_0x30482b[_0x34fced];return _0x69b37c;},_0x34fc(_0x2976cd,_0xfcc963);}import{BodyCollection as _0x11d605}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2f9ac0,logError as _0x4adf39,scrollViewportToShowTarget as _0x26977c,uid as _0x441c86}from'ckeditor5/src/utils.js';import{AIConnector as _0x4fc309}from'../aicore/aiconnector.js';import{AITabs as _0x2e48c5}from'../aitabs/aitabs.js';import{AIChatConversation as _0x13f3a3}from'./model/aichatconversation.js';import{getTranslation as _0x3bbccd}from'../aicore/utils/common-translations.js';import{AIModels as _0x2b8021}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x1edd1c}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x159832,DATA_ID_MODEL_ATTRIBUTE as _0x192377}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x424953,getOperationsFromReply as _0x357892}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x25c4d2,getMinimalSelection as _0x41899c}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x3048(){const _0x2ebb8e=['ai-chat-context-invalid-data','_removeFromContext','addFileToContext','removeFeedInteraction','message','toggleWebSearch','AI_CHAT_ABORTED_MESSAGE','_aiEditing','ready','_setIsMaximized','filter','uid','domConverter','_openBalloonFor','setAddContextOptions','getDocumentContext','interactionStarted','loadConversation','updateResourceState','clearConversationContextUI','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','resizeTabs','bind','AIEditing','addSelectionToChatContext','_toggleReasoning','sourceId','addCurrentDocumentToChatContext','webSearchFinished','_showConversationHistory','locale','attachToDom','getChild','contextItems','toggleLoadingSkeleton','ai-no-track-changes','toString','updateConversationTitle','reasoningStarted','range','_handleUIUserMessage','addFeedItemStaticMessage','slice','modelSelected','Liked\x20response','_updateRatings','_rejectSuggestion','activeConversation','has','findIndex','commands','getOperations','type','data-id','open','end','documentContextContent','selection','closeSourceResourceBalloon','children','2486164PQZOkq','addCurrentDocumentToContext','conversationInitialized','interactionId','fetchConversations','_scrollToSuggestionRange','content','ai-chat-invalid-request','ai-chat-context-unsupported-type','_insertSuggestion','load','showFakeVisualSelection','batch','2468rVrDCT','indexes','map','interactionFinished','getTransformedByOperation','accepted','hideFakeVisualSelection','executeCustomItemCallback','maxOffset','clearLoadingMessage','updateCurrentDocumentInContext','setFeedItemAIReplySuggestionPartActive','removeSelectionFromContext','showNext','start','Disliked\x20response','text','sendUserMessage','_aiChatModels','messageId','isCurrentDocumentInContext','addDocumentToContext','state','contextItemAdded','startConversation','delegate','capabilitiesUpdated','isModelAvailable','getConversations','12293523NNXSWF','get','resource','uploadProgressChanged','add','scrollFeedToSuggestion','stopInteraction','focusPromptInput','rejectSuggestion','ai-chat-conversation-init-failed','_applyOperationsAsSuggestions','dialogClosed','removed','reasoningFinished','1214407yblTKg','static','addFeedInteractionHeader','resourceId','replyContentUpdated','mapper','alignToTop','abortPromptStream','ai-conversation-','revert','getConversation','ai-chat-controller-no-active-conversation','AI_CHAT_RESOURCE_LOAD_FAILED','contextItemLoadingEnded','setChangeGroupState','editors','populateSourceResourceBalloon','addFeedItemUserMessage','getGroupId','AIChatBalloon','showPrevious','TrackChangesEditing','getPath','plugins','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyId','_batchToChanges','replyChangeGroupStateUpdated','listenTo','sourcePosition','ai-chat-resource-load-failed','view','ai.chat.context','previous','AI_CHAT_UNTITLED_CONVERSATION','addContextItem','getDocumentData','_currentPreviewedChangeGroup','clearPendingContextUI','AI_CHAT_CONTEXT_FILE_TOO_LARGE','_registerToolDataCallback','hasChanges','showDiff','isLoading','resourceStateChanged','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','getDiff','ai-chat-context-unsupported-file-type','applyOperation','fetchConversation','context','changeGroups','resizedTabs','$graveyard','toggleSuggestionDisplayMode','lastInteraction','close','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','TrackChanges','setIsUploadInProgress','_getPresentableSiblingContentPartIndex','webSearchStarted','from','contextItem','ai-chat-controller-mouse-over','ai-chat-conversation-start-failed','ai-chat-context-form-data-size-limits-exceeded','addFeedItemError','source','_aiChatUi','handleUserInteraction','addFeedItemAISuggestion','finishInteraction','toolDataReceived','_getDocumentRangeForReplyChanges','ai.models.defaultModelId','resize','resources','getInteractionAndReplyById','resetWebSearchState','root','createReply','enableControls','getAttribute','toggleReasoning','removeFromContext','_createFromRanges','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','rejected','marker','removeSelectionFromChatContext','AI_BALLOON_HEADER_TITLE','remove','rootName','addFilesToContext','_getLastCreatedConversationId','indexOf','replies','streaming','sources','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','config','resetReasoningState','options','aiChatBalloon','detachFromDom','change','_startConversationSafely','getReply','createPositionAt','addResourceToContext','mouseLeaveSuggestion','data','getChildren','_bodyCollection','14286kteqQl','setContextItemLoading','_getAIChatInteractionAPI','AITabs','ai-chat-source-resources-load-failed','setState','insertSuggestion','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','activateTab','isDocumentOperation','done','_updateReplyContent','includes','replyCreated','baseVersion','collaboration.channelId','ai-request-aborted','updateCapabilities','like','version','editing','createRange','ai.models','getRanges','ai-chat-context-file-too-large','_logError','stop','setModel','AI_CHAT_GENERIC_ERROR','_flushLastInteractionUI','isInContext','history','4359nRZFqC','uiId','model','interactionDestroyed','handleRemovedConversation','addFeedItemCustomElement','_aiChatBalloonShowDiff','removeContextItem','AIConnector','forEach','8tjrifW','isOfficialPlugin','destroy','chat','find','sendMessage','dislike','log','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-missing-channel-id','partIndex','length','error','isCurrentDocumentInConversation','contextItemRemoved','DocumentCompare','viewRangeToDom','_integrateEditor','startAutoScroll','createConversation','unshift','showChangeInText','startsWith','getRoot','getSelectionText','modification','afterInit','pluginName','pending','anchorId','ai-chat-context-file-too-many-pages','createPositionFromPath','_stopLastInteraction','2060bkZZcL','getInteraction','Undo','resetConversationTitle','getChildAtOffset','getContentParts','isDisabled','addContextOptionsChanged','_toggleWebSearch','addUrlToContext','push','howMany','AIChatController','sourceResourcesLoaded','AI_CHAT_INVALID_REQUEST','init','query','lastCreated','undo','setSelectedModel','addOperation','node','20723020DNDqML','updateFeedItemAIReplyContent','disableControls','resetMessageInput','setLoadingMessage','document','ai-chat-conversation-not-found','ai.chat.initialConversation','getFirstRange','updateFeedItemAIReplySources','isPremiumPlugin','nextSibling','setIsMaximized','areActionsDisabled','loadSourceResources','updateContent','index','applySuggestion','redo','split','toViewRange','next','cloneNode','addFeedItemAIReply','setConversationTitle','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_handleStartConversation','delete','updateFeedItemAIReplySuggestionContent','interactionCreated','Showing\x20conversation\x20history...','main','set','_aiChatBalloon','requires','ai-chat-file-upload-failed','new','_applySuggestion','updateFeedItemAIReplySuggestionPartState','getAll','5794670VJlMlc','outdated','callback','path','upsertAIChatRating','_aiConnector','createdAt','selectedModel','addSelectionToContext','parse','ai-chat-url-upload-failed','mouseOverSuggestion','current-document','contextSent','changes','isUploadInProgress','currentReply','prepareLoadingMessage','startInteraction','sessionId','selectModel','setConversationContext','_getUserPresentableContentPartDocumentRange','isStarted','AIChatUI','setFeedItemRenderingStrategy','AI_CHAT_CONTEXT_INVALID_DATA'];_0x3048=function(){return _0x2ebb8e;};return _0x3048();}import{ModelRange as _0x4e6981,_DetachOperation as _0x577bc1}from'ckeditor5/src/engine.js';import{findOne as _0x598a20,getAttribute as _0xc47dbe,serialize as _0x37aaa3,Document as _0x16ddd7,findByAttribute as _0x55da11}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x2d315c{[_0x2747dd(0x25e)];[_0x2747dd(0x241)];[_0x2747dd(0x310)];[_0x2747dd(0x2b2)];[_0x2747dd(0x235)];[_0x2747dd(0x2e5)]=new Map();[_0x2747dd(0x2f0)]=null;[_0x2747dd(0x33d)];static get[_0x2747dd(0x236)](){return[_0x4fc309,_0x159832];}static get[_0x2747dd(0x1f8)](){const _0xbc9cfc=_0x2747dd;return _0xbc9cfc(0x20a);}static get[_0x2747dd(0x369)](){return!0x0;}static get[_0x2747dd(0x21e)](){return!0x0;}[_0x2747dd(0x20d)](){const _0x448b52=_0x2747dd;this[_0x448b52(0x33d)]=new _0x11d605(this[_0x448b52(0x2fd)][_0x448b52(0x275)]),this[_0x448b52(0x33d)][_0x448b52(0x276)](),this[_0x448b52(0x241)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x366)),this[_0x448b52(0x310)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x254)),this[_0x448b52(0x25e)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x26e)),this[_0x448b52(0x2b2)]=new _0x2b8021({'connector':this[_0x448b52(0x241)],'config':this[_0x448b52(0x2fd)][_0x448b52(0x330)][_0x448b52(0x2be)](_0x448b52(0x354)),'locale':this[_0x448b52(0x2fd)][_0x448b52(0x275)]});const _0x2e9490=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x341));this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2b8),()=>{const _0x2fd856=_0x448b52;this[_0x2fd856(0x336)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2b1),(_0x170991,_0x5e0174)=>{const _0xa0a49e=_0x448b52;this[_0xa0a49e(0x27f)]({'userMessage':_0x5e0174});}),this[_0x448b52(0x2e7)](_0x2e9490,_0x448b52(0x2ff),(_0x3c7cf0,_0x345325)=>{const _0x4b6a58=_0x448b52;this[_0x4b6a58(0x260)](_0x345325);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x26c),()=>{const _0x2b3370=_0x448b52;_0x2e9490[_0x2b3370(0x317)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2d2),async()=>{const _0x2e1057=_0x448b52;await this[_0x2e1057(0x1fd)](),await this[_0x2e1057(0x35b)](),this[_0x2e1057(0x325)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2b5),()=>{const _0x4dc1ac=_0x448b52;this[_0x4dc1ac(0x272)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x259),(_0x310bfd,_0x43ca36)=>{const _0x38e912=_0x448b52;this[_0x38e912(0x286)]?.[_0x38e912(0x329)](Array[_0x38e912(0x309)](_0x43ca36));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x207),(_0x21a7be,_0x3dc9d4)=>{const _0xea74ac=_0x448b52;this[_0xea74ac(0x286)]?.[_0xea74ac(0x207)](_0x3dc9d4);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2a7),(_0x5919f8,_0x477922)=>{const _0x30ce77=_0x448b52;_0x477922[_0x30ce77(0x23e)](this[_0x30ce77(0x2fd)]);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x339),(_0x11efcc,_0x672eb6)=>{const _0x3ed8a5=_0x448b52;this[_0x3ed8a5(0x286)]?.[_0x3ed8a5(0x339)](_0x672eb6[_0x3ed8a5(0x30f)],_0x672eb6[_0x3ed8a5(0x2bf)]);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x365),(_0x40dfd6,_0x33aabd)=>{const _0x532816=_0x448b52;this[_0x532816(0x258)](_0x33aabd);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x222),(_0x5c8595,_0x4f931a)=>{const _0x29d367=_0x448b52;this[_0x29d367(0x286)]?.[_0x29d367(0x222)](_0x4f931a[_0x29d367(0x271)],_0x4f931a[_0x29d367(0x20e)],_0x4f931a[_0x29d367(0x262)]);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x25c),()=>{const _0xaae761=_0x448b52;this[_0xaae761(0x206)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x31f),()=>{const _0x4a9b43=_0x448b52;this[_0x4a9b43(0x270)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x250),(_0x521684,_0x496525)=>{const _0x588c4d=_0x448b52;this[_0x588c4d(0x286)]?.[_0x588c4d(0x359)](_0x496525);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x350),(_0xbb1218,{replyId:_0x5dd1de})=>{const _0x1a25d8=_0x448b52;console[_0x1a25d8(0x36f)](_0x1a25d8(0x283),_0x5dd1de);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x36e),(_0x11bf57,{replyId:_0x360312})=>{const _0x49ab26=_0x448b52;console[_0x49ab26(0x36f)](_0x49ab26(0x2af),_0x360312);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x344),(_0x4e431c,_0x2f8659)=>{const _0x31cfcd=_0x448b52;this[_0x31cfcd(0x29c)](_0x2f8659);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x1f2),(_0x35b1b4,{replyId:_0x20a20b,partIndex:_0x4c67e6})=>{const _0x41009a=_0x448b52;this[_0x41009a(0x364)]=this[_0x41009a(0x310)][_0x41009a(0x2f5)],this[_0x41009a(0x264)](_0x20a20b,_0x4c67e6);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x247),(_0x51c732,{replyId:_0xa7a010,partIndex:_0x44d1e1})=>{const _0x3b23a6=_0x448b52,_0x29b8ba=this[_0x3b23a6(0x315)](_0xa7a010,_0x44d1e1);_0x29b8ba&&_0x3b23a6(0x300)!=_0x29b8ba[_0x3b23a6(0x27e)][_0x3b23a6(0x31b)][_0x3b23a6(0x328)]&&this[_0x3b23a6(0x25e)][_0x3b23a6(0x29e)]([_0x29b8ba[_0x3b23a6(0x27e)]],_0x3b23a6(0x30b));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x33a),()=>{const _0x43dcd6=_0x448b52;this[_0x43dcd6(0x25e)][_0x43dcd6(0x2a6)](_0x43dcd6(0x30b));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x225),(_0x2a98a7,_0x1b4436)=>{const _0x1aff2c=_0x448b52;this[_0x1aff2c(0x25e)][_0x1aff2c(0x2a6)](_0x1aff2c(0x30b)),this[_0x1aff2c(0x239)](_0x1b4436);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x301),async(_0x38c532,{replyId:_0x150bb9,showDiff:_0xddce25})=>{const _0x22f826=_0x448b52,{reply:_0x56fec4}=this[_0x22f826(0x319)](_0x150bb9),_0x23972e=_0x56fec4[_0x22f826(0x203)]({'showDiff':_0xddce25});await this[_0x22f826(0x310)][_0x22f826(0x230)]({'id':_0x56fec4['id'],'parts':_0x23972e,'renderingStrategy':_0x22f826(0x2cc)});}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2c5),(_0x3e29d4,{replyId:_0x97c0d,partIndex:_0x2e26f6})=>{const _0xb75fa2=_0x448b52;this[_0xb75fa2(0x285)]({'replyId':_0x97c0d,'partIndex':_0x2e26f6}),this[_0xb75fa2(0x25e)][_0xb75fa2(0x2a6)](_0xb75fa2(0x30b));}),this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x287)](_0x448b52(0x2de))&&(this[_0x448b52(0x235)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x2de)),this[_0x448b52(0x234)](_0x448b52(0x364),!0x1),this[_0x448b52(0x235)][_0x448b52(0x26d)](_0x448b52(0x2f5))['to'](this,_0x448b52(0x364)),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x301),()=>{const _0x581f87=_0x448b52,{replyId:_0x34b7a6,partIndex:_0x4c08b8}=this[_0x581f87(0x2f0)];this[_0x581f87(0x364)]=!this[_0x581f87(0x364)];const {reply:_0x31098d}=this[_0x581f87(0x319)](_0x34b7a6),_0x34f953=_0x31098d[_0x581f87(0x203)]({'showDiff':this[_0x581f87(0x364)],'groupIndex':_0x4c08b8});this[_0x581f87(0x235)][_0x581f87(0x223)]({'part':_0x34f953[0x0],'renderingStrategy':_0x581f87(0x2cc),'keepErrors':!0x0});}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x225),()=>{const _0x21243=_0x448b52,{replyId:_0x2f54fe,partIndex:_0x2e30d1}=this[_0x21243(0x2f0)];this[_0x21243(0x239)]({'replyId':_0x2f54fe,'partIndex':_0x2e30d1}),this[_0x21243(0x235)][_0x21243(0x343)](_0x21243(0x2a5));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x344),()=>{const _0x43c7cd=_0x448b52,{replyId:_0x49ebb6,partIndex:_0x4128ac}=this[_0x43c7cd(0x2f0)];this[_0x43c7cd(0x29c)]({'replyId':_0x49ebb6,'partIndex':_0x4128ac}),this[_0x43c7cd(0x235)][_0x43c7cd(0x343)](_0x43c7cd(0x2a5));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2c5),()=>{const _0x19fe49=_0x448b52,{replyId:_0x26cd04,partIndex:_0x56b6d2}=this[_0x19fe49(0x2f0)];this[_0x19fe49(0x285)]({'replyId':_0x26cd04,'partIndex':_0x56b6d2}),this[_0x19fe49(0x235)][_0x19fe49(0x343)](_0x19fe49(0x323));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2ad),()=>{const _0x10a422=_0x448b52,{replyId:_0x113490,partIndex:_0x72daeb}=this[_0x10a422(0x2f0)],_0x5d67ba=this[_0x10a422(0x307)](_0x113490,_0x72daeb,_0x10a422(0x229));null!==_0x5d67ba&&this[_0x10a422(0x264)](_0x113490,_0x5d67ba);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2df),()=>{const _0x101680=_0x448b52,{replyId:_0x5e569f,partIndex:_0x22152d}=this[_0x101680(0x2f0)],_0xf74d85=this[_0x101680(0x307)](_0x5e569f,_0x22152d,_0x101680(0x2ec));null!==_0xf74d85&&this[_0x101680(0x264)](_0x5e569f,_0xf74d85);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2c8),(_0x4c4748,{id:_0x2f5437})=>{const _0x4450a2=_0x448b52;if(_0x4450a2(0x333)!==_0x2f5437)return;const {replyId:_0x4798ff,partIndex:_0x3d43c5}=this[_0x4450a2(0x2f0)];this[_0x4450a2(0x2f0)]=null,this[_0x4450a2(0x310)][_0x4450a2(0x2ab)]({'id':_0x4798ff,'index':_0x3d43c5,'isActive':!0x1});}));}async[_0x2747dd(0x1f7)](){const _0x3a1bb6=_0x2747dd;this[_0x3a1bb6(0x2fd)]instanceof _0x2e07c5?this[_0x3a1bb6(0x1ee)](this[_0x3a1bb6(0x2fd)]):this[_0x3a1bb6(0x2e7)](this[_0x3a1bb6(0x2fd)][_0x3a1bb6(0x2da)],_0x3a1bb6(0x2c1),(_0x572fa2,_0x4a73a6)=>{const _0x17fd9a=_0x3a1bb6;_0x4a73a6['on'](_0x17fd9a(0x25f),()=>{const _0x51aa23=_0x17fd9a;this[_0x51aa23(0x1ee)](_0x4a73a6);});});const _0x21f259=this[_0x3a1bb6(0x2fd)][_0x3a1bb6(0x330)][_0x3a1bb6(0x2be)](_0x3a1bb6(0x21b));let _0x1b6fa6=_0x21f259;if(_0x3a1bb6(0x20f)!=_0x21f259||(_0x1b6fa6=await this[_0x3a1bb6(0x32a)](),_0x1b6fa6))return _0x3a1bb6(0x238)==_0x1b6fa6?this[_0x3a1bb6(0x336)]():this[_0x3a1bb6(0x268)](_0x1b6fa6);}async[_0x2747dd(0x36a)](){const _0x11e11b=_0x2747dd;return await this[_0x11e11b(0x1fd)](),this[_0x11e11b(0x33d)][_0x11e11b(0x334)](),super[_0x11e11b(0x36a)]();}[_0x2747dd(0x29c)](_0x4827ab){const _0x3783d3=_0x2747dd,_0x4e3305=_0x1edd1c(this[_0x3783d3(0x2fd)]);if(!_0x4e3305[_0x3783d3(0x2e2)][_0x3783d3(0x287)](_0x3783d3(0x305)))throw new _0x2f9ac0(_0x3783d3(0x27a),null);const _0x10562a=this[_0x3783d3(0x2fd)][_0x3783d3(0x2e2)][_0x3783d3(0x2be)](_0x3783d3(0x1ec)),{reply:_0x4ce2dc,interaction:_0x334803}=this[_0x3783d3(0x319)](_0x4827ab[_0x3783d3(0x2e4)]),_0x232e1c=this[_0x3783d3(0x315)](_0x4827ab[_0x3783d3(0x2e4)],_0x4827ab[_0x3783d3(0x1e7)]),_0x598eb8=void 0x0!==_0x4827ab[_0x3783d3(0x1e7)]?[_0x4ce2dc[_0x3783d3(0x2fe)][_0x4827ab[_0x3783d3(0x1e7)]]]:_0x4ce2dc[_0x3783d3(0x2fe)][_0x3783d3(0x261)](_0x16add2=>_0x3783d3(0x1f9)==_0x16add2[_0x3783d3(0x2b6)]),_0x34fe3c=_0x598eb8[_0x3783d3(0x2a2)](_0x1fe36e=>_0x4ce2dc[_0x3783d3(0x2fe)][_0x3783d3(0x32b)](_0x1fe36e));if(!_0x232e1c||_0x3783d3(0x300)==_0x232e1c[_0x3783d3(0x27e)][_0x3783d3(0x31b)][_0x3783d3(0x328)])return void _0x34fe3c[_0x3783d3(0x367)](_0x5a7866=>_0x4ce2dc[_0x3783d3(0x2d9)](_0x5a7866,_0x3783d3(0x23d)));_0x34fe3c[_0x3783d3(0x367)](_0x1f6c57=>_0x4ce2dc[_0x3783d3(0x2d9)](_0x1f6c57,_0x3783d3(0x2a5)));const _0x3dffd5=_0x357892({'editor':_0x4e3305,'reply':_0x4ce2dc,'interaction':_0x334803,'groups':_0x598eb8,'transform':!0x0,'documentCompare':_0x10562a,'documentCompareOptions':{'anchor':_0x3783d3(0x233),'markDeletions':!0x0}});let _0x3c132b;_0x232e1c&&this[_0x3783d3(0x298)](_0x232e1c[_0x3783d3(0x27e)]),_0x4e3305[_0x3783d3(0x360)][_0x3783d3(0x335)](_0x4c970c=>{const _0x43db88=_0x3783d3;_0x3c132b=_0x4c970c[_0x43db88(0x29f)],_0x4e3305[_0x43db88(0x2e2)][_0x43db88(0x2be)](_0x43db88(0x2e0))[_0x43db88(0x2c7)](_0x3dffd5),this[_0x43db88(0x25e)][_0x43db88(0x2a6)](_0x43db88(0x30b));}),this[_0x3783d3(0x2e5)][_0x3783d3(0x234)](_0x3c132b,{'interactionId':_0x334803['id'],'replyId':_0x4ce2dc['id'],'indexes':_0x34fe3c[_0x3783d3(0x281)]()}),this[_0x3783d3(0x284)](_0x4ce2dc);}[_0x2747dd(0x239)](_0x2d84ae){const _0x5d0cb5=_0x2747dd,_0x158730=_0x1edd1c(this[_0x5d0cb5(0x2fd)]),_0x291ce1=this[_0x5d0cb5(0x2fd)][_0x5d0cb5(0x2e2)][_0x5d0cb5(0x2be)](_0x159832),{reply:_0x504571,interaction:_0x3e3dd8}=this[_0x5d0cb5(0x319)](_0x2d84ae[_0x5d0cb5(0x2e4)]),_0x8cce37=this[_0x5d0cb5(0x315)](_0x2d84ae[_0x5d0cb5(0x2e4)],_0x2d84ae[_0x5d0cb5(0x1e7)]),_0x3cf27e=void 0x0!==_0x2d84ae[_0x5d0cb5(0x1e7)]?[_0x504571[_0x5d0cb5(0x2fe)][_0x2d84ae[_0x5d0cb5(0x1e7)]]]:_0x504571[_0x5d0cb5(0x2fe)][_0x5d0cb5(0x261)](_0x17e38a=>_0x5d0cb5(0x1f9)==_0x17e38a[_0x5d0cb5(0x2b6)]),_0x84f373=_0x3cf27e[_0x5d0cb5(0x2a2)](_0x43c47d=>_0x504571[_0x5d0cb5(0x2fe)][_0x5d0cb5(0x32b)](_0x43c47d));if(!_0x8cce37||_0x5d0cb5(0x300)==_0x8cce37[_0x5d0cb5(0x27e)][_0x5d0cb5(0x31b)][_0x5d0cb5(0x328)])return void _0x84f373[_0x5d0cb5(0x367)](_0x329f9e=>_0x504571[_0x5d0cb5(0x2d9)](_0x329f9e,_0x5d0cb5(0x23d)));_0x84f373[_0x5d0cb5(0x367)](_0x3cde84=>_0x504571[_0x5d0cb5(0x2d9)](_0x3cde84,_0x5d0cb5(0x2a5)));const _0x30f8c0=_0x357892({'editor':_0x158730,'reply':_0x504571,'interaction':_0x3e3dd8,'groups':_0x3cf27e,'transform':!0x0,'documentCompare':_0x291ce1,'documentCompareOptions':{'anchor':_0x5d0cb5(0x233),'markDeletions':!0x1}});let _0x124a24;_0x8cce37&&this[_0x5d0cb5(0x298)](_0x8cce37[_0x5d0cb5(0x27e)]),_0x158730[_0x5d0cb5(0x360)][_0x5d0cb5(0x335)](_0x55ca25=>{const _0x4d9610=_0x5d0cb5;_0x124a24=_0x55ca25[_0x4d9610(0x29f)];for(const _0x48de86 of _0x30f8c0)_0x48de86[_0x4d9610(0x34c)]=_0x158730[_0x4d9610(0x360)][_0x4d9610(0x219)][_0x4d9610(0x351)],_0x424953(_0x158730,_0x48de86),_0x55ca25[_0x4d9610(0x29f)][_0x4d9610(0x212)](_0x48de86),_0x158730[_0x4d9610(0x360)][_0x4d9610(0x2fb)](_0x48de86);}),this[_0x5d0cb5(0x2e5)][_0x5d0cb5(0x234)](_0x124a24,{'interactionId':_0x3e3dd8['id'],'replyId':_0x504571['id'],'indexes':_0x84f373[_0x5d0cb5(0x281)]()}),this[_0x5d0cb5(0x284)](_0x504571);}[_0x2747dd(0x285)](_0xc69623){const _0x1e6294=_0x2747dd,{reply:_0x1b8a71}=this[_0x1e6294(0x319)](_0xc69623[_0x1e6294(0x2e4)]);_0x1b8a71[_0x1e6294(0x2d9)](_0xc69623[_0x1e6294(0x1e7)],_0x1e6294(0x323));}[_0x2747dd(0x264)](_0x2a9d1f,_0x20ca88){const _0x59ee8f=_0x2747dd;if(!this[_0x59ee8f(0x235)])return;const {reply:_0x208adf}=this[_0x59ee8f(0x319)](_0x2a9d1f),_0x11d56a=_0x208adf[_0x59ee8f(0x203)]({'showDiff':this[_0x59ee8f(0x364)]});let _0x3127ed,_0x374e8b;if(void 0x0!==_0x20ca88?(_0x374e8b=_0x11d56a[_0x59ee8f(0x36c)](_0x1128b3=>_0x1128b3[_0x59ee8f(0x224)]==_0x20ca88),_0x3127ed=_0x374e8b?.[_0x59ee8f(0x224)]):(_0x374e8b=_0x11d56a[0x0],_0x3127ed=_0x374e8b[_0x59ee8f(0x224)]),this[_0x59ee8f(0x2f0)]?.[_0x59ee8f(0x2e4)]==_0x2a9d1f&&this[_0x59ee8f(0x2f0)]?.[_0x59ee8f(0x1e7)]==_0x3127ed)return;const _0x2ad523=this[_0x59ee8f(0x252)](_0x2a9d1f,_0x208adf,_0x374e8b);if(!_0x2ad523)return void this[_0x59ee8f(0x235)][_0x59ee8f(0x303)]();this[_0x59ee8f(0x2f0)]={'replyId':_0x2a9d1f,'partIndex':_0x3127ed},this[_0x59ee8f(0x298)](_0x2ad523,!0x0);const _0x1c6a6e=this[_0x59ee8f(0x307)](_0x2a9d1f,_0x3127ed,_0x59ee8f(0x229));this[_0x59ee8f(0x235)][_0x59ee8f(0x223)]({'part':_0x374e8b,'renderingStrategy':_0x59ee8f(0x2cc)}),this[_0x59ee8f(0x235)][_0x59ee8f(0x28d)]({'index':_0x3127ed,'title':_0x3bbccd(this[_0x59ee8f(0x2fd)][_0x59ee8f(0x275)],_0x59ee8f(0x326),(_0x3127ed+0x1)[_0x59ee8f(0x27b)]()),'showRotator':null!==_0x1c6a6e,'ranges':[_0x2ad523],'areActionsDisabled':_0x208adf[_0x59ee8f(0x221)]}),this[_0x59ee8f(0x235)][_0x59ee8f(0x343)](_0x59ee8f(0x1f9)),this[_0x59ee8f(0x310)][_0x59ee8f(0x2c2)](_0x2a9d1f,_0x3127ed),this[_0x59ee8f(0x310)][_0x59ee8f(0x2ab)]({'id':_0x2a9d1f,'index':_0x3127ed,'isActive':!0x0});}[_0x2747dd(0x307)](_0x470425,_0x208b1c,_0x203113){const _0x32029c=_0x2747dd,{reply:_0x2e0206}=this[_0x32029c(0x319)](_0x470425),_0x29c586=_0x2e0206[_0x32029c(0x203)]({'showDiff':this[_0x32029c(0x364)]});if(0x1==_0x29c586[_0x32029c(0x1e8)])return null;const _0x25d8d0=_0x29c586[_0x32029c(0x288)](_0x42090f=>_0x42090f[_0x32029c(0x224)]==_0x208b1c),_0x4ede93=_0x32029c(0x229)==_0x203113?0x1:-0x1;let _0x318d13=_0x29c586['at']((_0x25d8d0+_0x4ede93)%_0x29c586[_0x32029c(0x1e8)])[_0x32029c(0x224)],_0x378bad=_0x29c586[_0x318d13];for(;!this[_0x32029c(0x252)](_0x470425,_0x2e0206,_0x378bad);){if(_0x318d13=_0x29c586['at']((_0x318d13+_0x4ede93)%_0x29c586[_0x32029c(0x1e8)])[_0x32029c(0x224)],_0x318d13===_0x25d8d0)return null;_0x378bad=_0x29c586[_0x318d13];}return _0x318d13;}[_0x2747dd(0x252)](_0x34b65e,_0x2d92b6,_0x82c0ed){const _0x5aea6c=_0x2747dd,_0x18270f=_0x2d92b6[_0x5aea6c(0x2fe)];if(!_0x82c0ed[_0x5aea6c(0x2f4)])return null;const _0x3a791a=_0x18270f[_0x5aea6c(0x36c)](_0x508d9a=>_0x508d9a[_0x5aea6c(0x224)]==_0x82c0ed[_0x5aea6c(0x224)]);if(_0x5aea6c(0x1f9)!==_0x3a791a?.[_0x5aea6c(0x2b6)])return null;const _0x2e90c5=this[_0x5aea6c(0x315)](_0x34b65e,_0x82c0ed[_0x5aea6c(0x224)]);if(!_0x2e90c5)return null;const {range:_0x17497a,currentIndex:_0x1e7324}=_0x2e90c5;return _0x5aea6c(0x300)==_0x17497a[_0x5aea6c(0x31b)][_0x5aea6c(0x328)]?(_0x2d92b6[_0x5aea6c(0x2d9)](_0x1e7324,_0x5aea6c(0x23d)),null):_0x2e90c5[_0x5aea6c(0x27e)];}[_0x2747dd(0x315)](_0x364e9f,_0x531c54){const _0xde3e2b=_0x2747dd,_0x35cd4a=_0x1edd1c(this[_0xde3e2b(0x2fd)]),{reply:_0x1cdf07,interaction:_0x92c078}=this[_0xde3e2b(0x319)](_0x364e9f),_0x2ba0ac=_0x1cdf07[_0xde3e2b(0x2fe)][_0xde3e2b(0x261)](_0x5cc6ed=>_0xde3e2b(0x1f9)==_0x5cc6ed[_0xde3e2b(0x2b6)]),_0x4f44a2=_0x2ba0ac[_0xde3e2b(0x2a2)](_0x74941d=>_0x1cdf07[_0xde3e2b(0x2fe)][_0xde3e2b(0x32b)](_0x74941d));void 0x0===_0x531c54&&(_0x531c54=_0x4f44a2[0x0]);const _0xa234f3=_0x4f44a2[_0xde3e2b(0x32b)](_0x531c54);if(-0x1==_0xa234f3)return null;const _0x5c3104=_0x2ba0ac[_0xa234f3],_0x32fd5c=new _0x16ddd7([]),_0x24576d=new _0x16ddd7([]);for(const _0x4685e1 of _0x5c3104[_0xde3e2b(0x24a)])if(_0xde3e2b(0x2c9)!=_0x4685e1[_0xde3e2b(0x28b)]&&_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x4685e1[_0xde3e2b(0x213)][_0xde3e2b(0x22a)](!0x0)),_0xde3e2b(0x238)!=_0x4685e1[_0xde3e2b(0x28b)]){const _0x1448ee=_0x598a20(_0x4c36fd=>_0xc47dbe(_0x4c36fd,_0xde3e2b(0x28c))==_0x4685e1['id'],_0x1cdf07[_0xde3e2b(0x28f)],!0x0);_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x1448ee[_0xde3e2b(0x22a)](!0x0));}if(0x0==_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x1e8)]){if(_0x5c3104[_0xde3e2b(0x24a)][0x0][_0xde3e2b(0x1fa)]){const _0x13f031=_0x55da11(_0xde3e2b(0x28c),_0x5c3104[_0xde3e2b(0x24a)][0x0][_0xde3e2b(0x1fa)],_0x1cdf07[_0xde3e2b(0x28f)]);_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x1f1)](_0x13f031[_0xde3e2b(0x22a)](!0x0)),_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x1f1)](_0x13f031[_0xde3e2b(0x22a)](!0x0)),_0x13f031[_0xde3e2b(0x21f)]&&(_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x13f031[_0xde3e2b(0x21f)][_0xde3e2b(0x22a)](!0x0)),_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x13f031[_0xde3e2b(0x21f)][_0xde3e2b(0x22a)](!0x0)));}else{const _0x2a9f00=_0x1cdf07[_0xde3e2b(0x28f)][_0xde3e2b(0x292)][0x0];if(!_0x2a9f00)return null;_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x2a9f00[_0xde3e2b(0x22a)](!0x0)),_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x2a9f00[_0xde3e2b(0x22a)](!0x0));}}const _0x311d0c=_0x92c078[_0xde3e2b(0x266)](),_0x484838=_0x35cd4a[_0xde3e2b(0x33b)][_0xde3e2b(0x245)](_0x311d0c[_0xde3e2b(0x299)]),_0x29f9ed=_0x37aaa3(_0x32fd5c),_0x14cf04=_0x35cd4a[_0xde3e2b(0x33b)][_0xde3e2b(0x245)](_0x29f9ed),_0x155a6e=_0x35cd4a[_0xde3e2b(0x33b)][_0xde3e2b(0x245)](_0x29f9ed),_0x302a3=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x338)](_0x14cf04,0x0),_0xa90a88=_0x37aaa3(_0x24576d),_0x35cced={'anchor':_0x302a3,'markDeletions':!0x1},_0x2b65eb=_0x35cd4a[_0xde3e2b(0x2e2)][_0xde3e2b(0x2be)](_0x159832)[_0xde3e2b(0x2f9)](_0x29f9ed,_0xa90a88,_0x35cced)[_0xde3e2b(0x28a)]();if(!_0x2b65eb[_0xde3e2b(0x1e8)])return null;_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x335)](_0x54a3d7=>{const _0x416688=_0xde3e2b;for(const _0x26656c of _0x2b65eb)if(_0x416688(0x327)==_0x26656c[_0x416688(0x28b)]){const _0x4a4e19=_0x26656c[_0x416688(0x2e8)],_0x58684a=_0x26656c[_0x416688(0x209)],_0xfe6e0d=new _0x577bc1(_0x4a4e19,_0x58684a);_0x54a3d7[_0x416688(0x29f)][_0x416688(0x212)](_0xfe6e0d),_0x35cd4a[_0x416688(0x360)][_0x416688(0x2fb)](_0xfe6e0d);}else _0x416688(0x324)!==_0x26656c[_0x416688(0x28b)]&&(_0x26656c[_0x416688(0x34c)]=null,_0x26656c[_0x416688(0x347)]=!0x1,_0x54a3d7[_0x416688(0x29f)][_0x416688(0x212)](_0x26656c),_0x35cd4a[_0x416688(0x360)][_0x416688(0x2fb)](_0x26656c));});const _0x2db9da=_0x41899c(_0x35cd4a,_0x2b65eb,_0x14cf04);_0x25c4d2(_0x35cd4a[_0xde3e2b(0x360)],_0x2db9da);const _0x1e208d=_0x2db9da[_0xde3e2b(0x21c)]()[_0xde3e2b(0x2ae)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)](),_0x59e730=_0x2db9da[_0xde3e2b(0x21c)]()[_0xde3e2b(0x28e)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)](),_0x221638=[];let _0x3c3b3f=_0x14cf04,_0x28c699=_0x155a6e;for(let _0x589d41=0x0;_0x589d41<_0x59e730[_0xde3e2b(0x1e8)];_0x589d41++){const _0x347812=_0x3c3b3f[_0xde3e2b(0x2a8)]-_0x59e730[_0x589d41];_0x221638[_0x589d41]=_0x28c699[_0xde3e2b(0x2a8)]-_0x347812,_0x3c3b3f=_0x3c3b3f[_0xde3e2b(0x202)](_0x59e730[_0x589d41]),_0x28c699=_0x28c699[_0xde3e2b(0x202)](_0x221638[_0x589d41]);}const _0x3bc5f3=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x353)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x155a6e,_0x1e208d),_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x155a6e,_0x221638)),_0xd9d99e=_0x155a6e[_0xde3e2b(0x277)](0x0)[_0xde3e2b(0x31e)](_0x192377),_0x446010=Array[_0xde3e2b(0x309)](_0x484838[_0xde3e2b(0x33c)]())[_0xde3e2b(0x36c)](_0x44d33e=>_0x44d33e[_0xde3e2b(0x31e)](_0x192377)==_0xd9d99e)[_0xde3e2b(0x2e1)](),_0x33a86e=_0x3bc5f3[_0xde3e2b(0x2ae)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)](),_0x59e9ed=_0x3bc5f3[_0xde3e2b(0x28e)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)]();_0x33a86e[0x0]=_0x446010[0x0]+_0x33a86e[0x0],_0x59e9ed[0x0]=_0x446010[0x0]+_0x59e9ed[0x0];let _0x3b9f57=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x353)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x219)][_0xde3e2b(0x1f4)](),_0x33a86e),_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x219)][_0xde3e2b(0x1f4)](),_0x59e9ed));const _0x216bed=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x219)][_0xde3e2b(0x35d)][_0xde3e2b(0x28a)](_0x311d0c[_0xde3e2b(0x351)]);for(const _0x4af460 of _0x216bed)_0x3b9f57=_0x4e6981[_0xde3e2b(0x321)](_0x3b9f57[_0xde3e2b(0x2a4)](_0x4af460));return{'range':_0x3b9f57,'currentIndex':_0x531c54};}[_0x2747dd(0x1ee)](_0x4370e1){const _0x29f134=_0x2747dd;if(!_0x4370e1[_0x29f134(0x2e2)][_0x29f134(0x287)](_0x29f134(0x200)))return;const _0x4bd8ec=_0x4370e1[_0x29f134(0x289)][_0x29f134(0x2be)](_0x29f134(0x210)),_0x261273=_0x4370e1[_0x29f134(0x289)][_0x29f134(0x2be)](_0x29f134(0x226));this[_0x29f134(0x2e7)](_0x4bd8ec,_0x29f134(0x2d4),(_0x41af21,_0x58a66e,_0x59a148)=>{const _0x2f31c9=_0x29f134,_0x28f69d=this[_0x2f31c9(0x2e5)][_0x2f31c9(0x2be)](_0x58a66e);if(!_0x28f69d)return;const _0x1feb4c=this[_0x2f31c9(0x286)][_0x2f31c9(0x1ff)](_0x28f69d[_0x2f31c9(0x296)])[_0x2f31c9(0x337)](_0x28f69d[_0x2f31c9(0x2e4)]);_0x28f69d[_0x2f31c9(0x2a1)][_0x2f31c9(0x367)](_0x491f22=>_0x1feb4c[_0x2f31c9(0x2d9)](_0x491f22,_0x2f31c9(0x1f9))),this[_0x2f31c9(0x2e5)][_0x2f31c9(0x22f)](_0x58a66e),this[_0x2f31c9(0x2e5)][_0x2f31c9(0x234)](_0x59a148,_0x28f69d);}),this[_0x29f134(0x2e7)](_0x261273,_0x29f134(0x2d4),(_0x1b80ea,_0x292d4b,_0x26a048)=>{const _0x26210b=_0x29f134,_0x22ab53=this[_0x26210b(0x2e5)][_0x26210b(0x2be)](_0x292d4b);if(!_0x22ab53)return;const _0xe1c766=this[_0x26210b(0x286)][_0x26210b(0x1ff)](_0x22ab53[_0x26210b(0x296)])[_0x26210b(0x337)](_0x22ab53[_0x26210b(0x2e4)]);_0x22ab53[_0x26210b(0x2a1)][_0x26210b(0x367)](_0x402ae1=>_0xe1c766[_0x26210b(0x2d9)](_0x402ae1,_0x26210b(0x2a5))),this[_0x26210b(0x2e5)][_0x26210b(0x22f)](_0x292d4b),this[_0x26210b(0x2e5)][_0x26210b(0x234)](_0x26a048,_0x22ab53);});}async[_0x2747dd(0x268)](_0xf22291){const _0x48748c=_0x2747dd;this[_0x48748c(0x2fd)][_0x48748c(0x2e2)][_0x48748c(0x287)](_0x48748c(0x2de))&&this[_0x48748c(0x2fd)][_0x48748c(0x2e2)][_0x48748c(0x2be)](_0x48748c(0x2de))[_0x48748c(0x303)](),(this[_0x48748c(0x2fd)][_0x48748c(0x2e2)][_0x48748c(0x2be)](_0x2e48c5)[_0x48748c(0x2ea)][_0x48748c(0x346)](_0x48748c(0x36b)),this[_0x48748c(0x310)][_0x48748c(0x255)](_0x48748c(0x2cc)),this[_0x48748c(0x310)][_0x48748c(0x279)](!0x0),await this[_0x48748c(0x1fd)]());try{await this[_0x48748c(0x241)][_0x48748c(0x2fc)](_0xf22291)[_0x48748c(0x2d5)](),await this[_0x48748c(0x336)](_0xf22291),this[_0x48748c(0x27c)]('\x20'),await this[_0x48748c(0x286)][_0x48748c(0x29d)](_0xf22291,this[_0x48748c(0x25e)][_0x48748c(0x24f)]),this[_0x48748c(0x286)][_0x48748c(0x1ea)]()&&this[_0x48748c(0x272)]();}catch(_0x3d59e0){this[_0x48748c(0x310)][_0x48748c(0x30e)]({'errorMessage':_0x3bbccd(this[_0x48748c(0x2fd)][_0x48748c(0x275)],_0x48748c(0x1e4)),'id':_0xf22291}),this[_0x48748c(0x357)](new _0x2f9ac0(_0x48748c(0x21a),this,{'error':_0x3d59e0}));}finally{this[_0x48748c(0x310)][_0x48748c(0x1ef)](),this[_0x48748c(0x310)][_0x48748c(0x255)](_0x48748c(0x32d)),this[_0x48748c(0x310)][_0x48748c(0x279)](!0x1);}}async[_0x2747dd(0x32a)](){const _0x2ca8b1=_0x2747dd,_0x4b28f8=this[_0x2ca8b1(0x241)][_0x2ca8b1(0x297)](this[_0x2ca8b1(0x2dd)](),{'limit':0x1,'sortBy':_0x2ca8b1(0x242)});try{const _0x5ce96c=await _0x4b28f8[_0x2ca8b1(0x2bc)]();return _0x5ce96c[_0x2ca8b1(0x1e8)]?_0x5ce96c[0x0]['id']:_0x2ca8b1(0x238);}catch(_0x966bce){return this[_0x2ca8b1(0x310)][_0x2ca8b1(0x30e)]({'errorMessage':_0x3bbccd(this[_0x2ca8b1(0x2fd)][_0x2ca8b1(0x275)],_0x2ca8b1(0x1e4)),'id':_0x441c86()}),this[_0x2ca8b1(0x357)](new _0x2f9ac0(_0x2ca8b1(0x2c6),this,{'error':_0x966bce})),this[_0x2ca8b1(0x310)][_0x2ca8b1(0x279)](!0x1),this[_0x2ca8b1(0x310)][_0x2ca8b1(0x216)](),null;}}[_0x2747dd(0x362)](_0x4be48b){const _0x1ba129=_0x2747dd;this[_0x1ba129(0x286)]['id']===_0x4be48b&&this[_0x1ba129(0x336)]();}[_0x2747dd(0x272)](){const _0x56bfe7=_0x2747dd;this[_0x56bfe7(0x286)]?.[_0x56bfe7(0x294)](_0x3bbccd(this[_0x56bfe7(0x2fd)][_0x56bfe7(0x275)],_0x56bfe7(0x2f8)));}async[_0x2747dd(0x26f)](){const _0x559ecc=_0x2747dd,_0x1b4841=this[_0x559ecc(0x25e)][_0x559ecc(0x1f5)]();this[_0x559ecc(0x286)]?.[_0x559ecc(0x244)](_0x1b4841),this[_0x559ecc(0x272)]();}[_0x2747dd(0x325)](){const _0x2a6cae=_0x2747dd;this[_0x2a6cae(0x286)]?.[_0x2a6cae(0x2ac)]();}[_0x2747dd(0x2c4)](){const _0x28bd9f=_0x2747dd;this[_0x28bd9f(0x310)][_0x28bd9f(0x2c4)]();}async[_0x2747dd(0x2b8)](){const _0x134892=_0x2747dd;await this[_0x134892(0x336)]();}async[_0x2747dd(0x36d)]({message:_0x55f310,attributes:_0x31f248}){const _0xe6b8ec=_0x2747dd;await this[_0xe6b8ec(0x27f)]({'userMessage':_0x55f310,'attributes':_0x31f248});}[_0x2747dd(0x2dd)](){const _0x2b2854=_0x2747dd,_0x381388=this[_0x2b2854(0x2fd)][_0x2b2854(0x330)][_0x2b2854(0x2be)](_0x2b2854(0x34d));if(!_0x381388)throw new _0x2f9ac0(_0x2b2854(0x1e6),this);return _0x381388;}async[_0x2747dd(0x336)](_0xd25225){const _0x3c90b9=_0x2747dd;try{this[_0x3c90b9(0x310)][_0x3c90b9(0x31d)](),await this[_0x3c90b9(0x22e)](_0xd25225);}catch(_0xa8bc9f){this[_0x3c90b9(0x310)][_0x3c90b9(0x30e)]({'errorMessage':_0x3bbccd(this[_0x3c90b9(0x2fd)][_0x3c90b9(0x275)],_0x3c90b9(0x1e5)),'id':_0xd25225||_0x441c86()}),console[_0x3c90b9(0x1e9)](_0xa8bc9f),this[_0x3c90b9(0x286)]=void 0x0,this[_0x3c90b9(0x310)][_0x3c90b9(0x216)]();}}async[_0x2747dd(0x22e)](_0x51d76d){const _0x14054f=_0x2747dd;let _0x298bc0;this[_0x14054f(0x2fd)][_0x14054f(0x2e2)][_0x14054f(0x287)](_0x14054f(0x2de))&&this[_0x14054f(0x2fd)][_0x14054f(0x2e2)][_0x14054f(0x2be)](_0x14054f(0x2de))[_0x14054f(0x303)](),_0x51d76d||!this[_0x14054f(0x286)]?_0x298bc0=this[_0x14054f(0x2fd)][_0x14054f(0x330)][_0x14054f(0x2be)](_0x14054f(0x316)):this[_0x14054f(0x310)][_0x14054f(0x2bb)]&&(_0x298bc0=this[_0x14054f(0x286)][_0x14054f(0x243)]['id']),await this[_0x14054f(0x1fd)]();const _0x3dbb86=this[_0x14054f(0x2dd)](),_0x37ec35=_0x51d76d||_0x441c86();this[_0x14054f(0x286)]=new _0x13f3a3({'connector':this[_0x14054f(0x241)],'chatModels':this[_0x14054f(0x2b2)],'selectedModelId':_0x298bc0,'conversationId':_0x37ec35,'group':_0x3dbb86,'getEditor':()=>_0x1edd1c(this[_0x14054f(0x2fd)]),'isFromHistory':!!_0x51d76d}),this[_0x14054f(0x286)][_0x14054f(0x2b9)](_0x14054f(0x314),_0x14054f(0x267))['to'](this),this[_0x14054f(0x286)]['on'](_0x14054f(0x295),(_0x4666f8,_0x1b7f58)=>{const _0x534093=_0x14054f;this[_0x534093(0x310)][_0x534093(0x1f0)](_0x1b7f58),this[_0x534093(0x310)][_0x534093(0x217)](),this[_0x534093(0x310)][_0x534093(0x2f1)](),this[_0x534093(0x310)][_0x534093(0x26a)](),_0x51d76d||(this[_0x534093(0x310)][_0x534093(0x201)](),this[_0x534093(0x272)]());}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2c0),(_0x5ae2be,_0x5a0b49)=>{const _0x271ccb=_0x14054f;this[_0x271ccb(0x310)][_0x271ccb(0x306)](_0x5a0b49[_0x271ccb(0x24b)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x231),(_0x74c564,_0x387826)=>{const _0x18fb8b=_0x14054f;this[_0x18fb8b(0x310)][_0x18fb8b(0x2dc)](_0x387826);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x308),()=>{const _0x308562=_0x14054f,_0x2d46ba=this[_0x308562(0x310)][_0x308562(0x24d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x308562(0x310)][_0x308562(0x218)](_0x2d46ba);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x27d),()=>{const _0x531e55=_0x14054f,_0x22ba2e=this[_0x531e55(0x310)][_0x531e55(0x24d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x531e55(0x310)][_0x531e55(0x218)](_0x22ba2e);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x273),(_0x36d802,_0x45f917)=>{const _0x48214f=_0x14054f;this[_0x48214f(0x310)][_0x48214f(0x2cd)](_0x45f917,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2ca),(_0x37b5d7,_0x38c3d6)=>{const _0x17807e=_0x14054f;this[_0x17807e(0x310)][_0x17807e(0x2cd)](_0x38c3d6,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x14054f(0x286)]['on'](_0x14054f(0x267),()=>{const _0x2a3633=_0x14054f;this[_0x2a3633(0x310)][_0x2a3633(0x24e)]();}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2a3),async()=>{const _0x3a1264=_0x14054f;await this[_0x3a1264(0x310)][_0x3a1264(0x313)]();}),this[_0x14054f(0x286)]['on'](_0x14054f(0x361),(_0x5a3fc2,_0x9e5520)=>{const _0x431469=_0x14054f;this[_0x431469(0x310)][_0x431469(0x25a)](_0x9e5520['id']);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x22c),(_0x2544ce,_0x3dda49,_0x344113)=>{const _0x4d4e15=_0x14054f;this[_0x4d4e15(0x27c)](_0x3dda49,_0x344113);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x34b),(_0x33db73,_0x4051a8)=>{const _0x3e0237=_0x14054f;_0x3e0237(0x2b0)===_0x4051a8[_0x3e0237(0x28b)]?this[_0x3e0237(0x310)][_0x3e0237(0x22b)](_0x4051a8):this[_0x3e0237(0x310)][_0x3e0237(0x312)](_0x4051a8);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2cf),async(_0x46d308,_0x57729e)=>{const _0x32e6bb=_0x14054f;await this[_0x32e6bb(0x349)]({'reply':_0x57729e});}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2e6),(_0x2def7b,{reply:_0x1c657f,index:_0xb14275,state:_0x26ff40})=>{const _0x2df477=_0x14054f;this[_0x2df477(0x310)][_0x2df477(0x23a)]({'id':_0x1c657f['id'],'index':_0xb14275,'state':_0x26ff40}),this[_0x2df477(0x2f0)]?.[_0x2df477(0x2e4)][_0x2df477(0x34a)](_0x1c657f['id'])&&this[_0x2df477(0x2f0)]?.[_0x2df477(0x1e7)]==_0xb14275&&this[_0x2df477(0x235)]?.[_0x2df477(0x343)](_0x26ff40);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2b7),(_0x55e935,_0x6bde9)=>{const _0x475051=_0x14054f;if(this[_0x475051(0x310)][_0x475051(0x2ee)](_0x6bde9[_0x475051(0x30a)],_0x6bde9[_0x475051(0x2f6)]),_0x475051(0x290)===_0x6bde9[_0x475051(0x30a)][_0x475051(0x28b)]){const _0x46d164=[..._0x1edd1c(this[_0x475051(0x2fd)])[_0x475051(0x360)][_0x475051(0x219)][_0x475051(0x290)][_0x475051(0x355)]()];this[_0x475051(0x25e)][_0x475051(0x29e)](_0x46d164,_0x475051(0x2d3)+this[_0x475051(0x286)]?.['id']);}}),this[_0x14054f(0x286)]['on'](_0x14054f(0x1eb),(_0x31e7cb,_0x52a9eb)=>{const _0x11c01=_0x14054f;this[_0x11c01(0x310)][_0x11c01(0x365)](_0x52a9eb[_0x11c01(0x35f)]),_0x11c01(0x248)==_0x52a9eb[_0x11c01(0x35f)]&&this[_0x11c01(0x325)](),_0x11c01(0x290)===_0x52a9eb[_0x11c01(0x28b)]&&this[_0x11c01(0x25e)][_0x11c01(0x2a6)](_0x11c01(0x2d3)+this[_0x11c01(0x286)]?.['id']);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2d8),(_0x516da2,_0x27ca92)=>{const _0x67da16=_0x14054f;this[_0x67da16(0x310)][_0x67da16(0x33f)](_0x27ca92[_0x67da16(0x30a)][_0x67da16(0x35f)],_0x27ca92[_0x67da16(0x2f6)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x249),(_0x3dacd9,_0x2dea76)=>{const _0xb7b43d=_0x14054f;this[_0xb7b43d(0x310)][_0xb7b43d(0x251)](_0x2dea76[_0xb7b43d(0x278)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x205),(_0x2091de,_0x410a23)=>{const _0x4d59a9=_0x14054f;this[_0x4d59a9(0x310)][_0x4d59a9(0x265)](_0x410a23[_0x4d59a9(0x332)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x20b),(_0x46e6d0,_0x369660)=>{const _0x5cced1=_0x14054f;this[_0x5cced1(0x310)][_0x5cced1(0x2db)](_0x369660[_0x5cced1(0x271)],_0x369660[_0x5cced1(0x30f)],_0x369660[_0x5cced1(0x318)],_0x369660[_0x5cced1(0x262)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2f7),(_0x3574fa,_0x235415)=>{const _0x2b343f=_0x14054f;this[_0x2b343f(0x310)][_0x2b343f(0x269)](_0x235415[_0x2b343f(0x271)],_0x235415[_0x2b343f(0x2ce)],_0x235415[_0x2b343f(0x35c)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2ba),(_0x500d72,_0x5bd06d)=>{const _0x4d39e9=_0x14054f;this[_0x4d39e9(0x310)][_0x4d39e9(0x34f)](_0x5bd06d);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x282),async(_0xa07b7c,_0x122137)=>{const _0xe53a56=_0x14054f,_0x36d362=(await this[_0xe53a56(0x2b2)][_0xe53a56(0x23b)]())[_0xe53a56(0x36c)](_0x1c554e=>_0x1c554e['id']===_0x122137[_0xe53a56(0x243)]?.['id'])||null;this[_0xe53a56(0x310)][_0xe53a56(0x211)](_0x36d362,_0x122137[_0xe53a56(0x204)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x1e9),(_0x2085bd,{error:_0x36b43b,interactionId:_0x54bc4e,fileName:_0x4a332b,url:_0xc1a559,sourceId:_0x408979,sourceLabel:_0x33497e})=>{const _0x290d68=_0x14054f,_0x265e00=_0x54bc4e?_0x54bc4e+':'+_0x441c86():_0x441c86();_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x34e))?this[_0x290d68(0x310)][_0x290d68(0x280)]({'staticMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x25d)),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x2c6))||_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x30c))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x1e5)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x237))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x2e3),_0x4a332b),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x246))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x322),_0xc1a559),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x257))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x256)),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x29b))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x32f)),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x342))?(_0x408979&&this[_0x290d68(0x310)][_0x290d68(0x291)](_0x408979),this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x304),_0x33497e||_0x290d68(0x30f)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x2e9))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x2d7)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x29a))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x20c)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x2fa))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x22d)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x356))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x2f2)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x1fb))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x26b)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x30d))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x345)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x35a)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b));}),await this[_0x14054f(0x286)][_0x14054f(0x20d)](this[_0x14054f(0x2fd)][_0x14054f(0x330)][_0x14054f(0x2be)](_0x14054f(0x2eb))),_0x51d76d||await this[_0x14054f(0x286)][_0x14054f(0x2ae)]();}async[_0x2747dd(0x27f)]({userMessage:_0x4d09ee,attributes:_0x1053ac}){const _0x47d9dc=_0x2747dd;if(!this[_0x47d9dc(0x286)])throw new _0x2f9ac0(_0x47d9dc(0x2d6));if(this[_0x47d9dc(0x286)][_0x47d9dc(0x2b4)]()){const _0x1b4187=await this[_0x47d9dc(0x25e)][_0x47d9dc(0x2ef)]();await this[_0x47d9dc(0x286)][_0x47d9dc(0x2aa)](_0x1b4187);}this[_0x47d9dc(0x286)]['id']&&this[_0x47d9dc(0x286)][_0x47d9dc(0x253)]&&await this[_0x47d9dc(0x286)][_0x47d9dc(0x311)]({'userMessage':_0x4d09ee,'attributes':_0x1053ac});}[_0x2747dd(0x274)](){const _0x1e1e1e=_0x2747dd;console[_0x1e1e1e(0x36f)](_0x1e1e1e(0x232));}[_0x2747dd(0x260)](_0x51b3b2){const _0x309683=_0x2747dd;this[_0x309683(0x310)][_0x309683(0x220)](_0x51b3b2);}[_0x2747dd(0x357)](_0x34103c){const _0x84fe6=_0x2747dd;_0x4adf39(_0x34103c[_0x84fe6(0x25b)]);}[_0x2747dd(0x258)](_0x5e873e){const _0x1554d9=_0x2747dd;this[_0x1554d9(0x286)]?.[_0x1554d9(0x320)](_0x5e873e);}[_0x2747dd(0x206)](){const _0x4f4be5=_0x2747dd;this[_0x4f4be5(0x286)]?.[_0x4f4be5(0x25c)]();}[_0x2747dd(0x270)](){const _0x57c279=_0x2747dd;this[_0x57c279(0x286)]?.[_0x57c279(0x31f)]();}[_0x2747dd(0x319)](_0x5958a3){const _0x1ded7c=_0x2747dd,[_0xc7962e,_0x4c3a56]=_0x5958a3[_0x1ded7c(0x227)](':'),_0x1f4149=this[_0x1ded7c(0x286)][_0x1ded7c(0x1ff)](_0xc7962e),_0x5541e5=_0x1f4149[_0x1ded7c(0x337)](_0x4c3a56);return{'interaction':_0x1f4149,'reply':_0x5541e5};}[_0x2747dd(0x298)](_0x54161d,_0xc94e9=!0x1){const _0x314ff5=_0x2747dd,_0x3c2473=_0x1edd1c(this[_0x314ff5(0x2fd)]),_0x458d6e={'target':_0x3c2473[_0x314ff5(0x352)][_0x314ff5(0x2ea)][_0x314ff5(0x263)][_0x314ff5(0x1ed)](_0x3c2473[_0x314ff5(0x352)][_0x314ff5(0x2d0)][_0x314ff5(0x228)](_0x54161d)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xc94e9};_0xc94e9&&(_0x458d6e[_0x314ff5(0x2d1)]=!0x0),_0x26977c(_0x458d6e);}[_0x2747dd(0x27c)](_0x55eac9,_0x56baec=!0x1){const _0x15be4c=_0x2747dd;this[_0x15be4c(0x310)][_0x15be4c(0x22c)](_0x55eac9||_0x3bbccd(this[_0x15be4c(0x2fd)][_0x15be4c(0x275)],_0x15be4c(0x2ed)),_0x56baec);}async[_0x2747dd(0x349)]({reply:_0x4bc9cb,renderingStrategy:_0x247da1}){const _0x25b4e7=_0x2747dd,{id:_0x5a476d,interactionId:_0x5b4ed5,isDone:_0x45ed13,type:_0x231797,parsedContent:_0x1e1d93}=_0x4bc9cb,_0x5333c2=_0x5b4ed5+':'+_0x5a476d;if(_0x25b4e7(0x1f6)===_0x231797){const _0x4b2816=_0x4bc9cb[_0x25b4e7(0x203)]({'showDiff':this[_0x25b4e7(0x310)][_0x25b4e7(0x2f5)]});await this[_0x25b4e7(0x310)][_0x25b4e7(0x230)]({'id':_0x5333c2,'parts':_0x4b2816,'renderingStrategy':_0x247da1,'isDone':_0x45ed13});}else _0x25b4e7(0x2b0)===_0x231797&&await this[_0x25b4e7(0x310)][_0x25b4e7(0x215)]({'id':_0x5333c2,'parsedContent':_0x1e1d93,'renderingStrategy':_0x247da1,'isDone':_0x45ed13});_0x45ed13&&_0x4bc9cb[_0x25b4e7(0x32e)][_0x25b4e7(0x1e8)]>0x0&&this[_0x25b4e7(0x310)][_0x25b4e7(0x21d)](_0x5333c2,_0x4bc9cb[_0x25b4e7(0x32e)]);}async[_0x2747dd(0x1fd)](){const _0x32c10f=_0x2747dd,_0xcbc6a9=this[_0x32c10f(0x286)]?.[_0x32c10f(0x302)];_0xcbc6a9&&(_0xcbc6a9[_0x32c10f(0x358)](),this[_0x32c10f(0x310)][_0x32c10f(0x2c3)](_0xcbc6a9));}async[_0x2747dd(0x35b)](){const _0x4d6957=_0x2747dd,_0x4594bf=this[_0x4d6957(0x286)]?.[_0x4d6957(0x302)];if(_0x4594bf){for await(const _0x5c47d7 of _0x4594bf[_0x4d6957(0x32c)])await this[_0x4d6957(0x349)]({'reply':_0x5c47d7,'renderingStrategy':_0x4d6957(0x2cc)});}}[_0x2747dd(0x284)](_0x180eeb){const _0x514440=_0x2747dd,_0x50d871={'positiveCount':_0x180eeb[_0x514440(0x2fe)][_0x514440(0x261)](_0x2b3424=>_0x514440(0x2a5)===_0x2b3424[_0x514440(0x2b6)])[_0x514440(0x1e8)],'totalCount':_0x180eeb[_0x514440(0x2fe)][_0x514440(0x1e8)],'modificationId':_0x180eeb['id']},_0x2b47d1=this[_0x514440(0x286)][_0x514440(0x1ff)](_0x180eeb[_0x514440(0x296)])[_0x514440(0x2b3)];_0x2b47d1&&this[_0x514440(0x241)][_0x514440(0x240)](this[_0x514440(0x286)]['id'],_0x2b47d1,_0x50d871);}[_0x2747dd(0x2f3)](_0x501474){const _0x4ae38b=_0x2747dd;let _0x15b4d1=null,_0x5ce051=null;this['on'](_0x4ae38b(0x314),(_0x31cd8b,_0x2dbb4b,_0x5d99df)=>{const _0x24095a=_0x4ae38b;_0x5d99df['id']!==_0x15b4d1&&(_0x15b4d1=_0x5d99df['id'],_0x5ce051=this[_0x24095a(0x340)](_0x5d99df)),_0x501474(_0x2dbb4b,_0x5ce051);});}[_0x2747dd(0x340)](_0x3ea4a5){const _0x59ff9f=_0x2747dd,_0x47c7ac=this[_0x59ff9f(0x310)],_0x1964b7=()=>{const _0x439da6=_0x59ff9f;_0x3ea4a5[_0x439da6(0x31a)](),_0x3ea4a5[_0x439da6(0x331)](),_0x47c7ac[_0x439da6(0x2a9)]();},_0x423d63=()=>{const _0x42b49c=_0x59ff9f;_0x3ea4a5[_0x42b49c(0x24c)]&&(_0x3ea4a5[_0x42b49c(0x24c)][_0x42b49c(0x348)](),_0x3ea4a5[_0x42b49c(0x24c)]=void 0x0);};return{'insertTextReply':(_0x501c28,_0x4ff7e8)=>{const _0x23d18d=_0x59ff9f;_0x423d63(),_0x1964b7();const _0x20e463=_0x3ea4a5[_0x23d18d(0x24c)]=_0x3ea4a5[_0x23d18d(0x31c)]({'type':_0x23d18d(0x2b0),'interactionId':_0x3ea4a5['id'],'content':_0x501c28,'id':_0x4ff7e8||_0x441c86()});return _0x423d63(),_0x20e463;},'insertCustomElement':async(_0xf1815f,_0x343ffd)=>(_0x423d63(),_0x1964b7(),_0x47c7ac[_0x59ff9f(0x363)](_0xf1815f,_0x343ffd||_0x441c86())),'setLoadingMessage':_0x54786e=>{const _0xf10a36=_0x59ff9f;_0x47c7ac[_0xf10a36(0x218)](_0x54786e);},'clearLoadingMessage':()=>{const _0x44d873=_0x59ff9f;_0x47c7ac[_0x44d873(0x2a9)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x371550=_0x2cfd;(function(_0x2f0c50,_0x3bc0ff){const _0x5cdb94=_0x2cfd,_0x403c23=_0x2f0c50();while(!![]){try{const _0x49784f=parseInt(_0x5cdb94(0x281))/0x1*(-parseInt(_0x5cdb94(0x1fe))/0x2)+parseInt(_0x5cdb94(0x1e3))/0x3*(-parseInt(_0x5cdb94(0x206))/0x4)+-parseInt(_0x5cdb94(0x257))/0x5*(parseInt(_0x5cdb94(0x1fa))/0x6)+-parseInt(_0x5cdb94(0x21d))/0x7*(parseInt(_0x5cdb94(0x1f1))/0x8)+parseInt(_0x5cdb94(0x21f))/0x9+-parseInt(_0x5cdb94(0x23f))/0xa+parseInt(_0x5cdb94(0x20c))/0xb;if(_0x49784f===_0x3bc0ff)break;else _0x403c23['push'](_0x403c23['shift']());}catch(_0x3dfe9c){_0x403c23['push'](_0x403c23['shift']());}}}(_0x6dc5,0x5987a));import{ContextPlugin as _0x1d0f1f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5d2f19}from'ckeditor5/src/utils.js';import{AIChatView as _0x3a4af7}from'./ui/aichatview.js';import{AITabs as _0xac0f71}from'../aitabs/aitabs.js';function _0x6dc5(){const _0x298d5a=['AI_CHAT_FEED_LOADING_MESSAGE_REASONING','custom-element','closeSourceResourceBalloon','clear','AI_CHAT_WELCOME_MESSAGE','isReasoningEnabled','clearPendingContextUI','enableControls','_interactionPromiseResolver','stopInteraction','chatControls','_titleAnimationInterval','63400jwgwBc','disableControls','isOfficialPlugin','addFeedItemUserMessage','setConversationTitle','find','_promiseQueue','isVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','_animateConversationTitle','interaction-header','updateSuggestionPartState','scrollToSuggestion','isBusy','updateFeedItemAIReplySources','updateFeedItemAIReplySuggestionContent','isDisabled','fire','isTrackChangesOn','chatHeader','isModelAvailable','isPremiumPlugin','setReasoning','addItem','124720UInRwL','isPending','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','displayedPrompt','ai.chat.welcomeMessage','get','from','removeFeedItem','updateFeedItemAIReplySuggestionPartState','prepareLoadingMessage','updateReplyItem','addFeedItemAISuggestion','context','setWebSearch','setContextItemLoading','delegate','contextItems','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','capabilities','ai.chat.context.searchInputVisibleFrom','addFeedInteractionHeader','config','removeItem','showDiff','addTab','setModelList','addFeedItemError','AI_CHAT_HEADING','chat','resetMessageInput','startInteraction','filter','abort','toggleLoadingSkeleton','attributes','updateCapabilities','AIChatUI','children','setFeedItemAIReplySuggestionPartActive','hasItem','remove','markFeedItemAsDone','7624XvdaBD','setConversationContext','forEach','updateWebSources','ai.models.showModelSelector','trackChanges','bind','addContextItem','populateSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','<p>','isWebSearchEnabled','interactionId','options','toggleSuggestionDisplayMode','createConversation','finishInteraction','values','areActionsDisabled','hasFeedItem','clearLoadingMessage','</p>','2658wEGjlr','setSelectedModel','last','addFeedItemAIReply','queueEmptyPromise','showResizeButton','view','setModel','plugins','isMaximized','ai.availableReplyActions','setPromptInputValue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','insertSuggestion','3518072SDSHhu','_view','error-message','resetConversationTitle','ai-suggestion-reply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','stopAutoScroll','commands','ai-reply','24ZWNeOe','destroy','addFeedItemCustomElement','setSuggestionPartActive','78vWwQHU','TrackChanges','markItemAsDone','has','userMessage','requires','isLoading','streaming','128UWfLZs','label','_getInputPlaceholder','value','updateSuggestionItem','startsWith','11516725jOvhfJ','conversation-start','length','_isTrackChangesCommandValueBound','clearConversationContextUI','setLoadingMessage','updateResourceState','setAddContextOptions','feedItemRenderingStrategy','conversationCreated','renderingStrategy','removeContextItem','chatFeed','availableModels','startAutoScroll','setInputPlaceholder','addFeedItemStaticMessage','7iAwUas','pluginName','1721718pMnbGq','isDone','scrollFeedToSuggestion','set','enqueue','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplyContent','removeFeedInteraction','setIsMaximized','setFeedItemRenderingStrategy','focusPromptInput','updateFeedInteractionHeader','disableModelSelector','getItemIds','locale','setIsUploadInProgress','then','AITabs','user-message'];_0x6dc5=function(){return _0x298d5a;};return _0x6dc5();}import{getTranslation as _0x1aecdb}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3c43f7}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x19b61b}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2cfd(_0x358a1a,_0x38994f){const _0x6dc5e9=_0x6dc5();return _0x2cfd=function(_0x2cfd0c,_0xdb29cb){_0x2cfd0c=_0x2cfd0c-0x1e1;let _0x4db65e=_0x6dc5e9[_0x2cfd0c];return _0x4db65e;},_0x2cfd(_0x358a1a,_0x38994f);}import{PromiseQueue as _0xce8bbf}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x52cbbc}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xd538e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5970c4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1d0f1f{static get[_0x371550(0x203)](){return[_0xac0f71];}[_0x371550(0x1f2)];static get[_0x371550(0x21e)](){const _0x56ab75=_0x371550;return _0x56ab75(0x27b);}static get[_0x371550(0x241)](){return!0x0;}static get[_0x371550(0x254)](){return!0x0;}[_0x371550(0x214)]=_0x371550(0x205);[_0x371550(0x26e)]=!0x0;[_0x371550(0x245)];[_0x371550(0x23b)];[_0x371550(0x23e)]=void 0x0;[_0x371550(0x20f)]=!0x1;constructor(_0xf4c829){const _0xea671=_0x371550;super(_0xf4c829);const _0x1ff5b1=this[_0xea671(0x263)][_0xea671(0x1eb)][_0xea671(0x25c)](_0xea671(0x231));this[_0xea671(0x222)](_0xea671(0x24c),!0x1),this[_0xea671(0x245)]=new _0xce8bbf(),this[_0xea671(0x1f2)]=new _0x3a4af7(this[_0xea671(0x263)][_0xea671(0x22e)],{'showResizeButton':_0x1ff5b1[_0xea671(0x1e8)],'contextResourcesSearchInputVisibleFrom':this[_0xea671(0x263)][_0xea671(0x26c)][_0xea671(0x25c)](_0xea671(0x26a))}),this[_0xea671(0x1f2)][_0xea671(0x266)](..._0x52cbbc)['to'](this),this[_0xea671(0x1f2)]['on'](_0xea671(0x28f),(_0x3df196,{showDiff:_0x5a1b55})=>{const _0x5aa1b6=_0xea671;this[_0x5aa1b6(0x26e)]=_0x5a1b55;}),_0x1ff5b1[_0xea671(0x1e9)][_0xea671(0x26f)]({'id':_0xea671(0x273),'buttonLabel':_0x1aecdb(this[_0xea671(0x263)][_0xea671(0x22e)],_0xea671(0x272)),'buttonIcon':_0x3c43f7,'order':0x0,'content':this[_0xea671(0x1f2)]}),this[_0xea671(0x1f2)][_0xea671(0x23d)][_0xea671(0x287)](_0xea671(0x204))['to'](this,_0xea671(0x24c),_0x2cde52=>_0x2cde52),this[_0xea671(0x1f2)][_0xea671(0x218)][_0xea671(0x287)](_0xea671(0x258))['to'](this,_0xea671(0x24c),_0x2322a0=>_0x2322a0),this[_0xea671(0x1f2)][_0xea671(0x23d)][_0xea671(0x21b)](this[_0xea671(0x208)]()),this[_0xea671(0x287)](_0xea671(0x253))['to'](this[_0xea671(0x1f2)][_0xea671(0x23d)],_0xea671(0x253));}[_0x371550(0x1fb)](){const _0x4f6187=_0x371550;super[_0x4f6187(0x1fb)](),this[_0x4f6187(0x23e)]&&clearInterval(this[_0x4f6187(0x23e)]);}[_0x371550(0x290)](_0x2fa347){const _0x237938=_0x371550,_0x3b6f58=this[_0x237938(0x263)][_0x237938(0x26c)][_0x237938(0x25c)](_0x237938(0x25b))??_0x1aecdb(this[_0x237938(0x263)][_0x237938(0x22e)],_0x237938(0x237));this[_0x237938(0x1f2)][_0x237938(0x218)][_0x237938(0x236)](),this[_0x237938(0x1f2)][_0x237938(0x23d)][_0x237938(0x224)](),this[_0x237938(0x1f2)][_0x237938(0x23d)][_0x237938(0x270)](_0x2fa347[_0x237938(0x219)],!this[_0x237938(0x263)][_0x237938(0x26c)][_0x237938(0x25c)](_0x237938(0x285))),this[_0x237938(0x21c)]({'id':_0x237938(0x20d),'staticMessage':_0x3b6f58}),this[_0x237938(0x250)](_0x237938(0x215));}[_0x371550(0x21c)]({id:_0x533aa4,staticMessage:_0x1fa86b}){const _0x6e5670=_0x371550;this[_0x6e5670(0x1f2)][_0x6e5670(0x218)][_0x6e5670(0x256)](_0x6e5670(0x1f9),{'id':_0x533aa4,'initialContent':_0x6e5670(0x28b)+_0x1fa86b+_0x6e5670(0x1e2)});}[_0x371550(0x242)](_0x31f19f){const _0x2091c3=_0x371550,_0x456845=_0x31f19f[_0x2091c3(0x279)]?.[_0x2091c3(0x25a)]||_0x31f19f[_0x2091c3(0x202)];this[_0x2091c3(0x1f2)][_0x2091c3(0x218)][_0x2091c3(0x256)](_0x2091c3(0x232),{'contextItems':Array[_0x2091c3(0x25d)](_0x31f19f[_0x2091c3(0x267)][_0x2091c3(0x292)]()),'initialContent':_0x2091c3(0x28b)+_0x456845+_0x2091c3(0x1e2),'id':_0x31f19f['id']});}[_0x371550(0x271)]({errorMessage:_0x3297a4,id:_0xea70a0}){const _0x502749=_0x371550;this[_0x502749(0x1f2)][_0x502749(0x218)][_0x502749(0x256)](_0x502749(0x1f3),{'initialContent':_0x502749(0x28b)+_0x3297a4+_0x502749(0x1e2),'id':_0xea70a0});}[_0x371550(0x1e6)](_0x53ca86){const _0x138e30=_0x371550;return this[_0x138e30(0x245)][_0x138e30(0x223)](async()=>{const _0x5be332=_0x138e30;this[_0x5be332(0x1f2)][_0x5be332(0x218)][_0x5be332(0x256)](_0x5be332(0x1f9),{'id':_0x53ca86[_0x5be332(0x28d)]+':'+_0x53ca86['id']}),this[_0x5be332(0x1e1)]();});}async[_0x371550(0x262)](_0x5393ef){const _0x2af656=_0x371550,_0x522fd9=_0xd538e(this[_0x2af656(0x263)]);let _0x1a813c=_0x522fd9[_0x2af656(0x26c)][_0x2af656(0x25c)](_0x2af656(0x1ed))||[..._0x5970c4];if(_0x522fd9[_0x2af656(0x1eb)][_0x2af656(0x201)](_0x2af656(0x1ff))){if(!this[_0x2af656(0x20f)]){this[_0x2af656(0x20f)]=!0x0;const _0x11b452=_0x522fd9[_0x2af656(0x1f8)][_0x2af656(0x25c)](_0x2af656(0x286));this[_0x2af656(0x1f2)][_0x2af656(0x218)][_0x2af656(0x287)](_0x2af656(0x251))['to'](_0x11b452,_0x2af656(0x209));}}else _0x1a813c=_0x1a813c[_0x2af656(0x276)](_0xa7ee81=>_0x2af656(0x1f0)!=_0xa7ee81);return this[_0x2af656(0x245)][_0x2af656(0x223)](async()=>{const _0x4c80aa=_0x2af656;this[_0x4c80aa(0x1f2)][_0x4c80aa(0x218)][_0x4c80aa(0x256)](_0x4c80aa(0x1f5),{'id':_0x5393ef[_0x4c80aa(0x28d)]+':'+_0x5393ef['id'],'areActionsDisabled':_0x5393ef[_0x4c80aa(0x293)],'showDiff':this[_0x4c80aa(0x26e)],'availableActions':_0x1a813c}),this[_0x4c80aa(0x1e1)]();});}[_0x371550(0x26b)](_0xdc8df3,_0x3c5664){const _0x2bd4b0=_0x371550,_0x30329d=this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x27c)][_0x2bd4b0(0x1e5)];if(_0x30329d instanceof _0x19b61b)return this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x27c)][_0x2bd4b0(0x27f)](_0x30329d),void this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x256)](_0x2bd4b0(0x249),{'id':_0xdc8df3['id'],'capabilities':{'isWebSearchEnabled':_0x30329d[_0x2bd4b0(0x269)][_0x2bd4b0(0x28c)]||_0x3c5664[_0x2bd4b0(0x28c)],'isReasoningEnabled':_0x30329d[_0x2bd4b0(0x269)][_0x2bd4b0(0x238)]||_0x3c5664[_0x2bd4b0(0x238)]}});this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x256)](_0x2bd4b0(0x249),{'id':_0xdc8df3['id'],'capabilities':_0x3c5664});}async[_0x371550(0x1fc)](_0x15637e,_0x4e268f){const _0x49795f=_0x371550;let _0x20d5a9;return await this[_0x49795f(0x245)][_0x49795f(0x223)](async()=>{const _0x18f6ab=_0x49795f;_0x20d5a9=this[_0x18f6ab(0x1f2)][_0x18f6ab(0x218)][_0x18f6ab(0x256)](_0x18f6ab(0x234),{'content':_0x15637e,'id':_0x4e268f});}),_0x20d5a9;}[_0x371550(0x25e)](_0x58bd3e){const _0x218e91=_0x371550;this[_0x218e91(0x1f2)][_0x218e91(0x218)][_0x218e91(0x26d)](_0x58bd3e);}[_0x371550(0x294)](_0x585937){const _0x389a2b=_0x371550;return this[_0x389a2b(0x1f2)][_0x389a2b(0x218)][_0x389a2b(0x27e)](_0x585937);}[_0x371550(0x22b)](_0x1608da){const _0x5ebcc5=_0x371550,_0x254200=this[_0x5ebcc5(0x1f2)][_0x5ebcc5(0x218)][_0x5ebcc5(0x27c)][_0x5ebcc5(0x244)](_0x1d6a5c=>_0x1d6a5c[_0x5ebcc5(0x28e)]['id']==_0x1608da['id']&&_0x1d6a5c instanceof _0x19b61b);_0x254200&&_0x254200[_0x5ebcc5(0x222)](_0x5ebcc5(0x246),_0x1608da[_0x5ebcc5(0x246)]);}async[_0x371550(0x226)](_0x543292){const _0x521aaa=_0x371550,_0x42f198=_0x543292[_0x521aaa(0x216)]||this[_0x521aaa(0x214)];return this[_0x521aaa(0x245)][_0x521aaa(0x223)](async _0x26ab6e=>{const _0x398737=_0x521aaa;await this[_0x398737(0x1f2)][_0x398737(0x218)][_0x398737(0x261)]({..._0x543292,'abortSignal':_0x26ab6e,'renderingStrategy':_0x42f198}),_0x543292[_0x398737(0x220)]&&this[_0x398737(0x280)](_0x543292['id']);});}[_0x371550(0x24d)](_0x58b401,_0x1bf69c){const _0x2d66b0=_0x371550;this[_0x2d66b0(0x1f2)][_0x2d66b0(0x218)][_0x2d66b0(0x284)](_0x58b401,_0x1bf69c);}async[_0x371550(0x24e)](_0x274bd4){const _0x4a12ac=_0x371550,_0x210f99=_0x274bd4[_0x4a12ac(0x216)]||this[_0x4a12ac(0x214)];return this[_0x4a12ac(0x245)][_0x4a12ac(0x223)](async _0x408d55=>{const _0x350481=_0x4a12ac;await this[_0x350481(0x1f2)][_0x350481(0x218)][_0x350481(0x20a)]({..._0x274bd4,'abortSignal':_0x408d55,'renderingStrategy':_0x210f99}),_0x274bd4[_0x350481(0x220)]&&this[_0x350481(0x280)](_0x274bd4['id']);});}[_0x371550(0x25f)](_0xf64b5){const _0x5cc946=_0x371550;this[_0x5cc946(0x1f2)][_0x5cc946(0x218)][_0x5cc946(0x24a)](_0xf64b5);}[_0x371550(0x27d)](_0x5f0019){const _0x21d89b=_0x371550;this[_0x21d89b(0x1f2)][_0x21d89b(0x218)][_0x21d89b(0x1fd)](_0x5f0019);}[_0x371550(0x280)](_0x3ea85c){const _0x4d4189=_0x371550;this[_0x4d4189(0x1f2)][_0x4d4189(0x218)][_0x4d4189(0x200)](_0x3ea85c);}[_0x371550(0x227)](_0x4bf460){const _0x402899=_0x371550;this[_0x402899(0x1f2)][_0x402899(0x218)][_0x402899(0x22d)]()[_0x402899(0x276)](_0x1c8554=>_0x1c8554[_0x402899(0x20b)](_0x4bf460))[_0x402899(0x283)](_0x42c989=>this[_0x402899(0x1f2)][_0x402899(0x218)][_0x402899(0x26d)](_0x42c989));}[_0x371550(0x275)](){const _0x1e4851=_0x371550,_0x10cbe8=this[_0x1e4851(0x260)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1e4851(0x211)](_0x10cbe8),this[_0x1e4851(0x1f2)][_0x1e4851(0x23d)][_0x1e4851(0x22c)](!this[_0x1e4851(0x263)][_0x1e4851(0x26c)][_0x1e4851(0x25c)](_0x1e4851(0x285))),this[_0x1e4851(0x24c)]=!0x0,this[_0x1e4851(0x1f2)][_0x1e4851(0x218)][_0x1e4851(0x21a)]();}[_0x371550(0x23c)](_0x322e76){const _0x303809=_0x371550;this[_0x303809(0x245)][_0x303809(0x277)](),this[_0x303809(0x1f2)][_0x303809(0x218)][_0x303809(0x22d)]()[_0x303809(0x276)](_0x5e53f2=>_0x5e53f2[_0x303809(0x20b)](_0x322e76['id']))[_0x303809(0x283)](_0x5c7660=>this[_0x303809(0x280)](_0x5c7660)),this[_0x303809(0x24c)]=!0x1,this[_0x303809(0x1f2)][_0x303809(0x218)][_0x303809(0x1f7)]();}async[_0x371550(0x291)](){const _0x4125df=_0x371550;return this[_0x4125df(0x245)][_0x4125df(0x1e7)][_0x4125df(0x230)](()=>{const _0xbb12dc=_0x4125df;this[_0xbb12dc(0x24c)]=!0x1,this[_0xbb12dc(0x1f2)][_0xbb12dc(0x218)][_0xbb12dc(0x1f7)]();});}[_0x371550(0x288)](_0x170a19,_0x1dda81){const _0x4871d2=_0x371550;this[_0x4871d2(0x1f2)][_0x4871d2(0x23d)][_0x4871d2(0x288)](_0x170a19,_0x1dda81);}[_0x371550(0x217)](_0x4bf696){const _0x22192f=_0x371550;this[_0x22192f(0x1f2)][_0x22192f(0x23d)][_0x22192f(0x217)](_0x4bf696);}[_0x371550(0x265)](_0x5a46cd,_0x154628){const _0xe7cbf7=_0x371550;this[_0xe7cbf7(0x1f2)][_0xe7cbf7(0x23d)][_0xe7cbf7(0x265)](_0x5a46cd,_0x154628);}[_0x371550(0x22f)](_0x17b056){const _0x8f1828=_0x371550;this[_0x8f1828(0x1f2)][_0x8f1828(0x23d)][_0x8f1828(0x22f)](_0x17b056);}[_0x371550(0x282)](_0x9f3262){const _0x38deac=_0x371550;this[_0x38deac(0x1f2)][_0x38deac(0x23d)][_0x38deac(0x282)](_0x9f3262);}[_0x371550(0x239)](){const _0x3f131f=_0x371550;this[_0x3f131f(0x1f2)][_0x3f131f(0x23d)][_0x3f131f(0x239)]();}[_0x371550(0x210)](){const _0x5b2b7a=_0x371550;this[_0x5b2b7a(0x1f2)][_0x5b2b7a(0x23d)][_0x5b2b7a(0x210)]();}[_0x371550(0x212)](_0x5304b8,_0x200473,_0x53f803){const _0x36b809=_0x371550;this[_0x36b809(0x1f2)][_0x36b809(0x23d)][_0x36b809(0x212)](_0x5304b8,_0x200473,_0x53f803);}[_0x371550(0x274)](){const _0x2aacd8=_0x371550;this[_0x2aacd8(0x1f2)][_0x2aacd8(0x23d)][_0x2aacd8(0x274)](),this[_0x2aacd8(0x1f2)][_0x2aacd8(0x23d)][_0x2aacd8(0x21b)](this[_0x2aacd8(0x208)]());}[_0x371550(0x213)](_0x325298){const _0x84c6b0=_0x371550;this[_0x84c6b0(0x1f2)][_0x84c6b0(0x23d)][_0x84c6b0(0x213)](_0x325298);}[_0x371550(0x27a)](_0x53af0e){const _0x4d1f00=_0x371550;this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x264)](_0x53af0e[_0x4d1f00(0x28c)]),this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x255)](_0x53af0e[_0x4d1f00(0x238)]),this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x21b)](this[_0x4d1f00(0x208)](_0x53af0e));}[_0x371550(0x1e4)](_0x170978,_0x545ccd){const _0x5b3226=_0x371550;this[_0x5b3226(0x1f2)][_0x5b3226(0x23d)][_0x5b3226(0x1ea)](_0x170978),_0x545ccd&&this[_0x5b3226(0x1f2)][_0x5b3226(0x23d)][_0x5b3226(0x22c)](!0x1);}[_0x371550(0x229)](_0x2cb039){const _0xdd5130=_0x371550;this[_0xdd5130(0x214)]=_0x2cb039;}[_0x371550(0x278)](_0x173914){const _0x5278da=_0x371550;this[_0x5278da(0x1f2)][_0x5278da(0x218)][_0x5278da(0x278)](_0x173914);}[_0x371550(0x1f4)](){const _0x2d3378=_0x371550;this[_0x2d3378(0x243)](_0x1aecdb(this[_0x2d3378(0x263)][_0x2d3378(0x22e)],_0x2d3378(0x272)));}[_0x371550(0x243)](_0x5bdbc5,_0x249258=!0x1){const _0x306e73=_0x371550;if(_0x249258&&!_0x5d2f19()&&_0x5bdbc5[_0x306e73(0x20e)])return this[_0x306e73(0x1f2)][_0x306e73(0x252)][_0x306e73(0x207)]='',void this[_0x306e73(0x248)](_0x5bdbc5);this[_0x306e73(0x1f2)][_0x306e73(0x252)][_0x306e73(0x207)]=_0x5bdbc5;}[_0x371550(0x211)](_0x240a0b){const _0x33c4ff=_0x371550;this[_0x33c4ff(0x1f2)][_0x33c4ff(0x218)][_0x33c4ff(0x211)](_0x240a0b);}[_0x371550(0x1e1)](){const _0x47164b=_0x371550;this[_0x47164b(0x1f2)][_0x47164b(0x218)][_0x47164b(0x211)]('');}[_0x371550(0x248)](_0x127bbb){const _0x506b26=_0x371550;let _0x23e78a=0x0;clearInterval(this[_0x506b26(0x23e)]),this[_0x506b26(0x23e)]=setInterval(()=>{const _0x1175ff=_0x506b26;this[_0x1175ff(0x1f2)][_0x1175ff(0x252)][_0x1175ff(0x207)]=this[_0x1175ff(0x1f2)][_0x1175ff(0x252)][_0x1175ff(0x207)]+_0x127bbb[_0x23e78a],_0x23e78a++,_0x23e78a===_0x127bbb[_0x1175ff(0x20e)]&&clearInterval(this[_0x1175ff(0x23e)]);},0x1e);}[_0x371550(0x228)](_0x2277d2){const _0x3bd073=_0x371550;this[_0x3bd073(0x1f2)][_0x3bd073(0x252)][_0x3bd073(0x1ec)]=_0x2277d2;}[_0x371550(0x260)](_0x5982c6){const _0x2ac5a4=_0x371550;return _0x5982c6[_0x2ac5a4(0x28c)]&&_0x5982c6[_0x2ac5a4(0x238)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x247)):_0x5982c6[_0x2ac5a4(0x28c)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x268)):_0x5982c6[_0x2ac5a4(0x238)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x233)):_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x28a));}[_0x371550(0x208)](_0x163c33){const _0x596096=_0x371550;return _0x163c33?_0x163c33[_0x596096(0x28c)]&&_0x163c33[_0x596096(0x238)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x225)):_0x163c33[_0x596096(0x28c)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x1f6)):_0x163c33[_0x596096(0x238)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x1ef)):_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x259)):_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x259));}[_0x371550(0x289)](_0x3052bd,_0x29f880,_0xfc6fae,_0x5c1148){const _0x3b6278=_0x371550;this[_0x3b6278(0x1f2)][_0x3b6278(0x289)](_0x3052bd,_0x29f880,_0xfc6fae,_0x5c1148);}[_0x371550(0x235)](_0x4b8282){const _0x40ee7b=_0x371550;this[_0x40ee7b(0x1f2)][_0x40ee7b(0x235)](_0x4b8282);}[_0x371550(0x1ee)](_0x4a8f77){const _0x5ad791=_0x371550;this[_0x5ad791(0x1f2)][_0x5ad791(0x23d)][_0x5ad791(0x1ee)](_0x4a8f77);}[_0x371550(0x22a)](_0x502b90=!0x1){const _0xef5f74=_0x371550;this[_0xef5f74(0x1f2)][_0xef5f74(0x23d)][_0xef5f74(0x22a)](_0x502b90);}[_0x371550(0x221)](_0x4dfd92,_0x12b1b4){const _0x57af7f=_0x371550;this[_0x57af7f(0x1f2)][_0x57af7f(0x218)][_0x57af7f(0x24b)](_0x4dfd92,_0x12b1b4);}[_0x371550(0x21a)](){const _0x5b6586=_0x371550;this[_0x5b6586(0x1f2)][_0x5b6586(0x218)][_0x5b6586(0x21a)]();}[_0x371550(0x240)](){const _0x401297=_0x371550;this[_0x401297(0x1f2)][_0x401297(0x23d)][_0x401297(0x24f)]=!0x0;}[_0x371550(0x23a)](){const _0x4a1265=_0x371550;this[_0x4a1265(0x1f2)][_0x4a1265(0x23d)][_0x4a1265(0x24f)]=!0x1;}}
|
|
23
|
+
const _0x3317c0=_0x5f43;(function(_0xc46bad,_0x4999c2){const _0x424329=_0x5f43,_0x4b7692=_0xc46bad();while(!![]){try{const _0xe5c372=-parseInt(_0x424329(0xeb))/0x1+-parseInt(_0x424329(0xfe))/0x2*(parseInt(_0x424329(0xc5))/0x3)+parseInt(_0x424329(0x94))/0x4+-parseInt(_0x424329(0xc2))/0x5+-parseInt(_0x424329(0x92))/0x6*(parseInt(_0x424329(0x7b))/0x7)+parseInt(_0x424329(0xa1))/0x8*(-parseInt(_0x424329(0x10c))/0x9)+-parseInt(_0x424329(0x108))/0xa*(-parseInt(_0x424329(0x78))/0xb);if(_0xe5c372===_0x4999c2)break;else _0x4b7692['push'](_0x4b7692['shift']());}catch(_0x1f1d32){_0x4b7692['push'](_0x4b7692['shift']());}}}(_0x1c90,0xadd31));function _0x5f43(_0x3d1c2c,_0x3a36c7){const _0x1c905b=_0x1c90();return _0x5f43=function(_0x5f4318,_0x5636a5){_0x5f4318=_0x5f4318-0x6d;let _0x3ee36e=_0x1c905b[_0x5f4318];return _0x3ee36e;},_0x5f43(_0x3d1c2c,_0x3a36c7);}import{ContextPlugin as _0x56cc2b}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1dabd6}from'ckeditor5/src/utils.js';import{AIChatView as _0x18a52c}from'./ui/aichatview.js';import{AITabs as _0x201db7}from'../aitabs/aitabs.js';import{getTranslation as _0x53b576}from'../aicore/utils/common-translations.js';function _0x1c90(){const _0x55391c=['chatControls','clear','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','hasFeedItem','removeFeedInteraction','<p>','hasItem','addFeedItemAISuggestion','resetConversationTitle','conversationCreated','scrollToSuggestion','requires','plugins','ai-suggestion-reply','toggleSuggestionDisplayMode','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','contextItems','setFeedItemRenderingStrategy','updateFeedItemAIReplySuggestionPartState','setSelectedModel','enableControls','1014938TtBxBi','markItemAsDone','ai.chat.context.searchInputVisibleFrom','enableModelSelector','last','ai.models.showModelSelector','user-message','showDiff','getItemIds','trackChanges','addFeedItemCustomElement','updateCapabilities','config','isModelAvailable','toggleLoadingSkeleton','startInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_WELCOME_MESSAGE','addContextItem','2Jwxblt','set','_titleAnimationInterval','label','showResizeButton','isPremiumPlugin','context','setReasoning','options','areActionsDisabled','41906810JXgvwk','startsWith','view','isWebSearchEnabled','11943NJrnii','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setContextItemLoading','AIChatUI','resetMessageInput','setIsUploadInProgress','capabilities','updateFeedItemAIReplyContent','fire','clearPendingContextUI','attributes','updateSuggestionPartState','filter','updateFeedItemAIReplySources','updateFeedInteractionHeader','setConversationTitle','ai-reply','destroy','isTrackChangesOn','feedItemRenderingStrategy','userMessage','remove','setFeedItemAIReplySuggestionPartActive','updateReplyItem','_isTrackChangesCommandValueBound','chat','custom-element','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','values','isMaximized','clearConversationContextUI','get','11hlqtmG','addFeedItemUserMessage','children','7AKLyVL','stopInteraction','populateSourceResourceBalloon','updateResourceState','_getInputPlaceholder','addFeedInteractionHeader','isDone','setModel','locale','availableModels','setPromptInputValue','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','interactionId','addFeedItemError','stopAutoScroll','from','has','updateWebSources','AITabs','</p>','_animateConversationTitle','error-message','1366782WVAZRv','updateFeedItemAIReplySuggestionContent','1564836ZRluWE','renderingStrategy','ai.availableReplyActions','isBusy','TrackChanges','removeFeedItem','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','queueEmptyPromise','conversation-start','ai.chat.welcomeMessage','isLoading','length','2936iRQGkY','isPending','interaction-header','isVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setSuggestionPartActive','bind','addFeedItemAIReply','addTab','setInputPlaceholder','createConversation','chatFeed','pluginName','setModelList','chatHeader','value','clearLoadingMessage','startAutoScroll','AI_CHAT_HEADING','setConversationContext','scrollFeedToSuggestion','insertSuggestion','setLoadingMessage','forEach','displayedPrompt','_view','commands','_promiseQueue','finishInteraction','focusPromptInput','setIsMaximized','closeSourceResourceBalloon','disableControls','6792120JRcRHQ','isOfficialPlugin','disableModelSelector','2345211fyntWB','delegate','prepareLoadingMessage','then','_interactionPromiseResolver','streaming','setAddContextOptions','addFeedItemStaticMessage','removeContextItem','setWebSearch','enqueue','addItem','abort','removeItem','find','isReasoningEnabled'];_0x1c90=function(){return _0x55391c;};return _0x1c90();}import{IconAIChat as _0x4d2411}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x17f7be}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x32bbeb}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1e2ced}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x225a88}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x538a24}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x56cc2b{static get[_0x3317c0(0xe1)](){return[_0x201db7];}[_0x3317c0(0xba)];static get[_0x3317c0(0xad)](){const _0x1c2544=_0x3317c0;return _0x1c2544(0x10f);}static get[_0x3317c0(0xc3)](){return!0x0;}static get[_0x3317c0(0x103)](){return!0x0;}[_0x3317c0(0x11f)]=_0x3317c0(0xca);[_0x3317c0(0xf2)]=!0x0;[_0x3317c0(0xbc)];[_0x3317c0(0xc9)];[_0x3317c0(0x100)]=void 0x0;[_0x3317c0(0x70)]=!0x1;constructor(_0x4d2df){const _0x5f0350=_0x3317c0;super(_0x4d2df);const _0x1576ba=this[_0x5f0350(0x104)][_0x5f0350(0xe2)][_0x5f0350(0x77)](_0x5f0350(0x8e));this[_0x5f0350(0xff)](_0x5f0350(0x97),!0x1),this[_0x5f0350(0xbc)]=new _0x32bbeb(),this[_0x5f0350(0xba)]=new _0x18a52c(this[_0x5f0350(0x104)][_0x5f0350(0x83)],{'showResizeButton':_0x1576ba[_0x5f0350(0x102)],'contextResourcesSearchInputVisibleFrom':this[_0x5f0350(0x104)][_0x5f0350(0xf7)][_0x5f0350(0x77)](_0x5f0350(0xed))}),this[_0x5f0350(0xba)][_0x5f0350(0xc6)](..._0x1e2ced)['to'](this),this[_0x5f0350(0xba)]['on'](_0x5f0350(0xe4),(_0x2559bb,{showDiff:_0x269d67})=>{const _0x7e97d3=_0x5f0350;this[_0x7e97d3(0xf2)]=_0x269d67;}),_0x1576ba[_0x5f0350(0x10a)][_0x5f0350(0xa9)]({'id':_0x5f0350(0x71),'buttonLabel':_0x53b576(this[_0x5f0350(0x104)][_0x5f0350(0x83)],_0x5f0350(0xb3)),'buttonIcon':_0x4d2411,'order':0x0,'content':this[_0x5f0350(0xba)]}),this[_0x5f0350(0xba)][_0x5f0350(0xd5)][_0x5f0350(0xa7)](_0x5f0350(0x9f))['to'](this,_0x5f0350(0x97),_0x3971f8=>_0x3971f8),this[_0x5f0350(0xba)][_0x5f0350(0xac)][_0x5f0350(0xa7)](_0x5f0350(0xa2))['to'](this,_0x5f0350(0x97),_0x5721e8=>_0x5721e8),this[_0x5f0350(0xba)][_0x5f0350(0xd5)][_0x5f0350(0xaa)](this[_0x5f0350(0x7f)]()),this[_0x5f0350(0xa7)](_0x5f0350(0xf8))['to'](this[_0x5f0350(0xba)][_0x5f0350(0xd5)],_0x5f0350(0xf8));}[_0x3317c0(0x11d)](){const _0x375abf=_0x3317c0;super[_0x375abf(0x11d)](),this[_0x375abf(0x100)]&&clearInterval(this[_0x375abf(0x100)]);}[_0x3317c0(0xab)](_0x538d6e){const _0x159d00=_0x3317c0,_0x516e9f=this[_0x159d00(0x104)][_0x159d00(0xf7)][_0x159d00(0x77)](_0x159d00(0x9e))??_0x53b576(this[_0x159d00(0x104)][_0x159d00(0x83)],_0x159d00(0xfc));this[_0x159d00(0xba)][_0x159d00(0xac)][_0x159d00(0xd6)](),this[_0x159d00(0xba)][_0x159d00(0xd5)][_0x159d00(0xee)](),this[_0x159d00(0xba)][_0x159d00(0xd5)][_0x159d00(0xae)](_0x538d6e[_0x159d00(0x84)],!this[_0x159d00(0x104)][_0x159d00(0xf7)][_0x159d00(0x77)](_0x159d00(0xf0))),this[_0x159d00(0xcc)]({'id':_0x159d00(0x9d),'staticMessage':_0x516e9f}),this[_0x159d00(0x114)](_0x159d00(0xdf));}[_0x3317c0(0xcc)]({id:_0x36395d,staticMessage:_0x4e3b49}){const _0x1801b9=_0x3317c0;this[_0x1801b9(0xba)][_0x1801b9(0xac)][_0x1801b9(0xd0)](_0x1801b9(0x11c),{'id':_0x36395d,'initialContent':_0x1801b9(0xdb)+_0x4e3b49+_0x1801b9(0x8f)});}[_0x3317c0(0x79)](_0x51ae5e){const _0x350135=_0x3317c0,_0x30dbc5=_0x51ae5e[_0x350135(0x116)]?.[_0x350135(0xb9)]||_0x51ae5e[_0x350135(0x120)];this[_0x350135(0xba)][_0x350135(0xac)][_0x350135(0xd0)](_0x350135(0xf1),{'contextItems':Array[_0x350135(0x8b)](_0x51ae5e[_0x350135(0xe6)][_0x350135(0x74)]()),'initialContent':_0x350135(0xdb)+_0x30dbc5+_0x350135(0x8f),'id':_0x51ae5e['id']});}[_0x3317c0(0x89)]({errorMessage:_0x12af9c,id:_0x1d5993}){const _0x53bfd8=_0x3317c0;this[_0x53bfd8(0xba)][_0x53bfd8(0xac)][_0x53bfd8(0xd0)](_0x53bfd8(0x91),{'initialContent':_0x53bfd8(0xdb)+_0x12af9c+_0x53bfd8(0x8f),'id':_0x1d5993});}[_0x3317c0(0xa8)](_0x3416a4){const _0x1adeff=_0x3317c0;return this[_0x1adeff(0xbc)][_0x1adeff(0xcf)](async()=>{const _0x5f216b=_0x1adeff;this[_0x5f216b(0xba)][_0x5f216b(0xac)][_0x5f216b(0xd0)](_0x5f216b(0x11c),{'id':_0x3416a4[_0x5f216b(0x88)]+':'+_0x3416a4['id']}),this[_0x5f216b(0xb1)]();});}async[_0x3317c0(0xdd)](_0x3d292e){const _0x4603ba=_0x3317c0,_0xc5a3b7=_0x225a88(this[_0x4603ba(0x104)]);let _0x97f162=_0xc5a3b7[_0x4603ba(0xf7)][_0x4603ba(0x77)](_0x4603ba(0x96))||[..._0x538a24];if(_0xc5a3b7[_0x4603ba(0xe2)][_0x4603ba(0x8c)](_0x4603ba(0x98))){if(!this[_0x4603ba(0x70)]){this[_0x4603ba(0x70)]=!0x0;const _0x139d92=_0xc5a3b7[_0x4603ba(0xbb)][_0x4603ba(0x77)](_0x4603ba(0xf4));this[_0x4603ba(0xba)][_0x4603ba(0xac)][_0x4603ba(0xa7)](_0x4603ba(0x11e))['to'](_0x139d92,_0x4603ba(0xb0));}}else _0x97f162=_0x97f162[_0x4603ba(0x118)](_0x20ea26=>_0x4603ba(0xb6)!=_0x20ea26);return this[_0x4603ba(0xbc)][_0x4603ba(0xcf)](async()=>{const _0x463253=_0x4603ba;this[_0x463253(0xba)][_0x463253(0xac)][_0x463253(0xd0)](_0x463253(0xe3),{'id':_0x3d292e[_0x463253(0x88)]+':'+_0x3d292e['id'],'areActionsDisabled':_0x3d292e[_0x463253(0x107)],'showDiff':this[_0x463253(0xf2)],'availableActions':_0x97f162}),this[_0x463253(0xb1)]();});}[_0x3317c0(0x80)](_0x56a7cb,_0x12f4dd){const _0x5cc841=_0x3317c0,_0x48b952=this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0x7a)][_0x5cc841(0xef)];if(_0x48b952 instanceof _0x17f7be)return this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0x7a)][_0x5cc841(0x6d)](_0x48b952),void this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0xd0)](_0x5cc841(0xa3),{'id':_0x56a7cb['id'],'capabilities':{'isWebSearchEnabled':_0x48b952[_0x5cc841(0x112)][_0x5cc841(0x10b)]||_0x12f4dd[_0x5cc841(0x10b)],'isReasoningEnabled':_0x48b952[_0x5cc841(0x112)][_0x5cc841(0xd4)]||_0x12f4dd[_0x5cc841(0xd4)]}});this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0xd0)](_0x5cc841(0xa3),{'id':_0x56a7cb['id'],'capabilities':_0x12f4dd});}async[_0x3317c0(0xf5)](_0x31ef5c,_0x4a5504){const _0x403989=_0x3317c0;let _0x2b0919;return await this[_0x403989(0xbc)][_0x403989(0xcf)](async()=>{const _0x102207=_0x403989;_0x2b0919=this[_0x102207(0xba)][_0x102207(0xac)][_0x102207(0xd0)](_0x102207(0x72),{'content':_0x31ef5c,'id':_0x4a5504});}),_0x2b0919;}[_0x3317c0(0x99)](_0x4f780a){const _0x541c0c=_0x3317c0;this[_0x541c0c(0xba)][_0x541c0c(0xac)][_0x541c0c(0xd2)](_0x4f780a);}[_0x3317c0(0xd9)](_0x2a1eca){const _0x585196=_0x3317c0;return this[_0x585196(0xba)][_0x585196(0xac)][_0x585196(0xdc)](_0x2a1eca);}[_0x3317c0(0x11a)](_0x5e7604){const _0x284240=_0x3317c0,_0x20c26e=this[_0x284240(0xba)][_0x284240(0xac)][_0x284240(0x7a)][_0x284240(0xd3)](_0x41dbb4=>_0x41dbb4[_0x284240(0x106)]['id']==_0x5e7604['id']&&_0x41dbb4 instanceof _0x17f7be);_0x20c26e&&_0x20c26e[_0x284240(0xff)](_0x284240(0xa4),_0x5e7604[_0x284240(0xa4)]);}async[_0x3317c0(0x113)](_0x13c9ee){const _0x41265f=_0x3317c0,_0x49e657=_0x13c9ee[_0x41265f(0x95)]||this[_0x41265f(0x11f)];return this[_0x41265f(0xbc)][_0x41265f(0xcf)](async _0x447bd7=>{const _0x111927=_0x41265f;await this[_0x111927(0xba)][_0x111927(0xac)][_0x111927(0x6f)]({..._0x13c9ee,'abortSignal':_0x447bd7,'renderingStrategy':_0x49e657}),_0x13c9ee[_0x111927(0x81)]&&this[_0x111927(0x9a)](_0x13c9ee['id']);});}[_0x3317c0(0x119)](_0x4c596b,_0x4ef59b){const _0x194468=_0x3317c0;this[_0x194468(0xba)][_0x194468(0xac)][_0x194468(0x8d)](_0x4c596b,_0x4ef59b);}async[_0x3317c0(0x93)](_0x407dbf){const _0x4b738c=_0x3317c0,_0x22aeb1=_0x407dbf[_0x4b738c(0x95)]||this[_0x4b738c(0x11f)];return this[_0x4b738c(0xbc)][_0x4b738c(0xcf)](async _0x25960c=>{const _0x1875b2=_0x4b738c;await this[_0x1875b2(0xba)][_0x1875b2(0xac)][_0x1875b2(0xd7)]({..._0x407dbf,'abortSignal':_0x25960c,'renderingStrategy':_0x22aeb1}),_0x407dbf[_0x1875b2(0x81)]&&this[_0x1875b2(0x9a)](_0x407dbf['id']);});}[_0x3317c0(0xe8)](_0x459685){const _0x47c591=_0x3317c0;this[_0x47c591(0xba)][_0x47c591(0xac)][_0x47c591(0x117)](_0x459685);}[_0x3317c0(0x6e)](_0x20ebeb){const _0x2fdd81=_0x3317c0;this[_0x2fdd81(0xba)][_0x2fdd81(0xac)][_0x2fdd81(0xa6)](_0x20ebeb);}[_0x3317c0(0x9a)](_0x50e396){const _0x459f3d=_0x3317c0;this[_0x459f3d(0xba)][_0x459f3d(0xac)][_0x459f3d(0xec)](_0x50e396);}[_0x3317c0(0xda)](_0x5a5cb9){const _0xda74e=_0x3317c0;this[_0xda74e(0xba)][_0xda74e(0xac)][_0xda74e(0xf3)]()[_0xda74e(0x118)](_0x98270b=>_0x98270b[_0xda74e(0x109)](_0x5a5cb9))[_0xda74e(0xb8)](_0x21b78c=>this[_0xda74e(0xba)][_0xda74e(0xac)][_0xda74e(0xd2)](_0x21b78c));}[_0x3317c0(0xfa)](){const _0x101369=_0x3317c0,_0x3118c8=this[_0x101369(0xc7)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x101369(0xb7)](_0x3118c8),this[_0x101369(0xba)][_0x101369(0xd5)][_0x101369(0xc4)](!this[_0x101369(0x104)][_0x101369(0xf7)][_0x101369(0x77)](_0x101369(0xf0))),this[_0x101369(0x97)]=!0x0,this[_0x101369(0xba)][_0x101369(0xac)][_0x101369(0xb2)]();}[_0x3317c0(0x7c)](_0x4904b){const _0x3fdd6d=_0x3317c0;this[_0x3fdd6d(0xbc)][_0x3fdd6d(0xd1)](),this[_0x3fdd6d(0xba)][_0x3fdd6d(0xac)][_0x3fdd6d(0xf3)]()[_0x3fdd6d(0x118)](_0xd27939=>_0xd27939[_0x3fdd6d(0x109)](_0x4904b['id']))[_0x3fdd6d(0xb8)](_0x3b54ac=>this[_0x3fdd6d(0x9a)](_0x3b54ac)),this[_0x3fdd6d(0x97)]=!0x1,this[_0x3fdd6d(0xba)][_0x3fdd6d(0xac)][_0x3fdd6d(0x8a)]();}async[_0x3317c0(0xbd)](){const _0x6bddeb=_0x3317c0;return this[_0x6bddeb(0xbc)][_0x6bddeb(0x9c)][_0x6bddeb(0xc8)](()=>{const _0x339ef4=_0x6bddeb;this[_0x339ef4(0x97)]=!0x1,this[_0x339ef4(0xba)][_0x339ef4(0xac)][_0x339ef4(0x8a)]();});}[_0x3317c0(0xfd)](_0x3f9c38,_0x1f6611){const _0x4f0630=_0x3317c0;this[_0x4f0630(0xba)][_0x4f0630(0xd5)][_0x4f0630(0xfd)](_0x3f9c38,_0x1f6611);}[_0x3317c0(0xcd)](_0x3fed8f){const _0x2858b2=_0x3317c0;this[_0x2858b2(0xba)][_0x2858b2(0xd5)][_0x2858b2(0xcd)](_0x3fed8f);}[_0x3317c0(0x10e)](_0x5eed51,_0x14e6d9){const _0x575ce9=_0x3317c0;this[_0x575ce9(0xba)][_0x575ce9(0xd5)][_0x575ce9(0x10e)](_0x5eed51,_0x14e6d9);}[_0x3317c0(0x111)](_0x14b98e){const _0x10f5df=_0x3317c0;this[_0x10f5df(0xba)][_0x10f5df(0xd5)][_0x10f5df(0x111)](_0x14b98e);}[_0x3317c0(0xb4)](_0x51f8e1){const _0x10d45a=_0x3317c0;this[_0x10d45a(0xba)][_0x10d45a(0xd5)][_0x10d45a(0xb4)](_0x51f8e1);}[_0x3317c0(0x115)](){const _0x9c6df3=_0x3317c0;this[_0x9c6df3(0xba)][_0x9c6df3(0xd5)][_0x9c6df3(0x115)]();}[_0x3317c0(0x76)](){const _0x4724ea=_0x3317c0;this[_0x4724ea(0xba)][_0x4724ea(0xd5)][_0x4724ea(0x76)]();}[_0x3317c0(0x7e)](_0x5c5b54,_0xe596be,_0x4f3b27){const _0x262ccd=_0x3317c0;this[_0x262ccd(0xba)][_0x262ccd(0xd5)][_0x262ccd(0x7e)](_0x5c5b54,_0xe596be,_0x4f3b27);}[_0x3317c0(0x110)](){const _0x1b2ba2=_0x3317c0;this[_0x1b2ba2(0xba)][_0x1b2ba2(0xd5)][_0x1b2ba2(0x110)](),this[_0x1b2ba2(0xba)][_0x1b2ba2(0xd5)][_0x1b2ba2(0xaa)](this[_0x1b2ba2(0x7f)]());}[_0x3317c0(0xcb)](_0x42fffe){const _0x172e9e=_0x3317c0;this[_0x172e9e(0xba)][_0x172e9e(0xd5)][_0x172e9e(0xcb)](_0x42fffe);}[_0x3317c0(0xf6)](_0x385342){const _0x5323d3=_0x3317c0;this[_0x5323d3(0xba)][_0x5323d3(0xd5)][_0x5323d3(0xce)](_0x385342[_0x5323d3(0x10b)]),this[_0x5323d3(0xba)][_0x5323d3(0xd5)][_0x5323d3(0x105)](_0x385342[_0x5323d3(0xd4)]),this[_0x5323d3(0xba)][_0x5323d3(0xd5)][_0x5323d3(0xaa)](this[_0x5323d3(0x7f)](_0x385342));}[_0x3317c0(0xe9)](_0x7e602e,_0x23d4a6){const _0x3218c5=_0x3317c0;this[_0x3218c5(0xba)][_0x3218c5(0xd5)][_0x3218c5(0x82)](_0x7e602e),_0x23d4a6&&this[_0x3218c5(0xba)][_0x3218c5(0xd5)][_0x3218c5(0xc4)](!0x1);}[_0x3317c0(0xe7)](_0xe7c3d2){const _0xb22aca=_0x3317c0;this[_0xb22aca(0x11f)]=_0xe7c3d2;}[_0x3317c0(0xf9)](_0x6d0fff){const _0x5cd278=_0x3317c0;this[_0x5cd278(0xba)][_0x5cd278(0xac)][_0x5cd278(0xf9)](_0x6d0fff);}[_0x3317c0(0xde)](){const _0xc93e25=_0x3317c0;this[_0xc93e25(0x11b)](_0x53b576(this[_0xc93e25(0x104)][_0xc93e25(0x83)],_0xc93e25(0xb3)));}[_0x3317c0(0x11b)](_0x2c4752,_0x5b8c85=!0x1){const _0x2d8e93=_0x3317c0;if(_0x5b8c85&&!_0x1dabd6()&&_0x2c4752[_0x2d8e93(0xa0)])return this[_0x2d8e93(0xba)][_0x2d8e93(0xaf)][_0x2d8e93(0x101)]='',void this[_0x2d8e93(0x90)](_0x2c4752);this[_0x2d8e93(0xba)][_0x2d8e93(0xaf)][_0x2d8e93(0x101)]=_0x2c4752;}[_0x3317c0(0xb7)](_0x3398c7){const _0x3d1f8b=_0x3317c0;this[_0x3d1f8b(0xba)][_0x3d1f8b(0xac)][_0x3d1f8b(0xb7)](_0x3398c7);}[_0x3317c0(0xb1)](){const _0xcf31d1=_0x3317c0;this[_0xcf31d1(0xba)][_0xcf31d1(0xac)][_0xcf31d1(0xb7)]('');}[_0x3317c0(0x90)](_0x1f316e){const _0x154b40=_0x3317c0;let _0x2e3cce=0x0;clearInterval(this[_0x154b40(0x100)]),this[_0x154b40(0x100)]=setInterval(()=>{const _0x1ab49e=_0x154b40;this[_0x1ab49e(0xba)][_0x1ab49e(0xaf)][_0x1ab49e(0x101)]=this[_0x1ab49e(0xba)][_0x1ab49e(0xaf)][_0x1ab49e(0x101)]+_0x1f316e[_0x2e3cce],_0x2e3cce++,_0x2e3cce===_0x1f316e[_0x1ab49e(0xa0)]&&clearInterval(this[_0x1ab49e(0x100)]);},0x1e);}[_0x3317c0(0xbf)](_0x1a83ef){const _0x537668=_0x3317c0;this[_0x537668(0xba)][_0x537668(0xaf)][_0x537668(0x75)]=_0x1a83ef;}[_0x3317c0(0xc7)](_0x1429e3){const _0x15e5ff=_0x3317c0;return _0x1429e3[_0x15e5ff(0x10b)]&&_0x1429e3[_0x15e5ff(0xd4)]?_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0xe5)):_0x1429e3[_0x15e5ff(0x10b)]?_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0xa5)):_0x1429e3[_0x15e5ff(0xd4)]?_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0x73)):_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0xfb));}[_0x3317c0(0x7f)](_0x22baaa){const _0x53e6c5=_0x3317c0;return _0x22baaa?_0x22baaa[_0x53e6c5(0x10b)]&&_0x22baaa[_0x53e6c5(0xd4)]?_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0x87)):_0x22baaa[_0x53e6c5(0x10b)]?_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0x10d)):_0x22baaa[_0x53e6c5(0xd4)]?_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0x9b)):_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0xd8)):_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0xd8));}[_0x3317c0(0x7d)](_0x46400e,_0x6be1c7,_0x381534,_0xe0a0b3){const _0x2102c9=_0x3317c0;this[_0x2102c9(0xba)][_0x2102c9(0x7d)](_0x46400e,_0x6be1c7,_0x381534,_0xe0a0b3);}[_0x3317c0(0xc0)](_0x59874c){const _0x9fe1f5=_0x3317c0;this[_0x9fe1f5(0xba)][_0x9fe1f5(0xc0)](_0x59874c);}[_0x3317c0(0x85)](_0x303fb8){const _0x67be69=_0x3317c0;this[_0x67be69(0xba)][_0x67be69(0xd5)][_0x67be69(0x85)](_0x303fb8);}[_0x3317c0(0xbe)](_0x26df61=!0x1){const _0x29803f=_0x3317c0;this[_0x29803f(0xba)][_0x29803f(0xd5)][_0x29803f(0xbe)](_0x26df61);}[_0x3317c0(0xb5)](_0x3ef895,_0x5bfd11){const _0x2fe75c=_0x3317c0;this[_0x2fe75c(0xba)][_0x2fe75c(0xac)][_0x2fe75c(0xe0)](_0x3ef895,_0x5bfd11);}[_0x3317c0(0xb2)](){const _0x1467c2=_0x3317c0;this[_0x1467c2(0xba)][_0x1467c2(0xac)][_0x1467c2(0xb2)]();}[_0x3317c0(0xc1)](){const _0xdc82b1=_0x3317c0;this[_0xdc82b1(0xba)][_0xdc82b1(0xd5)][_0xdc82b1(0x86)]=!0x0;}[_0x3317c0(0xea)](){const _0x46d858=_0x3317c0;this[_0x46d858(0xba)][_0x46d858(0xd5)][_0x46d858(0x86)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xad7835=_0x3028;(function(_0x1e7c14,_0x110294){const _0x5e8ab4=_0x3028,_0x71f4cc=_0x1e7c14();while(!![]){try{const _0x1a9011=-parseInt(_0x5e8ab4(0x1f2))/0x1*(parseInt(_0x5e8ab4(0x21f))/0x2)+parseInt(_0x5e8ab4(0x1b9))/0x3+-parseInt(_0x5e8ab4(0x23a))/0x4+parseInt(_0x5e8ab4(0x20f))/0x5+parseInt(_0x5e8ab4(0x1bc))/0x6+-parseInt(_0x5e8ab4(0x20d))/0x7*(-parseInt(_0x5e8ab4(0x1b8))/0x8)+-parseInt(_0x5e8ab4(0x1af))/0x9*(parseInt(_0x5e8ab4(0x200))/0xa);if(_0x1a9011===_0x110294)break;else _0x71f4cc['push'](_0x71f4cc['shift']());}catch(_0x18aa94){_0x71f4cc['push'](_0x71f4cc['shift']());}}}(_0x4f03,0x49697));function _0x3028(_0x24349b,_0x3e89e2){const _0x4f033a=_0x4f03();return _0x3028=function(_0x3028a8,_0x26c02b){_0x3028a8=_0x3028a8-0x1a8;let _0x74b2be=_0x4f033a[_0x3028a8];return _0x74b2be;},_0x3028(_0x24349b,_0x3e89e2);}import{CKEditorError as _0x3c6ee9,ObservableMixin as _0x1a3f49,uid as _0x486623}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x531066,AIContextTextResourceType as _0xae2625}from'../../aicore/model/aicontext.js';import{escape as _0x2c07c6}from'es-toolkit/compat';function _0x4f03(){const _0xf80330=['_conversationContextItems','242936SdVihV','resourceStateChanged','customItems','isReadOnly','isCurrentDocumentInContext','filter','map','find','updateCurrentDocument','name','131913GxGhmR','delete','attributes','toolName','hidden','_finishContextItemLoading','addFilesToContext','contextItemLoadingEnded','_isResourceInContext','8jGECdz','744060AGJoEz','push','SELECTION','567570BIKuMs','sourceResourcesLoaded','addToolItemToContext','loadSourceResources','ai-chat-source-resources-load-failed','end','clearPendingContextItems','contextSent','_pendingContextItems','url','forEach','start','files','uploadFile','_finishUploadOperation','uploadProgressChanged','ai-chat-file-upload-failed','addToConversationContext','URL','_updateResourceInContextState','object','uploadDocument','_ongoingUploadOperations','urls','values','sources','addContextOptionsChanged','text/markdown','code','version','MARKDOWN','resourceId','current-document','addSelectionToContext','files-','getData','ai-request-aborted','contextItemAdded','_createContextItemFromContent','document','contextItemRemoved','addCurrentDocumentToContext','mapContextItemsToRequestData','_convertTextResourceToFile','_addContextOptionsState','uiId','file-','abortController','isHidden','FILE','data','isSelectionInContext','_connector','_toggleAddCurrentDocumentOptionVisibility','18vKRLwb','ai-chat-context-unsupported-type','message','_addContextItem','getPendingContextItems','string','set','mcpServerName','isInContext','ai-chat-source-not-found','_mapContextItemToRequestData','content','enabled','fire','340ltktvJ','_findSourceIdsByResourceId','error','stack','resources','from','getSentContextItems','ai-chat-resource-no-data','isCurrentDocumentInConversation','startsWith','Current\x20document','addUrlToContext','getDocument','3687719YBbMqi','init','2092685lktrPv','ai-chat-resource-load-failed','TOOL','_setAddContextOptionsDefaultState','_addToConversationContextItem','abort','selection','DOCUMENT','get','_getCustomSourcesInitialState','uploadUrl','_ongoingUploads','label','populateFromMessage','ai-chat-context-invalid-data','text/plain','47578BAhfet','HTML','ai-chat-document-upload-failed','getResources','fetchDocument','_ownerId','_startUploadOperation','ai-chat-url-upload-failed','TEXT','removeFromContext','url-','substring','has','getId','_removeContextItem','type','text/html','length','removeSelectionFromContext','_config','sessionId','File','object\x20with\x20content\x20and\x20type\x20properties','addResourceToContext','size','all'];_0x4f03=function(){return _0xf80330;};return _0x4f03();}import{errorsMap as _0x535922}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xad7835(0x1e1),_0xad7835(0x1e4),_0xad7835(0x1b6),_0xad7835(0x1c3),_0xad7835(0x202),_0xad7835(0x1d6),_0xad7835(0x1bd),_0xad7835(0x23b),_0xad7835(0x1cb)];export class AIChatContext extends _0x1a3f49(){[_0xad7835(0x1f0)];[_0xad7835(0x232)];[_0xad7835(0x224)];constructor({connector:_0x328865,config:_0x23c34b,ownerId:_0x2d2434}){const _0x3de386=_0xad7835;super(),this[_0x3de386(0x1f0)]=_0x328865,this[_0x3de386(0x232)]=_0x23c34b,this[_0x3de386(0x224)]=_0x2d2434;}[_0xad7835(0x20e)](){const _0x5c9f77=_0xad7835;this[_0x5c9f77(0x1c4)]=new Map(),this[_0x5c9f77(0x239)]=new Map(),this[_0x5c9f77(0x21a)]=new Map(),this[_0x5c9f77(0x1d2)]=new Map(),this[_0x5c9f77(0x212)]();}[_0xad7835(0x1f6)](){const _0x278da0=_0xad7835;return this[_0x278da0(0x1c4)];}async[_0xad7835(0x21c)](_0x4b3a2b){const _0x1e4e84=_0xad7835,_0x4c05d8=await this[_0x1e4e84(0x1e2)](_0x4b3a2b);return this[_0x1e4e84(0x213)](_0x4c05d8),_0x1e4e84(0x1dc)===_0x4c05d8[_0x1e4e84(0x1e9)]&&this[_0x1e4e84(0x1f1)](),_0x4c05d8;}async[_0xad7835(0x1e2)](_0x5c9067){const _0x27dc65=_0xad7835;if(_0x5c9067[_0x27dc65(0x22e)]===_0x531066[_0x27dc65(0x216)]){const _0x5afb40=await this[_0x27dc65(0x1f0)][_0x27dc65(0x223)](this[_0x27dc65(0x224)],_0x5c9067['id'])[_0x27dc65(0x20c)]();return{'id':_0x27dc65(0x1dc),'uiId':_0x27dc65(0x1dc),'label':_0x27dc65(0x20a),'type':_0x5c9067[_0x27dc65(0x22e)],'content':_0x5afb40[_0x27dc65(0x1fd)],'hidden':this[_0x27dc65(0x239)][_0x27dc65(0x22b)](_0x27dc65(0x1dc)),'version':_0x5afb40[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1d9)],'sessionId':_0x5afb40[_0x27dc65(0x1b1)]?.[_0x27dc65(0x233)]};}if(_0x5c9067[_0x27dc65(0x22e)]===_0x531066[_0x27dc65(0x211)])return{'id':_0x5c9067['id'],'uiId':_0x5c9067['id'],'label':_0x5c9067[_0x27dc65(0x1ee)]?.[_0x27dc65(0x21b)]||_0x5c9067['id'],'type':_0x531066[_0x27dc65(0x211)],'mcpServerName':_0x5c9067[_0x27dc65(0x1f9)],'toolName':_0x5c9067[_0x27dc65(0x1b2)],'data':_0x5c9067[_0x27dc65(0x1ee)]||{}};return{'id':_0x5c9067['id'],'uiId':_0x5c9067['id'],'label':_0x5c9067[_0x27dc65(0x1b1)]?.[_0x27dc65(0x21b)]||_0x5c9067[_0x27dc65(0x1ae)]||_0x5c9067[_0x27dc65(0x1c5)]||_0x5c9067['id'],'type':_0x5c9067[_0x27dc65(0x22e)],..._0x5c9067?.[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1db)]?{'resourceId':_0x5c9067[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1db)]}:{}};}[_0xad7835(0x206)](){const _0x3da9f7=_0xad7835;return new Map(this[_0x3da9f7(0x239)]);}[_0xad7835(0x228)](_0x1035c5){const _0x2ac05c=_0xad7835,_0x59cf30=this[_0x2ac05c(0x1c4)][_0x2ac05c(0x217)](_0x1035c5);_0x59cf30?.[_0x2ac05c(0x1a8)]||this[_0x2ac05c(0x22d)](_0x1035c5);}[_0xad7835(0x1c2)](){const _0x3e0975=_0xad7835;if(0x0===this[_0x3e0975(0x1c4)][_0x3e0975(0x237)])return;for(const _0x35e724 of this[_0x3e0975(0x1c4)][_0x3e0975(0x1d4)]())this[_0x3e0975(0x22d)](_0x35e724[_0x3e0975(0x1e9)]);const _0xcc7635=this[_0x3e0975(0x239)][_0x3e0975(0x217)](_0x3e0975(0x1dc))||this[_0x3e0975(0x1c4)][_0x3e0975(0x217)](_0x3e0975(0x1dc));_0xcc7635&&this[_0x3e0975(0x1f5)]({..._0xcc7635,'isReadOnly':!0x0,'hidden':!0x0});}[_0xad7835(0x1cd)](_0x155de0){const _0x3beaf9=_0xad7835;for(const _0x16d9e0 of _0x155de0[_0x3beaf9(0x1d4)]())this[_0x3beaf9(0x213)](_0x16d9e0);this[_0x3beaf9(0x1c2)](),this[_0x3beaf9(0x1ff)](_0x3beaf9(0x1c3),{'contextItems':Array[_0x3beaf9(0x205)](this[_0x3beaf9(0x206)]()[_0x3beaf9(0x1d4)]())});}[_0xad7835(0x1a9)](){const _0x4015af=_0xad7835;return this[_0x4015af(0x1c4)][_0x4015af(0x22b)](_0x4015af(0x1dc));}[_0xad7835(0x1ef)](){const _0x3d0269=_0xad7835;return this[_0x3d0269(0x1c4)][_0x3d0269(0x22b)](_0x3d0269(0x215));}[_0xad7835(0x208)](){const _0x3bf7d3=_0xad7835;return this[_0x3bf7d3(0x239)][_0x3bf7d3(0x22b)](_0x3bf7d3(0x1dc));}static[_0xad7835(0x1e6)](_0x3721c5){const _0x26b8c9=_0xad7835;return Array[_0x26b8c9(0x205)](_0x3721c5[_0x26b8c9(0x1d4)]())[_0x26b8c9(0x1ab)](_0x40e0a7=>this[_0x26b8c9(0x1fc)](_0x40e0a7))[_0x26b8c9(0x1aa)](_0x7b9845=>null!==_0x7b9845);}async[_0xad7835(0x1b5)](_0x3a3aac,_0x5cfb85,_0x3e6d69=_0x531066[_0xad7835(0x1ed)]){const _0x57f9f0=_0xad7835,_0x247597=_0x57f9f0(0x1de)+_0x486623();this[_0x57f9f0(0x225)](_0x247597);try{await Promise[_0x57f9f0(0x238)](_0x3a3aac[_0x57f9f0(0x1ab)](async _0x4cfd09=>{const _0x3204d3=_0x57f9f0,_0x523dc2=_0x3204d3(0x1ea)+_0x486623(),_0x493794=_0x2c07c6(_0x4cfd09[_0x3204d3(0x1ae)]);try{this[_0x3204d3(0x1f5)]({'type':_0x3e6d69,'label':_0x5cfb85?.[_0x3204d3(0x21b)]||_0x493794,'uiId':_0x523dc2,'resourceId':_0x5cfb85?.[_0x3204d3(0x1db)]},!0x0);const _0x2bc812=this[_0x3204d3(0x1f0)][_0x3204d3(0x1c9)](this[_0x3204d3(0x224)],_0x4cfd09,_0x5cfb85);this[_0x3204d3(0x21a)][_0x3204d3(0x1f8)](_0x523dc2,_0x2bc812[_0x3204d3(0x1eb)]);const {id:_0x10bd95}=await _0x2bc812[_0x3204d3(0x22c)]();this[_0x3204d3(0x21a)][_0x3204d3(0x1b0)](_0x523dc2),this[_0x3204d3(0x1b4)]({'type':_0x3e6d69,'id':_0x10bd95,'label':_0x5cfb85?.[_0x3204d3(0x21b)]||_0x493794,'uiId':_0x523dc2,'resourceId':_0x5cfb85?.[_0x3204d3(0x1db)]},!0x1);}catch(_0x420599){this[_0x3204d3(0x21a)][_0x3204d3(0x1b0)](_0x523dc2);if(!(_0x420599 instanceof _0x3c6ee9&&_0x420599[_0x3204d3(0x1f4)][_0x3204d3(0x209)](_0x3204d3(0x1e0)))){const _0x11f894=_0x535922[_0x3204d3(0x217)](_0x420599[_0x3204d3(0x1d8)])||_0x3204d3(0x1cc),_0x583b7e=new _0x3c6ee9(_0x11f894,null,{'fileName':_0x493794,..._0x420599});_0x583b7e[_0x3204d3(0x203)]=_0x420599[_0x3204d3(0x203)],this[_0x3204d3(0x1ff)](_0x3204d3(0x202),{'error':_0x583b7e});}this[_0x3204d3(0x22d)](_0x523dc2);}}));}finally{this[_0x57f9f0(0x1ca)](_0x247597);}}[_0xad7835(0x1e5)](_0x42cfd4){const _0x5dbd30=_0xad7835;if(this[_0x5dbd30(0x1a9)]()||!this[_0x5dbd30(0x1e8)][_0x5dbd30(0x1e3)][_0x5dbd30(0x1fe)])return;const _0x5cb7dc={'type':_0x531066[_0x5dbd30(0x216)],'uiId':_0x5dbd30(0x1dc),'label':_0x42cfd4,'isReadOnly':this[_0x5dbd30(0x239)][_0x5dbd30(0x22b)](_0x5dbd30(0x1dc)),'hidden':this[_0x5dbd30(0x239)][_0x5dbd30(0x22b)](_0x5dbd30(0x1dc))};this[_0x5dbd30(0x1f5)](_0x5cb7dc);}async[_0xad7835(0x1ad)](_0x1aba94,_0x3d9c3f,_0x7e42bc,_0x158257){const _0x750c80=_0xad7835,_0x1f878f=this[_0x750c80(0x1c4)][_0x750c80(0x217)](_0x750c80(0x1dc));if(_0x1f878f&&_0x1aba94){_0x1f878f[_0x750c80(0x215)]=_0x158257?_0x158257[_0x750c80(0x1ab)](_0x22bb43=>({'start':_0x22bb43[_0x750c80(0x1c7)],'end':_0x22bb43[_0x750c80(0x1c1)]})):[];try{if(_0x1f878f[_0x750c80(0x1d9)]===_0x3d9c3f)return;const {id:_0x3a8cd5}=await this[_0x750c80(0x1f0)][_0x750c80(0x1d1)](this[_0x750c80(0x224)],_0x1aba94,{'version':_0x3d9c3f,'sessionId':_0x7e42bc})[_0x750c80(0x22c)]();_0x1f878f['id']=_0x3a8cd5,_0x1f878f[_0x750c80(0x1fd)]=_0x1aba94,_0x1f878f[_0x750c80(0x1d9)]=_0x3d9c3f,_0x1f878f[_0x750c80(0x233)]=_0x7e42bc;}catch(_0x42c652){const _0x337e11=new _0x3c6ee9(_0x750c80(0x221),null);_0x337e11[_0x750c80(0x203)]=_0x42c652[_0x750c80(0x203)],this[_0x750c80(0x1ff)](_0x750c80(0x202),{'error':_0x337e11});}}}[_0xad7835(0x1dd)](_0x2e8a14){const _0x40bdea=_0xad7835;this[_0x40bdea(0x1f5)]({'type':_0x531066[_0x40bdea(0x1bb)],'label':_0x2e8a14,'uiId':_0x40bdea(0x215),'content':_0x2e8a14});}[_0xad7835(0x231)](){const _0x4c9dbf=_0xad7835;this[_0x4c9dbf(0x22d)](_0x4c9dbf(0x215));}async[_0xad7835(0x20b)](_0x10a4fa,_0x1e65c4){const _0x53bc5d=_0xad7835,_0x35096b=_0x53bc5d(0x229)+_0x486623();this[_0x53bc5d(0x225)](_0x35096b);const _0x335489=_0x53bc5d(0x229)+_0x486623();try{this[_0x53bc5d(0x1f5)]({'type':_0x531066[_0x53bc5d(0x1ce)],'label':_0x1e65c4?.[_0x53bc5d(0x21b)]||_0x10a4fa,'uiId':_0x335489,'resourceId':_0x1e65c4?.[_0x53bc5d(0x1db)]},!0x0);const _0x1df5cb=this[_0x53bc5d(0x1f0)][_0x53bc5d(0x219)](this[_0x53bc5d(0x224)],_0x10a4fa,_0x1e65c4);this[_0x53bc5d(0x21a)][_0x53bc5d(0x1f8)](_0x335489,_0x1df5cb[_0x53bc5d(0x1eb)]);const {id:_0x3520f5}=await _0x1df5cb[_0x53bc5d(0x22c)]();this[_0x53bc5d(0x21a)][_0x53bc5d(0x1b0)](_0x335489),this[_0x53bc5d(0x1b4)]({'type':_0x531066[_0x53bc5d(0x1ce)],'id':_0x3520f5,'label':_0x1e65c4?.[_0x53bc5d(0x21b)]||_0x10a4fa,'uiId':_0x335489,'resourceId':_0x1e65c4?.[_0x53bc5d(0x1db)]},!0x1);}catch(_0x1899b0){this[_0x53bc5d(0x21a)][_0x53bc5d(0x1b0)](_0x335489),(_0x1899b0[_0x53bc5d(0x1f4)][_0x53bc5d(0x209)](_0x53bc5d(0x1e0))||this[_0x53bc5d(0x1ff)](_0x53bc5d(0x202),{'error':new _0x3c6ee9(_0x53bc5d(0x226),this,{'url':_0x10a4fa,'originalError':_0x1899b0}),'url':_0x10a4fa}),this[_0x53bc5d(0x22d)](_0x335489));}finally{this[_0x53bc5d(0x1ca)](_0x35096b);}}[_0xad7835(0x1be)](_0x3f46f6){const _0xf38df0=_0xad7835;_0x3f46f6['id']=_0x3f46f6['id']??_0x486623()[_0xf38df0(0x22a)](0x0,0x15),this[_0xf38df0(0x1c4)][_0xf38df0(0x1f8)](_0x3f46f6[_0xf38df0(0x1e9)],_0x3f46f6),this[_0xf38df0(0x1ff)](_0xf38df0(0x1e1),{'contextItem':_0x3f46f6,'isLoading':!0x1});}async[_0xad7835(0x1bf)](_0x426b84,_0x1194c3,_0x3cf45b){const _0x13c5dc=_0xad7835,_0x3a52ed=this[_0x13c5dc(0x1e8)][_0x13c5dc(0x1d5)][_0x13c5dc(0x1ac)](_0x26ed8b=>_0x26ed8b['id']===_0x426b84);if(!_0x3a52ed)return this[_0x13c5dc(0x1ff)](_0x13c5dc(0x202),{'error':new _0x3c6ee9(_0x13c5dc(0x1fb),this,{'sourceId':_0x426b84}),'sourceId':_0x426b84}),[];try{const _0x10513f=(await _0x3a52ed[_0x13c5dc(0x222)](_0x1194c3))[_0x13c5dc(0x1ab)](_0x4f4223=>{const _0x3b504e=_0x13c5dc,_0x59ea0a=this[_0x3b504e(0x1b7)](_0x4f4223['id']);return{..._0x4f4223,'isInContext':_0x59ea0a};});return _0x3a52ed[_0x13c5dc(0x204)]=_0x10513f,this[_0x13c5dc(0x1ff)](_0x13c5dc(0x1bd),{'sourceId':_0x426b84,'source':_0x3a52ed,'resources':_0x10513f,'uid':_0x3cf45b}),_0x10513f;}catch(_0x25b502){return this[_0x13c5dc(0x1ff)](_0x13c5dc(0x202),{'error':new _0x3c6ee9(_0x13c5dc(0x1c0),this,{'sourceId':_0x426b84,'originalError':_0x25b502}),'sourceId':_0x426b84,'sourceLabel':_0x3a52ed[_0x13c5dc(0x21b)]}),[];}}async[_0xad7835(0x236)](_0x287de2,_0x10a5e9){const _0x44a61e=_0xad7835;if(this[_0x44a61e(0x1b7)](_0x10a5e9['id']))return;let _0x2d1820=_0x10a5e9[_0x44a61e(0x1ee)];if(!_0x2d1820&&_0x287de2[_0x44a61e(0x1df)])try{_0x2d1820=await _0x287de2[_0x44a61e(0x1df)](_0x10a5e9['id']);}catch(_0x3058c6){return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x210),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'originalError':_0x3058c6}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}if(_0x2d1820)switch(_0x10a5e9[_0x44a61e(0x22e)]){case _0x531066[_0x44a61e(0x1ce)]:if(_0x44a61e(0x1f7)!=typeof _0x2d1820)return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x1f7),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});await this[_0x44a61e(0x20b)](_0x2d1820,{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']});break;case _0x531066[_0x44a61e(0x1ed)]:if(!(_0x2d1820 instanceof File))return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x234),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});await this[_0x44a61e(0x1b5)]([_0x2d1820],{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']});break;case _0x531066[_0x44a61e(0x227)]:if(_0x44a61e(0x1d0)!=typeof _0x2d1820||!(_0x44a61e(0x1fd)in _0x2d1820)||!(_0x44a61e(0x22e)in _0x2d1820))return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x235),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});_0x2d1820=AIChatContext[_0x44a61e(0x1e7)](_0x2d1820,_0x10a5e9[_0x44a61e(0x21b)]),await this[_0x44a61e(0x1b5)]([_0x2d1820],{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']},_0x531066[_0x44a61e(0x227)]);break;case _0x531066[_0x44a61e(0x211)]:break;default:this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x1f3),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'resourceType':_0x10a5e9[_0x44a61e(0x22e)]}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}else this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x207),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}static[_0xad7835(0x1e7)](_0x1e2bf8,_0x31efa0){const _0x461b29=_0xad7835;switch(_0x1e2bf8[_0x461b29(0x22e)]){case _0xae2625[_0x461b29(0x1da)]:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x1d7)});case _0xae2625[_0x461b29(0x220)]:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x22f)});default:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x21e)});}}static[_0xad7835(0x1fc)](_0xe58be1){const _0x14999f=_0xad7835;switch(_0xe58be1[_0x14999f(0x22e)]){case _0x531066[_0x14999f(0x1ed)]:return{'type':_0x531066[_0x14999f(0x1ed)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x1ce)]:return{'type':_0x531066[_0x14999f(0x1ce)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x216)]:return{'type':_0x531066[_0x14999f(0x216)],'id':_0xe58be1['id'],..._0xe58be1[_0x14999f(0x215)]?.[_0x14999f(0x230)]&&{'selection':_0xe58be1[_0x14999f(0x215)]}};case _0x531066[_0x14999f(0x227)]:return{'type':_0x531066[_0x14999f(0x1ed)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x211)]:{const _0x3e45eb=_0xe58be1;return{'type':_0x531066[_0x14999f(0x211)],'mcpServerName':_0x3e45eb[_0x14999f(0x1f9)],'toolName':_0x3e45eb[_0x14999f(0x1b2)],'data':_0x3e45eb[_0x14999f(0x1ee)],'id':_0x3e45eb['id']};}default:return null;}}[_0xad7835(0x1f5)](_0x44fcf4,_0x36639b=!0x1){const _0x1ff2f8=_0xad7835;if(this[_0x1ff2f8(0x1c4)][_0x1ff2f8(0x1f8)](_0x44fcf4[_0x1ff2f8(0x1e9)],_0x44fcf4),_0x44fcf4[_0x1ff2f8(0x1b3)]||this[_0x1ff2f8(0x1ff)](_0x1ff2f8(0x1e1),{'contextItem':_0x44fcf4,'isLoading':_0x36639b}),_0x1ff2f8(0x1dc)===_0x44fcf4[_0x1ff2f8(0x1e9)]&&this[_0x1ff2f8(0x1f1)](),_0x44fcf4[_0x1ff2f8(0x1db)]){const _0x40ded6=this[_0x1ff2f8(0x201)](_0x44fcf4[_0x1ff2f8(0x1db)]);_0x40ded6&&_0x40ded6[_0x1ff2f8(0x1c6)](_0x387c3a=>{const _0x3047cb=_0x1ff2f8;this[_0x3047cb(0x1cf)](_0x387c3a,_0x44fcf4[_0x3047cb(0x1db)],!0x0);});}}[_0xad7835(0x22d)](_0x3ddd17){const _0x30eb6c=_0xad7835,_0x39c0b0=this[_0x30eb6c(0x1c4)][_0x30eb6c(0x217)](_0x3ddd17),_0xa8ddd0=this[_0x30eb6c(0x21a)][_0x30eb6c(0x217)](_0x3ddd17);if(_0xa8ddd0&&(_0xa8ddd0[_0x30eb6c(0x214)](),this[_0x30eb6c(0x21a)][_0x30eb6c(0x1b0)](_0x3ddd17)),_0x39c0b0?.[_0x30eb6c(0x1db)]){const _0x3b3040=this[_0x30eb6c(0x201)](_0x39c0b0[_0x30eb6c(0x1db)]);_0x3b3040&&_0x3b3040[_0x30eb6c(0x1c6)](_0xd39190=>{const _0x1cc479=_0x30eb6c;this[_0x1cc479(0x1cf)](_0xd39190,_0x39c0b0[_0x1cc479(0x1db)],!0x1);});}this[_0x30eb6c(0x1c4)][_0x30eb6c(0x1b0)](_0x3ddd17),this[_0x30eb6c(0x1ff)](_0x30eb6c(0x1e4),{'uiId':_0x3ddd17,'type':_0x39c0b0?.[_0x30eb6c(0x22e)]}),_0x30eb6c(0x1dc)===_0x3ddd17&&this[_0x30eb6c(0x1f1)]();}[_0xad7835(0x1b4)](_0xa5f0b8,_0x28b121){const _0x248f54=_0xad7835;if(this[_0x248f54(0x1c4)][_0x248f54(0x22b)](_0xa5f0b8[_0x248f54(0x1e9)])&&(this[_0x248f54(0x1c4)][_0x248f54(0x1f8)](_0xa5f0b8[_0x248f54(0x1e9)],_0xa5f0b8),this[_0x248f54(0x1ff)](_0x248f54(0x1b6),{'contextItem':_0xa5f0b8,'isLoading':_0x28b121}),_0xa5f0b8[_0x248f54(0x1db)])){const _0x33393d=this[_0x248f54(0x201)](_0xa5f0b8[_0x248f54(0x1db)]);_0x33393d&&_0x33393d[_0x248f54(0x1c6)](_0x4a5704=>{const _0x5d5290=_0x248f54;this[_0x5d5290(0x1cf)](_0x4a5704,_0xa5f0b8[_0x5d5290(0x1db)],!0x0);});}}[_0xad7835(0x213)](_0x169ac7){const _0x42cfa2=_0xad7835;this[_0x42cfa2(0x239)][_0x42cfa2(0x1f8)](_0x169ac7[_0x42cfa2(0x1e9)],_0x169ac7);}[_0xad7835(0x212)](){const _0xc239a4=_0xad7835;this[_0xc239a4(0x1e8)]={'document':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1e3)]?.[_0xc239a4(0x1fe)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1d3)]?.[_0xc239a4(0x1fe)]},'files':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1c8)]?.[_0xc239a4(0x1fe)]},'sources':this[_0xc239a4(0x218)](),'customItems':this[_0xc239a4(0x232)]?.[_0xc239a4(0x23c)]?.[_0xc239a4(0x1ab)](_0x3b9a09=>({..._0x3b9a09,'enabled':!0x0}))??[]},this[_0xc239a4(0x1ff)](_0xc239a4(0x1d6),{'options':this[_0xc239a4(0x1e8)]});}[_0xad7835(0x218)](){const _0x3309e9=_0xad7835;return this[_0x3309e9(0x232)]?.[_0x3309e9(0x1d5)]?.[_0x3309e9(0x1ab)](_0x570644=>({..._0x570644,'resources':[]}))??[];}[_0xad7835(0x1f1)](){const _0x1d756c=_0xad7835,_0x1fe72d=this[_0x1d756c(0x1a9)]()||this[_0x1d756c(0x208)]();this[_0x1d756c(0x1e8)][_0x1d756c(0x1e3)][_0x1d756c(0x1ec)]=_0x1fe72d,this[_0x1d756c(0x1ff)](_0x1d756c(0x1d6),{'options':this[_0x1d756c(0x1e8)]});}[_0xad7835(0x1b7)](_0x291a72){const _0x2e69b3=_0xad7835;for(const _0x4230e5 of this[_0x2e69b3(0x1c4)][_0x2e69b3(0x1d4)]())if(_0x4230e5[_0x2e69b3(0x1db)]===_0x291a72)return!0x0;for(const _0x1fdcf1 of this[_0x2e69b3(0x239)][_0x2e69b3(0x1d4)]())if(_0x1fdcf1[_0x2e69b3(0x1db)]===_0x291a72)return!0x0;return!0x1;}[_0xad7835(0x201)](_0xefcd45){const _0x4c0f85=_0xad7835,_0x1c8886=[];for(const _0x19f442 of this[_0x4c0f85(0x1e8)][_0x4c0f85(0x1d5)]){_0x19f442[_0x4c0f85(0x204)][_0x4c0f85(0x1ac)](_0x213f1c=>_0x213f1c['id']===_0xefcd45)&&_0x1c8886[_0x4c0f85(0x1ba)](_0x19f442['id']);}return 0x0===_0x1c8886[_0x4c0f85(0x230)]?null:_0x1c8886;}[_0xad7835(0x1cf)](_0x99d9b2,_0x56c4d2,_0x5ddae1){const _0x4c091e=_0xad7835,_0x477381=this[_0x4c091e(0x1e8)][_0x4c091e(0x1d5)][_0x4c091e(0x1ac)](_0x5a2d5b=>_0x5a2d5b['id']===_0x99d9b2);if(!_0x477381)return;const _0x57d71e=_0x477381[_0x4c091e(0x204)][_0x4c091e(0x1ac)](_0xd82c17=>_0xd82c17['id']===_0x56c4d2);_0x57d71e&&(_0x57d71e[_0x4c091e(0x1fa)]=_0x5ddae1,this[_0x4c091e(0x1ff)](_0x4c091e(0x23b),{'sourceId':_0x99d9b2,'resourceId':_0x56c4d2,'isInContext':_0x5ddae1}));}[_0xad7835(0x225)](_0x59fb52){const _0x55c99a=_0xad7835;this[_0x55c99a(0x1d2)][_0x55c99a(0x1f8)](_0x59fb52,!0x0),this[_0x55c99a(0x1d2)][_0x55c99a(0x237)]&&this[_0x55c99a(0x1ff)](_0x55c99a(0x1cb),{'isUploadInProgress':!0x0});}[_0xad7835(0x1ca)](_0x2b04b9){const _0x50bbcc=_0xad7835;this[_0x50bbcc(0x1d2)][_0x50bbcc(0x1b0)](_0x2b04b9),0x0===this[_0x50bbcc(0x1d2)][_0x50bbcc(0x237)]&&this[_0x50bbcc(0x1ff)](_0x50bbcc(0x1cb),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x548e69=_0x456c;(function(_0x574534,_0x9a8fed){const _0x4de43b=_0x456c,_0x50d322=_0x574534();while(!![]){try{const _0x209cf4=parseInt(_0x4de43b(0x11d))/0x1*(parseInt(_0x4de43b(0xe0))/0x2)+parseInt(_0x4de43b(0x129))/0x3*(-parseInt(_0x4de43b(0xf2))/0x4)+parseInt(_0x4de43b(0x105))/0x5*(-parseInt(_0x4de43b(0x132))/0x6)+parseInt(_0x4de43b(0x149))/0x7+parseInt(_0x4de43b(0x135))/0x8+parseInt(_0x4de43b(0x14c))/0x9+parseInt(_0x4de43b(0x150))/0xa*(-parseInt(_0x4de43b(0xfa))/0xb);if(_0x209cf4===_0x9a8fed)break;else _0x50d322['push'](_0x50d322['shift']());}catch(_0x5e408a){_0x50d322['push'](_0x50d322['shift']());}}}(_0x5e6a,0x36127));function _0x5e6a(){const _0x8232c7=['_removeContextItem','FILE','resources','filter','getResources','end','set','44qSWLeW','delete','_isResourceInContext','uploadUrl','contextItemRemoved','isSelectionInContext','code','ai-chat-file-upload-failed','URL','contextItemLoadingEnded','addFilesToContext','45JGtvcv','map','object\x20with\x20content\x20and\x20type\x20properties','object','hidden','_findSourceIdsByResourceId','ai-chat-source-not-found','error','start','clearPendingContextItems','mcpServerName','addContextOptionsChanged','isCurrentDocumentInConversation','mapContextItemsToRequestData','_pendingContextItems','addCurrentDocumentToContext','_ongoingUploadOperations','urls','removeSelectionFromContext','ai-request-aborted','fire','contextSent','uploadDocument','ai-chat-url-upload-failed','2QJrbdF','getData','removeFromContext','addToConversationContext','addToolItemToContext','isInContext','from','files','data','resourceId','_config','addSelectionToContext','3cvtnMm','_toggleAddCurrentDocumentOptionVisibility','_addContextOptionsState','uiId','_connector','getDocument','push','has','toolName','65886woGbJp','_getCustomSourcesInitialState','TOOL','3470152Zrgxlm','size','find','isReadOnly','url-','_updateResourceInContextState','updateCurrentDocument','abort','string','document','TEXT','_convertTextResourceToFile','ai-chat-resource-load-failed','Current\x20document','length','loadSourceResources','resourceStateChanged','selection','ai-chat-resource-no-data','type','68432UwyeSj','stack','MARKDOWN','1519740tAvwou','label','name','sourceResourcesLoaded','1471630CUJGwu','url','ai-chat-document-upload-failed','_mapContextItemToRequestData','text/markdown','_setAddContextOptionsDefaultState','_startUploadOperation','values','_addContextItem','isHidden','substring','content','_ownerId','uploadProgressChanged','enabled','addUrlToContext','_finishUploadOperation','forEach','text/plain','attributes','version','fetchDocument','_finishContextItemLoading','HTML','_ongoingUploads','_addToConversationContextItem','isCurrentDocumentInContext','ai-chat-source-resources-load-failed','uploadFile','File','populateFromMessage','sessionId','init','getPendingContextItems','addResourceToContext','SELECTION','ai-chat-context-unsupported-type','DOCUMENT','425202IeSXGO','message','text/html','getId','abortController','customItems','getSentContextItems','startsWith','_createContextItemFromContent','ai-chat-context-invalid-data','all','_conversationContextItems','contextItemAdded','file-','get','files-','sources','current-document','514588ZchCVD'];_0x5e6a=function(){return _0x8232c7;};return _0x5e6a();}import{CKEditorError as _0xfc3ea9,ObservableMixin as _0x2a0d4f,uid as _0x31d1d9}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x59cd01,AIContextTextResourceType as _0x26f8d7}from'../../aicore/model/aicontext.js';function _0x456c(_0x407709,_0x59912f){const _0x5e6af2=_0x5e6a();return _0x456c=function(_0x456ce7,_0x377cf5){_0x456ce7=_0x456ce7-0xd8;let _0x6d376e=_0x5e6af2[_0x456ce7];return _0x6d376e;},_0x456c(_0x407709,_0x59912f);}import{escape as _0xb6ef75}from'es-toolkit/compat';import{errorsMap as _0x249939}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x548e69(0xec),_0x548e69(0xfe),_0x548e69(0x103),_0x548e69(0x11a),_0x548e69(0x10c),_0x548e69(0x110),_0x548e69(0x14f),_0x548e69(0x145),_0x548e69(0x15d)];export class AIChatContext extends _0x2a0d4f(){[_0x548e69(0x12d)];[_0x548e69(0x127)];[_0x548e69(0x15c)];constructor({connector:_0x357a6b,config:_0x5ae51b,ownerId:_0x533615}){const _0xf4a87d=_0x548e69;super(),this[_0xf4a87d(0x12d)]=_0x357a6b,this[_0xf4a87d(0x127)]=_0x5ae51b,this[_0xf4a87d(0x15c)]=_0x533615;}[_0x548e69(0xda)](){const _0x4efb05=_0x548e69;this[_0x4efb05(0x113)]=new Map(),this[_0x4efb05(0xeb)]=new Map(),this[_0x4efb05(0x168)]=new Map(),this[_0x4efb05(0x115)]=new Map(),this[_0x4efb05(0x155)]();}[_0x548e69(0xdb)](){const _0x2e982a=_0x548e69;return this[_0x2e982a(0x113)];}async[_0x548e69(0xd8)](_0x3c3b4a){const _0x52f0b7=_0x548e69,_0x5c6491=await this[_0x52f0b7(0xe8)](_0x3c3b4a);return this[_0x52f0b7(0x169)](_0x5c6491),_0x52f0b7(0xf1)===_0x5c6491[_0x52f0b7(0x12c)]&&this[_0x52f0b7(0x12a)](),_0x5c6491;}async[_0x548e69(0xe8)](_0x55d98a){const _0x3a16ba=_0x548e69;if(_0x55d98a[_0x3a16ba(0x148)]===_0x59cd01[_0x3a16ba(0xdf)]){const _0x161e26=await this[_0x3a16ba(0x12d)][_0x3a16ba(0x165)](this[_0x3a16ba(0x15c)],_0x55d98a['id'])[_0x3a16ba(0x12e)]();return{'id':_0x3a16ba(0xf1),'uiId':_0x3a16ba(0xf1),'label':_0x3a16ba(0x142),'type':_0x55d98a[_0x3a16ba(0x148)],'content':_0x161e26[_0x3a16ba(0x15b)],'hidden':this[_0x3a16ba(0xeb)][_0x3a16ba(0x130)](_0x3a16ba(0xf1)),'version':_0x161e26[_0x3a16ba(0x163)]?.[_0x3a16ba(0x164)],'sessionId':_0x161e26[_0x3a16ba(0x163)]?.[_0x3a16ba(0xd9)]};}if(_0x55d98a[_0x3a16ba(0x148)]===_0x59cd01[_0x3a16ba(0x134)])return{'id':_0x55d98a['id'],'uiId':_0x55d98a['id'],'label':_0x55d98a[_0x3a16ba(0x125)]?.[_0x3a16ba(0x14d)]||_0x55d98a['id'],'type':_0x59cd01[_0x3a16ba(0x134)],'mcpServerName':_0x55d98a[_0x3a16ba(0x10f)],'toolName':_0x55d98a[_0x3a16ba(0x131)],'data':_0x55d98a[_0x3a16ba(0x125)]||{}};return{'id':_0x55d98a['id'],'uiId':_0x55d98a['id'],'label':_0x55d98a[_0x3a16ba(0x163)]?.[_0x3a16ba(0x14d)]||_0x55d98a[_0x3a16ba(0x14e)]||_0x55d98a[_0x3a16ba(0x151)]||_0x55d98a['id'],'type':_0x55d98a[_0x3a16ba(0x148)],..._0x55d98a?.[_0x3a16ba(0x163)]?.[_0x3a16ba(0x126)]?{'resourceId':_0x55d98a[_0x3a16ba(0x163)]?.[_0x3a16ba(0x126)]}:{}};}[_0x548e69(0xe6)](){const _0xcadaaa=_0x548e69;return new Map(this[_0xcadaaa(0xeb)]);}[_0x548e69(0x11f)](_0x53a371){const _0xf47865=_0x548e69,_0x24bea8=this[_0xf47865(0x113)][_0xf47865(0xee)](_0x53a371);_0x24bea8?.[_0xf47865(0x138)]||this[_0xf47865(0xf3)](_0x53a371);}[_0x548e69(0x10e)](){const _0x59780c=_0x548e69;if(0x0===this[_0x59780c(0x113)][_0x59780c(0x136)])return;for(const _0x1337e1 of this[_0x59780c(0x113)][_0x59780c(0x157)]())this[_0x59780c(0xf3)](_0x1337e1[_0x59780c(0x12c)]);const _0x191019=this[_0x59780c(0xeb)][_0x59780c(0xee)](_0x59780c(0xf1))||this[_0x59780c(0x113)][_0x59780c(0xee)](_0x59780c(0xf1));_0x191019&&this[_0x59780c(0x158)]({..._0x191019,'isReadOnly':!0x0,'hidden':!0x0});}[_0x548e69(0x120)](_0x3429bd){const _0x1cf2b8=_0x548e69;for(const _0x4b87e4 of _0x3429bd[_0x1cf2b8(0x157)]())this[_0x1cf2b8(0x169)](_0x4b87e4);this[_0x1cf2b8(0x10e)](),this[_0x1cf2b8(0x119)](_0x1cf2b8(0x11a),{'contextItems':Array[_0x1cf2b8(0x123)](this[_0x1cf2b8(0xe6)]()[_0x1cf2b8(0x157)]())});}[_0x548e69(0x16a)](){const _0x189f33=_0x548e69;return this[_0x189f33(0x113)][_0x189f33(0x130)](_0x189f33(0xf1));}[_0x548e69(0xff)](){const _0xea5d13=_0x548e69;return this[_0xea5d13(0x113)][_0xea5d13(0x130)](_0xea5d13(0x146));}[_0x548e69(0x111)](){const _0x28be05=_0x548e69;return this[_0x28be05(0xeb)][_0x28be05(0x130)](_0x28be05(0xf1));}static[_0x548e69(0x112)](_0x8e2f19){const _0x224340=_0x548e69;return Array[_0x224340(0x123)](_0x8e2f19[_0x224340(0x157)]())[_0x224340(0x106)](_0x765ef1=>this[_0x224340(0x153)](_0x765ef1))[_0x224340(0xf6)](_0x159a7d=>null!==_0x159a7d);}async[_0x548e69(0x104)](_0x2b1a13,_0xfcbf8a,_0x5e6d00=_0x59cd01[_0x548e69(0xf4)]){const _0x363caa=_0x548e69,_0x2fbe51=_0x363caa(0xef)+_0x31d1d9();this[_0x363caa(0x156)](_0x2fbe51);try{await Promise[_0x363caa(0xea)](_0x2b1a13[_0x363caa(0x106)](async _0x526f0c=>{const _0x3ddb46=_0x363caa,_0x13c63d=_0x3ddb46(0xed)+_0x31d1d9(),_0x12602e=_0xb6ef75(_0x526f0c[_0x3ddb46(0x14e)]);try{this[_0x3ddb46(0x158)]({'type':_0x5e6d00,'label':_0xfcbf8a?.[_0x3ddb46(0x14d)]||_0x12602e,'uiId':_0x13c63d,'resourceId':_0xfcbf8a?.[_0x3ddb46(0x126)]},!0x0);const _0xf9c5e7=this[_0x3ddb46(0x12d)][_0x3ddb46(0x16c)](this[_0x3ddb46(0x15c)],_0x526f0c,_0xfcbf8a);this[_0x3ddb46(0x168)][_0x3ddb46(0xf9)](_0x13c63d,_0xf9c5e7[_0x3ddb46(0xe4)]);const {id:_0x10e103}=await _0xf9c5e7[_0x3ddb46(0xe3)]();this[_0x3ddb46(0x168)][_0x3ddb46(0xfb)](_0x13c63d),this[_0x3ddb46(0x166)]({'type':_0x5e6d00,'id':_0x10e103,'label':_0xfcbf8a?.[_0x3ddb46(0x14d)]||_0x12602e,'uiId':_0x13c63d,'resourceId':_0xfcbf8a?.[_0x3ddb46(0x126)]},!0x1);}catch(_0xdd805c){this[_0x3ddb46(0x168)][_0x3ddb46(0xfb)](_0x13c63d);if(!(_0xdd805c instanceof _0xfc3ea9&&_0xdd805c[_0x3ddb46(0xe1)][_0x3ddb46(0xe7)](_0x3ddb46(0x118)))){const _0x2daace=_0x249939[_0x3ddb46(0xee)](_0xdd805c[_0x3ddb46(0x100)])||_0x3ddb46(0x101),_0x38fdab=new _0xfc3ea9(_0x2daace,null,{'fileName':_0x12602e,..._0xdd805c});_0x38fdab[_0x3ddb46(0x14a)]=_0xdd805c[_0x3ddb46(0x14a)],this[_0x3ddb46(0x119)](_0x3ddb46(0x10c),{'error':_0x38fdab});}this[_0x3ddb46(0xf3)](_0x13c63d);}}));}finally{this[_0x363caa(0x160)](_0x2fbe51);}}[_0x548e69(0x114)](_0x5ee54d){const _0x2fcc70=_0x548e69;if(this[_0x2fcc70(0x16a)]()||!this[_0x2fcc70(0x12b)][_0x2fcc70(0x13e)][_0x2fcc70(0x15e)])return;const _0x3db494={'type':_0x59cd01[_0x2fcc70(0xdf)],'uiId':_0x2fcc70(0xf1),'label':_0x5ee54d,'isReadOnly':this[_0x2fcc70(0xeb)][_0x2fcc70(0x130)](_0x2fcc70(0xf1)),'hidden':this[_0x2fcc70(0xeb)][_0x2fcc70(0x130)](_0x2fcc70(0xf1))};this[_0x2fcc70(0x158)](_0x3db494);}async[_0x548e69(0x13b)](_0x36e592,_0x38f680,_0x3d1881,_0xd3ea5c){const _0x30db3d=_0x548e69,_0x24ee13=this[_0x30db3d(0x113)][_0x30db3d(0xee)](_0x30db3d(0xf1));if(_0x24ee13&&_0x36e592){_0x24ee13[_0x30db3d(0x146)]=_0xd3ea5c?_0xd3ea5c[_0x30db3d(0x106)](_0x19823c=>({'start':_0x19823c[_0x30db3d(0x10d)],'end':_0x19823c[_0x30db3d(0xf8)]})):[];try{if(_0x24ee13[_0x30db3d(0x164)]===_0x38f680)return;const {id:_0xfffe32}=await this[_0x30db3d(0x12d)][_0x30db3d(0x11b)](this[_0x30db3d(0x15c)],_0x36e592,{'version':_0x38f680,'sessionId':_0x3d1881})[_0x30db3d(0xe3)]();_0x24ee13['id']=_0xfffe32,_0x24ee13[_0x30db3d(0x15b)]=_0x36e592,_0x24ee13[_0x30db3d(0x164)]=_0x38f680,_0x24ee13[_0x30db3d(0xd9)]=_0x3d1881;}catch(_0x3611e8){const _0x50f6a7=new _0xfc3ea9(_0x30db3d(0x152),null);_0x50f6a7[_0x30db3d(0x14a)]=_0x3611e8[_0x30db3d(0x14a)],this[_0x30db3d(0x119)](_0x30db3d(0x10c),{'error':_0x50f6a7});}}}[_0x548e69(0x128)](_0x10ed0b){const _0x51487c=_0x548e69;this[_0x51487c(0x158)]({'type':_0x59cd01[_0x51487c(0xdd)],'label':_0x10ed0b,'uiId':_0x51487c(0x146),'content':_0x10ed0b});}[_0x548e69(0x117)](){const _0x1ad9e8=_0x548e69;this[_0x1ad9e8(0xf3)](_0x1ad9e8(0x146));}async[_0x548e69(0x15f)](_0x278e3d,_0x427513){const _0x3ac466=_0x548e69,_0x206a93=_0x3ac466(0x139)+_0x31d1d9();this[_0x3ac466(0x156)](_0x206a93);const _0x5e687b=_0x3ac466(0x139)+_0x31d1d9();try{this[_0x3ac466(0x158)]({'type':_0x59cd01[_0x3ac466(0x102)],'label':_0x427513?.[_0x3ac466(0x14d)]||_0x278e3d,'uiId':_0x5e687b,'resourceId':_0x427513?.[_0x3ac466(0x126)]},!0x0);const _0x3be5d6=this[_0x3ac466(0x12d)][_0x3ac466(0xfd)](this[_0x3ac466(0x15c)],_0x278e3d,_0x427513);this[_0x3ac466(0x168)][_0x3ac466(0xf9)](_0x5e687b,_0x3be5d6[_0x3ac466(0xe4)]);const {id:_0x3636fa}=await _0x3be5d6[_0x3ac466(0xe3)]();this[_0x3ac466(0x168)][_0x3ac466(0xfb)](_0x5e687b),this[_0x3ac466(0x166)]({'type':_0x59cd01[_0x3ac466(0x102)],'id':_0x3636fa,'label':_0x427513?.[_0x3ac466(0x14d)]||_0x278e3d,'uiId':_0x5e687b,'resourceId':_0x427513?.[_0x3ac466(0x126)]},!0x1);}catch(_0x4ebfe){this[_0x3ac466(0x168)][_0x3ac466(0xfb)](_0x5e687b),(_0x4ebfe[_0x3ac466(0xe1)][_0x3ac466(0xe7)](_0x3ac466(0x118))||this[_0x3ac466(0x119)](_0x3ac466(0x10c),{'error':new _0xfc3ea9(_0x3ac466(0x11c),this,{'url':_0x278e3d,'originalError':_0x4ebfe}),'url':_0x278e3d}),this[_0x3ac466(0xf3)](_0x5e687b));}finally{this[_0x3ac466(0x160)](_0x206a93);}}[_0x548e69(0x121)](_0x2de14d){const _0x167ded=_0x548e69;_0x2de14d['id']=_0x2de14d['id']??_0x31d1d9()[_0x167ded(0x15a)](0x0,0x15),this[_0x167ded(0x113)][_0x167ded(0xf9)](_0x2de14d[_0x167ded(0x12c)],_0x2de14d),this[_0x167ded(0x119)](_0x167ded(0xec),{'contextItem':_0x2de14d,'isLoading':!0x1});}async[_0x548e69(0x144)](_0x5b14ac,_0x14c1a7,_0x34dda9){const _0x4909e6=_0x548e69,_0x1ab1ba=this[_0x4909e6(0x12b)][_0x4909e6(0xf0)][_0x4909e6(0x137)](_0x22b2a4=>_0x22b2a4['id']===_0x5b14ac);if(!_0x1ab1ba)return this[_0x4909e6(0x119)](_0x4909e6(0x10c),{'error':new _0xfc3ea9(_0x4909e6(0x10b),this,{'sourceId':_0x5b14ac}),'sourceId':_0x5b14ac}),[];try{const _0x4b08ab=(await _0x1ab1ba[_0x4909e6(0xf7)](_0x14c1a7))[_0x4909e6(0x106)](_0x4c008=>{const _0x4199ca=_0x4909e6,_0x342021=this[_0x4199ca(0xfc)](_0x4c008['id']);return{..._0x4c008,'isInContext':_0x342021};});return _0x1ab1ba[_0x4909e6(0xf5)]=_0x4b08ab,this[_0x4909e6(0x119)](_0x4909e6(0x14f),{'sourceId':_0x5b14ac,'source':_0x1ab1ba,'resources':_0x4b08ab,'uid':_0x34dda9}),_0x4b08ab;}catch(_0x45c2e9){return this[_0x4909e6(0x119)](_0x4909e6(0x10c),{'error':new _0xfc3ea9(_0x4909e6(0x16b),this,{'sourceId':_0x5b14ac,'originalError':_0x45c2e9}),'sourceId':_0x5b14ac,'sourceLabel':_0x1ab1ba[_0x4909e6(0x14d)]}),[];}}async[_0x548e69(0xdc)](_0x451f57,_0x476efe){const _0x1df5db=_0x548e69;if(this[_0x1df5db(0xfc)](_0x476efe['id']))return;let _0x40448f=_0x476efe[_0x1df5db(0x125)];if(!_0x40448f&&_0x451f57[_0x1df5db(0x11e)])try{_0x40448f=await _0x451f57[_0x1df5db(0x11e)](_0x476efe['id']);}catch(_0x1c258e){return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0x141),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'originalError':_0x1c258e}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});}if(_0x40448f)switch(_0x476efe[_0x1df5db(0x148)]){case _0x59cd01[_0x1df5db(0x102)]:if(_0x1df5db(0x13d)!=typeof _0x40448f)return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xe9),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'expectedType':_0x1df5db(0x13d),'actualType':typeof _0x40448f}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});await this[_0x1df5db(0x15f)](_0x40448f,{'label':_0x476efe[_0x1df5db(0x14d)],'resourceId':_0x476efe['id']});break;case _0x59cd01[_0x1df5db(0xf4)]:if(!(_0x40448f instanceof File))return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xe9),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'expectedType':_0x1df5db(0x16d),'actualType':typeof _0x40448f}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});await this[_0x1df5db(0x104)]([_0x40448f],{'label':_0x476efe[_0x1df5db(0x14d)],'resourceId':_0x476efe['id']});break;case _0x59cd01[_0x1df5db(0x13f)]:if(_0x1df5db(0x108)!=typeof _0x40448f||!(_0x1df5db(0x15b)in _0x40448f)||!(_0x1df5db(0x148)in _0x40448f))return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xe9),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'expectedType':_0x1df5db(0x107),'actualType':typeof _0x40448f}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});_0x40448f=AIChatContext[_0x1df5db(0x140)](_0x40448f,_0x476efe[_0x1df5db(0x14d)]),await this[_0x1df5db(0x104)]([_0x40448f],{'label':_0x476efe[_0x1df5db(0x14d)],'resourceId':_0x476efe['id']},_0x59cd01[_0x1df5db(0x13f)]);break;case _0x59cd01[_0x1df5db(0x134)]:break;default:this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xde),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'resourceType':_0x476efe[_0x1df5db(0x148)]}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});}else this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0x147),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});}static[_0x548e69(0x140)](_0x2c2dba,_0x53bd75){const _0x445834=_0x548e69;switch(_0x2c2dba[_0x445834(0x148)]){case _0x26f8d7[_0x445834(0x14b)]:return new File([_0x2c2dba[_0x445834(0x15b)]],_0x53bd75,{'type':_0x445834(0x154)});case _0x26f8d7[_0x445834(0x167)]:return new File([_0x2c2dba[_0x445834(0x15b)]],_0x53bd75,{'type':_0x445834(0xe2)});default:return new File([_0x2c2dba[_0x445834(0x15b)]],_0x53bd75,{'type':_0x445834(0x162)});}}static[_0x548e69(0x153)](_0x23e5c2){const _0x334c32=_0x548e69;switch(_0x23e5c2[_0x334c32(0x148)]){case _0x59cd01[_0x334c32(0xf4)]:return{'type':_0x59cd01[_0x334c32(0xf4)],'id':_0x23e5c2['id']};case _0x59cd01[_0x334c32(0x102)]:return{'type':_0x59cd01[_0x334c32(0x102)],'id':_0x23e5c2['id']};case _0x59cd01[_0x334c32(0xdf)]:return{'type':_0x59cd01[_0x334c32(0xdf)],'id':_0x23e5c2['id'],..._0x23e5c2[_0x334c32(0x146)]?.[_0x334c32(0x143)]&&{'selection':_0x23e5c2[_0x334c32(0x146)]}};case _0x59cd01[_0x334c32(0x13f)]:return{'type':_0x59cd01[_0x334c32(0xf4)],'id':_0x23e5c2['id']};case _0x59cd01[_0x334c32(0x134)]:{const _0x1a856c=_0x23e5c2;return{'type':_0x59cd01[_0x334c32(0x134)],'mcpServerName':_0x1a856c[_0x334c32(0x10f)],'toolName':_0x1a856c[_0x334c32(0x131)],'data':_0x1a856c[_0x334c32(0x125)],'id':_0x1a856c['id']};}default:return null;}}[_0x548e69(0x158)](_0xd6c476,_0x275467=!0x1){const _0x2ae040=_0x548e69;if(this[_0x2ae040(0x113)][_0x2ae040(0xf9)](_0xd6c476[_0x2ae040(0x12c)],_0xd6c476),_0xd6c476[_0x2ae040(0x109)]||this[_0x2ae040(0x119)](_0x2ae040(0xec),{'contextItem':_0xd6c476,'isLoading':_0x275467}),_0x2ae040(0xf1)===_0xd6c476[_0x2ae040(0x12c)]&&this[_0x2ae040(0x12a)](),_0xd6c476[_0x2ae040(0x126)]){const _0x537aeb=this[_0x2ae040(0x10a)](_0xd6c476[_0x2ae040(0x126)]);_0x537aeb&&_0x537aeb[_0x2ae040(0x161)](_0x3b5dfd=>{const _0x4ee846=_0x2ae040;this[_0x4ee846(0x13a)](_0x3b5dfd,_0xd6c476[_0x4ee846(0x126)],!0x0);});}}[_0x548e69(0xf3)](_0x40d3de){const _0xfdab40=_0x548e69,_0x5721c3=this[_0xfdab40(0x113)][_0xfdab40(0xee)](_0x40d3de),_0x59e2b6=this[_0xfdab40(0x168)][_0xfdab40(0xee)](_0x40d3de);if(_0x59e2b6&&(_0x59e2b6[_0xfdab40(0x13c)](),this[_0xfdab40(0x168)][_0xfdab40(0xfb)](_0x40d3de)),_0x5721c3?.[_0xfdab40(0x126)]){const _0x56c75d=this[_0xfdab40(0x10a)](_0x5721c3[_0xfdab40(0x126)]);_0x56c75d&&_0x56c75d[_0xfdab40(0x161)](_0x19a4a6=>{const _0x3f1133=_0xfdab40;this[_0x3f1133(0x13a)](_0x19a4a6,_0x5721c3[_0x3f1133(0x126)],!0x1);});}this[_0xfdab40(0x113)][_0xfdab40(0xfb)](_0x40d3de),this[_0xfdab40(0x119)](_0xfdab40(0xfe),{'uiId':_0x40d3de,'type':_0x5721c3?.[_0xfdab40(0x148)]}),_0xfdab40(0xf1)===_0x40d3de&&this[_0xfdab40(0x12a)]();}[_0x548e69(0x166)](_0x392082,_0x4461f7){const _0x7d2a55=_0x548e69;if(this[_0x7d2a55(0x113)][_0x7d2a55(0x130)](_0x392082[_0x7d2a55(0x12c)])&&(this[_0x7d2a55(0x113)][_0x7d2a55(0xf9)](_0x392082[_0x7d2a55(0x12c)],_0x392082),this[_0x7d2a55(0x119)](_0x7d2a55(0x103),{'contextItem':_0x392082,'isLoading':_0x4461f7}),_0x392082[_0x7d2a55(0x126)])){const _0x1f7406=this[_0x7d2a55(0x10a)](_0x392082[_0x7d2a55(0x126)]);_0x1f7406&&_0x1f7406[_0x7d2a55(0x161)](_0x15151a=>{const _0x1dbe8a=_0x7d2a55;this[_0x1dbe8a(0x13a)](_0x15151a,_0x392082[_0x1dbe8a(0x126)],!0x0);});}}[_0x548e69(0x169)](_0x158528){const _0x51c6b1=_0x548e69;this[_0x51c6b1(0xeb)][_0x51c6b1(0xf9)](_0x158528[_0x51c6b1(0x12c)],_0x158528);}[_0x548e69(0x155)](){const _0xf47c06=_0x548e69;this[_0xf47c06(0x12b)]={'document':{'enabled':!0x1!==this[_0xf47c06(0x127)]?.[_0xf47c06(0x13e)]?.[_0xf47c06(0x15e)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xf47c06(0x127)]?.[_0xf47c06(0x116)]?.[_0xf47c06(0x15e)]},'files':{'enabled':!0x1!==this[_0xf47c06(0x127)]?.[_0xf47c06(0x124)]?.[_0xf47c06(0x15e)]},'sources':this[_0xf47c06(0x133)](),'customItems':this[_0xf47c06(0x127)]?.[_0xf47c06(0xe5)]?.[_0xf47c06(0x106)](_0x59fc00=>({..._0x59fc00,'enabled':!0x0}))??[]},this[_0xf47c06(0x119)](_0xf47c06(0x110),{'options':this[_0xf47c06(0x12b)]});}[_0x548e69(0x133)](){const _0x25f565=_0x548e69;return this[_0x25f565(0x127)]?.[_0x25f565(0xf0)]?.[_0x25f565(0x106)](_0x208836=>({..._0x208836,'resources':[]}))??[];}[_0x548e69(0x12a)](){const _0x24eb7f=_0x548e69,_0x5d6844=this[_0x24eb7f(0x16a)]()||this[_0x24eb7f(0x111)]();this[_0x24eb7f(0x12b)][_0x24eb7f(0x13e)][_0x24eb7f(0x159)]=_0x5d6844,this[_0x24eb7f(0x119)](_0x24eb7f(0x110),{'options':this[_0x24eb7f(0x12b)]});}[_0x548e69(0xfc)](_0x394606){const _0x5009e7=_0x548e69;for(const _0x17a2a7 of this[_0x5009e7(0x113)][_0x5009e7(0x157)]())if(_0x17a2a7[_0x5009e7(0x126)]===_0x394606)return!0x0;for(const _0x463a93 of this[_0x5009e7(0xeb)][_0x5009e7(0x157)]())if(_0x463a93[_0x5009e7(0x126)]===_0x394606)return!0x0;return!0x1;}[_0x548e69(0x10a)](_0x5da460){const _0x56e114=_0x548e69,_0x1d247d=[];for(const _0x4f83df of this[_0x56e114(0x12b)][_0x56e114(0xf0)]){_0x4f83df[_0x56e114(0xf5)][_0x56e114(0x137)](_0x4143c8=>_0x4143c8['id']===_0x5da460)&&_0x1d247d[_0x56e114(0x12f)](_0x4f83df['id']);}return 0x0===_0x1d247d[_0x56e114(0x143)]?null:_0x1d247d;}[_0x548e69(0x13a)](_0xe57caa,_0x1db2bf,_0xa41eca){const _0x521f6d=_0x548e69,_0x1be385=this[_0x521f6d(0x12b)][_0x521f6d(0xf0)][_0x521f6d(0x137)](_0x282ed5=>_0x282ed5['id']===_0xe57caa);if(!_0x1be385)return;const _0xc3aa46=_0x1be385[_0x521f6d(0xf5)][_0x521f6d(0x137)](_0x3b2a60=>_0x3b2a60['id']===_0x1db2bf);_0xc3aa46&&(_0xc3aa46[_0x521f6d(0x122)]=_0xa41eca,this[_0x521f6d(0x119)](_0x521f6d(0x145),{'sourceId':_0xe57caa,'resourceId':_0x1db2bf,'isInContext':_0xa41eca}));}[_0x548e69(0x156)](_0x4d7dd7){const _0x4a5505=_0x548e69;this[_0x4a5505(0x115)][_0x4a5505(0xf9)](_0x4d7dd7,!0x0),this[_0x4a5505(0x115)][_0x4a5505(0x136)]&&this[_0x4a5505(0x119)](_0x4a5505(0x15d),{'isUploadInProgress':!0x0});}[_0x548e69(0x160)](_0x5af813){const _0x41f139=_0x548e69;this[_0x41f139(0x115)][_0x41f139(0xfb)](_0x5af813),0x0===this[_0x41f139(0x115)][_0x41f139(0x136)]&&this[_0x41f139(0x119)](_0x41f139(0x15d),{'isUploadInProgress':!0x1});}}
|