@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x545b(_0x1c1ac7,_0x47c318){const _0x3a8a6f=_0x3a8a();return _0x545b=function(_0x545b65,_0x193524){_0x545b65=_0x545b65-0x10e;let _0x442348=_0x3a8a6f[_0x545b65];return _0x442348;},_0x545b(_0x1c1ac7,_0x47c318);}const _0x212580=_0x545b;(function(_0x4f4892,_0xa6cb4d){const _0x5a5698=_0x545b,_0x16c301=_0x4f4892();while(!![]){try{const _0x36590d=parseInt(_0x5a5698(0x15d))/0x1+parseInt(_0x5a5698(0x167))/0x2+-parseInt(_0x5a5698(0x156))/0x3+parseInt(_0x5a5698(0x117))/0x4*(parseInt(_0x5a5698(0x15f))/0x5)+-parseInt(_0x5a5698(0x130))/0x6*(-parseInt(_0x5a5698(0x159))/0x7)+-parseInt(_0x5a5698(0x152))/0x8+parseInt(_0x5a5698(0x135))/0x9*(-parseInt(_0x5a5698(0x13a))/0xa);if(_0x36590d===_0xa6cb4d)break;else _0x16c301['push'](_0x16c301['shift']());}catch(_0x2778d0){_0x16c301['push'](_0x16c301['shift']());}}}(_0x3a8a,0x83286));import{View as _0x2d5fa9,SearchTextView as _0x11d34a,FormHeaderView as _0x56f1a3,ButtonView as _0x4e3ba4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x40d80d,IconCancel as _0x56f0fd,IconPlus as _0x220d08}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x586905}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c04a2}from'./aichathistorylistview.js';function _0x3a8a(){const _0x436480=['extendTemplate','items','ck-rounded-corners','removeItem','errorView','isMaximized','_createEmptyStateView','change:hasItems','isSearchViewVisible','AI_CHAT_LABEL_NEW_CHAT','_createSkeletonView','fieldView','ltr','bindTemplate','children','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','locale','value','getItem','delegate','2566360FyZkaX','fire','render','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','1060089UKVPdl','sectionsView','queryView','2151569sBIqQK','push','element','_createListItemViews','57620QTLjRN','_updateViewVisibility','5SYrMdz','remove','emptyView','setTemplate','ck-ai-header\x20ck-ai-header_history','removeHistoryItem','isEmptyViewVisible','errorMessage','317202zMYbIr','isLoading','splice','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_LABEL','updateItemTitle','change:errorMessage','ck-ai-chat-error','ck-reset_all','_refreshSearch','ck-ai-chat-history__empty-message','3698836WXtHJW','addMany','hasItems','ck-ai-chat-history__content','set','isVisible','div','aiHistory','resizeButton','updateHistoryItemsWithCategories','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateTitle','ck-ai-chat-history','sections','ck-ai-chat-error__dismiss-button','updateItemLoadingState','add','title','execute','some','ck-ai-chat__start-conversation','search','indexOf','openChat','6xvoXtd','itemsViews','_createErrorView','searchView','change:isLoading','2132253FyXTXa','length','ck-ai-chat-history__empty','clear','updateLoadingState','10PZguDj','ck-hidden','bind','skeletonView'];_0x3a8a=function(){return _0x436480;};return _0x3a8a();}import{AIChatHistoryListItemView as _0x5d1c3f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xc935bc}from'../aichathistoryui.js';import{AISkeletonView as _0x44489a,SKELETON_DEFINITIONS as _0x52cf4d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x40b245}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x574855}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2d5fa9{[_0x212580(0x133)];[_0x212580(0x142)];[_0x212580(0x13d)];[_0x212580(0x161)];[_0x212580(0x157)];[_0x212580(0x11f)];constructor(_0x1d1b24,_0x9f16e2){const _0x511de4=_0x212580;super(_0x1d1b24),this[_0x511de4(0x11b)](_0x511de4(0x119),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x168),!0x0),this[_0x511de4(0x11b)](_0x511de4(0x166),''),this[_0x511de4(0x11b)](_0x511de4(0x143),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x146),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x165),!0x1);const _0x369d58=new _0x56f1a3(_0x1d1b24,{'label':_0x574855(_0x1d1b24,_0x511de4(0x10f)),'icon':_0x40d80d,'class':_0x511de4(0x163)});_0x9f16e2&&(this[_0x511de4(0x11f)]=_0x40b245(_0x1d1b24,this),_0x369d58[_0x511de4(0x14c)][_0x511de4(0x128)](this[_0x511de4(0x11f)])),this[_0x511de4(0x157)]=new _0x586905(_0x1d1b24,[]),this[_0x511de4(0x157)][_0x511de4(0x151)](..._0xc935bc)['to'](this),this[_0x511de4(0x142)]=this[_0x511de4(0x132)](),this[_0x511de4(0x13d)]=this[_0x511de4(0x148)](),this[_0x511de4(0x161)]=this[_0x511de4(0x144)](),this[_0x511de4(0x133)]=this[_0x511de4(0x121)](),this['on'](_0x511de4(0x134),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x145),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x112),()=>this[_0x511de4(0x15e)]()),this[_0x511de4(0x162)]({'tag':_0x511de4(0x11d),'attributes':{'class':['ck',_0x511de4(0x114),_0x511de4(0x124),_0x511de4(0x140)],'dir':_0x511de4(0x14a)},'children':[_0x369d58,{'tag':_0x511de4(0x11d),'attributes':{'class':[_0x511de4(0x11a)]},'children':[this[_0x511de4(0x13d)],this[_0x511de4(0x142)],this[_0x511de4(0x161)],this[_0x511de4(0x133)]]}]});}[_0x212580(0x15e)](){const _0x13e8e4=_0x212580;this[_0x13e8e4(0x146)]=!this[_0x13e8e4(0x168)]&&this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)],this[_0x13e8e4(0x165)]=!this[_0x13e8e4(0x168)]&&!this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)];}[_0x212580(0x121)](){const _0x59fc64=_0x212580,_0x5571c0=new _0x11d34a(this[_0x59fc64(0x14e)],{'filteredView':this[_0x59fc64(0x157)],'queryView':{'label':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x110))},'infoView':{'text':{'notFound':{'primary':_0x1ca5cf=>_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x155),_0x1ca5cf),'secondary':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x14d))}}}});return _0x5571c0['on'](_0x59fc64(0x154),()=>{const _0x464979=_0x59fc64;this[_0x464979(0x133)][_0x464979(0x14c)][_0x464979(0x128)](this[_0x464979(0x142)],0x1);}),_0x5571c0[_0x59fc64(0x13e)]({'attributes':{'class':[this[_0x59fc64(0x14b)]['if'](_0x59fc64(0x146),_0x59fc64(0x13b),_0x166c84=>!_0x166c84)]}}),_0x5571c0;}[_0x212580(0x148)](){const _0x4eb26a=_0x212580,_0x402d7c=new _0x44489a(this[_0x4eb26a(0x14e)],_0x52cf4d[_0x4eb26a(0x11e)]);return _0x402d7c[_0x4eb26a(0x13e)]({'attributes':{'class':[this[_0x4eb26a(0x14b)]['if'](_0x4eb26a(0x168),_0x4eb26a(0x13b),_0xeca38=>!_0xeca38)]}}),_0x402d7c;}[_0x212580(0x132)](){const _0x2867c5=_0x212580,_0x3cc5d9=new _0x2d5fa9(this[_0x2867c5(0x14e)]),_0x237e92=new _0x4e3ba4(this[_0x2867c5(0x14e)]);return _0x237e92[_0x2867c5(0x11b)]({'withText':!0x1,'icon':_0x56f0fd,'class':_0x2867c5(0x126)}),_0x237e92[_0x2867c5(0x13c)](_0x2867c5(0x11c))['to'](this,_0x2867c5(0x119),_0x7da371=>!!_0x7da371),_0x237e92['on'](_0x2867c5(0x12a),()=>{const _0x1e4977=_0x2867c5;this[_0x1e4977(0x166)]='';}),_0x3cc5d9[_0x2867c5(0x162)]({'tag':_0x2867c5(0x11d),'attributes':{'class':['ck',_0x2867c5(0x113),this[_0x2867c5(0x14b)]['if'](_0x2867c5(0x166),_0x2867c5(0x13b),_0x3b6866=>!_0x3b6866)]},'children':[{'tag':'p','children':[{'text':this[_0x2867c5(0x14b)]['to'](_0x2867c5(0x166))}]},_0x237e92]}),_0x3cc5d9;}[_0x212580(0x144)](){const _0x9fd980=_0x212580,_0x132e47=new _0x4e3ba4(this[_0x9fd980(0x14e)]);_0x132e47[_0x9fd980(0x11b)]({'label':_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x147)),'withText':!0x0,'icon':_0x220d08,'class':_0x9fd980(0x12c)}),_0x132e47['on'](_0x9fd980(0x12a),()=>{const _0x43594f=_0x9fd980;this[_0x43594f(0x153)](_0x43594f(0x12f));});const _0x9bbe08=new _0x2d5fa9(this[_0x9fd980(0x14e)]);return _0x9bbe08[_0x9fd980(0x162)]({'tag':_0x9fd980(0x11d),'attributes':{'class':[_0x9fd980(0x137),this[_0x9fd980(0x14b)]['if'](_0x9fd980(0x165),_0x9fd980(0x13b),_0x552e31=>!_0x552e31)]},'children':[{'tag':'p','attributes':{'class':[_0x9fd980(0x116)]},'children':[_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x122))]},_0x132e47]}),_0x9bbe08;}[_0x212580(0x15c)](_0x2dc803,_0x490681){const _0x5f1e3e=_0x212580,_0x3d29d6=[];for(const _0x5d537a of _0x2dc803){const _0x25fceb=new _0x5d1c3f(_0x490681,_0x5d537a);_0x25fceb[_0x5f1e3e(0x151)](..._0xc935bc)['to'](this),_0x3d29d6[_0x5f1e3e(0x15a)](_0x25fceb);}return _0x3d29d6;}[_0x212580(0x120)](_0x457d6c){const _0x520a08=_0x212580,_0x48baeb=this[_0x520a08(0x14e)]||'en',_0x2dacd0=[];for(const _0x3a8fca of _0x457d6c){const _0x567d4a=this[_0x520a08(0x15c)](_0x3a8fca[_0x520a08(0x13f)],_0x48baeb);_0x2dacd0[_0x520a08(0x15a)](new _0x5c04a2(_0x48baeb,{'title':_0x3a8fca[_0x520a08(0x129)],'items':_0x567d4a}));}this[_0x520a08(0x157)][_0x520a08(0x125)]=_0x2dacd0,this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x138)](),this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x118)](_0x2dacd0),this[_0x520a08(0x119)]=_0x457d6c[_0x520a08(0x12b)](_0x38150f=>_0x38150f[_0x520a08(0x13f)][_0x520a08(0x136)]>0x0),this[_0x520a08(0x115)]();}[_0x212580(0x164)](_0x578502){const _0x1056d0=_0x212580;for(const _0x459910 of this[_0x1056d0(0x157)][_0x1056d0(0x125)]){const _0x346f5d=_0x459910[_0x1056d0(0x150)](_0x578502);if(_0x346f5d){if(_0x459910[_0x1056d0(0x141)](_0x346f5d),0x0===_0x459910[_0x1056d0(0x131)][_0x1056d0(0x136)]){const _0x355080=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x12e)](_0x459910);-0x1!==_0x355080&&(this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x10e)](_0x355080,0x1),this[_0x1056d0(0x157)][_0x1056d0(0x13f)][_0x1056d0(0x160)](_0x459910));}this[_0x1056d0(0x119)]=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x136)]>0x0,this[_0x1056d0(0x115)]();break;}}}[_0x212580(0x111)](_0x4e665e,_0x6e4954){const _0x2a30e6=_0x212580;for(const _0x5c7dc1 of this[_0x2a30e6(0x157)][_0x2a30e6(0x125)]){const _0x137d31=_0x5c7dc1[_0x2a30e6(0x150)](_0x4e665e);if(_0x137d31){_0x137d31[_0x2a30e6(0x123)](_0x6e4954);break;}}}[_0x212580(0x127)](_0x3909fb,_0x5ee76b,_0x255533){const _0x34f1b0=_0x212580;for(const _0x127c62 of this[_0x34f1b0(0x157)][_0x34f1b0(0x125)]){const _0x371afd=_0x127c62[_0x34f1b0(0x150)](_0x3909fb);if(_0x371afd){_0x371afd[_0x34f1b0(0x139)](_0x5ee76b,_0x255533);break;}}}[_0x212580(0x115)](){const _0x2587a6=_0x212580;if(this[_0x2587a6(0x119)]){const _0x407929=this[_0x2587a6(0x133)][_0x2587a6(0x158)][_0x2587a6(0x149)]?.[_0x2587a6(0x15b)]?.[_0x2587a6(0x14f)]||'';this[_0x2587a6(0x133)][_0x2587a6(0x12d)](_0x407929);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2698b4=_0x48c7;(function(_0x51c35c,_0x4e42fd){const _0x4bb3d5=_0x48c7,_0x1dcfbd=_0x51c35c();while(!![]){try{const _0x1dd364=-parseInt(_0x4bb3d5(0x18b))/0x1*(parseInt(_0x4bb3d5(0x1d5))/0x2)+parseInt(_0x4bb3d5(0x1bc))/0x3*(-parseInt(_0x4bb3d5(0x182))/0x4)+parseInt(_0x4bb3d5(0x1eb))/0x5+-parseInt(_0x4bb3d5(0x1cd))/0x6*(-parseInt(_0x4bb3d5(0x1f2))/0x7)+parseInt(_0x4bb3d5(0x1fd))/0x8*(-parseInt(_0x4bb3d5(0x18e))/0x9)+parseInt(_0x4bb3d5(0x19c))/0xa+-parseInt(_0x4bb3d5(0x1d8))/0xb*(-parseInt(_0x4bb3d5(0x19a))/0xc);if(_0x1dd364===_0x4e42fd)break;else _0x1dcfbd['push'](_0x1dcfbd['shift']());}catch(_0x2657b8){_0x1dcfbd['push'](_0x1dcfbd['shift']());}}}(_0x4e11,0x7ae62));import{createParser as _0x267904}from'eventsource-parser';import{ContextPlugin as _0x2d2561}from'ckeditor5/src/core.js';import{CKEditorError as _0x5665af}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e794e}from'./utils/common-translations.js';export var AIActionsNames;function _0x48c7(_0x48d4f8,_0x5b545e){const _0x4e11a6=_0x4e11();return _0x48c7=function(_0x48c74e,_0x410e34){_0x48c74e=_0x48c74e-0x177;let _0x48cd84=_0x4e11a6[_0x48c74e];return _0x48cd84;},_0x48c7(_0x48d4f8,_0x5b545e);}!function(_0x22f145){const _0x31395f=_0x48c7;_0x22f145[_0x31395f(0x1a3)]=_0x31395f(0x189),_0x22f145[_0x31395f(0x1a0)]=_0x31395f(0x1fc),_0x22f145[_0x31395f(0x1bd)]=_0x31395f(0x195),_0x22f145[_0x31395f(0x194)]=_0x31395f(0x1be),_0x22f145[_0x31395f(0x1c8)]=_0x31395f(0x1da),_0x22f145[_0x31395f(0x17e)]=_0x31395f(0x204),_0x22f145[_0x31395f(0x19b)]=_0x31395f(0x1cf),_0x22f145[_0x31395f(0x18f)]=_0x31395f(0x1d0);}(AIActionsNames||(AIActionsNames={}));function _0x4e11(){const _0x2a4f27=['5699118IneUVk','upsertAIActionRating','make-tone-formal','translate','init','deleteConversation','reset','statusText','2UdtdGv','map','request','2371083cQJPEG','/messages','make-shorter','uploadUrl','_handleError','/calls','/ratings','updateConversation','/messages/','push','AbortError','token','plugins','positiveCount','search','/actions/system/','AI_MODEL_DESCRIPTION_','/reviews/system/','Content-Type','2044675yoJZRR','parse','https://ai.cke-cs.com/v1','fetchConversation','100','_decoder','fetchConversations','7VVGjfX','startConversation','/web-resources','config','attributes','/reviews/custom/calls/','getReader','/files/','ai-missing-token','limit','fix-grammar','90680XTEXLi','decode','PUT','GET','uploadFile','data','upsertCustomAIReviewRating','make-tone-casual','executeAction','/actions/custom/calls/','text','/calls/','AIConnector','callSystemReview','keys','excludeEmpty','_apiUrl','queryAssistant','/models/1','deleteWebResource','MAKE_TONE_CASUAL','toString','items','deleteDocument','2830924hzWGgn','/documents/','define','then','/conversations?','get','fetchConversationMessages','continue','_sendApiRequest','26637XWiVmw','executeCustomAction','/documents','432FiocWw','TRANSLATE','append','length','CloudServices','feed','MAKE_LONGER','improve-writing','PATCH','totalCount','upsertAIChatRating','requires','12qmFgcM','MAKE_TONE_FORMAL','2075010NISfOJ','pluginName','application/json','isPremiumPlugin','FIX_GRAMMAR','json','/files','CONTINUE','_token','getModels','isOfficialPlugin','upsertCustomAIActionRating','toUpperCase','/web-resources/','group','uploadDocument','status','_getStreamReader','catch','signal','true','/reviews/custom/calls','/conversations/','upsertAIReviewRating','locale','POST','name','body','/conversations','abortController','file','ai-request-failed','3OnoDEL','IMPROVE_WRITING','make-longer','Bearer\x20','read','ai-request-aborted','DELETE','value','/actions/custom/calls','context','fetchDocument','releaseLock','MAKE_SHORTER','ai.serviceUrl','deleteFile','stringify','callCustomReview'];_0x4e11=function(){return _0x2a4f27;};return _0x4e11();}export class AIConnector extends _0x2d2561{[_0x2698b4(0x17a)];[_0x2698b4(0x1a4)];[_0x2698b4(0x1f0)];static get[_0x2698b4(0x199)](){const _0x3a9d79=_0x2698b4;return[_0x3a9d79(0x192)];}static get[_0x2698b4(0x19d)](){const _0x53ff64=_0x2698b4;return _0x53ff64(0x209);}static get[_0x2698b4(0x1a6)](){return!0x0;}static get[_0x2698b4(0x19f)](){return!0x0;}constructor(_0x59939c){const _0x359944=_0x2698b4;super(_0x59939c),this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x184)](_0x359944(0x1c9),_0x359944(0x1ed)),this[_0x359944(0x17a)]=this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x187)](_0x359944(0x1c9)),this[_0x359944(0x1a4)]=null,this[_0x359944(0x1f0)]=new TextDecoder();}[_0x2698b4(0x1d1)](){const _0x1f9714=_0x2698b4,_0x51feca=this[_0x1f9714(0x1c5)][_0x1f9714(0x1e4)][_0x1f9714(0x187)](_0x1f9714(0x192));if(!_0x51feca[_0x1f9714(0x1e3)])throw new _0x5665af(_0x1f9714(0x1fa),this);this[_0x1f9714(0x1a4)]=_0x51feca[_0x1f9714(0x1e3)];}[_0x2698b4(0x1f3)](_0xf7b470,_0x15f357){const _0x913819=_0x2698b4,_0x4d52b3=this[_0x913819(0x18a)](_0x913819(0x1b8),_0x913819(0x1b5),{'id':_0xf7b470,'group':_0x15f357});return{'getConversation':async()=>(await _0x4d52b3[_0x913819(0x1d7)])[_0x913819(0x1a1)](),'abortController':_0x4d52b3[_0x913819(0x1b9)]};}[_0x2698b4(0x17b)]({message:_0x1e49e0,conversationId:_0x1be237,parts:_0x2664f8,capabilities:_0x35bd38,model:_0x39678d,quickActionData:_0x3c4351}){const _0x1e85c7=_0x2698b4,_0x5d722a={..._0x3c4351&&{'quickActionData':_0x3c4351}},_0x4bf759={'prompt':_0x1e49e0,'content':_0x2664f8,'model':_0x39678d,..._0x35bd38&&{'capabilities':_0x35bd38},...Object[_0x1e85c7(0x178)](_0x5d722a)[_0x1e85c7(0x191)]>0x0&&{'attributes':_0x5d722a}},_0x55bf22=this[_0x1e85c7(0x18a)](_0x1e85c7(0x1b2)+_0x1be237+_0x1e85c7(0x1d9),_0x1e85c7(0x1b5),_0x4bf759);return{'getStream':async()=>{const _0x5a08f1=_0x1e85c7,_0x370bf2=(await _0x55bf22[_0x5a08f1(0x1d7)])[_0x5a08f1(0x1b7)];return this[_0x5a08f1(0x1ad)](_0x370bf2);},'abortController':_0x55bf22[_0x1e85c7(0x1b9)]};}[_0x2698b4(0x18c)]({content:_0x3041c0,message:_0x2aaf52,model:_0x32e760,outputFormat:_0x526e66}){const _0x3f3ecd=_0x2698b4,_0xb5ec49={'content':[{'type':_0x3f3ecd(0x207),'content':_0x3041c0}],'prompt':_0x2aaf52,'model':_0x32e760,'outputFormat':_0x526e66},_0x2f36e7=this[_0x3f3ecd(0x18a)](_0x3f3ecd(0x1c4),_0x3f3ecd(0x1b5),_0xb5ec49);return{'getStream':async()=>{const _0x5d9c57=_0x3f3ecd,_0x24e572=(await _0x2f36e7[_0x5d9c57(0x1d7)])[_0x5d9c57(0x1b7)];return this[_0x5d9c57(0x1ad)](_0x24e572);},'abortController':_0x2f36e7[_0x3f3ecd(0x1b9)]};}[_0x2698b4(0x205)]({actionName:_0x3fe1ba,content:_0x278f00,args:_0x301b2a}){const _0x668ba1=_0x2698b4,_0x149eb5={'content':[{'type':_0x668ba1(0x207),'content':_0x278f00}],'args':_0x301b2a},_0x276ab6=this[_0x668ba1(0x18a)](_0x668ba1(0x1e7)+_0x3fe1ba+_0x668ba1(0x1dd),_0x668ba1(0x1b5),_0x149eb5);return{'getStream':async()=>{const _0x454882=_0x668ba1,_0x36c03f=(await _0x276ab6[_0x454882(0x1d7)])[_0x454882(0x1b7)];return this[_0x454882(0x1ad)](_0x36c03f);},'abortController':_0x276ab6[_0x668ba1(0x1b9)]};}[_0x2698b4(0x201)](_0x2edee9,_0x2ee1e7,_0x6eaf15){const _0x2791ff=_0x2698b4,_0x54e00e=new FormData();_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1ba),_0x2ee1e7,_0x2ee1e7[_0x2791ff(0x1b6)]),_0x6eaf15&&_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1f6),JSON[_0x2791ff(0x1cb)](_0x6eaf15));const _0x3f193a=this[_0x2791ff(0x18a)](_0x2791ff(0x1b2)+_0x2edee9+_0x2791ff(0x1a2),_0x2791ff(0x1b5),_0x54e00e);return{'getId':async()=>(await _0x3f193a[_0x2791ff(0x1d7)])[_0x2791ff(0x1a1)](),'abortController':_0x3f193a[_0x2791ff(0x1b9)]};}[_0x2698b4(0x1c6)](_0x401c70,_0x1c1a25){const _0x46aca3=_0x2698b4,_0x3dcfb1=this[_0x46aca3(0x18a)](_0x46aca3(0x1b2)+_0x401c70+_0x46aca3(0x183)+_0x1c1a25,_0x46aca3(0x200));return{'getDocument':async()=>(await _0x3dcfb1[_0x46aca3(0x1d7)])[_0x46aca3(0x1a1)](),'abortController':_0x3dcfb1[_0x46aca3(0x1b9)]};}[_0x2698b4(0x1ab)](_0xb84032,_0x15c66e,_0x139c01){const _0xa635a=_0x2698b4,_0x58cb1d={'content':_0x15c66e};_0x139c01&&(_0x58cb1d[_0xa635a(0x1f6)]=_0x139c01);const _0x5b4eef=this[_0xa635a(0x18a)](_0xa635a(0x1b2)+_0xb84032+_0xa635a(0x18d),_0xa635a(0x1b5),_0x58cb1d);return{'getId':async()=>(await _0x5b4eef[_0xa635a(0x1d7)])[_0xa635a(0x1a1)](),'abortController':_0x5b4eef[_0xa635a(0x1b9)]};}[_0x2698b4(0x1f1)](_0x52fe7e,_0x35ea91){const _0x30c56d=_0x2698b4,_0x39666c=new URLSearchParams();_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x179),_0x30c56d(0x1b0)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1fb),_0x30c56d(0x1ef)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1aa),_0x52fe7e),_0x35ea91&&_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1e6),_0x35ea91);const _0x1f6e15=this[_0x30c56d(0x18a)](_0x30c56d(0x186)+_0x39666c[_0x30c56d(0x17f)](),_0x30c56d(0x200));return{'getConversations':async()=>{const _0x24b1d8=_0x30c56d,_0x4769a0=await _0x1f6e15[_0x24b1d8(0x1d7)];return(await _0x4769a0[_0x24b1d8(0x1a1)]())[_0x24b1d8(0x180)];},'abortController':_0x1f6e15[_0x30c56d(0x1b9)]};}[_0x2698b4(0x1d2)](_0x1154f2){const _0x2a47f0=_0x2698b4,_0x175a0f=this[_0x2a47f0(0x18a)](_0x2a47f0(0x1b2)+_0x1154f2,_0x2a47f0(0x1c2));return{'execute':async()=>{const _0x5239cb=_0x2a47f0;await _0x175a0f[_0x5239cb(0x1d7)];},'abortController':_0x175a0f[_0x2a47f0(0x1b9)]};}[_0x2698b4(0x1df)](_0x46f44f,_0x215afe){const _0x40f5d9=_0x2698b4,_0x18ac3a=this[_0x40f5d9(0x18a)](_0x40f5d9(0x1b2)+_0x46f44f,_0x40f5d9(0x196),_0x215afe);return{'getResult':async()=>(await _0x18ac3a[_0x40f5d9(0x1d7)],_0x215afe),'abortController':_0x18ac3a[_0x40f5d9(0x1b9)]};}[_0x2698b4(0x1ee)](_0x4d7c59){const _0x4c2e3d=_0x2698b4,_0x1c5453=this[_0x4c2e3d(0x18a)](_0x4c2e3d(0x1b2)+_0x4d7c59,_0x4c2e3d(0x200));return{'getConversation':async()=>(await _0x1c5453[_0x4c2e3d(0x1d7)])[_0x4c2e3d(0x1a1)](),'abortController':_0x1c5453[_0x4c2e3d(0x1b9)]};}[_0x2698b4(0x188)](_0x5deaab){const _0x4ca5d2=_0x2698b4,_0x3c2406=this[_0x4ca5d2(0x18a)](_0x4ca5d2(0x1b2)+_0x5deaab+_0x4ca5d2(0x1d9),_0x4ca5d2(0x200));return{'getMessages':async()=>{const _0x23a6f1=_0x4ca5d2,_0x5820ec=await _0x3c2406[_0x23a6f1(0x1d7)];return(await _0x5820ec[_0x23a6f1(0x1a1)]())[_0x23a6f1(0x180)];},'abortController':_0x3c2406[_0x4ca5d2(0x1b9)]};}[_0x2698b4(0x1db)](_0x573ebf,_0x142791,_0x40f2e3){const _0x5c4756=_0x2698b4,_0x4b8206=this[_0x5c4756(0x18a)](_0x5c4756(0x1b2)+_0x573ebf+_0x5c4756(0x1f4),_0x5c4756(0x1b5),{'url':_0x142791,'attributes':_0x40f2e3});return{'getId':async()=>(await _0x4b8206[_0x5c4756(0x1d7)])[_0x5c4756(0x1a1)](),'abortController':_0x4b8206[_0x5c4756(0x1b9)]};}[_0x2698b4(0x1a5)](){const _0x17cb46=_0x2698b4,_0x1e5e69=this[_0x17cb46(0x18a)](_0x17cb46(0x17c),_0x17cb46(0x200));return{'list':async()=>{const _0x545483=_0x17cb46,_0x34d99e=await(await _0x1e5e69[_0x545483(0x1d7)])[_0x545483(0x1a1)](),_0x686371=_0x34d99e[_0x545483(0x180)][_0x545483(0x1d6)](_0x10a4ae=>({..._0x10a4ae,'description':_0x3e794e(this[_0x545483(0x1c5)][_0x545483(0x1b4)],_0x545483(0x1e8)+_0x10a4ae['id'][_0x545483(0x1a8)]())}));return{..._0x34d99e,'items':_0x686371};},'abortController':_0x1e5e69[_0x17cb46(0x1b9)]};}[_0x2698b4(0x1ca)](_0x3afb5a,_0x5eba34){const _0x401785=_0x2698b4,_0x584116=this[_0x401785(0x18a)](_0x401785(0x1b2)+_0x3afb5a+_0x401785(0x1f9)+_0x5eba34,_0x401785(0x1c2));return{'execute':async()=>{const _0x1ac85e=_0x401785;await _0x584116[_0x1ac85e(0x1d7)];},'abortController':_0x584116[_0x401785(0x1b9)]};}[_0x2698b4(0x181)](_0x3ee050,_0x2ea177){const _0x32ae69=_0x2698b4,_0x19e5b6=this[_0x32ae69(0x18a)](_0x32ae69(0x1b2)+_0x3ee050+_0x32ae69(0x183)+_0x2ea177,_0x32ae69(0x1c2));return{'execute':async()=>{const _0x4b521c=_0x32ae69;await _0x19e5b6[_0x4b521c(0x1d7)];},'abortController':_0x19e5b6[_0x32ae69(0x1b9)]};}[_0x2698b4(0x17d)](_0x1ee5e5,_0xd3a5bc){const _0x1e1ce9=_0x2698b4,_0x3090b9=this[_0x1e1ce9(0x18a)](_0x1e1ce9(0x1b2)+_0x1ee5e5+_0x1e1ce9(0x1a9)+_0xd3a5bc,_0x1e1ce9(0x1c2));return{'execute':async()=>{const _0x402ab3=_0x1e1ce9;await _0x3090b9[_0x402ab3(0x1d7)];},'abortController':_0x3090b9[_0x1e1ce9(0x1b9)]};}[_0x2698b4(0x177)]({reviewName:_0xb3f0e9,content:_0x16b840,args:_0x18375a}){const _0x53067b=_0x2698b4,_0x379ba7=this[_0x53067b(0x18a)](_0x53067b(0x1e9)+_0xb3f0e9+_0x53067b(0x1dd),_0x53067b(0x1b5),{'content':[{'type':_0x53067b(0x207),'content':_0x16b840}],'args':_0x18375a});return{'getStream':async()=>{const _0x269c04=_0x53067b,_0x4348df=(await _0x379ba7[_0x269c04(0x1d7)])[_0x269c04(0x1b7)];return this[_0x269c04(0x1ad)](_0x4348df);},'abortController':_0x379ba7[_0x53067b(0x1b9)]};}[_0x2698b4(0x1cc)]({content:_0x4661fa,prompt:_0x363a01,model:_0xc1de7f}){const _0x1c7e44=_0x2698b4,_0x2fa9ad=this[_0x1c7e44(0x18a)](_0x1c7e44(0x1b1),_0x1c7e44(0x1b5),{'content':[{'type':_0x1c7e44(0x207),'content':_0x4661fa}],'prompt':_0x363a01,'model':_0xc1de7f});return{'getStream':async()=>{const _0x4b1172=_0x1c7e44,_0x5357e8=(await _0x2fa9ad[_0x4b1172(0x1d7)])[_0x4b1172(0x1b7)];return this[_0x4b1172(0x1ad)](_0x5357e8);},'abortController':_0x2fa9ad[_0x1c7e44(0x1b9)]};}[_0x2698b4(0x198)](_0x10352b,_0x342189,_0x4b6720){const _0x26fcf5=_0x2698b4,_0x336012=this[_0x26fcf5(0x18a)](_0x26fcf5(0x1b2)+_0x10352b+_0x26fcf5(0x1e0)+_0x342189+_0x26fcf5(0x1de),_0x26fcf5(0x1ff),{'positiveCount':_0x4b6720[_0x26fcf5(0x1e5)],'totalCount':_0x4b6720[_0x26fcf5(0x197)]});return{'execute':async()=>{const _0x8f6659=_0x26fcf5;await _0x336012[_0x8f6659(0x1d7)];},'abortController':_0x336012[_0x26fcf5(0x1b9)]};}[_0x2698b4(0x1ce)](_0x5419e4,_0x992f37,_0x494e1d){const _0x5b9f0c=_0x2698b4,_0x3dffda=this[_0x5b9f0c(0x18a)](_0x5b9f0c(0x1e7)+_0x5419e4+_0x5b9f0c(0x208)+_0x992f37+_0x5b9f0c(0x1de),_0x5b9f0c(0x1ff),{'positiveCount':_0x494e1d[_0x5b9f0c(0x1e5)],'totalCount':_0x494e1d[_0x5b9f0c(0x197)]});return{'execute':async()=>{const _0x101f13=_0x5b9f0c;await _0x3dffda[_0x101f13(0x1d7)];},'abortController':_0x3dffda[_0x5b9f0c(0x1b9)]};}[_0x2698b4(0x1a7)](_0x11aa89,_0x35f401){const _0x52d5eb=_0x2698b4,_0x487f00=this[_0x52d5eb(0x18a)](_0x52d5eb(0x206)+_0x11aa89+_0x52d5eb(0x1de),_0x52d5eb(0x1ff),{'positiveCount':_0x35f401[_0x52d5eb(0x1e5)],'totalCount':_0x35f401[_0x52d5eb(0x197)]});return{'execute':async()=>{const _0x5f0455=_0x52d5eb;await _0x487f00[_0x5f0455(0x1d7)];},'abortController':_0x487f00[_0x52d5eb(0x1b9)]};}[_0x2698b4(0x1b3)](_0x1679f5,_0xe3323d,_0x50ef78,_0x1a000c){const _0x3ed70c=_0x2698b4,_0x58c67f=this[_0x3ed70c(0x18a)](_0x3ed70c(0x1e9)+_0x1679f5+_0x3ed70c(0x208)+_0xe3323d+_0x3ed70c(0x1de),_0x3ed70c(0x1ff),{'positiveCount':_0x50ef78[_0x3ed70c(0x1e5)],'totalCount':_0x50ef78[_0x3ed70c(0x197)],'dataId':_0x1a000c});return{'execute':async()=>{const _0x40ba01=_0x3ed70c;await _0x58c67f[_0x40ba01(0x1d7)];},'abortController':_0x58c67f[_0x3ed70c(0x1b9)]};}[_0x2698b4(0x203)](_0x16a0cd,_0x41c89c,_0x128af3){const _0x7b42cf=_0x2698b4,_0x3db690=this[_0x7b42cf(0x18a)](_0x7b42cf(0x1f7)+_0x16a0cd+_0x7b42cf(0x1de),_0x7b42cf(0x1ff),{'positiveCount':_0x41c89c[_0x7b42cf(0x1e5)],'totalCount':_0x41c89c[_0x7b42cf(0x197)],'dataId':_0x128af3});return{'execute':async()=>{const _0x4f7c2c=_0x7b42cf;await _0x3db690[_0x4f7c2c(0x1d7)];},'abortController':_0x3db690[_0x7b42cf(0x1b9)]};}[_0x2698b4(0x18a)](_0x39acbf,_0x43eaab,_0x16cbe7){const _0x21cb96=_0x2698b4,_0x3a1ef2=new AbortController(),_0x4cf80f=_0x16cbe7 instanceof FormData,_0x3a99ad={'Authorization':_0x21cb96(0x1bf)+this[_0x21cb96(0x1a4)]?.[_0x21cb96(0x1c3)]};_0x16cbe7&&!_0x4cf80f&&(_0x3a99ad[_0x21cb96(0x1ea)]=_0x21cb96(0x19e));const _0x5a8303={'method':_0x43eaab,'headers':_0x3a99ad,'signal':_0x3a1ef2[_0x21cb96(0x1af)]};return _0x16cbe7&&(_0x5a8303[_0x21cb96(0x1b7)]=_0x4cf80f?_0x16cbe7:JSON[_0x21cb96(0x1cb)](_0x16cbe7)),{'request':fetch(''+this[_0x21cb96(0x17a)]+_0x39acbf,_0x5a8303)[_0x21cb96(0x1ae)](_0x1cdc61=>{const _0x1a9570=_0x21cb96;this[_0x1a9570(0x1dc)](_0x1cdc61);})[_0x21cb96(0x185)](_0x4da6f1=>{const _0x5892e7=_0x21cb96;if(!_0x4da6f1['ok'])throw new _0x5665af(_0x5892e7(0x1bb),this,{'url':this[_0x5892e7(0x17a)],'path':_0x39acbf,'method':_0x43eaab,'body':_0x16cbe7,'status':(_0x4da6f1||{})[_0x5892e7(0x1ac)],'statusText':(_0x4da6f1||{})[_0x5892e7(0x1d4)]});return _0x4da6f1;}),'abortController':_0x3a1ef2};}async*[_0x2698b4(0x1ad)](_0x387b92){const _0x4c9168=_0x2698b4,_0x25ab35=[],_0x16dc6b=_0x387b92[_0x4c9168(0x1f8)](),_0x2ccdd6=_0x267904({'onError':_0x27b191=>{const _0x37a7a3=_0x4c9168;this[_0x37a7a3(0x1dc)](_0x27b191);},'onEvent':_0x26d457=>{const _0x42983c=_0x4c9168;_0x26d457[_0x42983c(0x202)]=JSON[_0x42983c(0x1ec)](_0x26d457[_0x42983c(0x202)]),_0x25ab35[_0x42983c(0x1e1)](_0x26d457);}});try{let _0x3a45fe=!0x1;for(;!_0x3a45fe;){const {done:_0x5495e7,value:_0x3d9681}=await _0x16dc6b[_0x4c9168(0x1c0)]();_0x5495e7&&(_0x3a45fe=!0x0),_0x2ccdd6[_0x4c9168(0x193)](this[_0x4c9168(0x1f0)][_0x4c9168(0x1fe)](_0x3d9681,{'stream':!0x0})),yield*_0x25ab35,_0x25ab35[_0x4c9168(0x191)]=0x0;}}catch(_0x403e61){this[_0x4c9168(0x1dc)](_0x403e61);}finally{_0x16dc6b[_0x4c9168(0x1c7)](),_0x2ccdd6[_0x4c9168(0x1d3)]();}}[_0x2698b4(0x1dc)](_0x50d8a5){const _0xc04a27=_0x2698b4;if(_0x50d8a5 instanceof _0x5665af)throw _0x50d8a5;if(_0x50d8a5 instanceof Error&&_0xc04a27(0x1e2)===_0x50d8a5[_0xc04a27(0x1b6)])throw new _0x5665af(_0xc04a27(0x1c1),this,{'originalError':_0x50d8a5});throw new _0x5665af(_0xc04a27(0x1bb),this,{'originalError':_0x50d8a5});}}
|
|
23
|
+
function _0x4744(_0x1fbd1d,_0x2dd812){const _0x188bbf=_0x188b();return _0x4744=function(_0x474472,_0x2b3002){_0x474472=_0x474472-0xc9;let _0x20541c=_0x188bbf[_0x474472];return _0x20541c;},_0x4744(_0x1fbd1d,_0x2dd812);}function _0x188b(){const _0x5e958f=['Content-Type','/calls','make-tone-casual','CloudServices','DELETE','ai.serviceUrl','upsertAIReviewRating','startConversation','pluginName','fetchConversation','424964htNSEt','name','fetchConversations','3420Cnhdcy','https://ai.cke-cs.com/v1','updateConversation','init','1753820RxzquX','_token','locale','decode','group','CONTINUE','keys','length','/actions/custom/calls','text','IMPROVE_WRITING','_decoder','get','totalCount','feed','/documents','8Lyezia','POST','_apiUrl','deleteConversation','true','_sendApiRequest','toString','file','data','uploadDocument','_handleError','/actions/system/','json','/reviews/custom/calls','deleteDocument','/files','385TfGxFL','4HAQcEi','getModels','/files/','queryAssistant','AIConnector','ai-request-failed','100','plugins','signal','Bearer\x20','token','deleteWebResource','getReader','uploadUrl','toUpperCase','GET','abortController','/conversations/','/conversations?','FIX_GRAMMAR','stringify','isOfficialPlugin','ai-missing-token','upsertCustomAIReviewRating','callCustomReview','82542ewsNAk','12408qTYIEF','fetchConversationMessages','ai-request-aborted','reset','continue','status','/models/1','excludeEmpty','executeAction','/calls/','TRANSLATE','_getStreamReader','search','776oMlUTN','append','4400991lkZWtY','make-tone-formal','/conversations','statusText','/documents/','read','MAKE_TONE_CASUAL','PUT','/messages','context','attributes','limit','1869ZxUrnw','/messages/','parse','/web-resources/','requires','upsertAIActionRating','value','executeCustomAction','map','AbortError','uploadFile','body','then','fetchDocument','/reviews/system/','/actions/custom/calls/','AI_MODEL_DESCRIPTION_','upsertAIChatRating','push','make-shorter','positiveCount','releaseLock','/ratings','MAKE_LONGER','define','catch','deleteFile','callSystemReview','upsertCustomAIActionRating','MAKE_SHORTER','improve-writing','fix-grammar','MAKE_TONE_FORMAL','make-longer','application/json','/reviews/custom/calls/','47892neSYTN','translate','1651GfHWqr','PATCH','items','request','config','/web-resources','isPremiumPlugin'];_0x188b=function(){return _0x5e958f;};return _0x188b();}const _0x46140e=_0x4744;(function(_0x53eb3a,_0x25ae60){const _0x5f4f05=_0x4744,_0x3a4bd3=_0x53eb3a();while(!![]){try{const _0x48e14=-parseInt(_0x5f4f05(0x107))/0x1*(parseInt(_0x5f4f05(0xdf))/0x2)+parseInt(_0x5f4f05(0x13c))/0x3*(-parseInt(_0x5f4f05(0x12e))/0x4)+parseInt(_0x5f4f05(0xe6))/0x5+parseInt(_0x5f4f05(0x120))/0x6*(parseInt(_0x5f4f05(0x106))/0x7)+parseInt(_0x5f4f05(0xf6))/0x8*(parseInt(_0x5f4f05(0x130))/0x9)+parseInt(_0x5f4f05(0xe2))/0xa*(parseInt(_0x5f4f05(0x121))/0xb)+-parseInt(_0x5f4f05(0xcc))/0xc*(parseInt(_0x5f4f05(0xce))/0xd);if(_0x48e14===_0x25ae60)break;else _0x3a4bd3['push'](_0x3a4bd3['shift']());}catch(_0x1c03f1){_0x3a4bd3['push'](_0x3a4bd3['shift']());}}}(_0x188b,0x7b2cf));import{createParser as _0x31ce6f}from'eventsource-parser';import{ContextPlugin as _0xcb0cb1}from'ckeditor5/src/core.js';import{CKEditorError as _0x2df2be}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b6160}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x5324c1){const _0x3bf303=_0x4744;_0x5324c1[_0x3bf303(0xeb)]=_0x3bf303(0x125),_0x5324c1[_0x3bf303(0x11a)]=_0x3bf303(0x15b),_0x5324c1[_0x3bf303(0xf0)]=_0x3bf303(0x15a),_0x5324c1[_0x3bf303(0x153)]=_0x3bf303(0xc9),_0x5324c1[_0x3bf303(0x159)]=_0x3bf303(0x14f),_0x5324c1[_0x3bf303(0x136)]=_0x3bf303(0xd7),_0x5324c1[_0x3bf303(0x15c)]=_0x3bf303(0x131),_0x5324c1[_0x3bf303(0x12b)]=_0x3bf303(0xcd);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcb0cb1{[_0x46140e(0xf8)];[_0x46140e(0xe7)];[_0x46140e(0xf1)];static get[_0x46140e(0x140)](){const _0x368a66=_0x46140e;return[_0x368a66(0xd8)];}static get[_0x46140e(0xdd)](){const _0x253b78=_0x46140e;return _0x253b78(0x10b);}static get[_0x46140e(0x11c)](){return!0x0;}static get[_0x46140e(0xd4)](){return!0x0;}constructor(_0x1e72fe){const _0x379773=_0x46140e;super(_0x1e72fe),this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0x154)](_0x379773(0xda),_0x379773(0xe3)),this[_0x379773(0xf8)]=this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0xf2)](_0x379773(0xda)),this[_0x379773(0xe7)]=null,this[_0x379773(0xf1)]=new TextDecoder();}[_0x46140e(0xe5)](){const _0xa6229f=_0x46140e,_0x5ecf90=this[_0xa6229f(0x139)][_0xa6229f(0x10e)][_0xa6229f(0xf2)](_0xa6229f(0xd8));if(!_0x5ecf90[_0xa6229f(0x111)])throw new _0x2df2be(_0xa6229f(0x11d),this);this[_0xa6229f(0xe7)]=_0x5ecf90[_0xa6229f(0x111)];}[_0x46140e(0xdc)](_0x14d1a1,_0x5b91a8){const _0x53465f=_0x46140e,_0x4581e1=this[_0x53465f(0xfb)](_0x53465f(0x132),_0x53465f(0xf7),{'id':_0x14d1a1,'group':_0x5b91a8});return{'getConversation':async()=>(await _0x4581e1[_0x53465f(0xd1)])[_0x53465f(0x102)](),'abortController':_0x4581e1[_0x53465f(0x117)]};}[_0x46140e(0x10a)]({message:_0x4507f6,conversationId:_0x478af0,parts:_0x17ed5b,capabilities:_0x3eb8be,model:_0x6a6fba,quickActionData:_0x22ca02}){const _0x383d45=_0x46140e,_0x57f272={..._0x22ca02&&{'quickActionData':_0x22ca02}},_0x19edcf={'prompt':_0x4507f6,'content':_0x17ed5b,'model':_0x6a6fba,..._0x3eb8be&&{'capabilities':_0x3eb8be},...Object[_0x383d45(0xec)](_0x57f272)[_0x383d45(0xed)]>0x0&&{'attributes':_0x57f272}},_0x594c00=this[_0x383d45(0xfb)](_0x383d45(0x118)+_0x478af0+_0x383d45(0x138),_0x383d45(0xf7),_0x19edcf);return{'getStream':async()=>{const _0x5e565b=_0x383d45,_0x3bad50=(await _0x594c00[_0x5e565b(0xd1)])[_0x5e565b(0x147)];return this[_0x5e565b(0x12c)](_0x3bad50);},'abortController':_0x594c00[_0x383d45(0x117)]};}[_0x46140e(0x143)]({content:_0xb9ed23,message:_0x46e312,model:_0x2136c1,outputFormat:_0x45e5b6}){const _0x34f9b3=_0x46140e,_0x13aaf5={'content':[{'type':_0x34f9b3(0xef),'content':_0xb9ed23}],'prompt':_0x46e312,'model':_0x2136c1,'outputFormat':_0x45e5b6},_0xc96d1=this[_0x34f9b3(0xfb)](_0x34f9b3(0xee),_0x34f9b3(0xf7),_0x13aaf5);return{'getStream':async()=>{const _0x4efd4a=_0x34f9b3,_0x2394e8=(await _0xc96d1[_0x4efd4a(0xd1)])[_0x4efd4a(0x147)];return this[_0x4efd4a(0x12c)](_0x2394e8);},'abortController':_0xc96d1[_0x34f9b3(0x117)]};}[_0x46140e(0x129)]({actionName:_0x6f7e13,content:_0x2aa45d,args:_0x59d75e}){const _0x2fdbbc=_0x46140e,_0x4dfeb3={'content':[{'type':_0x2fdbbc(0xef),'content':_0x2aa45d}],'args':_0x59d75e},_0x2873d5=this[_0x2fdbbc(0xfb)](_0x2fdbbc(0x101)+_0x6f7e13+_0x2fdbbc(0xd6),_0x2fdbbc(0xf7),_0x4dfeb3);return{'getStream':async()=>{const _0x2c345a=_0x2fdbbc,_0x3bb9eb=(await _0x2873d5[_0x2c345a(0xd1)])[_0x2c345a(0x147)];return this[_0x2c345a(0x12c)](_0x3bb9eb);},'abortController':_0x2873d5[_0x2fdbbc(0x117)]};}[_0x46140e(0x146)](_0xfae493,_0x50d3db,_0x1ae7c1){const _0x4a09b0=_0x46140e,_0x5618b5=new FormData();_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0xfd),_0x50d3db,_0x50d3db[_0x4a09b0(0xe0)]),_0x1ae7c1&&_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0x13a),JSON[_0x4a09b0(0x11b)](_0x1ae7c1));const _0x515415=this[_0x4a09b0(0xfb)](_0x4a09b0(0x118)+_0xfae493+_0x4a09b0(0x105),_0x4a09b0(0xf7),_0x5618b5);return{'getId':async()=>(await _0x515415[_0x4a09b0(0xd1)])[_0x4a09b0(0x102)](),'abortController':_0x515415[_0x4a09b0(0x117)]};}[_0x46140e(0x149)](_0x5f30d5,_0x57241c){const _0x1a1ef3=_0x46140e,_0x3d0dc1=this[_0x1a1ef3(0xfb)](_0x1a1ef3(0x118)+_0x5f30d5+_0x1a1ef3(0x134)+_0x57241c,_0x1a1ef3(0x116));return{'getDocument':async()=>(await _0x3d0dc1[_0x1a1ef3(0xd1)])[_0x1a1ef3(0x102)](),'abortController':_0x3d0dc1[_0x1a1ef3(0x117)]};}[_0x46140e(0xff)](_0x510e48,_0x29bde7,_0x97ce40){const _0xc3802a=_0x46140e,_0x269057={'content':_0x29bde7};_0x97ce40&&(_0x269057[_0xc3802a(0x13a)]=_0x97ce40);const _0x406fe8=this[_0xc3802a(0xfb)](_0xc3802a(0x118)+_0x510e48+_0xc3802a(0xf5),_0xc3802a(0xf7),_0x269057);return{'getId':async()=>(await _0x406fe8[_0xc3802a(0xd1)])[_0xc3802a(0x102)](),'abortController':_0x406fe8[_0xc3802a(0x117)]};}[_0x46140e(0xe1)](_0x485a93,_0x5720fa){const _0x3c98e1=_0x46140e,_0x519ba6=new URLSearchParams();_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x128),_0x3c98e1(0xfa)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x13b),_0x3c98e1(0x10d)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0xea),_0x485a93),_0x5720fa&&_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x12d),_0x5720fa);const _0x4d0231=this[_0x3c98e1(0xfb)](_0x3c98e1(0x119)+_0x519ba6[_0x3c98e1(0xfc)](),_0x3c98e1(0x116));return{'getConversations':async()=>{const _0x30c05a=_0x3c98e1,_0x2bc50f=await _0x4d0231[_0x30c05a(0xd1)];return(await _0x2bc50f[_0x30c05a(0x102)]())[_0x30c05a(0xd0)];},'abortController':_0x4d0231[_0x3c98e1(0x117)]};}[_0x46140e(0xf9)](_0x3d8556){const _0x1c95f0=_0x46140e,_0x4381ce=this[_0x1c95f0(0xfb)](_0x1c95f0(0x118)+_0x3d8556,_0x1c95f0(0xd9));return{'execute':async()=>{const _0x3cfba7=_0x1c95f0;await _0x4381ce[_0x3cfba7(0xd1)];},'abortController':_0x4381ce[_0x1c95f0(0x117)]};}[_0x46140e(0xe4)](_0x20ed2c,_0x195e16){const _0x21ee48=_0x46140e,_0x461b31=this[_0x21ee48(0xfb)](_0x21ee48(0x118)+_0x20ed2c,_0x21ee48(0xcf),_0x195e16);return{'getResult':async()=>(await _0x461b31[_0x21ee48(0xd1)],_0x195e16),'abortController':_0x461b31[_0x21ee48(0x117)]};}[_0x46140e(0xde)](_0xb1e034){const _0xcbdff=_0x46140e,_0x491bdd=this[_0xcbdff(0xfb)](_0xcbdff(0x118)+_0xb1e034,_0xcbdff(0x116));return{'getConversation':async()=>(await _0x491bdd[_0xcbdff(0xd1)])[_0xcbdff(0x102)](),'abortController':_0x491bdd[_0xcbdff(0x117)]};}[_0x46140e(0x122)](_0x49d727){const _0x53f740=_0x46140e,_0x2d2d87=this[_0x53f740(0xfb)](_0x53f740(0x118)+_0x49d727+_0x53f740(0x138),_0x53f740(0x116));return{'getMessages':async()=>{const _0xff52df=_0x53f740,_0x12b33e=await _0x2d2d87[_0xff52df(0xd1)];return(await _0x12b33e[_0xff52df(0x102)]())[_0xff52df(0xd0)];},'abortController':_0x2d2d87[_0x53f740(0x117)]};}[_0x46140e(0x114)](_0x425f2f,_0x28ad2f,_0x4f5508){const _0x38bc91=_0x46140e,_0x5a3cb0=this[_0x38bc91(0xfb)](_0x38bc91(0x118)+_0x425f2f+_0x38bc91(0xd3),_0x38bc91(0xf7),{'url':_0x28ad2f,'attributes':_0x4f5508});return{'getId':async()=>(await _0x5a3cb0[_0x38bc91(0xd1)])[_0x38bc91(0x102)](),'abortController':_0x5a3cb0[_0x38bc91(0x117)]};}[_0x46140e(0x108)](){const _0x5a02cb=_0x46140e,_0x490df6=this[_0x5a02cb(0xfb)](_0x5a02cb(0x127),_0x5a02cb(0x116));return{'list':async()=>{const _0x5bae3b=_0x5a02cb,_0x1484e6=await(await _0x490df6[_0x5bae3b(0xd1)])[_0x5bae3b(0x102)](),_0x5180d7=_0x1484e6[_0x5bae3b(0xd0)][_0x5bae3b(0x144)](_0x5aeff6=>({..._0x5aeff6,'description':_0x3b6160(this[_0x5bae3b(0x139)][_0x5bae3b(0xe8)],_0x5bae3b(0x14c)+_0x5aeff6['id'][_0x5bae3b(0x115)]())}));return{..._0x1484e6,'items':_0x5180d7};},'abortController':_0x490df6[_0x5a02cb(0x117)]};}[_0x46140e(0x156)](_0x382189,_0x5cf46f){const _0x1c0a3f=_0x46140e,_0x4430be=this[_0x1c0a3f(0xfb)](_0x1c0a3f(0x118)+_0x382189+_0x1c0a3f(0x109)+_0x5cf46f,_0x1c0a3f(0xd9));return{'execute':async()=>{const _0x338413=_0x1c0a3f;await _0x4430be[_0x338413(0xd1)];},'abortController':_0x4430be[_0x1c0a3f(0x117)]};}[_0x46140e(0x104)](_0x41545a,_0x14a241){const _0x2f36a1=_0x46140e,_0x589f91=this[_0x2f36a1(0xfb)](_0x2f36a1(0x118)+_0x41545a+_0x2f36a1(0x134)+_0x14a241,_0x2f36a1(0xd9));return{'execute':async()=>{const _0x535fa3=_0x2f36a1;await _0x589f91[_0x535fa3(0xd1)];},'abortController':_0x589f91[_0x2f36a1(0x117)]};}[_0x46140e(0x112)](_0x137d9c,_0x4b0ed9){const _0x1e100c=_0x46140e,_0x25e9c4=this[_0x1e100c(0xfb)](_0x1e100c(0x118)+_0x137d9c+_0x1e100c(0x13f)+_0x4b0ed9,_0x1e100c(0xd9));return{'execute':async()=>{const _0x26a6f0=_0x1e100c;await _0x25e9c4[_0x26a6f0(0xd1)];},'abortController':_0x25e9c4[_0x1e100c(0x117)]};}[_0x46140e(0x157)]({reviewName:_0x52bdf1,content:_0x192375,args:_0x10c013}){const _0x391e3c=_0x46140e,_0xf3838e=this[_0x391e3c(0xfb)](_0x391e3c(0x14a)+_0x52bdf1+_0x391e3c(0xd6),_0x391e3c(0xf7),{'content':[{'type':_0x391e3c(0xef),'content':_0x192375}],'args':_0x10c013});return{'getStream':async()=>{const _0x326963=_0x391e3c,_0x3db77e=(await _0xf3838e[_0x326963(0xd1)])[_0x326963(0x147)];return this[_0x326963(0x12c)](_0x3db77e);},'abortController':_0xf3838e[_0x391e3c(0x117)]};}[_0x46140e(0x11f)]({content:_0x8eb217,prompt:_0x5c14cd,model:_0x4cf634}){const _0x446529=_0x46140e,_0x167a2d=this[_0x446529(0xfb)](_0x446529(0x103),_0x446529(0xf7),{'content':[{'type':_0x446529(0xef),'content':_0x8eb217}],'prompt':_0x5c14cd,'model':_0x4cf634});return{'getStream':async()=>{const _0x4bfdd9=_0x446529,_0xc8e6=(await _0x167a2d[_0x4bfdd9(0xd1)])[_0x4bfdd9(0x147)];return this[_0x4bfdd9(0x12c)](_0xc8e6);},'abortController':_0x167a2d[_0x446529(0x117)]};}[_0x46140e(0x14d)](_0x40d58d,_0x3ab876,_0x2dc2ff){const _0x22205e=_0x46140e,_0x3fef27=this[_0x22205e(0xfb)](_0x22205e(0x118)+_0x40d58d+_0x22205e(0x13d)+_0x3ab876+_0x22205e(0x152),_0x22205e(0x137),{'positiveCount':_0x2dc2ff[_0x22205e(0x150)],'totalCount':_0x2dc2ff[_0x22205e(0xf3)]});return{'execute':async()=>{const _0x47c7f7=_0x22205e;await _0x3fef27[_0x47c7f7(0xd1)];},'abortController':_0x3fef27[_0x22205e(0x117)]};}[_0x46140e(0x141)](_0x3cfe06,_0x59de5e,_0x49bec3){const _0x1d8fcc=_0x46140e,_0x483781=this[_0x1d8fcc(0xfb)](_0x1d8fcc(0x101)+_0x3cfe06+_0x1d8fcc(0x12a)+_0x59de5e+_0x1d8fcc(0x152),_0x1d8fcc(0x137),{'positiveCount':_0x49bec3[_0x1d8fcc(0x150)],'totalCount':_0x49bec3[_0x1d8fcc(0xf3)]});return{'execute':async()=>{const _0x1ca980=_0x1d8fcc;await _0x483781[_0x1ca980(0xd1)];},'abortController':_0x483781[_0x1d8fcc(0x117)]};}[_0x46140e(0x158)](_0x1027c4,_0x5ec098){const _0x21479f=_0x46140e,_0x306c02=this[_0x21479f(0xfb)](_0x21479f(0x14b)+_0x1027c4+_0x21479f(0x152),_0x21479f(0x137),{'positiveCount':_0x5ec098[_0x21479f(0x150)],'totalCount':_0x5ec098[_0x21479f(0xf3)]});return{'execute':async()=>{const _0x2aa9db=_0x21479f;await _0x306c02[_0x2aa9db(0xd1)];},'abortController':_0x306c02[_0x21479f(0x117)]};}[_0x46140e(0xdb)](_0x209cce,_0xf58d84,_0x273053,_0x342fa1){const _0x34ec8c=_0x46140e,_0x8e55ca=this[_0x34ec8c(0xfb)](_0x34ec8c(0x14a)+_0x209cce+_0x34ec8c(0x12a)+_0xf58d84+_0x34ec8c(0x152),_0x34ec8c(0x137),{'positiveCount':_0x273053[_0x34ec8c(0x150)],'totalCount':_0x273053[_0x34ec8c(0xf3)],'dataId':_0x342fa1});return{'execute':async()=>{const _0x398138=_0x34ec8c;await _0x8e55ca[_0x398138(0xd1)];},'abortController':_0x8e55ca[_0x34ec8c(0x117)]};}[_0x46140e(0x11e)](_0x10164b,_0x283053,_0x5e20bc){const _0x46bf72=_0x46140e,_0x3f7609=this[_0x46bf72(0xfb)](_0x46bf72(0xcb)+_0x10164b+_0x46bf72(0x152),_0x46bf72(0x137),{'positiveCount':_0x283053[_0x46bf72(0x150)],'totalCount':_0x283053[_0x46bf72(0xf3)],'dataId':_0x5e20bc});return{'execute':async()=>{const _0x33629b=_0x46bf72;await _0x3f7609[_0x33629b(0xd1)];},'abortController':_0x3f7609[_0x46bf72(0x117)]};}[_0x46140e(0xfb)](_0x49517e,_0x3d6c7b,_0xc2292b){const _0x25af87=_0x46140e,_0x1a18ba=new AbortController(),_0x202752=_0xc2292b instanceof FormData,_0x1e6d64={'Authorization':_0x25af87(0x110)+this[_0x25af87(0xe7)]?.[_0x25af87(0x142)]};_0xc2292b&&!_0x202752&&(_0x1e6d64[_0x25af87(0xd5)]=_0x25af87(0xca));const _0x814d69={'method':_0x3d6c7b,'headers':_0x1e6d64,'signal':_0x1a18ba[_0x25af87(0x10f)]};return _0xc2292b&&(_0x814d69[_0x25af87(0x147)]=_0x202752?_0xc2292b:JSON[_0x25af87(0x11b)](_0xc2292b)),{'request':fetch(''+this[_0x25af87(0xf8)]+_0x49517e,_0x814d69)[_0x25af87(0x155)](_0x1d141d=>{const _0x5bca1d=_0x25af87;this[_0x5bca1d(0x100)](_0x1d141d);})[_0x25af87(0x148)](_0x1a3d1f=>{const _0x204331=_0x25af87;if(!_0x1a3d1f['ok'])throw new _0x2df2be(_0x204331(0x10c),this,{'url':this[_0x204331(0xf8)],'path':_0x49517e,'method':_0x3d6c7b,'body':_0xc2292b,'status':(_0x1a3d1f||{})[_0x204331(0x126)],'statusText':(_0x1a3d1f||{})[_0x204331(0x133)]});return _0x1a3d1f;}),'abortController':_0x1a18ba};}async*[_0x46140e(0x12c)](_0x4ca3d4){const _0x14755d=_0x46140e,_0x73f15f=[],_0x5920da=_0x4ca3d4[_0x14755d(0x113)](),_0x1663a0=_0x31ce6f({'onError':_0x4576c5=>{const _0x9e5889=_0x14755d;this[_0x9e5889(0x100)](_0x4576c5);},'onEvent':_0x2cbf68=>{const _0x88b161=_0x14755d;_0x2cbf68[_0x88b161(0xfe)]=JSON[_0x88b161(0x13e)](_0x2cbf68[_0x88b161(0xfe)]),_0x73f15f[_0x88b161(0x14e)](_0x2cbf68);}});try{let _0x34aa8=!0x1;for(;!_0x34aa8;){const {done:_0x33b0f9,value:_0x34e580}=await _0x5920da[_0x14755d(0x135)]();_0x33b0f9&&(_0x34aa8=!0x0),_0x1663a0[_0x14755d(0xf4)](this[_0x14755d(0xf1)][_0x14755d(0xe9)](_0x34e580,{'stream':!0x0})),yield*_0x73f15f,_0x73f15f[_0x14755d(0xed)]=0x0;}}catch(_0x2b4b59){this[_0x14755d(0x100)](_0x2b4b59);}finally{_0x5920da[_0x14755d(0x151)](),_0x1663a0[_0x14755d(0x124)]();}}[_0x46140e(0x100)](_0x540eb3){const _0x5cdb05=_0x46140e;if(_0x540eb3 instanceof _0x2df2be)throw _0x540eb3;if(_0x540eb3 instanceof Error&&_0x5cdb05(0x145)===_0x540eb3[_0x5cdb05(0xe0)])throw new _0x2df2be(_0x5cdb05(0x123),this,{'originalError':_0x540eb3});throw new _0x2df2be(_0x5cdb05(0x10c),this,{'originalError':_0x540eb3});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b140f=_0x3b47;(function(_0x553a0a,_0x583162){const _0x322578=_0x3b47,_0x13f953=_0x553a0a();while(!![]){try{const _0x397e97=-parseInt(_0x322578(0x14d))/0x1+-parseInt(_0x322578(0x167))/0x2+parseInt(_0x322578(0x148))/0x3+parseInt(_0x322578(0x15d))/0x4*(-parseInt(_0x322578(0x162))/0x5)+-parseInt(_0x322578(0x130))/0x6*(parseInt(_0x322578(0x11f))/0x7)+parseInt(_0x322578(0x137))/0x8*(-parseInt(_0x322578(0x115))/0x9)+parseInt(_0x322578(0x16d))/0xa;if(_0x397e97===_0x583162)break;else _0x13f953['push'](_0x13f953['shift']());}catch(_0x40c317){_0x13f953['push'](_0x13f953['shift']());}}}(_0xf8d8,0xddb7a));import{ViewDowncastWriter as _0x3f52f0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x342401,Editor as _0x179baa}from'ckeditor5/src/core.js';function _0x3b47(_0x32ff75,_0x296d4a){const _0xf8d899=_0xf8d8();return _0x3b47=function(_0x3b47d6,_0x295871){_0x3b47d6=_0x3b47d6-0x105;let _0xb3d7b0=_0xf8d899[_0x3b47d6];return _0xb3d7b0;},_0x3b47(_0x32ff75,_0x296d4a);}import{uid as _0x39cab1}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x159af4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4b140f(0x13c);function _0xf8d8(){const _0x56667d=['RealTimeCollaborationClient',':end>','_displayedFakeSelectionLocked','fromCharCode','schema','data-id','push','join','2863365nDTXOa','listenTo','end','random','isOfficialPlugin','1501167CLJjNc','context','start','model','markers','_setDataIdsOnChildren','editors','_displayedFakeSelectionId','conversion',':end></','markerName','getSelectionText','$textProxy','ck-ai-assistant-ui_theme','toView','emptyElement','167564KLCQuL','trim','_sessionId','toData','pluginName','55FpbZwo','editingDowncast','getRoot','view','removeMarker','767052HKBiAk','for','createRangeIn','get','change','has','44741810WeMFFm','from','name','getWalker','getMarkersGroup','dataDowncast','add','document','markerToHighlight','afterInit','ck-fake-ai-selection','AIEditing','ready','hideFakeVisualSelection','isBefore','modelToViewWithIds','version','162CeAQHe','convertAiChatSelectionMarker','markerToElement','processor','length','setAttribute','getChildren','getStart','addMarker','getSelection','14kEOHWm',':start>','createUIElement','substring','plugins','sessionId','indexOf','isPremiumPlugin','_nextDataId','floor','editing','getSelectedContent','isAfter','_integrateEditor','sort','isOpening','data','4819860tIJPKD','containerElement','getDocumentData','getLastMatchingPosition','showFakeVisualSelection','isContent','createRange','252608KiMNBz','ai-selection:','element','isAtEnd','removeAllRanges','ai-selection','_getMarkersInDocumentOrder','selection',':start></'];_0xf8d8=function(){return _0x56667d;};return _0xf8d8();}export class AIEditing extends _0x342401{[_0x4b140f(0x154)]=null;[_0x4b140f(0x142)]=!0x1;[_0x4b140f(0x15f)];static get[_0x4b140f(0x161)](){const _0x381e93=_0x4b140f;return _0x381e93(0x10f);}static get[_0x4b140f(0x14c)](){return!0x0;}static get[_0x4b140f(0x126)](){return!0x0;}get[_0x4b140f(0x124)](){const _0x13fae3=_0x4b140f;if(!this[_0x13fae3(0x15f)]){const _0x49a468=_0x159af4(this[_0x13fae3(0x14e)]),_0x46e47b=_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16c)](_0x13fae3(0x140))&&_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16a)](_0x13fae3(0x140))[_0x13fae3(0x124)];this[_0x13fae3(0x15f)]=_0x46e47b||_0x39cab1();}return this[_0x13fae3(0x15f)];}[_0x4b140f(0x132)](){const _0x41b9d1=_0x4b140f,_0x51123e=_0x159af4(this[_0x41b9d1(0x14e)]),_0x4a8405=_0x51123e[_0x41b9d1(0x150)],_0x425c47=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x15b)](_0x4a8405[_0x41b9d1(0x10b)][_0x41b9d1(0x164)](),{'convertAiChatSelectionMarker':!0x0}),_0x265caa=new _0x3f52f0(_0x51123e[_0x41b9d1(0x129)][_0x41b9d1(0x165)][_0x41b9d1(0x10b)]);this[_0x41b9d1(0x152)](_0x425c47,_0x265caa);let _0x5cfc7b=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x118)][_0x41b9d1(0x160)](_0x425c47);const _0x11ff1e=this[_0x41b9d1(0x13d)](),_0x38e7c8=[];for(const _0x455510 of _0x11ff1e){const _0x455a45='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x13f)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x120),_0xa6c35a=_0x5cfc7b[_0x41b9d1(0x125)](_0x455a45);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0xa6c35a)+_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a+_0x455a45[_0x41b9d1(0x119)]);const _0x432388='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x156)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x141),_0x5242ae=_0x5cfc7b[_0x41b9d1(0x125)](_0x432388);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0x5242ae)+_0x5cfc7b[_0x41b9d1(0x122)](_0x5242ae+_0x432388[_0x41b9d1(0x119)]),_0x38e7c8[_0x41b9d1(0x146)]({'markerName':_0x455510[_0x41b9d1(0x106)],'start':_0xa6c35a,'end':_0x5242ae,'htmlFragment':_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a,_0x5242ae)});}return{'content':_0x5cfc7b,'version':_0x51123e[_0x41b9d1(0x150)][_0x41b9d1(0x10b)][_0x41b9d1(0x114)],'sessionId':this[_0x41b9d1(0x124)],'selections':_0x38e7c8};}async[_0x4b140f(0x10d)](){const _0x1bccdd=_0x4b140f;this[_0x1bccdd(0x14e)]instanceof _0x179baa?this[_0x1bccdd(0x12c)](this[_0x1bccdd(0x14e)]):this[_0x1bccdd(0x149)](this[_0x1bccdd(0x14e)][_0x1bccdd(0x153)],_0x1bccdd(0x10a),(_0x4ee0ee,_0x4733fd)=>{const _0x5a428e=_0x1bccdd;_0x4733fd['on'](_0x5a428e(0x110),()=>{const _0x5bf9da=_0x5a428e;this[_0x5bf9da(0x12c)](_0x4733fd);});});}[_0x4b140f(0x12c)](_0x63c822){const _0x379414=_0x4b140f;_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x163))[_0x379414(0x10c)]({'model':_0x379414(0x13c),'view':{'classes':[_0x379414(0x10e),_0x379414(0x15a)],'priority':0xc}}),_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x109))[_0x379414(0x117)]({'model':_0x379414(0x13c),'view':(_0xf031f8,{writer:_0x1e58dc,options:_0x30fb7e})=>_0x30fb7e[_0x379414(0x116)]?_0x1e58dc[_0x379414(0x121)](_0xf031f8[_0x379414(0x157)]+':'+(_0xf031f8[_0x379414(0x12e)]?_0x379414(0x14f):_0x379414(0x14a))):null});}[_0x4b140f(0x134)](_0x2a2fc0,_0x1f827b,_0x4cb0cc=!0x1,_0x12d658=!0x1){const _0x299fbf=_0x4b140f;if(this[_0x299fbf(0x142)]&&!_0x12d658)return!0x1;this[_0x299fbf(0x154)]&&this[_0x299fbf(0x111)](this[_0x299fbf(0x154)]),this[_0x299fbf(0x154)]=_0x1f827b,this[_0x299fbf(0x142)]=_0x4cb0cc;const _0xe297a6=_0x159af4(this[_0x299fbf(0x14e)])[_0x299fbf(0x150)];return _0xe297a6[_0x299fbf(0x16b)](_0xf16db4=>{const _0x281eb2=_0x299fbf;let _0x1808d2=0x0;for(let _0x58d21a of _0x2a2fc0){const _0xf7c4c=_0x281eb2(0x138)+_0x1808d2;if(_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x13a)]){const _0x555cc8=_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x133)](({item:_0x1c695a})=>!_0xe297a6[_0x281eb2(0x144)][_0x281eb2(0x135)](_0x1c695a),{'boundaries':_0x58d21a});_0x58d21a=_0xf16db4[_0x281eb2(0x136)](_0x555cc8,_0x58d21a[_0x281eb2(0x14a)]);}_0xf16db4[_0x281eb2(0x11d)](_0xf7c4c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58d21a}),_0x1808d2++;}}),window[_0x299fbf(0x11e)]()?.[_0x299fbf(0x13b)](),!0x0;}[_0x4b140f(0x111)](_0x26ea9f){const _0x34cae2=_0x4b140f;if(this[_0x34cae2(0x154)]!=_0x26ea9f)return!0x1;this[_0x34cae2(0x154)]=null,this[_0x34cae2(0x142)]=!0x1;const _0xc52e75=_0x159af4(this[_0x34cae2(0x14e)]),_0x4189e3=_0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x151)][_0x34cae2(0x108)](_0x34cae2(0x13c));return _0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x16b)](_0x12c476=>{const _0x124df1=_0x34cae2;for(const _0x55bfa2 of _0x4189e3)_0x12c476[_0x124df1(0x166)](_0x55bfa2);}),!0x0;}[_0x4b140f(0x113)](_0x1137b6){const _0x2c645d=_0x4b140f,_0x1c441e=_0x159af4(this[_0x2c645d(0x14e)]),_0x3c553a=_0x1c441e[_0x2c645d(0x12f)][_0x2c645d(0x15b)](_0x1137b6),_0x23c19d=new _0x3f52f0(_0x1c441e[_0x2c645d(0x129)][_0x2c645d(0x165)][_0x2c645d(0x10b)]);return this[_0x2c645d(0x152)](_0x3c553a,_0x23c19d),_0x3c553a;}[_0x4b140f(0x152)](_0xfe53ae,_0x30406f){const _0xc6b9fa=_0x4b140f;let _0x3a7d71=!0x1;const _0x14938d=new Set();for(const _0xdb706b of _0xfe53ae[_0xc6b9fa(0x11b)]()){const _0x3587b8=_0xdb706b['is'](_0xc6b9fa(0x15c))||_0xdb706b['is'](_0xc6b9fa(0x131));if(!_0xdb706b['is'](_0xc6b9fa(0x139)))continue;(this[_0xc6b9fa(0x152)](_0xdb706b,_0x30406f)||_0x3587b8)&&(_0x30406f[_0xc6b9fa(0x11a)](_0xc6b9fa(0x145),this[_0xc6b9fa(0x127)](_0x14938d),_0xdb706b),_0x3a7d71=!0x0);}return _0x3a7d71;}[_0x4b140f(0x127)](_0x480fc0){const _0x2fae3e=_0x4b140f;let _0x342ff2;do{_0x342ff2='';for(let _0xb1c47f=0x0;_0xb1c47f<0x4;_0xb1c47f++)_0x342ff2+=String[_0x2fae3e(0x143)](0x61+Math[_0x2fae3e(0x128)](0x1a*Math[_0x2fae3e(0x14b)]()));}while(_0x480fc0[_0x2fae3e(0x16c)](_0x342ff2));return _0x480fc0[_0x2fae3e(0x10a)](_0x342ff2),_0x342ff2;}[_0x4b140f(0x158)](){const _0x5ba4ad=_0x4b140f,{model:_0x5eacee}=_0x159af4(this[_0x5ba4ad(0x14e)]),_0x2ee4b5=_0x5eacee[_0x5ba4ad(0x10b)][_0x5ba4ad(0x13e)],_0x5304a7=_0x5eacee[_0x5ba4ad(0x12a)](_0x2ee4b5),_0x55fd57=[],_0x4aa2fb=_0x5eacee[_0x5ba4ad(0x169)](_0x5304a7)[_0x5ba4ad(0x107)]();for(const {item:_0x490580}of _0x4aa2fb)_0x490580['is'](_0x5ba4ad(0x159))?_0x55fd57[_0x5ba4ad(0x146)](_0x490580[_0x5ba4ad(0x12f)]):_0x490580['is'](_0x5ba4ad(0x139))&&_0x55fd57[_0x5ba4ad(0x119)]>0x0&&'\x20'!==_0x55fd57[_0x55fd57[_0x5ba4ad(0x119)]-0x1]&&_0x55fd57[_0x5ba4ad(0x146)]('\x20');return'\x22'+_0x55fd57[_0x5ba4ad(0x147)]('')[_0x5ba4ad(0x15e)]()+'\x22';}[_0x4b140f(0x13d)](){const _0x473978=_0x4b140f,_0x370fd5=_0x159af4(this[_0x473978(0x14e)])[_0x473978(0x150)];return Array[_0x473978(0x105)](_0x370fd5[_0x473978(0x151)][_0x473978(0x108)](_0x473978(0x13c)))[_0x473978(0x12d)]((_0x35228c,_0x5c10ca)=>_0x35228c[_0x473978(0x11c)]()[_0x473978(0x112)](_0x5c10ca[_0x473978(0x11c)]())?-0x1:_0x35228c[_0x473978(0x11c)]()[_0x473978(0x12b)](_0x5c10ca[_0x473978(0x11c)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f1433=_0x369e;(function(_0x385ad2,_0x30ce56){const _0x10b064=_0x369e,_0x144e85=_0x385ad2();while(!![]){try{const _0x27213d=parseInt(_0x10b064(0x138))/0x1*(-parseInt(_0x10b064(0x143))/0x2)+-parseInt(_0x10b064(0x13f))/0x3*(parseInt(_0x10b064(0x135))/0x4)+-parseInt(_0x10b064(0x144))/0x5*(parseInt(_0x10b064(0x134))/0x6)+-parseInt(_0x10b064(0x12e))/0x7*(parseInt(_0x10b064(0x142))/0x8)+parseInt(_0x10b064(0x141))/0x9*(parseInt(_0x10b064(0x128))/0xa)+-parseInt(_0x10b064(0x12c))/0xb+-parseInt(_0x10b064(0x13d))/0xc*(-parseInt(_0x10b064(0x12d))/0xd);if(_0x27213d===_0x30ce56)break;else _0x144e85['push'](_0x144e85['shift']());}catch(_0x965894){_0x144e85['push'](_0x144e85['shift']());}}}(_0x13a3,0x27a42));import{EmitterMixin as _0x144c45}from'ckeditor5/src/utils.js';function _0x369e(_0x53dc84,_0x20cbbe){const _0x13a367=_0x13a3();return _0x369e=function(_0x369e6c,_0x310c4a){_0x369e6c=_0x369e6c-0x128;let _0x40647d=_0x13a367[_0x369e6c];return _0x40647d;},_0x369e(_0x53dc84,_0x20cbbe);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f1433(0x130)];function _0x13a3(){const _0xdd1091=['init','827004evyhWc','237572UJFhGX','isWebSearchEnabled','webSearch','2fzfczA','toggleReasoning','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','2463828axdlex','getCapabilitiesRequestData','6AFeZTI','setWebSearch','2744136sKirgt','8axJgaK','87382jkejha','5KUYlAd','10qKABWW','getCapabilitiesConfig','reasoning','reset','2843060fJgTsq','39FZvVdI','1092203matVLF','setReasoning','capabilitiesUpdated','fire','toggleWebSearch'];_0x13a3=function(){return _0xdd1091;};return _0x13a3();}export class AICapabilities extends _0x144c45(){[_0x3f1433(0x13a)];[_0x3f1433(0x13b)];constructor(){const _0xf88ff0=_0x3f1433;super(),this[_0xf88ff0(0x13a)]=!0x1,this[_0xf88ff0(0x13b)]=!0x1;}[_0x3f1433(0x133)](){const _0x23f38f=_0x3f1433;this[_0x23f38f(0x12b)]();}[_0x3f1433(0x12b)](){const _0x282cba=_0x3f1433;this[_0x282cba(0x140)](!0x1),this[_0x282cba(0x12f)](!0x1);}[_0x3f1433(0x129)](){const _0x436315=_0x3f1433;return{'isWebSearchEnabled':this[_0x436315(0x13a)],'isReasoningEnabled':this[_0x436315(0x13b)]};}static[_0x3f1433(0x13e)](_0x93449d){const _0x20c057=_0x3f1433,_0x1bf071={};return _0x93449d&&_0x93449d[_0x20c057(0x136)]&&(_0x1bf071[_0x20c057(0x137)]={}),_0x93449d&&_0x93449d[_0x20c057(0x13c)]&&(_0x1bf071[_0x20c057(0x12a)]={}),_0x1bf071;}[_0x3f1433(0x132)](){const _0x213120=_0x3f1433;this[_0x213120(0x140)](!this[_0x213120(0x13a)]);}[_0x3f1433(0x139)](){const _0x5e977d=_0x3f1433;this[_0x5e977d(0x12f)](!this[_0x5e977d(0x13b)]);}[_0x3f1433(0x140)](_0x8127cc){const _0x2c21f6=_0x3f1433;_0x8127cc!==this[_0x2c21f6(0x13a)]&&(this[_0x2c21f6(0x13a)]=_0x8127cc,this[_0x2c21f6(0x131)](_0x2c21f6(0x130),this[_0x2c21f6(0x129)]()));}[_0x3f1433(0x12f)](_0x4c936e){const _0x37eb69=_0x3f1433;_0x4c936e!==this[_0x37eb69(0x13b)]&&(this[_0x37eb69(0x13b)]=_0x4c936e,this[_0x37eb69(0x131)](_0x37eb69(0x130),this[_0x37eb69(0x129)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xa9b9fd,_0x1cebbc){var _0xd71deb=_0x2b51,_0x407999=_0xa9b9fd();while(!![]){try{var _0x4f07ad=parseInt(_0xd71deb(0x1ad))/0x1*(-parseInt(_0xd71deb(0x1b5))/0x2)+parseInt(_0xd71deb(0x1ae))/0x3*(parseInt(_0xd71deb(0x1aa))/0x4)+parseInt(_0xd71deb(0x1bc))/0x5+parseInt(_0xd71deb(0x1b8))/0x6*(parseInt(_0xd71deb(0x1a9))/0x7)+parseInt(_0xd71deb(0x1b1))/0x8+-parseInt(_0xd71deb(0x1c0))/0x9*(parseInt(_0xd71deb(0x1be))/0xa)+parseInt(_0xd71deb(0x1bf))/0xb*(parseInt(_0xd71deb(0x1ba))/0xc);if(_0x4f07ad===_0x1cebbc)break;else _0x407999['push'](_0x407999['shift']());}catch(_0x1736f2){_0x407999['push'](_0x407999['shift']());}}}(_0x5208,0x84836));export var AIContextItemType;!function(_0x32c052){var _0x3e542e=_0x2b51;_0x32c052[_0x3e542e(0x1c2)]=_0x3e542e(0x1b7),_0x32c052[_0x3e542e(0x1b0)]=_0x3e542e(0x1ab),_0x32c052[_0x3e542e(0x1af)]=_0x3e542e(0x1b9),_0x32c052[_0x3e542e(0x1b3)]=_0x3e542e(0x1ac),_0x32c052[_0x3e542e(0x1b4)]=_0x3e542e(0x1b2);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2b51(_0x20b411,_0x38a852){var _0x52087c=_0x5208();return _0x2b51=function(_0x2b51f2,_0x578f21){_0x2b51f2=_0x2b51f2-0x1a9;var _0x35d77c=_0x52087c[_0x2b51f2];return _0x35d77c;},_0x2b51(_0x20b411,_0x38a852);}!function(_0x364001){var _0x4882cf=_0x2b51;_0x364001[_0x4882cf(0x1b3)]=_0x4882cf(0x1ac),_0x364001[_0x4882cf(0x1b6)]=_0x4882cf(0x1bb),_0x364001[_0x4882cf(0x1bd)]=_0x4882cf(0x1c1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5208(){var _0x5669f1=['1243140JKPCZI','HTML','10sFFUdx','338151Lmdzsl','6007032IkStrD','html','FILE','324681bNDwFe','24gfsnuc','document','text','17TikAVK','538899dbeRRG','URL','DOCUMENT','2809664XJVoJE','selection','TEXT','SELECTION','96804XaUAVs','MARKDOWN','file','42ZSVKDW','web-resource','12tOZgyF','markdown'];_0x5208=function(){return _0x5669f1;};return _0x5208();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dedde=_0x3d9e;(function(_0x237fea,_0x1638ea){const _0x134e24=_0x3d9e,_0x44da37=_0x237fea();while(!![]){try{const _0x5ca504=-parseInt(_0x134e24(0xda))/0x1+-parseInt(_0x134e24(0xd9))/0x2+parseInt(_0x134e24(0xd0))/0x3+parseInt(_0x134e24(0x10d))/0x4+parseInt(_0x134e24(0x112))/0x5+parseInt(_0x134e24(0xdc))/0x6*(-parseInt(_0x134e24(0xff))/0x7)+parseInt(_0x134e24(0xf1))/0x8*(parseInt(_0x134e24(0xf5))/0x9);if(_0x5ca504===_0x1638ea)break;else _0x44da37['push'](_0x44da37['shift']());}catch(_0x153101){_0x44da37['push'](_0x44da37['shift']());}}}(_0x3763,0x41e2e));import{CKEditorError as _0x42b4d1,EmitterMixin as _0x41ad42,logWarning as _0x3adbbc,uid as _0x1e6871}from'ckeditor5/src/utils.js';import{AIReply as _0x1b8ea2,isIgnoredReplyType as _0x5b0ae0,isValidReplyType as _0x54c072,isReplyTitleType as _0x3a74db,isSourceType as _0x2980ef}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2dedde(0x107),_0x2dedde(0xde),_0x2dedde(0xe1),_0x2dedde(0xe8),_0x2dedde(0x111),_0x2dedde(0xfa),_0x2dedde(0x103),_0x2dedde(0xdd),_0x2dedde(0x101),_0x2dedde(0xd2),_0x2dedde(0xe2),_0x2dedde(0xd1),_0x2dedde(0xf3),_0x2dedde(0x10e)];export class AIInteraction extends _0x41ad42(){['id'];[_0x2dedde(0xe3)]=[];[_0x2dedde(0xfc)];[_0x2dedde(0xe9)];[_0x2dedde(0xd8)];[_0x2dedde(0xf4)];[_0x2dedde(0xd6)];[_0x2dedde(0xee)]=!0x1;[_0x2dedde(0xe7)]=!0x1;[_0x2dedde(0xf8)];[_0x2dedde(0xe0)]=!0x1;[_0x2dedde(0xd7)]=!0x1;constructor({connector:_0x2c47ef,editor:_0x502502}){const _0x333d5a=_0x2dedde;super(),this['id']=_0x1e6871(),this[_0x333d5a(0xd6)]=_0x2c47ef,this[_0x333d5a(0xee)]=!0x0,this[_0x333d5a(0xf8)]=_0x502502;}async[_0x2dedde(0xdf)](){const _0x1de993=_0x2dedde;let _0x3f64cc;const _0x1ed942=[];this[_0x1de993(0xee)]=!0x1;try{this[_0x1de993(0xf4)]=await this[_0x1de993(0xf9)](),this[_0x1de993(0xcf)](_0x1de993(0xde),this);const _0x3b8376=await this[_0x1de993(0xf4)][_0x1de993(0xcd)]();for await(const _0x405ea2 of _0x3b8376){if(this[_0x1de993(0xee)])return;if(_0x1de993(0x10e)===_0x405ea2[_0x1de993(0xec)])return void this[_0x1de993(0xcf)](_0x1de993(0x10e),{'error':new _0x42b4d1(_0x1de993(0xef),this)});if(_0x1de993(0x110)!==_0x405ea2[_0x1de993(0xec)]){if(_0x1de993(0xce)!==_0x405ea2[_0x1de993(0xec)]){if(_0x3a74db(_0x405ea2[_0x1de993(0xec)])&&this[_0x1de993(0x101)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0x10f)],!0x0),_0x2980ef(_0x405ea2[_0x1de993(0xec)]))_0x1ed942[_0x1de993(0xeb)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xd4)]);else{if(_0x54c072(_0x405ea2[_0x1de993(0xec)])){if(_0x405ea2[_0x1de993(0xec)]!==_0x3f64cc){if(_0x3f64cc=_0x405ea2[_0x1de993(0xec)],_0x1de993(0xed)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xd7)]||(this[_0x1de993(0xd7)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd2),this));continue;}if(_0x1de993(0x10c)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xe0)]||(this[_0x1de993(0xe0)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd1),this));continue;}this[_0x1de993(0xe0)]&&(this[_0x1de993(0xe0)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xf3),this)),this[_0x1de993(0xd7)]&&(this[_0x1de993(0xd7)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xe2),this)),this[_0x1de993(0xfc)]&&this[_0x1de993(0xfc)][_0x1de993(0xd3)](),this[_0x1de993(0xfc)]=this[_0x1de993(0x102)]({'type':_0x405ea2[_0x1de993(0xec)],'interactionId':this['id']}),_0x1ed942[_0x1de993(0xfe)]>0x0&&_0x1de993(0xea)===_0x405ea2[_0x1de993(0xec)]&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0));}_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]&&this[_0x1de993(0xfc)][_0x1de993(0xe5)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]);}else _0x5b0ae0(_0x405ea2[_0x1de993(0xec)])||_0x3adbbc(_0x1de993(0x108),{'chunk':_0x405ea2});}}else this[_0x1de993(0xd8)]=_0x405ea2[_0x1de993(0x105)][_0x1de993(0xdb)];}else this[_0x1de993(0xe9)]=_0x405ea2[_0x1de993(0x105)]['id'];}}finally{this[_0x1de993(0xee)]||(_0x1ed942[_0x1de993(0xfe)]>0x0&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0)),this[_0x1de993(0xd5)](),this[_0x1de993(0xcf)](_0x1de993(0xe8),this));}}[_0x2dedde(0xfb)](){const _0x3be98c=_0x2dedde;this[_0x3be98c(0xee)]||(this[_0x3be98c(0xd5)](),this[_0x3be98c(0xcf)](_0x3be98c(0xe1),this));}[_0x2dedde(0x106)](_0x515fdd){const _0x1be151=_0x2dedde;return this[_0x1be151(0xe3)][_0x1be151(0xf7)](_0x2b20a3=>_0x2b20a3['id']===_0x515fdd);}[_0x2dedde(0x10a)](){const _0x499148=_0x2dedde;this[_0x499148(0xe7)]||(this[_0x499148(0xfb)](),this[_0x499148(0xe3)][_0x499148(0xe4)](_0x59949f=>_0x59949f[_0x499148(0x10a)]()),this[_0x499148(0xe3)]=[],this[_0x499148(0xe7)]=!0x0,this[_0x499148(0xcf)](_0x499148(0x111),this),this[_0x499148(0x100)]());}[_0x2dedde(0x102)](_0x2f6e46){const _0x39169e=_0x2dedde,_0xa94f4c=new _0x1b8ea2({'editor':this[_0x39169e(0xf8)],'documentContextContent':this[_0x39169e(0x109)]()?.[_0x39169e(0xf2)],..._0x2f6e46});return this[_0x39169e(0xe3)][_0x39169e(0xeb)](_0xa94f4c),_0xa94f4c[_0x39169e(0xf0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x39169e(0xcf)](_0x39169e(0xfa),_0xa94f4c),_0xa94f4c;}[_0x2dedde(0x101)](_0x1d174b,_0x566cbd=!0x1){const _0x505b2f=_0x2dedde;this[_0x505b2f(0xcf)](_0x505b2f(0x101),_0x1d174b,_0x566cbd);}[_0x2dedde(0xd5)](){const _0x89a87=_0x2dedde;this[_0x89a87(0xee)]=!0x0,this[_0x89a87(0xf4)]&&this[_0x89a87(0xf4)][_0x89a87(0xe6)][_0x89a87(0x10b)](),this[_0x89a87(0xfc)]&&this[_0x89a87(0xfc)][_0x89a87(0xd3)](),this[_0x89a87(0xf4)]=this[_0x89a87(0xfc)]=void 0x0;}}function _0x3d9e(_0x18688f,_0x19af63){const _0x3763c2=_0x3763();return _0x3d9e=function(_0x3d9eb1,_0x22199b){_0x3d9eb1=_0x3d9eb1-0xcd;let _0x4bd85a=_0x3763c2[_0x3d9eb1];return _0x4bd85a;},_0x3d9e(_0x18688f,_0x19af63);}function _0x3763(){const _0x7e2c76=['896tfebEM','stopListening','setConversationTitle','createReply','replyContentUpdated','splice','data','getReply','interactionCreated','ai-interaction-invalid-event-type','getDocumentContext','destroy','abort','reasoning','435692naMZXG','error','conversationTitle','message-metadata','interactionDestroyed','1827305iCutaI','getStream','action-metadata','fire','1453251Yabbhf','reasoningStarted','webSearchStarted','done','source','_finalizeInteraction','connector','_isWebSearching','actionCallId','946270xfyYtR','243624MOxQpt','callId','10044YNWJtT','replyChangeGroupStateUpdated','interactionStarted','start','_isReasoning','interactionStopped','webSearchFinished','replies','forEach','appendContent','abortController','isDestroyed','interactionFinished','messageId','modification-delta','push','event','web-search','isStopped','ai-chat-interaction-error','delegate','64560jkLknK','content','reasoningFinished','currentRequest','270trRbNs','sources','find','editor','sendRequest','replyCreated','stop','currentReply','textDelta','length'];_0x3763=function(){return _0x7e2c76;};return _0x3763();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x293809=_0x4667;(function(_0x4dba5c,_0x273149){const _0x45b1e6=_0x4667,_0x5759f2=_0x4dba5c();while(!![]){try{const _0x4275c3=-parseInt(_0x45b1e6(0x9b))/0x1*(-parseInt(_0x45b1e6(0x97))/0x2)+-parseInt(_0x45b1e6(0x95))/0x3*(-parseInt(_0x45b1e6(0xba))/0x4)+-parseInt(_0x45b1e6(0xaf))/0x5*(-parseInt(_0x45b1e6(0xc1))/0x6)+-parseInt(_0x45b1e6(0xb6))/0x7*(parseInt(_0x45b1e6(0x8c))/0x8)+parseInt(_0x45b1e6(0x86))/0x9*(parseInt(_0x45b1e6(0xa3))/0xa)+parseInt(_0x45b1e6(0xa8))/0xb+-parseInt(_0x45b1e6(0xa4))/0xc*(parseInt(_0x45b1e6(0x8d))/0xd);if(_0x4275c3===_0x273149)break;else _0x5759f2['push'](_0x5759f2['shift']());}catch(_0x2614e2){_0x5759f2['push'](_0x5759f2['shift']());}}}(_0x1ff0,0xedb27));import{ObservableMixin as _0x1b50a2,uid as _0x79310c}from'ckeditor5/src/utils.js';import{Element as _0x343edc,findAll as _0x39f783,getAttribute as _0x356648,getParents as _0x5f3d60,Document as _0x115def,parse as _0x1683b6,Text as _0x414071}from'../utils/htmlparser.js';import{AIResponseParser as _0x319c6e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x199385}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x17272e}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x293809(0xbe),_0x293809(0x87),_0x293809(0xb3),_0x293809(0xad)];export const AI_REPLY_TYPES_IGNORED=[_0x293809(0xcd)];export const AI_REPLY_TITLE_TYPE=_0x293809(0xcd);function _0x4667(_0x1d0153,_0x121efc){const _0x1ff03e=_0x1ff0();return _0x4667=function(_0x4667e9,_0x3ff6cf){_0x4667e9=_0x4667e9-0x82;let _0x3a012e=_0x1ff03e[_0x4667e9];return _0x3a012e;},_0x4667(_0x1d0153,_0x121efc);}export class AIReply extends _0x1b50a2(){['id'];[_0x293809(0x8e)];[_0x293809(0x88)];[_0x293809(0xab)]=[];[_0x293809(0xaa)]=new _0x115def([]);[_0x293809(0x84)]=new _0x115def([]);[_0x293809(0xc6)]=[];[_0x293809(0x96)]=!0x1;[_0x293809(0x94)];[_0x293809(0x9f)];[_0x293809(0xa7)];[_0x293809(0xbd)];constructor({type:_0x59dad2,content:_0x2bb018='',isDone:_0x3f8ba1=!0x1,interactionId:_0xd64245,areActionsDisabled:_0x5e9ae7,documentContextContent:_0x3c44c8,editor:_0x36019a}){const _0x2c31c2=_0x293809;super(),this['id']=_0x79310c(),this[_0x2c31c2(0x8e)]=_0xd64245,this[_0x2c31c2(0x88)]=_0x59dad2,this[_0x2c31c2(0x96)]=!!_0x5e9ae7,this[_0x2c31c2(0xbd)]=_0x36019a,this[_0x2c31c2(0x9f)]=new _0x319c6e(),this[_0x2c31c2(0xa7)]=new _0x199385(),this[_0x2c31c2(0x94)]=_0x1683b6(_0x3c44c8||''),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa9),_0x3f8ba1),this['on'](_0x2c31c2(0x90),()=>{const _0x466991=_0x2c31c2;this[_0x466991(0x9a)]();}),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa6),_0x2bb018);}[_0x293809(0xbf)](_0x257d61){const _0x5f0b86=_0x293809;this[_0x5f0b86(0xb4)](_0x5f0b86(0xa6),this[_0x5f0b86(0xa6)]+_0x257d61);}[_0x293809(0xb7)](){const _0x2d4a25=_0x293809;this[_0x2d4a25(0xa9)]||(this[_0x2d4a25(0xb4)](_0x2d4a25(0xa9),!0x0),this[_0x2d4a25(0x9a)]());}[_0x293809(0xcc)](){const _0x162086=_0x293809;this[_0x162086(0x93)]();}[_0x293809(0xac)](_0x476758,_0x18f1cb){const _0x17c149=_0x293809;this[_0x17c149(0xc6)][_0x476758][_0x17c149(0xc7)]=_0x18f1cb,this[_0x17c149(0xc3)](_0x17c149(0xb5),{'reply':this,'index':_0x476758,'state':_0x18f1cb});}[_0x293809(0x9a)](){const _0x8396b8=_0x293809;if(_0x8396b8(0xbe)===this[_0x8396b8(0x88)]){this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0x8f)](this[_0x8396b8(0xa6)]);const _0x3e7432=this[_0x8396b8(0xc6)];this[_0x8396b8(0xbb)]();const _0x3cb575=this[_0x8396b8(0xca)](_0x3e7432,this[_0x8396b8(0xc6)]);(_0x3cb575[_0x8396b8(0x91)]||this[_0x8396b8(0xa9)])&&this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this,_0x3cb575);}else this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0xc8)](this[_0x8396b8(0xa6)]),this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this);}[_0x293809(0xca)](_0x5c95d3,_0x5eff1f){const _0x94f089=_0x293809,_0x5eae6f=[];for(const _0x50cc28 of _0x5eff1f){const _0x420ef8=_0x5c95d3[_0x50cc28[_0x94f089(0xcf)]];_0x420ef8?_0x420ef8[_0x94f089(0x92)][_0x94f089(0x91)]!==_0x50cc28[_0x94f089(0x92)][_0x94f089(0x91)]?_0x5eae6f[_0x94f089(0xa5)](_0x50cc28):_0x420ef8[_0x94f089(0x92)][_0x94f089(0x9d)]((_0x4c69eb,_0x29a7d6)=>{const _0x3f11e2=_0x94f089,_0x1241fa=_0x50cc28[_0x3f11e2(0x92)][_0x29a7d6];_0x4c69eb['id']!==_0x1241fa['id']&&_0x5eae6f[_0x3f11e2(0xa5)](_0x50cc28);}):_0x5eae6f[_0x94f089(0xa5)](_0x50cc28);}return _0x5eae6f;}[_0x293809(0xbb)](){const _0x2f8e24=_0x293809,_0x3c3a5f=new _0x343edc('p',{},[new _0x343edc(_0x2f8e24(0x99),{'style':_0x2f8e24(0xc9)},[new _0x414071(_0x17272e(this[_0x2f8e24(0xbd)][_0x2f8e24(0x85)],_0x2f8e24(0xb2)))])]),_0x96f71c=this[_0x2f8e24(0xa7)][_0x2f8e24(0xb0)](this[_0x2f8e24(0xaa)],this[_0x2f8e24(0x94)][_0x2f8e24(0x89)](!0x0),{'markUnstableElements':!this[_0x2f8e24(0xa9)],'replaceRemovedWith':_0x3c3a5f,'cutAfterLastChange':!this[_0x2f8e24(0xa9)]});if(!_0x96f71c[_0x2f8e24(0x8b)][_0x2f8e24(0x91)]&&!this[_0x2f8e24(0xa9)])return;this[_0x2f8e24(0x84)]=_0x96f71c[_0x2f8e24(0xaa)];let _0x369017=[];if(_0x39f783(_0xe51af1=>{const _0x5390fe=_0x2f8e24,_0x4dbf26=_0x356648(_0xe51af1,_0x5390fe(0x82));if(!_0x4dbf26||!_0x259baf(_0x4dbf26))return!0x1;const _0x5ad28e=[_0xe51af1,..._0x5f3d60(_0xe51af1)]['at'](-0x2);if(_0xe51af1!=_0x5ad28e){const _0x2d3c9c=_0x356648(_0x5ad28e,_0x5390fe(0x82));_0x259baf(_0x2d3c9c)||(_0x369017[_0x5390fe(0xa5)]({'node':_0x5ad28e,'id':_0x2d3c9c,'type':_0x5390fe(0xae)}),_0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0xa5)](_0x2d3c9c));}else _0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xae),'id':_0x4dbf26}):_0x96f71c[_0x5390fe(0x9c)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xc0),'id':_0x4dbf26,'anchorId':_0x356648(_0xe51af1[_0x5390fe(0xa2)],_0x5390fe(0x82))}):_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0x9e),'id':_0x4dbf26});return!0x0;},this[_0x2f8e24(0x84)]),_0x369017=_0x369017[_0x2f8e24(0xa0)](({node:_0x259724})=>[..._0x5f3d60(_0x259724),_0x259724][_0x2f8e24(0xbc)](_0x3da2f8=>!_0x356648(_0x3da2f8,_0x2f8e24(0xce)))),0x0==_0x369017[_0x2f8e24(0x91)])return;const _0x4d4520=[[_0x369017[0x0]]];for(let _0x24884e=0x1;_0x24884e<_0x369017[_0x2f8e24(0x91)];_0x24884e++){const _0x4b76d4=_0x4d4520[_0x4d4520[_0x2f8e24(0x91)]-0x1],_0x4f72e8=_0x4b76d4[_0x4b76d4[_0x2f8e24(0x91)]-0x1];_0x369017[_0x24884e][_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]==_0x4f72e8[_0x2f8e24(0xb9)]&&_0x2f8e24(0xae)!=_0x369017[_0x24884e][_0x2f8e24(0x88)]&&_0x2f8e24(0xae)!=_0x4f72e8[_0x2f8e24(0x88)]?_0x4b76d4[_0x2f8e24(0xa5)](_0x369017[_0x24884e]):_0x4d4520[_0x2f8e24(0xa5)]([_0x369017[_0x24884e]]);}for(const _0x3895a0 of _0x4d4520){const _0x1be215=_0x3895a0[0x0],_0x23581d=_0x3895a0[_0x3895a0[_0x2f8e24(0x91)]-0x1],_0x2b90e3=_0x2cdbba(_0x1be215[_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]);_0x2b90e3&&_0x3895a0[_0x2f8e24(0xb8)](_0x2b90e3);const _0x46cc7d=_0x2cdbba(_0x23581d[_0x2f8e24(0xb9)][_0x2f8e24(0xc4)]);_0x46cc7d&&_0x3895a0[_0x2f8e24(0xa5)](_0x46cc7d);}function _0x259baf(_0x3d552b){const _0x202092=_0x2f8e24;return _0x96f71c[_0x202092(0x8b)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x9c)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x8a)][_0x202092(0x98)](_0x3d552b);}function _0x2cdbba(_0x22baba){const _0x4e298b=_0x2f8e24;if(_0x22baba&&_0x356648(_0x22baba,_0x4e298b(0x82))&&!_0x356648(_0x22baba,_0x4e298b(0xce))){const _0x2979d2=_0x356648(_0x22baba,_0x4e298b(0x82));if(!_0x259baf(_0x2979d2))return{'node':_0x22baba,'type':_0x4e298b(0xcb),'id':_0x2979d2};}return null;}this[_0x2f8e24(0xc6)]=_0x4d4520[_0x2f8e24(0xc2)]((_0x37b4e2,_0x5a0012)=>({'changes':_0x37b4e2,'state':_0x2f8e24(0xb1),'index':_0x5a0012}));}}export function isValidReplyType(_0x1e4a59){const _0x766f1=_0x293809;return Object[_0x766f1(0xa1)](AI_REPLY_TYPES)[_0x766f1(0x98)](_0x1e4a59);}export function isIgnoredReplyType(_0x1f43e0){const _0x25b1ed=_0x293809;return AI_REPLY_TYPES_IGNORED[_0x25b1ed(0x98)](_0x1f43e0);}export function isReplyTitleType(_0x3894a1){return _0x3894a1===AI_REPLY_TITLE_TYPE;}function _0x1ff0(){const _0x459f0b=['editor','modification-delta','appendContent','new','6894348zcTeFe','map','fire','nextSibling','replyContentUpdated','changeGroups','state','convertMarkdownToHTML','color:\x20#808080;\x20font-style:\x20italic','_getDifferentChangeGroups','context','destroy','conversation-title','data-unstable','index','data-id','source','parsedMergedContent','locale','8748Biphxn','text-delta','type','cloneNode','removedNodeIds','modifiedNodeIds','13438728tehbIv','26eMGgEw','interactionId','parseAndNormalizeHTML','change:content','length','changes','stopListening','documentContextContent','15AmdDKl','areActionsDisabled','35516DMhBvD','includes','span','onContentChange','9qTDnkp','newNodeIds','forEach','removed','aiResponseParser','filter','values','previousSibling','7890ADMfoi','7649328HZfWbP','push','content','aiResponseApplier','14237333ZafDXj','isDone','parsedContent','sources','setChangeGroupState','reasoning','modified','5zRreSC','merge','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','web-search','set','replyChangeGroupStateUpdated','7MMiWlT','done','unshift','node','446596tbXnwg','updateChangeGroups','every'];_0x1ff0=function(){return _0x459f0b;};return _0x1ff0();}export function isSourceType(_0xdf7581){const _0x2014b7=_0x293809;return _0x2014b7(0x83)===_0xdf7581;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x56dec4(){[_0x2be753(0x1cc)];[_0x2be753(0x1a0)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2be753(0x1d3)]=new Set();constructor(_0x56b1ff){const _0x29f5b1=_0x2be753;super(),this[_0x29f5b1(0x1cc)]=_0x56b1ff||_0x491425;}[_0x2be753(0x1b1)](_0xf0f9c7,_0x2b45bd,_0x1216ce){const _0x53a9cf=_0x2be753,_0x284bc2=_0x4e699e(_0xf0f9c7);if(0x0===_0x2b45bd[_0x53a9cf(0x19e)][_0x53a9cf(0x1da)]){const _0x574ba0=[];return _0x2ba4f6(_0x53a9cf(0x19f),_0x53a9cf(0x1c2),_0x284bc2)[_0x53a9cf(0x1c6)](_0x2f483e=>{const _0x12339c=_0x53a9cf,_0x448360=this[_0x12339c(0x1cc)]();_0x236955(_0x2f483e,_0x12339c(0x19f),_0x448360),_0x574ba0[_0x12339c(0x1d7)](_0x448360);}),this[_0x53a9cf(0x1aa)](_0x284bc2),{'parsedContent':_0x284bc2,'newNodeIds':_0x574ba0,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1216ce&&_0x1216ce[_0x53a9cf(0x1d4)]&&this[_0x53a9cf(0x1c9)](_0x284bc2),this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1c1)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1bc)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1a1)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)]=null,this[_0x53a9cf(0x1d3)]=new Set(_0x2ba4f6(_0x53a9cf(0x19f),null,_0x2b45bd)[_0x53a9cf(0x1e4)](_0x219592=>_0x2ebeca(_0x219592,_0x53a9cf(0x19f)))[_0x53a9cf(0x1b0)](_0x2ac5f9=>!!_0x2ac5f9));let _0x549bd5=-0x1,_0x499e25=!0x1;const _0x82e314=_0x284bc2[_0x53a9cf(0x19e)],_0x4f3287=Array[_0x53a9cf(0x1a7)](_0x82e314)[_0x53a9cf(0x1b0)](_0xfcf011=>!(0x3===_0xfcf011[_0x53a9cf(0x1d2)]&&''===_0x74ab63(_0xfcf011)[_0x53a9cf(0x1d8)]())),_0x5ae0ff=_0x4f3287[_0x53a9cf(0x1da)];for(let _0x11e8c0=0x0;_0x11e8c0<_0x5ae0ff;_0x11e8c0++){const _0x3fc20b=_0x4f3287[_0x11e8c0],_0x296070=_0x4f3287[_0x11e8c0+0x1];if(this[_0x53a9cf(0x1a3)](_0x3fc20b)){if(-0x1===_0x549bd5&&(_0x549bd5=_0x11e8c0),this[_0x53a9cf(0x1ca)](_0x3fc20b),!this[_0x53a9cf(0x1a3)](_0x296070)){const [_0x339647,_0x3195b0]=this[_0x53a9cf(0x1e2)](_0x3fc20b,_0x499e25,_0x2b45bd);if(_0x339647){const _0x549454=Array[_0x53a9cf(0x1a7)](_0x4f3287)[_0x53a9cf(0x1e0)](_0x549bd5,_0x11e8c0+0x1);this[_0x53a9cf(0x1a5)](_0x339647,_0x549454,_0x3195b0),_0x549bd5=-0x1;}}}else{if(this[_0x53a9cf(0x1b7)](_0x3fc20b))_0x499e25=!0x0;else{if(this[_0x53a9cf(0x1b3)](_0x3fc20b)){const _0x201202=_0x2ebeca(_0x3fc20b,_0x53a9cf(0x19f));if(_0x201202&&this[_0x53a9cf(0x1d3)][_0x53a9cf(0x1ba)](_0x201202)){const _0x271a11=_0x5439aa(_0x53a9cf(0x19f),_0x201202,_0x2b45bd);this[_0x53a9cf(0x1d1)](_0x271a11,_0x3fc20b);}if(this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)][_0x53a9cf(0x1a8)](_0x201202)){const _0x1d7b49=this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)][_0x53a9cf(0x1ac)](_0x201202);this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)][_0x53a9cf(0x1de)](_0x1d7b49,0x1);}}else{if(this[_0x53a9cf(0x1ce)](_0x3fc20b)){const _0x175836=_0x2ebeca(_0x3fc20b,_0x53a9cf(0x19f));this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1bc)][_0x53a9cf(0x1a8)](_0x175836)||this[_0x53a9cf(0x1c5)](_0x3fc20b);}}}}}for(const _0x49cafc of this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)]){const _0x539cea=_0x5439aa(_0x53a9cf(0x19f),_0x49cafc,_0x2b45bd);if(_0x539cea){if(_0x1216ce&&_0x1216ce[_0x53a9cf(0x1db)]){this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)]=_0x49cafc;const _0x54fb66=_0x1216ce[_0x53a9cf(0x1db)][_0x53a9cf(0x1e1)](!0x0);_0x236955(_0x54fb66,_0x53a9cf(0x19f),_0x49cafc),_0x236955(_0x54fb66,_0x53a9cf(0x1b6),_0x53a9cf(0x1a6)),_0x301135(_0x539cea,_0x54fb66);}else _0x20a7e0(_0x539cea);}}if(_0x2ba4f6(_0x53a9cf(0x1bf),null,_0x2b45bd)[_0x53a9cf(0x1c6)](_0x331800=>{const _0x18e1f8=_0x53a9cf,_0x386ff3=_0x2ebeca(_0x331800,_0x18e1f8(0x1bf)),_0x598eb1=_0x5439aa(_0x18e1f8(0x19f),_0x386ff3,_0x2b45bd);_0x598eb1&&_0xfd408c(_0x598eb1,_0x331800);}),_0x2ba4f6(_0x53a9cf(0x19f),_0x53a9cf(0x1c2),_0x2b45bd)[_0x53a9cf(0x1c6)](_0x5b7c9b=>{const _0xf5c5c0=_0x53a9cf,_0x2122e9=this[_0xf5c5c0(0x1d5)](_0x5b7c9b);_0x236955(_0x5b7c9b,_0xf5c5c0(0x19f),_0x2122e9),this[_0xf5c5c0(0x1a0)][_0xf5c5c0(0x1c1)][_0xf5c5c0(0x1d7)](_0x2122e9);}),this[_0x53a9cf(0x1aa)](_0x2b45bd),_0x1216ce&&_0x1216ce[_0x53a9cf(0x1d4)]&&this[_0x53a9cf(0x1c4)](_0x2b45bd,_0x1216ce[_0x53a9cf(0x1d9)]||0x0),_0x1216ce&&_0x1216ce[_0x53a9cf(0x1e3)]&&this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)]){let _0x1bea1b=_0x5439aa(_0x53a9cf(0x19f),this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)],_0x2b45bd);for(;_0x1bea1b;)_0x2b05e5(_0x1bea1b),_0x1bea1b=_0x1bea1b[_0x53a9cf(0x1c8)];}return{'parsedContent':_0x2b45bd,'newNodeIds':this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1c1)],'modifiedNodeIds':this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1bc)],'removedNodeIds':this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)]};}[_0x2be753(0x1a5)](_0x52d918,_0x5428ef,_0x127d57){const _0x402674=_0x2be753;for(const _0x4ca9d0 of _0x5428ef){const _0x5896c4=this[_0x402674(0x1d5)](_0x4ca9d0);_0x236955(_0x4ca9d0,_0x402674(0x19f),_0x5896c4),this[_0x402674(0x1a0)][_0x402674(0x1c1)][_0x402674(0x1d7)](_0x5896c4),this[_0x402674(0x1a0)][_0x402674(0x1d0)]=_0x5896c4;}const _0x484a9c=_0x402674(0x1c3)===_0x127d57||_0x402674(0x1b4)===_0x127d57?_0x5428ef[_0x402674(0x1c7)]():_0x5428ef;for(const _0x35c52c of _0x484a9c)_0x4a239f(_0x52d918,_0x35c52c,_0x127d57);}[_0x2be753(0x1d1)](_0x5b5962,_0x59ff66){const _0x5c28e2=_0x2be753;if(!_0x5b5962)return;if(_0x1dbb1c(_0x5b5962,_0x59ff66))return;const _0x1cd727=this[_0x5c28e2(0x1d5)](_0x5b5962);_0x236955(_0x59ff66,_0x5c28e2(0x19f),_0x1cd727),this[_0x5c28e2(0x1a0)][_0x5c28e2(0x1bc)][_0x5c28e2(0x1d7)](_0x1cd727),this[_0x5c28e2(0x1a0)][_0x5c28e2(0x1d0)]=_0x1cd727,_0x301135(_0x5b5962,_0x59ff66[_0x5c28e2(0x1e1)](!0x0));}[_0x2be753(0x1e2)](_0x42f332,_0x35543a,_0x58f56a){const _0x98723f=_0x2be753,_0x57debb=this[_0x98723f(0x1bb)](_0x42f332,!0x1);if(_0x57debb){const _0xe256f0=this[_0x98723f(0x1dc)](_0x57debb),_0x4fd1c6=_0x5439aa(_0x98723f(0x19f),_0xe256f0,_0x58f56a);if(_0x4fd1c6)return[_0x4fd1c6,_0x98723f(0x1b4)];this[_0x98723f(0x1a0)][_0x98723f(0x1a1)][_0x98723f(0x1d7)](_0xe256f0);}const _0x46069d=this[_0x98723f(0x1cf)](_0x42f332,!0x1);if(_0x46069d){const _0x2a7ceb=this[_0x98723f(0x1dc)](_0x46069d),_0x2ee691=_0x5439aa(_0x98723f(0x19f),_0x2a7ceb,_0x58f56a);if(_0x2ee691)return[_0x2ee691,_0x98723f(0x1a9)];this[_0x98723f(0x1a0)][_0x98723f(0x1a1)][_0x98723f(0x1d7)](_0x2a7ceb);}return _0x35543a?_0x42f332[_0x98723f(0x1c0)]?this[_0x98723f(0x1af)](_0x42f332,_0x58f56a):[_0x58f56a[_0x98723f(0x19e)][_0x58f56a[_0x98723f(0x19e)][_0x98723f(0x1da)]-0x1],_0x98723f(0x1b4)]:[_0x58f56a[_0x98723f(0x19e)][0x0],_0x98723f(0x1a9)];}[_0x2be753(0x1af)](_0x10c4eb,_0x232604){const _0x2aac08=_0x2be753,_0x29b8c7=[],_0x3bbb9a=this[_0x2aac08(0x1bb)](_0x10c4eb,!0x0);if(_0x3bbb9a){const _0x51f7e3=this[_0x2aac08(0x1dc)](_0x3bbb9a),_0x3fbc34=_0x5439aa(_0x2aac08(0x19f),_0x51f7e3,_0x232604);_0x3fbc34&&_0x29b8c7[_0x2aac08(0x1d7)]([_0x3fbc34,_0x2aac08(0x1b4)]);}const _0x3db0ef=this[_0x2aac08(0x1cf)](_0x10c4eb,!0x0);if(_0x3db0ef){const _0x50292a=this[_0x2aac08(0x1dc)](_0x3db0ef),_0x560784=_0x5439aa(_0x2aac08(0x19f),_0x50292a,_0x232604);_0x560784&&_0x29b8c7[_0x2aac08(0x1d7)]([_0x560784,_0x2aac08(0x1a9)]);}if(_0x29b8c7[_0x2aac08(0x1da)]>0x1)return _0x3bb26f(_0x29b8c7[0x0][0x0])<=_0x3bb26f(_0x29b8c7[0x1][0x0])?_0x29b8c7[0x0]:_0x29b8c7[0x1];return 0x1===_0x29b8c7[_0x2aac08(0x1da)]?_0x29b8c7[0x0]:[_0x232604[_0x2aac08(0x1dd)],_0x2aac08(0x1b4)];}[_0x2be753(0x1cf)](_0x524302,_0x17685a){const _0x5543c2=_0x2be753;let _0x6f427d=_0x524302[_0x5543c2(0x1c0)],_0x5c1972=null,_0x4bd967=!0x1;for(;_0x6f427d;){if(_0x1e03d0(_0x6f427d)){if(this[_0x5543c2(0x1ce)](_0x6f427d)&&(_0x5c1972=_0x6f427d),this[_0x5543c2(0x1b7)](_0x6f427d)&&_0x17685a&&!_0x4bd967){_0x4bd967=!0x0,_0x6f427d=_0x6f427d[_0x5543c2(0x1c0)];continue;}break;}const _0x25c221=_0x2ebeca(_0x6f427d,_0x5543c2(0x19f));if(_0x25c221&&_0x5543c2(0x1c2)!==_0x25c221&&this[_0x5543c2(0x1d3)][_0x5543c2(0x1ba)](_0x25c221)){_0x5c1972=_0x6f427d;break;}_0x6f427d=_0x6f427d[_0x5543c2(0x1c0)];}return _0x5c1972;}[_0x2be753(0x1bb)](_0x275cd7,_0x3d5a14){const _0x248868=_0x2be753;let _0xc63296=_0x275cd7[_0x248868(0x1b2)],_0x2e5203=null,_0x30406b=!0x1;for(;_0xc63296;){if(_0x1e03d0(_0xc63296)){if(this[_0x248868(0x1ce)](_0xc63296)&&(_0x2e5203=_0xc63296),this[_0x248868(0x1b7)](_0xc63296)&&_0x3d5a14&&!_0x30406b){_0x30406b=!0x0,_0xc63296=_0xc63296[_0x248868(0x1b2)];continue;}break;}const _0x1f715f=_0x2ebeca(_0xc63296,_0x248868(0x19f));if(_0x1f715f&&_0x248868(0x1c2)!==_0x1f715f&&this[_0x248868(0x1d3)][_0x248868(0x1ba)](_0x1f715f)){_0x2e5203=_0xc63296;break;}_0xc63296=_0xc63296[_0x248868(0x1b2)];}return _0x2e5203;}[_0x2be753(0x1ca)](_0x291e73){const _0x3bf2e2=_0x2be753;_0x5ac3d7(_0x291e73)&&_0x2ba4f6(_0x3bf2e2(0x19f),null,_0x291e73)[_0x3bf2e2(0x1c6)](_0x1aee94=>{const _0xa83497=_0x3bf2e2;if(this[_0xa83497(0x1b3)](_0x1aee94)&&!this[_0xa83497(0x1ae)](_0x1aee94)){const _0x5cd01c=_0x2ebeca(_0x1aee94,_0xa83497(0x19f));_0x236955(_0x1aee94,_0xa83497(0x1bf),_0x5cd01c),_0x236955(_0x1aee94,_0xa83497(0x19f),null);}});}[_0x2be753(0x1dc)](_0x22a255){const _0x2066cc=_0x2be753;if(!_0x22a255)return null;if(_0x5ac3d7(_0x22a255))return _0x2ebeca(_0x22a255,_0x2066cc(0x19f));if(_0x1e03d0(_0x22a255)){const _0xcbf49e=_0x74ab63(_0x22a255)[_0x2066cc(0x1b5)](/removed[\s*-]data-id="([^"]+)"/);if(_0xcbf49e&&_0xcbf49e[0x1])return _0xcbf49e[0x1];}return null;}[_0x2be753(0x1c5)](_0x1b5343){const _0x11b913=_0x2be753;if(_0x1e03d0(_0x1b5343)){const _0x44235f=_0x74ab63(_0x1b5343)[_0x11b913(0x1b5)](/removed[\s*-]data-id="([^"]+)"/);_0x44235f&&_0x44235f[0x1]&&this[_0x11b913(0x1a0)][_0x11b913(0x1cd)][_0x11b913(0x1d7)](_0x44235f[0x1]);}}[_0x2be753(0x1d5)](_0x2a422e){const _0x7ff900=_0x2be753;return this[_0x7ff900(0x1b3)](_0x2a422e)?_0x2ebeca(_0x2a422e,_0x7ff900(0x19f)):this[_0x7ff900(0x1cc)]();}[_0x2be753(0x1aa)](_0x3594bd){const _0x5876f2=_0x2be753;_0x477837(_0x3594bd)[_0x5876f2(0x1b0)](_0x2e8faa=>this[_0x5876f2(0x1ce)](_0x2e8faa)||this[_0x5876f2(0x1b7)](_0x2e8faa))[_0x5876f2(0x1c6)](_0x43c0e4=>{_0x20a7e0(_0x43c0e4);});}[_0x2be753(0x1c9)](_0x75eacd){const _0x465940=_0x2be753,_0x58a4cc=_0x75eacd[_0x465940(0x19e)],_0x5232f1=_0x58a4cc[_0x58a4cc[_0x465940(0x1da)]-0x1];_0x5232f1&&_0x5ac3d7(_0x5232f1)&&_0x236955(_0x5232f1,_0x465940(0x1df),_0x465940(0x1a6));}[_0x2be753(0x1c4)](_0x14fdda,_0x38e508){const _0x1d0201=_0x2be753,_0x3e287d=_0x5439aa(_0x1d0201(0x1df),_0x1d0201(0x1a6),_0x14fdda);if(!_0x3e287d)return;const _0x53ef6d=_0x27db4a(_0x3e287d)[_0x1d0201(0x1e0)](0x0,-0x1),_0x597da9=_0x53ef6d[_0x1d0201(0x1da)];let _0x5cc1bb=_0x3e287d;if(_0x597da9>_0x38e508){let _0x455ce4=_0x597da9,_0x5d6ef4=null;for(;_0x455ce4>_0x38e508&&_0x455ce4>=0x0;)_0x455ce4--,_0x5d6ef4=_0x53ef6d[_0x455ce4];_0x5d6ef4&&(_0x5cc1bb=_0x5d6ef4,_0x236955(_0x3e287d,_0x1d0201(0x1df),null),_0x236955(_0x5d6ef4,_0x1d0201(0x1df),_0x1d0201(0x1a6)));}else{if(_0x597da9<_0x38e508){let _0x1c27fc=_0x597da9,_0x4a00d6=_0x3e287d;for(;_0x1c27fc<_0x38e508;){const _0x51454a=_0x4a00d6[_0x1d0201(0x19e)][_0x1d0201(0x1b0)](_0x3a014b=>_0x5ac3d7(_0x3a014b));if(0x0===_0x51454a[_0x1d0201(0x1da)])break;_0x1c27fc++,_0x4a00d6=_0x51454a[_0x51454a[_0x1d0201(0x1da)]-0x1];}_0x4a00d6&&(_0x5cc1bb=_0x4a00d6,_0x236955(_0x3e287d,_0x1d0201(0x1df),null),_0x236955(_0x4a00d6,_0x1d0201(0x1df),_0x1d0201(0x1a6)));}}let _0x56c2c2=_0x5cc1bb;for(;_0x56c2c2;){for(;_0x56c2c2[_0x1d0201(0x1c0)];)_0x56c2c2=_0x56c2c2[_0x1d0201(0x1c0)],_0x5ac3d7(_0x56c2c2)&&_0x236955(_0x56c2c2,_0x1d0201(0x1df),_0x1d0201(0x1a6));_0x56c2c2=_0x56c2c2[_0x1d0201(0x1c8)];}}[_0x2be753(0x1a3)](_0x2752d6){const _0x59cb30=_0x2be753;return Boolean(_0x59cb30(0x1c2)===_0x2ebeca(_0x2752d6,_0x59cb30(0x19f)));}[_0x2be753(0x1b3)](_0x452f48){const _0x46a6f0=_0x2be753;return Boolean((_0x2ebeca(_0x452f48,_0x46a6f0(0x19f))||'')[_0x46a6f0(0x1da)]>0x0&&_0x46a6f0(0x1c2)!==_0x2ebeca(_0x452f48,_0x46a6f0(0x19f)));}[_0x2be753(0x1ce)](_0x1a90fc){const _0x5ec279=_0x2be753;return!!_0x1a90fc&&Boolean(_0x1e03d0(_0x1a90fc)&&_0x74ab63(_0x1a90fc)[_0x5ec279(0x1b5)](/removed[\s*-]data-id="[^"]+"/));}[_0x2be753(0x1ae)](_0x301293){const _0x12dc65=_0x2be753;let _0x4819d4=_0x301293[_0x12dc65(0x1c8)];for(;_0x4819d4;){if(_0x2ebeca(_0x4819d4,_0x12dc65(0x1bf)))return!0x0;_0x4819d4=_0x4819d4[_0x12dc65(0x1c8)];}return!0x1;}[_0x2be753(0x1b7)](_0x7d08e1){const _0x30c264=_0x2be753;return Boolean(_0x1e03d0(_0x7d08e1)&&_0x74ab63(_0x7d08e1)[_0x30c264(0x1b5)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x38db5d=_0x3233;function _0x3233(_0x17fbc3,_0xa16c40){const _0x4f8360=_0x4f83();return _0x3233=function(_0x323311,_0x4761bf){_0x323311=_0x323311-0x17f;let _0x5174b8=_0x4f8360[_0x323311];return _0x5174b8;},_0x3233(_0x17fbc3,_0xa16c40);}(function(_0x29baae,_0x56b6c5){const _0x4655ea=_0x3233,_0x558aee=_0x29baae();while(!![]){try{const _0x748255=-parseInt(_0x4655ea(0x192))/0x1*(parseInt(_0x4655ea(0x191))/0x2)+parseInt(_0x4655ea(0x18c))/0x3*(-parseInt(_0x4655ea(0x180))/0x4)+parseInt(_0x4655ea(0x190))/0x5+-parseInt(_0x4655ea(0x18b))/0x6*(-parseInt(_0x4655ea(0x1a0))/0x7)+-parseInt(_0x4655ea(0x1a8))/0x8+-parseInt(_0x4655ea(0x197))/0x9+parseInt(_0x4655ea(0x18d))/0xa*(parseInt(_0x4655ea(0x1a7))/0xb);if(_0x748255===_0x56b6c5)break;else _0x558aee['push'](_0x558aee['shift']());}catch(_0x2822c8){_0x558aee['push'](_0x558aee['shift']());}}}(_0x4f83,0xc18d3));function _0x4f83(){const _0x2295b0=['data-unstable','_getUid','trim','_removeSpecialComments','removedIds','replaceRemovedWith','data-wrapped-id','637908OFpNKd','1482NwxoBW','10yYNusi','_findReferenceNode','_markUnstableElements','4970590GSeoMY','4uleFAq','486187xErVtO','_markLastTagElementUnstable','previousSibling','_touchedNodesState','_hasWrappedParent','7498503AwkAgG','reverse','push','merge','markUnstableElementsDepth','afterend','slice','_existingDataIds','new-element','91eTlwpD','_isExistingContentComment','_findPrevElementWithDataId','_insertNodes','_getNodeDataId','_isNewNode','lastTouchedId','24307987pNMIwH','10740616MgCRup','_generateUid','_findNextElementWithDataId','beforebegin','lastChild','_isExistingNode','invalidIds','nodeType','_markWrappedElements','markUnstableElements','_replaceNode','splice','has','indexOf','cutAfterLastChange','_findFallbackReferenceNode','parentNode','forEach','_isDelNode','_storeDeletedElementIds','true','match','childNodes','nextSibling','from','filter','modifiedIds','map','afterbegin','data-id','cloneNode','data-removed','5224uwLzYm','length','newIds','includes'];_0x4f83=function(){return _0x2295b0;};return _0x4f83();}import{ObservableMixin as _0x55715f,uid as _0x7169af}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x5cf85d,findByAttribute as _0x326a2d,getAttribute as _0x1f0838,isComment as _0x5cf372,isTag as _0x268071,insertElement as _0x2b3fa7,moveElement as _0x823ecc,removeElement as _0x56f057,replaceElement as _0x41c414,serialize as _0x2e4f7f,setAttribute as _0x1f0f32,clone as _0x232bc9,findAllComments as _0x49c946,getParents as _0x231981,getNodeNestingLevel as _0x1977b0,areNodesSame as _0x1bfbe1,removeElementsAfter as _0x5dff24}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55715f(){[_0x38db5d(0x1a9)];[_0x38db5d(0x195)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x38db5d(0x19e)]=new Set();constructor(_0x4886d3){const _0x2a35ed=_0x38db5d;super(),this[_0x2a35ed(0x1a9)]=_0x4886d3||_0x7169af;}[_0x38db5d(0x19a)](_0x223f13,_0x30dec0,_0x1cbe53){const _0x8db97c=_0x38db5d,_0x22df2e=_0x232bc9(_0x223f13);if(0x0===_0x30dec0[_0x8db97c(0x1be)][_0x8db97c(0x181)]){const _0x277b3f=[];return _0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x22df2e)[_0x8db97c(0x1b9)](_0x3ee8e2=>{const _0x2ab58e=_0x8db97c,_0x4b5998=this[_0x2ab58e(0x1a9)]();_0x1f0f32(_0x3ee8e2,_0x2ab58e(0x1c5),_0x4b5998),_0x277b3f[_0x2ab58e(0x199)](_0x4b5998);}),this[_0x8db97c(0x187)](_0x22df2e),{'parsedContent':_0x22df2e,'newNodeIds':_0x277b3f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x193)](_0x22df2e),this[_0x8db97c(0x195)][_0x8db97c(0x182)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1c2)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x188)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1ae)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=null,this[_0x8db97c(0x19e)]=new Set(_0x5cf85d(_0x8db97c(0x1c5),null,_0x30dec0)[_0x8db97c(0x1c3)](_0x4adad5=>_0x1f0838(_0x4adad5,_0x8db97c(0x1c5)))[_0x8db97c(0x1c1)](_0x5f1ed4=>!!_0x5f1ed4));let _0x2a5989=-0x1,_0x556956=!0x1;const _0x503b4a=_0x22df2e[_0x8db97c(0x1be)],_0x358754=Array[_0x8db97c(0x1c0)](_0x503b4a)[_0x8db97c(0x1c1)](_0x506d55=>!(0x3===_0x506d55[_0x8db97c(0x1af)]&&''===_0x2e4f7f(_0x506d55)[_0x8db97c(0x186)]())),_0x35371e=_0x358754[_0x8db97c(0x181)];for(let _0x369e22=0x0;_0x369e22<_0x35371e;_0x369e22++){const _0x1e49cb=_0x358754[_0x369e22],_0x5bfb58=_0x358754[_0x369e22+0x1];if(this[_0x8db97c(0x1a5)](_0x1e49cb)){if(-0x1===_0x2a5989&&(_0x2a5989=_0x369e22),this[_0x8db97c(0x1b0)](_0x1e49cb),!this[_0x8db97c(0x1a5)](_0x5bfb58)){const [_0x921fd2,_0x4324cf]=this[_0x8db97c(0x18e)](_0x1e49cb,_0x556956,_0x30dec0);if(_0x921fd2){const _0x282565=Array[_0x8db97c(0x1c0)](_0x358754)[_0x8db97c(0x19d)](_0x2a5989,_0x369e22+0x1);this[_0x8db97c(0x1a3)](_0x921fd2,_0x282565,_0x4324cf),_0x2a5989=-0x1;}}}else{if(this[_0x8db97c(0x1a1)](_0x1e49cb))_0x556956=!0x0;else{if(this[_0x8db97c(0x1ad)](_0x1e49cb)){const _0x14d7cb=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));if(_0x14d7cb&&this[_0x8db97c(0x19e)][_0x8db97c(0x1b4)](_0x14d7cb)){const _0x3fbe64=_0x326a2d(_0x8db97c(0x1c5),_0x14d7cb,_0x30dec0);this[_0x8db97c(0x1b2)](_0x3fbe64,_0x1e49cb);}if(this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x183)](_0x14d7cb)){const _0x26b1b5=this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b5)](_0x14d7cb);this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b3)](_0x26b1b5,0x1);}}else{if(this[_0x8db97c(0x1ba)](_0x1e49cb)){const _0x23ef2a=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));this[_0x8db97c(0x195)][_0x8db97c(0x1c2)][_0x8db97c(0x183)](_0x23ef2a)||this[_0x8db97c(0x1bb)](_0x1e49cb);}}}}}for(const _0x531595 of this[_0x8db97c(0x195)][_0x8db97c(0x188)]){const _0x5cf25=_0x326a2d(_0x8db97c(0x1c5),_0x531595,_0x30dec0);if(_0x5cf25){if(_0x1cbe53&&_0x1cbe53[_0x8db97c(0x189)]){this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=_0x531595;const _0x8119ff=_0x1cbe53[_0x8db97c(0x189)][_0x8db97c(0x1c6)](!0x0);_0x1f0f32(_0x8119ff,_0x8db97c(0x1c5),_0x531595),_0x1f0f32(_0x8119ff,_0x8db97c(0x17f),_0x8db97c(0x1bc)),_0x41c414(_0x5cf25,_0x8119ff);}else _0x56f057(_0x5cf25);}}if(_0x5cf85d(_0x8db97c(0x18a),null,_0x30dec0)[_0x8db97c(0x1b9)](_0x37d7fb=>{const _0x36cd96=_0x8db97c,_0x1e9da9=_0x1f0838(_0x37d7fb,_0x36cd96(0x18a)),_0x44c8f5=_0x326a2d(_0x36cd96(0x1c5),_0x1e9da9,_0x30dec0);_0x44c8f5&&_0x823ecc(_0x44c8f5,_0x37d7fb);}),_0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x30dec0)[_0x8db97c(0x1b9)](_0x3dea2b=>{const _0x1c312=_0x8db97c,_0x4c44b8=this[_0x1c312(0x185)](_0x3dea2b);_0x1f0f32(_0x3dea2b,_0x1c312(0x1c5),_0x4c44b8),this[_0x1c312(0x195)][_0x1c312(0x182)][_0x1c312(0x199)](_0x4c44b8);}),this[_0x8db97c(0x187)](_0x30dec0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x18f)](_0x30dec0,_0x1cbe53[_0x8db97c(0x19b)]||0x0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b6)]&&this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]){let _0x3d8fb5=_0x326a2d(_0x8db97c(0x1c5),this[_0x8db97c(0x195)][_0x8db97c(0x1a6)],_0x30dec0);for(;_0x3d8fb5;)_0x5dff24(_0x3d8fb5),_0x3d8fb5=_0x3d8fb5[_0x8db97c(0x1b8)];}return{'parsedContent':_0x30dec0,'newNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x182)],'modifiedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x1c2)],'removedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x188)]};}[_0x38db5d(0x1a3)](_0x2f6a90,_0xca5576,_0xea5978){const _0x41e76b=_0x38db5d;for(const _0x14d64b of _0xca5576){const _0x2395a6=this[_0x41e76b(0x185)](_0x14d64b);_0x1f0f32(_0x14d64b,_0x41e76b(0x1c5),_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x182)][_0x41e76b(0x199)](_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x1a6)]=_0x2395a6;}const _0x1101f2=_0x41e76b(0x1c4)===_0xea5978||_0x41e76b(0x19c)===_0xea5978?_0xca5576[_0x41e76b(0x198)]():_0xca5576;for(const _0x3fb7ca of _0x1101f2)_0x2b3fa7(_0x2f6a90,_0x3fb7ca,_0xea5978);}[_0x38db5d(0x1b2)](_0x14e930,_0x392f85){const _0x5406b6=_0x38db5d;if(!_0x14e930)return;if(_0x1bfbe1(_0x14e930,_0x392f85))return;const _0x54106d=this[_0x5406b6(0x185)](_0x14e930);_0x1f0f32(_0x392f85,_0x5406b6(0x1c5),_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1c2)][_0x5406b6(0x199)](_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1a6)]=_0x54106d,_0x41c414(_0x14e930,_0x392f85[_0x5406b6(0x1c6)](!0x0));}[_0x38db5d(0x18e)](_0x53d7fe,_0x33a7a9,_0x352ccb){const _0x186157=_0x38db5d,_0x47cb76=this[_0x186157(0x1a2)](_0x53d7fe,!0x1);if(_0x47cb76){const _0x5ccb14=this[_0x186157(0x1a4)](_0x47cb76),_0x5d7c1c=_0x326a2d(_0x186157(0x1c5),_0x5ccb14,_0x352ccb);if(_0x5d7c1c)return[_0x5d7c1c,_0x186157(0x19c)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x5ccb14);}const _0x458acb=this[_0x186157(0x1aa)](_0x53d7fe,!0x1);if(_0x458acb){const _0x503bf3=this[_0x186157(0x1a4)](_0x458acb),_0x1857e1=_0x326a2d(_0x186157(0x1c5),_0x503bf3,_0x352ccb);if(_0x1857e1)return[_0x1857e1,_0x186157(0x1ab)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x503bf3);}return _0x33a7a9?_0x53d7fe[_0x186157(0x1bf)]?this[_0x186157(0x1b7)](_0x53d7fe,_0x352ccb):[_0x352ccb[_0x186157(0x1be)][_0x352ccb[_0x186157(0x1be)][_0x186157(0x181)]-0x1],_0x186157(0x19c)]:[_0x352ccb[_0x186157(0x1be)][0x0],_0x186157(0x1ab)];}[_0x38db5d(0x1b7)](_0x25ad15,_0x4d5cbc){const _0x14710e=_0x38db5d,_0x15b799=[],_0xc55f28=this[_0x14710e(0x1a2)](_0x25ad15,!0x0);if(_0xc55f28){const _0x2619ff=this[_0x14710e(0x1a4)](_0xc55f28),_0x5d1c3c=_0x326a2d(_0x14710e(0x1c5),_0x2619ff,_0x4d5cbc);_0x5d1c3c&&_0x15b799[_0x14710e(0x199)]([_0x5d1c3c,_0x14710e(0x19c)]);}const _0x532ec5=this[_0x14710e(0x1aa)](_0x25ad15,!0x0);if(_0x532ec5){const _0x4bce1e=this[_0x14710e(0x1a4)](_0x532ec5),_0x317d7a=_0x326a2d(_0x14710e(0x1c5),_0x4bce1e,_0x4d5cbc);_0x317d7a&&_0x15b799[_0x14710e(0x199)]([_0x317d7a,_0x14710e(0x1ab)]);}if(_0x15b799[_0x14710e(0x181)]>0x1)return _0x1977b0(_0x15b799[0x0][0x0])<=_0x1977b0(_0x15b799[0x1][0x0])?_0x15b799[0x0]:_0x15b799[0x1];return 0x1===_0x15b799[_0x14710e(0x181)]?_0x15b799[0x0]:[_0x4d5cbc[_0x14710e(0x1ac)],_0x14710e(0x19c)];}[_0x38db5d(0x1aa)](_0x2d3bab,_0x41c31b){const _0x70b491=_0x38db5d;let _0x833935=_0x2d3bab[_0x70b491(0x1bf)],_0x82996a=null,_0x15057b=!0x1;for(;_0x833935;){if(_0x5cf372(_0x833935)){if(this[_0x70b491(0x1ba)](_0x833935)&&(_0x82996a=_0x833935),this[_0x70b491(0x1a1)](_0x833935)&&_0x41c31b&&!_0x15057b){_0x15057b=!0x0,_0x833935=_0x833935[_0x70b491(0x1bf)];continue;}break;}const _0x1248e3=_0x1f0838(_0x833935,_0x70b491(0x1c5));if(_0x1248e3&&_0x70b491(0x19f)!==_0x1248e3&&this[_0x70b491(0x19e)][_0x70b491(0x1b4)](_0x1248e3)){_0x82996a=_0x833935;break;}_0x833935=_0x833935[_0x70b491(0x1bf)];}return _0x82996a;}[_0x38db5d(0x1a2)](_0x32f840,_0x1e09db){const _0x47ec6f=_0x38db5d;let _0x4392db=_0x32f840[_0x47ec6f(0x194)],_0x23ef02=null,_0x185553=!0x1;for(;_0x4392db;){if(_0x5cf372(_0x4392db)){if(this[_0x47ec6f(0x1ba)](_0x4392db)&&(_0x23ef02=_0x4392db),this[_0x47ec6f(0x1a1)](_0x4392db)&&_0x1e09db&&!_0x185553){_0x185553=!0x0,_0x4392db=_0x4392db[_0x47ec6f(0x194)];continue;}break;}const _0x1ac9d5=_0x1f0838(_0x4392db,_0x47ec6f(0x1c5));if(_0x1ac9d5&&_0x47ec6f(0x19f)!==_0x1ac9d5&&this[_0x47ec6f(0x19e)][_0x47ec6f(0x1b4)](_0x1ac9d5)){_0x23ef02=_0x4392db;break;}_0x4392db=_0x4392db[_0x47ec6f(0x194)];}return _0x23ef02;}[_0x38db5d(0x1b0)](_0x303b4e){const _0x498533=_0x38db5d;_0x268071(_0x303b4e)&&_0x5cf85d(_0x498533(0x1c5),null,_0x303b4e)[_0x498533(0x1b9)](_0x1e20aa=>{const _0x41f3d7=_0x498533;if(this[_0x41f3d7(0x1ad)](_0x1e20aa)&&!this[_0x41f3d7(0x196)](_0x1e20aa)){const _0x268068=_0x1f0838(_0x1e20aa,_0x41f3d7(0x1c5));_0x1f0f32(_0x1e20aa,_0x41f3d7(0x18a),_0x268068),_0x1f0f32(_0x1e20aa,_0x41f3d7(0x1c5),null);}});}[_0x38db5d(0x1a4)](_0x5c7815){const _0x1a928d=_0x38db5d;if(!_0x5c7815)return null;if(_0x268071(_0x5c7815))return _0x1f0838(_0x5c7815,_0x1a928d(0x1c5));if(_0x5cf372(_0x5c7815)){const _0x4f2159=_0x2e4f7f(_0x5c7815)[_0x1a928d(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f2159&&_0x4f2159[0x1])return _0x4f2159[0x1];}return null;}[_0x38db5d(0x1bb)](_0x87372b){const _0x16bdef=_0x38db5d;if(_0x5cf372(_0x87372b)){const _0x1b9669=_0x2e4f7f(_0x87372b)[_0x16bdef(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);_0x1b9669&&_0x1b9669[0x1]&&this[_0x16bdef(0x195)][_0x16bdef(0x188)][_0x16bdef(0x199)](_0x1b9669[0x1]);}}[_0x38db5d(0x185)](_0x224052){const _0x1d72c1=_0x38db5d;return this[_0x1d72c1(0x1ad)](_0x224052)?_0x1f0838(_0x224052,_0x1d72c1(0x1c5)):this[_0x1d72c1(0x1a9)]();}[_0x38db5d(0x187)](_0x37f876){const _0x3efe4d=_0x38db5d;_0x49c946(_0x37f876)[_0x3efe4d(0x1c1)](_0x4722de=>this[_0x3efe4d(0x1ba)](_0x4722de)||this[_0x3efe4d(0x1a1)](_0x4722de))[_0x3efe4d(0x1b9)](_0x253cb9=>{_0x56f057(_0x253cb9);});}[_0x38db5d(0x193)](_0x28ae8f){const _0x3480cb=_0x38db5d,_0x484f80=_0x28ae8f[_0x3480cb(0x1be)],_0x41339e=_0x484f80[_0x484f80[_0x3480cb(0x181)]-0x1];_0x41339e&&_0x268071(_0x41339e)&&_0x1f0f32(_0x41339e,_0x3480cb(0x184),_0x3480cb(0x1bc));}[_0x38db5d(0x18f)](_0x1ab2bd,_0x509ebe){const _0x174e8d=_0x38db5d,_0x130af4=_0x326a2d(_0x174e8d(0x184),_0x174e8d(0x1bc),_0x1ab2bd);if(!_0x130af4)return;const _0x1cb6cc=_0x231981(_0x130af4)[_0x174e8d(0x19d)](0x0,-0x1),_0x57c93f=_0x1cb6cc[_0x174e8d(0x181)];let _0x3b961f=_0x130af4;if(_0x57c93f>_0x509ebe){let _0x38a01b=_0x57c93f,_0xcbea3=null;for(;_0x38a01b>_0x509ebe&&_0x38a01b>=0x0;)_0x38a01b--,_0xcbea3=_0x1cb6cc[_0x38a01b];_0xcbea3&&(_0x3b961f=_0xcbea3,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0xcbea3,_0x174e8d(0x184),_0x174e8d(0x1bc)));}else{if(_0x57c93f<_0x509ebe){let _0x37007b=_0x57c93f,_0x3925d5=_0x130af4;for(;_0x37007b<_0x509ebe;){const _0x24db0f=_0x3925d5[_0x174e8d(0x1be)][_0x174e8d(0x1c1)](_0x35d560=>_0x268071(_0x35d560));if(0x0===_0x24db0f[_0x174e8d(0x181)])break;_0x37007b++,_0x3925d5=_0x24db0f[_0x24db0f[_0x174e8d(0x181)]-0x1];}_0x3925d5&&(_0x3b961f=_0x3925d5,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0x3925d5,_0x174e8d(0x184),_0x174e8d(0x1bc)));}}let _0x151652=_0x3b961f;for(;_0x151652;){for(;_0x151652[_0x174e8d(0x1bf)];)_0x151652=_0x151652[_0x174e8d(0x1bf)],_0x268071(_0x151652)&&_0x1f0f32(_0x151652,_0x174e8d(0x184),_0x174e8d(0x1bc));_0x151652=_0x151652[_0x174e8d(0x1b8)];}}[_0x38db5d(0x1a5)](_0x3926c1){const _0x3abf73=_0x38db5d;return Boolean(_0x3abf73(0x19f)===_0x1f0838(_0x3926c1,_0x3abf73(0x1c5)));}[_0x38db5d(0x1ad)](_0x4d887e){const _0x157cab=_0x38db5d;return Boolean((_0x1f0838(_0x4d887e,_0x157cab(0x1c5))||'')[_0x157cab(0x181)]>0x0&&_0x157cab(0x19f)!==_0x1f0838(_0x4d887e,_0x157cab(0x1c5)));}[_0x38db5d(0x1ba)](_0x481696){const _0x1743c8=_0x38db5d;return!!_0x481696&&Boolean(_0x5cf372(_0x481696)&&_0x2e4f7f(_0x481696)[_0x1743c8(0x1bd)](/removed[\s*-]data-id="[^"]+"/));}[_0x38db5d(0x196)](_0x3d92bc){const _0x40a410=_0x38db5d;let _0x227a35=_0x3d92bc[_0x40a410(0x1b8)];for(;_0x227a35;){if(_0x1f0838(_0x227a35,_0x40a410(0x18a)))return!0x0;_0x227a35=_0x227a35[_0x40a410(0x1b8)];}return!0x1;}[_0x38db5d(0x1a1)](_0x1d3a33){const _0x32a896=_0x38db5d;return Boolean(_0x5cf372(_0x1d3a33)&&_0x2e4f7f(_0x1d3a33)[_0x32a896(0x1bd)](/\s*existing[\s*-](content|document)\s*/g));}}
|