@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1
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
|
-
function
|
|
23
|
+
const _0x5196ef=_0xbb2f;(function(_0x5a9984,_0x4a0cf1){const _0x10cefa=_0xbb2f,_0x83d04f=_0x5a9984();while(!![]){try{const _0x17ad54=-parseInt(_0x10cefa(0x98))/0x1+parseInt(_0x10cefa(0x8b))/0x2*(-parseInt(_0x10cefa(0xb1))/0x3)+-parseInt(_0x10cefa(0xa9))/0x4+parseInt(_0x10cefa(0xbd))/0x5*(-parseInt(_0x10cefa(0xa1))/0x6)+parseInt(_0x10cefa(0x97))/0x7*(-parseInt(_0x10cefa(0x86))/0x8)+parseInt(_0x10cefa(0x8d))/0x9*(parseInt(_0x10cefa(0x91))/0xa)+parseInt(_0x10cefa(0x93))/0xb;if(_0x17ad54===_0x4a0cf1)break;else _0x83d04f['push'](_0x83d04f['shift']());}catch(_0xe5b193){_0x83d04f['push'](_0x83d04f['shift']());}}}(_0x1f0f,0xc8df5));function _0xbb2f(_0x23fbff,_0x33b5e3){const _0x1f0fb7=_0x1f0f();return _0xbb2f=function(_0xbb2f5,_0x42b9d5){_0xbb2f5=_0xbb2f5-0x80;let _0x22e351=_0x1f0fb7[_0xbb2f5];return _0x22e351;},_0xbb2f(_0x23fbff,_0x33b5e3);}import{Plugin as _0x338d7c}from'ckeditor5/src/core.js';function _0x1f0f(){const _0x47ad0c=['AIChatBalloon','toggleRotatorButtonsVisibility','aiChatBalloon','dialogClosed','set','render','plugins','401585fVgeQt','headerView','nextButtonView','showRotator','open','isOfficialPlugin','delegate','get','locale','Dialog','view','200IeIMxx','ck-ai-chat-balloon','trackChanges','_createChatBalloonView','previousButtonView','12MhjFQP','value','1233jTqTVs','showDiff','commands','focus','91870YBDmQZ','AIBalloon','36601664vBlAmg','once','isPremiumPlugin','showNext','336833zrmRjD','828099PeluIs','_restoreDefaultViewFocus','pluginName','config','applySuggestion','editor','ai.availableReplyActions','_chatBalloonView','setState','12lqqmTk','has','children','updateContent','togglePartToolbarEnabled','beforeDialogClosed','rejectSuggestion','insertSuggestion','3728616UPYeYr','areActionsDisabled','requires','close','_toggleRotatorButtonsInDialogHeader','remove','TrackChanges','addMany','319704WlvLyC','bind','isTrackChangesOn','filter','showPrevious'];_0x1f0f=function(){return _0x47ad0c;};return _0x1f0f();}import{AIBalloon as _0x5ce7cf}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0xc04859}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x288dc6}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5556dd}from'../aicore/utils/eventnames.js';import{Dialog as _0x13fac4}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x338d7c{static get[_0x5196ef(0xab)](){return[_0x13fac4,_0x5ce7cf];}static get[_0x5196ef(0x9a)](){const _0x35400b=_0x5196ef;return _0x35400b(0xb6);}static get[_0x5196ef(0x80)](){return!0x0;}static get[_0x5196ef(0x95)](){return!0x0;}[_0x5196ef(0x9f)];constructor(_0x2517ae){const _0x1d3e72=_0x5196ef;super(_0x2517ae),this[_0x1d3e72(0xba)](_0x1d3e72(0x8e),!0x1);}[_0x5196ef(0xc1)](_0x5d873b){const _0x57ceed=_0x5196ef,_0x4004a7=this[_0x57ceed(0x9d)];this[_0x57ceed(0x9f)]||(this[_0x57ceed(0x9f)]=this[_0x57ceed(0x89)]()),_0x4004a7[_0x57ceed(0xbc)][_0x57ceed(0x82)](_0x57ceed(0x92))[_0x57ceed(0xc1)]({..._0x5d873b,'id':_0x57ceed(0xb8),'class':_0x57ceed(0x87),'mainView':this[_0x57ceed(0x9f)]}),this[_0x57ceed(0xad)](_0x5d873b[_0x57ceed(0xc0)]),this[_0x57ceed(0x9f)][_0x57ceed(0xa5)](!_0x5d873b[_0x57ceed(0xaa)]),this[_0x57ceed(0x99)]();}[_0x5196ef(0xac)](){const _0x2e8828=_0x5196ef;this[_0x2e8828(0x9d)][_0x2e8828(0xbc)][_0x2e8828(0x82)](_0x2e8828(0x92))[_0x2e8828(0xac)]();}[_0x5196ef(0xa4)](_0x5b6dd6){const _0x510bcc=_0x5196ef;return this[_0x510bcc(0x9f)]||(this[_0x510bcc(0x9f)]=this[_0x510bcc(0x89)]()),this[_0x510bcc(0x9f)][_0x510bcc(0xa4)](_0x5b6dd6);}[_0x5196ef(0xa0)](_0x5ca559){const _0x53211a=_0x5196ef;this[_0x53211a(0x9f)]&&this[_0x53211a(0x9f)][_0x53211a(0xa0)](_0x5ca559);}[_0x5196ef(0x89)](){const _0x4df6ba=_0x5196ef,_0x5c6924=this[_0x4df6ba(0x9d)],_0x552ec4=_0x5c6924[_0x4df6ba(0xbc)][_0x4df6ba(0x82)](_0x4df6ba(0x92)),_0x1c8c9=_0x5c6924[_0x4df6ba(0x8f)][_0x4df6ba(0x82)](_0x4df6ba(0x88));let _0x1c8670=_0x5c6924[_0x4df6ba(0x9b)][_0x4df6ba(0x82)](_0x4df6ba(0x9e))||[..._0xc04859];_0x5c6924[_0x4df6ba(0xbc)][_0x4df6ba(0xa2)](_0x4df6ba(0xaf))||(_0x1c8670=_0x1c8670[_0x4df6ba(0xb4)](_0x24cb1d=>_0x4df6ba(0xa8)!=_0x24cb1d));const _0x289477=new _0x288dc6(_0x5c6924[_0x4df6ba(0x83)],{'availableActions':_0x1c8670,'showApplyButton':!0x0,'showSuggestButton':!!_0x1c8c9});return _0x289477[_0x4df6ba(0xb2)](_0x4df6ba(0x8e))['to'](this),_0x289477[_0x4df6ba(0x81)](..._0x5556dd)['to'](this),_0x289477[_0x4df6ba(0x81)](_0x4df6ba(0xb5),_0x4df6ba(0x96))['to'](this),_0x552ec4[_0x4df6ba(0x81)](_0x4df6ba(0xb9))['to'](this),_0x289477['on'](_0x4df6ba(0x9c),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x289477['on'](_0x4df6ba(0xa8),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x289477['on'](_0x4df6ba(0xa7),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x1c8c9&&_0x289477[_0x4df6ba(0xb2)](_0x4df6ba(0xb3))['to'](_0x1c8c9,_0x4df6ba(0x8c)),_0x289477[_0x4df6ba(0xbb)](),_0x289477;}[_0x5196ef(0xad)](_0xe707d9){const _0xa76d5b=_0x5196ef,_0x611485=this[_0xa76d5b(0x9d)],_0x50ff66=_0x611485[_0xa76d5b(0xbc)][_0xa76d5b(0x82)](_0xa76d5b(0x84))[_0xa76d5b(0x85)][_0xa76d5b(0xbe)][_0xa76d5b(0xa3)];this[_0xa76d5b(0x9f)][_0xa76d5b(0xb7)](_0xe707d9),_0x50ff66[_0xa76d5b(0xa2)](this[_0xa76d5b(0x9f)][_0xa76d5b(0x8a)])||(_0x50ff66[_0xa76d5b(0xb0)]([this[_0xa76d5b(0x9f)][_0xa76d5b(0x8a)],this[_0xa76d5b(0x9f)][_0xa76d5b(0xbf)]],0x0),_0x611485[_0xa76d5b(0xbc)][_0xa76d5b(0x82)](_0xa76d5b(0x92))[_0xa76d5b(0x94)](_0xa76d5b(0xa6),()=>{const _0x2d388e=_0xa76d5b;_0x50ff66[_0x2d388e(0xae)](this[_0x2d388e(0x9f)][_0x2d388e(0x8a)]),_0x50ff66[_0x2d388e(0xae)](this[_0x2d388e(0x9f)][_0x2d388e(0xbf)]);}));}[_0x5196ef(0x99)](){const _0x5dfa4e=_0x5196ef;this[_0x5dfa4e(0x9f)][_0x5dfa4e(0x90)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51392f=_0x3631;(function(_0x28a667,_0x592385){const _0x13632b=_0x3631,_0x13da3b=_0x28a667();while(!![]){try{const _0x591ca1=-parseInt(_0x13632b(0x1f0))/0x1+parseInt(_0x13632b(0x1a9))/0x2*(parseInt(_0x13632b(0x255))/0x3)+-parseInt(_0x13632b(0x297))/0x4+parseInt(_0x13632b(0x1dc))/0x5*(parseInt(_0x13632b(0x1bd))/0x6)+-parseInt(_0x13632b(0x169))/0x7+parseInt(_0x13632b(0x21b))/0x8*(parseInt(_0x13632b(0x228))/0x9)+parseInt(_0x13632b(0x237))/0xa*(parseInt(_0x13632b(0x2ac))/0xb);if(_0x591ca1===_0x592385)break;else _0x13da3b['push'](_0x13da3b['shift']());}catch(_0x152fa3){_0x13da3b['push'](_0x13da3b['shift']());}}}(_0x58b8,0xb9121));import{ContextPlugin as _0x5922a8,Editor as _0x5e54a1}from'ckeditor5/src/core.js';import{BodyCollection as _0x2f6ff1}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2bbafa,logError as _0x640bca,scrollViewportToShowTarget as _0x494017,uid as _0x1837bf}from'ckeditor5/src/utils.js';import{AIConnector as _0xa394c}from'../aicore/aiconnector.js';import{AITabs as _0x39f63c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5c1c02}from'./model/aichatconversation.js';import{getTranslation as _0x534e0f}from'../aicore/utils/common-translations.js';function _0x3631(_0x1809e3,_0x1f4ef4){const _0x58b8ad=_0x58b8();return _0x3631=function(_0x363138,_0x3bc37e){_0x363138=_0x363138-0x161;let _0x2fafaf=_0x58b8ad[_0x363138];return _0x2fafaf;},_0x3631(_0x1809e3,_0x1f4ef4);}function _0x58b8(){const _0x47f128=['setConversationTitle','outdated','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','startInteraction','enableControls','hasChanges','document','_showConversationHistory','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','log','reasoningStarted','streaming','areActionsDisabled','getFirstRange','clearPendingContextUI','config','_logError','addDocumentToContext','rootName','_handleUIUserMessage','domConverter','_flushLastInteractionUI','_stopLastInteraction','ai-chat-missing-channel-id','push','isModelAvailable','disableControls','init','createPositionFromPath','setIsUploadInProgress','updateFeedItemAIReplySources','_integrateEditor','sources','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','state','ai-chat-controller-no-active-conversation','accepted','data-id','uiId','ai-chat-conversation-not-found','handleUserInteraction','populateSourceResourceBalloon','setFeedItemAIReplySuggestionPartActive','getChild','toggleReasoning','contextItemAdded','isInContext','addSelectionToChatContext','done','addFeedItemStaticMessage','_aiEditing','addOperation','getChildAtOffset','has','3330000JhjtdM','updateContent','addResourceToContext','ai.chat.context','replyId','insertSuggestion','ai.chat.initialConversation','_handleStartConversation','contextItems','_openBalloonFor','isCurrentDocumentInContext','_updateRatings','isStarted','removeFeedInteraction','_currentPreviewedChangeGroup','scrollFeedToSuggestion','conversationInitialized','_startConversationSafely','resizedTabs','nextSibling','ready','99vxEspc','resetReasoningState','addFeedItemError','updateResourceState','AI_CHAT_UNABLE_TO_START_CONVERSATION','start','lastCreated','showDiff','updateConversationTitle','ai-request-aborted','upsertAIChatRating','addFeedInteractionHeader','_getPresentableSiblingContentPartIndex','ai-chat-source-resources-load-failed','_aiConnector','end','interactionStarted','_rejectSuggestion','Undo','from','interactionDestroyed','editing','setContextItemLoading','AI_CHAT_CONTEXT_INVALID_DATA','contextItemRemoved','updateCapabilities','createRange','alignToTop','messageId','AIEditing','createReply','marker','getContentParts','addContextItem','removeSelectionFromContext','isUploadInProgress','ai-chat-conversation-start-failed','version','forEach','AITabs','startConversation','batch','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','mouseLeaveSuggestion','index','resourceStateChanged','setIsMaximized','previous','showNext','collaboration.channelId','AI_CHAT_UNTITLED_CONVERSATION','_registerToolDataCallback','undo','addFileToContext','root','query','setFeedItemRenderingStrategy','aiChatBalloon','abortPromptStream','contextSent','applySuggestion','ai-chat-context-unsupported-file-type','getConversations','applyOperation','ai-chat-file-upload-failed','TrackChangesEditing','listenTo','delete','commands','_removeFromContext','addFeedItemAIReply','maxOffset','ai-chat-context-form-data-size-limits-exceeded','documentContextContent','8934891alysNc','getReply','close','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplySuggestionPartState','getGroupId','ai-chat-invalid-request','createdAt','getDocumentContext','dialogClosed','pluginName','loadConversation','ai-chat-context-invalid-data','modification','_scrollToSuggestionRange','setSelectedModel','hideFakeVisualSelection','length','set','replyChangeGroupStateUpdated','getRanges','toString','getRoot','load','getInteractionAndReplyById','get','node','TrackChanges','setLoadingMessage','AI_BALLOON_HEADER_TITLE','options','webSearchFinished','open','getPath','isPremiumPlugin','ai-chat-controller-mouse-over','contextItem','editors','resetWebSearchState','isOfficialPlugin','replyCreated','remove','callback','stop','attachToDom','startAutoScroll','AI_CHAT_GENERIC_ERROR','ai.models.defaultModelId','createConversation','removeFromContext','includes','resizeTabs','ai-chat-context-file-too-many-pages','setChangeGroupState','setConversationContext','new','ai-chat-conversation-init-failed','partIndex','model','message','executeCustomItemCallback','addFeedItemCustomElement','_batchToChanges','data','2PLXaVX','toggleLoadingSkeleton','mouseOverSuggestion','chat','getOperations','resourceId','addCurrentDocumentToChatContext','history','selection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','replyContentUpdated','AIChatUI','stopInteraction','lastInteraction','_getUserPresentableContentPartDocumentRange','context','ai-chat-url-upload-failed','_aiChatUi','split','_aiChatBalloon','22038OLJvjv','indexOf','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','uploadProgressChanged','range','view','selectedModel','startsWith','Showing\x20conversation\x20history...','Liked\x20response','removeContextItem','_bodyCollection','resize','sendUserMessage','_toggleWebSearch','text','handleRemovedConversation','sourceResourcesLoaded','dislike','_updateReplyContent','plugins','AIChatController','map','removed','sourceId','ai-chat-context-file-too-large','static','_aiChatModels','requires','children','interactionId','795dkCuhT','closeSourceResourceBalloon','loadSourceResources','updateCurrentDocumentInContext','getDocumentData','afterInit','type','setAddContextOptions','find','finishInteraction','rejectSuggestion','ai-chat-resource-load-failed','revert','ai.models','_toggleReasoning','updateFeedItemAIReplyContent','_aiChatBalloonShowDiff','changeGroups','prepareLoadingMessage','_getDocumentRangeForReplyChanges','320633jxMiYw','AI_CHAT_ABORTED_MESSAGE','error','next','baseVersion','contextItemLoadingEnded','viewRangeToDom','mapper','_applyOperationsAsSuggestions','getAttribute','AI_CHAT_CONTEXT_FILE_TOO_LARGE','Disliked\x20response','anchorId','changes','clearConversationContextUI','ai-conversation-','focusPromptInput','unshift','resources','_setIsMaximized','_getLastCreatedConversationId','_getAIChatInteractionAPI','getAll','toggleWebSearch','selectModel','$graveyard','addFilesToContext','removeSelectionFromChatContext','addCurrentDocumentToContext','_insertSuggestion','change','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','getTransformedByOperation','ai-chat-context-unsupported-type','fetchConversations','webSearchStarted','locale','addContextOptionsChanged','AI_CHAT_INVALID_REQUEST','parse','AIConnector','content','1391160JuEXYq','toViewRange','destroy','getInteraction','main','reasoningFinished','indexes','cloneNode','add','addSelectionToContext','bind','capabilitiesUpdated','howMany','9wruHMv','interactionFinished','currentReply','fetchConversation','showChangeInText','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateFeedItemAIReplySuggestionContent','isDocumentOperation','getDiff','like','resource','showFakeVisualSelection','isCurrentDocumentInConversation','sourcePosition','addUrlToContext','2345260eDXDCP','AIChatBalloon','source','addFeedItemAISuggestion','getConversation','interactionCreated','_createFromRanges','delegate','findIndex','DocumentCompare','detachFromDom','modelSelected','getChildren','sessionId','addFeedItemUserMessage','ai-no-track-changes','rejected','pending','isDisabled','redo','toggleSuggestionDisplayMode','getSelectionText','resetConversationTitle','current-document','uid','setState','activateTab','replies','AI_CHAT_RESOURCE_LOAD_FAILED','clearLoadingMessage','956877cDyAJh','setModel','isLoading','slice','_applySuggestion','activeConversation','sendMessage','resetMessageInput','path','createPositionAt','toolDataReceived','filter'];_0x58b8=function(){return _0x47f128;};return _0x58b8();}import{AIModels as _0x5adaeb}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x3d3109}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4a99e6,DATA_ID_MODEL_ATTRIBUTE as _0x5eb965}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x21105c,getOperationsFromReply as _0x16e85b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3c2280,getMinimalSelection as _0x9507b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x1173c7,_DetachOperation as _0x41f2fe}from'ckeditor5/src/engine.js';import{findOne as _0xd557f5,getAttribute as _0x297bf6,serialize as _0x330a70,Document as _0x35a8ec,findByAttribute as _0x1e9eb0}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x5922a8{[_0x51392f(0x293)];[_0x51392f(0x2ba)];[_0x51392f(0x1ba)];[_0x51392f(0x1d8)];[_0x51392f(0x1bc)];[_0x51392f(0x1a7)]=new Map();[_0x51392f(0x2a5)]=null;[_0x51392f(0x1c8)];static get[_0x51392f(0x1d9)](){return[_0xa394c,_0x4a99e6];}static get[_0x51392f(0x173)](){const _0x957464=_0x51392f;return _0x957464(0x1d2);}static get[_0x51392f(0x190)](){return!0x0;}static get[_0x51392f(0x18b)](){return!0x0;}[_0x51392f(0x27c)](){const _0x10d221=_0x51392f;this[_0x10d221(0x1c8)]=new _0x2f6ff1(this[_0x10d221(0x1b8)][_0x10d221(0x215)]),this[_0x10d221(0x1c8)][_0x10d221(0x195)](),this[_0x10d221(0x2ba)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x219)),this[_0x10d221(0x1ba)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x1b4)),this[_0x10d221(0x293)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x2c9)),this[_0x10d221(0x1d8)]=new _0x5adaeb({'connector':this[_0x10d221(0x2ba)],'config':this[_0x10d221(0x1b8)][_0x10d221(0x270)][_0x10d221(0x182)](_0x10d221(0x1e9)),'locale':this[_0x10d221(0x1b8)][_0x10d221(0x215)]});const _0x3f89b7=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x2d3));this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2d4),()=>{const _0x2a4993=_0x10d221;this[_0x2a4993(0x2a8)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1ca),(_0x134dd4,_0x2750f7)=>{const _0x3917d0=_0x10d221;this[_0x3917d0(0x274)]({'userMessage':_0x2750f7});}),this[_0x10d221(0x161)](_0x3f89b7,_0x10d221(0x2a9),(_0x432f6a,_0x398d86)=>{const _0x57dc43=_0x10d221;this[_0x57dc43(0x203)](_0x398d86);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x19c),()=>{const _0x1af5a5=_0x10d221;_0x3f89b7[_0x1af5a5(0x1c9)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e6),async()=>{const _0x1bb70b=_0x10d221;await this[_0x1bb70b(0x277)](),await this[_0x1bb70b(0x276)](),this[_0x1bb70b(0x20b)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x272),()=>{const _0x1e2be8=_0x10d221;this[_0x1e2be8(0x1af)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e1),(_0xf0c3e5,_0x4e5bd0)=>{const _0x2e4e57=_0x10d221;this[_0x2e4e57(0x25a)]?.[_0x2e4e57(0x20a)](Array[_0x2e4e57(0x2bf)](_0x4e5bd0));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x236),(_0x568170,_0xc123d4)=>{const _0x2f0bfd=_0x10d221;this[_0x2f0bfd(0x25a)]?.[_0x2f0bfd(0x236)](_0xc123d4);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1a5),(_0x203ffb,_0x329bda)=>{const _0x4b9847=_0x10d221;_0x329bda[_0x4b9847(0x193)](this[_0x4b9847(0x1b8)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x299),(_0x364a71,_0x3d540e)=>{const _0x5d8f6c=_0x10d221;this[_0x5d8f6c(0x25a)]?.[_0x5d8f6c(0x299)](_0x3d540e[_0x5d8f6c(0x239)],_0x3d540e[_0x5d8f6c(0x232)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1c7),(_0x3337ce,_0x2e7aa6)=>{const _0x831ff5=_0x10d221;this[_0x831ff5(0x164)](_0x2e7aa6);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1de),(_0x2988e1,_0x3247c9)=>{const _0x242a9a=_0x10d221;this[_0x242a9a(0x25a)]?.[_0x242a9a(0x1de)](_0x3247c9[_0x242a9a(0x1d5)],_0x3247c9[_0x242a9a(0x2e3)],_0x3247c9[_0x242a9a(0x24f)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x207),()=>{const _0x28da45=_0x10d221;this[_0x28da45(0x1cb)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x28d),()=>{const _0x11a22d=_0x10d221;this[_0x11a22d(0x1ea)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x208),(_0x4f7206,_0x4ac548)=>{const _0x1e71c2=_0x10d221;this[_0x1e71c2(0x25a)]?.[_0x1e71c2(0x256)](_0x4ac548);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x231),(_0x55ad19,{replyId:_0x20c71f})=>{const _0x3a7b62=_0x10d221;console[_0x3a7b62(0x26a)](_0x3a7b62(0x1c6),_0x20c71f);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1cf),(_0xea1571,{replyId:_0x14a326})=>{const _0x4e5e14=_0x10d221;console[_0x4e5e14(0x26a)](_0x4e5e14(0x1fb),_0x14a326);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x29c),(_0x2eaced,_0x246dea)=>{const _0x467f13=_0x10d221;this[_0x467f13(0x20d)](_0x246dea);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x22c),(_0x32521a,{replyId:_0x385baa,partIndex:_0x42641b})=>{const _0x57c3db=_0x10d221;this[_0x57c3db(0x1ec)]=this[_0x57c3db(0x1ba)][_0x57c3db(0x2b3)],this[_0x57c3db(0x2a0)](_0x385baa,_0x42641b);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1ab),(_0x1930c4,{replyId:_0x5ac99f,partIndex:_0x176718})=>{const _0x26ec31=_0x10d221,_0x303f8b=this[_0x26ec31(0x1ef)](_0x5ac99f,_0x176718);_0x303f8b&&_0x26ec31(0x209)!=_0x303f8b[_0x26ec31(0x1c1)][_0x26ec31(0x2e2)][_0x26ec31(0x273)]&&this[_0x26ec31(0x293)][_0x26ec31(0x233)]([_0x303f8b[_0x26ec31(0x1c1)]],_0x26ec31(0x18c));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2d7),()=>{const _0x1cb565=_0x10d221;this[_0x1cb565(0x293)][_0x1cb565(0x179)](_0x1cb565(0x18c));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e8),(_0x70698c,_0x2bdea9)=>{const _0x5a7c34=_0x10d221;this[_0x5a7c34(0x293)][_0x5a7c34(0x179)](_0x5a7c34(0x18c)),this[_0x5a7c34(0x259)](_0x2bdea9);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x24b),async(_0xa25ac,{replyId:_0x599149,showDiff:_0x546b7d})=>{const _0x57bcd4=_0x10d221,{reply:_0x3c7024}=this[_0x57bcd4(0x181)](_0x599149),_0x2f8469=_0x3c7024[_0x57bcd4(0x2cc)]({'showDiff':_0x546b7d});await this[_0x57bcd4(0x1ba)][_0x57bcd4(0x22e)]({'id':_0x3c7024['id'],'parts':_0x2f8469,'renderingStrategy':_0x57bcd4(0x1d7)});}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1e6),(_0x27a948,{replyId:_0x22d4da,partIndex:_0x1dd6a8})=>{const _0x348a03=_0x10d221;this[_0x348a03(0x2bd)]({'replyId':_0x22d4da,'partIndex':_0x1dd6a8}),this[_0x348a03(0x293)][_0x348a03(0x179)](_0x348a03(0x18c));}),this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x296)](_0x10d221(0x238))&&(this[_0x10d221(0x1bc)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x238)),this[_0x10d221(0x17b)](_0x10d221(0x1ec),!0x1),this[_0x10d221(0x1bc)][_0x10d221(0x225)](_0x10d221(0x2b3))['to'](this,_0x10d221(0x1ec)),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x24b),()=>{const _0x6f1164=_0x10d221,{replyId:_0xfb24b,partIndex:_0x15a3ea}=this[_0x6f1164(0x2a5)];this[_0x6f1164(0x1ec)]=!this[_0x6f1164(0x1ec)];const {reply:_0xe19997}=this[_0x6f1164(0x181)](_0xfb24b),_0x73151d=_0xe19997[_0x6f1164(0x2cc)]({'showDiff':this[_0x6f1164(0x1ec)],'groupIndex':_0x15a3ea});this[_0x6f1164(0x1bc)][_0x6f1164(0x298)]({'part':_0x73151d[0x0],'renderingStrategy':_0x6f1164(0x1d7),'keepErrors':!0x0});}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x2e8),()=>{const _0x55815b=_0x10d221,{replyId:_0x47ce42,partIndex:_0x55df99}=this[_0x55815b(0x2a5)];this[_0x55815b(0x259)]({'replyId':_0x47ce42,'partIndex':_0x55df99}),this[_0x55815b(0x1bc)][_0x55815b(0x250)](_0x55815b(0x285));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x29c),()=>{const _0x28777a=_0x10d221,{replyId:_0x227c7b,partIndex:_0xca066}=this[_0x28777a(0x2a5)];this[_0x28777a(0x20d)]({'replyId':_0x227c7b,'partIndex':_0xca066}),this[_0x28777a(0x1bc)][_0x28777a(0x250)](_0x28777a(0x285));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x1e6),()=>{const _0x59d6e5=_0x10d221,{replyId:_0x3aa89b,partIndex:_0x55d23b}=this[_0x59d6e5(0x2a5)];this[_0x59d6e5(0x2bd)]({'replyId':_0x3aa89b,'partIndex':_0x55d23b}),this[_0x59d6e5(0x1bc)][_0x59d6e5(0x250)](_0x59d6e5(0x247));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x2dc),()=>{const _0x12fb8f=_0x10d221,{replyId:_0x50d9c5,partIndex:_0x43cd87}=this[_0x12fb8f(0x2a5)],_0x78cff7=this[_0x12fb8f(0x2b8)](_0x50d9c5,_0x43cd87,_0x12fb8f(0x1f3));null!==_0x78cff7&&this[_0x12fb8f(0x2a0)](_0x50d9c5,_0x78cff7);}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x210),()=>{const _0x225955=_0x10d221,{replyId:_0x25ad30,partIndex:_0x4ea030}=this[_0x225955(0x2a5)],_0x5092ee=this[_0x225955(0x2b8)](_0x25ad30,_0x4ea030,_0x225955(0x2db));null!==_0x5092ee&&this[_0x225955(0x2a0)](_0x25ad30,_0x5092ee);}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x172),(_0x3f946e,{id:_0x4e6309})=>{const _0x4980d=_0x10d221;if(_0x4980d(0x2e5)!==_0x4e6309)return;const {replyId:_0x194cb8,partIndex:_0x72b390}=this[_0x4980d(0x2a5)];this[_0x4980d(0x2a5)]=null,this[_0x4980d(0x1ba)][_0x4980d(0x28b)]({'id':_0x194cb8,'index':_0x72b390,'isActive':!0x1});}));}async[_0x51392f(0x1e1)](){const _0x4c69b7=_0x51392f;this[_0x4c69b7(0x1b8)]instanceof _0x5e54a1?this[_0x4c69b7(0x280)](this[_0x4c69b7(0x1b8)]):this[_0x4c69b7(0x161)](this[_0x4c69b7(0x1b8)][_0x4c69b7(0x18e)],_0x4c69b7(0x223),(_0x3ca448,_0x15083f)=>{const _0x1d0aa2=_0x4c69b7;_0x15083f['on'](_0x1d0aa2(0x2ab),()=>{const _0x5f4e5e=_0x1d0aa2;this[_0x5f4e5e(0x280)](_0x15083f);});});const _0xdf01a5=this[_0x4c69b7(0x1b8)][_0x4c69b7(0x270)][_0x4c69b7(0x182)](_0x4c69b7(0x29d));let _0x215187=_0xdf01a5;if(_0x4c69b7(0x2b2)!=_0xdf01a5||(_0x215187=await this[_0x4c69b7(0x204)](),_0x215187))return _0x4c69b7(0x1a0)==_0x215187?this[_0x4c69b7(0x2a8)]():this[_0x4c69b7(0x174)](_0x215187);}async[_0x51392f(0x21d)](){const _0x577dd0=_0x51392f;return await this[_0x577dd0(0x277)](),this[_0x577dd0(0x1c8)][_0x577dd0(0x241)](),super[_0x577dd0(0x21d)]();}[_0x51392f(0x20d)](_0x8450f){const _0x1bc86e=_0x51392f,_0xdf25b4=_0x3d3109(this[_0x1bc86e(0x1b8)]);if(!_0xdf25b4[_0x1bc86e(0x1d1)][_0x1bc86e(0x296)](_0x1bc86e(0x184)))throw new _0x2bbafa(_0x1bc86e(0x246),null);const _0x52f7bc=this[_0x1bc86e(0x1b8)][_0x1bc86e(0x1d1)][_0x1bc86e(0x182)](_0x1bc86e(0x240)),{reply:_0x25b3ee,interaction:_0x4ef449}=this[_0x1bc86e(0x181)](_0x8450f[_0x1bc86e(0x29b)]),_0x449244=this[_0x1bc86e(0x1ef)](_0x8450f[_0x1bc86e(0x29b)],_0x8450f[_0x1bc86e(0x1a2)]),_0x536409=void 0x0!==_0x8450f[_0x1bc86e(0x1a2)]?[_0x25b3ee[_0x1bc86e(0x1ed)][_0x8450f[_0x1bc86e(0x1a2)]]]:_0x25b3ee[_0x1bc86e(0x1ed)][_0x1bc86e(0x260)](_0x103937=>_0x1bc86e(0x248)==_0x103937[_0x1bc86e(0x283)]),_0x97d4c0=_0x536409[_0x1bc86e(0x1d3)](_0x196e65=>_0x25b3ee[_0x1bc86e(0x1ed)][_0x1bc86e(0x1be)](_0x196e65));if(!_0x449244||_0x1bc86e(0x209)==_0x449244[_0x1bc86e(0x1c1)][_0x1bc86e(0x2e2)][_0x1bc86e(0x273)])return void _0x97d4c0[_0x1bc86e(0x2d2)](_0x146935=>_0x25b3ee[_0x1bc86e(0x19e)](_0x146935,_0x1bc86e(0x262)));_0x97d4c0[_0x1bc86e(0x2d2)](_0x1385ed=>_0x25b3ee[_0x1bc86e(0x19e)](_0x1385ed,_0x1bc86e(0x285)));const _0x4ec403=_0x16e85b({'editor':_0xdf25b4,'reply':_0x25b3ee,'interaction':_0x4ef449,'groups':_0x536409,'transform':!0x0,'documentCompare':_0x52f7bc,'documentCompareOptions':{'anchor':_0x1bc86e(0x21f),'markDeletions':!0x0}});let _0x4d0093;_0x449244&&this[_0x1bc86e(0x177)](_0x449244[_0x1bc86e(0x1c1)]),_0xdf25b4[_0x1bc86e(0x1a3)][_0x1bc86e(0x20e)](_0xc33e73=>{const _0x552b55=_0x1bc86e;_0x4d0093=_0xc33e73[_0x552b55(0x2d5)],_0xdf25b4[_0x552b55(0x1d1)][_0x552b55(0x182)](_0x552b55(0x2ed))[_0x552b55(0x1f8)](_0x4ec403),this[_0x552b55(0x293)][_0x552b55(0x179)](_0x552b55(0x18c));}),this[_0x1bc86e(0x1a7)][_0x1bc86e(0x17b)](_0x4d0093,{'interactionId':_0x4ef449['id'],'replyId':_0x25b3ee['id'],'indexes':_0x97d4c0[_0x1bc86e(0x258)]()}),this[_0x1bc86e(0x2a2)](_0x25b3ee);}[_0x51392f(0x259)](_0x5899ca){const _0x28826e=_0x51392f,_0x43bde6=_0x3d3109(this[_0x28826e(0x1b8)]),_0x46e369=this[_0x28826e(0x1b8)][_0x28826e(0x1d1)][_0x28826e(0x182)](_0x4a99e6),{reply:_0x3d0e71,interaction:_0x1732bf}=this[_0x28826e(0x181)](_0x5899ca[_0x28826e(0x29b)]),_0x12df6a=this[_0x28826e(0x1ef)](_0x5899ca[_0x28826e(0x29b)],_0x5899ca[_0x28826e(0x1a2)]),_0x54af93=void 0x0!==_0x5899ca[_0x28826e(0x1a2)]?[_0x3d0e71[_0x28826e(0x1ed)][_0x5899ca[_0x28826e(0x1a2)]]]:_0x3d0e71[_0x28826e(0x1ed)][_0x28826e(0x260)](_0x99749d=>_0x28826e(0x248)==_0x99749d[_0x28826e(0x283)]),_0x5ab239=_0x54af93[_0x28826e(0x1d3)](_0x5a62c1=>_0x3d0e71[_0x28826e(0x1ed)][_0x28826e(0x1be)](_0x5a62c1));if(!_0x12df6a||_0x28826e(0x209)==_0x12df6a[_0x28826e(0x1c1)][_0x28826e(0x2e2)][_0x28826e(0x273)])return void _0x5ab239[_0x28826e(0x2d2)](_0x392ff2=>_0x3d0e71[_0x28826e(0x19e)](_0x392ff2,_0x28826e(0x262)));_0x5ab239[_0x28826e(0x2d2)](_0x507581=>_0x3d0e71[_0x28826e(0x19e)](_0x507581,_0x28826e(0x285)));const _0x296780=_0x16e85b({'editor':_0x43bde6,'reply':_0x3d0e71,'interaction':_0x1732bf,'groups':_0x54af93,'transform':!0x0,'documentCompare':_0x46e369,'documentCompareOptions':{'anchor':_0x28826e(0x21f),'markDeletions':!0x1}});let _0x5f04fb;_0x12df6a&&this[_0x28826e(0x177)](_0x12df6a[_0x28826e(0x1c1)]),_0x43bde6[_0x28826e(0x1a3)][_0x28826e(0x20e)](_0x48354f=>{const _0x596dae=_0x28826e;_0x5f04fb=_0x48354f[_0x596dae(0x2d5)];for(const _0x38e915 of _0x296780)_0x38e915[_0x596dae(0x1f4)]=_0x43bde6[_0x596dae(0x1a3)][_0x596dae(0x267)][_0x596dae(0x2d1)],_0x21105c(_0x43bde6,_0x38e915),_0x48354f[_0x596dae(0x2d5)][_0x596dae(0x294)](_0x38e915),_0x43bde6[_0x596dae(0x1a3)][_0x596dae(0x2eb)](_0x38e915);}),this[_0x28826e(0x1a7)][_0x28826e(0x17b)](_0x5f04fb,{'interactionId':_0x1732bf['id'],'replyId':_0x3d0e71['id'],'indexes':_0x5ab239[_0x28826e(0x258)]()}),this[_0x28826e(0x2a2)](_0x3d0e71);}[_0x51392f(0x2bd)](_0x72c3df){const _0x4926ba=_0x51392f,{reply:_0x228591}=this[_0x4926ba(0x181)](_0x72c3df[_0x4926ba(0x29b)]);_0x228591[_0x4926ba(0x19e)](_0x72c3df[_0x4926ba(0x1a2)],_0x4926ba(0x247));}[_0x51392f(0x2a0)](_0xf2d8c3,_0x435992){const _0x28c441=_0x51392f;if(!this[_0x28c441(0x1bc)])return;const {reply:_0x3f065a}=this[_0x28c441(0x181)](_0xf2d8c3),_0x4f70aa=_0x3f065a[_0x28c441(0x2cc)]({'showDiff':this[_0x28c441(0x1ec)]});let _0x1a85b8,_0x56dd41;if(void 0x0!==_0x435992?(_0x56dd41=_0x4f70aa[_0x28c441(0x1e4)](_0x245ea4=>_0x245ea4[_0x28c441(0x2d8)]==_0x435992),_0x1a85b8=_0x56dd41?.[_0x28c441(0x2d8)]):(_0x56dd41=_0x4f70aa[0x0],_0x1a85b8=_0x56dd41[_0x28c441(0x2d8)]),this[_0x28c441(0x2a5)]?.[_0x28c441(0x29b)]==_0xf2d8c3&&this[_0x28c441(0x2a5)]?.[_0x28c441(0x1a2)]==_0x1a85b8)return;const _0x20123e=this[_0x28c441(0x1b7)](_0xf2d8c3,_0x3f065a,_0x56dd41);if(!_0x20123e)return void this[_0x28c441(0x1bc)][_0x28c441(0x16b)]();this[_0x28c441(0x2a5)]={'replyId':_0xf2d8c3,'partIndex':_0x1a85b8},this[_0x28c441(0x177)](_0x20123e,!0x0);const _0x1eb93e=this[_0x28c441(0x2b8)](_0xf2d8c3,_0x1a85b8,_0x28c441(0x1f3));this[_0x28c441(0x1bc)][_0x28c441(0x298)]({'part':_0x56dd41,'renderingStrategy':_0x28c441(0x1d7)}),this[_0x28c441(0x1bc)][_0x28c441(0x189)]({'index':_0x1a85b8,'title':_0x534e0f(this[_0x28c441(0x1b8)][_0x28c441(0x215)],_0x28c441(0x186),(_0x1a85b8+0x1)[_0x28c441(0x17e)]()),'showRotator':null!==_0x1eb93e,'ranges':[_0x20123e],'areActionsDisabled':_0x3f065a[_0x28c441(0x26d)]}),this[_0x28c441(0x1bc)][_0x28c441(0x250)](_0x28c441(0x248)),this[_0x28c441(0x1ba)][_0x28c441(0x2a6)](_0xf2d8c3,_0x1a85b8),this[_0x28c441(0x1ba)][_0x28c441(0x28b)]({'id':_0xf2d8c3,'index':_0x1a85b8,'isActive':!0x0});}[_0x51392f(0x2b8)](_0x11cfea,_0x5c5e75,_0x432de6){const _0xf7788d=_0x51392f,{reply:_0x267e9b}=this[_0xf7788d(0x181)](_0x11cfea),_0x1ce0f1=_0x267e9b[_0xf7788d(0x2cc)]({'showDiff':this[_0xf7788d(0x1ec)]});if(0x1==_0x1ce0f1[_0xf7788d(0x17a)])return null;const _0x18d93c=_0x1ce0f1[_0xf7788d(0x23f)](_0x41e72d=>_0x41e72d[_0xf7788d(0x2d8)]==_0x5c5e75),_0x38b00e=_0xf7788d(0x1f3)==_0x432de6?0x1:-0x1;let _0x3c02aa=_0x1ce0f1['at']((_0x18d93c+_0x38b00e)%_0x1ce0f1[_0xf7788d(0x17a)])[_0xf7788d(0x2d8)],_0x2ba79d=_0x1ce0f1[_0x3c02aa];for(;!this[_0xf7788d(0x1b7)](_0x11cfea,_0x267e9b,_0x2ba79d);){if(_0x3c02aa=_0x1ce0f1['at']((_0x3c02aa+_0x38b00e)%_0x1ce0f1[_0xf7788d(0x17a)])[_0xf7788d(0x2d8)],_0x3c02aa===_0x18d93c)return null;_0x2ba79d=_0x1ce0f1[_0x3c02aa];}return _0x3c02aa;}[_0x51392f(0x1b7)](_0x31b8f3,_0x1b6f55,_0x3b8ea7){const _0x13fd27=_0x51392f,_0xad9fb4=_0x1b6f55[_0x13fd27(0x1ed)];if(!_0x3b8ea7[_0x13fd27(0x266)])return null;const _0x378327=_0xad9fb4[_0x13fd27(0x1e4)](_0x34f8ec=>_0x34f8ec[_0x13fd27(0x2d8)]==_0x3b8ea7[_0x13fd27(0x2d8)]);if(_0x13fd27(0x248)!==_0x378327?.[_0x13fd27(0x283)])return null;const _0x5e6ca6=this[_0x13fd27(0x1ef)](_0x31b8f3,_0x3b8ea7[_0x13fd27(0x2d8)]);if(!_0x5e6ca6)return null;const {range:_0x590137,currentIndex:_0x589714}=_0x5e6ca6;return _0x13fd27(0x209)==_0x590137[_0x13fd27(0x2e2)][_0x13fd27(0x273)]?(_0x1b6f55[_0x13fd27(0x19e)](_0x589714,_0x13fd27(0x262)),null):_0x5e6ca6[_0x13fd27(0x1c1)];}[_0x51392f(0x1ef)](_0x33248b,_0x53feb3){const _0x529c5b=_0x51392f,_0x57b879=_0x3d3109(this[_0x529c5b(0x1b8)]),{reply:_0x28d259,interaction:_0x3f7653}=this[_0x529c5b(0x181)](_0x33248b),_0x19c0c4=_0x28d259[_0x529c5b(0x1ed)][_0x529c5b(0x260)](_0x5125ff=>_0x529c5b(0x248)==_0x5125ff[_0x529c5b(0x283)]),_0x350583=_0x19c0c4[_0x529c5b(0x1d3)](_0x30f78f=>_0x28d259[_0x529c5b(0x1ed)][_0x529c5b(0x1be)](_0x30f78f));void 0x0===_0x53feb3&&(_0x53feb3=_0x350583[0x0]);const _0x32480e=_0x350583[_0x529c5b(0x1be)](_0x53feb3);if(-0x1==_0x32480e)return null;const _0x4a50ed=_0x19c0c4[_0x32480e],_0x2d2984=new _0x35a8ec([]),_0x330b2b=new _0x35a8ec([]);for(const _0x4f2f84 of _0x4a50ed[_0x529c5b(0x1fd)])if(_0x529c5b(0x1d4)!=_0x4f2f84[_0x529c5b(0x1e2)]&&_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x4f2f84[_0x529c5b(0x183)][_0x529c5b(0x222)](!0x0)),_0x529c5b(0x1a0)!=_0x4f2f84[_0x529c5b(0x1e2)]){const _0x5016f6=_0xd557f5(_0x49e951=>_0x297bf6(_0x49e951,_0x529c5b(0x286))==_0x4f2f84['id'],_0x28d259[_0x529c5b(0x168)],!0x0);_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x5016f6[_0x529c5b(0x222)](!0x0));}if(0x0==_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x17a)]){if(_0x4a50ed[_0x529c5b(0x1fd)][0x0][_0x529c5b(0x1fc)]){const _0x264ae4=_0x1e9eb0(_0x529c5b(0x286),_0x4a50ed[_0x529c5b(0x1fd)][0x0][_0x529c5b(0x1fc)],_0x28d259[_0x529c5b(0x168)]);_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x201)](_0x264ae4[_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x201)](_0x264ae4[_0x529c5b(0x222)](!0x0)),_0x264ae4[_0x529c5b(0x2aa)]&&(_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x264ae4[_0x529c5b(0x2aa)][_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x264ae4[_0x529c5b(0x2aa)][_0x529c5b(0x222)](!0x0)));}else{const _0x1e5845=_0x28d259[_0x529c5b(0x168)][_0x529c5b(0x1da)][0x0];if(!_0x1e5845)return null;_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x1e5845[_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x1e5845[_0x529c5b(0x222)](!0x0));}}const _0x363706=_0x3f7653[_0x529c5b(0x171)](),_0xb5c5aa=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x363706[_0x529c5b(0x21a)]),_0x5afb7c=_0x330a70(_0x2d2984),_0x58e16a=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x5afb7c),_0x384792=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x5afb7c),_0x4ebcad=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x25e)](_0x58e16a,0x0),_0x15cee4=_0x330a70(_0x330b2b),_0x4f814d={'anchor':_0x4ebcad,'markDeletions':!0x1},_0x1962eb=_0x57b879[_0x529c5b(0x1d1)][_0x529c5b(0x182)](_0x4a99e6)[_0x529c5b(0x230)](_0x5afb7c,_0x15cee4,_0x4f814d)[_0x529c5b(0x1ad)]();if(!_0x1962eb[_0x529c5b(0x17a)])return null;_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x20e)](_0x50bad1=>{const _0xa734c5=_0x529c5b;for(const _0x2d068b of _0x1962eb)if(_0xa734c5(0x192)==_0x2d068b[_0xa734c5(0x1e2)]){const _0x429d28=_0x2d068b[_0xa734c5(0x235)],_0x1e7405=_0x2d068b[_0xa734c5(0x227)],_0x5ec3a9=new _0x41f2fe(_0x429d28,_0x1e7405);_0x50bad1[_0xa734c5(0x2d5)][_0xa734c5(0x294)](_0x5ec3a9),_0x57b879[_0xa734c5(0x1a3)][_0xa734c5(0x2eb)](_0x5ec3a9);}else _0xa734c5(0x2cb)!==_0x2d068b[_0xa734c5(0x1e2)]&&(_0x2d068b[_0xa734c5(0x1f4)]=null,_0x2d068b[_0xa734c5(0x22f)]=!0x1,_0x50bad1[_0xa734c5(0x2d5)][_0xa734c5(0x294)](_0x2d068b),_0x57b879[_0xa734c5(0x1a3)][_0xa734c5(0x2eb)](_0x2d068b));});const _0x3c72b8=_0x9507b(_0x57b879,_0x1962eb,_0x58e16a);_0x3c2280(_0x57b879[_0x529c5b(0x1a3)],_0x3c72b8);const _0x195fb7=_0x3c72b8[_0x529c5b(0x26e)]()[_0x529c5b(0x2b1)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x5712f1=_0x3c72b8[_0x529c5b(0x26e)]()[_0x529c5b(0x2bb)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x5c0ae1=[];let _0x4fedab=_0x58e16a,_0x42ffd5=_0x384792;for(let _0x59912b=0x0;_0x59912b<_0x5712f1[_0x529c5b(0x17a)];_0x59912b++){const _0x564914=_0x4fedab[_0x529c5b(0x166)]-_0x5712f1[_0x59912b];_0x5c0ae1[_0x59912b]=_0x42ffd5[_0x529c5b(0x166)]-_0x564914,_0x4fedab=_0x4fedab[_0x529c5b(0x295)](_0x5712f1[_0x59912b]),_0x42ffd5=_0x42ffd5[_0x529c5b(0x295)](_0x5c0ae1[_0x59912b]);}const _0x277edb=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x2c6)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x384792,_0x195fb7),_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x384792,_0x5c0ae1)),_0x4f0fb6=_0x384792[_0x529c5b(0x28c)](0x0)[_0x529c5b(0x1f9)](_0x5eb965),_0x23d540=Array[_0x529c5b(0x2bf)](_0xb5c5aa[_0x529c5b(0x243)]())[_0x529c5b(0x1e4)](_0x41be13=>_0x41be13[_0x529c5b(0x1f9)](_0x5eb965)==_0x4f0fb6)[_0x529c5b(0x18a)](),_0x3889de=_0x277edb[_0x529c5b(0x2b1)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x2743a2=_0x277edb[_0x529c5b(0x2bb)][_0x529c5b(0x25d)][_0x529c5b(0x258)]();_0x3889de[0x0]=_0x23d540[0x0]+_0x3889de[0x0],_0x2743a2[0x0]=_0x23d540[0x0]+_0x2743a2[0x0];let _0x4e7db4=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x2c6)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x17f)](),_0x3889de),_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x17f)](),_0x2743a2));const _0x384641=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x1b0)][_0x529c5b(0x1ad)](_0x363706[_0x529c5b(0x2d1)]);for(const _0x392883 of _0x384641)_0x4e7db4=_0x1173c7[_0x529c5b(0x23d)](_0x4e7db4[_0x529c5b(0x211)](_0x392883));return{'range':_0x4e7db4,'currentIndex':_0x53feb3};}[_0x51392f(0x280)](_0x3d373e){const _0x4e6aa1=_0x51392f;if(!_0x3d373e[_0x4e6aa1(0x1d1)][_0x4e6aa1(0x296)](_0x4e6aa1(0x2be)))return;const _0x30968c=_0x3d373e[_0x4e6aa1(0x163)][_0x4e6aa1(0x182)](_0x4e6aa1(0x2e0)),_0x3737a7=_0x3d373e[_0x4e6aa1(0x163)][_0x4e6aa1(0x182)](_0x4e6aa1(0x24a));this[_0x4e6aa1(0x161)](_0x30968c,_0x4e6aa1(0x1e8),(_0x40fe44,_0x4e4422,_0x261b56)=>{const _0x1db024=_0x4e6aa1,_0x58862e=this[_0x1db024(0x1a7)][_0x1db024(0x182)](_0x4e4422);if(!_0x58862e)return;const _0x1601f6=this[_0x1db024(0x25a)][_0x1db024(0x21e)](_0x58862e[_0x1db024(0x1db)])[_0x1db024(0x16a)](_0x58862e[_0x1db024(0x29b)]);_0x58862e[_0x1db024(0x221)][_0x1db024(0x2d2)](_0x41348b=>_0x1601f6[_0x1db024(0x19e)](_0x41348b,_0x1db024(0x248))),this[_0x1db024(0x1a7)][_0x1db024(0x162)](_0x4e4422),this[_0x1db024(0x1a7)][_0x1db024(0x17b)](_0x261b56,_0x58862e);}),this[_0x4e6aa1(0x161)](_0x3737a7,_0x4e6aa1(0x1e8),(_0x408029,_0x257ac5,_0x34d799)=>{const _0x2ce3f3=_0x4e6aa1,_0x4b7bcc=this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x182)](_0x257ac5);if(!_0x4b7bcc)return;const _0x4310a9=this[_0x2ce3f3(0x25a)][_0x2ce3f3(0x21e)](_0x4b7bcc[_0x2ce3f3(0x1db)])[_0x2ce3f3(0x16a)](_0x4b7bcc[_0x2ce3f3(0x29b)]);_0x4b7bcc[_0x2ce3f3(0x221)][_0x2ce3f3(0x2d2)](_0x114404=>_0x4310a9[_0x2ce3f3(0x19e)](_0x114404,_0x2ce3f3(0x285))),this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x162)](_0x257ac5),this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x17b)](_0x34d799,_0x4b7bcc);});}async[_0x51392f(0x174)](_0x4580d1){const _0x166768=_0x51392f;this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x296)](_0x166768(0x238))&&this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x182)](_0x166768(0x238))[_0x166768(0x16b)](),(this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x182)](_0x39f63c)[_0x166768(0x1c2)][_0x166768(0x251)](_0x166768(0x1ac)),this[_0x166768(0x1ba)][_0x166768(0x2e4)](_0x166768(0x1d7)),this[_0x166768(0x1ba)][_0x166768(0x1aa)](!0x0),await this[_0x166768(0x277)]());try{await this[_0x166768(0x2ba)][_0x166768(0x22b)](_0x4580d1)[_0x166768(0x23b)](),await this[_0x166768(0x2a8)](_0x4580d1),this[_0x166768(0x2b4)]('\x20'),await this[_0x166768(0x25a)][_0x166768(0x180)](_0x4580d1,this[_0x166768(0x293)][_0x166768(0x244)]),this[_0x166768(0x25a)][_0x166768(0x234)]()&&this[_0x166768(0x1af)]();}catch(_0xeb460d){this[_0x166768(0x1ba)][_0x166768(0x2ae)]({'errorMessage':_0x534e0f(this[_0x166768(0x1b8)][_0x166768(0x215)],_0x166768(0x282)),'id':_0x4580d1}),this[_0x166768(0x271)](new _0x2bbafa(_0x166768(0x288),this,{'error':_0xeb460d}));}finally{this[_0x166768(0x1ba)][_0x166768(0x196)](),this[_0x166768(0x1ba)][_0x166768(0x2e4)](_0x166768(0x26c)),this[_0x166768(0x1ba)][_0x166768(0x1aa)](!0x1);}}async[_0x51392f(0x204)](){const _0x84ef70=_0x51392f,_0x282fd2=this[_0x84ef70(0x2ba)][_0x84ef70(0x213)](this[_0x84ef70(0x16e)](),{'limit':0x1,'sortBy':_0x84ef70(0x170)});try{const _0x547354=await _0x282fd2[_0x84ef70(0x2ea)]();return _0x547354[_0x84ef70(0x17a)]?_0x547354[0x0]['id']:_0x84ef70(0x1a0);}catch(_0x94627f){return this[_0x84ef70(0x1ba)][_0x84ef70(0x2ae)]({'errorMessage':_0x534e0f(this[_0x84ef70(0x1b8)][_0x84ef70(0x215)],_0x84ef70(0x282)),'id':_0x1837bf()}),this[_0x84ef70(0x271)](new _0x2bbafa(_0x84ef70(0x1a1),this,{'error':_0x94627f})),this[_0x84ef70(0x1ba)][_0x84ef70(0x1aa)](!0x1),this[_0x84ef70(0x1ba)][_0x84ef70(0x27b)](),null;}}[_0x51392f(0x1cd)](_0x2a0aca){const _0x3b3129=_0x51392f;this[_0x3b3129(0x25a)]['id']===_0x2a0aca&&this[_0x3b3129(0x2a8)]();}[_0x51392f(0x1af)](){const _0x504046=_0x51392f;this[_0x504046(0x25a)]?.[_0x504046(0x20c)](_0x534e0f(this[_0x504046(0x1b8)][_0x504046(0x215)],_0x504046(0x20f)));}async[_0x51392f(0x290)](){const _0x1db34d=_0x51392f,_0x4d6c75=this[_0x1db34d(0x293)][_0x1db34d(0x24c)]();this[_0x1db34d(0x25a)]?.[_0x1db34d(0x224)](_0x4d6c75),this[_0x1db34d(0x1af)]();}[_0x51392f(0x20b)](){const _0x1b419b=_0x51392f;this[_0x1b419b(0x25a)]?.[_0x1b419b(0x2ce)]();}[_0x51392f(0x200)](){const _0x1fe5ff=_0x51392f;this[_0x1fe5ff(0x1ba)][_0x1fe5ff(0x200)]();}async[_0x51392f(0x2d4)](){const _0x49038c=_0x51392f;await this[_0x49038c(0x2a8)]();}async[_0x51392f(0x25b)]({message:_0x1d1483,attributes:_0x3978de}){const _0x544cf8=_0x51392f;await this[_0x544cf8(0x274)]({'userMessage':_0x1d1483,'attributes':_0x3978de});}[_0x51392f(0x16e)](){const _0x2ca150=_0x51392f,_0x2894e6=this[_0x2ca150(0x1b8)][_0x2ca150(0x270)][_0x2ca150(0x182)](_0x2ca150(0x2dd));if(!_0x2894e6)throw new _0x2bbafa(_0x2ca150(0x278),this);return _0x2894e6;}async[_0x51392f(0x2a8)](_0x1d8ee3){const _0x281582=_0x51392f;try{this[_0x281582(0x1ba)][_0x281582(0x265)](),await this[_0x281582(0x29e)](_0x1d8ee3);}catch(_0x2002fd){this[_0x281582(0x1ba)][_0x281582(0x2ae)]({'errorMessage':_0x534e0f(this[_0x281582(0x1b8)][_0x281582(0x215)],_0x281582(0x2b0)),'id':_0x1d8ee3||_0x1837bf()}),console[_0x281582(0x1f2)](_0x2002fd),this[_0x281582(0x25a)]=void 0x0,this[_0x281582(0x1ba)][_0x281582(0x27b)]();}}async[_0x51392f(0x29e)](_0x2d152f){const _0x1fd608=_0x51392f;let _0xadffed;this[_0x1fd608(0x1b8)][_0x1fd608(0x1d1)][_0x1fd608(0x296)](_0x1fd608(0x238))&&this[_0x1fd608(0x1b8)][_0x1fd608(0x1d1)][_0x1fd608(0x182)](_0x1fd608(0x238))[_0x1fd608(0x16b)](),_0x2d152f||!this[_0x1fd608(0x25a)]?_0xadffed=this[_0x1fd608(0x1b8)][_0x1fd608(0x270)][_0x1fd608(0x182)](_0x1fd608(0x198)):this[_0x1fd608(0x1ba)][_0x1fd608(0x27a)]&&(_0xadffed=this[_0x1fd608(0x25a)][_0x1fd608(0x1c3)]['id']),await this[_0x1fd608(0x277)]();const _0x4d1b4b=this[_0x1fd608(0x16e)](),_0x493f25=_0x2d152f||_0x1837bf();this[_0x1fd608(0x25a)]=new _0x5c1c02({'connector':this[_0x1fd608(0x2ba)],'chatModels':this[_0x1fd608(0x1d8)],'selectedModelId':_0xadffed,'conversationId':_0x493f25,'group':_0x4d1b4b,'getEditor':()=>_0x3d3109(this[_0x1fd608(0x1b8)]),'isFromHistory':!!_0x2d152f}),this[_0x1fd608(0x25a)][_0x1fd608(0x23e)](_0x1fd608(0x25f),_0x1fd608(0x2bc))['to'](this),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2a7),(_0x275913,_0x4c25b0)=>{const _0x414bfd=_0x1fd608;this[_0x414bfd(0x1ba)][_0x414bfd(0x199)](_0x4c25b0),this[_0x414bfd(0x1ba)][_0x414bfd(0x25c)](),this[_0x414bfd(0x1ba)][_0x414bfd(0x26f)](),this[_0x414bfd(0x1ba)][_0x414bfd(0x1fe)](),_0x2d152f||(this[_0x414bfd(0x1ba)][_0x414bfd(0x24d)](),this[_0x414bfd(0x1af)]());}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1c0),(_0x29af94,_0x38c38a)=>{const _0x3a61d6=_0x1fd608;this[_0x3a61d6(0x1ba)][_0x3a61d6(0x27e)](_0x38c38a[_0x3a61d6(0x2cf)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x23c),(_0x50cf82,_0x2f3cb7)=>{const _0x53c757=_0x1fd608;this[_0x53c757(0x1ba)][_0x53c757(0x245)](_0x2f3cb7);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x214),()=>{const _0x245e9f=_0x1fd608,_0x221d9f=this[_0x245e9f(0x1ba)][_0x245e9f(0x1ee)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x245e9f(0x1ba)][_0x245e9f(0x185)](_0x221d9f);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x26b),()=>{const _0x196152=_0x1fd608,_0x4da855=this[_0x196152(0x1ba)][_0x196152(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x196152(0x1ba)][_0x196152(0x185)](_0x4da855);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x188),(_0x184058,_0x454767)=>{const _0xac5343=_0x1fd608;this[_0xac5343(0x1ba)][_0xac5343(0x2b7)](_0x454767,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x220),(_0x2474e3,_0x2b436a)=>{const _0xf07667=_0x1fd608;this[_0xf07667(0x1ba)][_0xf07667(0x2b7)](_0x2b436a,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2bc),()=>{const _0x367e2b=_0x1fd608;this[_0x367e2b(0x1ba)][_0x367e2b(0x264)]();}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x229),async()=>{const _0x300bf2=_0x1fd608;await this[_0x300bf2(0x1ba)][_0x300bf2(0x1e5)]();}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2c0),(_0x21297f,_0x1be87a)=>{const _0x54077d=_0x1fd608;this[_0x54077d(0x1ba)][_0x54077d(0x2a4)](_0x1be87a['id']);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x261),(_0x39aa3e,_0x3de34a,_0x34b197)=>{const _0x5de465=_0x1fd608;this[_0x5de465(0x2b4)](_0x3de34a,_0x34b197);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x191),(_0x57c272,_0x39f8fc)=>{const _0x1fb378=_0x1fd608;_0x1fb378(0x1cc)===_0x39f8fc[_0x1fb378(0x1e2)]?this[_0x1fb378(0x1ba)][_0x1fb378(0x165)](_0x39f8fc):this[_0x1fb378(0x1ba)][_0x1fb378(0x23a)](_0x39f8fc);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1b3),async(_0x4931b4,_0x2dfe22)=>{const _0x55d17b=_0x1fd608;await this[_0x55d17b(0x1d0)]({'reply':_0x2dfe22});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x17c),(_0x511620,{reply:_0x3d3608,index:_0x22f73f,state:_0x155ae0})=>{const _0x6f2717=_0x1fd608;this[_0x6f2717(0x1ba)][_0x6f2717(0x16d)]({'id':_0x3d3608['id'],'index':_0x22f73f,'state':_0x155ae0}),this[_0x6f2717(0x2a5)]?.[_0x6f2717(0x29b)][_0x6f2717(0x19b)](_0x3d3608['id'])&&this[_0x6f2717(0x2a5)]?.[_0x6f2717(0x1a2)]==_0x22f73f&&this[_0x6f2717(0x1bc)]?.[_0x6f2717(0x250)](_0x155ae0);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x28e),(_0x17c7a5,_0x33725b)=>{const _0x4aebfc=_0x1fd608;if(this[_0x4aebfc(0x1ba)][_0x4aebfc(0x2cd)](_0x33725b[_0x4aebfc(0x18d)],_0x33725b[_0x4aebfc(0x257)]),_0x4aebfc(0x1b1)===_0x33725b[_0x4aebfc(0x18d)][_0x4aebfc(0x1e2)]){const _0x471cb4=[..._0x3d3109(this[_0x4aebfc(0x1b8)])[_0x4aebfc(0x1a3)][_0x4aebfc(0x267)][_0x4aebfc(0x1b1)][_0x4aebfc(0x17d)]()];this[_0x4aebfc(0x293)][_0x4aebfc(0x233)](_0x471cb4,_0x4aebfc(0x1ff)+this[_0x4aebfc(0x25a)]?.['id']);}}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2c4),(_0x40edf2,_0x5ab089)=>{const _0x34f51c=_0x1fd608;this[_0x34f51c(0x1ba)][_0x34f51c(0x1c7)](_0x5ab089[_0x34f51c(0x287)]),_0x34f51c(0x24e)==_0x5ab089[_0x34f51c(0x287)]&&this[_0x34f51c(0x20b)](),_0x34f51c(0x1b1)===_0x5ab089[_0x34f51c(0x1e2)]&&this[_0x34f51c(0x293)][_0x34f51c(0x179)](_0x34f51c(0x1ff)+this[_0x34f51c(0x25a)]?.['id']);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1f5),(_0xecc1e8,_0x32ee1a)=>{const _0x5051ed=_0x1fd608;this[_0x5051ed(0x1ba)][_0x5051ed(0x2c2)](_0x32ee1a[_0x5051ed(0x18d)][_0x5051ed(0x287)],_0x32ee1a[_0x5051ed(0x257)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2e7),(_0x243fc7,_0x17874d)=>{const _0x5eb58c=_0x1fd608;this[_0x5eb58c(0x1ba)][_0x5eb58c(0x19f)](_0x17874d[_0x5eb58c(0x29f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x216),(_0x4ca8b0,_0x4ed5d1)=>{const _0x38d3c8=_0x1fd608;this[_0x38d3c8(0x1ba)][_0x38d3c8(0x1e3)](_0x4ed5d1[_0x38d3c8(0x187)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1ce),(_0x3586da,_0xbbc7d4)=>{const _0x27d237=_0x1fd608;this[_0x27d237(0x1ba)][_0x27d237(0x28a)](_0xbbc7d4[_0x27d237(0x1d5)],_0xbbc7d4[_0x27d237(0x239)],_0xbbc7d4[_0x27d237(0x202)],_0xbbc7d4[_0x27d237(0x24f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2d9),(_0x5e3d4c,_0x4107af)=>{const _0x2e88ff=_0x1fd608;this[_0x2e88ff(0x1ba)][_0x2e88ff(0x2af)](_0x4107af[_0x2e88ff(0x1d5)],_0x4107af[_0x2e88ff(0x1ae)],_0x4107af[_0x2e88ff(0x28f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x226),(_0x35d27c,_0x1d4069)=>{const _0x5a4071=_0x1fd608;this[_0x5a4071(0x1ba)][_0x5a4071(0x2c5)](_0x1d4069);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x242),async(_0x345580,_0x4afd1b)=>{const _0x15fedc=_0x1fd608,_0x44cb0f=(await this[_0x15fedc(0x1d8)][_0x15fedc(0x206)]())[_0x15fedc(0x1e4)](_0x1511d0=>_0x1511d0['id']===_0x4afd1b[_0x15fedc(0x1c3)]?.['id'])||null;this[_0x15fedc(0x1ba)][_0x15fedc(0x178)](_0x44cb0f,_0x4afd1b[_0x15fedc(0x249)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1f2),(_0x46e9f5,{error:_0x51c50d,interactionId:_0x1c48a7,fileName:_0x52cfcc,url:_0x303218,sourceId:_0x424a18,sourceLabel:_0x44bca})=>{const _0x305a8d=_0x1fd608,_0x221243=_0x1c48a7?_0x1c48a7+':'+_0x1837bf():_0x1837bf();_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2b5))?this[_0x305a8d(0x1ba)][_0x305a8d(0x292)]({'staticMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1f1)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1a1))||_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2d0))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2b0)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2ec))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x16c),_0x52cfcc),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1b9))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1b2),_0x303218),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x175))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2c3)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x212))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1bf)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2b9))?(_0x424a18&&this[_0x305a8d(0x1ba)][_0x305a8d(0x1dd)](_0x424a18),this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x22d),_0x44bca||_0x305a8d(0x239)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1e7))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x253)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x16f))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x217)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2e9))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2d6)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1d6))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1fa)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x19d))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x263)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x167))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x269)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x197)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d));}),await this[_0x1fd608(0x25a)][_0x1fd608(0x27c)](this[_0x1fd608(0x1b8)][_0x1fd608(0x270)][_0x1fd608(0x182)](_0x1fd608(0x29a))),_0x2d152f||await this[_0x1fd608(0x25a)][_0x1fd608(0x2b1)]();}async[_0x51392f(0x274)]({userMessage:_0x384fd6,attributes:_0x34ba22}){const _0x446968=_0x51392f;if(!this[_0x446968(0x25a)])throw new _0x2bbafa(_0x446968(0x284));if(this[_0x446968(0x25a)][_0x446968(0x2a1)]()){const _0x364ac7=await this[_0x446968(0x293)][_0x446968(0x1e0)]();await this[_0x446968(0x25a)][_0x446968(0x1df)](_0x364ac7);}this[_0x446968(0x25a)]['id']&&this[_0x446968(0x25a)][_0x446968(0x2a3)]&&await this[_0x446968(0x25a)][_0x446968(0x289)]({'userMessage':_0x384fd6,'attributes':_0x34ba22});}[_0x51392f(0x268)](){const _0xef8c37=_0x51392f;console[_0xef8c37(0x26a)](_0xef8c37(0x1c5));}[_0x51392f(0x203)](_0x514739){const _0x1863dc=_0x51392f;this[_0x1863dc(0x1ba)][_0x1863dc(0x2da)](_0x514739);}[_0x51392f(0x271)](_0x3ed67a){const _0x14f70d=_0x51392f;_0x640bca(_0x3ed67a[_0x14f70d(0x1a4)]);}[_0x51392f(0x164)](_0x1a0b6e){const _0x21da86=_0x51392f;this[_0x21da86(0x25a)]?.[_0x21da86(0x19a)](_0x1a0b6e);}[_0x51392f(0x1cb)](){const _0x4acc99=_0x51392f;this[_0x4acc99(0x25a)]?.[_0x4acc99(0x207)]();}[_0x51392f(0x1ea)](){const _0x2bc608=_0x51392f;this[_0x2bc608(0x25a)]?.[_0x2bc608(0x28d)]();}[_0x51392f(0x181)](_0x5ad51b){const _0x2abedd=_0x51392f,[_0x4d2707,_0x561a71]=_0x5ad51b[_0x2abedd(0x1bb)](':'),_0x54d4e5=this[_0x2abedd(0x25a)][_0x2abedd(0x21e)](_0x4d2707),_0x32caeb=_0x54d4e5[_0x2abedd(0x16a)](_0x561a71);return{'interaction':_0x54d4e5,'reply':_0x32caeb};}[_0x51392f(0x177)](_0x5eefad,_0x91ffd0=!0x1){const _0x950d32=_0x51392f,_0x1f0b4d=_0x3d3109(this[_0x950d32(0x1b8)]),_0x49fdac={'target':_0x1f0b4d[_0x950d32(0x2c1)][_0x950d32(0x1c2)][_0x950d32(0x275)][_0x950d32(0x1f6)](_0x1f0b4d[_0x950d32(0x2c1)][_0x950d32(0x1f7)][_0x950d32(0x21c)](_0x5eefad)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x91ffd0};_0x91ffd0&&(_0x49fdac[_0x950d32(0x2c7)]=!0x0),_0x494017(_0x49fdac);}[_0x51392f(0x2b4)](_0x494e49,_0x4a1558=!0x1){const _0x20e1f9=_0x51392f;this[_0x20e1f9(0x1ba)][_0x20e1f9(0x261)](_0x494e49||_0x534e0f(this[_0x20e1f9(0x1b8)][_0x20e1f9(0x215)],_0x20e1f9(0x2de)),_0x4a1558);}async[_0x51392f(0x1d0)]({reply:_0x3707df,renderingStrategy:_0x21b718}){const _0x454ef6=_0x51392f,{id:_0x3c7096,interactionId:_0x41be23,isDone:_0x26646c,type:_0x7b7dcb,parsedContent:_0x409010}=_0x3707df,_0x520abb=_0x41be23+':'+_0x3c7096;if(_0x454ef6(0x176)===_0x7b7dcb){const _0x44b900=_0x3707df[_0x454ef6(0x2cc)]({'showDiff':this[_0x454ef6(0x1ba)][_0x454ef6(0x2b3)]});await this[_0x454ef6(0x1ba)][_0x454ef6(0x22e)]({'id':_0x520abb,'parts':_0x44b900,'renderingStrategy':_0x21b718,'isDone':_0x26646c});}else _0x454ef6(0x1cc)===_0x7b7dcb&&await this[_0x454ef6(0x1ba)][_0x454ef6(0x1eb)]({'id':_0x520abb,'parsedContent':_0x409010,'renderingStrategy':_0x21b718,'isDone':_0x26646c});_0x26646c&&_0x3707df[_0x454ef6(0x281)][_0x454ef6(0x17a)]>0x0&&this[_0x454ef6(0x1ba)][_0x454ef6(0x27f)](_0x520abb,_0x3707df[_0x454ef6(0x281)]);}async[_0x51392f(0x277)](){const _0x5a1d84=_0x51392f,_0x3980e4=this[_0x5a1d84(0x25a)]?.[_0x5a1d84(0x1b6)];_0x3980e4&&(_0x3980e4[_0x5a1d84(0x194)](),this[_0x5a1d84(0x1ba)][_0x5a1d84(0x1b5)](_0x3980e4));}async[_0x51392f(0x276)](){const _0x215ddd=_0x51392f,_0x50a179=this[_0x215ddd(0x25a)]?.[_0x215ddd(0x1b6)];if(_0x50a179){for await(const _0x2619cb of _0x50a179[_0x215ddd(0x252)])await this[_0x215ddd(0x1d0)]({'reply':_0x2619cb,'renderingStrategy':_0x215ddd(0x1d7)});}}[_0x51392f(0x2a2)](_0x189fcc){const _0x5baa3=_0x51392f,_0x31e4da={'positiveCount':_0x189fcc[_0x5baa3(0x1ed)][_0x5baa3(0x260)](_0x2de6ed=>_0x5baa3(0x285)===_0x2de6ed[_0x5baa3(0x283)])[_0x5baa3(0x17a)],'totalCount':_0x189fcc[_0x5baa3(0x1ed)][_0x5baa3(0x17a)],'modificationId':_0x189fcc['id']},_0x5189b3=this[_0x5baa3(0x25a)][_0x5baa3(0x21e)](_0x189fcc[_0x5baa3(0x1db)])[_0x5baa3(0x2c8)];_0x5189b3&&this[_0x5baa3(0x2ba)][_0x5baa3(0x2b6)](this[_0x5baa3(0x25a)]['id'],_0x5189b3,_0x31e4da);}[_0x51392f(0x2df)](_0x272a44){const _0x1172fa=_0x51392f;let _0x57aec3=null,_0xeb7aae=null;this['on'](_0x1172fa(0x25f),(_0x25e26b,_0x634325,_0xb852da)=>{const _0x312652=_0x1172fa;_0xb852da['id']!==_0x57aec3&&(_0x57aec3=_0xb852da['id'],_0xeb7aae=this[_0x312652(0x205)](_0xb852da)),_0x272a44(_0x634325,_0xeb7aae);});}[_0x51392f(0x205)](_0x297fd8){const _0x24d4c5=_0x51392f,_0x5019eb=this[_0x24d4c5(0x1ba)],_0x10b21f=()=>{const _0x147595=_0x24d4c5;_0x297fd8[_0x147595(0x18f)](),_0x297fd8[_0x147595(0x2ad)](),_0x5019eb[_0x147595(0x254)]();},_0x554314=()=>{const _0x1e72b2=_0x24d4c5;_0x297fd8[_0x1e72b2(0x22a)]&&(_0x297fd8[_0x1e72b2(0x22a)][_0x1e72b2(0x291)](),_0x297fd8[_0x1e72b2(0x22a)]=void 0x0);};return{'insertTextReply':(_0x55e754,_0x3995fe)=>{const _0x389ccb=_0x24d4c5;_0x554314(),_0x10b21f();const _0x1d06cd=_0x297fd8[_0x389ccb(0x22a)]=_0x297fd8[_0x389ccb(0x2ca)]({'type':_0x389ccb(0x1cc),'interactionId':_0x297fd8['id'],'content':_0x55e754,'id':_0x3995fe||_0x1837bf()});return _0x554314(),_0x1d06cd;},'insertCustomElement':async(_0x8a248e,_0x3196bf)=>(_0x554314(),_0x10b21f(),_0x5019eb[_0x24d4c5(0x1a6)](_0x8a248e,_0x3196bf||_0x1837bf())),'setLoadingMessage':_0x2598d9=>{const _0x51e90d=_0x24d4c5;_0x5019eb[_0x51e90d(0x185)](_0x2598d9);},'clearLoadingMessage':()=>{const _0x3ab352=_0x24d4c5;_0x5019eb[_0x3ab352(0x254)]();}};}}
|
|
23
|
+
const _0x4f0be9=_0x462d;(function(_0x5e9a44,_0x512c76){const _0x106408=_0x462d,_0x47d6b9=_0x5e9a44();while(!![]){try{const _0x5210c6=-parseInt(_0x106408(0x262))/0x1+-parseInt(_0x106408(0x240))/0x2+-parseInt(_0x106408(0x2ac))/0x3*(-parseInt(_0x106408(0x18e))/0x4)+-parseInt(_0x106408(0x25d))/0x5*(parseInt(_0x106408(0x1fd))/0x6)+parseInt(_0x106408(0x2b4))/0x7+parseInt(_0x106408(0x2f7))/0x8+parseInt(_0x106408(0x2bb))/0x9;if(_0x5210c6===_0x512c76)break;else _0x47d6b9['push'](_0x47d6b9['shift']());}catch(_0x13e588){_0x47d6b9['push'](_0x47d6b9['shift']());}}}(_0x2d80,0x385b8));import{ContextPlugin as _0x579fa9,Editor as _0x4c7e88}from'ckeditor5/src/core.js';import{BodyCollection as _0x5c7a70}from'ckeditor5/src/ui.js';import{CKEditorError as _0x5e0114,logError as _0x2a8800,scrollViewportToShowTarget as _0x17172b,uid as _0x38ac82}from'ckeditor5/src/utils.js';function _0x2d80(){const _0x577600=['setState','insertSuggestion','done','showChangeInText','isOfficialPlugin','removeFromContext','disableControls','removeSelectionFromContext','_integrateEditor','indexes','ai-chat-conversation-start-failed','change','start','ai.chat.initialConversation','AI_BALLOON_HEADER_TITLE','lastInteraction','ready','document','addResourceToContext','getAttribute','_getAIChatInteractionAPI','DocumentCompare','_getDocumentRangeForReplyChanges','toggleLoadingSkeleton','_openBalloonFor','isDisabled','_getLastCreatedConversationId','populateSourceResourceBalloon','bind','selectedModel','ai-no-track-changes','replyContentUpdated','getChild','current-document','locale','static','572880qcRmSV','$graveyard','_aiEditing','addDocumentToContext','history','ai-chat-controller-no-active-conversation','ai-request-aborted','commands','type','marker','_updateRatings','like','updateFeedItemAIReplySuggestionContent','isCurrentDocumentInContext','AI_CHAT_GENERIC_ERROR','mapper','updateFeedItemAIReplySources','includes','ai-chat-file-upload-failed','sessionId','AI_CHAT_UNTITLED_CONVERSATION','getSelectionText','push','load','ai-chat-conversation-init-failed','getInteractionAndReplyById','maxOffset','baseVersion','removeSelectionFromChatContext','85ohaGLo','node','interactionFinished','addSelectionToChatContext','_aiChatUi','391983kKlENl','replyChangeGroupStateUpdated','root','resetMessageInput','_bodyCollection','split','upsertAIChatRating','toString','next','ai.models','batch','showPrevious','config','aiChatBalloon','AITabs','enableControls','set','handleUserInteraction','undo','sources','length','_aiChatModels','reasoningFinished','startInteraction','_showConversationHistory','ai-chat-context-invalid-data','options','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','interactionDestroyed','AIChatController','content','detachFromDom','addContextItem','afterInit','addFeedItemStaticMessage','_handleUIUserMessage','removeContextItem','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AI_CHAT_CONTEXT_INVALID_DATA','chat','isUploadInProgress','AIChatUI','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getInteraction','removed','howMany','delete','lastCreated','ai-chat-url-upload-failed','mouseLeaveSuggestion','_removeFromContext','_currentPreviewedChangeGroup','hasChanges','mouseOverSuggestion','isCurrentDocumentInConversation','cloneNode','startsWith','toViewRange','getGroupId','addCurrentDocumentToChatContext','dislike','contextSent','modelSelected','resize','currentReply','_getPresentableSiblingContentPartIndex','path','AI_CHAT_INVALID_REQUEST','ai-conversation-','TrackChangesEditing','documentContextContent','isLoading','setModel','add','12AHgSGj','getDocumentData','destroy','sourceResourcesLoaded','_flushLastInteractionUI','ai-chat-source-resources-load-failed','source','_createFromRanges','1100764IfYKGb','addFeedItemAIReply','startConversation','resizedTabs','addFeedInteractionHeader','_handleStartConversation','_batchToChanges','3646854UEUceq','Showing\x20conversation\x20history...','state','Undo','updateContent','createPositionAt','showDiff','setIsUploadInProgress','dialogClosed','data','slice','indexOf','changes','contextItemLoadingEnded','callback','ai-chat-context-form-data-size-limits-exceeded','remove','addFileToContext','fetchConversation','messageId','modification','getDiff','streaming','setSelectedModel','find','selectModel','resourceStateChanged','updateConversationTitle','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','toolDataReceived','AI_CHAT_UNABLE_TO_START_CONVERSATION','addUrlToContext','ai-chat-context-unsupported-type','interactionCreated','TrackChanges','activateTab','ai-chat-missing-channel-id','getPath','ai-chat-resource-load-failed','contextItems','createPositionFromPath','_registerToolDataCallback','applySuggestion','requires','setAddContextOptions','webSearchFinished','getConversations','ai-chat-conversation-not-found','addContextOptionsChanged','interactionId','getContentParts','createdAt','getConversation','finishInteraction','plugins','fetchConversations','anchorId','partIndex','updateCurrentDocumentInContext','init','3514704tfWSsz','stop','collaboration.channelId','get','_aiChatBalloon','end','rejected','from','prepareLoadingMessage','interactionStarted','_applyOperationsAsSuggestions','addFeedItemAISuggestion','setChangeGroupState','updateResourceState','contextItemAdded','uploadProgressChanged','log','changeGroups','listenTo','webSearchStarted','_startConversationSafely','attachToDom','addFeedItemUserMessage','clearPendingContextUI','startAutoScroll','showNext','getOperations','getRoot','replyId','hideFakeVisualSelection','isStarted','resources','addFeedItemCustomElement','redo','117196HOJPhA','conversationInitialized','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','resource','closeSourceResourceBalloon','addCurrentDocumentToContext','contextItem','getReply','Disliked\x20response','AI_CHAT_CONTEXT_FILE_TOO_LARGE','unshift','ai.models.defaultModelId','filter','addOperation','ai-chat-context-unsupported-file-type','scrollFeedToSuggestion','_aiChatBalloonShowDiff','loadConversation','rootName','_insertSuggestion','stopInteraction','pending','clearConversationContextUI','focusPromptInput','reasoningStarted','setConversationContext','map','AIEditing','capabilitiesUpdated','resourceId','main','AIConnector','sourcePosition','sendUserMessage','createConversation','_toggleReasoning','removeFeedInteraction','getAll','executeCustomItemCallback','editing','AI_CHAT_ABORTED_MESSAGE','resetReasoningState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','pluginName','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','version','applyOperation','ai-chat-context-file-too-many-pages','setFeedItemAIReplySuggestionPartActive','sourceId','revert','toggleWebSearch','_getUserPresentableContentPartDocumentRange','view','resizeTabs','resetConversationTitle','showFakeVisualSelection','getTransformedByOperation','handleRemovedConversation','resetWebSearchState','_stopLastInteraction','data-id','message','parse','model','addFeedItemError','_updateReplyContent','error','replyCreated','has','updateFeedItemAIReplyContent','rejectSuggestion','findIndex','setIsMaximized','Liked\x20response','contextItemRemoved','toggleReasoning','nextSibling','accepted','ai-chat-context-file-too-large','getChildAtOffset','_applySuggestion','viewRangeToDom','new','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','index','children','_logError','isInContext','_scrollToSuggestionRange','isDocumentOperation','toggleSuggestionDisplayMode','forEach','getDocumentContext','setConversationTitle','AI_CHAT_RESOURCE_LOAD_FAILED','addSelectionToContext','updateFeedItemAIReplySuggestionPartState','domConverter','abortPromptStream','replies','_setIsMaximized','alignToTop','setLoadingMessage','createReply','ai-chat-controller-mouse-over','range','close','activeConversation','_rejectSuggestion','ai-chat-invalid-request','74022BIalcd','updateCapabilities','clearLoadingMessage','context','previous','uiId','isModelAvailable','AIChatBalloon','isPremiumPlugin','query','_toggleWebSearch','loadSourceResources','ai.chat.context','getRanges','addFilesToContext','text','open','sendMessage','selection','getFirstRange','setContextItemLoading','createRange','uid','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','delegate','setFeedItemRenderingStrategy','getChildren','areActionsDisabled','outdated','_aiConnector','editors'];_0x2d80=function(){return _0x577600;};return _0x2d80();}import{AIConnector as _0x260f64}from'../aicore/aiconnector.js';function _0x462d(_0x244c72,_0x278529){const _0x2d80ad=_0x2d80();return _0x462d=function(_0x462de1,_0x561e3d){_0x462de1=_0x462de1-0x184;let _0x1fe2fb=_0x2d80ad[_0x462de1];return _0x1fe2fb;},_0x462d(_0x244c72,_0x278529);}import{AITabs as _0x10af84}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5b18f6}from'./model/aichatconversation.js';import{getTranslation as _0x2f5f52}from'../aicore/utils/common-translations.js';import{AIModels as _0x39ac94}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x11e5e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x46b224,DATA_ID_MODEL_ATTRIBUTE as _0x35e592}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x53f672,getOperationsFromReply as _0x397cbf}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3bf8dd,getMinimalSelection as _0x1a2567}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x548b39,_DetachOperation as _0x2375cc}from'ckeditor5/src/engine.js';import{findOne as _0x2e91ba,getAttribute as _0x50768f,serialize as _0x29993e,Document as _0x1e4dd4,findByAttribute as _0x4a5ad3}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x579fa9{[_0x4f0be9(0x242)];[_0x4f0be9(0x21a)];[_0x4f0be9(0x261)];[_0x4f0be9(0x277)];[_0x4f0be9(0x2fb)];[_0x4f0be9(0x2ba)]=new Map();[_0x4f0be9(0x295)]=null;[_0x4f0be9(0x266)];static get[_0x4f0be9(0x2e6)](){return[_0x260f64,_0x46b224];}static get[_0x4f0be9(0x1b9)](){const _0x52fda4=_0x4f0be9;return _0x52fda4(0x27f);}static get[_0x4f0be9(0x220)](){return!0x0;}static get[_0x4f0be9(0x205)](){return!0x0;}[_0x4f0be9(0x2f6)](){const _0x468ced=_0x4f0be9;this[_0x468ced(0x266)]=new _0x5c7a70(this[_0x468ced(0x200)][_0x468ced(0x23e)]),this[_0x468ced(0x266)][_0x468ced(0x30c)](),this[_0x468ced(0x21a)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x1ad)),this[_0x468ced(0x261)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x28b)),this[_0x468ced(0x242)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x1a9)),this[_0x468ced(0x277)]=new _0x39ac94({'connector':this[_0x468ced(0x21a)],'config':this[_0x468ced(0x200)][_0x468ced(0x26e)][_0x468ced(0x2fa)](_0x468ced(0x26b)),'locale':this[_0x468ced(0x200)][_0x468ced(0x23e)]});const _0x369c13=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x270));this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2b6),()=>{const _0x1fcd1c=_0x468ced;this[_0x1fcd1c(0x30b)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1af),(_0x19b5a0,_0x5ce5b0)=>{const _0x3c6b30=_0x468ced;this[_0x3c6b30(0x285)]({'userMessage':_0x5ce5b0});}),this[_0x468ced(0x309)](_0x369c13,_0x468ced(0x2b7),(_0x51d1b8,_0x111288)=>{const _0x17de55=_0x468ced;this[_0x17de55(0x1f3)](_0x111288);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1c4),()=>{const _0x3242d4=_0x468ced;_0x369c13[_0x3242d4(0x2a1)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1f1),async()=>{const _0x3f8eb2=_0x468ced;await this[_0x3f8eb2(0x1ca)](),await this[_0x3f8eb2(0x2b0)](),this[_0x3f8eb2(0x25c)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x243),()=>{const _0x386460=_0x468ced;this[_0x386460(0x29d)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2cc),(_0x3a1e3c,_0x44ac27)=>{const _0x2f9368=_0x468ced;this[_0x2f9368(0x1fa)]?.[_0x2f9368(0x20b)](Array[_0x2f9368(0x2fe)](_0x44ac27));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2da),(_0x564b24,_0x284639)=>{const _0x95f40a=_0x468ced;this[_0x95f40a(0x1fa)]?.[_0x95f40a(0x2da)](_0x284639);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1b4),(_0x174618,_0xa34930)=>{const _0x2211b5=_0x468ced;_0xa34930[_0x2211b5(0x2c9)](this[_0x2211b5(0x200)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x22e),(_0x4d4eb0,_0x1f66f3)=>{const _0x559924=_0x468ced;this[_0x559924(0x1fa)]?.[_0x559924(0x22e)](_0x1f66f3[_0x559924(0x2b2)],_0x1f66f3[_0x559924(0x191)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x286),(_0x261a24,_0x298052)=>{const _0x35ac52=_0x468ced;this[_0x35ac52(0x294)](_0x298052);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x208),(_0x2254d0,_0x4edd5a)=>{const _0x244b7d=_0x468ced;this[_0x244b7d(0x1fa)]?.[_0x244b7d(0x208)](_0x4edd5a[_0x244b7d(0x1bf)],_0x4edd5a[_0x244b7d(0x206)],_0x4edd5a[_0x244b7d(0x213)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1c1),()=>{const _0xdfac33=_0x468ced;this[_0xdfac33(0x207)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1da),()=>{const _0x139273=_0x468ced;this[_0x139273(0x1b1)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2d4),(_0x4d2729,_0x3e576f)=>{const _0x3e31f4=_0x468ced;this[_0x3e31f4(0x1fa)]?.[_0x3e31f4(0x2aa)](_0x3e576f);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x24b),(_0x4415ff,{replyId:_0x41c9d4})=>{const _0x1bbb78=_0x468ced;console[_0x1bbb78(0x307)](_0x1bbb78(0x1d8),_0x41c9d4);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x29e),(_0x192ed3,{replyId:_0x1c3fd7})=>{const _0x585426=_0x468ced;console[_0x585426(0x307)](_0x585426(0x196),_0x1c3fd7);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x21d),(_0x567ea7,_0x8daf5e)=>{const _0x105308=_0x468ced;this[_0x105308(0x1a1)](_0x8daf5e);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x21f),(_0x2307f6,{replyId:_0x59909d,partIndex:_0x4929a2})=>{const _0x5b65ed=_0x468ced;this[_0x5b65ed(0x19e)]=this[_0x5b65ed(0x261)][_0x5b65ed(0x2c1)],this[_0x5b65ed(0x234)](_0x59909d,_0x4929a2);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x297),(_0x16af87,{replyId:_0x332689,partIndex:_0x2291c7})=>{const _0x4716e2=_0x468ced,_0xab4a04=this[_0x4716e2(0x232)](_0x332689,_0x2291c7);_0xab4a04&&_0x4716e2(0x241)!=_0xab4a04[_0x4716e2(0x1f8)][_0x4716e2(0x264)][_0x4716e2(0x1a0)]&&this[_0x4716e2(0x242)][_0x4716e2(0x1c6)]([_0xab4a04[_0x4716e2(0x1f8)]],_0x4716e2(0x1f7));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x293),()=>{const _0x394299=_0x468ced;this[_0x394299(0x242)][_0x394299(0x189)](_0x394299(0x1f7));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2e5),(_0x5353c7,_0x5e388f)=>{const _0x1b363b=_0x468ced;this[_0x1b363b(0x242)][_0x1b363b(0x189)](_0x1b363b(0x1f7)),this[_0x1b363b(0x1df)](_0x5e388f);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1e9),async(_0x400574,{replyId:_0x42bff5,showDiff:_0x589b9d})=>{const _0x42ad8a=_0x468ced,{reply:_0x53e252}=this[_0x42ad8a(0x259)](_0x42bff5),_0x121116=_0x53e252[_0x42ad8a(0x2ed)]({'showDiff':_0x589b9d});await this[_0x42ad8a(0x261)][_0x42ad8a(0x24c)]({'id':_0x53e252['id'],'parts':_0x121116,'renderingStrategy':_0x42ad8a(0x23f)});}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1d5),(_0x50f8d3,{replyId:_0x2093a8,partIndex:_0x1953b4})=>{const _0x4951fd=_0x468ced;this[_0x4951fd(0x1fb)]({'replyId':_0x2093a8,'partIndex':_0x1953b4}),this[_0x4951fd(0x242)][_0x4951fd(0x189)](_0x4951fd(0x1f7));}),this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x1d3)](_0x468ced(0x204))&&(this[_0x468ced(0x2fb)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x204)),this[_0x468ced(0x272)](_0x468ced(0x19e),!0x1),this[_0x468ced(0x2fb)][_0x468ced(0x238)](_0x468ced(0x2c1))['to'](this,_0x468ced(0x19e)),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x1e9),()=>{const _0x50c8ed=_0x468ced,{replyId:_0x314bee,partIndex:_0x42459b}=this[_0x50c8ed(0x295)];this[_0x50c8ed(0x19e)]=!this[_0x50c8ed(0x19e)];const {reply:_0x4ca3c3}=this[_0x50c8ed(0x259)](_0x314bee),_0x956e9=_0x4ca3c3[_0x50c8ed(0x2ed)]({'showDiff':this[_0x50c8ed(0x19e)],'groupIndex':_0x42459b});this[_0x50c8ed(0x2fb)][_0x50c8ed(0x2bf)]({'part':_0x956e9[0x0],'renderingStrategy':_0x50c8ed(0x23f),'keepErrors':!0x0});}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x2e5),()=>{const _0x57ff21=_0x468ced,{replyId:_0x50aa6a,partIndex:_0xd8073d}=this[_0x57ff21(0x295)];this[_0x57ff21(0x1df)]({'replyId':_0x50aa6a,'partIndex':_0xd8073d}),this[_0x57ff21(0x2fb)][_0x57ff21(0x21c)](_0x57ff21(0x1dc));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x21d),()=>{const _0x39f3b4=_0x468ced,{replyId:_0x583d9f,partIndex:_0x30b85f}=this[_0x39f3b4(0x295)];this[_0x39f3b4(0x1a1)]({'replyId':_0x583d9f,'partIndex':_0x30b85f}),this[_0x39f3b4(0x2fb)][_0x39f3b4(0x21c)](_0x39f3b4(0x1dc));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x1d5),()=>{const _0x42e9cf=_0x468ced,{replyId:_0x1cbec5,partIndex:_0x50c8cd}=this[_0x42e9cf(0x295)];this[_0x42e9cf(0x1fb)]({'replyId':_0x1cbec5,'partIndex':_0x50c8cd}),this[_0x42e9cf(0x2fb)][_0x42e9cf(0x21c)](_0x42e9cf(0x2fd));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x185),()=>{const _0x1bdfc0=_0x468ced,{replyId:_0x31c3bc,partIndex:_0xb9cbaf}=this[_0x1bdfc0(0x295)],_0x42f1d3=this[_0x1bdfc0(0x2a3)](_0x31c3bc,_0xb9cbaf,_0x1bdfc0(0x26a));null!==_0x42f1d3&&this[_0x1bdfc0(0x234)](_0x31c3bc,_0x42f1d3);}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x26d),()=>{const _0x1c5d65=_0x468ced,{replyId:_0xf2a7ec,partIndex:_0x1156a2}=this[_0x1c5d65(0x295)],_0x15382=this[_0x1c5d65(0x2a3)](_0xf2a7ec,_0x1156a2,_0x1c5d65(0x201));null!==_0x15382&&this[_0x1c5d65(0x234)](_0xf2a7ec,_0x15382);}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x2c3),(_0x330cd7,{id:_0x530bdc})=>{const _0x484b28=_0x468ced;if(_0x484b28(0x26f)!==_0x530bdc)return;const {replyId:_0x5a865d,partIndex:_0x4d1013}=this[_0x484b28(0x295)];this[_0x484b28(0x295)]=null,this[_0x484b28(0x261)][_0x484b28(0x1be)]({'id':_0x5a865d,'index':_0x4d1013,'isActive':!0x1});}));}async[_0x4f0be9(0x283)](){const _0x229344=_0x4f0be9;this[_0x229344(0x200)]instanceof _0x4c7e88?this[_0x229344(0x224)](this[_0x229344(0x200)]):this[_0x229344(0x309)](this[_0x229344(0x200)][_0x229344(0x21b)],_0x229344(0x2ab),(_0x37e746,_0x16a443)=>{const _0x3bafd3=_0x229344;_0x16a443['on'](_0x3bafd3(0x22c),()=>{const _0x1adbf1=_0x3bafd3;this[_0x1adbf1(0x224)](_0x16a443);});});const _0x41288f=this[_0x229344(0x200)][_0x229344(0x26e)][_0x229344(0x2fa)](_0x229344(0x229));let _0x5ee54e=_0x41288f;if(_0x229344(0x291)!=_0x41288f||(_0x5ee54e=await this[_0x229344(0x236)](),_0x5ee54e))return _0x229344(0x1e1)==_0x5ee54e?this[_0x229344(0x30b)]():this[_0x229344(0x19f)](_0x5ee54e);}async[_0x4f0be9(0x2ae)](){const _0x50f2e4=_0x4f0be9;return await this[_0x50f2e4(0x1ca)](),this[_0x50f2e4(0x266)][_0x50f2e4(0x281)](),super[_0x50f2e4(0x2ae)]();}[_0x4f0be9(0x1a1)](_0x4c1c8a){const _0x2d33c1=_0x4f0be9,_0x35fcbe=_0x11e5e4(this[_0x2d33c1(0x200)]);if(!_0x35fcbe[_0x2d33c1(0x2f1)][_0x2d33c1(0x1d3)](_0x2d33c1(0x2dd)))throw new _0x5e0114(_0x2d33c1(0x23a),null);const _0x362a5f=this[_0x2d33c1(0x200)][_0x2d33c1(0x2f1)][_0x2d33c1(0x2fa)](_0x2d33c1(0x231)),{reply:_0x1891be,interaction:_0x60f927}=this[_0x2d33c1(0x259)](_0x4c1c8a[_0x2d33c1(0x188)]),_0x4a356a=this[_0x2d33c1(0x232)](_0x4c1c8a[_0x2d33c1(0x188)],_0x4c1c8a[_0x2d33c1(0x2f4)]),_0x170615=void 0x0!==_0x4c1c8a[_0x2d33c1(0x2f4)]?[_0x1891be[_0x2d33c1(0x308)][_0x4c1c8a[_0x2d33c1(0x2f4)]]]:_0x1891be[_0x2d33c1(0x308)][_0x2d33c1(0x19a)](_0x47af64=>_0x2d33c1(0x1a3)==_0x47af64[_0x2d33c1(0x2bd)]),_0x1a4bea=_0x170615[_0x2d33c1(0x1a8)](_0x378547=>_0x1891be[_0x2d33c1(0x308)][_0x2d33c1(0x2c6)](_0x378547));if(!_0x4a356a||_0x2d33c1(0x241)==_0x4a356a[_0x2d33c1(0x1f8)][_0x2d33c1(0x264)][_0x2d33c1(0x1a0)])return void _0x1a4bea[_0x2d33c1(0x1ea)](_0x36f9c1=>_0x1891be[_0x2d33c1(0x303)](_0x36f9c1,_0x2d33c1(0x219)));_0x1a4bea[_0x2d33c1(0x1ea)](_0x3d53f1=>_0x1891be[_0x2d33c1(0x303)](_0x3d53f1,_0x2d33c1(0x1dc)));const _0x5ca13b=_0x397cbf({'editor':_0x35fcbe,'reply':_0x1891be,'interaction':_0x60f927,'groups':_0x170615,'transform':!0x0,'documentCompare':_0x362a5f,'documentCompareOptions':{'anchor':_0x2d33c1(0x1ac),'markDeletions':!0x0}});let _0x11e90c;_0x4a356a&&this[_0x2d33c1(0x1e7)](_0x4a356a[_0x2d33c1(0x1f8)]),_0x35fcbe[_0x2d33c1(0x1ce)][_0x2d33c1(0x227)](_0x3492bf=>{const _0x425207=_0x2d33c1;_0x11e90c=_0x3492bf[_0x425207(0x26c)],_0x35fcbe[_0x425207(0x2f1)][_0x425207(0x2fa)](_0x425207(0x2a7))[_0x425207(0x301)](_0x5ca13b),this[_0x425207(0x242)][_0x425207(0x189)](_0x425207(0x1f7));}),this[_0x2d33c1(0x2ba)][_0x2d33c1(0x272)](_0x11e90c,{'interactionId':_0x60f927['id'],'replyId':_0x1891be['id'],'indexes':_0x1a4bea[_0x2d33c1(0x2c5)]()}),this[_0x2d33c1(0x24a)](_0x1891be);}[_0x4f0be9(0x1df)](_0x124b86){const _0x3b9a09=_0x4f0be9,_0x844662=_0x11e5e4(this[_0x3b9a09(0x200)]),_0x204ed5=this[_0x3b9a09(0x200)][_0x3b9a09(0x2f1)][_0x3b9a09(0x2fa)](_0x46b224),{reply:_0x32c70e,interaction:_0x399bbf}=this[_0x3b9a09(0x259)](_0x124b86[_0x3b9a09(0x188)]),_0xcca067=this[_0x3b9a09(0x232)](_0x124b86[_0x3b9a09(0x188)],_0x124b86[_0x3b9a09(0x2f4)]),_0x51fde3=void 0x0!==_0x124b86[_0x3b9a09(0x2f4)]?[_0x32c70e[_0x3b9a09(0x308)][_0x124b86[_0x3b9a09(0x2f4)]]]:_0x32c70e[_0x3b9a09(0x308)][_0x3b9a09(0x19a)](_0x337ac6=>_0x3b9a09(0x1a3)==_0x337ac6[_0x3b9a09(0x2bd)]),_0x475971=_0x51fde3[_0x3b9a09(0x1a8)](_0x429a77=>_0x32c70e[_0x3b9a09(0x308)][_0x3b9a09(0x2c6)](_0x429a77));if(!_0xcca067||_0x3b9a09(0x241)==_0xcca067[_0x3b9a09(0x1f8)][_0x3b9a09(0x264)][_0x3b9a09(0x1a0)])return void _0x475971[_0x3b9a09(0x1ea)](_0x525347=>_0x32c70e[_0x3b9a09(0x303)](_0x525347,_0x3b9a09(0x219)));_0x475971[_0x3b9a09(0x1ea)](_0x2bbbff=>_0x32c70e[_0x3b9a09(0x303)](_0x2bbbff,_0x3b9a09(0x1dc)));const _0x4364cc=_0x397cbf({'editor':_0x844662,'reply':_0x32c70e,'interaction':_0x399bbf,'groups':_0x51fde3,'transform':!0x0,'documentCompare':_0x204ed5,'documentCompareOptions':{'anchor':_0x3b9a09(0x1ac),'markDeletions':!0x1}});let _0x1871d1;_0xcca067&&this[_0x3b9a09(0x1e7)](_0xcca067[_0x3b9a09(0x1f8)]),_0x844662[_0x3b9a09(0x1ce)][_0x3b9a09(0x227)](_0x54283d=>{const _0x5cc779=_0x3b9a09;_0x1871d1=_0x54283d[_0x5cc779(0x26c)];for(const _0x3c6b60 of _0x4364cc)_0x3c6b60[_0x5cc779(0x25b)]=_0x844662[_0x5cc779(0x1ce)][_0x5cc779(0x22d)][_0x5cc779(0x1bb)],_0x53f672(_0x844662,_0x3c6b60),_0x54283d[_0x5cc779(0x26c)][_0x5cc779(0x19b)](_0x3c6b60),_0x844662[_0x5cc779(0x1ce)][_0x5cc779(0x1bc)](_0x3c6b60);}),this[_0x3b9a09(0x2ba)][_0x3b9a09(0x272)](_0x1871d1,{'interactionId':_0x399bbf['id'],'replyId':_0x32c70e['id'],'indexes':_0x475971[_0x3b9a09(0x2c5)]()}),this[_0x3b9a09(0x24a)](_0x32c70e);}[_0x4f0be9(0x1fb)](_0x67cb0e){const _0xefbe1=_0x4f0be9,{reply:_0x426d22}=this[_0xefbe1(0x259)](_0x67cb0e[_0xefbe1(0x188)]);_0x426d22[_0xefbe1(0x303)](_0x67cb0e[_0xefbe1(0x2f4)],_0xefbe1(0x2fd));}[_0x4f0be9(0x234)](_0x44318e,_0x55fd96){const _0x3f9a53=_0x4f0be9;if(!this[_0x3f9a53(0x2fb)])return;const {reply:_0x1fbc4f}=this[_0x3f9a53(0x259)](_0x44318e),_0x50540a=_0x1fbc4f[_0x3f9a53(0x2ed)]({'showDiff':this[_0x3f9a53(0x19e)]});let _0x5f2cbc,_0x2cf065;if(void 0x0!==_0x55fd96?(_0x2cf065=_0x50540a[_0x3f9a53(0x2d3)](_0x318da8=>_0x318da8[_0x3f9a53(0x1e3)]==_0x55fd96),_0x5f2cbc=_0x2cf065?.[_0x3f9a53(0x1e3)]):(_0x2cf065=_0x50540a[0x0],_0x5f2cbc=_0x2cf065[_0x3f9a53(0x1e3)]),this[_0x3f9a53(0x295)]?.[_0x3f9a53(0x188)]==_0x44318e&&this[_0x3f9a53(0x295)]?.[_0x3f9a53(0x2f4)]==_0x5f2cbc)return;const _0x4d2989=this[_0x3f9a53(0x1c2)](_0x44318e,_0x1fbc4f,_0x2cf065);if(!_0x4d2989)return void this[_0x3f9a53(0x2fb)][_0x3f9a53(0x1f9)]();this[_0x3f9a53(0x295)]={'replyId':_0x44318e,'partIndex':_0x5f2cbc},this[_0x3f9a53(0x1e7)](_0x4d2989,!0x0);const _0x350dd6=this[_0x3f9a53(0x2a3)](_0x44318e,_0x5f2cbc,_0x3f9a53(0x26a));this[_0x3f9a53(0x2fb)][_0x3f9a53(0x2bf)]({'part':_0x2cf065,'renderingStrategy':_0x3f9a53(0x23f)}),this[_0x3f9a53(0x2fb)][_0x3f9a53(0x20d)]({'index':_0x5f2cbc,'title':_0x2f5f52(this[_0x3f9a53(0x200)][_0x3f9a53(0x23e)],_0x3f9a53(0x22a),(_0x5f2cbc+0x1)[_0x3f9a53(0x269)]()),'showRotator':null!==_0x350dd6,'ranges':[_0x4d2989],'areActionsDisabled':_0x1fbc4f[_0x3f9a53(0x218)]}),this[_0x3f9a53(0x2fb)][_0x3f9a53(0x21c)](_0x3f9a53(0x1a3)),this[_0x3f9a53(0x261)][_0x3f9a53(0x19d)](_0x44318e,_0x5f2cbc),this[_0x3f9a53(0x261)][_0x3f9a53(0x1be)]({'id':_0x44318e,'index':_0x5f2cbc,'isActive':!0x0});}[_0x4f0be9(0x2a3)](_0x272151,_0xe8a4b9,_0x5cb888){const _0x11f156=_0x4f0be9,{reply:_0x1a5d0f}=this[_0x11f156(0x259)](_0x272151),_0x1bd9eb=_0x1a5d0f[_0x11f156(0x2ed)]({'showDiff':this[_0x11f156(0x19e)]});if(0x1==_0x1bd9eb[_0x11f156(0x276)])return null;const _0x1d12d4=_0x1bd9eb[_0x11f156(0x1d6)](_0x3d1f65=>_0x3d1f65[_0x11f156(0x1e3)]==_0xe8a4b9),_0x1001d8=_0x11f156(0x26a)==_0x5cb888?0x1:-0x1;let _0x3fca33=_0x1bd9eb['at']((_0x1d12d4+_0x1001d8)%_0x1bd9eb[_0x11f156(0x276)])[_0x11f156(0x1e3)],_0x12f498=_0x1bd9eb[_0x3fca33];for(;!this[_0x11f156(0x1c2)](_0x272151,_0x1a5d0f,_0x12f498);){if(_0x3fca33=_0x1bd9eb['at']((_0x3fca33+_0x1001d8)%_0x1bd9eb[_0x11f156(0x276)])[_0x11f156(0x1e3)],_0x3fca33===_0x1d12d4)return null;_0x12f498=_0x1bd9eb[_0x3fca33];}return _0x3fca33;}[_0x4f0be9(0x1c2)](_0x19ce71,_0x3384e3,_0x5ea34b){const _0x1b239d=_0x4f0be9,_0x4148c9=_0x3384e3[_0x1b239d(0x308)];if(!_0x5ea34b[_0x1b239d(0x296)])return null;const _0x48a618=_0x4148c9[_0x1b239d(0x2d3)](_0x5662b1=>_0x5662b1[_0x1b239d(0x1e3)]==_0x5ea34b[_0x1b239d(0x1e3)]);if(_0x1b239d(0x1a3)!==_0x48a618?.[_0x1b239d(0x2bd)])return null;const _0x26e12e=this[_0x1b239d(0x232)](_0x19ce71,_0x5ea34b[_0x1b239d(0x1e3)]);if(!_0x26e12e)return null;const {range:_0x3e3213,currentIndex:_0x3304a2}=_0x26e12e;return _0x1b239d(0x241)==_0x3e3213[_0x1b239d(0x264)][_0x1b239d(0x1a0)]?(_0x3384e3[_0x1b239d(0x303)](_0x3304a2,_0x1b239d(0x219)),null):_0x26e12e[_0x1b239d(0x1f8)];}[_0x4f0be9(0x232)](_0x46db94,_0x27c527){const _0x729657=_0x4f0be9,_0x2f3529=_0x11e5e4(this[_0x729657(0x200)]),{reply:_0x3ad0d6,interaction:_0x9fbd2f}=this[_0x729657(0x259)](_0x46db94),_0x3fed3c=_0x3ad0d6[_0x729657(0x308)][_0x729657(0x19a)](_0x463014=>_0x729657(0x1a3)==_0x463014[_0x729657(0x2bd)]),_0x292bc9=_0x3fed3c[_0x729657(0x1a8)](_0x42ff6e=>_0x3ad0d6[_0x729657(0x308)][_0x729657(0x2c6)](_0x42ff6e));void 0x0===_0x27c527&&(_0x27c527=_0x292bc9[0x0]);const _0x3127ea=_0x292bc9[_0x729657(0x2c6)](_0x27c527);if(-0x1==_0x3127ea)return null;const _0x4bb7bb=_0x3fed3c[_0x3127ea],_0x53a5f7=new _0x1e4dd4([]),_0x49c114=new _0x1e4dd4([]);for(const _0xbe6ac0 of _0x4bb7bb[_0x729657(0x2c7)])if(_0x729657(0x28e)!=_0xbe6ac0[_0x729657(0x248)]&&_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0xbe6ac0[_0x729657(0x25e)][_0x729657(0x299)](!0x0)),_0x729657(0x1e1)!=_0xbe6ac0[_0x729657(0x248)]){const _0x13b827=_0x2e91ba(_0x3e3fae=>_0x50768f(_0x3e3fae,_0x729657(0x1cb))==_0xbe6ac0['id'],_0x3ad0d6[_0x729657(0x2a8)],!0x0);_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x13b827[_0x729657(0x299)](!0x0));}if(0x0==_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x276)]){if(_0x4bb7bb[_0x729657(0x2c7)][0x0][_0x729657(0x2f3)]){const _0x2bf097=_0x4a5ad3(_0x729657(0x1cb),_0x4bb7bb[_0x729657(0x2c7)][0x0][_0x729657(0x2f3)],_0x3ad0d6[_0x729657(0x2a8)]);_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x198)](_0x2bf097[_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x198)](_0x2bf097[_0x729657(0x299)](!0x0)),_0x2bf097[_0x729657(0x1db)]&&(_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x2bf097[_0x729657(0x1db)][_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0x2bf097[_0x729657(0x1db)][_0x729657(0x299)](!0x0)));}else{const _0x17ba19=_0x3ad0d6[_0x729657(0x2a8)][_0x729657(0x1e4)][0x0];if(!_0x17ba19)return null;_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x17ba19[_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0x17ba19[_0x729657(0x299)](!0x0));}}const _0xee3b32=_0x9fbd2f[_0x729657(0x1eb)](),_0x82e527=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0xee3b32[_0x729657(0x280)]),_0x67f69a=_0x29993e(_0x53a5f7),_0xe6979b=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0x67f69a),_0x51e507=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0x67f69a),_0x30871e=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2c0)](_0xe6979b,0x0),_0x4fa3ff=_0x29993e(_0x49c114),_0x337680={'anchor':_0x30871e,'markDeletions':!0x1},_0x4f8e33=_0x2f3529[_0x729657(0x2f1)][_0x729657(0x2fa)](_0x46b224)[_0x729657(0x2d0)](_0x67f69a,_0x4fa3ff,_0x337680)[_0x729657(0x186)]();if(!_0x4f8e33[_0x729657(0x276)])return null;_0x2f3529[_0x729657(0x1ce)][_0x729657(0x227)](_0x554e17=>{const _0x2af65d=_0x729657;for(const _0x4c8bfa of _0x4f8e33)if(_0x2af65d(0x2cb)==_0x4c8bfa[_0x2af65d(0x248)]){const _0x5ec15a=_0x4c8bfa[_0x2af65d(0x1ae)],_0x585a0c=_0x4c8bfa[_0x2af65d(0x28f)],_0x283a45=new _0x2375cc(_0x5ec15a,_0x585a0c);_0x554e17[_0x2af65d(0x26c)][_0x2af65d(0x19b)](_0x283a45),_0x2f3529[_0x2af65d(0x1ce)][_0x2af65d(0x1bc)](_0x283a45);}else _0x2af65d(0x249)!==_0x4c8bfa[_0x2af65d(0x248)]&&(_0x4c8bfa[_0x2af65d(0x25b)]=null,_0x4c8bfa[_0x2af65d(0x1e8)]=!0x1,_0x554e17[_0x2af65d(0x26c)][_0x2af65d(0x19b)](_0x4c8bfa),_0x2f3529[_0x2af65d(0x1ce)][_0x2af65d(0x1bc)](_0x4c8bfa));});const _0x43e7d9=_0x1a2567(_0x2f3529,_0x4f8e33,_0xe6979b);_0x3bf8dd(_0x2f3529[_0x729657(0x1ce)],_0x43e7d9);const _0x1b93ee=_0x43e7d9[_0x729657(0x210)]()[_0x729657(0x228)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x573c69=_0x43e7d9[_0x729657(0x210)]()[_0x729657(0x2fc)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x2e3673=[];let _0x11ce41=_0xe6979b,_0x5a8468=_0x51e507;for(let _0xd5e4d0=0x0;_0xd5e4d0<_0x573c69[_0x729657(0x276)];_0xd5e4d0++){const _0x3817aa=_0x11ce41[_0x729657(0x25a)]-_0x573c69[_0xd5e4d0];_0x2e3673[_0xd5e4d0]=_0x5a8468[_0x729657(0x25a)]-_0x3817aa,_0x11ce41=_0x11ce41[_0x729657(0x1de)](_0x573c69[_0xd5e4d0]),_0x5a8468=_0x5a8468[_0x729657(0x1de)](_0x2e3673[_0xd5e4d0]);}const _0x1a869c=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x212)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x51e507,_0x1b93ee),_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x51e507,_0x2e3673)),_0x48dc63=_0x51e507[_0x729657(0x23c)](0x0)[_0x729657(0x22f)](_0x35e592),_0x2a7b04=Array[_0x729657(0x2fe)](_0x82e527[_0x729657(0x217)]())[_0x729657(0x2d3)](_0x583732=>_0x583732[_0x729657(0x22f)](_0x35e592)==_0x48dc63)[_0x729657(0x2e0)](),_0x2c215b=_0x1a869c[_0x729657(0x228)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x34da4e=_0x1a869c[_0x729657(0x2fc)][_0x729657(0x2a4)][_0x729657(0x2c5)]();_0x2c215b[0x0]=_0x2a7b04[0x0]+_0x2c215b[0x0],_0x34da4e[0x0]=_0x2a7b04[0x0]+_0x34da4e[0x0];let _0xeb6525=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x212)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x187)](),_0x2c215b),_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x187)](),_0x34da4e));const _0x5389d5=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x244)][_0x729657(0x186)](_0xee3b32[_0x729657(0x1bb)]);for(const _0x141e68 of _0x5389d5)_0xeb6525=_0x548b39[_0x729657(0x2b3)](_0xeb6525[_0x729657(0x1c7)](_0x141e68));return{'range':_0xeb6525,'currentIndex':_0x27c527};}[_0x4f0be9(0x224)](_0x23e6b4){const _0x2162f8=_0x4f0be9;if(!_0x23e6b4[_0x2162f8(0x2f1)][_0x2162f8(0x1d3)](_0x2162f8(0x2be)))return;const _0x3dc433=_0x23e6b4[_0x2162f8(0x247)][_0x2162f8(0x2fa)](_0x2162f8(0x274)),_0xbbc663=_0x23e6b4[_0x2162f8(0x247)][_0x2162f8(0x2fa)](_0x2162f8(0x18d));this[_0x2162f8(0x309)](_0x3dc433,_0x2162f8(0x1c0),(_0x4b73f5,_0x557cb4,_0x5dac4e)=>{const _0x1c9960=_0x2162f8,_0x39ce6d=this[_0x1c9960(0x2ba)][_0x1c9960(0x2fa)](_0x557cb4);if(!_0x39ce6d)return;const _0x333209=this[_0x1c9960(0x1fa)][_0x1c9960(0x28d)](_0x39ce6d[_0x1c9960(0x2ec)])[_0x1c9960(0x195)](_0x39ce6d[_0x1c9960(0x188)]);_0x39ce6d[_0x1c9960(0x225)][_0x1c9960(0x1ea)](_0x1a6179=>_0x333209[_0x1c9960(0x303)](_0x1a6179,_0x1c9960(0x1a3))),this[_0x1c9960(0x2ba)][_0x1c9960(0x290)](_0x557cb4),this[_0x1c9960(0x2ba)][_0x1c9960(0x272)](_0x5dac4e,_0x39ce6d);}),this[_0x2162f8(0x309)](_0xbbc663,_0x2162f8(0x1c0),(_0x38ef50,_0x50fcab,_0x527147)=>{const _0x21fbe9=_0x2162f8,_0x2d54f8=this[_0x21fbe9(0x2ba)][_0x21fbe9(0x2fa)](_0x50fcab);if(!_0x2d54f8)return;const _0x573615=this[_0x21fbe9(0x1fa)][_0x21fbe9(0x28d)](_0x2d54f8[_0x21fbe9(0x2ec)])[_0x21fbe9(0x195)](_0x2d54f8[_0x21fbe9(0x188)]);_0x2d54f8[_0x21fbe9(0x225)][_0x21fbe9(0x1ea)](_0x463a27=>_0x573615[_0x21fbe9(0x303)](_0x463a27,_0x21fbe9(0x1dc))),this[_0x21fbe9(0x2ba)][_0x21fbe9(0x290)](_0x50fcab),this[_0x21fbe9(0x2ba)][_0x21fbe9(0x272)](_0x527147,_0x2d54f8);});}async[_0x4f0be9(0x19f)](_0x21ab6b){const _0x12730a=_0x4f0be9;this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x1d3)](_0x12730a(0x204))&&this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x2fa)](_0x12730a(0x204))[_0x12730a(0x1f9)](),(this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x2fa)](_0x10af84)[_0x12730a(0x1c3)][_0x12730a(0x2de)](_0x12730a(0x289)),this[_0x12730a(0x261)][_0x12730a(0x216)](_0x12730a(0x23f)),this[_0x12730a(0x261)][_0x12730a(0x233)](!0x0),await this[_0x12730a(0x1ca)]());try{await this[_0x12730a(0x21a)][_0x12730a(0x2cd)](_0x21ab6b)[_0x12730a(0x2ef)](),await this[_0x12730a(0x30b)](_0x21ab6b),this[_0x12730a(0x2d6)]('\x20'),await this[_0x12730a(0x1fa)][_0x12730a(0x257)](_0x21ab6b,this[_0x12730a(0x242)][_0x12730a(0x253)]),this[_0x12730a(0x1fa)][_0x12730a(0x298)]()&&this[_0x12730a(0x29d)]();}catch(_0x46f64f){this[_0x12730a(0x261)][_0x12730a(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x12730a(0x200)][_0x12730a(0x23e)],_0x12730a(0x287)),'id':_0x21ab6b}),this[_0x12730a(0x1e5)](new _0x5e0114(_0x12730a(0x2ea),this,{'error':_0x46f64f}));}finally{this[_0x12730a(0x261)][_0x12730a(0x184)](),this[_0x12730a(0x261)][_0x12730a(0x216)](_0x12730a(0x2d1)),this[_0x12730a(0x261)][_0x12730a(0x233)](!0x1);}}async[_0x4f0be9(0x236)](){const _0x1bba74=_0x4f0be9,_0x5833f3=this[_0x1bba74(0x21a)][_0x1bba74(0x2f2)](this[_0x1bba74(0x29c)](),{'limit':0x1,'sortBy':_0x1bba74(0x2ee)});try{const _0x34c156=await _0x5833f3[_0x1bba74(0x2e9)]();return _0x34c156[_0x1bba74(0x276)]?_0x34c156[0x0]['id']:_0x1bba74(0x1e1);}catch(_0x55362a){return this[_0x1bba74(0x261)][_0x1bba74(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x1bba74(0x200)][_0x1bba74(0x23e)],_0x1bba74(0x287)),'id':_0x38ac82()}),this[_0x1bba74(0x1e5)](new _0x5e0114(_0x1bba74(0x258),this,{'error':_0x55362a})),this[_0x1bba74(0x261)][_0x1bba74(0x233)](!0x1),this[_0x1bba74(0x261)][_0x1bba74(0x222)](),null;}}[_0x4f0be9(0x1c8)](_0x447f67){const _0x6c7c9a=_0x4f0be9;this[_0x6c7c9a(0x1fa)]['id']===_0x447f67&&this[_0x6c7c9a(0x30b)]();}[_0x4f0be9(0x29d)](){const _0x1dc347=_0x4f0be9;this[_0x1dc347(0x1fa)]?.[_0x1dc347(0x193)](_0x2f5f52(this[_0x1dc347(0x200)][_0x1dc347(0x23e)],_0x1dc347(0x1e2)));}async[_0x4f0be9(0x260)](){const _0x67d122=_0x4f0be9,_0x449edc=this[_0x67d122(0x242)][_0x67d122(0x255)]();this[_0x67d122(0x1fa)]?.[_0x67d122(0x1ee)](_0x449edc),this[_0x67d122(0x29d)]();}[_0x4f0be9(0x25c)](){const _0x30721c=_0x4f0be9;this[_0x30721c(0x1fa)]?.[_0x30721c(0x223)]();}[_0x4f0be9(0x1a5)](){const _0x525e7f=_0x4f0be9;this[_0x525e7f(0x261)][_0x525e7f(0x1a5)]();}async[_0x4f0be9(0x2b6)](){const _0x3698dc=_0x4f0be9;await this[_0x3698dc(0x30b)]();}async[_0x4f0be9(0x20e)]({message:_0xe2e82c,attributes:_0x2c3eb2}){const _0x12c9da=_0x4f0be9;await this[_0x12c9da(0x285)]({'userMessage':_0xe2e82c,'attributes':_0x2c3eb2});}[_0x4f0be9(0x29c)](){const _0x3ee0c5=_0x4f0be9,_0x1b3a20=this[_0x3ee0c5(0x200)][_0x3ee0c5(0x26e)][_0x3ee0c5(0x2fa)](_0x3ee0c5(0x2f9));if(!_0x1b3a20)throw new _0x5e0114(_0x3ee0c5(0x2df),this);return _0x1b3a20;}async[_0x4f0be9(0x30b)](_0x36db2d){const _0x25a8c3=_0x4f0be9;try{this[_0x25a8c3(0x261)][_0x25a8c3(0x271)](),await this[_0x25a8c3(0x2b9)](_0x36db2d);}catch(_0x253944){this[_0x25a8c3(0x261)][_0x25a8c3(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x25a8c3(0x200)][_0x25a8c3(0x23e)],_0x25a8c3(0x2d9)),'id':_0x36db2d||_0x38ac82()}),console[_0x25a8c3(0x1d1)](_0x253944),this[_0x25a8c3(0x1fa)]=void 0x0,this[_0x25a8c3(0x261)][_0x25a8c3(0x222)]();}}async[_0x4f0be9(0x2b9)](_0x3f009e){const _0x5f12a6=_0x4f0be9;let _0x3d4bab;this[_0x5f12a6(0x200)][_0x5f12a6(0x2f1)][_0x5f12a6(0x1d3)](_0x5f12a6(0x204))&&this[_0x5f12a6(0x200)][_0x5f12a6(0x2f1)][_0x5f12a6(0x2fa)](_0x5f12a6(0x204))[_0x5f12a6(0x1f9)](),_0x3f009e||!this[_0x5f12a6(0x1fa)]?_0x3d4bab=this[_0x5f12a6(0x200)][_0x5f12a6(0x26e)][_0x5f12a6(0x2fa)](_0x5f12a6(0x199)):this[_0x5f12a6(0x261)][_0x5f12a6(0x203)]&&(_0x3d4bab=this[_0x5f12a6(0x1fa)][_0x5f12a6(0x239)]['id']),await this[_0x5f12a6(0x1ca)]();const _0x47d4eb=this[_0x5f12a6(0x29c)](),_0x171eb7=_0x3f009e||_0x38ac82();this[_0x5f12a6(0x1fa)]=new _0x5b18f6({'connector':this[_0x5f12a6(0x21a)],'chatModels':this[_0x5f12a6(0x277)],'selectedModelId':_0x3d4bab,'conversationId':_0x171eb7,'group':_0x47d4eb,'getEditor':()=>_0x11e5e4(this[_0x5f12a6(0x200)]),'isFromHistory':!!_0x3f009e}),this[_0x5f12a6(0x1fa)][_0x5f12a6(0x215)](_0x5f12a6(0x2d8),_0x5f12a6(0x300))['to'](this),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x18f),(_0x475869,_0x3de9ad)=>{const _0x4bcf61=_0x5f12a6;this[_0x4bcf61(0x261)][_0x4bcf61(0x1b0)](_0x3de9ad),this[_0x4bcf61(0x261)][_0x4bcf61(0x265)](),this[_0x4bcf61(0x261)][_0x4bcf61(0x30e)](),this[_0x4bcf61(0x261)][_0x4bcf61(0x1a4)](),_0x3f009e||(this[_0x4bcf61(0x261)][_0x4bcf61(0x1c5)](),this[_0x4bcf61(0x29d)]());}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x306),(_0x212c38,_0x57be37)=>{const _0x2ae88a=_0x5f12a6;this[_0x2ae88a(0x261)][_0x2ae88a(0x2c2)](_0x57be37[_0x2ae88a(0x28a)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2dc),(_0x3e742e,_0x3d27ee)=>{const _0x1c7faa=_0x5f12a6;this[_0x1c7faa(0x261)][_0x1c7faa(0x30d)](_0x3d27ee);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x30a),()=>{const _0x5a038f=_0x5f12a6,_0x432884=this[_0x5a038f(0x261)][_0x5a038f(0x2ff)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x5a038f(0x261)][_0x5a038f(0x1f5)](_0x432884);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1a6),()=>{const _0x34ddba=_0x5f12a6,_0x71c64d=this[_0x34ddba(0x261)][_0x34ddba(0x2ff)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x34ddba(0x261)][_0x34ddba(0x1f5)](_0x71c64d);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2e8),(_0x3f0c8a,_0x115fd3)=>{const _0x4aa261=_0x5f12a6;this[_0x4aa261(0x261)][_0x4aa261(0x2b8)](_0x115fd3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x278),(_0x3fa27f,_0x3111cf)=>{const _0x1e40f8=_0x5f12a6;this[_0x1e40f8(0x261)][_0x1e40f8(0x2b8)](_0x3111cf,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x300),()=>{const _0x511e48=_0x5f12a6;this[_0x511e48(0x261)][_0x511e48(0x279)]();}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x25f),async()=>{const _0x4a0b15=_0x5f12a6;await this[_0x4a0b15(0x261)][_0x4a0b15(0x2f0)]();}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x27e),(_0x162e21,_0x19aa9e)=>{const _0x572636=_0x5f12a6;this[_0x572636(0x261)][_0x572636(0x1b2)](_0x19aa9e['id']);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1ec),(_0x1c84c3,_0x1031ee,_0xcec95d)=>{const _0x209a50=_0x5f12a6;this[_0x209a50(0x2d6)](_0x1031ee,_0xcec95d);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d2),(_0x3ea448,_0x113fdc)=>{const _0x304e90=_0x5f12a6;_0x304e90(0x20c)===_0x113fdc[_0x304e90(0x248)]?this[_0x304e90(0x261)][_0x304e90(0x2b5)](_0x113fdc):this[_0x304e90(0x261)][_0x304e90(0x302)](_0x113fdc);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x23b),async(_0x16a9e0,_0x263106)=>{const _0x22fe8d=_0x5f12a6;await this[_0x22fe8d(0x1d0)]({'reply':_0x263106});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x263),(_0x4d3a2d,{reply:_0x2a138c,index:_0x2aa296,state:_0x13e419})=>{const _0x37b562=_0x5f12a6;this[_0x37b562(0x261)][_0x37b562(0x1ef)]({'id':_0x2a138c['id'],'index':_0x2aa296,'state':_0x13e419}),this[_0x37b562(0x295)]?.[_0x37b562(0x188)][_0x37b562(0x251)](_0x2a138c['id'])&&this[_0x37b562(0x295)]?.[_0x37b562(0x2f4)]==_0x2aa296&&this[_0x37b562(0x2fb)]?.[_0x37b562(0x21c)](_0x13e419);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x305),(_0x30449e,_0x43775d)=>{const _0x5112ef=_0x5f12a6;if(this[_0x5112ef(0x261)][_0x5112ef(0x282)](_0x43775d[_0x5112ef(0x194)],_0x43775d[_0x5112ef(0x2a9)]),_0x5112ef(0x20f)===_0x43775d[_0x5112ef(0x194)][_0x5112ef(0x248)]){const _0x2fdd85=[..._0x11e5e4(this[_0x5112ef(0x200)])[_0x5112ef(0x1ce)][_0x5112ef(0x22d)][_0x5112ef(0x20f)][_0x5112ef(0x20a)]()];this[_0x5112ef(0x242)][_0x5112ef(0x1c6)](_0x2fdd85,_0x5112ef(0x2a6)+this[_0x5112ef(0x1fa)]?.['id']);}}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d9),(_0x1229c5,_0x4725e0)=>{const _0x4d33dd=_0x5f12a6;this[_0x4d33dd(0x261)][_0x4d33dd(0x286)](_0x4725e0[_0x4d33dd(0x202)]),_0x4d33dd(0x23d)==_0x4725e0[_0x4d33dd(0x202)]&&this[_0x4d33dd(0x25c)](),_0x4d33dd(0x20f)===_0x4725e0[_0x4d33dd(0x248)]&&this[_0x4d33dd(0x242)][_0x4d33dd(0x189)](_0x4d33dd(0x2a6)+this[_0x4d33dd(0x1fa)]?.['id']);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2c8),(_0x4d9f34,_0x1767d5)=>{const _0x2e30a8=_0x5f12a6;this[_0x2e30a8(0x261)][_0x2e30a8(0x211)](_0x1767d5[_0x2e30a8(0x194)][_0x2e30a8(0x202)],_0x1767d5[_0x2e30a8(0x2a9)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x29f),(_0x3d1f51,_0x510979)=>{const _0x33bdae=_0x5f12a6;this[_0x33bdae(0x261)][_0x33bdae(0x1a7)](_0x510979[_0x33bdae(0x2e2)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2eb),(_0x33f6f6,_0x2b3784)=>{const _0x1800f9=_0x5f12a6;this[_0x1800f9(0x261)][_0x1800f9(0x2e7)](_0x2b3784[_0x1800f9(0x27c)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2af),(_0x10c766,_0x2592bf)=>{const _0x26ae42=_0x5f12a6;this[_0x26ae42(0x261)][_0x26ae42(0x237)](_0x2592bf[_0x26ae42(0x1bf)],_0x2592bf[_0x26ae42(0x2b2)],_0x2592bf[_0x26ae42(0x18b)],_0x2592bf[_0x26ae42(0x213)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2d5),(_0xcea0db,_0x13bcdc)=>{const _0x3154e6=_0x5f12a6;this[_0x3154e6(0x261)][_0x3154e6(0x304)](_0x13bcdc[_0x3154e6(0x1bf)],_0x13bcdc[_0x3154e6(0x1ab)],_0x13bcdc[_0x3154e6(0x1e6)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1aa),(_0x655e6e,_0x1ad267)=>{const _0x1fa9e4=_0x5f12a6;this[_0x1fa9e4(0x261)][_0x1fa9e4(0x1fe)](_0x1ad267);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2a0),async(_0x473e4e,_0x19c028)=>{const _0x48363b=_0x5f12a6,_0xb87f14=(await this[_0x48363b(0x277)][_0x48363b(0x1b3)]())[_0x48363b(0x2d3)](_0x594565=>_0x594565['id']===_0x19c028[_0x48363b(0x239)]?.['id'])||null;this[_0x48363b(0x261)][_0x48363b(0x2d2)](_0xb87f14,_0x19c028[_0x48363b(0x235)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d1),(_0x278c15,{error:_0x1da92d,interactionId:_0x87539f,fileName:_0x4065a2,url:_0x17c622,sourceId:_0x2d1c56,sourceLabel:_0x405878})=>{const _0x19fc54=_0x5f12a6,_0x16a317=_0x87539f?_0x87539f+':'+_0x38ac82():_0x38ac82();_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x246))?this[_0x19fc54(0x261)][_0x19fc54(0x284)]({'staticMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1b6)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x258))||_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x226))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2d9)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x252))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1b8),_0x4065a2),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x292))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x190),_0x17c622),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x27b))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x288)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2db))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x214)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2b1))?(_0x2d1c56&&this[_0x19fc54(0x261)][_0x19fc54(0x192)](_0x2d1c56),this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x27d),_0x405878||_0x19fc54(0x2b2)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2e1))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1ed)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1fc))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2a5)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x19c))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2d7)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1dd))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x197)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1bd))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1ba)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2ca))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x28c)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x24e)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d));}),await this[_0x5f12a6(0x1fa)][_0x5f12a6(0x2f6)](this[_0x5f12a6(0x200)][_0x5f12a6(0x26e)][_0x5f12a6(0x2fa)](_0x5f12a6(0x209))),_0x3f009e||await this[_0x5f12a6(0x1fa)][_0x5f12a6(0x228)]();}async[_0x4f0be9(0x285)]({userMessage:_0x2cf90e,attributes:_0x50631e}){const _0x26e29f=_0x4f0be9;if(!this[_0x26e29f(0x1fa)])throw new _0x5e0114(_0x26e29f(0x245));if(this[_0x26e29f(0x1fa)][_0x26e29f(0x24d)]()){const _0x270b99=await this[_0x26e29f(0x242)][_0x26e29f(0x2ad)]();await this[_0x26e29f(0x1fa)][_0x26e29f(0x2f5)](_0x270b99);}this[_0x26e29f(0x1fa)]['id']&&this[_0x26e29f(0x1fa)][_0x26e29f(0x18a)]&&await this[_0x26e29f(0x1fa)][_0x26e29f(0x273)]({'userMessage':_0x2cf90e,'attributes':_0x50631e});}[_0x4f0be9(0x27a)](){const _0x3d3898=_0x4f0be9;console[_0x3d3898(0x307)](_0x3d3898(0x2bc));}[_0x4f0be9(0x1f3)](_0x450ccb){const _0x3f52f5=_0x4f0be9;this[_0x3f52f5(0x261)][_0x3f52f5(0x1d7)](_0x450ccb);}[_0x4f0be9(0x1e5)](_0x3c63ca){const _0x126b90=_0x4f0be9;_0x2a8800(_0x3c63ca[_0x126b90(0x1cc)]);}[_0x4f0be9(0x294)](_0x47be9b){const _0x1a16db=_0x4f0be9;this[_0x1a16db(0x1fa)]?.[_0x1a16db(0x221)](_0x47be9b);}[_0x4f0be9(0x207)](){const _0xb138cd=_0x4f0be9;this[_0xb138cd(0x1fa)]?.[_0xb138cd(0x1c1)]();}[_0x4f0be9(0x1b1)](){const _0x24f747=_0x4f0be9;this[_0x24f747(0x1fa)]?.[_0x24f747(0x1da)]();}[_0x4f0be9(0x259)](_0x45c4a6){const _0x38c12b=_0x4f0be9,[_0x15d91f,_0x40912c]=_0x45c4a6[_0x38c12b(0x267)](':'),_0x3e4c5c=this[_0x38c12b(0x1fa)][_0x38c12b(0x28d)](_0x15d91f),_0x3cc1e9=_0x3e4c5c[_0x38c12b(0x195)](_0x40912c);return{'interaction':_0x3e4c5c,'reply':_0x3cc1e9};}[_0x4f0be9(0x1e7)](_0x44a5f1,_0x1eea04=!0x1){const _0x5af378=_0x4f0be9,_0x4cccee=_0x11e5e4(this[_0x5af378(0x200)]),_0x3489b4={'target':_0x4cccee[_0x5af378(0x1b5)][_0x5af378(0x1c3)][_0x5af378(0x1f0)][_0x5af378(0x1e0)](_0x4cccee[_0x5af378(0x1b5)][_0x5af378(0x24f)][_0x5af378(0x29b)](_0x44a5f1)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1eea04};_0x1eea04&&(_0x3489b4[_0x5af378(0x1f4)]=!0x0),_0x17172b(_0x3489b4);}[_0x4f0be9(0x2d6)](_0x3ae5c0,_0x4700b0=!0x1){const _0x12bc94=_0x4f0be9;this[_0x12bc94(0x261)][_0x12bc94(0x1ec)](_0x3ae5c0||_0x2f5f52(this[_0x12bc94(0x200)][_0x12bc94(0x23e)],_0x12bc94(0x254)),_0x4700b0);}async[_0x4f0be9(0x1d0)]({reply:_0x43c559,renderingStrategy:_0x193f9b}){const _0x9c2640=_0x4f0be9,{id:_0xd306ce,interactionId:_0x5ccbb0,isDone:_0x1d8631,type:_0x579b59,parsedContent:_0x3e1f6a}=_0x43c559,_0x51e2e1=_0x5ccbb0+':'+_0xd306ce;if(_0x9c2640(0x2cf)===_0x579b59){const _0x4b87ab=_0x43c559[_0x9c2640(0x2ed)]({'showDiff':this[_0x9c2640(0x261)][_0x9c2640(0x2c1)]});await this[_0x9c2640(0x261)][_0x9c2640(0x24c)]({'id':_0x51e2e1,'parts':_0x4b87ab,'renderingStrategy':_0x193f9b,'isDone':_0x1d8631});}else _0x9c2640(0x20c)===_0x579b59&&await this[_0x9c2640(0x261)][_0x9c2640(0x1d4)]({'id':_0x51e2e1,'parsedContent':_0x3e1f6a,'renderingStrategy':_0x193f9b,'isDone':_0x1d8631});_0x1d8631&&_0x43c559[_0x9c2640(0x275)][_0x9c2640(0x276)]>0x0&&this[_0x9c2640(0x261)][_0x9c2640(0x250)](_0x51e2e1,_0x43c559[_0x9c2640(0x275)]);}async[_0x4f0be9(0x1ca)](){const _0x385dac=_0x4f0be9,_0x48ca48=this[_0x385dac(0x1fa)]?.[_0x385dac(0x22b)];_0x48ca48&&(_0x48ca48[_0x385dac(0x2f8)](),this[_0x385dac(0x261)][_0x385dac(0x1a2)](_0x48ca48));}async[_0x4f0be9(0x2b0)](){const _0x513977=_0x4f0be9,_0x27f873=this[_0x513977(0x1fa)]?.[_0x513977(0x22b)];if(_0x27f873){for await(const _0xc9823b of _0x27f873[_0x513977(0x1f2)])await this[_0x513977(0x1d0)]({'reply':_0xc9823b,'renderingStrategy':_0x513977(0x23f)});}}[_0x4f0be9(0x24a)](_0x291d10){const _0xe197df=_0x4f0be9,_0x503710={'positiveCount':_0x291d10[_0xe197df(0x308)][_0xe197df(0x19a)](_0x26685e=>_0xe197df(0x1dc)===_0x26685e[_0xe197df(0x2bd)])[_0xe197df(0x276)],'totalCount':_0x291d10[_0xe197df(0x308)][_0xe197df(0x276)],'modificationId':_0x291d10['id']},_0x27f851=this[_0xe197df(0x1fa)][_0xe197df(0x28d)](_0x291d10[_0xe197df(0x2ec)])[_0xe197df(0x2ce)];_0x27f851&&this[_0xe197df(0x21a)][_0xe197df(0x268)](this[_0xe197df(0x1fa)]['id'],_0x27f851,_0x503710);}[_0x4f0be9(0x2e4)](_0x10c9fe){const _0x25e647=_0x4f0be9;let _0x2be67e=null,_0x20f572=null;this['on'](_0x25e647(0x2d8),(_0x58004f,_0x34ce84,_0x32ffee)=>{const _0x501302=_0x25e647;_0x32ffee['id']!==_0x2be67e&&(_0x2be67e=_0x32ffee['id'],_0x20f572=this[_0x501302(0x230)](_0x32ffee)),_0x10c9fe(_0x34ce84,_0x20f572);});}[_0x4f0be9(0x230)](_0x498d75){const _0x20684f=_0x4f0be9,_0x2d8b1d=this[_0x20684f(0x261)],_0x431ded=()=>{const _0xa7138e=_0x20684f;_0x498d75[_0xa7138e(0x1c9)](),_0x498d75[_0xa7138e(0x1b7)](),_0x2d8b1d[_0xa7138e(0x1ff)]();},_0x692d74=()=>{const _0x2e0d29=_0x20684f;_0x498d75[_0x2e0d29(0x2a2)]&&(_0x498d75[_0x2e0d29(0x2a2)][_0x2e0d29(0x21e)](),_0x498d75[_0x2e0d29(0x2a2)]=void 0x0);};return{'insertTextReply':(_0x331a81,_0x2a40a2)=>{const _0x184093=_0x20684f;_0x692d74(),_0x431ded();const _0x1d7aed=_0x498d75[_0x184093(0x2a2)]=_0x498d75[_0x184093(0x1f6)]({'type':_0x184093(0x20c),'interactionId':_0x498d75['id'],'content':_0x331a81,'id':_0x2a40a2||_0x38ac82()});return _0x692d74(),_0x1d7aed;},'insertCustomElement':async(_0x5a6ef1,_0x2229ce)=>(_0x692d74(),_0x431ded(),_0x2d8b1d[_0x20684f(0x18c)](_0x5a6ef1,_0x2229ce||_0x38ac82())),'setLoadingMessage':_0x134154=>{const _0x1721bc=_0x20684f;_0x2d8b1d[_0x1721bc(0x1f5)](_0x134154);},'clearLoadingMessage':()=>{const _0x1f4ae2=_0x20684f;_0x2d8b1d[_0x1f4ae2(0x1ff)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd6c7b6=_0x2052;(function(_0x1d1af7,_0x56b38a){const _0x5182c4=_0x2052,_0x3f5120=_0x1d1af7();while(!![]){try{const _0x14e082=-parseInt(_0x5182c4(0x18f))/0x1*(parseInt(_0x5182c4(0x15f))/0x2)+parseInt(_0x5182c4(0x1d1))/0x3*(parseInt(_0x5182c4(0x138))/0x4)+-parseInt(_0x5182c4(0x195))/0x5*(-parseInt(_0x5182c4(0x17f))/0x6)+-parseInt(_0x5182c4(0x164))/0x7+-parseInt(_0x5182c4(0x18e))/0x8*(-parseInt(_0x5182c4(0x18d))/0x9)+parseInt(_0x5182c4(0x191))/0xa*(parseInt(_0x5182c4(0x1b5))/0xb)+-parseInt(_0x5182c4(0x187))/0xc*(-parseInt(_0x5182c4(0x12a))/0xd);if(_0x14e082===_0x56b38a)break;else _0x3f5120['push'](_0x3f5120['shift']());}catch(_0x406ced){_0x3f5120['push'](_0x3f5120['shift']());}}}(_0x4842,0xcd6ee));import{ContextPlugin as _0x17ddeb}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x255f6e}from'ckeditor5/src/utils.js';import{AIChatView as _0x3244ba}from'./ui/aichatview.js';import{AITabs as _0x2387c6}from'../aitabs/aitabs.js';import{getTranslation as _0x3af605}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x32bb36}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f860d}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x4842(){const _0x2e1796=['addContextItem','from','view','setAddContextOptions','remove','setInputPlaceholder','_animateConversationTitle','filter','_promiseQueue','setPromptInputValue','contextItems','focusPromptInput','setConversationContext','8809788luyOPa','forEach','hasFeedItem','ai.availableReplyActions','startInteraction','_isTrackChangesCommandValueBound','user-message','value','stopAutoScroll','prepareLoadingMessage','</p>','markFeedItemAsDone','enableControls','displayedPrompt','623924uqUawQ','_view','showDiff','isLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','clear','AI_CHAT_HEADING','queueEmptyPromise','label','setModel','get','addFeedItemAIReply','interactionId','enqueue','locale','_getInputPlaceholder','toggleSuggestionDisplayMode','insertSuggestion','showResizeButton','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','custom-element','isWebSearchEnabled','setSuggestionPartActive','toggleLoadingSkeleton','isMaximized','fire','startAutoScroll','resetConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','length','scrollToSuggestion','chatHeader','then','delegate','setFeedItemAIReplySuggestionPartActive','availableModels','updateCapabilities','_interactionPromiseResolver','2enKaRN','children','closeSourceResourceBalloon','isModelAvailable','clearLoadingMessage','10121594TLDopK','plugins','feedItemRenderingStrategy','removeContextItem','removeFeedInteraction','isTrackChangesOn','setReasoning','conversation-start','options','config','ai.chat.welcomeMessage','setSelectedModel','isPending','updateSuggestionPartState','setWebSearch','isDone','trackChanges','updateFeedInteractionHeader','disableModelSelector','markItemAsDone','removeItem','clearPendingContextUI','setIsUploadInProgress','hasItem','capabilities','updateFeedItemAIReplySuggestionContent','addFeedItemCustomElement','28176dYEwhP','isReasoningEnabled','find','addFeedItemError','isPremiumPlugin','addFeedItemAISuggestion','AIChatUI','chatControls','12GLDBeB','updateResourceState','addFeedItemUserMessage','conversationCreated','ai-reply','chat','9iELDWT','7410392yWnbTI','1279094sfpjpy','set','10tIluxk','AITabs','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','destroy','1365ymiGSH','TrackChanges','addItem','areActionsDisabled','populateSourceResourceBalloon','createConversation','userMessage','renderingStrategy','streaming','context','updateWebSources','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','stopInteraction','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','isBusy','scrollFeedToSuggestion','ai.models.showModelSelector','isVisible','values','ai.chat.context.searchInputVisibleFrom','last','updateReplyItem','addTab','attributes','pluginName','setContextItemLoading','removeFeedItem','AI_CHAT_WELCOME_MESSAGE','getItemIds','resetMessageInput','5769786KkwQwS','abort','isOfficialPlugin','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','setFeedItemRenderingStrategy','<p>','error-message','setIsMaximized','setModelList','ai-suggestion-reply','isDisabled','requires','setConversationTitle','enableModelSelector','commands','interaction-header','updateFeedItemAIReplySources','startsWith','updateFeedItemAIReplySuggestionPartState','disableControls','_titleAnimationInterval','chatFeed','bind','updateSuggestionItem','has','setLoadingMessage','addFeedInteractionHeader','addFeedItemStaticMessage','3GQAsaY','updateFeedItemAIReplyContent'];_0x4842=function(){return _0x2e1796;};return _0x4842();}import{PromiseQueue as _0x1212ba}from'./utils/promisequeue.js';function _0x2052(_0x16cb0b,_0x2ddf00){const _0x484224=_0x4842();return _0x2052=function(_0x205202,_0x2d1f95){_0x205202=_0x205202-0x128;let _0x4733fa=_0x484224[_0x205202];return _0x4733fa;},_0x2052(_0x16cb0b,_0x2ddf00);}import{AI_CHAT_UI_EVENT_NAMES as _0x275f1e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3e4770}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x36a367}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x17ddeb{static get[_0xd6c7b6(0x1c0)](){return[_0x2387c6];}[_0xd6c7b6(0x139)];static get[_0xd6c7b6(0x1af)](){const _0x3bfd7f=_0xd6c7b6;return _0x3bfd7f(0x185);}static get[_0xd6c7b6(0x1b7)](){return!0x0;}static get[_0xd6c7b6(0x183)](){return!0x0;}[_0xd6c7b6(0x166)]=_0xd6c7b6(0x19d);[_0xd6c7b6(0x13a)]=!0x0;[_0xd6c7b6(0x1db)];[_0xd6c7b6(0x15e)];[_0xd6c7b6(0x1c9)]=void 0x0;[_0xd6c7b6(0x12f)]=!0x1;constructor(_0x286d49){const _0xfa6da8=_0xd6c7b6;super(_0x286d49);const _0x12087b=this[_0xfa6da8(0x19e)][_0xfa6da8(0x165)][_0xfa6da8(0x143)](_0xfa6da8(0x192));this[_0xfa6da8(0x190)](_0xfa6da8(0x1a5),!0x1),this[_0xfa6da8(0x1db)]=new _0x1212ba(),this[_0xfa6da8(0x139)]=new _0x3244ba(this[_0xfa6da8(0x19e)][_0xfa6da8(0x147)],{'showResizeButton':_0x12087b[_0xfa6da8(0x14b)],'contextResourcesSearchInputVisibleFrom':this[_0xfa6da8(0x19e)][_0xfa6da8(0x16d)][_0xfa6da8(0x143)](_0xfa6da8(0x1aa))}),this[_0xfa6da8(0x139)][_0xfa6da8(0x15a)](..._0x275f1e)['to'](this),this[_0xfa6da8(0x139)]['on'](_0xfa6da8(0x149),(_0x1056ea,{showDiff:_0x3be6bd})=>{const _0x146608=_0xfa6da8;this[_0x146608(0x13a)]=_0x3be6bd;}),_0x12087b[_0xfa6da8(0x1d5)][_0xfa6da8(0x1ad)]({'id':_0xfa6da8(0x18c),'buttonLabel':_0x3af605(this[_0xfa6da8(0x19e)][_0xfa6da8(0x147)],_0xfa6da8(0x13f)),'buttonIcon':_0x32bb36,'order':0x0,'content':this[_0xfa6da8(0x139)]}),this[_0xfa6da8(0x139)][_0xfa6da8(0x186)][_0xfa6da8(0x1cb)](_0xfa6da8(0x13b))['to'](this,_0xfa6da8(0x1a5),_0x199dd5=>_0x199dd5),this[_0xfa6da8(0x139)][_0xfa6da8(0x1ca)][_0xfa6da8(0x1cb)](_0xfa6da8(0x170))['to'](this,_0xfa6da8(0x1a5),_0x5c7045=>_0x5c7045),this[_0xfa6da8(0x139)][_0xfa6da8(0x186)][_0xfa6da8(0x1d8)](this[_0xfa6da8(0x148)]()),this[_0xfa6da8(0x1cb)](_0xfa6da8(0x162))['to'](this[_0xfa6da8(0x139)][_0xfa6da8(0x186)],_0xfa6da8(0x162));}[_0xd6c7b6(0x194)](){const _0x5b7963=_0xd6c7b6;super[_0x5b7963(0x194)](),this[_0x5b7963(0x1c9)]&&clearInterval(this[_0x5b7963(0x1c9)]);}[_0xd6c7b6(0x19a)](_0x731b49){const _0x4e14a3=_0xd6c7b6,_0x5c5c81=this[_0x4e14a3(0x19e)][_0x4e14a3(0x16d)][_0x4e14a3(0x143)](_0x4e14a3(0x16e))??_0x3af605(this[_0x4e14a3(0x19e)][_0x4e14a3(0x147)],_0x4e14a3(0x1b2));this[_0x4e14a3(0x139)][_0x4e14a3(0x1ca)][_0x4e14a3(0x13e)](),this[_0x4e14a3(0x139)][_0x4e14a3(0x186)][_0x4e14a3(0x1c2)](),this[_0x4e14a3(0x139)][_0x4e14a3(0x186)][_0x4e14a3(0x1bd)](_0x731b49[_0x4e14a3(0x15c)],!this[_0x4e14a3(0x19e)][_0x4e14a3(0x16d)][_0x4e14a3(0x143)](_0x4e14a3(0x1a7))),this[_0x4e14a3(0x1d0)]({'id':_0x4e14a3(0x16b),'staticMessage':_0x5c5c81}),this[_0x4e14a3(0x152)](_0x4e14a3(0x18a));}[_0xd6c7b6(0x1d0)]({id:_0x156a86,staticMessage:_0x39b1a7}){const _0x2728a9=_0xd6c7b6;this[_0x2728a9(0x139)][_0x2728a9(0x1ca)][_0x2728a9(0x197)](_0x2728a9(0x18b),{'id':_0x156a86,'initialContent':_0x2728a9(0x1ba)+_0x39b1a7+_0x2728a9(0x134)});}[_0xd6c7b6(0x189)](_0x27172b){const _0x253e01=_0xd6c7b6,_0x27ab44=_0x27172b[_0x253e01(0x1ae)]?.[_0x253e01(0x137)]||_0x27172b[_0x253e01(0x19b)];this[_0x253e01(0x139)][_0x253e01(0x1ca)][_0x253e01(0x197)](_0x253e01(0x130),{'contextItems':Array[_0x253e01(0x1d4)](_0x27172b[_0x253e01(0x1dd)][_0x253e01(0x1a9)]()),'initialContent':_0x253e01(0x1ba)+_0x27ab44+_0x253e01(0x134),'id':_0x27172b['id']});}[_0xd6c7b6(0x182)]({errorMessage:_0x592c8f,id:_0x118e5f}){const _0x33f83a=_0xd6c7b6;this[_0x33f83a(0x139)][_0x33f83a(0x1ca)][_0x33f83a(0x197)](_0x33f83a(0x1bb),{'initialContent':_0x33f83a(0x1ba)+_0x592c8f+_0x33f83a(0x134),'id':_0x118e5f});}[_0xd6c7b6(0x144)](_0x558eae){const _0x7ed6d5=_0xd6c7b6;return this[_0x7ed6d5(0x1db)][_0x7ed6d5(0x146)](async()=>{const _0x51fd5f=_0x7ed6d5;this[_0x51fd5f(0x139)][_0x51fd5f(0x1ca)][_0x51fd5f(0x197)](_0x51fd5f(0x18b),{'id':_0x558eae[_0x51fd5f(0x145)]+':'+_0x558eae['id']}),this[_0x51fd5f(0x163)]();});}async[_0xd6c7b6(0x184)](_0x371c08){const _0xd04399=_0xd6c7b6,_0xa6d6e1=_0x3e4770(this[_0xd04399(0x19e)]);let _0x7cd589=_0xa6d6e1[_0xd04399(0x16d)][_0xd04399(0x143)](_0xd04399(0x12d))||[..._0x36a367];if(_0xa6d6e1[_0xd04399(0x165)][_0xd04399(0x1cd)](_0xd04399(0x196))){if(!this[_0xd04399(0x12f)]){this[_0xd04399(0x12f)]=!0x0;const _0xde84ca=_0xa6d6e1[_0xd04399(0x1c3)][_0xd04399(0x143)](_0xd04399(0x174));this[_0xd04399(0x139)][_0xd04399(0x1ca)][_0xd04399(0x1cb)](_0xd04399(0x169))['to'](_0xde84ca,_0xd04399(0x131));}}else _0x7cd589=_0x7cd589[_0xd04399(0x1da)](_0x36a44c=>_0xd04399(0x14a)!=_0x36a44c);return this[_0xd04399(0x1db)][_0xd04399(0x146)](async()=>{const _0x491bb7=_0xd04399;this[_0x491bb7(0x139)][_0x491bb7(0x1ca)][_0x491bb7(0x197)](_0x491bb7(0x1be),{'id':_0x371c08[_0x491bb7(0x145)]+':'+_0x371c08['id'],'areActionsDisabled':_0x371c08[_0x491bb7(0x198)],'showDiff':this[_0x491bb7(0x13a)],'availableActions':_0x7cd589}),this[_0x491bb7(0x163)]();});}[_0xd6c7b6(0x1cf)](_0x5b2f13,_0x10e948){const _0x288d95=_0xd6c7b6,_0x531731=this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x160)][_0x288d95(0x1ab)];if(_0x531731 instanceof _0x4f860d)return this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x160)][_0x288d95(0x1d7)](_0x531731),void this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x197)](_0x288d95(0x1c4),{'id':_0x5b2f13['id'],'capabilities':{'isWebSearchEnabled':_0x531731[_0x288d95(0x17c)][_0x288d95(0x14e)]||_0x10e948[_0x288d95(0x14e)],'isReasoningEnabled':_0x531731[_0x288d95(0x17c)][_0x288d95(0x180)]||_0x10e948[_0x288d95(0x180)]}});this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x197)](_0x288d95(0x1c4),{'id':_0x5b2f13['id'],'capabilities':_0x10e948});}async[_0xd6c7b6(0x17e)](_0x15f671,_0x2bddbc){const _0x33ae88=_0xd6c7b6;let _0xf4415a;return await this[_0x33ae88(0x1db)][_0x33ae88(0x146)](async()=>{const _0x31b77f=_0x33ae88;_0xf4415a=this[_0x31b77f(0x139)][_0x31b77f(0x1ca)][_0x31b77f(0x197)](_0x31b77f(0x14d),{'content':_0x15f671,'id':_0x2bddbc});}),_0xf4415a;}[_0xd6c7b6(0x1b1)](_0x2f95be){const _0x492dce=_0xd6c7b6;this[_0x492dce(0x139)][_0x492dce(0x1ca)][_0x492dce(0x178)](_0x2f95be);}[_0xd6c7b6(0x12c)](_0x336be9){const _0x40d795=_0xd6c7b6;return this[_0x40d795(0x139)][_0x40d795(0x1ca)][_0x40d795(0x17b)](_0x336be9);}[_0xd6c7b6(0x175)](_0x49a7e7){const _0x2581b7=_0xd6c7b6,_0x1dc313=this[_0x2581b7(0x139)][_0x2581b7(0x1ca)][_0x2581b7(0x160)][_0x2581b7(0x181)](_0x567451=>_0x567451[_0x2581b7(0x16c)]['id']==_0x49a7e7['id']&&_0x567451 instanceof _0x4f860d);_0x1dc313&&_0x1dc313[_0x2581b7(0x190)](_0x2581b7(0x1a8),_0x49a7e7[_0x2581b7(0x1a8)]);}async[_0xd6c7b6(0x1d2)](_0x564a42){const _0x408e98=_0xd6c7b6,_0x1a1e3d=_0x564a42[_0x408e98(0x19c)]||this[_0x408e98(0x166)];return this[_0x408e98(0x1db)][_0x408e98(0x146)](async _0x60c357=>{const _0x2afefd=_0x408e98;await this[_0x2afefd(0x139)][_0x2afefd(0x1ca)][_0x2afefd(0x1ac)]({..._0x564a42,'abortSignal':_0x60c357,'renderingStrategy':_0x1a1e3d}),_0x564a42[_0x2afefd(0x173)]&&this[_0x2afefd(0x135)](_0x564a42['id']);});}[_0xd6c7b6(0x1c5)](_0x4d714d,_0x370e9e){const _0x1056d3=_0xd6c7b6;this[_0x1056d3(0x139)][_0x1056d3(0x1ca)][_0x1056d3(0x19f)](_0x4d714d,_0x370e9e);}async[_0xd6c7b6(0x17d)](_0x3f0ebc){const _0x58adf1=_0xd6c7b6,_0x1f4f44=_0x3f0ebc[_0x58adf1(0x19c)]||this[_0x58adf1(0x166)];return this[_0x58adf1(0x1db)][_0x58adf1(0x146)](async _0x1a4ebe=>{const _0x1dad95=_0x58adf1;await this[_0x1dad95(0x139)][_0x1dad95(0x1ca)][_0x1dad95(0x1cc)]({..._0x3f0ebc,'abortSignal':_0x1a4ebe,'renderingStrategy':_0x1f4f44}),_0x3f0ebc[_0x1dad95(0x173)]&&this[_0x1dad95(0x135)](_0x3f0ebc['id']);});}[_0xd6c7b6(0x1c7)](_0x4b2ff2){const _0x47b24c=_0xd6c7b6;this[_0x47b24c(0x139)][_0x47b24c(0x1ca)][_0x47b24c(0x171)](_0x4b2ff2);}[_0xd6c7b6(0x15b)](_0x37d256){const _0x152033=_0xd6c7b6;this[_0x152033(0x139)][_0x152033(0x1ca)][_0x152033(0x14f)](_0x37d256);}[_0xd6c7b6(0x135)](_0x14b0a8){const _0x42543b=_0xd6c7b6;this[_0x42543b(0x139)][_0x42543b(0x1ca)][_0x42543b(0x177)](_0x14b0a8);}[_0xd6c7b6(0x168)](_0x54c297){const _0x15dc4c=_0xd6c7b6;this[_0x15dc4c(0x139)][_0x15dc4c(0x1ca)][_0x15dc4c(0x1b3)]()[_0x15dc4c(0x1da)](_0x539db7=>_0x539db7[_0x15dc4c(0x1c6)](_0x54c297))[_0x15dc4c(0x12b)](_0x51667a=>this[_0x15dc4c(0x139)][_0x15dc4c(0x1ca)][_0x15dc4c(0x178)](_0x51667a));}[_0xd6c7b6(0x12e)](){const _0x3e8663=_0xd6c7b6,_0x23a2d8=this[_0x3e8663(0x133)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3e8663(0x1ce)](_0x23a2d8),this[_0x3e8663(0x139)][_0x3e8663(0x186)][_0x3e8663(0x176)](!this[_0x3e8663(0x19e)][_0x3e8663(0x16d)][_0x3e8663(0x143)](_0x3e8663(0x1a7))),this[_0x3e8663(0x1a5)]=!0x0,this[_0x3e8663(0x139)][_0x3e8663(0x1ca)][_0x3e8663(0x153)]();}[_0xd6c7b6(0x1a2)](_0x16bea5){const _0xa06445=_0xd6c7b6;this[_0xa06445(0x1db)][_0xa06445(0x1b6)](),this[_0xa06445(0x139)][_0xa06445(0x1ca)][_0xa06445(0x1b3)]()[_0xa06445(0x1da)](_0x4602ec=>_0x4602ec[_0xa06445(0x1c6)](_0x16bea5['id']))[_0xa06445(0x12b)](_0x480785=>this[_0xa06445(0x135)](_0x480785)),this[_0xa06445(0x1a5)]=!0x1,this[_0xa06445(0x139)][_0xa06445(0x1ca)][_0xa06445(0x132)]();}async[_0xd6c7b6(0x1a3)](){const _0x300a3c=_0xd6c7b6;return this[_0x300a3c(0x1db)][_0x300a3c(0x140)][_0x300a3c(0x159)](()=>{const _0x5c4802=_0x300a3c;this[_0x5c4802(0x1a5)]=!0x1,this[_0x5c4802(0x139)][_0x5c4802(0x1ca)][_0x5c4802(0x132)]();});}[_0xd6c7b6(0x1d3)](_0x5011a1,_0x2640dd){const _0x20cb7b=_0xd6c7b6;this[_0x20cb7b(0x139)][_0x20cb7b(0x186)][_0x20cb7b(0x1d3)](_0x5011a1,_0x2640dd);}[_0xd6c7b6(0x167)](_0x40ad3e){const _0x292150=_0xd6c7b6;this[_0x292150(0x139)][_0x292150(0x186)][_0x292150(0x167)](_0x40ad3e);}[_0xd6c7b6(0x1b0)](_0x107b05,_0xbc2c6e){const _0x28a2e8=_0xd6c7b6;this[_0x28a2e8(0x139)][_0x28a2e8(0x186)][_0x28a2e8(0x1b0)](_0x107b05,_0xbc2c6e);}[_0xd6c7b6(0x17a)](_0x5351eb){const _0xfd737f=_0xd6c7b6;this[_0xfd737f(0x139)][_0xfd737f(0x186)][_0xfd737f(0x17a)](_0x5351eb);}[_0xd6c7b6(0x129)](_0x3d1c11){const _0x4aa989=_0xd6c7b6;this[_0x4aa989(0x139)][_0x4aa989(0x186)][_0x4aa989(0x129)](_0x3d1c11);}[_0xd6c7b6(0x179)](){const _0x4660e0=_0xd6c7b6;this[_0x4660e0(0x139)][_0x4660e0(0x186)][_0x4660e0(0x179)]();}[_0xd6c7b6(0x1a0)](){const _0x1b5bd3=_0xd6c7b6;this[_0x1b5bd3(0x139)][_0x1b5bd3(0x186)][_0x1b5bd3(0x1a0)]();}[_0xd6c7b6(0x188)](_0x1c313a,_0x34690c,_0x1d6c5a){const _0x28479c=_0xd6c7b6;this[_0x28479c(0x139)][_0x28479c(0x186)][_0x28479c(0x188)](_0x1c313a,_0x34690c,_0x1d6c5a);}[_0xd6c7b6(0x1b4)](){const _0x16435b=_0xd6c7b6;this[_0x16435b(0x139)][_0x16435b(0x186)][_0x16435b(0x1b4)](),this[_0x16435b(0x139)][_0x16435b(0x186)][_0x16435b(0x1d8)](this[_0x16435b(0x148)]());}[_0xd6c7b6(0x1d6)](_0x1e72b9){const _0x4b53f9=_0xd6c7b6;this[_0x4b53f9(0x139)][_0x4b53f9(0x186)][_0x4b53f9(0x1d6)](_0x1e72b9);}[_0xd6c7b6(0x15d)](_0x44796e){const _0x516094=_0xd6c7b6;this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x172)](_0x44796e[_0x516094(0x14e)]),this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x16a)](_0x44796e[_0x516094(0x180)]),this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x1d8)](this[_0x516094(0x148)](_0x44796e));}[_0xd6c7b6(0x16f)](_0x36cfe9,_0x4d38ad){const _0x3ad1f4=_0xd6c7b6;this[_0x3ad1f4(0x139)][_0x3ad1f4(0x186)][_0x3ad1f4(0x142)](_0x36cfe9),_0x4d38ad&&this[_0x3ad1f4(0x139)][_0x3ad1f4(0x186)][_0x3ad1f4(0x176)](!0x1);}[_0xd6c7b6(0x1b9)](_0x218879){const _0x44fd62=_0xd6c7b6;this[_0x44fd62(0x166)]=_0x218879;}[_0xd6c7b6(0x150)](_0x2365e9){const _0x336311=_0xd6c7b6;this[_0x336311(0x139)][_0x336311(0x1ca)][_0x336311(0x150)](_0x2365e9);}[_0xd6c7b6(0x154)](){const _0x44643f=_0xd6c7b6;this[_0x44643f(0x1c1)](_0x3af605(this[_0x44643f(0x19e)][_0x44643f(0x147)],_0x44643f(0x13f)));}[_0xd6c7b6(0x1c1)](_0x59c12e,_0x5bed94=!0x1){const _0x10817b=_0xd6c7b6;if(_0x5bed94&&!_0x255f6e()&&_0x59c12e[_0x10817b(0x156)])return this[_0x10817b(0x139)][_0x10817b(0x158)][_0x10817b(0x141)]='',void this[_0x10817b(0x1d9)](_0x59c12e);this[_0x10817b(0x139)][_0x10817b(0x158)][_0x10817b(0x141)]=_0x59c12e;}[_0xd6c7b6(0x1ce)](_0x543d6a){const _0x538872=_0xd6c7b6;this[_0x538872(0x139)][_0x538872(0x1ca)][_0x538872(0x1ce)](_0x543d6a);}[_0xd6c7b6(0x163)](){const _0x15dd58=_0xd6c7b6;this[_0x15dd58(0x139)][_0x15dd58(0x1ca)][_0x15dd58(0x1ce)]('');}[_0xd6c7b6(0x1d9)](_0x3903da){const _0x1a93dc=_0xd6c7b6;let _0x4387bf=0x0;clearInterval(this[_0x1a93dc(0x1c9)]),this[_0x1a93dc(0x1c9)]=setInterval(()=>{const _0x1717d1=_0x1a93dc;this[_0x1717d1(0x139)][_0x1717d1(0x158)][_0x1717d1(0x141)]=this[_0x1717d1(0x139)][_0x1717d1(0x158)][_0x1717d1(0x141)]+_0x3903da[_0x4387bf],_0x4387bf++,_0x4387bf===_0x3903da[_0x1717d1(0x156)]&&clearInterval(this[_0x1717d1(0x1c9)]);},0x1e);}[_0xd6c7b6(0x1bc)](_0x443c7c){const _0x55e591=_0xd6c7b6;this[_0x55e591(0x139)][_0x55e591(0x158)][_0x55e591(0x151)]=_0x443c7c;}[_0xd6c7b6(0x133)](_0x1b2562){const _0x34abed=_0xd6c7b6;return _0x1b2562[_0x34abed(0x14e)]&&_0x1b2562[_0x34abed(0x180)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x1a1)):_0x1b2562[_0x34abed(0x14e)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x1a4)):_0x1b2562[_0x34abed(0x180)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x193)):_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x14c));}[_0xd6c7b6(0x148)](_0x1c8d56){const _0x13629f=_0xd6c7b6;return _0x1c8d56?_0x1c8d56[_0x13629f(0x14e)]&&_0x1c8d56[_0x13629f(0x180)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x1b8)):_0x1c8d56[_0x13629f(0x14e)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13d)):_0x1c8d56[_0x13629f(0x180)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x155)):_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13c)):_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13c));}[_0xd6c7b6(0x199)](_0x288e67,_0x1f407,_0x443578,_0x530ae9){const _0x846078=_0xd6c7b6;this[_0x846078(0x139)][_0x846078(0x199)](_0x288e67,_0x1f407,_0x443578,_0x530ae9);}[_0xd6c7b6(0x161)](_0x29da1a){const _0x382a15=_0xd6c7b6;this[_0x382a15(0x139)][_0x382a15(0x161)](_0x29da1a);}[_0xd6c7b6(0x1dc)](_0x56ddb6){const _0x208edb=_0xd6c7b6;this[_0x208edb(0x139)][_0x208edb(0x186)][_0x208edb(0x1dc)](_0x56ddb6);}[_0xd6c7b6(0x128)](_0x5124c1=!0x1){const _0x4ad00e=_0xd6c7b6;this[_0x4ad00e(0x139)][_0x4ad00e(0x186)][_0x4ad00e(0x128)](_0x5124c1);}[_0xd6c7b6(0x1a6)](_0x296d48,_0x210193){const _0x4c627f=_0xd6c7b6;this[_0x4c627f(0x139)][_0x4c627f(0x1ca)][_0x4c627f(0x157)](_0x296d48,_0x210193);}[_0xd6c7b6(0x153)](){const _0x1088dc=_0xd6c7b6;this[_0x1088dc(0x139)][_0x1088dc(0x1ca)][_0x1088dc(0x153)]();}[_0xd6c7b6(0x1c8)](){const _0x3089ed=_0xd6c7b6;this[_0x3089ed(0x139)][_0x3089ed(0x186)][_0x3089ed(0x1bf)]=!0x0;}[_0xd6c7b6(0x136)](){const _0x42e23d=_0xd6c7b6;this[_0x42e23d(0x139)][_0x42e23d(0x186)][_0x42e23d(0x1bf)]=!0x1;}}
|
|
23
|
+
const _0x2772de=_0x1557;(function(_0x2bfc4a,_0x1b63e9){const _0xa9096d=_0x1557,_0x4138bc=_0x2bfc4a();while(!![]){try{const _0x1a1c18=parseInt(_0xa9096d(0x1e3))/0x1+-parseInt(_0xa9096d(0x191))/0x2+-parseInt(_0xa9096d(0x1c6))/0x3*(-parseInt(_0xa9096d(0x148))/0x4)+-parseInt(_0xa9096d(0x189))/0x5*(-parseInt(_0xa9096d(0x1d2))/0x6)+parseInt(_0xa9096d(0x171))/0x7*(parseInt(_0xa9096d(0x175))/0x8)+parseInt(_0xa9096d(0x1a2))/0x9+-parseInt(_0xa9096d(0x1e5))/0xa;if(_0x1a1c18===_0x1b63e9)break;else _0x4138bc['push'](_0x4138bc['shift']());}catch(_0x3a11a1){_0x4138bc['push'](_0x4138bc['shift']());}}}(_0x24c1,0x35055));import{ContextPlugin as _0x39dd8e}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4bba6b}from'ckeditor5/src/utils.js';import{AIChatView as _0x264b1d}from'./ui/aichatview.js';import{AITabs as _0x2bc030}from'../aitabs/aitabs.js';import{getTranslation as _0x2b970a}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x4729de}from'ckeditor5/src/icons.js';function _0x1557(_0x55ee47,_0x38305e){const _0x24c1e7=_0x24c1();return _0x1557=function(_0x15578c,_0x5d2675){_0x15578c=_0x15578c-0x138;let _0x5528a9=_0x24c1e7[_0x15578c];return _0x5528a9;},_0x1557(_0x55ee47,_0x38305e);}import{AIChatFeedInteractionHeaderView as _0x124dce}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x260953}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x57d422}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x24c1(){const _0x4a8970=['abort','AI_CHAT_HEADING','setLoadingMessage','insertSuggestion','startsWith','config','setFeedItemAIReplySuggestionPartActive','get','removeFeedInteraction','clearPendingContextUI','updateReplyItem','isDone','addFeedItemUserMessage','isOfficialPlugin','chatFeed','chatHeader','set','updateFeedItemAIReplyContent','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySources','feedItemRenderingStrategy','locale','clearLoadingMessage','scrollToSuggestion','disableModelSelector','stopAutoScroll','chatControls','isLoading','values','bind','39cXPSWQ','remove','updateFeedItemAIReplySuggestionPartState','_getInputPlaceholder','showDiff','enableControls','isDisabled','availableModels','filter','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','showResizeButton','ai-suggestion-reply','1471212pXtQwf','addFeedItemCustomElement','TrackChanges','prepareLoadingMessage','setInputPlaceholder','clear','hasFeedItem','chat','view','has','populateSourceResourceBalloon','destroy','</p>','updateResourceState','setModelList','removeItem','setIsUploadInProgress','184256lulzVd','updateCapabilities','5109690ZUwOkN','forEach','setWebSearch','queueEmptyPromise','ai.availableReplyActions','ai-reply','value','disableControls','then','updateFeedItemAIReplySuggestionContent','resetConversationTitle','conversation-start','scrollFeedToSuggestion','<p>','custom-element','addTab','isTrackChangesOn','AIChatUI','focusPromptInput','streaming','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','find','13916gIpHJY','label','enqueue','resetMessageInput','enableModelSelector','_view','setSelectedModel','updateSuggestionPartState','_interactionPromiseResolver','hasItem','addFeedItemError','delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','startAutoScroll','fire','AITabs','setReasoning','user-message','capabilities','getItemIds','setSuggestionPartActive','_isTrackChangesCommandValueBound','isPending','updateWebSources','ai.chat.welcomeMessage','updateFeedInteractionHeader','isModelAvailable','setConversationTitle','displayedPrompt','setContextItemLoading','removeContextItem','from','closeSourceResourceBalloon','markItemAsDone','context','removeFeedItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setFeedItemRenderingStrategy','contextItems','_animateConversationTitle','children','14NLHmdj','addContextItem','isReasoningEnabled','setConversationContext','454952HeoMkr','addFeedItemAIReply','last','AI_CHAT_WELCOME_MESSAGE','markFeedItemAsDone','addFeedInteractionHeader','interaction-header','renderingStrategy','commands','length','_titleAnimationInterval','isPremiumPlugin','isMaximized','areActionsDisabled','plugins','ai.models.showModelSelector','ai.chat.context.searchInputVisibleFrom','addFeedItemStaticMessage','updateSuggestionItem','trackChanges','5YcCFmM','setPromptInputValue','stopInteraction','setAddContextOptions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addItem','clearConversationContextUI','conversationCreated','298090EUbbxL','_promiseQueue','addFeedItemAISuggestion','finishInteraction','requires','interactionId','toggleSuggestionDisplayMode','startInteraction','setIsMaximized','toggleLoadingSkeleton','userMessage','pluginName','error-message','isBusy','options','attributes','setModel','2598876XDkHzi','createConversation','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isWebSearchEnabled'];_0x24c1=function(){return _0x4a8970;};return _0x24c1();}import{getEditorFromContext as _0x4efd13}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x31f2ae}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x39dd8e{static get[_0x2772de(0x195)](){return[_0x2bc030];}[_0x2772de(0x14d)];static get[_0x2772de(0x19c)](){const _0x15722e=_0x2772de;return _0x15722e(0x143);}static get[_0x2772de(0x1b5)](){return!0x0;}static get[_0x2772de(0x180)](){return!0x0;}[_0x2772de(0x1bc)]=_0x2772de(0x145);[_0x2772de(0x1ca)]=!0x0;[_0x2772de(0x192)];[_0x2772de(0x150)];[_0x2772de(0x17f)]=void 0x0;[_0x2772de(0x15d)]=!0x1;constructor(_0x130e92){const _0xfc0b2=_0x2772de;super(_0x130e92);const _0x4e75fb=this[_0xfc0b2(0x16a)][_0xfc0b2(0x183)][_0xfc0b2(0x1af)](_0xfc0b2(0x157));this[_0xfc0b2(0x1b8)](_0xfc0b2(0x19e),!0x1),this[_0xfc0b2(0x192)]=new _0x260953(),this[_0xfc0b2(0x14d)]=new _0x264b1d(this[_0xfc0b2(0x16a)][_0xfc0b2(0x1bd)],{'showResizeButton':_0x4e75fb[_0xfc0b2(0x1d0)],'contextResourcesSearchInputVisibleFrom':this[_0xfc0b2(0x16a)][_0xfc0b2(0x1ad)][_0xfc0b2(0x1af)](_0xfc0b2(0x185))}),this[_0xfc0b2(0x14d)][_0xfc0b2(0x153)](..._0x57d422)['to'](this),this[_0xfc0b2(0x14d)]['on'](_0xfc0b2(0x197),(_0x3839b5,{showDiff:_0x3133a5})=>{const _0x281c24=_0xfc0b2;this[_0x281c24(0x1ca)]=_0x3133a5;}),_0x4e75fb[_0xfc0b2(0x1da)][_0xfc0b2(0x141)]({'id':_0xfc0b2(0x1d9),'buttonLabel':_0x2b970a(this[_0xfc0b2(0x16a)][_0xfc0b2(0x1bd)],_0xfc0b2(0x1a9)),'buttonIcon':_0x4729de,'order':0x0,'content':this[_0xfc0b2(0x14d)]}),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)][_0xfc0b2(0x1c5)](_0xfc0b2(0x1c3))['to'](this,_0xfc0b2(0x19e),_0x1fafa8=>_0x1fafa8),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1b6)][_0xfc0b2(0x1c5)](_0xfc0b2(0x15e))['to'](this,_0xfc0b2(0x19e),_0x49bfad=>_0x49bfad),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)][_0xfc0b2(0x1d6)](this[_0xfc0b2(0x1c9)]()),this[_0xfc0b2(0x1c5)](_0xfc0b2(0x162))['to'](this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)],_0xfc0b2(0x162));}[_0x2772de(0x1dd)](){const _0x3ae3fc=_0x2772de;super[_0x3ae3fc(0x1dd)](),this[_0x3ae3fc(0x17f)]&&clearInterval(this[_0x3ae3fc(0x17f)]);}[_0x2772de(0x1a3)](_0xf3b8d3){const _0xd986aa=_0x2772de,_0x423cf9=this[_0xd986aa(0x16a)][_0xd986aa(0x1ad)][_0xd986aa(0x1af)](_0xd986aa(0x160))??_0x2b970a(this[_0xd986aa(0x16a)][_0xd986aa(0x1bd)],_0xd986aa(0x178));this[_0xd986aa(0x14d)][_0xd986aa(0x1b6)][_0xd986aa(0x1d7)](),this[_0xd986aa(0x14d)][_0xd986aa(0x1c2)][_0xd986aa(0x14c)](),this[_0xd986aa(0x14d)][_0xd986aa(0x1c2)][_0xd986aa(0x1e0)](_0xf3b8d3[_0xd986aa(0x1cd)],!this[_0xd986aa(0x16a)][_0xd986aa(0x1ad)][_0xd986aa(0x1af)](_0xd986aa(0x184))),this[_0xd986aa(0x186)]({'id':_0xd986aa(0x13d),'staticMessage':_0x423cf9}),this[_0xd986aa(0x156)](_0xd986aa(0x190));}[_0x2772de(0x186)]({id:_0x121522,staticMessage:_0x54219c}){const _0x5c55a6=_0x2772de;this[_0x5c55a6(0x14d)][_0x5c55a6(0x1b6)][_0x5c55a6(0x18e)](_0x5c55a6(0x1ea),{'id':_0x121522,'initialContent':_0x5c55a6(0x13f)+_0x54219c+_0x5c55a6(0x1de)});}[_0x2772de(0x1b4)](_0x1c6bea){const _0x1e1d37=_0x2772de,_0x587881=_0x1c6bea[_0x1e1d37(0x1a0)]?.[_0x1e1d37(0x164)]||_0x1c6bea[_0x1e1d37(0x19b)];this[_0x1e1d37(0x14d)][_0x1e1d37(0x1b6)][_0x1e1d37(0x18e)](_0x1e1d37(0x159),{'contextItems':Array[_0x1e1d37(0x167)](_0x1c6bea[_0x1e1d37(0x16e)][_0x1e1d37(0x1c4)]()),'initialContent':_0x1e1d37(0x13f)+_0x587881+_0x1e1d37(0x1de),'id':_0x1c6bea['id']});}[_0x2772de(0x152)]({errorMessage:_0x229d5a,id:_0x3faaec}){const _0x322424=_0x2772de;this[_0x322424(0x14d)][_0x322424(0x1b6)][_0x322424(0x18e)](_0x322424(0x19d),{'initialContent':_0x322424(0x13f)+_0x229d5a+_0x322424(0x1de),'id':_0x3faaec});}[_0x2772de(0x176)](_0x245e6f){const _0xb0e060=_0x2772de;return this[_0xb0e060(0x192)][_0xb0e060(0x14a)](async()=>{const _0x1aa3b5=_0xb0e060;this[_0x1aa3b5(0x14d)][_0x1aa3b5(0x1b6)][_0x1aa3b5(0x18e)](_0x1aa3b5(0x1ea),{'id':_0x245e6f[_0x1aa3b5(0x196)]+':'+_0x245e6f['id']}),this[_0x1aa3b5(0x1be)]();});}async[_0x2772de(0x193)](_0x183781){const _0x2db476=_0x2772de,_0x37d53d=_0x4efd13(this[_0x2db476(0x16a)]);let _0x2114d4=_0x37d53d[_0x2db476(0x1ad)][_0x2db476(0x1af)](_0x2db476(0x1e9))||[..._0x31f2ae];if(_0x37d53d[_0x2db476(0x183)][_0x2db476(0x1db)](_0x2db476(0x1d4))){if(!this[_0x2db476(0x15d)]){this[_0x2db476(0x15d)]=!0x0;const _0x1d5923=_0x37d53d[_0x2db476(0x17d)][_0x2db476(0x1af)](_0x2db476(0x188));this[_0x2db476(0x14d)][_0x2db476(0x1b6)][_0x2db476(0x1c5)](_0x2db476(0x142))['to'](_0x1d5923,_0x2db476(0x138));}}else _0x2114d4=_0x2114d4[_0x2db476(0x1ce)](_0x24bedb=>_0x2db476(0x1ab)!=_0x24bedb);return this[_0x2db476(0x192)][_0x2db476(0x14a)](async()=>{const _0x3664a0=_0x2db476;this[_0x3664a0(0x14d)][_0x3664a0(0x1b6)][_0x3664a0(0x18e)](_0x3664a0(0x1d1),{'id':_0x183781[_0x3664a0(0x196)]+':'+_0x183781['id'],'areActionsDisabled':_0x183781[_0x3664a0(0x182)],'showDiff':this[_0x3664a0(0x1ca)],'availableActions':_0x2114d4}),this[_0x3664a0(0x1be)]();});}[_0x2772de(0x17a)](_0x49b17d,_0x35a04e){const _0x2d6920=_0x2772de,_0x1d7152=this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x170)][_0x2d6920(0x177)];if(_0x1d7152 instanceof _0x124dce)return this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x170)][_0x2d6920(0x1c7)](_0x1d7152),void this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x18e)](_0x2d6920(0x17b),{'id':_0x49b17d['id'],'capabilities':{'isWebSearchEnabled':_0x1d7152[_0x2d6920(0x15a)][_0x2d6920(0x1a7)]||_0x35a04e[_0x2d6920(0x1a7)],'isReasoningEnabled':_0x1d7152[_0x2d6920(0x15a)][_0x2d6920(0x173)]||_0x35a04e[_0x2d6920(0x173)]}});this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x18e)](_0x2d6920(0x17b),{'id':_0x49b17d['id'],'capabilities':_0x35a04e});}async[_0x2772de(0x1d3)](_0x17bc9f,_0x4602ca){const _0x38937d=_0x2772de;let _0x81695;return await this[_0x38937d(0x192)][_0x38937d(0x14a)](async()=>{const _0xa829b3=_0x38937d;_0x81695=this[_0xa829b3(0x14d)][_0xa829b3(0x1b6)][_0xa829b3(0x18e)](_0xa829b3(0x140),{'content':_0x17bc9f,'id':_0x4602ca});}),_0x81695;}[_0x2772de(0x16b)](_0x2ce1d4){const _0x4e58c1=_0x2772de;this[_0x4e58c1(0x14d)][_0x4e58c1(0x1b6)][_0x4e58c1(0x1e1)](_0x2ce1d4);}[_0x2772de(0x1d8)](_0x4ca5ac){const _0x15aed9=_0x2772de;return this[_0x15aed9(0x14d)][_0x15aed9(0x1b6)][_0x15aed9(0x151)](_0x4ca5ac);}[_0x2772de(0x161)](_0x5b800c){const _0x3e3ff4=_0x2772de,_0x253169=this[_0x3e3ff4(0x14d)][_0x3e3ff4(0x1b6)][_0x3e3ff4(0x170)][_0x3e3ff4(0x147)](_0x3b0ab3=>_0x3b0ab3[_0x3e3ff4(0x19f)]['id']==_0x5b800c['id']&&_0x3b0ab3 instanceof _0x124dce);_0x253169&&_0x253169[_0x3e3ff4(0x1b8)](_0x3e3ff4(0x1a5),_0x5b800c[_0x3e3ff4(0x1a5)]);}async[_0x2772de(0x1b9)](_0xf5f0a7){const _0x6e5b03=_0x2772de,_0xe5736=_0xf5f0a7[_0x6e5b03(0x17c)]||this[_0x6e5b03(0x1bc)];return this[_0x6e5b03(0x192)][_0x6e5b03(0x14a)](async _0x1ea1fb=>{const _0x1ce7d6=_0x6e5b03;await this[_0x1ce7d6(0x14d)][_0x1ce7d6(0x1b6)][_0x1ce7d6(0x1b2)]({..._0xf5f0a7,'abortSignal':_0x1ea1fb,'renderingStrategy':_0xe5736}),_0xf5f0a7[_0x1ce7d6(0x1b3)]&&this[_0x1ce7d6(0x179)](_0xf5f0a7['id']);});}[_0x2772de(0x1bb)](_0x4e2d9c,_0x51f815){const _0x1585ba=_0x2772de;this[_0x1585ba(0x14d)][_0x1585ba(0x1b6)][_0x1585ba(0x15f)](_0x4e2d9c,_0x51f815);}async[_0x2772de(0x13b)](_0x31b67b){const _0x183d68=_0x2772de,_0x5201a9=_0x31b67b[_0x183d68(0x17c)]||this[_0x183d68(0x1bc)];return this[_0x183d68(0x192)][_0x183d68(0x14a)](async _0x2163b9=>{const _0x4473f3=_0x183d68;await this[_0x4473f3(0x14d)][_0x4473f3(0x1b6)][_0x4473f3(0x187)]({..._0x31b67b,'abortSignal':_0x2163b9,'renderingStrategy':_0x5201a9}),_0x31b67b[_0x4473f3(0x1b3)]&&this[_0x4473f3(0x179)](_0x31b67b['id']);});}[_0x2772de(0x1c8)](_0x26984e){const _0x119fd8=_0x2772de;this[_0x119fd8(0x14d)][_0x119fd8(0x1b6)][_0x119fd8(0x14f)](_0x26984e);}[_0x2772de(0x1ae)](_0x17b8d6){const _0x59bcb4=_0x2772de;this[_0x59bcb4(0x14d)][_0x59bcb4(0x1b6)][_0x59bcb4(0x15c)](_0x17b8d6);}[_0x2772de(0x179)](_0x105aa6){const _0x32be2a=_0x2772de;this[_0x32be2a(0x14d)][_0x32be2a(0x1b6)][_0x32be2a(0x169)](_0x105aa6);}[_0x2772de(0x1b0)](_0x3143d5){const _0x55927c=_0x2772de;this[_0x55927c(0x14d)][_0x55927c(0x1b6)][_0x55927c(0x15b)]()[_0x55927c(0x1ce)](_0x3f106c=>_0x3f106c[_0x55927c(0x1ac)](_0x3143d5))[_0x55927c(0x1e6)](_0x320b1a=>this[_0x55927c(0x14d)][_0x55927c(0x1b6)][_0x55927c(0x1e1)](_0x320b1a));}[_0x2772de(0x198)](){const _0x2e5f70=_0x2772de,_0x26c187=this[_0x2e5f70(0x1d5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x2e5f70(0x1aa)](_0x26c187),this[_0x2e5f70(0x14d)][_0x2e5f70(0x1c2)][_0x2e5f70(0x1c0)](!this[_0x2e5f70(0x16a)][_0x2e5f70(0x1ad)][_0x2e5f70(0x1af)](_0x2e5f70(0x184))),this[_0x2e5f70(0x19e)]=!0x0,this[_0x2e5f70(0x14d)][_0x2e5f70(0x1b6)][_0x2e5f70(0x155)]();}[_0x2772de(0x18b)](_0x1f3113){const _0x4cdee6=_0x2772de;this[_0x4cdee6(0x192)][_0x4cdee6(0x1a8)](),this[_0x4cdee6(0x14d)][_0x4cdee6(0x1b6)][_0x4cdee6(0x15b)]()[_0x4cdee6(0x1ce)](_0x24ca00=>_0x24ca00[_0x4cdee6(0x1ac)](_0x1f3113['id']))[_0x4cdee6(0x1e6)](_0x13f782=>this[_0x4cdee6(0x179)](_0x13f782)),this[_0x4cdee6(0x19e)]=!0x1,this[_0x4cdee6(0x14d)][_0x4cdee6(0x1b6)][_0x4cdee6(0x1c1)]();}async[_0x2772de(0x194)](){const _0x26d474=_0x2772de;return this[_0x26d474(0x192)][_0x26d474(0x1e8)][_0x26d474(0x13a)](()=>{const _0xecb4a3=_0x26d474;this[_0xecb4a3(0x19e)]=!0x1,this[_0xecb4a3(0x14d)][_0xecb4a3(0x1b6)][_0xecb4a3(0x1c1)]();});}[_0x2772de(0x172)](_0x489b99,_0x5b440e){const _0x2107be=_0x2772de;this[_0x2107be(0x14d)][_0x2107be(0x1c2)][_0x2107be(0x172)](_0x489b99,_0x5b440e);}[_0x2772de(0x166)](_0x45c89b){const _0x476808=_0x2772de;this[_0x476808(0x14d)][_0x476808(0x1c2)][_0x476808(0x166)](_0x45c89b);}[_0x2772de(0x165)](_0x29268c,_0x3e4861){const _0x4ee976=_0x2772de;this[_0x4ee976(0x14d)][_0x4ee976(0x1c2)][_0x4ee976(0x165)](_0x29268c,_0x3e4861);}[_0x2772de(0x1e2)](_0x357805){const _0x3081a8=_0x2772de;this[_0x3081a8(0x14d)][_0x3081a8(0x1c2)][_0x3081a8(0x1e2)](_0x357805);}[_0x2772de(0x174)](_0x163a9b){const _0x4b5fea=_0x2772de;this[_0x4b5fea(0x14d)][_0x4b5fea(0x1c2)][_0x4b5fea(0x174)](_0x163a9b);}[_0x2772de(0x1b1)](){const _0x176d82=_0x2772de;this[_0x176d82(0x14d)][_0x176d82(0x1c2)][_0x176d82(0x1b1)]();}[_0x2772de(0x18f)](){const _0x3467d6=_0x2772de;this[_0x3467d6(0x14d)][_0x3467d6(0x1c2)][_0x3467d6(0x18f)]();}[_0x2772de(0x1df)](_0x41ab77,_0x5cfefe,_0x3d74f3){const _0x5209f1=_0x2772de;this[_0x5209f1(0x14d)][_0x5209f1(0x1c2)][_0x5209f1(0x1df)](_0x41ab77,_0x5cfefe,_0x3d74f3);}[_0x2772de(0x14b)](){const _0x3017c0=_0x2772de;this[_0x3017c0(0x14d)][_0x3017c0(0x1c2)][_0x3017c0(0x14b)](),this[_0x3017c0(0x14d)][_0x3017c0(0x1c2)][_0x3017c0(0x1d6)](this[_0x3017c0(0x1c9)]());}[_0x2772de(0x18c)](_0x4317a9){const _0x54b205=_0x2772de;this[_0x54b205(0x14d)][_0x54b205(0x1c2)][_0x54b205(0x18c)](_0x4317a9);}[_0x2772de(0x1e4)](_0x101a34){const _0x53e812=_0x2772de;this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x1e7)](_0x101a34[_0x53e812(0x1a7)]),this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x158)](_0x101a34[_0x53e812(0x173)]),this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x1d6)](this[_0x53e812(0x1c9)](_0x101a34));}[_0x2772de(0x14e)](_0xb0d7cc,_0x1f5341){const _0x38cb33=_0x2772de;this[_0x38cb33(0x14d)][_0x38cb33(0x1c2)][_0x38cb33(0x1a1)](_0xb0d7cc),_0x1f5341&&this[_0x38cb33(0x14d)][_0x38cb33(0x1c2)][_0x38cb33(0x1c0)](!0x1);}[_0x2772de(0x16d)](_0x42efae){const _0x103641=_0x2772de;this[_0x103641(0x1bc)]=_0x42efae;}[_0x2772de(0x19a)](_0xc5ecc8){const _0x2024a6=_0x2772de;this[_0x2024a6(0x14d)][_0x2024a6(0x1b6)][_0x2024a6(0x19a)](_0xc5ecc8);}[_0x2772de(0x13c)](){const _0xdfc235=_0x2772de;this[_0xdfc235(0x163)](_0x2b970a(this[_0xdfc235(0x16a)][_0xdfc235(0x1bd)],_0xdfc235(0x1a9)));}[_0x2772de(0x163)](_0x83270f,_0x2a2e50=!0x1){const _0x5a737c=_0x2772de;if(_0x2a2e50&&!_0x4bba6b()&&_0x83270f[_0x5a737c(0x17e)])return this[_0x5a737c(0x14d)][_0x5a737c(0x1b7)][_0x5a737c(0x149)]='',void this[_0x5a737c(0x16f)](_0x83270f);this[_0x5a737c(0x14d)][_0x5a737c(0x1b7)][_0x5a737c(0x149)]=_0x83270f;}[_0x2772de(0x1aa)](_0xf4c8f9){const _0x9a5432=_0x2772de;this[_0x9a5432(0x14d)][_0x9a5432(0x1b6)][_0x9a5432(0x1aa)](_0xf4c8f9);}[_0x2772de(0x1be)](){const _0x103099=_0x2772de;this[_0x103099(0x14d)][_0x103099(0x1b6)][_0x103099(0x1aa)]('');}[_0x2772de(0x16f)](_0xbcf25c){const _0x3e426e=_0x2772de;let _0x5e5384=0x0;clearInterval(this[_0x3e426e(0x17f)]),this[_0x3e426e(0x17f)]=setInterval(()=>{const _0x515118=_0x3e426e;this[_0x515118(0x14d)][_0x515118(0x1b7)][_0x515118(0x149)]=this[_0x515118(0x14d)][_0x515118(0x1b7)][_0x515118(0x149)]+_0xbcf25c[_0x5e5384],_0x5e5384++,_0x5e5384===_0xbcf25c[_0x515118(0x17e)]&&clearInterval(this[_0x515118(0x17f)]);},0x1e);}[_0x2772de(0x199)](_0x469577){const _0x43f93e=_0x2772de;this[_0x43f93e(0x14d)][_0x43f93e(0x1b7)][_0x43f93e(0x181)]=_0x469577;}[_0x2772de(0x1d5)](_0x335d19){const _0x12c571=_0x2772de;return _0x335d19[_0x12c571(0x1a7)]&&_0x335d19[_0x12c571(0x173)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x146)):_0x335d19[_0x12c571(0x1a7)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x16c)):_0x335d19[_0x12c571(0x173)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x154)):_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x1cf));}[_0x2772de(0x1c9)](_0x4008ef){const _0x1fc52a=_0x2772de;return _0x4008ef?_0x4008ef[_0x1fc52a(0x1a7)]&&_0x4008ef[_0x1fc52a(0x173)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1ba)):_0x4008ef[_0x1fc52a(0x1a7)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x18d)):_0x4008ef[_0x1fc52a(0x173)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a6)):_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a4)):_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a4));}[_0x2772de(0x1dc)](_0x1397f8,_0x596815,_0x43aeb3,_0x32ba0c){const _0x231680=_0x2772de;this[_0x231680(0x14d)][_0x231680(0x1dc)](_0x1397f8,_0x596815,_0x43aeb3,_0x32ba0c);}[_0x2772de(0x168)](_0x230392){const _0xc3e4ad=_0x2772de;this[_0xc3e4ad(0x14d)][_0xc3e4ad(0x168)](_0x230392);}[_0x2772de(0x18a)](_0x4cd6ee){const _0x139ee5=_0x2772de;this[_0x139ee5(0x14d)][_0x139ee5(0x1c2)][_0x139ee5(0x18a)](_0x4cd6ee);}[_0x2772de(0x144)](_0x31cf5e=!0x1){const _0x10470c=_0x2772de;this[_0x10470c(0x14d)][_0x10470c(0x1c2)][_0x10470c(0x144)](_0x31cf5e);}[_0x2772de(0x13e)](_0x17cda0,_0x3e06ba){const _0x3ebf9f=_0x2772de;this[_0x3ebf9f(0x14d)][_0x3ebf9f(0x1b6)][_0x3ebf9f(0x1bf)](_0x17cda0,_0x3e06ba);}[_0x2772de(0x155)](){const _0x35d955=_0x2772de;this[_0x35d955(0x14d)][_0x35d955(0x1b6)][_0x35d955(0x155)]();}[_0x2772de(0x139)](){const _0x5d0ff4=_0x2772de;this[_0x5d0ff4(0x14d)][_0x5d0ff4(0x1c2)][_0x5d0ff4(0x1cc)]=!0x0;}[_0x2772de(0x1cb)](){const _0x2c774f=_0x2772de;this[_0x2c774f(0x14d)][_0x2c774f(0x1c2)][_0x2c774f(0x1cc)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x202b84=_0x5a09;function _0x1346(){const _0x586ad9=['3165MVZXbN','files-','addUrlToContext','url','getData','SELECTION','_createContextItemFromContent','start','getResources','files','file-','DOCUMENT','_findSourceIdsByResourceId','_addContextItem','uploadFile','_isResourceInContext','ai-chat-source-resources-load-failed','attributes','isInContext','text/markdown','customItems','name','resourceId','ai-chat-source-not-found','_pendingContextItems','11843163HYnkMP','isCurrentDocumentInConversation','_connector','contextItemRemoved','addSelectionToContext','size','_updateResourceInContextState','7624qBtNhn','7041006LrNpBb','_toggleAddCurrentDocumentOptionVisibility','File','selection','addResourceToContext','ai-chat-file-upload-failed','stack','version','uploadDocument','message','MARKDOWN','_conversationContextItems','loadSourceResources','data','code','_finishContextItemLoading','TEXT','getDocument','contextItemAdded','updateCurrentDocument','_finishUploadOperation','addToConversationContext','label','addToolItemToContext','removeSelectionFromContext','toolName','addCurrentDocumentToContext','get','_setAddContextOptionsDefaultState','17850960mjwggT','FILE','error','HTML','uploadProgressChanged','_mapContextItemToRequestData','removeFromContext','_ongoingUploads','ai-chat-url-upload-failed','filter','ai-chat-context-invalid-data','text/html','getSentContextItems','ai-chat-resource-no-data','object\x20with\x20content\x20and\x20type\x20properties','uiId','init','enabled','all','url-','mcpServerName','4143543rzBaei','set','delete','populateFromMessage','abortController','type','URL','hidden','ai-chat-document-upload-failed','resources','_removeContextItem','contextItemLoadingEnded','current-document','text/plain','length','sessionId','contextSent','urls','isHidden','clearPendingContextItems','_config','content','267434tIUwCE','_addContextOptionsState','addContextOptionsChanged','resourceStateChanged','getPendingContextItems','substring','sourceResourcesLoaded','fetchDocument','mapContextItemsToRequestData','uploadUrl','push','end','has','TOOL','_startUploadOperation','find','ai-chat-resource-load-failed','Current\x20document','string','forEach','_ongoingUploadOperations','addFilesToContext','isSelectionInContext','getId','fire','_addToConversationContextItem','_convertTextResourceToFile','574518GOJEAF','isReadOnly','object','8sBaFbN','_getCustomSourcesInitialState','ai-chat-context-unsupported-type','abort','values','ai-request-aborted','map','sources','isCurrentDocumentInContext','56UWTOMl','from','document','startsWith','_ownerId'];_0x1346=function(){return _0x586ad9;};return _0x1346();}(function(_0x4eaca0,_0x5aa5e9){const _0x41b6de=_0x5a09,_0x1fbcd2=_0x4eaca0();while(!![]){try{const _0x56e3b4=parseInt(_0x41b6de(0xf0))/0x1*(parseInt(_0x41b6de(0xd2))/0x2)+-parseInt(_0x41b6de(0xbc))/0x3+-parseInt(_0x41b6de(0x11e))/0x4*(parseInt(_0x41b6de(0xfe))/0x5)+parseInt(_0x41b6de(0x11f))/0x6+-parseInt(_0x41b6de(0xed))/0x7*(-parseInt(_0x41b6de(0xf9))/0x8)+-parseInt(_0x41b6de(0x117))/0x9+parseInt(_0x41b6de(0x13c))/0xa;if(_0x56e3b4===_0x5aa5e9)break;else _0x1fbcd2['push'](_0x1fbcd2['shift']());}catch(_0x5abf4e){_0x1fbcd2['push'](_0x1fbcd2['shift']());}}}(_0x1346,0xaab81));import{CKEditorError as _0x462c3a,ObservableMixin as _0x4c39c7,uid as _0x323f94}from'ckeditor5/src/utils.js';function _0x5a09(_0xfc24c3,_0x457744){const _0x1346ba=_0x1346();return _0x5a09=function(_0x5a09ab,_0x2080d6){_0x5a09ab=_0x5a09ab-0xac;let _0x27f71c=_0x1346ba[_0x5a09ab];return _0x27f71c;},_0x5a09(_0xfc24c3,_0x457744);}import{AIContextItemType as _0x4dd290,AIContextTextResourceType as _0x56b05a}from'../../aicore/model/aicontext.js';import{escape as _0x4133d8}from'es-toolkit/compat';import{errorsMap as _0x5ca883}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x202b84(0x131),_0x202b84(0x11a),_0x202b84(0xc7),_0x202b84(0xcc),_0x202b84(0x13e),_0x202b84(0xd4),_0x202b84(0xd8),_0x202b84(0xd5),_0x202b84(0x140)];export class AIChatContext extends _0x4c39c7(){[_0x202b84(0x119)];[_0x202b84(0xd0)];[_0x202b84(0xfd)];constructor({connector:_0x2cc21c,config:_0x471c99,ownerId:_0x2c4ad3}){const _0x388881=_0x202b84;super(),this[_0x388881(0x119)]=_0x2cc21c,this[_0x388881(0xd0)]=_0x471c99,this[_0x388881(0xfd)]=_0x2c4ad3;}[_0x202b84(0xb7)](){const _0x292e91=_0x202b84;this[_0x292e91(0x116)]=new Map(),this[_0x292e91(0x12a)]=new Map(),this[_0x292e91(0xae)]=new Map(),this[_0x292e91(0xe6)]=new Map(),this[_0x292e91(0x13b)]();}[_0x202b84(0xd6)](){const _0x8753c=_0x202b84;return this[_0x8753c(0x116)];}async[_0x202b84(0xbf)](_0x1ffd01){const _0x308519=_0x202b84,_0x12ac25=await this[_0x308519(0x104)](_0x1ffd01);return this[_0x308519(0xeb)](_0x12ac25),_0x308519(0xc8)===_0x12ac25[_0x308519(0xb6)]&&this[_0x308519(0x120)](),_0x12ac25;}async[_0x202b84(0x104)](_0x484b7e){const _0x4895f2=_0x202b84;if(_0x484b7e[_0x4895f2(0xc1)]===_0x4dd290[_0x4895f2(0x109)]){const _0xf7aa9=await this[_0x4895f2(0x119)][_0x4895f2(0xd9)](this[_0x4895f2(0xfd)],_0x484b7e['id'])[_0x4895f2(0x130)]();return{'id':_0x4895f2(0xc8),'uiId':_0x4895f2(0xc8),'label':_0x4895f2(0xe3),'type':_0x484b7e[_0x4895f2(0xc1)],'content':_0xf7aa9[_0x4895f2(0xd1)],'hidden':this[_0x4895f2(0x12a)][_0x4895f2(0xde)](_0x4895f2(0xc8)),'version':_0xf7aa9[_0x4895f2(0x10f)]?.[_0x4895f2(0x126)],'sessionId':_0xf7aa9[_0x4895f2(0x10f)]?.[_0x4895f2(0xcb)]};}if(_0x484b7e[_0x4895f2(0xc1)]===_0x4dd290[_0x4895f2(0xdf)])return{'id':_0x484b7e['id'],'uiId':_0x484b7e['id'],'label':_0x484b7e[_0x4895f2(0x12c)]?.[_0x4895f2(0x135)]||_0x484b7e['id'],'type':_0x4dd290[_0x4895f2(0xdf)],'mcpServerName':_0x484b7e[_0x4895f2(0xbb)],'toolName':_0x484b7e[_0x4895f2(0x138)],'data':_0x484b7e[_0x4895f2(0x12c)]||{}};return{'id':_0x484b7e['id'],'uiId':_0x484b7e['id'],'label':_0x484b7e[_0x4895f2(0x10f)]?.[_0x4895f2(0x135)]||_0x484b7e[_0x4895f2(0x113)]||_0x484b7e[_0x4895f2(0x101)]||_0x484b7e['id'],'type':_0x484b7e[_0x4895f2(0xc1)],..._0x484b7e?.[_0x4895f2(0x10f)]?.[_0x4895f2(0x114)]?{'resourceId':_0x484b7e[_0x4895f2(0x10f)]?.[_0x4895f2(0x114)]}:{}};}[_0x202b84(0xb3)](){const _0x35be93=_0x202b84;return new Map(this[_0x35be93(0x12a)]);}[_0x202b84(0xad)](_0x34be4a){const _0x5889a3=_0x202b84,_0x3c271c=this[_0x5889a3(0x116)][_0x5889a3(0x13a)](_0x34be4a);_0x3c271c?.[_0x5889a3(0xee)]||this[_0x5889a3(0xc6)](_0x34be4a);}[_0x202b84(0xcf)](){const _0x2fbc8a=_0x202b84;if(0x0===this[_0x2fbc8a(0x116)][_0x2fbc8a(0x11c)])return;for(const _0x3424a9 of this[_0x2fbc8a(0x116)][_0x2fbc8a(0xf4)]())this[_0x2fbc8a(0xc6)](_0x3424a9[_0x2fbc8a(0xb6)]);const _0x391c13=this[_0x2fbc8a(0x12a)][_0x2fbc8a(0x13a)](_0x2fbc8a(0xc8))||this[_0x2fbc8a(0x116)][_0x2fbc8a(0x13a)](_0x2fbc8a(0xc8));_0x391c13&&this[_0x2fbc8a(0x10b)]({..._0x391c13,'isReadOnly':!0x0,'hidden':!0x0});}[_0x202b84(0x134)](_0x4af73d){const _0x1a1e92=_0x202b84;for(const _0x3942c1 of _0x4af73d[_0x1a1e92(0xf4)]())this[_0x1a1e92(0xeb)](_0x3942c1);this[_0x1a1e92(0xcf)](),this[_0x1a1e92(0xea)](_0x1a1e92(0xcc),{'contextItems':Array[_0x1a1e92(0xfa)](this[_0x1a1e92(0xb3)]()[_0x1a1e92(0xf4)]())});}[_0x202b84(0xf8)](){const _0x55fcd5=_0x202b84;return this[_0x55fcd5(0x116)][_0x55fcd5(0xde)](_0x55fcd5(0xc8));}[_0x202b84(0xe8)](){const _0x210109=_0x202b84;return this[_0x210109(0x116)][_0x210109(0xde)](_0x210109(0x122));}[_0x202b84(0x118)](){const _0x108b46=_0x202b84;return this[_0x108b46(0x12a)][_0x108b46(0xde)](_0x108b46(0xc8));}static[_0x202b84(0xda)](_0x5a716e){const _0x861645=_0x202b84;return Array[_0x861645(0xfa)](_0x5a716e[_0x861645(0xf4)]())[_0x861645(0xf6)](_0x43d354=>this[_0x861645(0xac)](_0x43d354))[_0x861645(0xb0)](_0x181b1d=>null!==_0x181b1d);}async[_0x202b84(0xe7)](_0x5c9faa,_0x3f0936,_0x19160e=_0x4dd290[_0x202b84(0x13d)]){const _0x46b572=_0x202b84,_0x55239a=_0x46b572(0xff)+_0x323f94();this[_0x46b572(0xe0)](_0x55239a);try{await Promise[_0x46b572(0xb9)](_0x5c9faa[_0x46b572(0xf6)](async _0x276b64=>{const _0x525904=_0x46b572,_0x3dcbaf=_0x525904(0x108)+_0x323f94(),_0x27e740=_0x4133d8(_0x276b64[_0x525904(0x113)]);try{this[_0x525904(0x10b)]({'type':_0x19160e,'label':_0x3f0936?.[_0x525904(0x135)]||_0x27e740,'uiId':_0x3dcbaf,'resourceId':_0x3f0936?.[_0x525904(0x114)]},!0x0);const _0x3aca9c=this[_0x525904(0x119)][_0x525904(0x10c)](this[_0x525904(0xfd)],_0x276b64,_0x3f0936);this[_0x525904(0xae)][_0x525904(0xbd)](_0x3dcbaf,_0x3aca9c[_0x525904(0xc0)]);const {id:_0x19b609}=await _0x3aca9c[_0x525904(0xe9)]();this[_0x525904(0xae)][_0x525904(0xbe)](_0x3dcbaf),this[_0x525904(0x12e)]({'type':_0x19160e,'id':_0x19b609,'label':_0x3f0936?.[_0x525904(0x135)]||_0x27e740,'uiId':_0x3dcbaf,'resourceId':_0x3f0936?.[_0x525904(0x114)]},!0x1);}catch(_0x435275){this[_0x525904(0xae)][_0x525904(0xbe)](_0x3dcbaf);if(!(_0x435275 instanceof _0x462c3a&&_0x435275[_0x525904(0x128)][_0x525904(0xfc)](_0x525904(0xf5)))){const _0x3ab400=_0x5ca883[_0x525904(0x13a)](_0x435275[_0x525904(0x12d)])||_0x525904(0x124),_0x5c95cc=new _0x462c3a(_0x3ab400,null,{'fileName':_0x27e740,..._0x435275});_0x5c95cc[_0x525904(0x125)]=_0x435275[_0x525904(0x125)],this[_0x525904(0xea)](_0x525904(0x13e),{'error':_0x5c95cc});}this[_0x525904(0xc6)](_0x3dcbaf);}}));}finally{this[_0x46b572(0x133)](_0x55239a);}}[_0x202b84(0x139)](_0x1f4e21){const _0x1be0f0=_0x202b84;if(this[_0x1be0f0(0xf8)]()||!this[_0x1be0f0(0xd3)][_0x1be0f0(0xfb)][_0x1be0f0(0xb8)])return;const _0x5584f0={'type':_0x4dd290[_0x1be0f0(0x109)],'uiId':_0x1be0f0(0xc8),'label':_0x1f4e21,'isReadOnly':this[_0x1be0f0(0x12a)][_0x1be0f0(0xde)](_0x1be0f0(0xc8)),'hidden':this[_0x1be0f0(0x12a)][_0x1be0f0(0xde)](_0x1be0f0(0xc8))};this[_0x1be0f0(0x10b)](_0x5584f0);}async[_0x202b84(0x132)](_0x1f696d,_0x10179a,_0x39222e,_0xfc4b99){const _0x33fbd5=_0x202b84,_0xa4af92=this[_0x33fbd5(0x116)][_0x33fbd5(0x13a)](_0x33fbd5(0xc8));if(_0xa4af92&&_0x1f696d){_0xa4af92[_0x33fbd5(0x122)]=_0xfc4b99?_0xfc4b99[_0x33fbd5(0xf6)](_0x24ec5e=>({'start':_0x24ec5e[_0x33fbd5(0x105)],'end':_0x24ec5e[_0x33fbd5(0xdd)]})):[];try{if(_0xa4af92[_0x33fbd5(0x126)]===_0x10179a)return;const {id:_0x12e50a}=await this[_0x33fbd5(0x119)][_0x33fbd5(0x127)](this[_0x33fbd5(0xfd)],_0x1f696d,{'version':_0x10179a,'sessionId':_0x39222e})[_0x33fbd5(0xe9)]();_0xa4af92['id']=_0x12e50a,_0xa4af92[_0x33fbd5(0xd1)]=_0x1f696d,_0xa4af92[_0x33fbd5(0x126)]=_0x10179a,_0xa4af92[_0x33fbd5(0xcb)]=_0x39222e;}catch(_0x3ca713){const _0x42d4f3=new _0x462c3a(_0x33fbd5(0xc4),null);_0x42d4f3[_0x33fbd5(0x125)]=_0x3ca713[_0x33fbd5(0x125)],this[_0x33fbd5(0xea)](_0x33fbd5(0x13e),{'error':_0x42d4f3});}}}[_0x202b84(0x11b)](_0x558dc3){const _0x42238d=_0x202b84;this[_0x42238d(0x10b)]({'type':_0x4dd290[_0x42238d(0x103)],'label':_0x558dc3,'uiId':_0x42238d(0x122),'content':_0x558dc3});}[_0x202b84(0x137)](){const _0x11f082=_0x202b84;this[_0x11f082(0xc6)](_0x11f082(0x122));}async[_0x202b84(0x100)](_0x4cf523,_0x254f35){const _0x18f44a=_0x202b84,_0x2221da=_0x18f44a(0xba)+_0x323f94();this[_0x18f44a(0xe0)](_0x2221da);const _0x183af4=_0x18f44a(0xba)+_0x323f94();try{this[_0x18f44a(0x10b)]({'type':_0x4dd290[_0x18f44a(0xc2)],'label':_0x254f35?.[_0x18f44a(0x135)]||_0x4cf523,'uiId':_0x183af4,'resourceId':_0x254f35?.[_0x18f44a(0x114)]},!0x0);const _0x589b13=this[_0x18f44a(0x119)][_0x18f44a(0xdb)](this[_0x18f44a(0xfd)],_0x4cf523,_0x254f35);this[_0x18f44a(0xae)][_0x18f44a(0xbd)](_0x183af4,_0x589b13[_0x18f44a(0xc0)]);const {id:_0x13f6fa}=await _0x589b13[_0x18f44a(0xe9)]();this[_0x18f44a(0xae)][_0x18f44a(0xbe)](_0x183af4),this[_0x18f44a(0x12e)]({'type':_0x4dd290[_0x18f44a(0xc2)],'id':_0x13f6fa,'label':_0x254f35?.[_0x18f44a(0x135)]||_0x4cf523,'uiId':_0x183af4,'resourceId':_0x254f35?.[_0x18f44a(0x114)]},!0x1);}catch(_0x7ef742){this[_0x18f44a(0xae)][_0x18f44a(0xbe)](_0x183af4),(_0x7ef742[_0x18f44a(0x128)][_0x18f44a(0xfc)](_0x18f44a(0xf5))||this[_0x18f44a(0xea)](_0x18f44a(0x13e),{'error':new _0x462c3a(_0x18f44a(0xaf),this,{'url':_0x4cf523,'originalError':_0x7ef742}),'url':_0x4cf523}),this[_0x18f44a(0xc6)](_0x183af4));}finally{this[_0x18f44a(0x133)](_0x2221da);}}[_0x202b84(0x136)](_0x441437){const _0x16ad2b=_0x202b84;_0x441437['id']=_0x441437['id']??_0x323f94()[_0x16ad2b(0xd7)](0x0,0x15),this[_0x16ad2b(0x116)][_0x16ad2b(0xbd)](_0x441437[_0x16ad2b(0xb6)],_0x441437),this[_0x16ad2b(0xea)](_0x16ad2b(0x131),{'contextItem':_0x441437,'isLoading':!0x1});}async[_0x202b84(0x12b)](_0x5082f5,_0xcf778d,_0x223310){const _0x3117f7=_0x202b84,_0x1f0c09=this[_0x3117f7(0xd3)][_0x3117f7(0xf7)][_0x3117f7(0xe1)](_0x38a509=>_0x38a509['id']===_0x5082f5);if(!_0x1f0c09)return this[_0x3117f7(0xea)](_0x3117f7(0x13e),{'error':new _0x462c3a(_0x3117f7(0x115),this,{'sourceId':_0x5082f5}),'sourceId':_0x5082f5}),[];try{const _0x23afda=(await _0x1f0c09[_0x3117f7(0x106)](_0xcf778d))[_0x3117f7(0xf6)](_0x28ec94=>{const _0x1b1139=_0x3117f7,_0x417c82=this[_0x1b1139(0x10d)](_0x28ec94['id']);return{..._0x28ec94,'isInContext':_0x417c82};});return _0x1f0c09[_0x3117f7(0xc5)]=_0x23afda,this[_0x3117f7(0xea)](_0x3117f7(0xd8),{'sourceId':_0x5082f5,'source':_0x1f0c09,'resources':_0x23afda,'uid':_0x223310}),_0x23afda;}catch(_0x380095){return this[_0x3117f7(0xea)](_0x3117f7(0x13e),{'error':new _0x462c3a(_0x3117f7(0x10e),this,{'sourceId':_0x5082f5,'originalError':_0x380095}),'sourceId':_0x5082f5,'sourceLabel':_0x1f0c09[_0x3117f7(0x135)]}),[];}}async[_0x202b84(0x123)](_0x49a16c,_0x2766a0){const _0x398bcf=_0x202b84;if(this[_0x398bcf(0x10d)](_0x2766a0['id']))return;let _0x38b5fd=_0x2766a0[_0x398bcf(0x12c)];if(!_0x38b5fd&&_0x49a16c[_0x398bcf(0x102)])try{_0x38b5fd=await _0x49a16c[_0x398bcf(0x102)](_0x2766a0['id']);}catch(_0x2dadfb){return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xe2),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'originalError':_0x2dadfb}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}if(_0x38b5fd)switch(_0x2766a0[_0x398bcf(0xc1)]){case _0x4dd290[_0x398bcf(0xc2)]:if(_0x398bcf(0xe4)!=typeof _0x38b5fd)return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0xe4),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});await this[_0x398bcf(0x100)](_0x38b5fd,{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']});break;case _0x4dd290[_0x398bcf(0x13d)]:if(!(_0x38b5fd instanceof File))return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0x121),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});await this[_0x398bcf(0xe7)]([_0x38b5fd],{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']});break;case _0x4dd290[_0x398bcf(0x12f)]:if(_0x398bcf(0xef)!=typeof _0x38b5fd||!(_0x398bcf(0xd1)in _0x38b5fd)||!(_0x398bcf(0xc1)in _0x38b5fd))return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0xb5),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});_0x38b5fd=AIChatContext[_0x398bcf(0xec)](_0x38b5fd,_0x2766a0[_0x398bcf(0x135)]),await this[_0x398bcf(0xe7)]([_0x38b5fd],{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']},_0x4dd290[_0x398bcf(0x12f)]);break;case _0x4dd290[_0x398bcf(0xdf)]:break;default:this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xf2),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'resourceType':_0x2766a0[_0x398bcf(0xc1)]}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}else this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb4),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}static[_0x202b84(0xec)](_0xa220fb,_0x53a9b3){const _0x38887b=_0x202b84;switch(_0xa220fb[_0x38887b(0xc1)]){case _0x56b05a[_0x38887b(0x129)]:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0x111)});case _0x56b05a[_0x38887b(0x13f)]:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0xb2)});default:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0xc9)});}}static[_0x202b84(0xac)](_0x1a4929){const _0x2c1032=_0x202b84;switch(_0x1a4929[_0x2c1032(0xc1)]){case _0x4dd290[_0x2c1032(0x13d)]:return{'type':_0x4dd290[_0x2c1032(0x13d)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0xc2)]:return{'type':_0x4dd290[_0x2c1032(0xc2)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0x109)]:return{'type':_0x4dd290[_0x2c1032(0x109)],'id':_0x1a4929['id'],..._0x1a4929[_0x2c1032(0x122)]?.[_0x2c1032(0xca)]&&{'selection':_0x1a4929[_0x2c1032(0x122)]}};case _0x4dd290[_0x2c1032(0x12f)]:return{'type':_0x4dd290[_0x2c1032(0x13d)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0xdf)]:{const _0x2c1674=_0x1a4929;return{'type':_0x4dd290[_0x2c1032(0xdf)],'mcpServerName':_0x2c1674[_0x2c1032(0xbb)],'toolName':_0x2c1674[_0x2c1032(0x138)],'data':_0x2c1674[_0x2c1032(0x12c)],'id':_0x2c1674['id']};}default:return null;}}[_0x202b84(0x10b)](_0x22b7f4,_0x237035=!0x1){const _0x1b9a75=_0x202b84;if(this[_0x1b9a75(0x116)][_0x1b9a75(0xbd)](_0x22b7f4[_0x1b9a75(0xb6)],_0x22b7f4),_0x22b7f4[_0x1b9a75(0xc3)]||this[_0x1b9a75(0xea)](_0x1b9a75(0x131),{'contextItem':_0x22b7f4,'isLoading':_0x237035}),_0x1b9a75(0xc8)===_0x22b7f4[_0x1b9a75(0xb6)]&&this[_0x1b9a75(0x120)](),_0x22b7f4[_0x1b9a75(0x114)]){const _0x2a6440=this[_0x1b9a75(0x10a)](_0x22b7f4[_0x1b9a75(0x114)]);_0x2a6440&&_0x2a6440[_0x1b9a75(0xe5)](_0x4e81ac=>{const _0x14f11f=_0x1b9a75;this[_0x14f11f(0x11d)](_0x4e81ac,_0x22b7f4[_0x14f11f(0x114)],!0x0);});}}[_0x202b84(0xc6)](_0x443bb4){const _0x451a8f=_0x202b84,_0x14c8b3=this[_0x451a8f(0x116)][_0x451a8f(0x13a)](_0x443bb4),_0x2edf34=this[_0x451a8f(0xae)][_0x451a8f(0x13a)](_0x443bb4);if(_0x2edf34&&(_0x2edf34[_0x451a8f(0xf3)](),this[_0x451a8f(0xae)][_0x451a8f(0xbe)](_0x443bb4)),_0x14c8b3?.[_0x451a8f(0x114)]){const _0x5e87fa=this[_0x451a8f(0x10a)](_0x14c8b3[_0x451a8f(0x114)]);_0x5e87fa&&_0x5e87fa[_0x451a8f(0xe5)](_0x562e0b=>{const _0x399a55=_0x451a8f;this[_0x399a55(0x11d)](_0x562e0b,_0x14c8b3[_0x399a55(0x114)],!0x1);});}this[_0x451a8f(0x116)][_0x451a8f(0xbe)](_0x443bb4),this[_0x451a8f(0xea)](_0x451a8f(0x11a),{'uiId':_0x443bb4,'type':_0x14c8b3?.[_0x451a8f(0xc1)]}),_0x451a8f(0xc8)===_0x443bb4&&this[_0x451a8f(0x120)]();}[_0x202b84(0x12e)](_0x3115b3,_0x3c552b){const _0x52c4c4=_0x202b84;if(this[_0x52c4c4(0x116)][_0x52c4c4(0xde)](_0x3115b3[_0x52c4c4(0xb6)])&&(this[_0x52c4c4(0x116)][_0x52c4c4(0xbd)](_0x3115b3[_0x52c4c4(0xb6)],_0x3115b3),this[_0x52c4c4(0xea)](_0x52c4c4(0xc7),{'contextItem':_0x3115b3,'isLoading':_0x3c552b}),_0x3115b3[_0x52c4c4(0x114)])){const _0x1d6409=this[_0x52c4c4(0x10a)](_0x3115b3[_0x52c4c4(0x114)]);_0x1d6409&&_0x1d6409[_0x52c4c4(0xe5)](_0xd525d2=>{const _0xed1a8e=_0x52c4c4;this[_0xed1a8e(0x11d)](_0xd525d2,_0x3115b3[_0xed1a8e(0x114)],!0x0);});}}[_0x202b84(0xeb)](_0x494d44){const _0x4cec1f=_0x202b84;this[_0x4cec1f(0x12a)][_0x4cec1f(0xbd)](_0x494d44[_0x4cec1f(0xb6)],_0x494d44);}[_0x202b84(0x13b)](){const _0x4eb5cc=_0x202b84;this[_0x4eb5cc(0xd3)]={'document':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0xfb)]?.[_0x4eb5cc(0xb8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0xcd)]?.[_0x4eb5cc(0xb8)]},'files':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0x107)]?.[_0x4eb5cc(0xb8)]},'sources':this[_0x4eb5cc(0xf1)](),'customItems':this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0x112)]?.[_0x4eb5cc(0xf6)](_0x1d8a85=>({..._0x1d8a85,'enabled':!0x0}))??[]},this[_0x4eb5cc(0xea)](_0x4eb5cc(0xd4),{'options':this[_0x4eb5cc(0xd3)]});}[_0x202b84(0xf1)](){const _0x38fd45=_0x202b84;return this[_0x38fd45(0xd0)]?.[_0x38fd45(0xf7)]?.[_0x38fd45(0xf6)](_0x4c2237=>({..._0x4c2237,'resources':[]}))??[];}[_0x202b84(0x120)](){const _0x22bae9=_0x202b84,_0x59d35=this[_0x22bae9(0xf8)]()||this[_0x22bae9(0x118)]();this[_0x22bae9(0xd3)][_0x22bae9(0xfb)][_0x22bae9(0xce)]=_0x59d35,this[_0x22bae9(0xea)](_0x22bae9(0xd4),{'options':this[_0x22bae9(0xd3)]});}[_0x202b84(0x10d)](_0x5994ae){const _0x1b8fe5=_0x202b84;for(const _0x211a39 of this[_0x1b8fe5(0x116)][_0x1b8fe5(0xf4)]())if(_0x211a39[_0x1b8fe5(0x114)]===_0x5994ae)return!0x0;for(const _0x43d123 of this[_0x1b8fe5(0x12a)][_0x1b8fe5(0xf4)]())if(_0x43d123[_0x1b8fe5(0x114)]===_0x5994ae)return!0x0;return!0x1;}[_0x202b84(0x10a)](_0x23e0a1){const _0x1a3535=_0x202b84,_0x4622c2=[];for(const _0x15f286 of this[_0x1a3535(0xd3)][_0x1a3535(0xf7)]){_0x15f286[_0x1a3535(0xc5)][_0x1a3535(0xe1)](_0x3c6614=>_0x3c6614['id']===_0x23e0a1)&&_0x4622c2[_0x1a3535(0xdc)](_0x15f286['id']);}return 0x0===_0x4622c2[_0x1a3535(0xca)]?null:_0x4622c2;}[_0x202b84(0x11d)](_0x1f2572,_0x4b1331,_0x588443){const _0x30dae8=_0x202b84,_0x4b6c67=this[_0x30dae8(0xd3)][_0x30dae8(0xf7)][_0x30dae8(0xe1)](_0x271152=>_0x271152['id']===_0x1f2572);if(!_0x4b6c67)return;const _0x4b21c6=_0x4b6c67[_0x30dae8(0xc5)][_0x30dae8(0xe1)](_0xbe6f6b=>_0xbe6f6b['id']===_0x4b1331);_0x4b21c6&&(_0x4b21c6[_0x30dae8(0x110)]=_0x588443,this[_0x30dae8(0xea)](_0x30dae8(0xd5),{'sourceId':_0x1f2572,'resourceId':_0x4b1331,'isInContext':_0x588443}));}[_0x202b84(0xe0)](_0x1a7994){const _0x4893f5=_0x202b84;this[_0x4893f5(0xe6)][_0x4893f5(0xbd)](_0x1a7994,!0x0),this[_0x4893f5(0xe6)][_0x4893f5(0x11c)]&&this[_0x4893f5(0xea)](_0x4893f5(0x140),{'isUploadInProgress':!0x0});}[_0x202b84(0x133)](_0x17f9ca){const _0x535894=_0x202b84;this[_0x535894(0xe6)][_0x535894(0xbe)](_0x17f9ca),0x0===this[_0x535894(0xe6)][_0x535894(0x11c)]&&this[_0x535894(0xea)](_0x535894(0x140),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x1c7482=_0x196f;(function(_0xf3df01,_0x388a1a){const _0x320645=_0x196f,_0x4febed=_0xf3df01();while(!![]){try{const _0x315019=-parseInt(_0x320645(0x1f7))/0x1+-parseInt(_0x320645(0x276))/0x2*(parseInt(_0x320645(0x208))/0x3)+parseInt(_0x320645(0x254))/0x4*(parseInt(_0x320645(0x265))/0x5)+-parseInt(_0x320645(0x271))/0x6*(parseInt(_0x320645(0x268))/0x7)+parseInt(_0x320645(0x1ff))/0x8+parseInt(_0x320645(0x231))/0x9+parseInt(_0x320645(0x1e2))/0xa;if(_0x315019===_0x388a1a)break;else _0x4febed['push'](_0x4febed['shift']());}catch(_0x422dbf){_0x4febed['push'](_0x4febed['shift']());}}}(_0x27fd,0xa8405));import{CKEditorError as _0x3020fd,ObservableMixin as _0x51b5c0,uid as _0x47606b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x12c384,AIContextTextResourceType as _0x1f3675}from'../../aicore/model/aicontext.js';import{escape as _0x1199bb}from'es-toolkit/compat';function _0x196f(_0x2abfe1,_0x976967){const _0x27fdb1=_0x27fd();return _0x196f=function(_0x196f2d,_0xa6c640){_0x196f2d=_0x196f2d-0x1e2;let _0xd5e517=_0x27fdb1[_0x196f2d];return _0xd5e517;},_0x196f(_0x2abfe1,_0x976967);}import{errorsMap as _0x2096e4}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1c7482(0x251),_0x1c7482(0x263),_0x1c7482(0x24a),_0x1c7482(0x200),_0x1c7482(0x26b),_0x1c7482(0x239),_0x1c7482(0x253),_0x1c7482(0x1e6),_0x1c7482(0x26d)];function _0x27fd(){const _0x1daef5=['3GWksIm','_pendingContextItems','text/html','current-document','label','version','enabled','size','name','toolName','get','push','FILE','_removeContextItem','abortController','HTML','urls','_connector','ai-chat-context-unsupported-type','removeFromContext','type','_convertTextResourceToFile','hidden','TOOL','ai-chat-context-invalid-data','text/plain','_ongoingUploads','files-','map','addSelectionToContext','_startUploadOperation','_toggleAddCurrentDocumentOptionVisibility','isHidden','substring','object','forEach','ai-chat-document-upload-failed','delete','_ongoingUploadOperations','getId','getPendingContextItems','9071802LvmPho','stack','loadSourceResources','start','isCurrentDocumentInConversation','isSelectionInContext','length','selection','addContextOptionsChanged','_mapContextItemToRequestData','has','addToConversationContext','text/markdown','_addToConversationContextItem','MARKDOWN','_getCustomSourcesInitialState','_isResourceInContext','_findSourceIdsByResourceId','_finishContextItemLoading','attributes','clearPendingContextItems','files','customItems','sessionId','url','contextItemLoadingEnded','isCurrentDocumentInContext','getData','find','uploadUrl','File','getSentContextItems','contextItemAdded','fire','sourceResourcesLoaded','5438380uvvklV','resources','addFilesToContext','string','data','removeSelectionFromContext','sources','uiId','init','_config','code','end','values','_createContextItemFromContent','uploadDocument','contextItemRemoved','isReadOnly','5hBLguD','set','ai-chat-url-upload-failed','1589434dVVMhr','addResourceToContext','addToolItemToContext','error','abort','uploadProgressChanged','content','getResources','mapContextItemsToRequestData','12APukff','addUrlToContext','from','fetchDocument','DOCUMENT','474178qXTjvU','2013460xIfTFF','file-','populateFromMessage','ai-chat-source-resources-load-failed','resourceStateChanged','uploadFile','_addContextOptionsState','Current\x20document','ai-request-aborted','TEXT','resourceId','ai-chat-file-upload-failed','_conversationContextItems','_updateResourceInContextState','addCurrentDocumentToContext','getDocument','filter','URL','all','object\x20with\x20content\x20and\x20type\x20properties','url-','1197799OwqscW','document','ai-chat-source-not-found','updateCurrentDocument','ai-chat-resource-no-data','_setAddContextOptionsDefaultState','_addContextItem','_finishUploadOperation','74000qJKKQe','contextSent','message','isInContext','mcpServerName','ai-chat-resource-load-failed','startsWith','_ownerId','SELECTION'];_0x27fd=function(){return _0x1daef5;};return _0x27fd();}export class AIChatContext extends _0x51b5c0(){[_0x1c7482(0x219)];[_0x1c7482(0x25d)];[_0x1c7482(0x206)];constructor({connector:_0x4a21bc,config:_0x39185d,ownerId:_0x5191b3}){const _0x1e39ed=_0x1c7482;super(),this[_0x1e39ed(0x219)]=_0x4a21bc,this[_0x1e39ed(0x25d)]=_0x39185d,this[_0x1e39ed(0x206)]=_0x5191b3;}[_0x1c7482(0x25c)](){const _0x4042d9=_0x1c7482;this[_0x4042d9(0x209)]=new Map(),this[_0x4042d9(0x1ee)]=new Map(),this[_0x4042d9(0x222)]=new Map(),this[_0x4042d9(0x22e)]=new Map(),this[_0x4042d9(0x1fc)]();}[_0x1c7482(0x230)](){const _0x2b981a=_0x1c7482;return this[_0x2b981a(0x209)];}async[_0x1c7482(0x1e4)](_0x508e6d){const _0x2f4cd7=_0x1c7482,_0x15d3bc=await this[_0x2f4cd7(0x261)](_0x508e6d);return this[_0x2f4cd7(0x23e)](_0x15d3bc),_0x2f4cd7(0x20b)===_0x15d3bc[_0x2f4cd7(0x25b)]&&this[_0x2f4cd7(0x227)](),_0x15d3bc;}async[_0x1c7482(0x261)](_0x1fff8e){const _0x2cd197=_0x1c7482;if(_0x1fff8e[_0x2cd197(0x21c)]===_0x12c384[_0x2cd197(0x275)]){const _0x55c7d3=await this[_0x2cd197(0x219)][_0x2cd197(0x274)](this[_0x2cd197(0x206)],_0x1fff8e['id'])[_0x2cd197(0x1f1)]();return{'id':_0x2cd197(0x20b),'uiId':_0x2cd197(0x20b),'label':_0x2cd197(0x1e9),'type':_0x1fff8e[_0x2cd197(0x21c)],'content':_0x55c7d3[_0x2cd197(0x26e)],'hidden':this[_0x2cd197(0x1ee)][_0x2cd197(0x23b)](_0x2cd197(0x20b)),'version':_0x55c7d3[_0x2cd197(0x244)]?.[_0x2cd197(0x20d)],'sessionId':_0x55c7d3[_0x2cd197(0x244)]?.[_0x2cd197(0x248)]};}if(_0x1fff8e[_0x2cd197(0x21c)]===_0x12c384[_0x2cd197(0x21f)])return{'id':_0x1fff8e['id'],'uiId':_0x1fff8e['id'],'label':_0x1fff8e[_0x2cd197(0x258)]?.[_0x2cd197(0x20c)]||_0x1fff8e['id'],'type':_0x12c384[_0x2cd197(0x21f)],'mcpServerName':_0x1fff8e[_0x2cd197(0x203)],'toolName':_0x1fff8e[_0x2cd197(0x211)],'data':_0x1fff8e[_0x2cd197(0x258)]||{}};return{'id':_0x1fff8e['id'],'uiId':_0x1fff8e['id'],'label':_0x1fff8e[_0x2cd197(0x244)]?.[_0x2cd197(0x20c)]||_0x1fff8e[_0x2cd197(0x210)]||_0x1fff8e[_0x2cd197(0x249)]||_0x1fff8e['id'],'type':_0x1fff8e[_0x2cd197(0x21c)],..._0x1fff8e?.[_0x2cd197(0x244)]?.[_0x2cd197(0x1ec)]?{'resourceId':_0x1fff8e[_0x2cd197(0x244)]?.[_0x2cd197(0x1ec)]}:{}};}[_0x1c7482(0x250)](){const _0x2a40cc=_0x1c7482;return new Map(this[_0x2a40cc(0x1ee)]);}[_0x1c7482(0x21b)](_0x1f56c8){const _0x6495f8=_0x1c7482,_0x2555e9=this[_0x6495f8(0x209)][_0x6495f8(0x212)](_0x1f56c8);_0x2555e9?.[_0x6495f8(0x264)]||this[_0x6495f8(0x215)](_0x1f56c8);}[_0x1c7482(0x245)](){const _0x3216f2=_0x1c7482;if(0x0===this[_0x3216f2(0x209)][_0x3216f2(0x20f)])return;for(const _0x5b6d82 of this[_0x3216f2(0x209)][_0x3216f2(0x260)]())this[_0x3216f2(0x215)](_0x5b6d82[_0x3216f2(0x25b)]);const _0x4589e6=this[_0x3216f2(0x1ee)][_0x3216f2(0x212)](_0x3216f2(0x20b))||this[_0x3216f2(0x209)][_0x3216f2(0x212)](_0x3216f2(0x20b));_0x4589e6&&this[_0x3216f2(0x1fd)]({..._0x4589e6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1c7482(0x23c)](_0x173c2f){const _0x43a98b=_0x1c7482;for(const _0x585888 of _0x173c2f[_0x43a98b(0x260)]())this[_0x43a98b(0x23e)](_0x585888);this[_0x43a98b(0x245)](),this[_0x43a98b(0x252)](_0x43a98b(0x200),{'contextItems':Array[_0x43a98b(0x273)](this[_0x43a98b(0x250)]()[_0x43a98b(0x260)]())});}[_0x1c7482(0x24b)](){const _0x1ac4d4=_0x1c7482;return this[_0x1ac4d4(0x209)][_0x1ac4d4(0x23b)](_0x1ac4d4(0x20b));}[_0x1c7482(0x236)](){const _0x121995=_0x1c7482;return this[_0x121995(0x209)][_0x121995(0x23b)](_0x121995(0x238));}[_0x1c7482(0x235)](){const _0x39955e=_0x1c7482;return this[_0x39955e(0x1ee)][_0x39955e(0x23b)](_0x39955e(0x20b));}static[_0x1c7482(0x270)](_0x57d930){const _0x201539=_0x1c7482;return Array[_0x201539(0x273)](_0x57d930[_0x201539(0x260)]())[_0x201539(0x224)](_0x1823d4=>this[_0x201539(0x23a)](_0x1823d4))[_0x201539(0x1f2)](_0xaa33a1=>null!==_0xaa33a1);}async[_0x1c7482(0x256)](_0x183d11,_0x30306f,_0x4733b1=_0x12c384[_0x1c7482(0x214)]){const _0x4f0555=_0x1c7482,_0x55c8fd=_0x4f0555(0x223)+_0x47606b();this[_0x4f0555(0x226)](_0x55c8fd);try{await Promise[_0x4f0555(0x1f4)](_0x183d11[_0x4f0555(0x224)](async _0x5d6908=>{const _0x290386=_0x4f0555,_0x51e79a=_0x290386(0x1e3)+_0x47606b(),_0x48b5f8=_0x1199bb(_0x5d6908[_0x290386(0x210)]);try{this[_0x290386(0x1fd)]({'type':_0x4733b1,'label':_0x30306f?.[_0x290386(0x20c)]||_0x48b5f8,'uiId':_0x51e79a,'resourceId':_0x30306f?.[_0x290386(0x1ec)]},!0x0);const _0x15fd97=this[_0x290386(0x219)][_0x290386(0x1e7)](this[_0x290386(0x206)],_0x5d6908,_0x30306f);this[_0x290386(0x222)][_0x290386(0x266)](_0x51e79a,_0x15fd97[_0x290386(0x216)]);const {id:_0x377056}=await _0x15fd97[_0x290386(0x22f)]();this[_0x290386(0x222)][_0x290386(0x22d)](_0x51e79a),this[_0x290386(0x243)]({'type':_0x4733b1,'id':_0x377056,'label':_0x30306f?.[_0x290386(0x20c)]||_0x48b5f8,'uiId':_0x51e79a,'resourceId':_0x30306f?.[_0x290386(0x1ec)]},!0x1);}catch(_0xefb67b){this[_0x290386(0x222)][_0x290386(0x22d)](_0x51e79a);if(!(_0xefb67b instanceof _0x3020fd&&_0xefb67b[_0x290386(0x201)][_0x290386(0x205)](_0x290386(0x1ea)))){const _0x1c7c23=_0x2096e4[_0x290386(0x212)](_0xefb67b[_0x290386(0x25e)])||_0x290386(0x1ed),_0xdd34dc=new _0x3020fd(_0x1c7c23,null,{'fileName':_0x48b5f8,..._0xefb67b});_0xdd34dc[_0x290386(0x232)]=_0xefb67b[_0x290386(0x232)],this[_0x290386(0x252)](_0x290386(0x26b),{'error':_0xdd34dc});}this[_0x290386(0x215)](_0x51e79a);}}));}finally{this[_0x4f0555(0x1fe)](_0x55c8fd);}}[_0x1c7482(0x1f0)](_0x380904){const _0x3fe847=_0x1c7482;if(this[_0x3fe847(0x24b)]()||!this[_0x3fe847(0x1e8)][_0x3fe847(0x1f8)][_0x3fe847(0x20e)])return;const _0x5ddef4={'type':_0x12c384[_0x3fe847(0x275)],'uiId':_0x3fe847(0x20b),'label':_0x380904,'isReadOnly':this[_0x3fe847(0x1ee)][_0x3fe847(0x23b)](_0x3fe847(0x20b)),'hidden':this[_0x3fe847(0x1ee)][_0x3fe847(0x23b)](_0x3fe847(0x20b))};this[_0x3fe847(0x1fd)](_0x5ddef4);}async[_0x1c7482(0x1fa)](_0x238c88,_0x566f89,_0x4ac2a8,_0x1d2ea7){const _0x27a6e0=_0x1c7482,_0x94fc33=this[_0x27a6e0(0x209)][_0x27a6e0(0x212)](_0x27a6e0(0x20b));if(_0x94fc33&&_0x238c88){_0x94fc33[_0x27a6e0(0x238)]=_0x1d2ea7?_0x1d2ea7[_0x27a6e0(0x224)](_0x3dd630=>({'start':_0x3dd630[_0x27a6e0(0x234)],'end':_0x3dd630[_0x27a6e0(0x25f)]})):[];try{if(_0x94fc33[_0x27a6e0(0x20d)]===_0x566f89)return;const {id:_0x20c2cd}=await this[_0x27a6e0(0x219)][_0x27a6e0(0x262)](this[_0x27a6e0(0x206)],_0x238c88,{'version':_0x566f89,'sessionId':_0x4ac2a8})[_0x27a6e0(0x22f)]();_0x94fc33['id']=_0x20c2cd,_0x94fc33[_0x27a6e0(0x26e)]=_0x238c88,_0x94fc33[_0x27a6e0(0x20d)]=_0x566f89,_0x94fc33[_0x27a6e0(0x248)]=_0x4ac2a8;}catch(_0x4cff72){const _0x2c8eff=new _0x3020fd(_0x27a6e0(0x22c),null);_0x2c8eff[_0x27a6e0(0x232)]=_0x4cff72[_0x27a6e0(0x232)],this[_0x27a6e0(0x252)](_0x27a6e0(0x26b),{'error':_0x2c8eff});}}}[_0x1c7482(0x225)](_0x17d8db){const _0xc246a0=_0x1c7482;this[_0xc246a0(0x1fd)]({'type':_0x12c384[_0xc246a0(0x207)],'label':_0x17d8db,'uiId':_0xc246a0(0x238),'content':_0x17d8db});}[_0x1c7482(0x259)](){const _0x46727d=_0x1c7482;this[_0x46727d(0x215)](_0x46727d(0x238));}async[_0x1c7482(0x272)](_0xf784a8,_0x428649){const _0x4b037e=_0x1c7482,_0x52dffd=_0x4b037e(0x1f6)+_0x47606b();this[_0x4b037e(0x226)](_0x52dffd);const _0x35d4db=_0x4b037e(0x1f6)+_0x47606b();try{this[_0x4b037e(0x1fd)]({'type':_0x12c384[_0x4b037e(0x1f3)],'label':_0x428649?.[_0x4b037e(0x20c)]||_0xf784a8,'uiId':_0x35d4db,'resourceId':_0x428649?.[_0x4b037e(0x1ec)]},!0x0);const _0x43ff9a=this[_0x4b037e(0x219)][_0x4b037e(0x24e)](this[_0x4b037e(0x206)],_0xf784a8,_0x428649);this[_0x4b037e(0x222)][_0x4b037e(0x266)](_0x35d4db,_0x43ff9a[_0x4b037e(0x216)]);const {id:_0x94526f}=await _0x43ff9a[_0x4b037e(0x22f)]();this[_0x4b037e(0x222)][_0x4b037e(0x22d)](_0x35d4db),this[_0x4b037e(0x243)]({'type':_0x12c384[_0x4b037e(0x1f3)],'id':_0x94526f,'label':_0x428649?.[_0x4b037e(0x20c)]||_0xf784a8,'uiId':_0x35d4db,'resourceId':_0x428649?.[_0x4b037e(0x1ec)]},!0x1);}catch(_0x341090){this[_0x4b037e(0x222)][_0x4b037e(0x22d)](_0x35d4db),(_0x341090[_0x4b037e(0x201)][_0x4b037e(0x205)](_0x4b037e(0x1ea))||this[_0x4b037e(0x252)](_0x4b037e(0x26b),{'error':new _0x3020fd(_0x4b037e(0x267),this,{'url':_0xf784a8,'originalError':_0x341090}),'url':_0xf784a8}),this[_0x4b037e(0x215)](_0x35d4db));}finally{this[_0x4b037e(0x1fe)](_0x52dffd);}}[_0x1c7482(0x26a)](_0x94f52c){const _0x4c4f90=_0x1c7482;_0x94f52c['id']=_0x94f52c['id']??_0x47606b()[_0x4c4f90(0x229)](0x0,0x15),this[_0x4c4f90(0x209)][_0x4c4f90(0x266)](_0x94f52c[_0x4c4f90(0x25b)],_0x94f52c),this[_0x4c4f90(0x252)](_0x4c4f90(0x251),{'contextItem':_0x94f52c,'isLoading':!0x1});}async[_0x1c7482(0x233)](_0x3332fe,_0x2f5860,_0x4d3479){const _0x595d4a=_0x1c7482,_0x38185a=this[_0x595d4a(0x1e8)][_0x595d4a(0x25a)][_0x595d4a(0x24d)](_0x3172b4=>_0x3172b4['id']===_0x3332fe);if(!_0x38185a)return this[_0x595d4a(0x252)](_0x595d4a(0x26b),{'error':new _0x3020fd(_0x595d4a(0x1f9),this,{'sourceId':_0x3332fe}),'sourceId':_0x3332fe}),[];try{const _0x5cd65a=(await _0x38185a[_0x595d4a(0x26f)](_0x2f5860))[_0x595d4a(0x224)](_0x862a22=>{const _0x3a1a13=_0x595d4a,_0x3d3684=this[_0x3a1a13(0x241)](_0x862a22['id']);return{..._0x862a22,'isInContext':_0x3d3684};});return _0x38185a[_0x595d4a(0x255)]=_0x5cd65a,this[_0x595d4a(0x252)](_0x595d4a(0x253),{'sourceId':_0x3332fe,'source':_0x38185a,'resources':_0x5cd65a,'uid':_0x4d3479}),_0x5cd65a;}catch(_0x54c518){return this[_0x595d4a(0x252)](_0x595d4a(0x26b),{'error':new _0x3020fd(_0x595d4a(0x1e5),this,{'sourceId':_0x3332fe,'originalError':_0x54c518}),'sourceId':_0x3332fe,'sourceLabel':_0x38185a[_0x595d4a(0x20c)]}),[];}}async[_0x1c7482(0x269)](_0xe81ecc,_0x5b2696){const _0x1679b9=_0x1c7482;if(this[_0x1679b9(0x241)](_0x5b2696['id']))return;let _0x143298=_0x5b2696[_0x1679b9(0x258)];if(!_0x143298&&_0xe81ecc[_0x1679b9(0x24c)])try{_0x143298=await _0xe81ecc[_0x1679b9(0x24c)](_0x5b2696['id']);}catch(_0x3d9ab7){return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x204),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'originalError':_0x3d9ab7}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}if(_0x143298)switch(_0x5b2696[_0x1679b9(0x21c)]){case _0x12c384[_0x1679b9(0x1f3)]:if(_0x1679b9(0x257)!=typeof _0x143298)return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x257),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});await this[_0x1679b9(0x272)](_0x143298,{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']});break;case _0x12c384[_0x1679b9(0x214)]:if(!(_0x143298 instanceof File))return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x24f),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});await this[_0x1679b9(0x256)]([_0x143298],{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']});break;case _0x12c384[_0x1679b9(0x1eb)]:if(_0x1679b9(0x22a)!=typeof _0x143298||!(_0x1679b9(0x26e)in _0x143298)||!(_0x1679b9(0x21c)in _0x143298))return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x1f5),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});_0x143298=AIChatContext[_0x1679b9(0x21d)](_0x143298,_0x5b2696[_0x1679b9(0x20c)]),await this[_0x1679b9(0x256)]([_0x143298],{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']},_0x12c384[_0x1679b9(0x1eb)]);break;case _0x12c384[_0x1679b9(0x21f)]:break;default:this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x21a),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'resourceType':_0x5b2696[_0x1679b9(0x21c)]}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}else this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x1fb),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}static[_0x1c7482(0x21d)](_0x57ab0c,_0x4b2d56){const _0x82a56a=_0x1c7482;switch(_0x57ab0c[_0x82a56a(0x21c)]){case _0x1f3675[_0x82a56a(0x23f)]:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x23d)});case _0x1f3675[_0x82a56a(0x217)]:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x20a)});default:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x221)});}}static[_0x1c7482(0x23a)](_0x909e6f){const _0x1c5c93=_0x1c7482;switch(_0x909e6f[_0x1c5c93(0x21c)]){case _0x12c384[_0x1c5c93(0x214)]:return{'type':_0x12c384[_0x1c5c93(0x214)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x1f3)]:return{'type':_0x12c384[_0x1c5c93(0x1f3)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x275)]:return{'type':_0x12c384[_0x1c5c93(0x275)],'id':_0x909e6f['id'],..._0x909e6f[_0x1c5c93(0x238)]?.[_0x1c5c93(0x237)]&&{'selection':_0x909e6f[_0x1c5c93(0x238)]}};case _0x12c384[_0x1c5c93(0x1eb)]:return{'type':_0x12c384[_0x1c5c93(0x214)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x21f)]:{const _0x22cab6=_0x909e6f;return{'type':_0x12c384[_0x1c5c93(0x21f)],'mcpServerName':_0x22cab6[_0x1c5c93(0x203)],'toolName':_0x22cab6[_0x1c5c93(0x211)],'data':_0x22cab6[_0x1c5c93(0x258)],'id':_0x22cab6['id']};}default:return null;}}[_0x1c7482(0x1fd)](_0x5b7229,_0x236ffa=!0x1){const _0x1c8ce2=_0x1c7482;if(this[_0x1c8ce2(0x209)][_0x1c8ce2(0x266)](_0x5b7229[_0x1c8ce2(0x25b)],_0x5b7229),_0x5b7229[_0x1c8ce2(0x21e)]||this[_0x1c8ce2(0x252)](_0x1c8ce2(0x251),{'contextItem':_0x5b7229,'isLoading':_0x236ffa}),_0x1c8ce2(0x20b)===_0x5b7229[_0x1c8ce2(0x25b)]&&this[_0x1c8ce2(0x227)](),_0x5b7229[_0x1c8ce2(0x1ec)]){const _0x49d34e=this[_0x1c8ce2(0x242)](_0x5b7229[_0x1c8ce2(0x1ec)]);_0x49d34e&&_0x49d34e[_0x1c8ce2(0x22b)](_0x214820=>{const _0x255f04=_0x1c8ce2;this[_0x255f04(0x1ef)](_0x214820,_0x5b7229[_0x255f04(0x1ec)],!0x0);});}}[_0x1c7482(0x215)](_0x1bf646){const _0x40ec05=_0x1c7482,_0x1cd47f=this[_0x40ec05(0x209)][_0x40ec05(0x212)](_0x1bf646),_0x5355b2=this[_0x40ec05(0x222)][_0x40ec05(0x212)](_0x1bf646);if(_0x5355b2&&(_0x5355b2[_0x40ec05(0x26c)](),this[_0x40ec05(0x222)][_0x40ec05(0x22d)](_0x1bf646)),_0x1cd47f?.[_0x40ec05(0x1ec)]){const _0xea5ef0=this[_0x40ec05(0x242)](_0x1cd47f[_0x40ec05(0x1ec)]);_0xea5ef0&&_0xea5ef0[_0x40ec05(0x22b)](_0x4a8d22=>{const _0x17cff4=_0x40ec05;this[_0x17cff4(0x1ef)](_0x4a8d22,_0x1cd47f[_0x17cff4(0x1ec)],!0x1);});}this[_0x40ec05(0x209)][_0x40ec05(0x22d)](_0x1bf646),this[_0x40ec05(0x252)](_0x40ec05(0x263),{'uiId':_0x1bf646,'type':_0x1cd47f?.[_0x40ec05(0x21c)]}),_0x40ec05(0x20b)===_0x1bf646&&this[_0x40ec05(0x227)]();}[_0x1c7482(0x243)](_0xe94f7,_0x57c763){const _0xadc9ca=_0x1c7482;if(this[_0xadc9ca(0x209)][_0xadc9ca(0x23b)](_0xe94f7[_0xadc9ca(0x25b)])&&(this[_0xadc9ca(0x209)][_0xadc9ca(0x266)](_0xe94f7[_0xadc9ca(0x25b)],_0xe94f7),this[_0xadc9ca(0x252)](_0xadc9ca(0x24a),{'contextItem':_0xe94f7,'isLoading':_0x57c763}),_0xe94f7[_0xadc9ca(0x1ec)])){const _0x32d6ab=this[_0xadc9ca(0x242)](_0xe94f7[_0xadc9ca(0x1ec)]);_0x32d6ab&&_0x32d6ab[_0xadc9ca(0x22b)](_0xd290e2=>{const _0x365536=_0xadc9ca;this[_0x365536(0x1ef)](_0xd290e2,_0xe94f7[_0x365536(0x1ec)],!0x0);});}}[_0x1c7482(0x23e)](_0x25148e){const _0x5eb961=_0x1c7482;this[_0x5eb961(0x1ee)][_0x5eb961(0x266)](_0x25148e[_0x5eb961(0x25b)],_0x25148e);}[_0x1c7482(0x1fc)](){const _0x3e31d0=_0x1c7482;this[_0x3e31d0(0x1e8)]={'document':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x1f8)]?.[_0x3e31d0(0x20e)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x218)]?.[_0x3e31d0(0x20e)]},'files':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x246)]?.[_0x3e31d0(0x20e)]},'sources':this[_0x3e31d0(0x240)](),'customItems':this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x247)]?.[_0x3e31d0(0x224)](_0x41c653=>({..._0x41c653,'enabled':!0x0}))??[]},this[_0x3e31d0(0x252)](_0x3e31d0(0x239),{'options':this[_0x3e31d0(0x1e8)]});}[_0x1c7482(0x240)](){const _0x264e4e=_0x1c7482;return this[_0x264e4e(0x25d)]?.[_0x264e4e(0x25a)]?.[_0x264e4e(0x224)](_0x1aebf1=>({..._0x1aebf1,'resources':[]}))??[];}[_0x1c7482(0x227)](){const _0x5eee95=_0x1c7482,_0xb5e343=this[_0x5eee95(0x24b)]()||this[_0x5eee95(0x235)]();this[_0x5eee95(0x1e8)][_0x5eee95(0x1f8)][_0x5eee95(0x228)]=_0xb5e343,this[_0x5eee95(0x252)](_0x5eee95(0x239),{'options':this[_0x5eee95(0x1e8)]});}[_0x1c7482(0x241)](_0x1d7ee4){const _0x35816d=_0x1c7482;for(const _0x5b6aa1 of this[_0x35816d(0x209)][_0x35816d(0x260)]())if(_0x5b6aa1[_0x35816d(0x1ec)]===_0x1d7ee4)return!0x0;for(const _0x4e22ba of this[_0x35816d(0x1ee)][_0x35816d(0x260)]())if(_0x4e22ba[_0x35816d(0x1ec)]===_0x1d7ee4)return!0x0;return!0x1;}[_0x1c7482(0x242)](_0x5b638d){const _0x7d778a=_0x1c7482,_0x4373fe=[];for(const _0x13fbe4 of this[_0x7d778a(0x1e8)][_0x7d778a(0x25a)]){_0x13fbe4[_0x7d778a(0x255)][_0x7d778a(0x24d)](_0x5f59db=>_0x5f59db['id']===_0x5b638d)&&_0x4373fe[_0x7d778a(0x213)](_0x13fbe4['id']);}return 0x0===_0x4373fe[_0x7d778a(0x237)]?null:_0x4373fe;}[_0x1c7482(0x1ef)](_0x76d620,_0x582be5,_0x34de7a){const _0x5da970=_0x1c7482,_0x27ae59=this[_0x5da970(0x1e8)][_0x5da970(0x25a)][_0x5da970(0x24d)](_0x1e44ee=>_0x1e44ee['id']===_0x76d620);if(!_0x27ae59)return;const _0x12b703=_0x27ae59[_0x5da970(0x255)][_0x5da970(0x24d)](_0x8b641b=>_0x8b641b['id']===_0x582be5);_0x12b703&&(_0x12b703[_0x5da970(0x202)]=_0x34de7a,this[_0x5da970(0x252)](_0x5da970(0x1e6),{'sourceId':_0x76d620,'resourceId':_0x582be5,'isInContext':_0x34de7a}));}[_0x1c7482(0x226)](_0x4986fc){const _0x4cd3fd=_0x1c7482;this[_0x4cd3fd(0x22e)][_0x4cd3fd(0x266)](_0x4986fc,!0x0),this[_0x4cd3fd(0x22e)][_0x4cd3fd(0x20f)]&&this[_0x4cd3fd(0x252)](_0x4cd3fd(0x26d),{'isUploadInProgress':!0x0});}[_0x1c7482(0x1fe)](_0x4036fd){const _0x4c8740=_0x1c7482;this[_0x4c8740(0x22e)][_0x4c8740(0x22d)](_0x4036fd),0x0===this[_0x4c8740(0x22e)][_0x4c8740(0x20f)]&&this[_0x4c8740(0x252)](_0x4c8740(0x26d),{'isUploadInProgress':!0x1});}}
|