@ckeditor/ckeditor5-ai 47.3.0-alpha.1 → 47.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +0 -4
- package/dist/index.css +0 -4
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiquickactions/aiquickactions.css +0 -4
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a861d=_0x32b1;(function(_0x1dcca3,_0x44c8a0){const _0x4ff1d7=_0x32b1,_0x47be07=_0x1dcca3();while(!![]){try{const _0x33c3da=-parseInt(_0x4ff1d7(0x13a))/0x1*(parseInt(_0x4ff1d7(0xfd))/0x2)+-parseInt(_0x4ff1d7(0x142))/0x3*(parseInt(_0x4ff1d7(0x114))/0x4)+-parseInt(_0x4ff1d7(0x116))/0x5*(-parseInt(_0x4ff1d7(0x13c))/0x6)+-parseInt(_0x4ff1d7(0x109))/0x7*(-parseInt(_0x4ff1d7(0x140))/0x8)+-parseInt(_0x4ff1d7(0x103))/0x9*(-parseInt(_0x4ff1d7(0x128))/0xa)+parseInt(_0x4ff1d7(0x102))/0xb+-parseInt(_0x4ff1d7(0x141))/0xc;if(_0x33c3da===_0x44c8a0)break;else _0x47be07['push'](_0x47be07['shift']());}catch(_0x1ab533){_0x47be07['push'](_0x47be07['shift']());}}}(_0x5777,0x87ab7));import{View as _0x571140,SearchTextView as _0x2eb6f5,FormHeaderView as _0x522204,ButtonView as _0x5cda32}from'ckeditor5/src/ui.js';function _0x32b1(_0x434d1e,_0x36bada){const _0x577712=_0x5777();return _0x32b1=function(_0x32b16a,_0x3d11ef){_0x32b16a=_0x32b16a-0xf1;let _0x44562f=_0x577712[_0x32b16a];return _0x44562f;},_0x32b1(_0x434d1e,_0x36bada);}import{IconAIHistory as _0x5d7289,IconCancel as _0x182220,IconPlus as _0x12cea6}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1062e9}from'./aichathistorysectionlistview.js';function _0x5777(){const _0x47d6db=['_updateViewVisibility','12732rWoxdV','value','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','890680jVdvUI','1498380ICJwOn','922647OEVOgM','updateItemTitle','AI_CHAT_HISTORY_HEADING','remove','ck-reset_all','ck-ai-header\x20ck-ai-header_history','change:errorMessage','render','title','length','updateItemLoadingState','ck-ai-notification_error__dismiss-button','isLoading','bind','some','splice','change:isLoading','_createSearchView','execute','ck-hidden','locale','sectionsView','isMaximized','errorMessage','div','6010nigZMD','AI_CHAT_HISTORY_EMPTY_MESSAGE','children','delegate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','276782cXrFuC','349137xeoCDb','skeletonView','ck-ai-notification','fieldView','hasItems','_refreshSearch','35nUQeDk','change:hasItems','isEmptyViewVisible','errorView','AI_CHAT_HISTORY_SEARCH_LABEL','removeItem','sections','resizeButton','ck-ai-chat__start-conversation','push','aiHistory','4cONKof','extendTemplate','1115CeuIUQ','addMany','_createSkeletonView','ck-ai-notification_error','queryView','updateHistoryItemsWithCategories','element','ck-ai-chat-history__empty-message','emptyView','ck-ai-chat-history','isVisible','getItem','clear','setTemplate','items','AI_CHAT_LABEL_NEW_CHAT','add','updateTitle','30ImacwI','updateLoadingState','_createListItemViews','indexOf','ck-rounded-corners','ck-ai-chat-history__empty','set','ck-ai-chat-history__content','ltr','searchView','isSearchViewVisible','removeHistoryItem','fire','bindTemplate','itemsViews','openChat','_createEmptyStateView','search','61bdBWOE'];_0x5777=function(){return _0x47d6db;};return _0x5777();}import{AIChatHistoryListView as _0x331b8f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4b1f19}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5fd7a4}from'../aichathistoryui.js';import{AISkeletonView as _0x34ef75,SKELETON_DEFINITIONS as _0x3cb2df}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x434793}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2ba6ee}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x571140{[_0x4a861d(0x131)];[_0x4a861d(0x10c)];[_0x4a861d(0x104)];[_0x4a861d(0x11e)];[_0x4a861d(0xf9)];[_0x4a861d(0x110)];constructor(_0x1a3a1d,_0x49ec65){const _0x308bf1=_0x4a861d;super(_0x1a3a1d),this[_0x308bf1(0x12e)](_0x308bf1(0x107),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x14e),!0x0),this[_0x308bf1(0x12e)](_0x308bf1(0xfb),''),this[_0x308bf1(0x12e)](_0x308bf1(0xfa),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x132),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x10b),!0x1);const _0x1c06bd=new _0x522204(_0x1a3a1d,{'label':_0x2ba6ee(_0x1a3a1d,_0x308bf1(0x144)),'icon':_0x5d7289,'class':_0x308bf1(0x147)});_0x49ec65&&(this[_0x308bf1(0x110)]=_0x434793(_0x1a3a1d,this),_0x1c06bd[_0x308bf1(0xff)][_0x308bf1(0x126)](this[_0x308bf1(0x110)])),this[_0x308bf1(0xf9)]=new _0x1062e9(_0x1a3a1d,[]),this[_0x308bf1(0xf9)][_0x308bf1(0x100)](..._0x5fd7a4)['to'](this),this[_0x308bf1(0x10c)]=this[_0x308bf1(0x13e)](),this[_0x308bf1(0x104)]=this[_0x308bf1(0x118)](),this[_0x308bf1(0x11e)]=this[_0x308bf1(0x138)](),this[_0x308bf1(0x131)]=this[_0x308bf1(0xf5)](),this['on'](_0x308bf1(0xf4),()=>this[_0x308bf1(0x13b)]()),this['on'](_0x308bf1(0x10a),()=>this[_0x308bf1(0x13b)]()),this['on'](_0x308bf1(0x148),()=>this[_0x308bf1(0x13b)]()),this[_0x308bf1(0x123)]({'tag':_0x308bf1(0xfc),'attributes':{'class':['ck',_0x308bf1(0x146),_0x308bf1(0x11f),_0x308bf1(0x12c)],'dir':_0x308bf1(0x130)},'children':[_0x1c06bd,{'tag':_0x308bf1(0xfc),'attributes':{'class':[_0x308bf1(0x12f)]},'children':[this[_0x308bf1(0x104)],this[_0x308bf1(0x10c)],this[_0x308bf1(0x11e)],this[_0x308bf1(0x131)]]}]});}[_0x4a861d(0x13b)](){const _0x2ab226=_0x4a861d;this[_0x2ab226(0x132)]=!this[_0x2ab226(0x14e)]&&this[_0x2ab226(0x107)]&&!this[_0x2ab226(0xfb)],this[_0x2ab226(0x10b)]=!this[_0x2ab226(0x14e)]&&!this[_0x2ab226(0x107)]&&!this[_0x2ab226(0xfb)];}[_0x4a861d(0xf5)](){const _0x37fc32=_0x4a861d,_0x4cfa44=new _0x2eb6f5(this[_0x37fc32(0xf8)],{'filteredView':this[_0x37fc32(0xf9)],'queryView':{'label':_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x12b8b4=>_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x101),_0x12b8b4),'secondary':_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x13f))}}}});return _0x4cfa44['on'](_0x37fc32(0x149),()=>{const _0xabcc4e=_0x37fc32;this[_0xabcc4e(0x131)][_0xabcc4e(0xff)][_0xabcc4e(0x126)](this[_0xabcc4e(0x10c)],0x1);}),_0x4cfa44[_0x37fc32(0x115)]({'attributes':{'class':[this[_0x37fc32(0x135)]['if'](_0x37fc32(0x132),_0x37fc32(0xf7),_0xa05e40=>!_0xa05e40)]}}),_0x4cfa44;}[_0x4a861d(0x118)](){const _0x43ed33=_0x4a861d,_0x29b87c=new _0x34ef75(this[_0x43ed33(0xf8)],_0x3cb2df[_0x43ed33(0x113)]);return _0x29b87c[_0x43ed33(0x115)]({'attributes':{'class':[this[_0x43ed33(0x135)]['if'](_0x43ed33(0x14e),_0x43ed33(0xf7),_0x384e0d=>!_0x384e0d)]}}),_0x29b87c;}[_0x4a861d(0x13e)](){const _0xbdcb4b=_0x4a861d,_0x3bd446=new _0x571140(this[_0xbdcb4b(0xf8)]),_0x548730=new _0x5cda32(this[_0xbdcb4b(0xf8)]);return _0x548730[_0xbdcb4b(0x12e)]({'withText':!0x1,'icon':_0x182220,'class':_0xbdcb4b(0x14d)}),_0x548730[_0xbdcb4b(0xf1)](_0xbdcb4b(0x120))['to'](this,_0xbdcb4b(0x107),_0x4be4ca=>!!_0x4be4ca),_0x548730['on'](_0xbdcb4b(0xf6),()=>{const _0x303280=_0xbdcb4b;this[_0x303280(0xfb)]='';}),_0x3bd446[_0xbdcb4b(0x123)]({'tag':_0xbdcb4b(0xfc),'attributes':{'class':['ck',_0xbdcb4b(0x105),_0xbdcb4b(0x119),this[_0xbdcb4b(0x135)]['if'](_0xbdcb4b(0xfb),_0xbdcb4b(0xf7),_0x4bc55d=>!_0x4bc55d)]},'children':[{'tag':'p','children':[{'text':this[_0xbdcb4b(0x135)]['to'](_0xbdcb4b(0xfb))}]},_0x548730]}),_0x3bd446;}[_0x4a861d(0x138)](){const _0x4831dd=_0x4a861d,_0x580cfb=new _0x5cda32(this[_0x4831dd(0xf8)]);_0x580cfb[_0x4831dd(0x12e)]({'label':_0x2ba6ee(this[_0x4831dd(0xf8)],_0x4831dd(0x125)),'withText':!0x0,'icon':_0x12cea6,'class':_0x4831dd(0x111)}),_0x580cfb['on'](_0x4831dd(0xf6),()=>{const _0x2e97e5=_0x4831dd;this[_0x2e97e5(0x134)](_0x2e97e5(0x137));});const _0x32ff5d=new _0x571140(this[_0x4831dd(0xf8)]);return _0x32ff5d[_0x4831dd(0x123)]({'tag':_0x4831dd(0xfc),'attributes':{'class':[_0x4831dd(0x12d),this[_0x4831dd(0x135)]['if'](_0x4831dd(0x10b),_0x4831dd(0xf7),_0x35bed9=>!_0x35bed9)]},'children':[{'tag':'p','attributes':{'class':[_0x4831dd(0x11d)]},'children':[_0x2ba6ee(this[_0x4831dd(0xf8)],_0x4831dd(0xfe))]},_0x580cfb]}),_0x32ff5d;}[_0x4a861d(0x12a)](_0x45fcba,_0x5e35ef){const _0x49b706=_0x4a861d,_0x2822f9=[];for(const _0xfae2d0 of _0x45fcba){const _0x4305df=new _0x4b1f19(_0x5e35ef,_0xfae2d0);_0x4305df[_0x49b706(0x100)](..._0x5fd7a4)['to'](this),_0x2822f9[_0x49b706(0x112)](_0x4305df);}return _0x2822f9;}[_0x4a861d(0x11b)](_0x809eff){const _0x5f5bc3=_0x4a861d,_0x18e1c4=this[_0x5f5bc3(0xf8)]||'en',_0x147901=[];for(const _0x3580e1 of _0x809eff){const _0x55314b=this[_0x5f5bc3(0x12a)](_0x3580e1[_0x5f5bc3(0x124)],_0x18e1c4);_0x147901[_0x5f5bc3(0x112)](new _0x331b8f(_0x18e1c4,{'title':_0x3580e1[_0x5f5bc3(0x14a)],'items':_0x55314b}));}this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x10f)]=_0x147901,this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x124)][_0x5f5bc3(0x122)](),this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x124)][_0x5f5bc3(0x117)](_0x147901),this[_0x5f5bc3(0x107)]=_0x809eff[_0x5f5bc3(0xf2)](_0x3fbb25=>_0x3fbb25[_0x5f5bc3(0x124)][_0x5f5bc3(0x14b)]>0x0),this[_0x5f5bc3(0x108)]();}[_0x4a861d(0x133)](_0x5823d5){const _0x2ed4c3=_0x4a861d;for(const _0x244a4a of this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)]){const _0xe24c39=_0x244a4a[_0x2ed4c3(0x121)](_0x5823d5);if(_0xe24c39){if(_0x244a4a[_0x2ed4c3(0x10e)](_0xe24c39),0x0===_0x244a4a[_0x2ed4c3(0x136)][_0x2ed4c3(0x14b)]){const _0x1ab155=this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0x12b)](_0x244a4a);-0x1!==_0x1ab155&&(this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0xf3)](_0x1ab155,0x1),this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x124)][_0x2ed4c3(0x145)](_0x244a4a));}this[_0x2ed4c3(0x107)]=this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0x14b)]>0x0,this[_0x2ed4c3(0x108)]();break;}}}[_0x4a861d(0x143)](_0x50ab4b,_0x5da47f){const _0x3d559c=_0x4a861d;for(const _0x25fe27 of this[_0x3d559c(0xf9)][_0x3d559c(0x10f)]){const _0x36f2a8=_0x25fe27[_0x3d559c(0x121)](_0x50ab4b);if(_0x36f2a8){_0x36f2a8[_0x3d559c(0x127)](_0x5da47f);break;}}}[_0x4a861d(0x14c)](_0x3435ec,_0x119f13,_0x264ddb){const _0x5a4e92=_0x4a861d;for(const _0x5416e6 of this[_0x5a4e92(0xf9)][_0x5a4e92(0x10f)]){const _0x2b17ec=_0x5416e6[_0x5a4e92(0x121)](_0x3435ec);if(_0x2b17ec){_0x2b17ec[_0x5a4e92(0x129)](_0x119f13,_0x264ddb);break;}}}[_0x4a861d(0x108)](){const _0x5580af=_0x4a861d;if(this[_0x5580af(0x107)]){const _0x1a5160=this[_0x5580af(0x131)][_0x5580af(0x11a)][_0x5580af(0x106)]?.[_0x5580af(0x11c)]?.[_0x5580af(0x13d)]||'';this[_0x5580af(0x131)][_0x5580af(0x139)](_0x1a5160);}}}
|
|
23
|
+
const _0x368f0e=_0x5b9d;(function(_0x2355a9,_0x50e326){const _0x334da3=_0x5b9d,_0xa58968=_0x2355a9();while(!![]){try{const _0x5c0c7c=-parseInt(_0x334da3(0x1aa))/0x1+parseInt(_0x334da3(0x184))/0x2+-parseInt(_0x334da3(0x175))/0x3*(-parseInt(_0x334da3(0x195))/0x4)+parseInt(_0x334da3(0x198))/0x5*(-parseInt(_0x334da3(0x180))/0x6)+parseInt(_0x334da3(0x1b7))/0x7+-parseInt(_0x334da3(0x17d))/0x8*(-parseInt(_0x334da3(0x18b))/0x9)+-parseInt(_0x334da3(0x16f))/0xa*(parseInt(_0x334da3(0x16c))/0xb);if(_0x5c0c7c===_0x50e326)break;else _0xa58968['push'](_0xa58968['shift']());}catch(_0x549295){_0xa58968['push'](_0xa58968['shift']());}}}(_0x48f2,0xde12c));function _0x48f2(){const _0x3853f6=['isEmptyViewVisible','bind','title','errorMessage','ck-rounded-corners','errorView','removeItem','div','updateItemTitle','execute','55ErSiYO','ck-reset_all','isVisible','5975650iJVuKA','emptyView','remove','set','ck-hidden','value','5368251oXUuKu','ck-ai-notification_error__dismiss-button','removeHistoryItem','_createListItemViews','_createErrorView','ck-ai-chat__start-conversation','render','_createSearchView','40unkkSz','sections','AI_CHAT_LABEL_NEW_CHAT','45606sYrkKi','searchView','add','_updateViewVisibility','2376528YIkppH','setTemplate','_createSkeletonView','ltr','updateLoadingState','children','isSearchViewVisible','2159811dWpMyz','sectionsView','updateHistoryItemsWithCategories','updateItemLoadingState','ck-ai-notification_error','queryView','indexOf','AI_CHAT_HISTORY_HEADING','bindTemplate','fire','4AOaVmU','AI_CHAT_HISTORY_EMPTY_MESSAGE','delegate','1140UBahnT','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','some','locale','items','_refreshSearch','ck-ai-chat-history__empty-message','ck-ai-notification','openChat','change:isLoading','change:hasItems','updateTitle','getItem','isMaximized','length','ck-ai-chat-history__empty','addMany','285980IQIZAN','aiHistory','search','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-header\x20ck-ai-header_history','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','element','extendTemplate','splice','resizeButton','ck-ai-chat-history','isLoading','12172083rNhHtP','itemsViews','clear','skeletonView','change:errorMessage','ck-ai-chat-history__content','hasItems','_createEmptyStateView'];_0x48f2=function(){return _0x3853f6;};return _0x48f2();}function _0x5b9d(_0x36d68e,_0xa46364){const _0x48f222=_0x48f2();return _0x5b9d=function(_0x5b9d3d,_0x416997){_0x5b9d3d=_0x5b9d3d-0x165;let _0x590a70=_0x48f222[_0x5b9d3d];return _0x590a70;},_0x5b9d(_0x36d68e,_0xa46364);}import{View as _0x2bfd7d,SearchTextView as _0x904025,FormHeaderView as _0x2f6ad8,ButtonView as _0x45eb27}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xd8b269,IconCancel as _0x5f2679,IconPlus as _0x4e0e1c}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4ebcaa}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x10f024}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x421ad9}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x56149c}from'../aichathistoryui.js';import{AISkeletonView as _0x15cc4e,SKELETON_DEFINITIONS as _0x5b182e}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4ba7aa}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4aa976}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2bfd7d{[_0x368f0e(0x181)];[_0x368f0e(0x167)];[_0x368f0e(0x1ba)];[_0x368f0e(0x170)];[_0x368f0e(0x18c)];[_0x368f0e(0x1b4)];constructor(_0x335b0d,_0x1ff11c){const _0x2f6d90=_0x368f0e;super(_0x335b0d),this[_0x2f6d90(0x172)](_0x2f6d90(0x1bd),!0x1),this[_0x2f6d90(0x172)](_0x2f6d90(0x1b6),!0x0),this[_0x2f6d90(0x172)](_0x2f6d90(0x165),''),this[_0x2f6d90(0x172)](_0x2f6d90(0x1a6),!0x1),this[_0x2f6d90(0x172)](_0x2f6d90(0x18a),!0x1),this[_0x2f6d90(0x172)](_0x2f6d90(0x1bf),!0x1);const _0x578baf=new _0x2f6ad8(_0x335b0d,{'label':_0x4aa976(_0x335b0d,_0x2f6d90(0x192)),'icon':_0xd8b269,'class':_0x2f6d90(0x1ae)});_0x1ff11c&&(this[_0x2f6d90(0x1b4)]=_0x4ba7aa(_0x335b0d,this),_0x578baf[_0x2f6d90(0x189)][_0x2f6d90(0x182)](this[_0x2f6d90(0x1b4)])),this[_0x2f6d90(0x18c)]=new _0x4ebcaa(_0x335b0d,[]),this[_0x2f6d90(0x18c)][_0x2f6d90(0x197)](..._0x56149c)['to'](this),this[_0x2f6d90(0x167)]=this[_0x2f6d90(0x179)](),this[_0x2f6d90(0x1ba)]=this[_0x2f6d90(0x186)](),this[_0x2f6d90(0x170)]=this[_0x2f6d90(0x1be)](),this[_0x2f6d90(0x181)]=this[_0x2f6d90(0x17c)](),this['on'](_0x2f6d90(0x1a2),()=>this[_0x2f6d90(0x183)]()),this['on'](_0x2f6d90(0x1a3),()=>this[_0x2f6d90(0x183)]()),this['on'](_0x2f6d90(0x1bb),()=>this[_0x2f6d90(0x183)]()),this[_0x2f6d90(0x185)]({'tag':_0x2f6d90(0x169),'attributes':{'class':['ck',_0x2f6d90(0x16d),_0x2f6d90(0x1b5),_0x2f6d90(0x166)],'dir':_0x2f6d90(0x187)},'children':[_0x578baf,{'tag':_0x2f6d90(0x169),'attributes':{'class':[_0x2f6d90(0x1bc)]},'children':[this[_0x2f6d90(0x1ba)],this[_0x2f6d90(0x167)],this[_0x2f6d90(0x170)],this[_0x2f6d90(0x181)]]}]});}[_0x368f0e(0x183)](){const _0x599ffe=_0x368f0e;this[_0x599ffe(0x18a)]=!this[_0x599ffe(0x1b6)]&&this[_0x599ffe(0x1bd)]&&!this[_0x599ffe(0x165)],this[_0x599ffe(0x1bf)]=!this[_0x599ffe(0x1b6)]&&!this[_0x599ffe(0x1bd)]&&!this[_0x599ffe(0x165)];}[_0x368f0e(0x17c)](){const _0x222c6c=_0x368f0e,_0x10337f=new _0x904025(this[_0x222c6c(0x19c)],{'filteredView':this[_0x222c6c(0x18c)],'queryView':{'label':_0x4aa976(this[_0x222c6c(0x19c)],_0x222c6c(0x1ad))},'infoView':{'text':{'notFound':{'primary':_0x47ac91=>_0x4aa976(this[_0x222c6c(0x19c)],_0x222c6c(0x1b0),_0x47ac91),'secondary':_0x4aa976(this[_0x222c6c(0x19c)],_0x222c6c(0x199))}}}});return _0x10337f['on'](_0x222c6c(0x17b),()=>{const _0x160f24=_0x222c6c;this[_0x160f24(0x181)][_0x160f24(0x189)][_0x160f24(0x182)](this[_0x160f24(0x167)],0x1);}),_0x10337f[_0x222c6c(0x1b2)]({'attributes':{'class':[this[_0x222c6c(0x193)]['if'](_0x222c6c(0x18a),_0x222c6c(0x173),_0x189478=>!_0x189478)]}}),_0x10337f;}[_0x368f0e(0x186)](){const _0x1b151e=_0x368f0e,_0x5ed610=new _0x15cc4e(this[_0x1b151e(0x19c)],_0x5b182e[_0x1b151e(0x1ab)]);return _0x5ed610[_0x1b151e(0x1b2)]({'attributes':{'class':[this[_0x1b151e(0x193)]['if'](_0x1b151e(0x1b6),_0x1b151e(0x173),_0x2c9da9=>!_0x2c9da9)]}}),_0x5ed610;}[_0x368f0e(0x179)](){const _0x1f0200=_0x368f0e,_0x333571=new _0x2bfd7d(this[_0x1f0200(0x19c)]),_0xe3a209=new _0x45eb27(this[_0x1f0200(0x19c)]);return _0xe3a209[_0x1f0200(0x172)]({'withText':!0x1,'icon':_0x5f2679,'class':_0x1f0200(0x176)}),_0xe3a209[_0x1f0200(0x1c0)](_0x1f0200(0x16e))['to'](this,_0x1f0200(0x1bd),_0x1fdaf1=>!!_0x1fdaf1),_0xe3a209['on'](_0x1f0200(0x16b),()=>{const _0x1bce9b=_0x1f0200;this[_0x1bce9b(0x165)]='';}),_0x333571[_0x1f0200(0x185)]({'tag':_0x1f0200(0x169),'attributes':{'class':['ck',_0x1f0200(0x1a0),_0x1f0200(0x18f),this[_0x1f0200(0x193)]['if'](_0x1f0200(0x165),_0x1f0200(0x173),_0x47eb63=>!_0x47eb63)]},'children':[{'tag':'p','children':[{'text':this[_0x1f0200(0x193)]['to'](_0x1f0200(0x165))}]},_0xe3a209]}),_0x333571;}[_0x368f0e(0x1be)](){const _0x2f5d63=_0x368f0e,_0x2378a0=new _0x45eb27(this[_0x2f5d63(0x19c)]);_0x2378a0[_0x2f5d63(0x172)]({'label':_0x4aa976(this[_0x2f5d63(0x19c)],_0x2f5d63(0x17f)),'withText':!0x0,'icon':_0x4e0e1c,'class':_0x2f5d63(0x17a)}),_0x2378a0['on'](_0x2f5d63(0x16b),()=>{const _0x267d7d=_0x2f5d63;this[_0x267d7d(0x194)](_0x267d7d(0x1a1));});const _0x2961c0=new _0x2bfd7d(this[_0x2f5d63(0x19c)]);return _0x2961c0[_0x2f5d63(0x185)]({'tag':_0x2f5d63(0x169),'attributes':{'class':[_0x2f5d63(0x1a8),this[_0x2f5d63(0x193)]['if'](_0x2f5d63(0x1bf),_0x2f5d63(0x173),_0x45c9e2=>!_0x45c9e2)]},'children':[{'tag':'p','attributes':{'class':[_0x2f5d63(0x19f)]},'children':[_0x4aa976(this[_0x2f5d63(0x19c)],_0x2f5d63(0x196))]},_0x2378a0]}),_0x2961c0;}[_0x368f0e(0x178)](_0x1a2e51,_0x200319){const _0x49f8e1=_0x368f0e,_0x444b05=[];for(const _0x13448f of _0x1a2e51){const _0x494564=new _0x421ad9(_0x200319,_0x13448f);_0x494564[_0x49f8e1(0x197)](..._0x56149c)['to'](this),_0x444b05[_0x49f8e1(0x19a)](_0x494564);}return _0x444b05;}[_0x368f0e(0x18d)](_0x41dcf4){const _0x42bfdb=_0x368f0e,_0x4ac03d=this[_0x42bfdb(0x19c)]||'en',_0x5be865=[];for(const _0x5b2f3f of _0x41dcf4){const _0x12ef12=this[_0x42bfdb(0x178)](_0x5b2f3f[_0x42bfdb(0x19d)],_0x4ac03d);_0x5be865[_0x42bfdb(0x19a)](new _0x10f024(_0x4ac03d,{'title':_0x5b2f3f[_0x42bfdb(0x1c1)],'items':_0x12ef12}));}this[_0x42bfdb(0x18c)][_0x42bfdb(0x17e)]=_0x5be865,this[_0x42bfdb(0x18c)][_0x42bfdb(0x19d)][_0x42bfdb(0x1b9)](),this[_0x42bfdb(0x18c)][_0x42bfdb(0x19d)][_0x42bfdb(0x1a9)](_0x5be865),this[_0x42bfdb(0x1bd)]=_0x41dcf4[_0x42bfdb(0x19b)](_0x13a7c=>_0x13a7c[_0x42bfdb(0x19d)][_0x42bfdb(0x1a7)]>0x0),this[_0x42bfdb(0x19e)]();}[_0x368f0e(0x177)](_0x8c35f){const _0x491e8d=_0x368f0e;for(const _0x495c69 of this[_0x491e8d(0x18c)][_0x491e8d(0x17e)]){const _0x45aef7=_0x495c69[_0x491e8d(0x1a5)](_0x8c35f);if(_0x45aef7){if(_0x495c69[_0x491e8d(0x168)](_0x45aef7),0x0===_0x495c69[_0x491e8d(0x1b8)][_0x491e8d(0x1a7)]){const _0x5ef9e1=this[_0x491e8d(0x18c)][_0x491e8d(0x17e)][_0x491e8d(0x191)](_0x495c69);-0x1!==_0x5ef9e1&&(this[_0x491e8d(0x18c)][_0x491e8d(0x17e)][_0x491e8d(0x1b3)](_0x5ef9e1,0x1),this[_0x491e8d(0x18c)][_0x491e8d(0x19d)][_0x491e8d(0x171)](_0x495c69));}this[_0x491e8d(0x1bd)]=this[_0x491e8d(0x18c)][_0x491e8d(0x17e)][_0x491e8d(0x1a7)]>0x0,this[_0x491e8d(0x19e)]();break;}}}[_0x368f0e(0x16a)](_0x545c79,_0xe94270){const _0x3d7614=_0x368f0e;for(const _0x12c60d of this[_0x3d7614(0x18c)][_0x3d7614(0x17e)]){const _0x322d03=_0x12c60d[_0x3d7614(0x1a5)](_0x545c79);if(_0x322d03){_0x322d03[_0x3d7614(0x1a4)](_0xe94270);break;}}}[_0x368f0e(0x18e)](_0x2c7754,_0x187c5e,_0x511ac4){const _0x5a5d5c=_0x368f0e;for(const _0x27ac54 of this[_0x5a5d5c(0x18c)][_0x5a5d5c(0x17e)]){const _0x4cee48=_0x27ac54[_0x5a5d5c(0x1a5)](_0x2c7754);if(_0x4cee48){_0x4cee48[_0x5a5d5c(0x188)](_0x187c5e,_0x511ac4);break;}}}[_0x368f0e(0x19e)](){const _0x59f9f5=_0x368f0e;if(this[_0x59f9f5(0x1bd)]){const _0x19ee74=this[_0x59f9f5(0x181)][_0x59f9f5(0x190)][_0x59f9f5(0x1af)]?.[_0x59f9f5(0x1b1)]?.[_0x59f9f5(0x174)]||'';this[_0x59f9f5(0x181)][_0x59f9f5(0x1ac)](_0x19ee74);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x480fbb=_0x545b;function _0x2a04(){const _0x38062d=['uploadUrl','7nhpFHn','search','Content-Type','code','excludeEmpty','uploadFile','MAKE_LONGER','/documents','append','deleteConversation','deleteFile','/actions/custom/calls/','stringify','/files/','upsertAIReviewRating','traceId','MAKE_SHORTER','data','_apiUrl','status','100','upsertCustomAIActionRating','toString','message','keys','TRANSLATE','token','executeAction','modificationId','isOfficialPlugin','8937390MQMucP','value','_handleError','improve-writing','executeCustomAction','/conversations/','context','text','_getStreamReader','fetchConversations','CONTINUE','queryAssistant','callSystemReview','getReader','/calls','positiveCount','/reviews/custom/calls/','releaseLock','GET','startConversation','/actions/custom/calls','fetchConversationMessages','decode','/messages/','deleteDocument','init','length','upsertAIActionRating','plugins','/conversations','getModels','upsertAIChatRating','/ratings','signal','1321260aXjrGm','make-tone-casual','ai-missing-token','ai-request-failed','translate','_token','/documents/','7905075FmXjXM','3DTOYgJ','then','group','uploadDocument','request','make-shorter','file','abortController','fetchDocument','331512SBoeng','/reviews/custom/calls','json','requires','body','true','reset','get','attributes','IMPROVE_WRITING','read','deleteWebResource','name','statusText','config','FIX_GRAMMAR','updateConversation','/models/1','ai-request-aborted','PATCH','411318UfpnCX','MAKE_TONE_CASUAL','AIConnector','feed','/calls/','/reviews/system/','make-tone-formal','CloudServices','/files','isPremiumPlugin','https://ai.cke-cs.com/v1','/web-resources/','DELETE','/web-resources','parse','PUT','AbortError','fix-grammar','_decoder','limit','31993614hMdkyl','application/json','10991432rusMpr','totalCount','fetchConversation','/conversations?','pluginName','catch','items','ai.serviceUrl','define','upsertCustomAIReviewRating','POST','/actions/system/','callCustomReview','continue','make-longer','/messages','_sendApiRequest','push','MAKE_TONE_FORMAL','Bearer\x20'];_0x2a04=function(){return _0x38062d;};return _0x2a04();}(function(_0x1796f9,_0xd35268){const _0x55434c=_0x545b,_0x2b6e18=_0x1796f9();while(!![]){try{const _0xbb8d47=-parseInt(_0x55434c(0xb0))/0x1+parseInt(_0x55434c(0xd5))/0x2+parseInt(_0x55434c(0xb8))/0x3*(parseInt(_0x55434c(0xc1))/0x4)+-parseInt(_0x55434c(0xb7))/0x5+-parseInt(_0x55434c(0x8e))/0x6+-parseInt(_0x55434c(0x100))/0x7*(-parseInt(_0x55434c(0xeb))/0x8)+parseInt(_0x55434c(0xe9))/0x9;if(_0xbb8d47===_0xd35268)break;else _0x2b6e18['push'](_0x2b6e18['shift']());}catch(_0x403479){_0x2b6e18['push'](_0x2b6e18['shift']());}}}(_0x2a04,0xc9880));import{createParser as _0x4d681a}from'eventsource-parser';function _0x545b(_0x476f10,_0x2fd865){const _0x2a04a6=_0x2a04();return _0x545b=function(_0x545bb1,_0x109feb){_0x545bb1=_0x545bb1-0x78;let _0x3b2383=_0x2a04a6[_0x545bb1];return _0x3b2383;},_0x545b(_0x476f10,_0x2fd865);}import{ContextPlugin as _0x5d4aff}from'ckeditor5/src/core.js';import{CKEditorError as _0x36a24f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5e21f4){const _0x59425c=_0x545b;_0x5e21f4[_0x59425c(0x98)]=_0x59425c(0xf8),_0x5e21f4[_0x59425c(0xd0)]=_0x59425c(0xe6),_0x5e21f4[_0x59425c(0xca)]=_0x59425c(0x91),_0x5e21f4[_0x59425c(0x106)]=_0x59425c(0xf9),_0x5e21f4[_0x59425c(0x80)]=_0x59425c(0xbd),_0x5e21f4[_0x59425c(0xd6)]=_0x59425c(0xb1),_0x5e21f4[_0x59425c(0xfd)]=_0x59425c(0xdb),_0x5e21f4[_0x59425c(0x89)]=_0x59425c(0xb4);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5d4aff{[_0x480fbb(0x82)];[_0x480fbb(0xb5)];[_0x480fbb(0xe7)];static get[_0x480fbb(0xc4)](){const _0x2655c7=_0x480fbb;return[_0x2655c7(0xdc)];}static get[_0x480fbb(0xef)](){const _0x27d12c=_0x480fbb;return _0x27d12c(0xd7);}static get[_0x480fbb(0x8d)](){return!0x0;}static get[_0x480fbb(0xde)](){return!0x0;}constructor(_0x3c18f3){const _0xe09b55=_0x480fbb;super(_0x3c18f3),this[_0xe09b55(0x94)][_0xe09b55(0xcf)][_0xe09b55(0xf3)](_0xe09b55(0xf2),_0xe09b55(0xdf)),this[_0xe09b55(0x82)]=this[_0xe09b55(0x94)][_0xe09b55(0xcf)][_0xe09b55(0xc8)](_0xe09b55(0xf2)),this[_0xe09b55(0xb5)]=null,this[_0xe09b55(0xe7)]=new TextDecoder();}[_0x480fbb(0xa7)](){const _0x37cf1c=_0x480fbb,_0x24e32d=this[_0x37cf1c(0x94)][_0x37cf1c(0xaa)][_0x37cf1c(0xc8)](_0x37cf1c(0xdc));if(!_0x24e32d[_0x37cf1c(0x8a)])throw new _0x36a24f(_0x37cf1c(0xb2),this);this[_0x37cf1c(0xb5)]=_0x24e32d[_0x37cf1c(0x8a)];}[_0x480fbb(0xa1)](_0x169e08,_0x175eca){const _0x64d6f0=_0x480fbb,_0x1f8234=this[_0x64d6f0(0xfb)](_0x64d6f0(0xab),_0x64d6f0(0xf5),{'id':_0x169e08,'group':_0x175eca});return{'getConversation':async()=>(await _0x1f8234[_0x64d6f0(0xbc)])[_0x64d6f0(0xc3)](),'abortController':_0x1f8234[_0x64d6f0(0xbf)]};}[_0x480fbb(0x99)]({message:_0x516ac9,conversationId:_0x1966f0,parts:_0x540dfe,capabilities:_0x986d55,model:_0x381fe1,quickActionData:_0x2951fd}){const _0x1e2036=_0x480fbb,_0x23107d={..._0x2951fd&&{'quickActionData':_0x2951fd}},_0x33b1e4={'prompt':_0x516ac9,'content':_0x540dfe,'model':_0x381fe1,..._0x986d55&&{'capabilities':_0x986d55},...Object[_0x1e2036(0x88)](_0x23107d)[_0x1e2036(0xa8)]>0x0&&{'attributes':_0x23107d}},_0xefab30=this[_0x1e2036(0xfb)](_0x1e2036(0x93)+_0x1966f0+_0x1e2036(0xfa),_0x1e2036(0xf5),_0x33b1e4);return{'getStream':async()=>{const _0x4e1b68=_0x1e2036,_0x54ea59=(await _0xefab30[_0x4e1b68(0xbc)])[_0x4e1b68(0xc5)];return this[_0x4e1b68(0x96)](_0x54ea59);},'abortController':_0xefab30[_0x1e2036(0xbf)]};}[_0x480fbb(0x92)]({content:_0x38c3fc,message:_0x94452a,model:_0x3b5991,outputFormat:_0x4e6973}){const _0x20d468=_0x480fbb,_0x31f0ec={'content':[{'type':_0x20d468(0x95),'content':_0x38c3fc}],'prompt':_0x94452a,'model':_0x3b5991,'outputFormat':_0x4e6973},_0x39d828=this[_0x20d468(0xfb)](_0x20d468(0xa2),_0x20d468(0xf5),_0x31f0ec);return{'getStream':async()=>{const _0x34f035=_0x20d468,_0x3ed809=(await _0x39d828[_0x34f035(0xbc)])[_0x34f035(0xc5)];return this[_0x34f035(0x96)](_0x3ed809);},'abortController':_0x39d828[_0x20d468(0xbf)]};}[_0x480fbb(0x8b)]({actionName:_0x8770e5,content:_0x3f8334,args:_0x46f4ba}){const _0x4a672c=_0x480fbb,_0x503533={'content':[{'type':_0x4a672c(0x95),'content':_0x3f8334}],'args':_0x46f4ba},_0x128f56=this[_0x4a672c(0xfb)](_0x4a672c(0xf6)+_0x8770e5+_0x4a672c(0x9c),_0x4a672c(0xf5),_0x503533);return{'getStream':async()=>{const _0x4409b0=_0x4a672c,_0xd21308=(await _0x128f56[_0x4409b0(0xbc)])[_0x4409b0(0xc5)];return this[_0x4409b0(0x96)](_0xd21308);},'abortController':_0x128f56[_0x4a672c(0xbf)]};}[_0x480fbb(0x105)](_0x3b7ed1,_0x46bcb9,_0x4da7f8){const _0x3b1e16=_0x480fbb,_0x46f61c=new FormData();_0x46f61c[_0x3b1e16(0x78)](_0x3b1e16(0xbe),_0x46bcb9,_0x46bcb9[_0x3b1e16(0xcd)]),_0x4da7f8&&_0x46f61c[_0x3b1e16(0x78)](_0x3b1e16(0xc9),JSON[_0x3b1e16(0x7c)](_0x4da7f8));const _0x1861a9=this[_0x3b1e16(0xfb)](_0x3b1e16(0x93)+_0x3b7ed1+_0x3b1e16(0xdd),_0x3b1e16(0xf5),_0x46f61c);return{'getId':async()=>(await _0x1861a9[_0x3b1e16(0xbc)])[_0x3b1e16(0xc3)](),'abortController':_0x1861a9[_0x3b1e16(0xbf)]};}[_0x480fbb(0xc0)](_0x226320,_0x41de00){const _0x49b0c0=_0x480fbb,_0x1441d7=this[_0x49b0c0(0xfb)](_0x49b0c0(0x93)+_0x226320+_0x49b0c0(0xb6)+_0x41de00,_0x49b0c0(0xa0));return{'getDocument':async()=>(await _0x1441d7[_0x49b0c0(0xbc)])[_0x49b0c0(0xc3)](),'abortController':_0x1441d7[_0x49b0c0(0xbf)]};}[_0x480fbb(0xbb)](_0x1766b1,_0x5a0087,_0x554c3e){const _0x642fbc=_0x480fbb,_0x2e7c41={'content':_0x5a0087};_0x554c3e&&(_0x2e7c41[_0x642fbc(0xc9)]=_0x554c3e);const _0x453d54=this[_0x642fbc(0xfb)](_0x642fbc(0x93)+_0x1766b1+_0x642fbc(0x107),_0x642fbc(0xf5),_0x2e7c41);return{'getId':async()=>(await _0x453d54[_0x642fbc(0xbc)])[_0x642fbc(0xc3)](),'abortController':_0x453d54[_0x642fbc(0xbf)]};}[_0x480fbb(0x97)](_0xf8b22d,_0x30b965){const _0x3c219a=_0x480fbb,_0x4a405b=new URLSearchParams();_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0x104),_0x3c219a(0xc6)),_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0xe8),_0x3c219a(0x84)),_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0xba),_0xf8b22d),_0x30b965&&_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0x101),_0x30b965);const _0x509f3f=this[_0x3c219a(0xfb)](_0x3c219a(0xee)+_0x4a405b[_0x3c219a(0x86)](),_0x3c219a(0xa0));return{'getConversations':async()=>{const _0x1b8aea=_0x3c219a,_0x30b15d=await _0x509f3f[_0x1b8aea(0xbc)];return(await _0x30b15d[_0x1b8aea(0xc3)]())[_0x1b8aea(0xf1)];},'abortController':_0x509f3f[_0x3c219a(0xbf)]};}[_0x480fbb(0x79)](_0x8607f8){const _0x500068=_0x480fbb,_0x5a99a0=this[_0x500068(0xfb)](_0x500068(0x93)+_0x8607f8,_0x500068(0xe1));return{'execute':async()=>{const _0x2165e6=_0x500068;await _0x5a99a0[_0x2165e6(0xbc)];},'abortController':_0x5a99a0[_0x500068(0xbf)]};}[_0x480fbb(0xd1)](_0x128dd3,_0x4d149f){const _0x29320f=_0x480fbb,_0x4dbb7e=this[_0x29320f(0xfb)](_0x29320f(0x93)+_0x128dd3,_0x29320f(0xd4),_0x4d149f);return{'getResult':async()=>(await _0x4dbb7e[_0x29320f(0xbc)],_0x4d149f),'abortController':_0x4dbb7e[_0x29320f(0xbf)]};}[_0x480fbb(0xed)](_0x71db38){const _0x320885=_0x480fbb,_0x4bb4af=this[_0x320885(0xfb)](_0x320885(0x93)+_0x71db38,_0x320885(0xa0));return{'getConversation':async()=>(await _0x4bb4af[_0x320885(0xbc)])[_0x320885(0xc3)](),'abortController':_0x4bb4af[_0x320885(0xbf)]};}[_0x480fbb(0xa3)](_0x35d40b){const _0x4bbec2=_0x480fbb,_0x537857=this[_0x4bbec2(0xfb)](_0x4bbec2(0x93)+_0x35d40b+_0x4bbec2(0xfa),_0x4bbec2(0xa0));return{'getMessages':async()=>{const _0x7f2c9b=_0x4bbec2,_0x26d2c8=await _0x537857[_0x7f2c9b(0xbc)];return(await _0x26d2c8[_0x7f2c9b(0xc3)]())[_0x7f2c9b(0xf1)];},'abortController':_0x537857[_0x4bbec2(0xbf)]};}[_0x480fbb(0xff)](_0x2b118b,_0x2f0375,_0x5c2f0a){const _0x4f1035=_0x480fbb,_0x56b122=this[_0x4f1035(0xfb)](_0x4f1035(0x93)+_0x2b118b+_0x4f1035(0xe2),_0x4f1035(0xf5),{'url':_0x2f0375,'attributes':_0x5c2f0a});return{'getId':async()=>(await _0x56b122[_0x4f1035(0xbc)])[_0x4f1035(0xc3)](),'abortController':_0x56b122[_0x4f1035(0xbf)]};}[_0x480fbb(0xac)](){const _0x5ddd6a=_0x480fbb,_0x498cd8=this[_0x5ddd6a(0xfb)](_0x5ddd6a(0xd2),_0x5ddd6a(0xa0));return{'list':async()=>await(await _0x498cd8[_0x5ddd6a(0xbc)])[_0x5ddd6a(0xc3)](),'abortController':_0x498cd8[_0x5ddd6a(0xbf)]};}[_0x480fbb(0x7a)](_0x56d10d,_0x4fdd53){const _0x30c007=_0x480fbb,_0x1fabf3=this[_0x30c007(0xfb)](_0x30c007(0x93)+_0x56d10d+_0x30c007(0x7d)+_0x4fdd53,_0x30c007(0xe1));return{'execute':async()=>{const _0x4ed6fd=_0x30c007;await _0x1fabf3[_0x4ed6fd(0xbc)];},'abortController':_0x1fabf3[_0x30c007(0xbf)]};}[_0x480fbb(0xa6)](_0x40eecf,_0x11b2ee){const _0x3db7cc=_0x480fbb,_0x5b6fe1=this[_0x3db7cc(0xfb)](_0x3db7cc(0x93)+_0x40eecf+_0x3db7cc(0xb6)+_0x11b2ee,_0x3db7cc(0xe1));return{'execute':async()=>{const _0x210c77=_0x3db7cc;await _0x5b6fe1[_0x210c77(0xbc)];},'abortController':_0x5b6fe1[_0x3db7cc(0xbf)]};}[_0x480fbb(0xcc)](_0x56db7f,_0x166973){const _0x49462b=_0x480fbb,_0x306604=this[_0x49462b(0xfb)](_0x49462b(0x93)+_0x56db7f+_0x49462b(0xe0)+_0x166973,_0x49462b(0xe1));return{'execute':async()=>{const _0x58e10d=_0x49462b;await _0x306604[_0x58e10d(0xbc)];},'abortController':_0x306604[_0x49462b(0xbf)]};}[_0x480fbb(0x9a)]({reviewName:_0x57ffa1,content:_0x43bad3,args:_0x3ec8e9}){const _0xd77d04=_0x480fbb,_0x169c95=this[_0xd77d04(0xfb)](_0xd77d04(0xda)+_0x57ffa1+_0xd77d04(0x9c),_0xd77d04(0xf5),{'content':[{'type':_0xd77d04(0x95),'content':_0x43bad3}],'args':_0x3ec8e9});return{'getStream':async()=>{const _0x2a1295=_0xd77d04,_0x2092d7=(await _0x169c95[_0x2a1295(0xbc)])[_0x2a1295(0xc5)];return this[_0x2a1295(0x96)](_0x2092d7);},'abortController':_0x169c95[_0xd77d04(0xbf)]};}[_0x480fbb(0xf7)]({content:_0x4ab3ab,prompt:_0x515d39,model:_0x3c7544}){const _0x3f0d95=_0x480fbb,_0x55f2b6=this[_0x3f0d95(0xfb)](_0x3f0d95(0xc2),_0x3f0d95(0xf5),{'content':[{'type':_0x3f0d95(0x95),'content':_0x4ab3ab}],'prompt':_0x515d39,'model':_0x3c7544});return{'getStream':async()=>{const _0x4b0d0c=_0x3f0d95,_0x11c932=(await _0x55f2b6[_0x4b0d0c(0xbc)])[_0x4b0d0c(0xc5)];return this[_0x4b0d0c(0x96)](_0x11c932);},'abortController':_0x55f2b6[_0x3f0d95(0xbf)]};}[_0x480fbb(0xad)](_0x3ce1a3,_0x3d8033,_0x558a57){const _0x29065d=_0x480fbb,_0x244987=this[_0x29065d(0xfb)](_0x29065d(0x93)+_0x3ce1a3+_0x29065d(0xa5)+_0x3d8033+_0x29065d(0xae),_0x29065d(0xe4),{'positiveCount':_0x558a57[_0x29065d(0x9d)],'totalCount':_0x558a57[_0x29065d(0xec)],'modificationId':_0x558a57[_0x29065d(0x8c)]});return{'execute':async()=>{const _0x13213c=_0x29065d;await _0x244987[_0x13213c(0xbc)];},'abortController':_0x244987[_0x29065d(0xbf)]};}[_0x480fbb(0xa9)](_0x5ad651,_0x101e4,_0x2482fa){const _0xc53f4c=_0x480fbb,_0x34916f=this[_0xc53f4c(0xfb)](_0xc53f4c(0xf6)+_0x5ad651+_0xc53f4c(0xd9)+_0x101e4+_0xc53f4c(0xae),_0xc53f4c(0xe4),{'positiveCount':_0x2482fa[_0xc53f4c(0x9d)],'totalCount':_0x2482fa[_0xc53f4c(0xec)]});return{'execute':async()=>{const _0x36c23f=_0xc53f4c;await _0x34916f[_0x36c23f(0xbc)];},'abortController':_0x34916f[_0xc53f4c(0xbf)]};}[_0x480fbb(0x85)](_0xfcc7c5,_0x42bfce){const _0x2e833d=_0x480fbb,_0x494ab0=this[_0x2e833d(0xfb)](_0x2e833d(0x7b)+_0xfcc7c5+_0x2e833d(0xae),_0x2e833d(0xe4),{'positiveCount':_0x42bfce[_0x2e833d(0x9d)],'totalCount':_0x42bfce[_0x2e833d(0xec)]});return{'execute':async()=>{const _0x463be1=_0x2e833d;await _0x494ab0[_0x463be1(0xbc)];},'abortController':_0x494ab0[_0x2e833d(0xbf)]};}[_0x480fbb(0x7e)](_0x59a88a,_0x1a4829,_0x47b63f,_0x49341b){const _0x58a0af=_0x480fbb,_0x3280e7=this[_0x58a0af(0xfb)](_0x58a0af(0xda)+_0x59a88a+_0x58a0af(0xd9)+_0x1a4829+_0x58a0af(0xae),_0x58a0af(0xe4),{'positiveCount':_0x47b63f[_0x58a0af(0x9d)],'totalCount':_0x47b63f[_0x58a0af(0xec)],'dataId':_0x49341b});return{'execute':async()=>{const _0x52ae86=_0x58a0af;await _0x3280e7[_0x52ae86(0xbc)];},'abortController':_0x3280e7[_0x58a0af(0xbf)]};}[_0x480fbb(0xf4)](_0x1f7278,_0x3813c6,_0x57dcb2){const _0x20117a=_0x480fbb,_0x4249ef=this[_0x20117a(0xfb)](_0x20117a(0x9e)+_0x1f7278+_0x20117a(0xae),_0x20117a(0xe4),{'positiveCount':_0x3813c6[_0x20117a(0x9d)],'totalCount':_0x3813c6[_0x20117a(0xec)],'dataId':_0x57dcb2});return{'execute':async()=>{const _0x1336fe=_0x20117a;await _0x4249ef[_0x1336fe(0xbc)];},'abortController':_0x4249ef[_0x20117a(0xbf)]};}[_0x480fbb(0xfb)](_0x44529a,_0x437daf,_0x34dd11){const _0xcaad52=_0x480fbb,_0x2ad9d6=new AbortController(),_0x2080f5=_0x34dd11 instanceof FormData,_0x47f7a7={'Authorization':_0xcaad52(0xfe)+this[_0xcaad52(0xb5)]?.[_0xcaad52(0x8f)]};_0x34dd11&&!_0x2080f5&&(_0x47f7a7[_0xcaad52(0x102)]=_0xcaad52(0xea));const _0x24a637={'method':_0x437daf,'headers':_0x47f7a7,'signal':_0x2ad9d6[_0xcaad52(0xaf)]};return _0x34dd11&&(_0x24a637[_0xcaad52(0xc5)]=_0x2080f5?_0x34dd11:JSON[_0xcaad52(0x7c)](_0x34dd11)),{'request':fetch(''+this[_0xcaad52(0x82)]+_0x44529a,_0x24a637)[_0xcaad52(0xf0)](_0x35bea5=>{const _0x4c6a21=_0xcaad52;this[_0x4c6a21(0x90)](_0x35bea5);})[_0xcaad52(0xb9)](_0x50e112=>_0x50e112['ok']?_0x50e112:_0x50e112[_0xcaad52(0xc3)]()[_0xcaad52(0xb9)](_0x4751b0=>{const _0x1cf6c1=_0xcaad52;throw{'url':this[_0x1cf6c1(0x82)],'path':_0x44529a,'method':_0x437daf,'body':_0x34dd11,'status':(_0x50e112||{})[_0x1cf6c1(0x83)],'statusText':(_0x50e112||{})[_0x1cf6c1(0xce)],'code':_0x4751b0[_0x1cf6c1(0x103)],'message':_0x4751b0[_0x1cf6c1(0x87)],'traceId':_0x4751b0[_0x1cf6c1(0x7f)]};})),'abortController':_0x2ad9d6};}async*[_0x480fbb(0x96)](_0x48d386){const _0x478f53=_0x480fbb,_0x5c8cb4=[],_0x5c02f3=_0x48d386[_0x478f53(0x9b)](),_0x36f0ec=_0x4d681a({'onError':_0x3fc987=>{const _0x52a607=_0x478f53;this[_0x52a607(0x90)](_0x3fc987);},'onEvent':_0x2b8131=>{const _0x1857d0=_0x478f53;_0x2b8131[_0x1857d0(0x81)]=JSON[_0x1857d0(0xe3)](_0x2b8131[_0x1857d0(0x81)]),_0x5c8cb4[_0x1857d0(0xfc)](_0x2b8131);}});try{let _0x2c8f63=!0x1;for(;!_0x2c8f63;){const {done:_0x1f1e8d,value:_0xaeb6b}=await _0x5c02f3[_0x478f53(0xcb)]();_0x1f1e8d&&(_0x2c8f63=!0x0),_0x36f0ec[_0x478f53(0xd8)](this[_0x478f53(0xe7)][_0x478f53(0xa4)](_0xaeb6b,{'stream':!0x0})),yield*_0x5c8cb4,_0x5c8cb4[_0x478f53(0xa8)]=0x0;}}catch(_0x236a08){this[_0x478f53(0x90)](_0x236a08);}finally{_0x5c02f3[_0x478f53(0x9f)](),_0x36f0ec[_0x478f53(0xc7)]();}}[_0x480fbb(0x90)](_0x5c65c0){const _0x22f1aa=_0x480fbb;if(_0x5c65c0 instanceof _0x36a24f)throw _0x5c65c0;if(_0x5c65c0 instanceof Error&&_0x22f1aa(0xe5)===_0x5c65c0[_0x22f1aa(0xcd)])throw new _0x36a24f(_0x22f1aa(0xd3),this,{'originalError':_0x5c65c0});throw new _0x36a24f(_0x22f1aa(0xb3),this,{'originalError':_0x5c65c0});}}
|
|
23
|
+
function _0x3749(){const _0x4b342c=['AIConnector','name','fix-grammar','395aUVwZu','toString','12013560eljrvv','config','PUT','/actions/system/','init','status','CloudServices','ai-request-aborted','make-tone-casual','100','/messages/','/documents/','updateConversation','upsertAIReviewRating','DELETE','/reviews/custom/calls','code','callSystemReview','/conversations/','feed','length','ai.serviceUrl','/documents','GET','define','improve-writing','search','ai-request-failed','PATCH','reset','MAKE_TONE_CASUAL','6EzSjpG','499580emDIEy','/actions/custom/calls/','get','then','4678956duDgyF','json','continue','POST','uploadFile','https://ai.cke-cs.com/v1','/files','plugins','IMPROVE_WRITING','upsertCustomAIReviewRating','_getStreamReader','deleteWebResource','read','parse','isOfficialPlugin','upsertAIChatRating','true','uploadDocument','value','items','/models/1','limit','requires','/web-resources/','FIX_GRAMMAR','excludeEmpty','/conversations?','startConversation','pluginName','attributes','/messages','/web-resources','_sendApiRequest','context','MAKE_LONGER','ai-missing-token','deleteFile','/reviews/system/','AbortError','fetchDocument','make-tone-formal','getModels','fetchConversationMessages','Content-Type','executeCustomAction','append','executeAction','stringify','7Nrunoh','queryAssistant','catch','upsertCustomAIActionRating','Bearer\x20','fetchConversation','/actions/custom/calls','TRANSLATE','keys','application/json','signal','/conversations','releaseLock','1457582fjZnrd','statusText','MAKE_SHORTER','abortController','translate','_apiUrl','/ratings','_decoder','file','modificationId','getReader','/files/','make-longer','fetchConversations','decode','CONTINUE','request','/calls/','totalCount','message','_token','MAKE_TONE_FORMAL','positiveCount','callCustomReview','deleteConversation','text','_handleError','data','uploadUrl','deleteDocument','isPremiumPlugin','5997380ApfXdJ','make-shorter','push','token','9603688ELwMjF','/calls','upsertAIActionRating','group','/reviews/custom/calls/','traceId','body'];_0x3749=function(){return _0x4b342c;};return _0x3749();}const _0x25b8a5=_0x434e;(function(_0x1711fc,_0x41c009){const _0xc3eaca=_0x434e,_0x2974f0=_0x1711fc();while(!![]){try{const _0x466f2f=parseInt(_0xc3eaca(0x230))/0x1+-parseInt(_0xc3eaca(0x203))/0x2*(parseInt(_0xc3eaca(0x251))/0x3)+parseInt(_0xc3eaca(0x222))/0x4+-parseInt(_0xc3eaca(0x252))/0x5+parseInt(_0xc3eaca(0x1c6))/0x6+parseInt(_0xc3eaca(0x1f6))/0x7*(-parseInt(_0xc3eaca(0x226))/0x8)+parseInt(_0xc3eaca(0x232))/0x9;if(_0x466f2f===_0x41c009)break;else _0x2974f0['push'](_0x2974f0['shift']());}catch(_0x3aed44){_0x2974f0['push'](_0x2974f0['shift']());}}}(_0x3749,0xd117f));import{createParser as _0x470ed6}from'eventsource-parser';import{ContextPlugin as _0x31bb9e}from'ckeditor5/src/core.js';function _0x434e(_0x50e016,_0x4a125f){const _0x37494f=_0x3749();return _0x434e=function(_0x434e9b,_0x4726ec){_0x434e9b=_0x434e9b-0x1c3;let _0x6814a9=_0x37494f[_0x434e9b];return _0x6814a9;},_0x434e(_0x50e016,_0x4a125f);}import{CKEditorError as _0x2a576c}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1f752e){const _0x2d4a45=_0x434e;_0x1f752e[_0x2d4a45(0x212)]=_0x2d4a45(0x1c8),_0x1f752e[_0x2d4a45(0x1de)]=_0x2d4a45(0x22f),_0x1f752e[_0x2d4a45(0x1ce)]=_0x2d4a45(0x24b),_0x1f752e[_0x2d4a45(0x1e8)]=_0x2d4a45(0x20f),_0x1f752e[_0x2d4a45(0x205)]=_0x2d4a45(0x223),_0x1f752e[_0x2d4a45(0x250)]=_0x2d4a45(0x23a),_0x1f752e[_0x2d4a45(0x218)]=_0x2d4a45(0x1ee),_0x1f752e[_0x2d4a45(0x1fd)]=_0x2d4a45(0x207);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x31bb9e{[_0x25b8a5(0x208)];[_0x25b8a5(0x217)];[_0x25b8a5(0x20a)];static get[_0x25b8a5(0x1dc)](){const _0x50552c=_0x25b8a5;return[_0x50552c(0x238)];}static get[_0x25b8a5(0x1e2)](){const _0x3b02fe=_0x25b8a5;return _0x3b02fe(0x22d);}static get[_0x25b8a5(0x1d4)](){return!0x0;}static get[_0x25b8a5(0x221)](){return!0x0;}constructor(_0x2f674b){const _0x4bfa8d=_0x25b8a5;super(_0x2f674b),this[_0x4bfa8d(0x1e7)][_0x4bfa8d(0x233)][_0x4bfa8d(0x24a)](_0x4bfa8d(0x247),_0x4bfa8d(0x1cb)),this[_0x4bfa8d(0x208)]=this[_0x4bfa8d(0x1e7)][_0x4bfa8d(0x233)][_0x4bfa8d(0x1c4)](_0x4bfa8d(0x247)),this[_0x4bfa8d(0x217)]=null,this[_0x4bfa8d(0x20a)]=new TextDecoder();}[_0x25b8a5(0x236)](){const _0x5fd496=_0x25b8a5,_0x4f9705=this[_0x5fd496(0x1e7)][_0x5fd496(0x1cd)][_0x5fd496(0x1c4)](_0x5fd496(0x238));if(!_0x4f9705[_0x5fd496(0x225)])throw new _0x2a576c(_0x5fd496(0x1e9),this);this[_0x5fd496(0x217)]=_0x4f9705[_0x5fd496(0x225)];}[_0x25b8a5(0x1e1)](_0x3037b5,_0x2ffc0b){const _0x12d202=_0x25b8a5,_0x4b53c6=this[_0x12d202(0x1e6)](_0x12d202(0x201),_0x12d202(0x1c9),{'id':_0x3037b5,'group':_0x2ffc0b});return{'getConversation':async()=>(await _0x4b53c6[_0x12d202(0x213)])[_0x12d202(0x1c7)](),'abortController':_0x4b53c6[_0x12d202(0x206)]};}[_0x25b8a5(0x1f7)]({message:_0x238726,conversationId:_0x57c4c4,parts:_0x4b8131,capabilities:_0xc41d72,model:_0x1400f8,quickActionData:_0x2fa062}){const _0x3609eb=_0x25b8a5,_0x58734d={..._0x2fa062&&{'quickActionData':_0x2fa062}},_0x61afca={'prompt':_0x238726,'content':_0x4b8131,'model':_0x1400f8,..._0xc41d72&&{'capabilities':_0xc41d72},...Object[_0x3609eb(0x1fe)](_0x58734d)[_0x3609eb(0x246)]>0x0&&{'attributes':_0x58734d}},_0x221291=this[_0x3609eb(0x1e6)](_0x3609eb(0x244)+_0x57c4c4+_0x3609eb(0x1e4),_0x3609eb(0x1c9),_0x61afca);return{'getStream':async()=>{const _0x1b7976=_0x3609eb,_0x4692de=(await _0x221291[_0x1b7976(0x213)])[_0x1b7976(0x22c)];return this[_0x1b7976(0x1d0)](_0x4692de);},'abortController':_0x221291[_0x3609eb(0x206)]};}[_0x25b8a5(0x1f2)]({content:_0x47ad34,message:_0x13f310,model:_0x16f198,outputFormat:_0x167076}){const _0x4a0413=_0x25b8a5,_0x2cd9ca={'content':[{'type':_0x4a0413(0x21c),'content':_0x47ad34}],'prompt':_0x13f310,'model':_0x16f198,'outputFormat':_0x167076},_0x1a4a88=this[_0x4a0413(0x1e6)](_0x4a0413(0x1fc),_0x4a0413(0x1c9),_0x2cd9ca);return{'getStream':async()=>{const _0x11cb14=_0x4a0413,_0x162edd=(await _0x1a4a88[_0x11cb14(0x213)])[_0x11cb14(0x22c)];return this[_0x11cb14(0x1d0)](_0x162edd);},'abortController':_0x1a4a88[_0x4a0413(0x206)]};}[_0x25b8a5(0x1f4)]({actionName:_0x39dfec,content:_0x2646f5,args:_0x5d393c}){const _0x55201e=_0x25b8a5,_0x13e5fc={'content':[{'type':_0x55201e(0x21c),'content':_0x2646f5}],'args':_0x5d393c},_0x53b6c7=this[_0x55201e(0x1e6)](_0x55201e(0x235)+_0x39dfec+_0x55201e(0x227),_0x55201e(0x1c9),_0x13e5fc);return{'getStream':async()=>{const _0x1d9dfe=_0x55201e,_0x53dc29=(await _0x53b6c7[_0x1d9dfe(0x213)])[_0x1d9dfe(0x22c)];return this[_0x1d9dfe(0x1d0)](_0x53dc29);},'abortController':_0x53b6c7[_0x55201e(0x206)]};}[_0x25b8a5(0x1ca)](_0x20dd8e,_0xdb9839,_0x20dd53){const _0x3fbced=_0x25b8a5,_0x486366=new FormData();_0x486366[_0x3fbced(0x1f3)](_0x3fbced(0x20b),_0xdb9839,_0xdb9839[_0x3fbced(0x22e)]),_0x20dd53&&_0x486366[_0x3fbced(0x1f3)](_0x3fbced(0x1e3),JSON[_0x3fbced(0x1f5)](_0x20dd53));const _0x41f90a=this[_0x3fbced(0x1e6)](_0x3fbced(0x244)+_0x20dd8e+_0x3fbced(0x1cc),_0x3fbced(0x1c9),_0x486366);return{'getId':async()=>(await _0x41f90a[_0x3fbced(0x213)])[_0x3fbced(0x1c7)](),'abortController':_0x41f90a[_0x3fbced(0x206)]};}[_0x25b8a5(0x1ed)](_0x3dac28,_0x2da20a){const _0x5f21ab=_0x25b8a5,_0x5d2796=this[_0x5f21ab(0x1e6)](_0x5f21ab(0x244)+_0x3dac28+_0x5f21ab(0x23d)+_0x2da20a,_0x5f21ab(0x249));return{'getDocument':async()=>(await _0x5d2796[_0x5f21ab(0x213)])[_0x5f21ab(0x1c7)](),'abortController':_0x5d2796[_0x5f21ab(0x206)]};}[_0x25b8a5(0x1d7)](_0x5406f6,_0x348083,_0x4076f6){const _0x656199=_0x25b8a5,_0x543a87={'content':_0x348083};_0x4076f6&&(_0x543a87[_0x656199(0x1e3)]=_0x4076f6);const _0x327127=this[_0x656199(0x1e6)](_0x656199(0x244)+_0x5406f6+_0x656199(0x248),_0x656199(0x1c9),_0x543a87);return{'getId':async()=>(await _0x327127[_0x656199(0x213)])[_0x656199(0x1c7)](),'abortController':_0x327127[_0x656199(0x206)]};}[_0x25b8a5(0x210)](_0x325729,_0x1d1ce8){const _0x2d8bb2=_0x25b8a5,_0xd2b64=new URLSearchParams();_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x1df),_0x2d8bb2(0x1d6)),_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x1db),_0x2d8bb2(0x23b)),_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x229),_0x325729),_0x1d1ce8&&_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x24c),_0x1d1ce8);const _0x2e0400=this[_0x2d8bb2(0x1e6)](_0x2d8bb2(0x1e0)+_0xd2b64[_0x2d8bb2(0x231)](),_0x2d8bb2(0x249));return{'getConversations':async()=>{const _0x594b0c=_0x2d8bb2,_0x5356fa=await _0x2e0400[_0x594b0c(0x213)];return(await _0x5356fa[_0x594b0c(0x1c7)]())[_0x594b0c(0x1d9)];},'abortController':_0x2e0400[_0x2d8bb2(0x206)]};}[_0x25b8a5(0x21b)](_0x2f99be){const _0x489199=_0x25b8a5,_0x57b3d9=this[_0x489199(0x1e6)](_0x489199(0x244)+_0x2f99be,_0x489199(0x240));return{'execute':async()=>{const _0xd01d71=_0x489199;await _0x57b3d9[_0xd01d71(0x213)];},'abortController':_0x57b3d9[_0x489199(0x206)]};}[_0x25b8a5(0x23e)](_0x5ae218,_0x205b2c){const _0x3a7beb=_0x25b8a5,_0x3832da=this[_0x3a7beb(0x1e6)](_0x3a7beb(0x244)+_0x5ae218,_0x3a7beb(0x24e),_0x205b2c);return{'getResult':async()=>(await _0x3832da[_0x3a7beb(0x213)],_0x205b2c),'abortController':_0x3832da[_0x3a7beb(0x206)]};}[_0x25b8a5(0x1fb)](_0x49aecf){const _0x5b5e9c=_0x25b8a5,_0x5c3744=this[_0x5b5e9c(0x1e6)](_0x5b5e9c(0x244)+_0x49aecf,_0x5b5e9c(0x249));return{'getConversation':async()=>(await _0x5c3744[_0x5b5e9c(0x213)])[_0x5b5e9c(0x1c7)](),'abortController':_0x5c3744[_0x5b5e9c(0x206)]};}[_0x25b8a5(0x1f0)](_0x45cad1){const _0x13a7d3=_0x25b8a5,_0x5b399a=this[_0x13a7d3(0x1e6)](_0x13a7d3(0x244)+_0x45cad1+_0x13a7d3(0x1e4),_0x13a7d3(0x249));return{'getMessages':async()=>{const _0x1dd12d=_0x13a7d3,_0x5d22c5=await _0x5b399a[_0x1dd12d(0x213)];return(await _0x5d22c5[_0x1dd12d(0x1c7)]())[_0x1dd12d(0x1d9)];},'abortController':_0x5b399a[_0x13a7d3(0x206)]};}[_0x25b8a5(0x21f)](_0x448823,_0x41df89,_0x5b3db9){const _0x2979f9=_0x25b8a5,_0xcfa8be=this[_0x2979f9(0x1e6)](_0x2979f9(0x244)+_0x448823+_0x2979f9(0x1e5),_0x2979f9(0x1c9),{'url':_0x41df89,'attributes':_0x5b3db9});return{'getId':async()=>(await _0xcfa8be[_0x2979f9(0x213)])[_0x2979f9(0x1c7)](),'abortController':_0xcfa8be[_0x2979f9(0x206)]};}[_0x25b8a5(0x1ef)](){const _0x1d5547=_0x25b8a5,_0x418609=this[_0x1d5547(0x1e6)](_0x1d5547(0x1da),_0x1d5547(0x249));return{'list':async()=>await(await _0x418609[_0x1d5547(0x213)])[_0x1d5547(0x1c7)](),'abortController':_0x418609[_0x1d5547(0x206)]};}[_0x25b8a5(0x1ea)](_0xec7b76,_0x4c9cbd){const _0x127cea=_0x25b8a5,_0x280f6d=this[_0x127cea(0x1e6)](_0x127cea(0x244)+_0xec7b76+_0x127cea(0x20e)+_0x4c9cbd,_0x127cea(0x240));return{'execute':async()=>{const _0xbc52f0=_0x127cea;await _0x280f6d[_0xbc52f0(0x213)];},'abortController':_0x280f6d[_0x127cea(0x206)]};}[_0x25b8a5(0x220)](_0x51a941,_0x3b6567){const _0xf50829=_0x25b8a5,_0x239f69=this[_0xf50829(0x1e6)](_0xf50829(0x244)+_0x51a941+_0xf50829(0x23d)+_0x3b6567,_0xf50829(0x240));return{'execute':async()=>{const _0x1eed0f=_0xf50829;await _0x239f69[_0x1eed0f(0x213)];},'abortController':_0x239f69[_0xf50829(0x206)]};}[_0x25b8a5(0x1d1)](_0x580a0c,_0x491ff3){const _0x5aed8f=_0x25b8a5,_0x113938=this[_0x5aed8f(0x1e6)](_0x5aed8f(0x244)+_0x580a0c+_0x5aed8f(0x1dd)+_0x491ff3,_0x5aed8f(0x240));return{'execute':async()=>{const _0x1f2bb8=_0x5aed8f;await _0x113938[_0x1f2bb8(0x213)];},'abortController':_0x113938[_0x5aed8f(0x206)]};}[_0x25b8a5(0x243)]({reviewName:_0x5bafad,content:_0xea16ce,args:_0x307524}){const _0x5e0465=_0x25b8a5,_0x56e9b0=this[_0x5e0465(0x1e6)](_0x5e0465(0x1eb)+_0x5bafad+_0x5e0465(0x227),_0x5e0465(0x1c9),{'content':[{'type':_0x5e0465(0x21c),'content':_0xea16ce}],'args':_0x307524});return{'getStream':async()=>{const _0x2790c6=_0x5e0465,_0x14f774=(await _0x56e9b0[_0x2790c6(0x213)])[_0x2790c6(0x22c)];return this[_0x2790c6(0x1d0)](_0x14f774);},'abortController':_0x56e9b0[_0x5e0465(0x206)]};}[_0x25b8a5(0x21a)]({content:_0xcd4c64,prompt:_0x29fbf5,model:_0x8fdec7}){const _0x4783c3=_0x25b8a5,_0x115100=this[_0x4783c3(0x1e6)](_0x4783c3(0x241),_0x4783c3(0x1c9),{'content':[{'type':_0x4783c3(0x21c),'content':_0xcd4c64}],'prompt':_0x29fbf5,'model':_0x8fdec7});return{'getStream':async()=>{const _0x4003f1=_0x4783c3,_0x1e0dc7=(await _0x115100[_0x4003f1(0x213)])[_0x4003f1(0x22c)];return this[_0x4003f1(0x1d0)](_0x1e0dc7);},'abortController':_0x115100[_0x4783c3(0x206)]};}[_0x25b8a5(0x1d5)](_0x1e94ca,_0x15f5c4,_0x2fb648){const _0x14e5a9=_0x25b8a5,_0x597d97=this[_0x14e5a9(0x1e6)](_0x14e5a9(0x244)+_0x1e94ca+_0x14e5a9(0x23c)+_0x15f5c4+_0x14e5a9(0x209),_0x14e5a9(0x234),{'positiveCount':_0x2fb648[_0x14e5a9(0x219)],'totalCount':_0x2fb648[_0x14e5a9(0x215)],'modificationId':_0x2fb648[_0x14e5a9(0x20c)]});return{'execute':async()=>{const _0x70676d=_0x14e5a9;await _0x597d97[_0x70676d(0x213)];},'abortController':_0x597d97[_0x14e5a9(0x206)]};}[_0x25b8a5(0x228)](_0x35ef82,_0x1bb2b6,_0x494f0f){const _0x2efadd=_0x25b8a5,_0x2fe706=this[_0x2efadd(0x1e6)](_0x2efadd(0x235)+_0x35ef82+_0x2efadd(0x214)+_0x1bb2b6+_0x2efadd(0x209),_0x2efadd(0x234),{'positiveCount':_0x494f0f[_0x2efadd(0x219)],'totalCount':_0x494f0f[_0x2efadd(0x215)]});return{'execute':async()=>{const _0x4ee549=_0x2efadd;await _0x2fe706[_0x4ee549(0x213)];},'abortController':_0x2fe706[_0x2efadd(0x206)]};}[_0x25b8a5(0x1f9)](_0x1e3603,_0x13a7c7){const _0x4e70b4=_0x25b8a5,_0x42abc0=this[_0x4e70b4(0x1e6)](_0x4e70b4(0x1c3)+_0x1e3603+_0x4e70b4(0x209),_0x4e70b4(0x234),{'positiveCount':_0x13a7c7[_0x4e70b4(0x219)],'totalCount':_0x13a7c7[_0x4e70b4(0x215)]});return{'execute':async()=>{const _0x842fb2=_0x4e70b4;await _0x42abc0[_0x842fb2(0x213)];},'abortController':_0x42abc0[_0x4e70b4(0x206)]};}[_0x25b8a5(0x23f)](_0x49d7a7,_0x492d00,_0xdf5970,_0x4a14d4){const _0x2157a1=_0x25b8a5,_0x211c38=this[_0x2157a1(0x1e6)](_0x2157a1(0x1eb)+_0x49d7a7+_0x2157a1(0x214)+_0x492d00+_0x2157a1(0x209),_0x2157a1(0x234),{'positiveCount':_0xdf5970[_0x2157a1(0x219)],'totalCount':_0xdf5970[_0x2157a1(0x215)],'dataId':_0x4a14d4});return{'execute':async()=>{const _0x27e387=_0x2157a1;await _0x211c38[_0x27e387(0x213)];},'abortController':_0x211c38[_0x2157a1(0x206)]};}[_0x25b8a5(0x1cf)](_0x59591a,_0x5b35d3,_0x2676f1){const _0x2c9d17=_0x25b8a5,_0xd4a34e=this[_0x2c9d17(0x1e6)](_0x2c9d17(0x22a)+_0x59591a+_0x2c9d17(0x209),_0x2c9d17(0x234),{'positiveCount':_0x5b35d3[_0x2c9d17(0x219)],'totalCount':_0x5b35d3[_0x2c9d17(0x215)],'dataId':_0x2676f1});return{'execute':async()=>{const _0x18fca0=_0x2c9d17;await _0xd4a34e[_0x18fca0(0x213)];},'abortController':_0xd4a34e[_0x2c9d17(0x206)]};}[_0x25b8a5(0x1e6)](_0x5139c9,_0x4fc082,_0x48768a){const _0x5a60b5=_0x25b8a5,_0x3c137a=new AbortController(),_0x204b2d=_0x48768a instanceof FormData,_0x3ef3be={'Authorization':_0x5a60b5(0x1fa)+this[_0x5a60b5(0x217)]?.[_0x5a60b5(0x1d8)]};_0x48768a&&!_0x204b2d&&(_0x3ef3be[_0x5a60b5(0x1f1)]=_0x5a60b5(0x1ff));const _0xe2d262={'method':_0x4fc082,'headers':_0x3ef3be,'signal':_0x3c137a[_0x5a60b5(0x200)]};return _0x48768a&&(_0xe2d262[_0x5a60b5(0x22c)]=_0x204b2d?_0x48768a:JSON[_0x5a60b5(0x1f5)](_0x48768a)),{'request':fetch(''+this[_0x5a60b5(0x208)]+_0x5139c9,_0xe2d262)[_0x5a60b5(0x1f8)](_0x59ebc3=>{const _0x1452dc=_0x5a60b5;this[_0x1452dc(0x21d)](_0x59ebc3);})[_0x5a60b5(0x1c5)](_0x5df610=>_0x5df610['ok']?_0x5df610:_0x5df610[_0x5a60b5(0x1c7)]()[_0x5a60b5(0x1c5)](_0x230961=>{const _0x3f161f=_0x5a60b5;throw{'url':this[_0x3f161f(0x208)],'path':_0x5139c9,'method':_0x4fc082,'body':_0x48768a,'status':(_0x5df610||{})[_0x3f161f(0x237)],'statusText':(_0x5df610||{})[_0x3f161f(0x204)],'code':_0x230961[_0x3f161f(0x242)],'message':_0x230961[_0x3f161f(0x216)],'traceId':_0x230961[_0x3f161f(0x22b)]};})),'abortController':_0x3c137a};}async*[_0x25b8a5(0x1d0)](_0x4cb0aa){const _0x15291c=_0x25b8a5,_0x4be529=[],_0x4b9716=_0x4cb0aa[_0x15291c(0x20d)](),_0x490354=_0x470ed6({'onError':_0x1263a6=>{const _0x4af3db=_0x15291c;this[_0x4af3db(0x21d)](_0x1263a6);},'onEvent':_0x9231d9=>{const _0x455b02=_0x15291c;_0x9231d9[_0x455b02(0x21e)]=JSON[_0x455b02(0x1d3)](_0x9231d9[_0x455b02(0x21e)]),_0x4be529[_0x455b02(0x224)](_0x9231d9);}});try{let _0x220d9e=!0x1;for(;!_0x220d9e;){const {done:_0x2f9290,value:_0x23503a}=await _0x4b9716[_0x15291c(0x1d2)]();_0x2f9290&&(_0x220d9e=!0x0),_0x490354[_0x15291c(0x245)](this[_0x15291c(0x20a)][_0x15291c(0x211)](_0x23503a,{'stream':!0x0})),yield*_0x4be529,_0x4be529[_0x15291c(0x246)]=0x0;}}catch(_0x71464e){this[_0x15291c(0x21d)](_0x71464e);}finally{_0x4b9716[_0x15291c(0x202)](),_0x490354[_0x15291c(0x24f)]();}}[_0x25b8a5(0x21d)](_0x4a63fe){const _0x37bc94=_0x25b8a5;if(_0x4a63fe instanceof _0x2a576c)throw _0x4a63fe;if(_0x4a63fe instanceof Error&&_0x37bc94(0x1ec)===_0x4a63fe[_0x37bc94(0x22e)])throw new _0x2a576c(_0x37bc94(0x239),this,{'originalError':_0x4a63fe});throw new _0x2a576c(_0x37bc94(0x24d),this,{'originalError':_0x4a63fe});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x538697=_0x4c96;(function(_0x59afef,_0x476650){const _0x25bd4d=_0x4c96,_0x46b1d5=_0x59afef();while(!![]){try{const _0x12d335=parseInt(_0x25bd4d(0x20b))/0x1*(-parseInt(_0x25bd4d(0x22f))/0x2)+-parseInt(_0x25bd4d(0x1fa))/0x3+parseInt(_0x25bd4d(0x24a))/0x4+parseInt(_0x25bd4d(0x246))/0x5*(parseInt(_0x25bd4d(0x1eb))/0x6)+parseInt(_0x25bd4d(0x252))/0x7+-parseInt(_0x25bd4d(0x23e))/0x8*(parseInt(_0x25bd4d(0x232))/0x9)+parseInt(_0x25bd4d(0x1ec))/0xa;if(_0x12d335===_0x476650)break;else _0x46b1d5['push'](_0x46b1d5['shift']());}catch(_0x22df3d){_0x46b1d5['push'](_0x46b1d5['shift']());}}}(_0x32b8,0xed786));function _0x32b8(){const _0xbe6e92=['190SifHnj','createRange','editing','_setDataIdsOnChildren','3180076fNeRps','join','getMarkersGroup','isBefore','dataDowncast','removeMarker','element','context','10923955EAoaVX','afterInit','84732kDAUZs','26148680pOCmpj','fromCharCode','containerElement',':end></','toData','plugins','isPremiumPlugin','markerToHighlight','ck-ai-assistant-ui_theme','data','showFakeVisualSelection','editors','for',':end>','5263080yVfhiA','isAtEnd','model','ai-selection','change','sessionId','hideFakeVisualSelection','ai-selection:','modelToViewWithIds','getDocumentData','$textProxy','isOpening','isOfficialPlugin','_sessionId','getRoot','from','substring','92wxxbWq','getWalker','listenTo','getSelectionText','createRangeIn','ck-fake-ai-selection','AIEditing','setAttribute','view','name','version','isAfter','getLastMatchingPosition','selection',':start>','processor',':start></','indexOf','markers','_displayedFakeSelectionId','_nextDataId','editingDowncast','pluginName','sort','_integrateEditor','removeAllRanges','trim','push','getSelectedContent','getChildren','has','floor','conversion','add','end','createUIElement','27518YBEYkN','markerName','document','13627998aaoGUY','getSelection','_displayedFakeSelectionLocked','convertAiChatSelectionMarker','getStart','toView','isContent','_getMarkersInDocumentOrder','markerToElement','ready','random','start','8FleaiE','get','emptyElement','schema','length','RealTimeCollaborationClient','addMarker','data-id'];_0x32b8=function(){return _0xbe6e92;};return _0x32b8();}import{ViewDowncastWriter as _0x933418}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x22041f,Editor as _0x5c1aed}from'ckeditor5/src/core.js';import{uid as _0x22841f}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2a809e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x538697(0x1fd);function _0x4c96(_0x2ad472,_0x1ee2cb){const _0x32b848=_0x32b8();return _0x4c96=function(_0x4c963c,_0xb1a5d9){_0x4c963c=_0x4c963c-0x1ea;let _0x2aeab2=_0x32b848[_0x4c963c];return _0x2aeab2;},_0x4c96(_0x2ad472,_0x1ee2cb);}export class AIEditing extends _0x22041f{[_0x538697(0x21e)]=null;[_0x538697(0x234)]=!0x1;[_0x538697(0x207)];static get[_0x538697(0x221)](){const _0x2b63a4=_0x538697;return _0x2b63a4(0x211);}static get[_0x538697(0x206)](){return!0x0;}static get[_0x538697(0x1f2)](){return!0x0;}get[_0x538697(0x1ff)](){const _0x22e249=_0x538697;if(!this[_0x22e249(0x207)]){const _0xeb701a=_0x2a809e(this[_0x22e249(0x251)]),_0x3f08ff=_0xeb701a[_0x22e249(0x1f1)][_0x22e249(0x229)](_0x22e249(0x243))&&_0xeb701a[_0x22e249(0x1f1)][_0x22e249(0x23f)](_0x22e249(0x243))[_0x22e249(0x1ff)];this[_0x22e249(0x207)]=_0x3f08ff||_0x22841f();}return this[_0x22e249(0x207)];}[_0x538697(0x203)](){const _0x592aa1=_0x538697,_0x5eb3ef=_0x2a809e(this[_0x592aa1(0x251)]),_0x4dcf61=_0x5eb3ef[_0x592aa1(0x1fc)],_0x3e0072=_0x5eb3ef[_0x592aa1(0x1f5)][_0x592aa1(0x237)](_0x4dcf61[_0x592aa1(0x231)][_0x592aa1(0x208)](),{'convertAiChatSelectionMarker':!0x0}),_0x573fae=new _0x933418(_0x5eb3ef[_0x592aa1(0x248)][_0x592aa1(0x213)][_0x592aa1(0x231)]);this[_0x592aa1(0x249)](_0x3e0072,_0x573fae);let _0x1ade97=_0x5eb3ef[_0x592aa1(0x1f5)][_0x592aa1(0x21a)][_0x592aa1(0x1f0)](_0x3e0072);const _0x3df2cb=this[_0x592aa1(0x239)](),_0x2cc3cd=[];for(const _0x19fc7c of _0x3df2cb){const _0x4c0b79='<'+_0x19fc7c[_0x592aa1(0x214)]+_0x592aa1(0x21b)+_0x19fc7c[_0x592aa1(0x214)]+_0x592aa1(0x219),_0x4d303b=_0x1ade97[_0x592aa1(0x21c)](_0x4c0b79);_0x1ade97=_0x1ade97[_0x592aa1(0x20a)](0x0,_0x4d303b)+_0x1ade97[_0x592aa1(0x20a)](_0x4d303b+_0x4c0b79[_0x592aa1(0x242)]);const _0x21d209='<'+_0x19fc7c[_0x592aa1(0x214)]+_0x592aa1(0x1ef)+_0x19fc7c[_0x592aa1(0x214)]+_0x592aa1(0x1f9),_0x1a3d69=_0x1ade97[_0x592aa1(0x21c)](_0x21d209);_0x1ade97=_0x1ade97[_0x592aa1(0x20a)](0x0,_0x1a3d69)+_0x1ade97[_0x592aa1(0x20a)](_0x1a3d69+_0x21d209[_0x592aa1(0x242)]),_0x2cc3cd[_0x592aa1(0x226)]({'markerName':_0x19fc7c[_0x592aa1(0x214)],'start':_0x4d303b,'end':_0x1a3d69,'htmlFragment':_0x1ade97[_0x592aa1(0x20a)](_0x4d303b,_0x1a3d69)});}return{'content':_0x1ade97,'version':_0x5eb3ef[_0x592aa1(0x1fc)][_0x592aa1(0x231)][_0x592aa1(0x215)],'sessionId':this[_0x592aa1(0x1ff)],'selections':_0x2cc3cd};}async[_0x538697(0x1ea)](){const _0x2bf6c6=_0x538697;this[_0x2bf6c6(0x251)]instanceof _0x5c1aed?this[_0x2bf6c6(0x223)](this[_0x2bf6c6(0x251)]):this[_0x2bf6c6(0x20d)](this[_0x2bf6c6(0x251)][_0x2bf6c6(0x1f7)],_0x2bf6c6(0x22c),(_0x3968c5,_0x1fecc0)=>{const _0x5e2977=_0x2bf6c6;_0x1fecc0['on'](_0x5e2977(0x23b),()=>{const _0x3c06bd=_0x5e2977;this[_0x3c06bd(0x223)](_0x1fecc0);});});}[_0x538697(0x223)](_0x704c63){const _0x7827ec=_0x538697;_0x704c63[_0x7827ec(0x22b)][_0x7827ec(0x1f8)](_0x7827ec(0x220))[_0x7827ec(0x1f3)]({'model':_0x7827ec(0x1fd),'view':{'classes':[_0x7827ec(0x210),_0x7827ec(0x1f4)],'priority':0xc}}),_0x704c63[_0x7827ec(0x22b)][_0x7827ec(0x1f8)](_0x7827ec(0x24e))[_0x7827ec(0x23a)]({'model':_0x7827ec(0x1fd),'view':(_0x449e4d,{writer:_0x361efd,options:_0x173eed})=>_0x173eed[_0x7827ec(0x235)]?_0x361efd[_0x7827ec(0x22e)](_0x449e4d[_0x7827ec(0x230)]+':'+(_0x449e4d[_0x7827ec(0x205)]?_0x7827ec(0x23d):_0x7827ec(0x22d))):null});}[_0x538697(0x1f6)](_0x4c2652,_0xbad28f,_0x5ad574=!0x1,_0x56b3f5=!0x1){const _0x5635d6=_0x538697;if(this[_0x5635d6(0x234)]&&!_0x56b3f5)return!0x1;const _0x4af7d0=_0x2a809e(this[_0x5635d6(0x251)])[_0x5635d6(0x1fc)];return _0x4af7d0[_0x5635d6(0x1fe)](_0x13cab1=>{const _0xf5e2fd=_0x5635d6;this[_0xf5e2fd(0x21e)]&&this[_0xf5e2fd(0x200)](this[_0xf5e2fd(0x21e)]),this[_0xf5e2fd(0x21e)]=_0xbad28f,this[_0xf5e2fd(0x234)]=_0x5ad574;let _0x32d438=0x0;for(let _0xd5d964 of _0x4c2652){const _0x11cb10=_0xf5e2fd(0x201)+_0x32d438;if(_0xd5d964[_0xf5e2fd(0x23d)][_0xf5e2fd(0x1fb)]){const _0x98d724=_0xd5d964[_0xf5e2fd(0x23d)][_0xf5e2fd(0x217)](({item:_0x12662d})=>!_0x4af7d0[_0xf5e2fd(0x241)][_0xf5e2fd(0x238)](_0x12662d),{'boundaries':_0xd5d964});_0xd5d964=_0x13cab1[_0xf5e2fd(0x247)](_0x98d724,_0xd5d964[_0xf5e2fd(0x22d)]);}_0x13cab1[_0xf5e2fd(0x244)](_0x11cb10,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xd5d964}),_0x32d438++;}}),window[_0x5635d6(0x233)]()?.[_0x5635d6(0x224)](),!0x0;}[_0x538697(0x200)](_0x2be394){const _0x60d807=_0x538697;if(this[_0x60d807(0x21e)]!=_0x2be394)return!0x1;this[_0x60d807(0x21e)]=null,this[_0x60d807(0x234)]=!0x1;const _0x49685f=_0x2a809e(this[_0x60d807(0x251)]),_0x441e26=_0x49685f[_0x60d807(0x1fc)][_0x60d807(0x21d)][_0x60d807(0x24c)](_0x60d807(0x1fd));return _0x49685f[_0x60d807(0x1fc)][_0x60d807(0x1fe)](_0x5dc6d4=>{const _0x1b8017=_0x60d807;for(const _0x15b843 of _0x441e26)_0x5dc6d4[_0x1b8017(0x24f)](_0x15b843);}),!0x0;}[_0x538697(0x202)](_0x45918a){const _0x545284=_0x538697,_0x233cde=_0x2a809e(this[_0x545284(0x251)]),_0x403974=_0x233cde[_0x545284(0x1f5)][_0x545284(0x237)](_0x45918a),_0x2b152d=new _0x933418(_0x233cde[_0x545284(0x248)][_0x545284(0x213)][_0x545284(0x231)]);return this[_0x545284(0x249)](_0x403974,_0x2b152d),_0x403974;}[_0x538697(0x249)](_0x33104b,_0x376fe4){const _0x16157b=_0x538697;let _0x5d237c=!0x1;const _0x552070=new Set();for(const _0x4afc00 of _0x33104b[_0x16157b(0x228)]()){const _0x2ca29c=_0x4afc00['is'](_0x16157b(0x240))||_0x4afc00['is'](_0x16157b(0x1ee));if(!_0x4afc00['is'](_0x16157b(0x250)))continue;(this[_0x16157b(0x249)](_0x4afc00,_0x376fe4)||_0x2ca29c)&&(_0x376fe4[_0x16157b(0x212)](_0x16157b(0x245),this[_0x16157b(0x21f)](_0x552070),_0x4afc00),_0x5d237c=!0x0);}return _0x5d237c;}[_0x538697(0x21f)](_0x4afbaf){const _0x55d778=_0x538697;let _0x284fcf;do{_0x284fcf='';for(let _0x4700cd=0x0;_0x4700cd<0x4;_0x4700cd++)_0x284fcf+=String[_0x55d778(0x1ed)](0x61+Math[_0x55d778(0x22a)](0x1a*Math[_0x55d778(0x23c)]()));}while(_0x4afbaf[_0x55d778(0x229)](_0x284fcf));return _0x4afbaf[_0x55d778(0x22c)](_0x284fcf),_0x284fcf;}[_0x538697(0x20e)](){const _0x2820c4=_0x538697,{model:_0x2a1419}=_0x2a809e(this[_0x2820c4(0x251)]),_0x5c7f57=_0x2a1419[_0x2820c4(0x231)][_0x2820c4(0x218)],_0x3bd7ab=_0x2a1419[_0x2820c4(0x227)](_0x5c7f57),_0x5d1d12=[],_0x411bae=_0x2a1419[_0x2820c4(0x20f)](_0x3bd7ab)[_0x2820c4(0x20c)]();for(const {item:_0x31ee90}of _0x411bae)_0x31ee90['is'](_0x2820c4(0x204))?_0x5d1d12[_0x2820c4(0x226)](_0x31ee90[_0x2820c4(0x1f5)]):_0x31ee90['is'](_0x2820c4(0x250))&&_0x5d1d12[_0x2820c4(0x242)]>0x0&&'\x20'!==_0x5d1d12[_0x5d1d12[_0x2820c4(0x242)]-0x1]&&_0x5d1d12[_0x2820c4(0x226)]('\x20');return'\x22'+_0x5d1d12[_0x2820c4(0x24b)]('')[_0x2820c4(0x225)]()+'\x22';}[_0x538697(0x239)](){const _0x42e55a=_0x538697,_0x52cf46=_0x2a809e(this[_0x42e55a(0x251)])[_0x42e55a(0x1fc)];return Array[_0x42e55a(0x209)](_0x52cf46[_0x42e55a(0x21d)][_0x42e55a(0x24c)](_0x42e55a(0x1fd)))[_0x42e55a(0x222)]((_0x18acb2,_0x55a5a4)=>_0x18acb2[_0x42e55a(0x236)]()[_0x42e55a(0x24d)](_0x55a5a4[_0x42e55a(0x236)]())?-0x1:_0x18acb2[_0x42e55a(0x236)]()[_0x42e55a(0x216)](_0x55a5a4[_0x42e55a(0x236)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124db6=_0x2cd5;(function(_0x43fcf8,_0x14e1d8){const _0x48bdf2=_0x2cd5,_0x3a9d21=_0x43fcf8();while(!![]){try{const _0x224f52=-parseInt(_0x48bdf2(0xb3))/0x1+parseInt(_0x48bdf2(0xaa))/0x2*(parseInt(_0x48bdf2(0xb7))/0x3)+-parseInt(_0x48bdf2(0xb4))/0x4+-parseInt(_0x48bdf2(0xab))/0x5*(-parseInt(_0x48bdf2(0xb1))/0x6)+parseInt(_0x48bdf2(0xb5))/0x7+parseInt(_0x48bdf2(0xa7))/0x8*(-parseInt(_0x48bdf2(0xac))/0x9)+parseInt(_0x48bdf2(0xb6))/0xa;if(_0x224f52===_0x14e1d8)break;else _0x3a9d21['push'](_0x3a9d21['shift']());}catch(_0xe1e784){_0x3a9d21['push'](_0x3a9d21['shift']());}}}(_0x24e1,0x63e93));function _0x24e1(){const _0x5041ef=['toggleWebSearch','getCapabilitiesRequestData','toggleReasoning','webSearch','setWebSearch','isReasoningEnabled','3326952kUtoOR','_isReasoningEnabled','init','74pNutMe','2185DZHcRy','9cOREFN','reset','getCapabilitiesConfig','capabilitiesUpdated','reasoning','18ULcses','isWebSearchEnabled','663961wpPsgz','3271612IooqzS','171045KRfnmd','17155290quLeZE','45867vGedIt','_isWebSearchEnabled','fire','setReasoning'];_0x24e1=function(){return _0x5041ef;};return _0x24e1();}import{EmitterMixin as _0x1b76ab}from'ckeditor5/src/utils.js';function _0x2cd5(_0x63cc,_0x5da893){const _0x24e18a=_0x24e1();return _0x2cd5=function(_0x2cd5f0,_0x4ea971){_0x2cd5f0=_0x2cd5f0-0xa4;let _0x512ef8=_0x24e18a[_0x2cd5f0];return _0x512ef8;},_0x2cd5(_0x63cc,_0x5da893);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x124db6(0xaf)];export class AICapabilities extends _0x1b76ab(){[_0x124db6(0xb8)];[_0x124db6(0xa8)];constructor(){const _0x206f96=_0x124db6;super(),this[_0x206f96(0xb8)]=!0x1,this[_0x206f96(0xa8)]=!0x1;}[_0x124db6(0xa9)](){const _0x6bb5fc=_0x124db6;this[_0x6bb5fc(0xad)]();}[_0x124db6(0xad)](){const _0xc53389=_0x124db6;this[_0xc53389(0xa5)](!0x1),this[_0xc53389(0xba)](!0x1);}[_0x124db6(0xae)](){const _0x18e9d2=_0x124db6;return{'isWebSearchEnabled':this[_0x18e9d2(0xb8)],'isReasoningEnabled':this[_0x18e9d2(0xa8)]};}static[_0x124db6(0xbc)](_0x4bd3a7){const _0x20edb7=_0x124db6,_0x1f6d6b={};return _0x4bd3a7&&_0x4bd3a7[_0x20edb7(0xb2)]&&(_0x1f6d6b[_0x20edb7(0xa4)]={}),_0x4bd3a7&&_0x4bd3a7[_0x20edb7(0xa6)]&&(_0x1f6d6b[_0x20edb7(0xb0)]={}),_0x1f6d6b;}[_0x124db6(0xbb)](){const _0x591775=_0x124db6;this[_0x591775(0xa5)](!this[_0x591775(0xb8)]);}[_0x124db6(0xbd)](){const _0x1fc7c6=_0x124db6;this[_0x1fc7c6(0xba)](!this[_0x1fc7c6(0xa8)]);}[_0x124db6(0xa5)](_0x46ebc8){const _0x261d78=_0x124db6;_0x46ebc8!==this[_0x261d78(0xb8)]&&(this[_0x261d78(0xb8)]=_0x46ebc8,this[_0x261d78(0xb9)](_0x261d78(0xaf),this[_0x261d78(0xae)]()));}[_0x124db6(0xba)](_0x863ad4){const _0x424eed=_0x124db6;_0x863ad4!==this[_0x424eed(0xa8)]&&(this[_0x424eed(0xa8)]=_0x863ad4,this[_0x424eed(0xb9)](_0x424eed(0xaf),this[_0x424eed(0xae)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x19febd,_0x6ea7c1){var _0x25d823=_0x92fb,_0x54740f=_0x19febd();while(!![]){try{var _0x3aeace=parseInt(_0x25d823(0x1bd))/0x1+-parseInt(_0x25d823(0x1b4))/0x2*(-parseInt(_0x25d823(0x1c1))/0x3)+parseInt(_0x25d823(0x1b3))/0x4+parseInt(_0x25d823(0x1b8))/0x5*(-parseInt(_0x25d823(0x1b6))/0x6)+parseInt(_0x25d823(0x1bf))/0x7+parseInt(_0x25d823(0x1c6))/0x8*(parseInt(_0x25d823(0x1c3))/0x9)+-parseInt(_0x25d823(0x1c2))/0xa;if(_0x3aeace===_0x6ea7c1)break;else _0x54740f['push'](_0x54740f['shift']());}catch(_0x5439d8){_0x54740f['push'](_0x54740f['shift']());}}}(_0x291c,0xb02b9));export var AIContextItemType;!function(_0x224eb6){var _0x1a3e85=_0x92fb;_0x224eb6[_0x1a3e85(0x1b1)]=_0x1a3e85(0x1b9),_0x224eb6[_0x1a3e85(0x1c5)]=_0x1a3e85(0x1b7),_0x224eb6[_0x1a3e85(0x1c8)]=_0x1a3e85(0x1bc),_0x224eb6[_0x1a3e85(0x1ba)]=_0x1a3e85(0x1c4),_0x224eb6[_0x1a3e85(0x1be)]=_0x1a3e85(0x1b2);}(AIContextItemType||(AIContextItemType={}));function _0x291c(){var _0x82f42a=['file','TEXT','html','web-resource','566588VTWzIo','SELECTION','9300158LxTemO','markdown','1572Fjbcme','19154000VRpBAl','1721196JJUvpn','text','DOCUMENT','8RkwfuZ','HTML','URL','FILE','selection','442820riJmHb','4314DYZEmu','MARKDOWN','19002nUDtMh','document','1090oyBZbI'];_0x291c=function(){return _0x82f42a;};return _0x291c();}function _0x92fb(_0x2ae39c,_0x160c79){var _0x291cae=_0x291c();return _0x92fb=function(_0x92fb4b,_0x25bd70){_0x92fb4b=_0x92fb4b-0x1b1;var _0x5eaea1=_0x291cae[_0x92fb4b];return _0x5eaea1;},_0x92fb(_0x2ae39c,_0x160c79);}export var AIContextTextResourceType;!function(_0x3fb80a){var _0x53f28c=_0x92fb;_0x3fb80a[_0x53f28c(0x1ba)]=_0x53f28c(0x1c4),_0x3fb80a[_0x53f28c(0x1b5)]=_0x53f28c(0x1c0),_0x3fb80a[_0x53f28c(0x1c7)]=_0x53f28c(0x1bb);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e1a12=_0x73f7;function _0xe91a(){const _0x294b58=['webSearchStarted','find','callId','2658882TWrNAI','209ghvoPu','ai-chat-interaction-error','reasoningFinished','stop','conversationTitle','sources','splice','28pEgNxr','replyContentUpdated','appendContent','_isReasoning','currentReply','message-metadata','forEach','content','reasoningStarted','getReply','_isWebSearching','fire','abort','interactionDestroyed','done','772336ybayis','reasoning','isDestroyed','replies','interactionStarted','messageId','webSearchFinished','length','currentRequest','data','delegate','connector','21268040ZEPzuh','getDocumentContext','event','_finalizeInteraction','destroy','replyChangeGroupStateUpdated','setConversationTitle','1008900TFxbkv','215105XLKISI','interactionFinished','start','isStopped','sendRequest','interactionCreated','10756449mSrZOL','modification-delta','push','web-search','getStream','source','textDelta','52NHohev','editor','actionCallId','382uGuPGg','stopListening','error','replyCreated','interactionStopped','createReply','abortController','action-metadata'];_0xe91a=function(){return _0x294b58;};return _0xe91a();}(function(_0x5b5699,_0x4ff296){const _0x15bbd5=_0x73f7,_0x2935ce=_0x5b5699();while(!![]){try{const _0x29925b=parseInt(_0x15bbd5(0x97))/0x1*(-parseInt(_0x15bbd5(0x8b))/0x2)+parseInt(_0x15bbd5(0x96))/0x3+-parseInt(_0x15bbd5(0x88))/0x4*(parseInt(_0x15bbd5(0x7b))/0x5)+-parseInt(_0x15bbd5(0x7a))/0x6+-parseInt(_0x15bbd5(0x9e))/0x7*(parseInt(_0x15bbd5(0xad))/0x8)+-parseInt(_0x15bbd5(0x81))/0x9+parseInt(_0x15bbd5(0x73))/0xa;if(_0x29925b===_0x4ff296)break;else _0x2935ce['push'](_0x2935ce['shift']());}catch(_0x179c2b){_0x2935ce['push'](_0x2935ce['shift']());}}}(_0xe91a,0xa236b));function _0x73f7(_0x20229c,_0x3f8782){const _0xe91a55=_0xe91a();return _0x73f7=function(_0x73f7ac,_0x2f972d){_0x73f7ac=_0x73f7ac-0x6b;let _0x380011=_0xe91a55[_0x73f7ac];return _0x380011;},_0x73f7(_0x20229c,_0x3f8782);}import{CKEditorError as _0x424b3b,EmitterMixin as _0x42bf1f,uid as _0x48bbc0}from'ckeditor5/src/utils.js';import{AIReply as _0x2723c1,isIgnoredReplyType as _0x45be49,isValidReplyType as _0x432288,isReplyTitleType as _0x38e730,isSourceType as _0x3ea42d}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3e1a12(0x80),_0x3e1a12(0x6b),_0x3e1a12(0x8f),_0x3e1a12(0x7c),_0x3e1a12(0xab),_0x3e1a12(0x8e),_0x3e1a12(0x9f),_0x3e1a12(0x78),_0x3e1a12(0x79),_0x3e1a12(0x93),_0x3e1a12(0x6d),_0x3e1a12(0xa6),_0x3e1a12(0x99),_0x3e1a12(0x8d)];export class AIInteraction extends _0x42bf1f(){['id'];[_0x3e1a12(0xb0)]=[];[_0x3e1a12(0xa2)];[_0x3e1a12(0x6c)];[_0x3e1a12(0x8a)];[_0x3e1a12(0x6f)];[_0x3e1a12(0x72)];[_0x3e1a12(0x7e)]=!0x1;[_0x3e1a12(0xaf)]=!0x1;[_0x3e1a12(0x89)];[_0x3e1a12(0xa1)]=!0x1;[_0x3e1a12(0xa8)]=!0x1;constructor({connector:_0x130c39,editor:_0x4a569d}){const _0x428fa7=_0x3e1a12;super(),this['id']=_0x48bbc0(),this[_0x428fa7(0x72)]=_0x130c39,this[_0x428fa7(0x7e)]=!0x0,this[_0x428fa7(0x89)]=_0x4a569d;}async[_0x3e1a12(0x7d)](){const _0x3b3305=_0x3e1a12;let _0x4a03fd;const _0x4fc1c8=[];this[_0x3b3305(0x7e)]=!0x1;try{this[_0x3b3305(0x6f)]=await this[_0x3b3305(0x7f)](),this[_0x3b3305(0xa9)](_0x3b3305(0x6b),this);const _0x57441f=await this[_0x3b3305(0x6f)][_0x3b3305(0x85)]();for await(const _0x269266 of _0x57441f){if(this[_0x3b3305(0x7e)])return;if(_0x3b3305(0x8d)===_0x269266[_0x3b3305(0x75)])return void this[_0x3b3305(0xa9)](_0x3b3305(0x8d),{'error':new _0x424b3b(_0x3b3305(0x98),this)});if(_0x3b3305(0xa3)!==_0x269266[_0x3b3305(0x75)]){if(_0x3b3305(0x92)!==_0x269266[_0x3b3305(0x75)]){if(_0x38e730(_0x269266[_0x3b3305(0x75)])&&this[_0x3b3305(0x79)](_0x269266[_0x3b3305(0x70)][_0x3b3305(0x9b)],!0x0),_0x3ea42d(_0x269266[_0x3b3305(0x75)]))_0x4fc1c8[_0x3b3305(0x83)](_0x269266[_0x3b3305(0x70)][_0x3b3305(0x86)]);else{if(_0x432288(_0x269266[_0x3b3305(0x75)])){if(_0x269266[_0x3b3305(0x75)]!==_0x4a03fd){if(_0x4a03fd=_0x269266[_0x3b3305(0x75)],_0x3b3305(0x84)===_0x269266[_0x3b3305(0x75)]){this[_0x3b3305(0xa8)]||(this[_0x3b3305(0xa8)]=!0x0,this[_0x3b3305(0xa9)](_0x3b3305(0x93),this));continue;}if(_0x3b3305(0xae)===_0x269266[_0x3b3305(0x75)]){this[_0x3b3305(0xa1)]||(this[_0x3b3305(0xa1)]=!0x0,this[_0x3b3305(0xa9)](_0x3b3305(0xa6),this));continue;}this[_0x3b3305(0xa1)]&&(this[_0x3b3305(0xa1)]=!0x1,this[_0x3b3305(0xa9)](_0x3b3305(0x99),this)),this[_0x3b3305(0xa8)]&&(this[_0x3b3305(0xa8)]=!0x1,this[_0x3b3305(0xa9)](_0x3b3305(0x6d),this)),this[_0x3b3305(0xa2)]&&this[_0x3b3305(0xa2)][_0x3b3305(0xac)](),this[_0x3b3305(0xa2)]=this[_0x3b3305(0x90)]({'type':_0x269266[_0x3b3305(0x75)],'interactionId':this['id'],'id':_0x269266[_0x3b3305(0x70)]?.['id']}),_0x4fc1c8[_0x3b3305(0x6e)]>0x0&&_0x3b3305(0x82)===_0x269266[_0x3b3305(0x75)]&&(this[_0x3b3305(0xa2)][_0x3b3305(0x9c)]=_0x4fc1c8[_0x3b3305(0x9d)](0x0));}_0x269266[_0x3b3305(0x70)][_0x3b3305(0x87)]&&this[_0x3b3305(0xa2)][_0x3b3305(0xa0)](_0x269266[_0x3b3305(0x70)][_0x3b3305(0x87)]);}else _0x45be49(_0x269266[_0x3b3305(0x75)]);}}else this[_0x3b3305(0x8a)]=_0x269266[_0x3b3305(0x70)][_0x3b3305(0x95)];}else this[_0x3b3305(0x6c)]=_0x269266[_0x3b3305(0x70)][_0x3b3305(0x6c)];}}finally{this[_0x3b3305(0x7e)]||(_0x4fc1c8[_0x3b3305(0x6e)]>0x0&&(this[_0x3b3305(0xa2)][_0x3b3305(0x9c)]=_0x4fc1c8[_0x3b3305(0x9d)](0x0)),this[_0x3b3305(0x76)](),this[_0x3b3305(0xa9)](_0x3b3305(0x7c),this));}}[_0x3e1a12(0x9a)](){const _0x4ed17b=_0x3e1a12;this[_0x4ed17b(0x7e)]||(this[_0x4ed17b(0x76)](),this[_0x4ed17b(0xa9)](_0x4ed17b(0x8f),this));}[_0x3e1a12(0xa7)](_0x495665){const _0x1489ce=_0x3e1a12;return this[_0x1489ce(0xb0)][_0x1489ce(0x94)](_0x275c5d=>_0x275c5d['id']===_0x495665);}[_0x3e1a12(0x77)](){const _0x4b4e1e=_0x3e1a12;this[_0x4b4e1e(0xaf)]||(this[_0x4b4e1e(0x9a)](),this[_0x4b4e1e(0xb0)][_0x4b4e1e(0xa4)](_0x157983=>_0x157983[_0x4b4e1e(0x77)]()),this[_0x4b4e1e(0xb0)]=[],this[_0x4b4e1e(0xaf)]=!0x0,this[_0x4b4e1e(0xa9)](_0x4b4e1e(0xab),this),this[_0x4b4e1e(0x8c)]());}[_0x3e1a12(0x90)](_0x3644f3){const _0x475d3f=_0x3e1a12,_0x577f0d=new _0x2723c1({'editor':this[_0x475d3f(0x89)],'documentContextContent':this[_0x475d3f(0x74)]()?.[_0x475d3f(0xa5)],..._0x3644f3});return this[_0x475d3f(0xb0)][_0x475d3f(0x83)](_0x577f0d),_0x577f0d[_0x475d3f(0x71)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x475d3f(0xa9)](_0x475d3f(0x8e),_0x577f0d),_0x577f0d;}[_0x3e1a12(0x79)](_0x22bdfb,_0x52764d=!0x1){const _0x2e7dc6=_0x3e1a12;this[_0x2e7dc6(0xa9)](_0x2e7dc6(0x79),_0x22bdfb,_0x52764d);}[_0x3e1a12(0x76)](){const _0x27e9ca=_0x3e1a12;this[_0x27e9ca(0x7e)]=!0x0,this[_0x27e9ca(0x6f)]&&this[_0x27e9ca(0x6f)][_0x27e9ca(0x91)][_0x27e9ca(0xaa)](),this[_0x27e9ca(0xa2)]&&this[_0x27e9ca(0xa2)][_0x27e9ca(0xac)](),this[_0x27e9ca(0x6f)]=this[_0x27e9ca(0xa2)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xa4b44c=_0x2e0f;(function(_0x25f6c0,_0x26ae8a){const _0x273b0b=_0x2e0f,_0x428b6f=_0x25f6c0();while(!![]){try{const _0x5e12bf=-parseInt(_0x273b0b(0x148))/0x1*(-parseInt(_0x273b0b(0x15d))/0x2)+-parseInt(_0x273b0b(0x163))/0x3+-parseInt(_0x273b0b(0x16b))/0x4+-parseInt(_0x273b0b(0x159))/0x5*(-parseInt(_0x273b0b(0x146))/0x6)+-parseInt(_0x273b0b(0x152))/0x7+parseInt(_0x273b0b(0x156))/0x8*(-parseInt(_0x273b0b(0x158))/0x9)+parseInt(_0x273b0b(0x170))/0xa;if(_0x5e12bf===_0x26ae8a)break;else _0x428b6f['push'](_0x428b6f['shift']());}catch(_0x861ab1){_0x428b6f['push'](_0x428b6f['shift']());}}}(_0x4ab2,0x3251f));function _0x4ab2(){const _0x55d47f=['getAvailableModels','toUpperCase','getLocalized','length','573932nrltbZ','description','_defaultModelId','getModels','list','4612400FKETUk','isAvailable','string','712686pBQlXh','AI_MODEL_NAME_AUTO','3236TYnkJN','startsWith','find','AI_MODEL_DESCRIPTION_','some','ai-models-unable-to-retrieve','name','push','provider','agent','1426131BBKJQt','items','AI_MODEL_DESCRIPTION_AUTO','getAll','244656Tkadsa','getDefault','18bJtwUV','10pOktYf','_filterModels','_getModelById','auto','130JvgwzL','getModel','ai-chat-default-model-id-unrecognized','toLocaleLowerCase','_connector','_availableModels','883953IGkeDh','ai-chat-model-id-unrecognized','_modelList','map'];_0x4ab2=function(){return _0x55d47f;};return _0x4ab2();}import{EmitterMixin as _0x13e2f2,logWarning as _0x56e7a6,logError as _0x56a327}from'ckeditor5/src/utils.js';function _0x2e0f(_0x2f75fb,_0x373834){const _0x4ab2af=_0x4ab2();return _0x2e0f=function(_0x2e0f7a,_0x3b7438){_0x2e0f7a=_0x2e0f7a-0x145;let _0x497e25=_0x4ab2af[_0x2e0f7a];return _0x497e25;},_0x2e0f(_0x2f75fb,_0x373834);}import{getTranslation as _0x1fac1c}from'../utils/common-translations.js';export class AIModels extends _0x13e2f2(){[_0xa4b44c(0x161)];[_0xa4b44c(0x162)];[_0xa4b44c(0x16d)];[_0xa4b44c(0x165)]=[];constructor({connector:_0x23c4b4,availableModels:_0x33933c,defaultModelId:_0x4a73da}){const _0x3a4bb1=_0xa4b44c;super(),this[_0x3a4bb1(0x161)]=_0x23c4b4,this[_0x3a4bb1(0x162)]=_0x33933c,this[_0x3a4bb1(0x16d)]=_0x4a73da;}async[_0xa4b44c(0x155)](){const _0x36f530=_0xa4b44c;if(!this[_0x36f530(0x165)][_0x36f530(0x16a)])try{const _0x476bec=this[_0x36f530(0x161)][_0x36f530(0x16e)](),_0x5e3f1f=await _0x476bec[_0x36f530(0x16f)]();this[_0x36f530(0x165)]=_0x5e3f1f[_0x36f530(0x153)];}catch(_0x1b5e25){throw _0x56a327(_0x36f530(0x14d),{'error':_0x1b5e25}),_0x1b5e25;}return[...this[_0x36f530(0x165)]];}async[_0xa4b44c(0x167)](){const _0x142923=_0xa4b44c,_0xecc6db=await this[_0x142923(0x155)]();return this[_0x142923(0x15a)](_0xecc6db,this[_0x142923(0x162)]);}async[_0xa4b44c(0x15e)](_0x3f116b){const _0x1d8c76=_0xa4b44c,_0x2470a2=await this[_0x1d8c76(0x155)]();if(!_0x2470a2[_0x1d8c76(0x16a)])return null;if(_0x3f116b){const _0x569075=this[_0x1d8c76(0x15b)](_0x2470a2,_0x3f116b);if(_0x569075)return _0x569075;_0x56e7a6(_0x1d8c76(0x164),{'modelId':_0x3f116b,'fallBackModelId':this[_0x1d8c76(0x16d)]});}return this[_0x1d8c76(0x157)]();}async[_0xa4b44c(0x157)](){const _0x47b2f9=_0xa4b44c,_0x460cd0=await this[_0x47b2f9(0x167)]();if(!_0x460cd0[_0x47b2f9(0x16a)])return null;if(this[_0x47b2f9(0x16d)]){const _0x1131e4=this[_0x47b2f9(0x15b)](_0x460cd0,this[_0x47b2f9(0x16d)]);if(_0x1131e4)return _0x1131e4;_0x56e7a6(_0x47b2f9(0x15f),{'defaultModelId':this[_0x47b2f9(0x16d)],'fallBackModelId':_0x460cd0[0x0]['id']});}return _0x460cd0[0x0];}async[_0xa4b44c(0x171)](_0x2cbe31){const _0x5e3ffa=_0xa4b44c;return(await this[_0x5e3ffa(0x167)]())[_0x5e3ffa(0x14c)](_0x49a849=>_0x49a849[_0x5e3ffa(0x14e)]===_0x2cbe31[_0x5e3ffa(0x14e)]&&_0x49a849[_0x5e3ffa(0x150)]===_0x2cbe31[_0x5e3ffa(0x150)]);}[_0xa4b44c(0x15a)](_0x59436e,_0x1071e0){const _0x9f4eff=_0xa4b44c;let _0x3e5410;if(_0x1071e0){_0x3e5410=[];const _0x55235a=_0x9f4eff(0x145)==typeof _0x1071e0?[_0x1071e0[_0x9f4eff(0x160)]()]:_0x1071e0[_0x9f4eff(0x166)](_0x58db40=>_0x58db40[_0x9f4eff(0x160)]());for(const _0x61cc65 of _0x55235a)for(const _0x553ed4 of _0x59436e)(_0x553ed4['id'][_0x9f4eff(0x160)]()===_0x61cc65||_0x553ed4[_0x9f4eff(0x14e)][_0x9f4eff(0x160)]()===_0x61cc65||Oe(_0x553ed4)&&_0x9f4eff(0x15c)===_0x61cc65||_0x553ed4[_0x9f4eff(0x150)][_0x9f4eff(0x160)]()===_0x61cc65||_0x553ed4['id'][_0x9f4eff(0x160)]()[_0x9f4eff(0x149)](_0x61cc65))&&_0x3e5410[_0x9f4eff(0x14f)](_0x553ed4);}else _0x3e5410=_0x59436e;return _0x3e5410;}[_0xa4b44c(0x15b)](_0x5cf15b,_0x40baf2){const _0x15e8bb=_0xa4b44c;return _0x5cf15b[_0x15e8bb(0x14a)](_0x337fef=>Oe(_0x337fef)&&_0x15e8bb(0x15c)===_0x40baf2?_0x337fef:_0x337fef['id']===_0x40baf2)||null;}static[_0xa4b44c(0x169)](_0x483ef3,_0x53d083){const _0x25c2e0=_0xa4b44c;return _0x53d083[_0x25c2e0(0x166)](_0x3a295d=>{const _0x230308=_0x25c2e0;if(Oe(_0x3a295d))_0x3a295d[_0x230308(0x14e)]=_0x1fac1c(_0x483ef3,_0x230308(0x147)),_0x3a295d[_0x230308(0x16c)]=_0x1fac1c(_0x483ef3,_0x230308(0x154));else _0x1fac1c(_0x483ef3,_0x230308(0x14b)+_0x3a295d['id'][_0x230308(0x168)]())[_0x230308(0x149)](_0x230308(0x14b))||(_0x3a295d[_0x230308(0x16c)]=_0x1fac1c(_0x483ef3,_0x230308(0x14b)+_0x3a295d['id'][_0x230308(0x168)]()));return _0x3a295d;});}}function Oe(_0x5ab557){const _0x183af3=_0xa4b44c;return _0x5ab557['id'][_0x183af3(0x149)](_0x183af3(0x151));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b4be6=_0x5eab;(function(_0x11dccc,_0xeb467f){const _0x3906e6=_0x5eab,_0x232914=_0x11dccc();while(!![]){try{const _0x17c27e=-parseInt(_0x3906e6(0x154))/0x1+-parseInt(_0x3906e6(0x14c))/0x2*(parseInt(_0x3906e6(0x11f))/0x3)+parseInt(_0x3906e6(0x15c))/0x4*(parseInt(_0x3906e6(0x10d))/0x5)+-parseInt(_0x3906e6(0x157))/0x6+-parseInt(_0x3906e6(0x152))/0x7*(parseInt(_0x3906e6(0x111))/0x8)+-parseInt(_0x3906e6(0x11d))/0x9*(parseInt(_0x3906e6(0x110))/0xa)+-parseInt(_0x3906e6(0x149))/0xb*(-parseInt(_0x3906e6(0x139))/0xc);if(_0x17c27e===_0xeb467f)break;else _0x232914['push'](_0x232914['shift']());}catch(_0x559eb9){_0x232914['push'](_0x232914['shift']());}}}(_0x145d,0x565d3));import{CKEditorError as _0x731444,ObservableMixin as _0x48edb1,uid as _0x43f259}from'ckeditor5/src/utils.js';import{Element as _0x21e6c3,findAll as _0x383d9c,getAttribute as _0x517994,getParents as _0x407a48,Document as _0x2c4a6a,parse as _0x15492e,Text as _0x4c08c6}from'../utils/htmlparser.js';import{AIResponseParser as _0x32d443}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x21321d}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x27403f}from'../utils/getsuggestionpartsfromreply.js';function _0x5eab(_0x4df40f,_0x5b98e5){const _0x145da9=_0x145d();return _0x5eab=function(_0x5eab46,_0x4858fc){_0x5eab46=_0x5eab46-0x109;let _0x4ab85b=_0x145da9[_0x5eab46];return _0x4ab85b;},_0x5eab(_0x4df40f,_0x5b98e5);}import{getTranslation as _0x4dea68}from'../utils/common-translations.js';import{cloneDeep as _0x9a3acc}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1b4be6(0x147),_0x1b4be6(0x14d),_0x1b4be6(0x151),_0x1b4be6(0x148)];export const AI_REPLY_TYPES_IGNORED=[_0x1b4be6(0x113)];export const AI_REPLY_TITLE_TYPE=_0x1b4be6(0x113);export class AIReply extends _0x48edb1(){['id'];[_0x1b4be6(0x119)];[_0x1b4be6(0x12c)];[_0x1b4be6(0x15b)]=[];[_0x1b4be6(0x142)]=new _0x2c4a6a([]);[_0x1b4be6(0x131)]=new _0x2c4a6a([]);[_0x1b4be6(0x10b)]=[];[_0x1b4be6(0x156)]=!0x1;[_0x1b4be6(0x118)];[_0x1b4be6(0x136)];[_0x1b4be6(0x15d)];[_0x1b4be6(0x121)];[_0x1b4be6(0x128)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x805d6f,content:_0x8c6d27='',isDone:_0x57bfc9=!0x1,interactionId:_0x493d00,areActionsDisabled:_0x560b04,documentContextContent:_0x3d5321,editor:_0x202a6a,id:_0x45126d}){const _0x66966=_0x1b4be6;super(),this['id']=_0x45126d||_0x43f259(),this[_0x66966(0x119)]=_0x493d00,this[_0x66966(0x12c)]=_0x805d6f,this[_0x66966(0x156)]=!!_0x560b04,this[_0x66966(0x121)]=_0x202a6a,this[_0x66966(0x136)]=new _0x32d443(),this[_0x66966(0x15d)]=new _0x21321d(),this[_0x66966(0x118)]=_0x15492e(_0x3d5321||''),this[_0x66966(0x158)](_0x66966(0x13b),_0x57bfc9),this['on'](_0x66966(0x13f),()=>{const _0xf33f0c=_0x66966;this[_0xf33f0c(0x12a)]();}),this[_0x66966(0x158)](_0x66966(0x140),_0x8c6d27);}[_0x1b4be6(0x13a)](_0x5900c4){const _0x4d56d1=_0x1b4be6;this[_0x4d56d1(0x158)](_0x4d56d1(0x140),this[_0x4d56d1(0x140)]+_0x5900c4);}[_0x1b4be6(0x144)](){const _0x52138a=_0x1b4be6;this[_0x52138a(0x13b)]||(this[_0x52138a(0x158)](_0x52138a(0x13b),!0x0),this[_0x52138a(0x12a)]());}[_0x1b4be6(0x150)](){const _0x2b28c4=_0x1b4be6;this[_0x2b28c4(0x143)]();}[_0x1b4be6(0x120)](_0x43c7c9,_0x2cf81b){const _0x29282b=_0x1b4be6;this[_0x29282b(0x10b)][_0x43c7c9][_0x29282b(0x13e)]=_0x2cf81b,this[_0x29282b(0x114)](_0x29282b(0x15f),{'reply':this,'index':_0x43c7c9,'state':_0x2cf81b});}[_0x1b4be6(0x14b)]({showDiff:_0x4086f8,groupIndex:_0x52187b}){const _0x3d048a=_0x1b4be6;if(!this[_0x3d048a(0x121)])throw new _0x731444(_0x3d048a(0x129),null,{'aiReply':this});const _0x46d505=this[_0x3d048a(0x132)](_0x4086f8,_0x52187b);if(_0x46d505)return _0x46d505;let _0x33c6e0=[];if(void 0x0===_0x52187b)_0x33c6e0=this[_0x3d048a(0x10b)];else{const _0x24f3eb=this[_0x3d048a(0x10b)][_0x3d048a(0x141)](({index:_0x5b5522})=>_0x5b5522===_0x52187b);if(!_0x24f3eb)throw new _0x731444(_0x3d048a(0x11e),null,{'aiReply':this,'groupIndex':_0x52187b});_0x33c6e0=[_0x24f3eb];}const _0x286d26=_0x27403f({'editor':this[_0x3d048a(0x121)],'showDiff':_0x4086f8,'changeGroups':_0x33c6e0,'documentContextContent':this[_0x3d048a(0x118)]});return this[_0x3d048a(0x115)](_0x4086f8,_0x286d26),_0x286d26;}[_0x1b4be6(0x132)](_0x558cfd,_0x13fa72){const _0x38911f=_0x1b4be6,_0x4e66e0=_0x558cfd?_0x38911f(0x123):_0x38911f(0x116);if(!this[_0x38911f(0x128)][_0x4e66e0][_0x38911f(0x135)])return null;const _0x4bf3cc=this[_0x38911f(0x128)][_0x4e66e0];if(void 0x0===_0x13fa72)return _0x9a3acc(_0x4bf3cc);{const _0x449a74=_0x4bf3cc[_0x38911f(0x141)](({index:_0x226974})=>_0x226974===_0x13fa72);if(_0x449a74)return[_0x9a3acc(_0x449a74)];}return null;}[_0x1b4be6(0x115)](_0x4813d3,_0x547a31){const _0x3be957=_0x1b4be6,_0x56cfa8=_0x4813d3?_0x3be957(0x123):_0x3be957(0x116);_0x547a31[_0x3be957(0x12f)](_0x5ed741=>{const _0x5b186b=_0x3be957,_0x8ee102=this[_0x5b186b(0x128)][_0x56cfa8],_0x5e138c=_0x8ee102[_0x5b186b(0x141)](({index:_0x5218a5})=>_0x5218a5===_0x5ed741[_0x5b186b(0x130)]);if(_0x5e138c){const _0x59b2bd=_0x8ee102[_0x5b186b(0x14e)](_0x5e138c);_0x8ee102[_0x5b186b(0x146)](_0x59b2bd,0x1,_0x5ed741);}else _0x8ee102[_0x5b186b(0x153)](_0x5ed741);});}[_0x1b4be6(0x12a)](){const _0x2888d3=_0x1b4be6;if(_0x2888d3(0x147)===this[_0x2888d3(0x12c)]){this[_0x2888d3(0x142)]=this[_0x2888d3(0x136)][_0x2888d3(0x124)](this[_0x2888d3(0x140)]);const _0x350e94=this[_0x2888d3(0x10b)];this[_0x2888d3(0x112)]();const _0x2d0b6b=this[_0x2888d3(0x14f)](_0x350e94,this[_0x2888d3(0x10b)]);(_0x2d0b6b[_0x2888d3(0x135)]||this[_0x2888d3(0x13b)])&&(this[_0x2888d3(0x114)](_0x2888d3(0x159),this,_0x2d0b6b),this[_0x2888d3(0x128)][_0x2888d3(0x123)][_0x2888d3(0x135)]=this[_0x2888d3(0x128)][_0x2888d3(0x116)][_0x2888d3(0x135)]=0x0);}else this[_0x2888d3(0x142)]=this[_0x2888d3(0x136)][_0x2888d3(0x137)](this[_0x2888d3(0x140)]),this[_0x2888d3(0x114)](_0x2888d3(0x159),this);}[_0x1b4be6(0x14f)](_0x2a5608,_0x23517d){const _0x261850=_0x1b4be6,_0x58936e=[];for(const _0xc6c3de of _0x23517d){const _0x47ba56=_0x2a5608[_0xc6c3de[_0x261850(0x130)]];_0x47ba56?_0x47ba56[_0x261850(0x11b)][_0x261850(0x135)]!==_0xc6c3de[_0x261850(0x11b)][_0x261850(0x135)]?_0x58936e[_0x261850(0x153)](_0xc6c3de):_0x47ba56[_0x261850(0x11b)][_0x261850(0x12f)]((_0x1b3f34,_0x47d075)=>{const _0x574551=_0x261850,_0x3715f4=_0xc6c3de[_0x574551(0x11b)][_0x47d075];_0x1b3f34['id']!==_0x3715f4['id']&&_0x58936e[_0x574551(0x153)](_0xc6c3de);}):_0x58936e[_0x261850(0x153)](_0xc6c3de);}return _0x58936e;}[_0x1b4be6(0x112)](){const _0x2a68e8=_0x1b4be6,_0x5e5936=new _0x21e6c3('p',{},[new _0x21e6c3(_0x2a68e8(0x133),{'style':_0x2a68e8(0x126)},[new _0x4c08c6(_0x4dea68(this[_0x2a68e8(0x121)][_0x2a68e8(0x145)],_0x2a68e8(0x12d)))])]),_0x5ec559=this[_0x2a68e8(0x15d)][_0x2a68e8(0x125)](this[_0x2a68e8(0x142)],this[_0x2a68e8(0x118)][_0x2a68e8(0x160)](!0x0),{'markUnstableElements':!this[_0x2a68e8(0x13b)],'replaceRemovedWith':_0x5e5936,'cutAfterLastChange':!this[_0x2a68e8(0x13b)]});if(!_0x5ec559[_0x2a68e8(0x138)][_0x2a68e8(0x135)]&&!this[_0x2a68e8(0x13b)])return;this[_0x2a68e8(0x131)]=_0x5ec559[_0x2a68e8(0x142)];let _0x2251a9=[];if(_0x383d9c(_0x54b239=>{const _0x3276b9=_0x2a68e8,_0x395899=_0x517994(_0x54b239,_0x3276b9(0x13c));if(!_0x395899||!_0x3f9a13(_0x395899))return!0x1;const _0x148b18=[_0x54b239,..._0x407a48(_0x54b239)]['at'](-0x2);if(_0x54b239!=_0x148b18){const _0x2b2606=_0x517994(_0x148b18,_0x3276b9(0x13c));_0x3f9a13(_0x2b2606)||(_0x2251a9[_0x3276b9(0x153)]({'node':_0x148b18,'id':_0x2b2606,'type':_0x3276b9(0x127)}),_0x5ec559[_0x3276b9(0x138)][_0x3276b9(0x153)](_0x2b2606));}else _0x5ec559[_0x3276b9(0x138)][_0x3276b9(0x12e)](_0x395899)?_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x127),'id':_0x395899}):_0x5ec559[_0x3276b9(0x15e)][_0x3276b9(0x12e)](_0x395899)?_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x12b),'id':_0x395899,'anchorId':_0x517994(_0x54b239[_0x3276b9(0x14a)],_0x3276b9(0x13c))}):_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x15a),'id':_0x395899});return!0x0;},this[_0x2a68e8(0x131)]),_0x2251a9=_0x2251a9[_0x2a68e8(0x11a)](({node:_0x5ae530})=>[..._0x407a48(_0x5ae530),_0x5ae530][_0x2a68e8(0x117)](_0x393793=>!_0x517994(_0x393793,_0x2a68e8(0x10f)))),0x0==_0x2251a9[_0x2a68e8(0x135)])return;const _0x5e9d5d=[[_0x2251a9[0x0]]];for(let _0xebd775=0x1;_0xebd775<_0x2251a9[_0x2a68e8(0x135)];_0xebd775++){const _0x2cbbc3=_0x5e9d5d[_0x5e9d5d[_0x2a68e8(0x135)]-0x1],_0xa99323=_0x2cbbc3[_0x2cbbc3[_0x2a68e8(0x135)]-0x1];_0x2251a9[_0xebd775][_0x2a68e8(0x10c)][_0x2a68e8(0x14a)]==_0xa99323[_0x2a68e8(0x10c)]&&_0x2a68e8(0x127)!=_0x2251a9[_0xebd775][_0x2a68e8(0x12c)]&&_0x2a68e8(0x127)!=_0xa99323[_0x2a68e8(0x12c)]?_0x2cbbc3[_0x2a68e8(0x153)](_0x2251a9[_0xebd775]):_0x5e9d5d[_0x2a68e8(0x153)]([_0x2251a9[_0xebd775]]);}for(const _0x2fe172 of _0x5e9d5d){const _0xc18c51=_0x2fe172[0x0],_0x27ab2c=_0x2fe172[_0x2fe172[_0x2a68e8(0x135)]-0x1],_0x2963f3=_0x569bde(_0xc18c51[_0x2a68e8(0x10c)][_0x2a68e8(0x14a)]);_0x2963f3&&_0x2fe172[_0x2a68e8(0x155)](_0x2963f3);const _0x4f59ea=_0x569bde(_0x27ab2c[_0x2a68e8(0x10c)][_0x2a68e8(0x122)]);_0x4f59ea&&_0x2fe172[_0x2a68e8(0x153)](_0x4f59ea);}function _0x3f9a13(_0x43aa8a){const _0xaccd69=_0x2a68e8;return _0x5ec559[_0xaccd69(0x138)][_0xaccd69(0x12e)](_0x43aa8a)||_0x5ec559[_0xaccd69(0x15e)][_0xaccd69(0x12e)](_0x43aa8a)||_0x5ec559[_0xaccd69(0x134)][_0xaccd69(0x12e)](_0x43aa8a);}function _0x569bde(_0x10b92a){const _0x2f1c37=_0x2a68e8;if(_0x10b92a&&_0x517994(_0x10b92a,_0x2f1c37(0x13c))&&!_0x517994(_0x10b92a,_0x2f1c37(0x10f))){const _0x417343=_0x517994(_0x10b92a,_0x2f1c37(0x13c));if(!_0x3f9a13(_0x417343))return{'node':_0x10b92a,'type':_0x2f1c37(0x13d),'id':_0x417343};}return null;}this[_0x2a68e8(0x10b)]=_0x5e9d5d[_0x2a68e8(0x11c)]((_0x5e18d5,_0x39936c)=>({'changes':_0x5e18d5,'state':_0x2a68e8(0x10a),'index':_0x39936c}));}}export function isValidReplyType(_0x5c39ef){const _0x22580e=_0x1b4be6;return Object[_0x22580e(0x10e)](AI_REPLY_TYPES)[_0x22580e(0x12e)](_0x5c39ef);}function _0x145d(){const _0x5d23f5=['forEach','index','parsedMergedContent','_getCachedContentParts','span','removedNodeIds','length','aiResponseParser','convertMarkdownToHTML','modifiedNodeIds','12uVNQwy','appendContent','isDone','data-id','context','state','change:content','content','find','parsedContent','stopListening','done','locale','splice','modification-delta','reasoning','17210787OjIUJj','previousSibling','getContentParts','4KCWoQs','text-delta','indexOf','_getDifferentChangeGroups','destroy','web-search','1414mFKLgA','push','233459jGzGcb','unshift','areActionsDisabled','1403772KhGFXM','set','replyContentUpdated','removed','sources','2659168zzdQjX','aiResponseApplier','newNodeIds','replyChangeGroupStateUpdated','cloneNode','source','pending','changeGroups','node','5IMJlhq','values','data-unstable','3972370YlkOpp','16760raYoYP','updateChangeGroups','conversation-title','fire','_setCachedContentParts','withoutDiff','every','documentContextContent','interactionId','filter','changes','map','9rVqCft','ai-reply-get-content-parts-group-not-found','881721iidRmM','setChangeGroupState','editor','nextSibling','withDiff','parseAndNormalizeHTML','merge','color:\x20#808080;\x20font-style:\x20italic','modified','cachedSuggestionContentParts','ai-get-editor-from-context-no-editor','onContentChange','new','type','AI_SUGGESTION_CONTENT_PART_REMOVED','includes'];_0x145d=function(){return _0x5d23f5;};return _0x145d();}export function isIgnoredReplyType(_0x25d17b){const _0xbc3bd=_0x1b4be6;return AI_REPLY_TYPES_IGNORED[_0xbc3bd(0x12e)](_0x25d17b);}export function isReplyTitleType(_0x5f4d5a){return _0x5f4d5a===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x36400f){const _0x2245ab=_0x1b4be6;return _0x2245ab(0x109)===_0x36400f;}
|
|
23
|
+
const _0x352474=_0xebb8;(function(_0x473f72,_0x4a73ec){const _0x3a4f73=_0xebb8,_0x42cb06=_0x473f72();while(!![]){try{const _0x392002=parseInt(_0x3a4f73(0x17f))/0x1+parseInt(_0x3a4f73(0x192))/0x2+parseInt(_0x3a4f73(0x17a))/0x3+-parseInt(_0x3a4f73(0x1a6))/0x4*(parseInt(_0x3a4f73(0x1a5))/0x5)+parseInt(_0x3a4f73(0x179))/0x6*(parseInt(_0x3a4f73(0x1bd))/0x7)+parseInt(_0x3a4f73(0x1c4))/0x8*(parseInt(_0x3a4f73(0x178))/0x9)+parseInt(_0x3a4f73(0x187))/0xa*(-parseInt(_0x3a4f73(0x1a3))/0xb);if(_0x392002===_0x4a73ec)break;else _0x42cb06['push'](_0x42cb06['shift']());}catch(_0x3b6889){_0x42cb06['push'](_0x42cb06['shift']());}}}(_0x13c3,0x4e8ef));function _0x13c3(){const _0x5eb34c=['set','color:\x20#808080;\x20font-style:\x20italic','previousSibling','28455LHrXbW','modified','convertMarkdownToHTML','web-search','AI_SUGGESTION_CONTENT_PART_REMOVED','_getCachedContentParts','pending','8SLTENO','values','parsedContent','cloneNode','data-id','indexOf','fire','_getDifferentChangeGroups','find','ai-reply-get-content-parts-group-not-found','appendContent','4178781QTkhUL','426GjutAN','1269141laGidX','modification-delta','sources','forEach','_setCachedContentParts','200740vJfmXI','aiResponseParser','splice','locale','withoutDiff','modifiedNodeIds','context','conversation-title','3506970leGHgF','content','stopListening','nextSibling','change:content','withDiff','node','type','every','unshift','push','123148yMFifA','map','getContentParts','removed','removedNodeIds','destroy','text-delta','data-unstable','aiResponseApplier','reasoning','index','length','updateChangeGroups','newNodeIds','state','documentContextContent','new','33zzwHWs','interactionId','322095QNhmNh','4ieBwgh','replyContentUpdated','source','setChangeGroupState','parseAndNormalizeHTML','filter','changes','onContentChange','areActionsDisabled','done','replyChangeGroupStateUpdated','isDone','cachedSuggestionContentParts','changeGroups','editor','includes','merge','ai-get-editor-from-context-no-editor','parsedMergedContent','span'];_0x13c3=function(){return _0x5eb34c;};return _0x13c3();}import{CKEditorError as _0x1eb2b7,ObservableMixin as _0x5309c8,uid as _0x84eeb4}from'ckeditor5/src/utils.js';import{Element as _0x3fbc50,findAll as _0xd61f12,getAttribute as _0x186595,getParents as _0x54ba44,Document as _0x50389f,parse as _0x1a3f5e,Text as _0x516db5}from'../utils/htmlparser.js';import{AIResponseParser as _0x29261c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1d9b9a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x9b4335}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x501f32}from'../utils/common-translations.js';import{cloneDeep as _0x156653}from'es-toolkit';export const AI_REPLY_TYPES=[_0x352474(0x17b),_0x352474(0x198),_0x352474(0x1c0),_0x352474(0x19b)];export const AI_REPLY_TYPES_IGNORED=[_0x352474(0x186)];export const AI_REPLY_TITLE_TYPE=_0x352474(0x186);export class AIReply extends _0x5309c8(){['id'];[_0x352474(0x1a4)];[_0x352474(0x18e)];[_0x352474(0x17c)]=[];[_0x352474(0x1c6)]=new _0x50389f([]);[_0x352474(0x1b8)]=new _0x50389f([]);[_0x352474(0x1b3)]=[];[_0x352474(0x1ae)]=!0x1;[_0x352474(0x1a1)];[_0x352474(0x180)];[_0x352474(0x19a)];[_0x352474(0x1b4)];[_0x352474(0x1b2)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x57b112,content:_0x4af3ae='',isDone:_0x2c338e=!0x1,interactionId:_0x4793e0,areActionsDisabled:_0xdcd63b,documentContextContent:_0x150417,editor:_0x5e0583,id:_0x23121d}){const _0x3117c0=_0x352474;super(),this['id']=_0x23121d||_0x84eeb4(),this[_0x3117c0(0x1a4)]=_0x4793e0,this[_0x3117c0(0x18e)]=_0x57b112,this[_0x3117c0(0x1ae)]=!!_0xdcd63b,this[_0x3117c0(0x1b4)]=_0x5e0583,this[_0x3117c0(0x180)]=new _0x29261c(),this[_0x3117c0(0x19a)]=new _0x1d9b9a(),this[_0x3117c0(0x1a1)]=_0x1a3f5e(_0x150417||''),this[_0x3117c0(0x1ba)](_0x3117c0(0x1b1),_0x2c338e),this['on'](_0x3117c0(0x18b),()=>{const _0x38c007=_0x3117c0;this[_0x38c007(0x1ad)]();}),this[_0x3117c0(0x1ba)](_0x3117c0(0x188),_0x4af3ae);}[_0x352474(0x177)](_0x7d94bc){const _0x529e22=_0x352474;this[_0x529e22(0x1ba)](_0x529e22(0x188),this[_0x529e22(0x188)]+_0x7d94bc);}[_0x352474(0x1af)](){const _0x5e4934=_0x352474;this[_0x5e4934(0x1b1)]||(this[_0x5e4934(0x1ba)](_0x5e4934(0x1b1),!0x0),this[_0x5e4934(0x1ad)]());}[_0x352474(0x197)](){const _0x3bcf33=_0x352474;this[_0x3bcf33(0x189)]();}[_0x352474(0x1a9)](_0x8f3fb3,_0x2a24b4){const _0x3331c5=_0x352474;this[_0x3331c5(0x1b3)][_0x8f3fb3][_0x3331c5(0x1a0)]=_0x2a24b4,this[_0x3331c5(0x173)](_0x3331c5(0x1b0),{'reply':this,'index':_0x8f3fb3,'state':_0x2a24b4});}[_0x352474(0x194)]({showDiff:_0x242336,groupIndex:_0x17bd00}){const _0x4fe955=_0x352474;if(!this[_0x4fe955(0x1b4)])throw new _0x1eb2b7(_0x4fe955(0x1b7),null,{'aiReply':this});const _0x5c1184=this[_0x4fe955(0x1c2)](_0x242336,_0x17bd00);if(_0x5c1184)return _0x5c1184;let _0x5576c7=[];if(void 0x0===_0x17bd00)_0x5576c7=this[_0x4fe955(0x1b3)];else{const _0x3ec939=this[_0x4fe955(0x1b3)][_0x4fe955(0x175)](({index:_0xe119db})=>_0xe119db===_0x17bd00);if(!_0x3ec939)throw new _0x1eb2b7(_0x4fe955(0x176),null,{'aiReply':this,'groupIndex':_0x17bd00});_0x5576c7=[_0x3ec939];}const _0x2ff1ac=_0x9b4335({'editor':this[_0x4fe955(0x1b4)],'showDiff':_0x242336,'changeGroups':_0x5576c7,'documentContextContent':this[_0x4fe955(0x1a1)]});return this[_0x4fe955(0x17e)](_0x242336,_0x2ff1ac),_0x2ff1ac;}[_0x352474(0x1c2)](_0x33b98c,_0xf957f1){const _0x310643=_0x352474,_0x121b27=_0x33b98c?_0x310643(0x18c):_0x310643(0x183);if(!this[_0x310643(0x1b2)][_0x121b27][_0x310643(0x19d)])return null;const _0x895b46=this[_0x310643(0x1b2)][_0x121b27];if(void 0x0===_0xf957f1)return _0x156653(_0x895b46);{const _0x81e3b0=_0x895b46[_0x310643(0x175)](({index:_0x2fb447})=>_0x2fb447===_0xf957f1);if(_0x81e3b0)return[_0x156653(_0x81e3b0)];}return null;}[_0x352474(0x17e)](_0x4b664f,_0x279c28){const _0x458ce0=_0x352474,_0x3f37c3=_0x4b664f?_0x458ce0(0x18c):_0x458ce0(0x183);_0x279c28[_0x458ce0(0x17d)](_0x172620=>{const _0x5818eb=_0x458ce0,_0x40b82c=this[_0x5818eb(0x1b2)][_0x3f37c3],_0x166b8e=_0x40b82c[_0x5818eb(0x175)](({index:_0x4f3188})=>_0x4f3188===_0x172620[_0x5818eb(0x19c)]);if(_0x166b8e){const _0x19baa3=_0x40b82c[_0x5818eb(0x172)](_0x166b8e);_0x40b82c[_0x5818eb(0x181)](_0x19baa3,0x1,_0x172620);}else _0x40b82c[_0x5818eb(0x191)](_0x172620);});}[_0x352474(0x1ad)](){const _0x5b6529=_0x352474;if(_0x5b6529(0x17b)===this[_0x5b6529(0x18e)]){this[_0x5b6529(0x1c6)]=this[_0x5b6529(0x180)][_0x5b6529(0x1aa)](this[_0x5b6529(0x188)]);const _0x15f336=this[_0x5b6529(0x1b3)];this[_0x5b6529(0x19e)]();const _0x540cc8=this[_0x5b6529(0x174)](_0x15f336,this[_0x5b6529(0x1b3)]);(_0x540cc8[_0x5b6529(0x19d)]||this[_0x5b6529(0x1b1)])&&(this[_0x5b6529(0x173)](_0x5b6529(0x1a7),this,_0x540cc8),this[_0x5b6529(0x1b2)][_0x5b6529(0x18c)][_0x5b6529(0x19d)]=this[_0x5b6529(0x1b2)][_0x5b6529(0x183)][_0x5b6529(0x19d)]=0x0);}else this[_0x5b6529(0x1c6)]=this[_0x5b6529(0x180)][_0x5b6529(0x1bf)](this[_0x5b6529(0x188)]),this[_0x5b6529(0x173)](_0x5b6529(0x1a7),this);}[_0x352474(0x174)](_0x378ee9,_0x2c2f82){const _0x2bd424=_0x352474,_0x216077=[];for(const _0x35096b of _0x2c2f82){const _0x2ab952=_0x378ee9[_0x35096b[_0x2bd424(0x19c)]];_0x2ab952?_0x2ab952[_0x2bd424(0x1ac)][_0x2bd424(0x19d)]!==_0x35096b[_0x2bd424(0x1ac)][_0x2bd424(0x19d)]?_0x216077[_0x2bd424(0x191)](_0x35096b):_0x2ab952[_0x2bd424(0x1ac)][_0x2bd424(0x17d)]((_0x274cec,_0xb301fd)=>{const _0x444da0=_0x2bd424,_0x59b65c=_0x35096b[_0x444da0(0x1ac)][_0xb301fd];_0x274cec['id']!==_0x59b65c['id']&&_0x216077[_0x444da0(0x191)](_0x35096b);}):_0x216077[_0x2bd424(0x191)](_0x35096b);}return _0x216077;}[_0x352474(0x19e)](){const _0x2d5163=_0x352474,_0x4aaacb=new _0x3fbc50('p',{},[new _0x3fbc50(_0x2d5163(0x1b9),{'style':_0x2d5163(0x1bb)},[new _0x516db5(_0x501f32(this[_0x2d5163(0x1b4)][_0x2d5163(0x182)],_0x2d5163(0x1c1)))])]),_0x48c6e9=this[_0x2d5163(0x19a)][_0x2d5163(0x1b6)](this[_0x2d5163(0x1c6)],this[_0x2d5163(0x1a1)][_0x2d5163(0x170)](!0x0),{'markUnstableElements':!this[_0x2d5163(0x1b1)],'replaceRemovedWith':_0x4aaacb,'cutAfterLastChange':!this[_0x2d5163(0x1b1)]});if(!_0x48c6e9[_0x2d5163(0x184)][_0x2d5163(0x19d)]&&!this[_0x2d5163(0x1b1)])return;this[_0x2d5163(0x1b8)]=_0x48c6e9[_0x2d5163(0x1c6)];let _0x2508f7=[];if(_0xd61f12(_0x4da5cd=>{const _0x54670d=_0x2d5163,_0x4beb80=_0x186595(_0x4da5cd,_0x54670d(0x171));if(!_0x4beb80||!_0x57e3b9(_0x4beb80))return!0x1;const _0x328929=[_0x4da5cd,..._0x54ba44(_0x4da5cd)]['at'](-0x2);if(_0x4da5cd!=_0x328929){const _0x47359a=_0x186595(_0x328929,_0x54670d(0x171));_0x57e3b9(_0x47359a)||(_0x2508f7[_0x54670d(0x191)]({'node':_0x328929,'id':_0x47359a,'type':_0x54670d(0x1be)}),_0x48c6e9[_0x54670d(0x184)][_0x54670d(0x191)](_0x47359a));}else _0x48c6e9[_0x54670d(0x184)][_0x54670d(0x1b5)](_0x4beb80)?_0x2508f7[_0x54670d(0x191)]({'node':_0x4da5cd,'type':_0x54670d(0x1be),'id':_0x4beb80}):_0x48c6e9[_0x54670d(0x19f)][_0x54670d(0x1b5)](_0x4beb80)?_0x2508f7[_0x54670d(0x191)]({'node':_0x4da5cd,'type':_0x54670d(0x1a2),'id':_0x4beb80,'anchorId':_0x186595(_0x4da5cd[_0x54670d(0x1bc)],_0x54670d(0x171))}):_0x2508f7[_0x54670d(0x191)]({'node':_0x4da5cd,'type':_0x54670d(0x195),'id':_0x4beb80});return!0x0;},this[_0x2d5163(0x1b8)]),_0x2508f7=_0x2508f7[_0x2d5163(0x1ab)](({node:_0x1ed6c8})=>[..._0x54ba44(_0x1ed6c8),_0x1ed6c8][_0x2d5163(0x18f)](_0x44d4af=>!_0x186595(_0x44d4af,_0x2d5163(0x199)))),0x0==_0x2508f7[_0x2d5163(0x19d)])return;const _0x22b68d=[[_0x2508f7[0x0]]];for(let _0x3a157d=0x1;_0x3a157d<_0x2508f7[_0x2d5163(0x19d)];_0x3a157d++){const _0x2d8839=_0x22b68d[_0x22b68d[_0x2d5163(0x19d)]-0x1],_0x97fbdb=_0x2d8839[_0x2d8839[_0x2d5163(0x19d)]-0x1];_0x2508f7[_0x3a157d][_0x2d5163(0x18d)][_0x2d5163(0x1bc)]==_0x97fbdb[_0x2d5163(0x18d)]&&_0x2d5163(0x1be)!=_0x2508f7[_0x3a157d][_0x2d5163(0x18e)]&&_0x2d5163(0x1be)!=_0x97fbdb[_0x2d5163(0x18e)]?_0x2d8839[_0x2d5163(0x191)](_0x2508f7[_0x3a157d]):_0x22b68d[_0x2d5163(0x191)]([_0x2508f7[_0x3a157d]]);}for(const _0x239900 of _0x22b68d){const _0x35c7c3=_0x239900[0x0],_0x37950d=_0x239900[_0x239900[_0x2d5163(0x19d)]-0x1],_0x29b953=_0x28f1dc(_0x35c7c3[_0x2d5163(0x18d)][_0x2d5163(0x1bc)]);_0x29b953&&_0x239900[_0x2d5163(0x190)](_0x29b953);const _0x209076=_0x28f1dc(_0x37950d[_0x2d5163(0x18d)][_0x2d5163(0x18a)]);_0x209076&&_0x239900[_0x2d5163(0x191)](_0x209076);}function _0x57e3b9(_0x1fa44b){const _0x31146b=_0x2d5163;return _0x48c6e9[_0x31146b(0x184)][_0x31146b(0x1b5)](_0x1fa44b)||_0x48c6e9[_0x31146b(0x19f)][_0x31146b(0x1b5)](_0x1fa44b)||_0x48c6e9[_0x31146b(0x196)][_0x31146b(0x1b5)](_0x1fa44b);}function _0x28f1dc(_0x29500d){const _0x2713ea=_0x2d5163;if(_0x29500d&&_0x186595(_0x29500d,_0x2713ea(0x171))&&!_0x186595(_0x29500d,_0x2713ea(0x199))){const _0x4f065a=_0x186595(_0x29500d,_0x2713ea(0x171));if(!_0x57e3b9(_0x4f065a))return{'node':_0x29500d,'type':_0x2713ea(0x185),'id':_0x4f065a};}return null;}this[_0x2d5163(0x1b3)]=_0x22b68d[_0x2d5163(0x193)]((_0x144e7b,_0x165647)=>({'changes':_0x144e7b,'state':_0x2d5163(0x1c3),'index':_0x165647}));}}export function isValidReplyType(_0x1c1fc7){const _0xb0ca90=_0x352474;return Object[_0xb0ca90(0x1c5)](AI_REPLY_TYPES)[_0xb0ca90(0x1b5)](_0x1c1fc7);}export function isIgnoredReplyType(_0x275ff8){const _0x5d9585=_0x352474;return AI_REPLY_TYPES_IGNORED[_0x5d9585(0x1b5)](_0x275ff8);}function _0xebb8(_0x22444a,_0x5e94f7){const _0x13c336=_0x13c3();return _0xebb8=function(_0xebb83,_0x12b398){_0xebb83=_0xebb83-0x170;let _0x44f6b9=_0x13c336[_0xebb83];return _0x44f6b9;},_0xebb8(_0x22444a,_0x5e94f7);}export function isReplyTitleType(_0xda2949){return _0xda2949===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x191ada){const _0x39dda7=_0x352474;return _0x39dda7(0x1a8)===_0x191ada;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
_0x5904cc(){[_0x23b2a7(0xbf)];[_0x23b2a7(0xa2)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x23b2a7(0xc0)]=new Set();constructor(_0x3c9cb1){const _0x2ad837=_0x23b2a7;super(),this[_0x2ad837(0xbf)]=_0x3c9cb1||_0x43b7a7;}[_0x23b2a7(0x9c)](_0x5a6ceb,_0x3b6091,_0x29add6){const _0x231824=_0x23b2a7,_0xac5076=_0xeca4e5(_0x5a6ceb);if(0x0===_0x3b6091[_0x231824(0xd4)][_0x231824(0xcb)]){const _0x73e739=[];return _0x167d91(_0x231824(0xa6),_0x231824(0xb2),_0xac5076)[_0x231824(0xac)](_0x40fbd9=>{const _0x3c3d93=_0x231824,_0x33d8bc=this[_0x3c3d93(0xbf)]();_0x5973bf(_0x40fbd9,_0x3c3d93(0xa6),_0x33d8bc),_0x73e739[_0x3c3d93(0xce)](_0x33d8bc);}),this[_0x231824(0x9b)](_0xac5076),{'parsedContent':_0xac5076,'newNodeIds':_0x73e739,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x29add6&&_0x29add6[_0x231824(0xba)]&&this[_0x231824(0xc9)](_0xac5076),this[_0x231824(0xa2)][_0x231824(0xda)]=[],this[_0x231824(0xa2)][_0x231824(0xcf)]=[],this[_0x231824(0xa2)][_0x231824(0xb6)]=[],this[_0x231824(0xa2)][_0x231824(0xe2)]=[],this[_0x231824(0xa2)][_0x231824(0xa7)]=null,this[_0x231824(0xc0)]=new Set(_0x167d91(_0x231824(0xa6),null,_0x3b6091)[_0x231824(0xa8)](_0x2d1c95=>_0x763f7c(_0x2d1c95,_0x231824(0xa6)))[_0x231824(0xa3)](_0x5118e8=>!!_0x5118e8));let _0x45c394=-0x1,_0x31a661=!0x1;const _0x13b0f8=_0xac5076[_0x231824(0xd4)],_0x5d1ce9=Array[_0x231824(0xd3)](_0x13b0f8)[_0x231824(0xa3)](_0x21987c=>!(0x3===_0x21987c[_0x231824(0xa9)]&&''===_0x2eb762(_0x21987c)[_0x231824(0xc7)]())),_0x1640b3=_0x5d1ce9[_0x231824(0xcb)];for(let _0x1d3eb5=0x0;_0x1d3eb5<_0x1640b3;_0x1d3eb5++){const _0x16dcc4=_0x5d1ce9[_0x1d3eb5],_0x3a84aa=_0x5d1ce9[_0x1d3eb5+0x1];if(this[_0x231824(0xc5)](_0x16dcc4)){if(-0x1===_0x45c394&&(_0x45c394=_0x1d3eb5),this[_0x231824(0xd6)](_0x16dcc4),!this[_0x231824(0xc5)](_0x3a84aa)){const [_0x447b96,_0x4b78fb]=this[_0x231824(0xb7)](_0x16dcc4,_0x31a661,_0x3b6091);if(_0x447b96){const _0x222a65=Array[_0x231824(0xd3)](_0x5d1ce9)[_0x231824(0xe0)](_0x45c394,_0x1d3eb5+0x1);this[_0x231824(0xdf)](_0x447b96,_0x222a65,_0x4b78fb),_0x45c394=-0x1;}}}else{if(this[_0x231824(0xbb)](_0x16dcc4))_0x31a661=!0x0;else{if(this[_0x231824(0xcd)](_0x16dcc4)){const _0x226afe=_0x763f7c(_0x16dcc4,_0x231824(0xa6));if(_0x226afe&&this[_0x231824(0xc0)][_0x231824(0xe1)](_0x226afe)){const _0x362e60=_0x2228d3(_0x231824(0xa6),_0x226afe,_0x3b6091);this[_0x231824(0xc3)](_0x362e60,_0x16dcc4);}if(this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xb4)](_0x226afe)){const _0x603bd3=this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xb1)](_0x226afe);this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xc6)](_0x603bd3,0x1);}}else{if(this[_0x231824(0xc1)](_0x16dcc4)){const _0x15ade2=_0x763f7c(_0x16dcc4,_0x231824(0xa6));this[_0x231824(0xa2)][_0x231824(0xcf)][_0x231824(0xb4)](_0x15ade2)||this[_0x231824(0xa4)](_0x16dcc4);}}}}}for(const _0x178c13 of this[_0x231824(0xa2)][_0x231824(0xb6)]){const _0x13a341=_0x2228d3(_0x231824(0xa6),_0x178c13,_0x3b6091);if(_0x13a341){if(_0x29add6&&_0x29add6[_0x231824(0xde)]){this[_0x231824(0xa2)][_0x231824(0xa7)]=_0x178c13;const _0x2fbcea=_0x29add6[_0x231824(0xde)][_0x231824(0xb5)](!0x0);_0x5973bf(_0x2fbcea,_0x231824(0xa6),_0x178c13),_0x5973bf(_0x2fbcea,_0x231824(0xdc),_0x231824(0xaa)),_0x4d8fac(_0x13a341,_0x2fbcea);}else _0x5e35c3(_0x13a341);}}if(_0x167d91(_0x231824(0xad),null,_0x3b6091)[_0x231824(0xac)](_0x11b96=>{const _0x56b2cd=_0x231824,_0x5f018f=_0x763f7c(_0x11b96,_0x56b2cd(0xad)),_0x25e9b0=_0x2228d3(_0x56b2cd(0xa6),_0x5f018f,_0x3b6091);_0x25e9b0&&_0x3c07c0(_0x25e9b0,_0x11b96);}),_0x167d91(_0x231824(0xa6),_0x231824(0xb2),_0x3b6091)[_0x231824(0xac)](_0x201830=>{const _0x2b6f43=_0x231824,_0x4a0de5=this[_0x2b6f43(0xab)](_0x201830);_0x5973bf(_0x201830,_0x2b6f43(0xa6),_0x4a0de5),this[_0x2b6f43(0xa2)][_0x2b6f43(0xda)][_0x2b6f43(0xce)](_0x4a0de5);}),this[_0x231824(0x9b)](_0x3b6091),_0x29add6&&_0x29add6[_0x231824(0xba)]&&this[_0x231824(0xcc)](_0x3b6091,_0x29add6[_0x231824(0xb9)]||0x0),_0x29add6&&_0x29add6[_0x231824(0xa5)]&&this[_0x231824(0xa2)][_0x231824(0xa7)]){let _0x5b352f=_0x2228d3(_0x231824(0xa6),this[_0x231824(0xa2)][_0x231824(0xa7)],_0x3b6091);for(;_0x5b352f;)_0x3a21fe(_0x5b352f),_0x5b352f=_0x5b352f[_0x231824(0xd2)];}return{'parsedContent':_0x3b6091,'newNodeIds':this[_0x231824(0xa2)][_0x231824(0xda)],'modifiedNodeIds':this[_0x231824(0xa2)][_0x231824(0xcf)],'removedNodeIds':this[_0x231824(0xa2)][_0x231824(0xb6)]};}[_0x23b2a7(0xdf)](_0x45a6dd,_0x4cec01,_0x19deb6){const _0x1e5059=_0x23b2a7;for(const _0x1d9031 of _0x4cec01){const _0x17d061=this[_0x1e5059(0xab)](_0x1d9031);_0x5973bf(_0x1d9031,_0x1e5059(0xa6),_0x17d061),this[_0x1e5059(0xa2)][_0x1e5059(0xda)][_0x1e5059(0xce)](_0x17d061),this[_0x1e5059(0xa2)][_0x1e5059(0xa7)]=_0x17d061;}const _0x3f02f1=_0x1e5059(0xd9)===_0x19deb6||_0x1e5059(0xc2)===_0x19deb6?_0x4cec01[_0x1e5059(0xb8)]():_0x4cec01;for(const _0x3c0580 of _0x3f02f1)_0x104e5b(_0x45a6dd,_0x3c0580,_0x19deb6);}[_0x23b2a7(0xc3)](_0x240003,_0x7340c){const _0x3dd180=_0x23b2a7;if(!_0x240003)return;if(_0x23cfe4(_0x240003,_0x7340c))return;const _0x1ecc98=this[_0x3dd180(0xab)](_0x240003);_0x5973bf(_0x7340c,_0x3dd180(0xa6),_0x1ecc98),this[_0x3dd180(0xa2)][_0x3dd180(0xcf)][_0x3dd180(0xce)](_0x1ecc98),this[_0x3dd180(0xa2)][_0x3dd180(0xa7)]=_0x1ecc98,_0x4d8fac(_0x240003,_0x7340c[_0x3dd180(0xb5)](!0x0));}[_0x23b2a7(0xb7)](_0x49b6ad,_0x306974,_0x1f61ba){const _0x39c6c6=_0x23b2a7,_0x37fe97=this[_0x39c6c6(0xc4)](_0x49b6ad,!0x1);if(_0x37fe97){const _0x58cb58=this[_0x39c6c6(0xbe)](_0x37fe97),_0x4a6348=_0x2228d3(_0x39c6c6(0xa6),_0x58cb58,_0x1f61ba);if(_0x4a6348)return[_0x4a6348,_0x39c6c6(0xc2)];this[_0x39c6c6(0xa2)][_0x39c6c6(0xe2)][_0x39c6c6(0xce)](_0x58cb58);}const _0x463f6f=this[_0x39c6c6(0xdd)](_0x49b6ad,!0x1);if(_0x463f6f){const _0x230cd3=this[_0x39c6c6(0xbe)](_0x463f6f),_0x5381d5=_0x2228d3(_0x39c6c6(0xa6),_0x230cd3,_0x1f61ba);if(_0x5381d5)return[_0x5381d5,_0x39c6c6(0xa0)];this[_0x39c6c6(0xa2)][_0x39c6c6(0xe2)][_0x39c6c6(0xce)](_0x230cd3);}return _0x306974?_0x49b6ad[_0x39c6c6(0xd0)]?this[_0x39c6c6(0xbc)](_0x49b6ad,_0x1f61ba):[_0x1f61ba[_0x39c6c6(0xd4)][_0x1f61ba[_0x39c6c6(0xd4)][_0x39c6c6(0xcb)]-0x1],_0x39c6c6(0xc2)]:[_0x1f61ba[_0x39c6c6(0xd4)][0x0],_0x39c6c6(0xa0)];}[_0x23b2a7(0xbc)](_0x321fcf,_0x376d31){const _0x3ca22f=_0x23b2a7,_0x17e18e=[],_0x1b0f5f=this[_0x3ca22f(0xc4)](_0x321fcf,!0x0);if(_0x1b0f5f){const _0x321e9b=this[_0x3ca22f(0xbe)](_0x1b0f5f),_0x4b26b4=_0x2228d3(_0x3ca22f(0xa6),_0x321e9b,_0x376d31);_0x4b26b4&&_0x17e18e[_0x3ca22f(0xce)]([_0x4b26b4,_0x3ca22f(0xc2)]);}const _0x29c84f=this[_0x3ca22f(0xdd)](_0x321fcf,!0x0);if(_0x29c84f){const _0x5f4699=this[_0x3ca22f(0xbe)](_0x29c84f),_0x2a3511=_0x2228d3(_0x3ca22f(0xa6),_0x5f4699,_0x376d31);_0x2a3511&&_0x17e18e[_0x3ca22f(0xce)]([_0x2a3511,_0x3ca22f(0xa0)]);}if(_0x17e18e[_0x3ca22f(0xcb)]>0x1)return _0x5c81e5(_0x17e18e[0x0][0x0])<=_0x5c81e5(_0x17e18e[0x1][0x0])?_0x17e18e[0x0]:_0x17e18e[0x1];return 0x1===_0x17e18e[_0x3ca22f(0xcb)]?_0x17e18e[0x0]:[_0x376d31[_0x3ca22f(0xae)],_0x3ca22f(0xc2)];}[_0x23b2a7(0xdd)](_0x2857c7,_0x415662){const _0x19feb5=_0x23b2a7;let _0xc01d6a=_0x2857c7[_0x19feb5(0xd0)],_0x432a61=null,_0x386ac8=!0x1;for(;_0xc01d6a;){if(_0x5213e8(_0xc01d6a)){if(this[_0x19feb5(0xc1)](_0xc01d6a)&&(_0x432a61=_0xc01d6a),this[_0x19feb5(0xbb)](_0xc01d6a)&&_0x415662&&!_0x386ac8){_0x386ac8=!0x0,_0xc01d6a=_0xc01d6a[_0x19feb5(0xd0)];continue;}break;}const _0x447750=_0x763f7c(_0xc01d6a,_0x19feb5(0xa6));if(_0x447750&&_0x19feb5(0xb2)!==_0x447750&&this[_0x19feb5(0xc0)][_0x19feb5(0xe1)](_0x447750)){_0x432a61=_0xc01d6a;break;}_0xc01d6a=_0xc01d6a[_0x19feb5(0xd0)];}return _0x432a61;}[_0x23b2a7(0xc4)](_0x2a4892,_0x248fcc){const _0x68826c=_0x23b2a7;let _0x3c68c2=_0x2a4892[_0x68826c(0xd8)],_0x282b60=null,_0x4c58ba=!0x1;for(;_0x3c68c2;){if(_0x5213e8(_0x3c68c2)){if(this[_0x68826c(0xc1)](_0x3c68c2)&&(_0x282b60=_0x3c68c2),this[_0x68826c(0xbb)](_0x3c68c2)&&_0x248fcc&&!_0x4c58ba){_0x4c58ba=!0x0,_0x3c68c2=_0x3c68c2[_0x68826c(0xd8)];continue;}break;}const _0x252ca9=_0x763f7c(_0x3c68c2,_0x68826c(0xa6));if(_0x252ca9&&_0x68826c(0xb2)!==_0x252ca9&&this[_0x68826c(0xc0)][_0x68826c(0xe1)](_0x252ca9)){_0x282b60=_0x3c68c2;break;}_0x3c68c2=_0x3c68c2[_0x68826c(0xd8)];}return _0x282b60;}[_0x23b2a7(0xd6)](_0x5c2f60){const _0x47dcd9=_0x23b2a7;_0x4c8672(_0x5c2f60)&&_0x167d91(_0x47dcd9(0xa6),null,_0x5c2f60)[_0x47dcd9(0xac)](_0x524188=>{const _0x453744=_0x47dcd9;if(this[_0x453744(0xcd)](_0x524188)&&!this[_0x453744(0x9d)](_0x524188)){const _0x34c32a=_0x763f7c(_0x524188,_0x453744(0xa6));_0x5973bf(_0x524188,_0x453744(0xad),_0x34c32a),_0x5973bf(_0x524188,_0x453744(0xa6),null);}});}[_0x23b2a7(0xbe)](_0x52464b){const _0x483c73=_0x23b2a7;if(!_0x52464b)return null;if(_0x4c8672(_0x52464b))return _0x763f7c(_0x52464b,_0x483c73(0xa6));if(_0x5213e8(_0x52464b)){const _0x4df64a=_0x2eb762(_0x52464b)[_0x483c73(0xbd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4df64a&&_0x4df64a[0x1])return _0x4df64a[0x1];}return null;}[_0x23b2a7(0xa4)](_0x7f728){const _0x3b2c17=_0x23b2a7;if(_0x5213e8(_0x7f728)){const _0xd0b858=_0x2eb762(_0x7f728)[_0x3b2c17(0xbd)](/removed[\s*-]data-id="([^"]+)"/);_0xd0b858&&_0xd0b858[0x1]&&this[_0x3b2c17(0xa2)][_0x3b2c17(0xb6)][_0x3b2c17(0xce)](_0xd0b858[0x1]);}}[_0x23b2a7(0xab)](_0x140b41){const _0x463372=_0x23b2a7;return this[_0x463372(0xcd)](_0x140b41)?_0x763f7c(_0x140b41,_0x463372(0xa6)):this[_0x463372(0xbf)]();}[_0x23b2a7(0x9b)](_0x4ec918){const _0x236747=_0x23b2a7;_0x332c21(_0x4ec918)[_0x236747(0xa3)](_0x438505=>this[_0x236747(0xc1)](_0x438505)||this[_0x236747(0xbb)](_0x438505))[_0x236747(0xac)](_0x1bfed3=>{_0x5e35c3(_0x1bfed3);});}[_0x23b2a7(0xc9)](_0x9f29ce){const _0x14b02b=_0x23b2a7,_0xc6556=_0x9f29ce[_0x14b02b(0xd4)],_0x12643d=_0xc6556[_0xc6556[_0x14b02b(0xcb)]-0x1];_0x12643d&&_0x4c8672(_0x12643d)&&_0x5973bf(_0x12643d,_0x14b02b(0x9e),_0x14b02b(0xaa));}[_0x23b2a7(0xcc)](_0x9a20b8,_0x4c47cf){const _0x58288e=_0x23b2a7,_0x1bfbcd=_0x2228d3(_0x58288e(0x9e),_0x58288e(0xaa),_0x9a20b8);if(!_0x1bfbcd)return;const _0x2d0f10=_0x53ca22(_0x1bfbcd)[_0x58288e(0xe0)](0x0,-0x1),_0x3dcf5c=_0x2d0f10[_0x58288e(0xcb)];let _0x2de42f=_0x1bfbcd;if(_0x3dcf5c>_0x4c47cf){let _0x408c13=_0x3dcf5c,_0x2c4111=null;for(;_0x408c13>_0x4c47cf&&_0x408c13>=0x0;)_0x408c13--,_0x2c4111=_0x2d0f10[_0x408c13];_0x2c4111&&(_0x2de42f=_0x2c4111,_0x5973bf(_0x1bfbcd,_0x58288e(0x9e),null),_0x5973bf(_0x2c4111,_0x58288e(0x9e),_0x58288e(0xaa)));}else{if(_0x3dcf5c<_0x4c47cf){let _0x157ad4=_0x3dcf5c,_0x168918=_0x1bfbcd;for(;_0x157ad4<_0x4c47cf;){const _0x500866=_0x168918[_0x58288e(0xd4)][_0x58288e(0xa3)](_0x56af42=>_0x4c8672(_0x56af42));if(0x0===_0x500866[_0x58288e(0xcb)])break;_0x157ad4++,_0x168918=_0x500866[_0x500866[_0x58288e(0xcb)]-0x1];}_0x168918&&(_0x2de42f=_0x168918,_0x5973bf(_0x1bfbcd,_0x58288e(0x9e),null),_0x5973bf(_0x168918,_0x58288e(0x9e),_0x58288e(0xaa)));}}let _0x1d714e=_0x2de42f;for(;_0x1d714e;){for(;_0x1d714e[_0x58288e(0xd0)];)_0x1d714e=_0x1d714e[_0x58288e(0xd0)],_0x4c8672(_0x1d714e)&&_0x5973bf(_0x1d714e,_0x58288e(0x9e),_0x58288e(0xaa));_0x1d714e=_0x1d714e[_0x58288e(0xd2)];}}[_0x23b2a7(0xc5)](_0xc15ddf){const _0x4ab81a=_0x23b2a7;return Boolean(_0x4ab81a(0xb2)===_0x763f7c(_0xc15ddf,_0x4ab81a(0xa6)));}[_0x23b2a7(0xcd)](_0x2cf684){const _0x38df7d=_0x23b2a7;return Boolean((_0x763f7c(_0x2cf684,_0x38df7d(0xa6))||'')[_0x38df7d(0xcb)]>0x0&&_0x38df7d(0xb2)!==_0x763f7c(_0x2cf684,_0x38df7d(0xa6)));}[_0x23b2a7(0xc1)](_0x265be4){const _0x3a816c=_0x23b2a7;return!!_0x265be4&&Boolean(_0x5213e8(_0x265be4)&&_0x2eb762(_0x265be4)[_0x3a816c(0xbd)](/removed[\s*-]data-id="[^"]+"/));}[_0x23b2a7(0x9d)](_0xc451e2){const _0x47b016=_0x23b2a7;let _0xc4b5ce=_0xc451e2[_0x47b016(0xd2)];for(;_0xc4b5ce;){if(_0x763f7c(_0xc4b5ce,_0x47b016(0xad)))return!0x0;_0xc4b5ce=_0xc4b5ce[_0x47b016(0xd2)];}return!0x1;}[_0x23b2a7(0xbb)](_0x283bdf){const _0x144749=_0x23b2a7;return Boolean(_0x5213e8(_0x283bdf)&&_0x2eb762(_0x283bdf)[_0x144749(0xbd)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x5a3f(){const _0x7da451=['7084nBEkRs','forEach','cutAfterLastChange','10938BRWmVw','_storeDeletedElementIds','11mQoJcf','_markUnstableElements','markUnstableElementsDepth','has','_isDelNode','filter','_insertNodes','2680827fYyzEh','_findFallbackReferenceNode','childNodes','_getNodeDataId','modifiedIds','_isExistingContentComment','_markLastTagElementUnstable','910YlUbyz','afterbegin','_removeSpecialComments','778452HotZBf','includes','invalidIds','nodeType','trim','_getUid','from','2045xSdADn','_replaceNode','254683HIdBPS','_generateUid','indexOf','splice','lastTouchedId','map','_markWrappedElements','removedIds','nextSibling','push','merge','_isNewNode','_hasWrappedParent','data-wrapped-id','lastChild','_isExistingNode','_existingDataIds','22095dCsjLI','cloneNode','match','_findReferenceNode','_findNextElementWithDataId','true','replaceRemovedWith','_findPrevElementWithDataId','afterend','previousSibling','newIds','14834WqaPiA','4112kUMOsG','data-unstable','data-removed','beforebegin','new-element','reverse','slice','length','parentNode','_touchedNodesState','33sUBVtG','4OqlZZH','markUnstableElements','data-id'];_0x5a3f=function(){return _0x7da451;};return _0x5a3f();}const _0x37edaf=_0x269c;function _0x269c(_0x5e25a6,_0x65f1dd){const _0x5a3fec=_0x5a3f();return _0x269c=function(_0x269ca6,_0x1e05c3){_0x269ca6=_0x269ca6-0x171;let _0x4eea35=_0x5a3fec[_0x269ca6];return _0x4eea35;},_0x269c(_0x5e25a6,_0x65f1dd);}(function(_0x54edf6,_0x3e9a97){const _0x53d60b=_0x269c,_0x29e5bf=_0x54edf6();while(!![]){try{const _0x541a79=parseInt(_0x53d60b(0x1a0))/0x1*(-parseInt(_0x53d60b(0x195))/0x2)+parseInt(_0x53d60b(0x1b0))/0x3*(parseInt(_0x53d60b(0x1a1))/0x4)+-parseInt(_0x53d60b(0x177))/0x5*(parseInt(_0x53d60b(0x1a7))/0x6)+-parseInt(_0x53d60b(0x1a4))/0x7*(-parseInt(_0x53d60b(0x196))/0x8)+-parseInt(_0x53d60b(0x18a))/0x9*(-parseInt(_0x53d60b(0x1b7))/0xa)+-parseInt(_0x53d60b(0x1a9))/0xb*(-parseInt(_0x53d60b(0x1ba))/0xc)+-parseInt(_0x53d60b(0x179))/0xd;if(_0x541a79===_0x3e9a97)break;else _0x29e5bf['push'](_0x29e5bf['shift']());}catch(_0x3284d4){_0x29e5bf['push'](_0x29e5bf['shift']());}}}(_0x5a3f,0xa8f7e));import{ObservableMixin as _0x1f6d0f,uid as _0x5660b1}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x41c237,findByAttribute as _0x3841a1,getAttribute as _0x4bf908,isComment as _0x2dba0f,isTag as _0x27321f,insertElement as _0x3ff344,moveElement as _0x2832f3,removeElement as _0x3de413,replaceElement as _0x35e59f,serialize as _0x1bb420,setAttribute as _0xd3bb2,clone as _0x454471,findAllComments as _0x4970bb,getParents as _0x13488f,getNodeNestingLevel as _0x555755,areNodesSame as _0x41dbde,removeElementsAfter as _0x10cc21}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f6d0f(){[_0x37edaf(0x17a)];[_0x37edaf(0x19f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x37edaf(0x189)]=new Set();constructor(_0x55e9c7){const _0x26255e=_0x37edaf;super(),this[_0x26255e(0x17a)]=_0x55e9c7||_0x5660b1;}[_0x37edaf(0x183)](_0x2a0663,_0x46b5ff,_0x97a07){const _0xf2d240=_0x37edaf,_0x4a78bc=_0x454471(_0x2a0663);if(0x0===_0x46b5ff[_0xf2d240(0x1b2)][_0xf2d240(0x19d)]){const _0x4ff48e=[];return _0x41c237(_0xf2d240(0x1a3),_0xf2d240(0x19a),_0x4a78bc)[_0xf2d240(0x1a5)](_0x39894b=>{const _0x41c34c=_0xf2d240,_0x376112=this[_0x41c34c(0x17a)]();_0xd3bb2(_0x39894b,_0x41c34c(0x1a3),_0x376112),_0x4ff48e[_0x41c34c(0x182)](_0x376112);}),this[_0xf2d240(0x1b9)](_0x4a78bc),{'parsedContent':_0x4a78bc,'newNodeIds':_0x4ff48e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x97a07&&_0x97a07[_0xf2d240(0x1a2)]&&this[_0xf2d240(0x1b6)](_0x4a78bc),this[_0xf2d240(0x19f)][_0xf2d240(0x194)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x1b4)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x180)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x172)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x17d)]=null,this[_0xf2d240(0x189)]=new Set(_0x41c237(_0xf2d240(0x1a3),null,_0x46b5ff)[_0xf2d240(0x17e)](_0x5fa964=>_0x4bf908(_0x5fa964,_0xf2d240(0x1a3)))[_0xf2d240(0x1ae)](_0x43dc19=>!!_0x43dc19));let _0x563bd4=-0x1,_0x525db9=!0x1;const _0x4d8e2f=_0x4a78bc[_0xf2d240(0x1b2)],_0xa3ed7c=Array[_0xf2d240(0x176)](_0x4d8e2f)[_0xf2d240(0x1ae)](_0x2934e0=>!(0x3===_0x2934e0[_0xf2d240(0x173)]&&''===_0x1bb420(_0x2934e0)[_0xf2d240(0x174)]())),_0x3c761c=_0xa3ed7c[_0xf2d240(0x19d)];for(let _0x406130=0x0;_0x406130<_0x3c761c;_0x406130++){const _0x1c9974=_0xa3ed7c[_0x406130],_0x1e202a=_0xa3ed7c[_0x406130+0x1];if(this[_0xf2d240(0x184)](_0x1c9974)){if(-0x1===_0x563bd4&&(_0x563bd4=_0x406130),this[_0xf2d240(0x17f)](_0x1c9974),!this[_0xf2d240(0x184)](_0x1e202a)){const [_0x513acf,_0x58d64d]=this[_0xf2d240(0x18d)](_0x1c9974,_0x525db9,_0x46b5ff);if(_0x513acf){const _0x12f212=Array[_0xf2d240(0x176)](_0xa3ed7c)[_0xf2d240(0x19c)](_0x563bd4,_0x406130+0x1);this[_0xf2d240(0x1af)](_0x513acf,_0x12f212,_0x58d64d),_0x563bd4=-0x1;}}}else{if(this[_0xf2d240(0x1b5)](_0x1c9974))_0x525db9=!0x0;else{if(this[_0xf2d240(0x188)](_0x1c9974)){const _0x43f802=_0x4bf908(_0x1c9974,_0xf2d240(0x1a3));if(_0x43f802&&this[_0xf2d240(0x189)][_0xf2d240(0x1ac)](_0x43f802)){const _0x1892e8=_0x3841a1(_0xf2d240(0x1a3),_0x43f802,_0x46b5ff);this[_0xf2d240(0x178)](_0x1892e8,_0x1c9974);}if(this[_0xf2d240(0x19f)][_0xf2d240(0x180)][_0xf2d240(0x171)](_0x43f802)){const _0x22cd12=this[_0xf2d240(0x19f)][_0xf2d240(0x180)][_0xf2d240(0x17b)](_0x43f802);this[_0xf2d240(0x19f)][_0xf2d240(0x180)][_0xf2d240(0x17c)](_0x22cd12,0x1);}}else{if(this[_0xf2d240(0x1ad)](_0x1c9974)){const _0x37197b=_0x4bf908(_0x1c9974,_0xf2d240(0x1a3));this[_0xf2d240(0x19f)][_0xf2d240(0x1b4)][_0xf2d240(0x171)](_0x37197b)||this[_0xf2d240(0x1a8)](_0x1c9974);}}}}}for(const _0x144bd3 of this[_0xf2d240(0x19f)][_0xf2d240(0x180)]){const _0x10f1cd=_0x3841a1(_0xf2d240(0x1a3),_0x144bd3,_0x46b5ff);if(_0x10f1cd){if(_0x97a07&&_0x97a07[_0xf2d240(0x190)]){this[_0xf2d240(0x19f)][_0xf2d240(0x17d)]=_0x144bd3;const _0x4b71f5=_0x97a07[_0xf2d240(0x190)][_0xf2d240(0x18b)](!0x0);_0xd3bb2(_0x4b71f5,_0xf2d240(0x1a3),_0x144bd3),_0xd3bb2(_0x4b71f5,_0xf2d240(0x198),_0xf2d240(0x18f)),_0x35e59f(_0x10f1cd,_0x4b71f5);}else _0x3de413(_0x10f1cd);}}if(_0x41c237(_0xf2d240(0x186),null,_0x46b5ff)[_0xf2d240(0x1a5)](_0x313fa5=>{const _0x4a6674=_0xf2d240,_0x253f84=_0x4bf908(_0x313fa5,_0x4a6674(0x186)),_0x130985=_0x3841a1(_0x4a6674(0x1a3),_0x253f84,_0x46b5ff);_0x130985&&_0x2832f3(_0x130985,_0x313fa5);}),_0x41c237(_0xf2d240(0x1a3),_0xf2d240(0x19a),_0x46b5ff)[_0xf2d240(0x1a5)](_0x56ca27=>{const _0x440c8e=_0xf2d240,_0x50b2de=this[_0x440c8e(0x175)](_0x56ca27);_0xd3bb2(_0x56ca27,_0x440c8e(0x1a3),_0x50b2de),this[_0x440c8e(0x19f)][_0x440c8e(0x194)][_0x440c8e(0x182)](_0x50b2de);}),this[_0xf2d240(0x1b9)](_0x46b5ff),_0x97a07&&_0x97a07[_0xf2d240(0x1a2)]&&this[_0xf2d240(0x1aa)](_0x46b5ff,_0x97a07[_0xf2d240(0x1ab)]||0x0),_0x97a07&&_0x97a07[_0xf2d240(0x1a6)]&&this[_0xf2d240(0x19f)][_0xf2d240(0x17d)]){let _0x272a00=_0x3841a1(_0xf2d240(0x1a3),this[_0xf2d240(0x19f)][_0xf2d240(0x17d)],_0x46b5ff);for(;_0x272a00;)_0x10cc21(_0x272a00),_0x272a00=_0x272a00[_0xf2d240(0x19e)];}return{'parsedContent':_0x46b5ff,'newNodeIds':this[_0xf2d240(0x19f)][_0xf2d240(0x194)],'modifiedNodeIds':this[_0xf2d240(0x19f)][_0xf2d240(0x1b4)],'removedNodeIds':this[_0xf2d240(0x19f)][_0xf2d240(0x180)]};}[_0x37edaf(0x1af)](_0x1fb53e,_0x4c4b93,_0x6739bf){const _0x513d4a=_0x37edaf;for(const _0x1baebd of _0x4c4b93){const _0x247361=this[_0x513d4a(0x175)](_0x1baebd);_0xd3bb2(_0x1baebd,_0x513d4a(0x1a3),_0x247361),this[_0x513d4a(0x19f)][_0x513d4a(0x194)][_0x513d4a(0x182)](_0x247361),this[_0x513d4a(0x19f)][_0x513d4a(0x17d)]=_0x247361;}const _0x363895=_0x513d4a(0x1b8)===_0x6739bf||_0x513d4a(0x192)===_0x6739bf?_0x4c4b93[_0x513d4a(0x19b)]():_0x4c4b93;for(const _0x398c2e of _0x363895)_0x3ff344(_0x1fb53e,_0x398c2e,_0x6739bf);}[_0x37edaf(0x178)](_0x29cc98,_0x10e545){const _0x3b1014=_0x37edaf;if(!_0x29cc98)return;if(_0x41dbde(_0x29cc98,_0x10e545))return;const _0x43da21=this[_0x3b1014(0x175)](_0x29cc98);_0xd3bb2(_0x10e545,_0x3b1014(0x1a3),_0x43da21),this[_0x3b1014(0x19f)][_0x3b1014(0x1b4)][_0x3b1014(0x182)](_0x43da21),this[_0x3b1014(0x19f)][_0x3b1014(0x17d)]=_0x43da21,_0x35e59f(_0x29cc98,_0x10e545[_0x3b1014(0x18b)](!0x0));}[_0x37edaf(0x18d)](_0x51866b,_0x48a26a,_0x10cd32){const _0x5087bc=_0x37edaf,_0x2abdb5=this[_0x5087bc(0x191)](_0x51866b,!0x1);if(_0x2abdb5){const _0x98cf81=this[_0x5087bc(0x1b3)](_0x2abdb5),_0x27625d=_0x3841a1(_0x5087bc(0x1a3),_0x98cf81,_0x10cd32);if(_0x27625d)return[_0x27625d,_0x5087bc(0x192)];this[_0x5087bc(0x19f)][_0x5087bc(0x172)][_0x5087bc(0x182)](_0x98cf81);}const _0x42dbed=this[_0x5087bc(0x18e)](_0x51866b,!0x1);if(_0x42dbed){const _0x1e9802=this[_0x5087bc(0x1b3)](_0x42dbed),_0x3b54f1=_0x3841a1(_0x5087bc(0x1a3),_0x1e9802,_0x10cd32);if(_0x3b54f1)return[_0x3b54f1,_0x5087bc(0x199)];this[_0x5087bc(0x19f)][_0x5087bc(0x172)][_0x5087bc(0x182)](_0x1e9802);}return _0x48a26a?_0x51866b[_0x5087bc(0x181)]?this[_0x5087bc(0x1b1)](_0x51866b,_0x10cd32):[_0x10cd32[_0x5087bc(0x1b2)][_0x10cd32[_0x5087bc(0x1b2)][_0x5087bc(0x19d)]-0x1],_0x5087bc(0x192)]:[_0x10cd32[_0x5087bc(0x1b2)][0x0],_0x5087bc(0x199)];}[_0x37edaf(0x1b1)](_0x568143,_0x4a91da){const _0x38c5b5=_0x37edaf,_0x5c0e53=[],_0xf638dc=this[_0x38c5b5(0x191)](_0x568143,!0x0);if(_0xf638dc){const _0x42cdbe=this[_0x38c5b5(0x1b3)](_0xf638dc),_0x38ba14=_0x3841a1(_0x38c5b5(0x1a3),_0x42cdbe,_0x4a91da);_0x38ba14&&_0x5c0e53[_0x38c5b5(0x182)]([_0x38ba14,_0x38c5b5(0x192)]);}const _0x362f65=this[_0x38c5b5(0x18e)](_0x568143,!0x0);if(_0x362f65){const _0x5cd646=this[_0x38c5b5(0x1b3)](_0x362f65),_0x2ba3cb=_0x3841a1(_0x38c5b5(0x1a3),_0x5cd646,_0x4a91da);_0x2ba3cb&&_0x5c0e53[_0x38c5b5(0x182)]([_0x2ba3cb,_0x38c5b5(0x199)]);}if(_0x5c0e53[_0x38c5b5(0x19d)]>0x1)return _0x555755(_0x5c0e53[0x0][0x0])<=_0x555755(_0x5c0e53[0x1][0x0])?_0x5c0e53[0x0]:_0x5c0e53[0x1];return 0x1===_0x5c0e53[_0x38c5b5(0x19d)]?_0x5c0e53[0x0]:[_0x4a91da[_0x38c5b5(0x187)],_0x38c5b5(0x192)];}[_0x37edaf(0x18e)](_0x54ae25,_0x349285){const _0x3089ae=_0x37edaf;let _0x39e0e4=_0x54ae25[_0x3089ae(0x181)],_0xbadf72=null,_0x1f5a9f=!0x1;for(;_0x39e0e4;){if(_0x2dba0f(_0x39e0e4)){if(this[_0x3089ae(0x1ad)](_0x39e0e4)&&(_0xbadf72=_0x39e0e4),this[_0x3089ae(0x1b5)](_0x39e0e4)&&_0x349285&&!_0x1f5a9f){_0x1f5a9f=!0x0,_0x39e0e4=_0x39e0e4[_0x3089ae(0x181)];continue;}break;}const _0x33bdba=_0x4bf908(_0x39e0e4,_0x3089ae(0x1a3));if(_0x33bdba&&_0x3089ae(0x19a)!==_0x33bdba&&this[_0x3089ae(0x189)][_0x3089ae(0x1ac)](_0x33bdba)){_0xbadf72=_0x39e0e4;break;}_0x39e0e4=_0x39e0e4[_0x3089ae(0x181)];}return _0xbadf72;}[_0x37edaf(0x191)](_0x2a0e2f,_0x1de98a){const _0xe95688=_0x37edaf;let _0x33c760=_0x2a0e2f[_0xe95688(0x193)],_0x3698b9=null,_0x35ea43=!0x1;for(;_0x33c760;){if(_0x2dba0f(_0x33c760)){if(this[_0xe95688(0x1ad)](_0x33c760)&&(_0x3698b9=_0x33c760),this[_0xe95688(0x1b5)](_0x33c760)&&_0x1de98a&&!_0x35ea43){_0x35ea43=!0x0,_0x33c760=_0x33c760[_0xe95688(0x193)];continue;}break;}const _0x50a224=_0x4bf908(_0x33c760,_0xe95688(0x1a3));if(_0x50a224&&_0xe95688(0x19a)!==_0x50a224&&this[_0xe95688(0x189)][_0xe95688(0x1ac)](_0x50a224)){_0x3698b9=_0x33c760;break;}_0x33c760=_0x33c760[_0xe95688(0x193)];}return _0x3698b9;}[_0x37edaf(0x17f)](_0x56adcf){const _0x56bb77=_0x37edaf;_0x27321f(_0x56adcf)&&_0x41c237(_0x56bb77(0x1a3),null,_0x56adcf)[_0x56bb77(0x1a5)](_0x4cc831=>{const _0x1ddcd5=_0x56bb77;if(this[_0x1ddcd5(0x188)](_0x4cc831)&&!this[_0x1ddcd5(0x185)](_0x4cc831)){const _0x533f01=_0x4bf908(_0x4cc831,_0x1ddcd5(0x1a3));_0xd3bb2(_0x4cc831,_0x1ddcd5(0x186),_0x533f01),_0xd3bb2(_0x4cc831,_0x1ddcd5(0x1a3),null);}});}[_0x37edaf(0x1b3)](_0x25c6f5){const _0x48a2dd=_0x37edaf;if(!_0x25c6f5)return null;if(_0x27321f(_0x25c6f5))return _0x4bf908(_0x25c6f5,_0x48a2dd(0x1a3));if(_0x2dba0f(_0x25c6f5)){const _0x2cbb1b=_0x1bb420(_0x25c6f5)[_0x48a2dd(0x18c)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2cbb1b&&_0x2cbb1b[0x1])return _0x2cbb1b[0x1];}return null;}[_0x37edaf(0x1a8)](_0x2668d7){const _0x179236=_0x37edaf;if(_0x2dba0f(_0x2668d7)){const _0x276ed=_0x1bb420(_0x2668d7)[_0x179236(0x18c)](/removed[\s*-]data-id="([^"]+)"/);_0x276ed&&_0x276ed[0x1]&&this[_0x179236(0x19f)][_0x179236(0x180)][_0x179236(0x182)](_0x276ed[0x1]);}}[_0x37edaf(0x175)](_0x3eabdd){const _0x37a028=_0x37edaf;return this[_0x37a028(0x188)](_0x3eabdd)?_0x4bf908(_0x3eabdd,_0x37a028(0x1a3)):this[_0x37a028(0x17a)]();}[_0x37edaf(0x1b9)](_0x4e029b){const _0x600475=_0x37edaf;_0x4970bb(_0x4e029b)[_0x600475(0x1ae)](_0x277958=>this[_0x600475(0x1ad)](_0x277958)||this[_0x600475(0x1b5)](_0x277958))[_0x600475(0x1a5)](_0x5a98b4=>{_0x3de413(_0x5a98b4);});}[_0x37edaf(0x1b6)](_0xd2d06e){const _0x5b1c87=_0x37edaf,_0x35d15a=_0xd2d06e[_0x5b1c87(0x1b2)],_0x1f5015=_0x35d15a[_0x35d15a[_0x5b1c87(0x19d)]-0x1];_0x1f5015&&_0x27321f(_0x1f5015)&&_0xd3bb2(_0x1f5015,_0x5b1c87(0x197),_0x5b1c87(0x18f));}[_0x37edaf(0x1aa)](_0x2740f8,_0x1ccaf3){const _0x12ebb3=_0x37edaf,_0x74476c=_0x3841a1(_0x12ebb3(0x197),_0x12ebb3(0x18f),_0x2740f8);if(!_0x74476c)return;const _0x460ca2=_0x13488f(_0x74476c)[_0x12ebb3(0x19c)](0x0,-0x1),_0x4bcf97=_0x460ca2[_0x12ebb3(0x19d)];let _0x248a9b=_0x74476c;if(_0x4bcf97>_0x1ccaf3){let _0x520288=_0x4bcf97,_0x1030c5=null;for(;_0x520288>_0x1ccaf3&&_0x520288>=0x0;)_0x520288--,_0x1030c5=_0x460ca2[_0x520288];_0x1030c5&&(_0x248a9b=_0x1030c5,_0xd3bb2(_0x74476c,_0x12ebb3(0x197),null),_0xd3bb2(_0x1030c5,_0x12ebb3(0x197),_0x12ebb3(0x18f)));}else{if(_0x4bcf97<_0x1ccaf3){let _0x8d538=_0x4bcf97,_0x16eeb3=_0x74476c;for(;_0x8d538<_0x1ccaf3;){const _0x3d349b=_0x16eeb3[_0x12ebb3(0x1b2)][_0x12ebb3(0x1ae)](_0x3946dd=>_0x27321f(_0x3946dd));if(0x0===_0x3d349b[_0x12ebb3(0x19d)])break;_0x8d538++,_0x16eeb3=_0x3d349b[_0x3d349b[_0x12ebb3(0x19d)]-0x1];}_0x16eeb3&&(_0x248a9b=_0x16eeb3,_0xd3bb2(_0x74476c,_0x12ebb3(0x197),null),_0xd3bb2(_0x16eeb3,_0x12ebb3(0x197),_0x12ebb3(0x18f)));}}let _0x1da13a=_0x248a9b;for(;_0x1da13a;){for(;_0x1da13a[_0x12ebb3(0x181)];)_0x1da13a=_0x1da13a[_0x12ebb3(0x181)],_0x27321f(_0x1da13a)&&_0xd3bb2(_0x1da13a,_0x12ebb3(0x197),_0x12ebb3(0x18f));_0x1da13a=_0x1da13a[_0x12ebb3(0x19e)];}}[_0x37edaf(0x184)](_0x4297db){const _0x1fb4af=_0x37edaf;return Boolean(_0x1fb4af(0x19a)===_0x4bf908(_0x4297db,_0x1fb4af(0x1a3)));}[_0x37edaf(0x188)](_0x2c632d){const _0x64a5c3=_0x37edaf;return Boolean((_0x4bf908(_0x2c632d,_0x64a5c3(0x1a3))||'')[_0x64a5c3(0x19d)]>0x0&&_0x64a5c3(0x19a)!==_0x4bf908(_0x2c632d,_0x64a5c3(0x1a3)));}[_0x37edaf(0x1ad)](_0x243007){const _0x372d03=_0x37edaf;return!!_0x243007&&Boolean(_0x2dba0f(_0x243007)&&_0x1bb420(_0x243007)[_0x372d03(0x18c)](/removed[\s*-]data-id="[^"]+"/));}[_0x37edaf(0x185)](_0x29626c){const _0x13b524=_0x37edaf;let _0x375933=_0x29626c[_0x13b524(0x19e)];for(;_0x375933;){if(_0x4bf908(_0x375933,_0x13b524(0x186)))return!0x0;_0x375933=_0x375933[_0x13b524(0x19e)];}return!0x1;}[_0x37edaf(0x1b5)](_0x58638a){const _0xef7eb1=_0x37edaf;return Boolean(_0x2dba0f(_0x58638a)&&_0x1bb420(_0x58638a)[_0xef7eb1(0x18c)](/\s*existing[\s*-](content|document)\s*/g));}}
|