@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +18 -11
- package/dist/index.css +19 -11
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.d.ts +1 -0
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x368f0e=_0x5b9d;(function(_0x2355a9,_0x50e326){const _0x334da3=_0x5b9d,_0xa58968=_0x2355a9();while(!![]){try{const _0x5c0c7c=-parseInt(_0x334da3(0x1aa))/0x1+parseInt(_0x334da3(0x184))/0x2+-parseInt(_0x334da3(0x175))/0x3*(-parseInt(_0x334da3(0x195))/0x4)+parseInt(_0x334da3(0x198))/0x5*(-parseInt(_0x334da3(0x180))/0x6)+parseInt(_0x334da3(0x1b7))/0x7+-parseInt(_0x334da3(0x17d))/0x8*(-parseInt(_0x334da3(0x18b))/0x9)+-parseInt(_0x334da3(0x16f))/0xa*(parseInt(_0x334da3(0x16c))/0xb);if(_0x5c0c7c===_0x50e326)break;else _0xa58968['push'](_0xa58968['shift']());}catch(_0x549295){_0xa58968['push'](_0xa58968['shift']());}}}(_0x48f2,0xde12c));function _0x48f2(){const _0x3853f6=['isEmptyViewVisible','bind','title','errorMessage','ck-rounded-corners','errorView','removeItem','div','updateItemTitle','execute','55ErSiYO','ck-reset_all','isVisible','5975650iJVuKA','emptyView','remove','set','ck-hidden','value','5368251oXUuKu','ck-ai-notification_error__dismiss-button','removeHistoryItem','_createListItemViews','_createErrorView','ck-ai-chat__start-conversation','render','_createSearchView','40unkkSz','sections','AI_CHAT_LABEL_NEW_CHAT','45606sYrkKi','searchView','add','_updateViewVisibility','2376528YIkppH','setTemplate','_createSkeletonView','ltr','updateLoadingState','children','isSearchViewVisible','2159811dWpMyz','sectionsView','updateHistoryItemsWithCategories','updateItemLoadingState','ck-ai-notification_error','queryView','indexOf','AI_CHAT_HISTORY_HEADING','bindTemplate','fire','4AOaVmU','AI_CHAT_HISTORY_EMPTY_MESSAGE','delegate','1140UBahnT','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','some','locale','items','_refreshSearch','ck-ai-chat-history__empty-message','ck-ai-notification','openChat','change:isLoading','change:hasItems','updateTitle','getItem','isMaximized','length','ck-ai-chat-history__empty','addMany','285980IQIZAN','aiHistory','search','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-header\x20ck-ai-header_history','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','element','extendTemplate','splice','resizeButton','ck-ai-chat-history','isLoading','12172083rNhHtP','itemsViews','clear','skeletonView','change:errorMessage','ck-ai-chat-history__content','hasItems','_createEmptyStateView'];_0x48f2=function(){return _0x3853f6;};return _0x48f2();}function _0x5b9d(_0x36d68e,_0xa46364){const _0x48f222=_0x48f2();return _0x5b9d=function(_0x5b9d3d,_0x416997){_0x5b9d3d=_0x5b9d3d-0x165;let _0x590a70=_0x48f222[_0x5b9d3d];return _0x590a70;},_0x5b9d(_0x36d68e,_0xa46364);}import{View as _0x2bfd7d,SearchTextView as _0x904025,FormHeaderView as _0x2f6ad8,ButtonView as _0x45eb27}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xd8b269,IconCancel as _0x5f2679,IconPlus as _0x4e0e1c}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4ebcaa}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x10f024}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x421ad9}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x56149c}from'../aichathistoryui.js';import{AISkeletonView as _0x15cc4e,SKELETON_DEFINITIONS as _0x5b182e}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4ba7aa}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4aa976}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2bfd7d{[_0x368f0e(0x181)];[_0x368f0e(0x167)];[_0x368f0e(0x1ba)];[_0x368f0e(0x170)];[_0x368f0e(0x18c)];[_0x368f0e(0x1b4)];constructor(_0x335b0d,_0x1ff11c){const _0x2f6d90=_0x368f0e;super(_0x335b0d),this[_0x2f6d90(0x172)](_0x2f6d90(0x1bd),!0x1),this[_0x2f6d90(0x172)](_0x2f6d90(0x1b6),!0x0),this[_0x2f6d90(0x172)](_0x2f6d90(0x165),''),this[_0x2f6d90(0x172)](_0x2f6d90(0x1a6),!0x1),this[_0x2f6d90(0x172)](_0x2f6d90(0x18a),!0x1),this[_0x2f6d90(0x172)](_0x2f6d90(0x1bf),!0x1);const _0x578baf=new _0x2f6ad8(_0x335b0d,{'label':_0x4aa976(_0x335b0d,_0x2f6d90(0x192)),'icon':_0xd8b269,'class':_0x2f6d90(0x1ae)});_0x1ff11c&&(this[_0x2f6d90(0x1b4)]=_0x4ba7aa(_0x335b0d,this),_0x578baf[_0x2f6d90(0x189)][_0x2f6d90(0x182)](this[_0x2f6d90(0x1b4)])),this[_0x2f6d90(0x18c)]=new _0x4ebcaa(_0x335b0d,[]),this[_0x2f6d90(0x18c)][_0x2f6d90(0x197)](..._0x56149c)['to'](this),this[_0x2f6d90(0x167)]=this[_0x2f6d90(0x179)](),this[_0x2f6d90(0x1ba)]=this[_0x2f6d90(0x186)](),this[_0x2f6d90(0x170)]=this[_0x2f6d90(0x1be)](),this[_0x2f6d90(0x181)]=this[_0x2f6d90(0x17c)](),this['on'](_0x2f6d90(0x1a2),()=>this[_0x2f6d90(0x183)]()),this['on'](_0x2f6d90(0x1a3),()=>this[_0x2f6d90(0x183)]()),this['on'](_0x2f6d90(0x1bb),()=>this[_0x2f6d90(0x183)]()),this[_0x2f6d90(0x185)]({'tag':_0x2f6d90(0x169),'attributes':{'class':['ck',_0x2f6d90(0x16d),_0x2f6d90(0x1b5),_0x2f6d90(0x166)],'dir':_0x2f6d90(0x187)},'children':[_0x578baf,{'tag':_0x2f6d90(0x169),'attributes':{'class':[_0x2f6d90(0x1bc)]},'children':[this[_0x2f6d90(0x1ba)],this[_0x2f6d90(0x167)],this[_0x2f6d90(0x170)],this[_0x2f6d90(0x181)]]}]});}[_0x368f0e(0x183)](){const _0x599ffe=_0x368f0e;this[_0x599ffe(0x18a)]=!this[_0x599ffe(0x1b6)]&&this[_0x599ffe(0x1bd)]&&!this[_0x599ffe(0x165)],this[_0x599ffe(0x1bf)]=!this[_0x599ffe(0x1b6)]&&!this[_0x599ffe(0x1bd)]&&!this[_0x599ffe(0x165)];}[_0x368f0e(0x17c)](){const _0x222c6c=_0x368f0e,_0x10337f=new _0x904025(this[_0x222c6c(0x19c)],{'filteredView':this[_0x222c6c(0x18c)],'queryView':{'label':_0x4aa976(this[_0x222c6c(0x19c)],_0x222c6c(0x1ad))},'infoView':{'text':{'notFound':{'primary':_0x47ac91=>_0x4aa976(this[_0x222c6c(0x19c)],_0x222c6c(0x1b0),_0x47ac91),'secondary':_0x4aa976(this[_0x222c6c(0x19c)],_0x222c6c(0x199))}}}});return _0x10337f['on'](_0x222c6c(0x17b),()=>{const _0x160f24=_0x222c6c;this[_0x160f24(0x181)][_0x160f24(0x189)][_0x160f24(0x182)](this[_0x160f24(0x167)],0x1);}),_0x10337f[_0x222c6c(0x1b2)]({'attributes':{'class':[this[_0x222c6c(0x193)]['if'](_0x222c6c(0x18a),_0x222c6c(0x173),_0x189478=>!_0x189478)]}}),_0x10337f;}[_0x368f0e(0x186)](){const _0x1b151e=_0x368f0e,_0x5ed610=new _0x15cc4e(this[_0x1b151e(0x19c)],_0x5b182e[_0x1b151e(0x1ab)]);return _0x5ed610[_0x1b151e(0x1b2)]({'attributes':{'class':[this[_0x1b151e(0x193)]['if'](_0x1b151e(0x1b6),_0x1b151e(0x173),_0x2c9da9=>!_0x2c9da9)]}}),_0x5ed610;}[_0x368f0e(0x179)](){const _0x1f0200=_0x368f0e,_0x333571=new _0x2bfd7d(this[_0x1f0200(0x19c)]),_0xe3a209=new _0x45eb27(this[_0x1f0200(0x19c)]);return _0xe3a209[_0x1f0200(0x172)]({'withText':!0x1,'icon':_0x5f2679,'class':_0x1f0200(0x176)}),_0xe3a209[_0x1f0200(0x1c0)](_0x1f0200(0x16e))['to'](this,_0x1f0200(0x1bd),_0x1fdaf1=>!!_0x1fdaf1),_0xe3a209['on'](_0x1f0200(0x16b),()=>{const _0x1bce9b=_0x1f0200;this[_0x1bce9b(0x165)]='';}),_0x333571[_0x1f0200(0x185)]({'tag':_0x1f0200(0x169),'attributes':{'class':['ck',_0x1f0200(0x1a0),_0x1f0200(0x18f),this[_0x1f0200(0x193)]['if'](_0x1f0200(0x165),_0x1f0200(0x173),_0x47eb63=>!_0x47eb63)]},'children':[{'tag':'p','children':[{'text':this[_0x1f0200(0x193)]['to'](_0x1f0200(0x165))}]},_0xe3a209]}),_0x333571;}[_0x368f0e(0x1be)](){const _0x2f5d63=_0x368f0e,_0x2378a0=new _0x45eb27(this[_0x2f5d63(0x19c)]);_0x2378a0[_0x2f5d63(0x172)]({'label':_0x4aa976(this[_0x2f5d63(0x19c)],_0x2f5d63(0x17f)),'withText':!0x0,'icon':_0x4e0e1c,'class':_0x2f5d63(0x17a)}),_0x2378a0['on'](_0x2f5d63(0x16b),()=>{const _0x267d7d=_0x2f5d63;this[_0x267d7d(0x194)](_0x267d7d(0x1a1));});const _0x2961c0=new _0x2bfd7d(this[_0x2f5d63(0x19c)]);return _0x2961c0[_0x2f5d63(0x185)]({'tag':_0x2f5d63(0x169),'attributes':{'class':[_0x2f5d63(0x1a8),this[_0x2f5d63(0x193)]['if'](_0x2f5d63(0x1bf),_0x2f5d63(0x173),_0x45c9e2=>!_0x45c9e2)]},'children':[{'tag':'p','attributes':{'class':[_0x2f5d63(0x19f)]},'children':[_0x4aa976(this[_0x2f5d63(0x19c)],_0x2f5d63(0x196))]},_0x2378a0]}),_0x2961c0;}[_0x368f0e(0x178)](_0x1a2e51,_0x200319){const _0x49f8e1=_0x368f0e,_0x444b05=[];for(const _0x13448f of _0x1a2e51){const _0x494564=new _0x421ad9(_0x200319,_0x13448f);_0x494564[_0x49f8e1(0x197)](..._0x56149c)['to'](this),_0x444b05[_0x49f8e1(0x19a)](_0x494564);}return _0x444b05;}[_0x368f0e(0x18d)](_0x41dcf4){const _0x42bfdb=_0x368f0e,_0x4ac03d=this[_0x42bfdb(0x19c)]||'en',_0x5be865=[];for(const _0x5b2f3f of _0x41dcf4){const _0x12ef12=this[_0x42bfdb(0x178)](_0x5b2f3f[_0x42bfdb(0x19d)],_0x4ac03d);_0x5be865[_0x42bfdb(0x19a)](new _0x10f024(_0x4ac03d,{'title':_0x5b2f3f[_0x42bfdb(0x1c1)],'items':_0x12ef12}));}this[_0x42bfdb(0x18c)][_0x42bfdb(0x17e)]=_0x5be865,this[_0x42bfdb(0x18c)][_0x42bfdb(0x19d)][_0x42bfdb(0x1b9)](),this[_0x42bfdb(0x18c)][_0x42bfdb(0x19d)][_0x42bfdb(0x1a9)](_0x5be865),this[_0x42bfdb(0x1bd)]=_0x41dcf4[_0x42bfdb(0x19b)](_0x13a7c=>_0x13a7c[_0x42bfdb(0x19d)][_0x42bfdb(0x1a7)]>0x0),this[_0x42bfdb(0x19e)]();}[_0x368f0e(0x177)](_0x8c35f){const _0x491e8d=_0x368f0e;for(const _0x495c69 of this[_0x491e8d(0x18c)][_0x491e8d(0x17e)]){const _0x45aef7=_0x495c69[_0x491e8d(0x1a5)](_0x8c35f);if(_0x45aef7){if(_0x495c69[_0x491e8d(0x168)](_0x45aef7),0x0===_0x495c69[_0x491e8d(0x1b8)][_0x491e8d(0x1a7)]){const _0x5ef9e1=this[_0x491e8d(0x18c)][_0x491e8d(0x17e)][_0x491e8d(0x191)](_0x495c69);-0x1!==_0x5ef9e1&&(this[_0x491e8d(0x18c)][_0x491e8d(0x17e)][_0x491e8d(0x1b3)](_0x5ef9e1,0x1),this[_0x491e8d(0x18c)][_0x491e8d(0x19d)][_0x491e8d(0x171)](_0x495c69));}this[_0x491e8d(0x1bd)]=this[_0x491e8d(0x18c)][_0x491e8d(0x17e)][_0x491e8d(0x1a7)]>0x0,this[_0x491e8d(0x19e)]();break;}}}[_0x368f0e(0x16a)](_0x545c79,_0xe94270){const _0x3d7614=_0x368f0e;for(const _0x12c60d of this[_0x3d7614(0x18c)][_0x3d7614(0x17e)]){const _0x322d03=_0x12c60d[_0x3d7614(0x1a5)](_0x545c79);if(_0x322d03){_0x322d03[_0x3d7614(0x1a4)](_0xe94270);break;}}}[_0x368f0e(0x18e)](_0x2c7754,_0x187c5e,_0x511ac4){const _0x5a5d5c=_0x368f0e;for(const _0x27ac54 of this[_0x5a5d5c(0x18c)][_0x5a5d5c(0x17e)]){const _0x4cee48=_0x27ac54[_0x5a5d5c(0x1a5)](_0x2c7754);if(_0x4cee48){_0x4cee48[_0x5a5d5c(0x188)](_0x187c5e,_0x511ac4);break;}}}[_0x368f0e(0x19e)](){const _0x59f9f5=_0x368f0e;if(this[_0x59f9f5(0x1bd)]){const _0x19ee74=this[_0x59f9f5(0x181)][_0x59f9f5(0x190)][_0x59f9f5(0x1af)]?.[_0x59f9f5(0x1b1)]?.[_0x59f9f5(0x174)]||'';this[_0x59f9f5(0x181)][_0x59f9f5(0x1ac)](_0x19ee74);}}}
|
|
23
|
+
const _0x35682a=_0x1e3e;function _0x1e3e(_0x58c697,_0x2f2b35){const _0x35bb69=_0x35bb();return _0x1e3e=function(_0x1e3eda,_0x1f6657){_0x1e3eda=_0x1e3eda-0x18f;let _0x393ef1=_0x35bb69[_0x1e3eda];return _0x393ef1;},_0x1e3e(_0x58c697,_0x2f2b35);}(function(_0x2d7e6b,_0x487256){const _0x450b9a=_0x1e3e,_0x29b960=_0x2d7e6b();while(!![]){try{const _0x195aa1=parseInt(_0x450b9a(0x1b1))/0x1+parseInt(_0x450b9a(0x1d6))/0x2*(parseInt(_0x450b9a(0x196))/0x3)+-parseInt(_0x450b9a(0x1ad))/0x4+-parseInt(_0x450b9a(0x1cb))/0x5*(parseInt(_0x450b9a(0x19c))/0x6)+parseInt(_0x450b9a(0x1a4))/0x7*(parseInt(_0x450b9a(0x1ac))/0x8)+parseInt(_0x450b9a(0x1d2))/0x9*(-parseInt(_0x450b9a(0x1ca))/0xa)+parseInt(_0x450b9a(0x1ba))/0xb;if(_0x195aa1===_0x487256)break;else _0x29b960['push'](_0x29b960['shift']());}catch(_0x456043){_0x29b960['push'](_0x29b960['shift']());}}}(_0x35bb,0xaefd8));import{View as _0x5d19a2,SearchTextView as _0x1a3940,FormHeaderView as _0x5a0b01,ButtonView as _0x195a13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x398e9d,IconCancel as _0x32e766,IconPlus as _0x29ab2b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1f86b4}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1b133f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x214e86}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2bcf33}from'../aichathistoryui.js';import{AISkeletonView as _0x28d6d2,SKELETON_DEFINITIONS as _0x3cb250}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2f4487}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x39be0d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5d19a2{[_0x35682a(0x1d0)];[_0x35682a(0x1e5)];[_0x35682a(0x199)];[_0x35682a(0x1a2)];[_0x35682a(0x1b5)];[_0x35682a(0x1a6)];constructor(_0x3ddd05,_0x5d2910){const _0x4c73a8=_0x35682a;super(_0x3ddd05),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1a5),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1aa),!0x0),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1b9),''),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x194),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1d4),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1e2),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1bc),!0x1);const _0x1a8a4d=new _0x5a0b01(_0x3ddd05,{'label':_0x39be0d(_0x3ddd05,_0x4c73a8(0x1d5)),'icon':_0x398e9d,'class':_0x4c73a8(0x192)});_0x5d2910&&(this[_0x4c73a8(0x1a6)]=_0x2f4487(_0x3ddd05,this),_0x1a8a4d[_0x4c73a8(0x1c8)][_0x4c73a8(0x1e3)](this[_0x4c73a8(0x1a6)])),this[_0x4c73a8(0x1b5)]=new _0x1f86b4(_0x3ddd05,[]),this[_0x4c73a8(0x1b5)][_0x4c73a8(0x1ec)](..._0x2bcf33)['to'](this),this[_0x4c73a8(0x1e5)]=this[_0x4c73a8(0x1c3)](),this[_0x4c73a8(0x199)]=this[_0x4c73a8(0x1b4)](),this[_0x4c73a8(0x1a2)]=this[_0x4c73a8(0x1e8)](),this[_0x4c73a8(0x1d0)]=this[_0x4c73a8(0x1c9)](),this[_0x4c73a8(0x1e5)][_0x4c73a8(0x1a7)]({'attributes':{'class':[this[_0x4c73a8(0x1bf)]['if'](_0x4c73a8(0x1bc),_0x4c73a8(0x190),_0x564fc9=>!_0x564fc9)]}}),this['on'](_0x4c73a8(0x1cc),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1a1),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1d9),()=>this[_0x4c73a8(0x1b3)]()),this[_0x4c73a8(0x1cf)]({'tag':_0x4c73a8(0x193),'attributes':{'class':['ck',_0x4c73a8(0x1c7),_0x4c73a8(0x1df),_0x4c73a8(0x1db)],'dir':_0x4c73a8(0x19e)},'children':[_0x1a8a4d,{'tag':_0x4c73a8(0x193),'attributes':{'class':[_0x4c73a8(0x191)]},'children':[this[_0x4c73a8(0x199)],this[_0x4c73a8(0x1e5)],this[_0x4c73a8(0x1a2)],this[_0x4c73a8(0x1d0)]]}]});}[_0x35682a(0x1b3)](){const _0xe147e0=_0x35682a;this[_0xe147e0(0x1d4)]=!this[_0xe147e0(0x1aa)]&&this[_0xe147e0(0x1a5)],this[_0xe147e0(0x1e2)]=!this[_0xe147e0(0x1aa)]&&!this[_0xe147e0(0x1a5)]&&!this[_0xe147e0(0x1b9)],this[_0xe147e0(0x1bc)]=!this[_0xe147e0(0x1d4)]&&!!this[_0xe147e0(0x1b9)];}[_0x35682a(0x1c9)](){const _0xd3fdac=_0x35682a,_0x3cc1be=new _0x1a3940(this[_0xd3fdac(0x1a8)],{'filteredView':this[_0xd3fdac(0x1b5)],'queryView':{'label':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x183057=>_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x19a),_0x183057),'secondary':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1af))}}}}),_0x2b0a8a=this[_0xd3fdac(0x1c3)]();return _0x2b0a8a[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1b9),_0xd3fdac(0x190),_0x1cff60=>!_0x1cff60)]}}),_0x3cc1be['on'](_0xd3fdac(0x198),()=>{const _0x54a5e9=_0xd3fdac;_0x3cc1be[_0x54a5e9(0x1c8)][_0x54a5e9(0x1e3)](_0x2b0a8a,0x1);}),_0x3cc1be[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1d4),_0xd3fdac(0x190),_0x4da3fe=>!_0x4da3fe)]}}),_0x3cc1be;}[_0x35682a(0x1b4)](){const _0x2ccd96=_0x35682a,_0x1a0573=new _0x28d6d2(this[_0x2ccd96(0x1a8)],_0x3cb250[_0x2ccd96(0x197)]);return _0x1a0573[_0x2ccd96(0x1a7)]({'attributes':{'class':[this[_0x2ccd96(0x1bf)]['if'](_0x2ccd96(0x1aa),_0x2ccd96(0x190),_0x5206b4=>!_0x5206b4)]}}),_0x1a0573;}[_0x35682a(0x1c3)](){const _0x4a0d30=_0x35682a,_0x144218=new _0x5d19a2(this[_0x4a0d30(0x1a8)]),_0x48b1eb=new _0x195a13(this[_0x4a0d30(0x1a8)]);_0x48b1eb[_0x4a0d30(0x1d8)]({'withText':!0x1,'icon':_0x32e766,'class':_0x4a0d30(0x1e1)}),_0x48b1eb[_0x4a0d30(0x1c4)](_0x4a0d30(0x1e9))['to'](this,_0x4a0d30(0x1a5),_0x56697b=>!!_0x56697b),_0x48b1eb['on'](_0x4a0d30(0x19b),()=>{const _0x64358e=_0x4a0d30;this[_0x64358e(0x1b9)]='';});const _0x103eaf=this[_0x4a0d30(0x1bf)];return _0x144218[_0x4a0d30(0x1cf)]({'tag':_0x4a0d30(0x193),'attributes':{'class':['ck',_0x4a0d30(0x1c0),_0x4a0d30(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0x103eaf['to'](_0x4a0d30(0x1b9))}]},_0x48b1eb]}),_0x144218;}[_0x35682a(0x1e8)](){const _0x2a8555=_0x35682a,_0x27833b=new _0x195a13(this[_0x2a8555(0x1a8)]);_0x27833b[_0x2a8555(0x1d8)]({'label':_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1dc)),'withText':!0x0,'icon':_0x29ab2b,'class':_0x2a8555(0x195)}),_0x27833b['on'](_0x2a8555(0x19b),()=>{const _0x39dd69=_0x2a8555;this[_0x39dd69(0x1dd)](_0x39dd69(0x1b7));});const _0x3ae471=new _0x5d19a2(this[_0x2a8555(0x1a8)]);return _0x3ae471[_0x2a8555(0x1cf)]({'tag':_0x2a8555(0x193),'attributes':{'class':[_0x2a8555(0x1e7),this[_0x2a8555(0x1bf)]['if'](_0x2a8555(0x1e2),_0x2a8555(0x190),_0x4d7d90=>!_0x4d7d90)]},'children':[{'tag':'p','attributes':{'class':[_0x2a8555(0x1b2)]},'children':[_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1b0))]},_0x27833b]}),_0x3ae471;}[_0x35682a(0x1eb)](_0x4bf7f7,_0x4630da){const _0x4fa871=_0x35682a,_0x508b75=[];for(const _0x459425 of _0x4bf7f7){const _0x5054cb=new _0x214e86(_0x4630da,_0x459425);_0x5054cb[_0x4fa871(0x1ec)](..._0x2bcf33)['to'](this),_0x508b75[_0x4fa871(0x1a0)](_0x5054cb);}return _0x508b75;}[_0x35682a(0x1ea)](_0x344d7e){const _0x4d916d=_0x35682a,_0x5e065a=this[_0x4d916d(0x1a8)]||'en',_0x24066b=[];for(const _0x15c2cf of _0x344d7e){const _0x2f0135=this[_0x4d916d(0x1eb)](_0x15c2cf[_0x4d916d(0x1e6)],_0x5e065a);_0x24066b[_0x4d916d(0x1a0)](new _0x1b133f(_0x5e065a,{'title':_0x15c2cf[_0x4d916d(0x1da)],'items':_0x2f0135}));}this[_0x4d916d(0x1b5)][_0x4d916d(0x1a9)]=_0x24066b,this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x1bd)](),this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x19f)](_0x24066b),this[_0x4d916d(0x1a5)]=_0x344d7e[_0x4d916d(0x1c2)](_0x420759=>_0x420759[_0x4d916d(0x1e6)][_0x4d916d(0x19d)]>0x0),this[_0x4d916d(0x1d7)]();}[_0x35682a(0x1ce)](_0x576057){const _0x22f185=_0x35682a;for(const _0x532446 of this[_0x22f185(0x1b5)][_0x22f185(0x1a9)]){const _0x2fdc83=_0x532446[_0x22f185(0x1cd)](_0x576057);if(_0x2fdc83){if(_0x532446[_0x22f185(0x1ae)](_0x2fdc83),0x0===_0x532446[_0x22f185(0x1a3)][_0x22f185(0x19d)]){const _0x1262c8=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x18f)](_0x532446);-0x1!==_0x1262c8&&(this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x1bb)](_0x1262c8,0x1),this[_0x22f185(0x1b5)][_0x22f185(0x1e6)][_0x22f185(0x1c1)](_0x532446));}this[_0x22f185(0x1a5)]=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x19d)]>0x0,this[_0x22f185(0x1d7)]();break;}}}[_0x35682a(0x1d1)](_0xddce7b,_0x3082db){const _0x597696=_0x35682a;for(const _0x4781c7 of this[_0x597696(0x1b5)][_0x597696(0x1a9)]){const _0x2438f5=_0x4781c7[_0x597696(0x1cd)](_0xddce7b);if(_0x2438f5){_0x2438f5[_0x597696(0x1ab)](_0x3082db);break;}}}[_0x35682a(0x1d3)](_0x149fa7,_0x4d1a7a,_0x48cd39){const _0x5d4605=_0x35682a;for(const _0x46f8ed of this[_0x5d4605(0x1b5)][_0x5d4605(0x1a9)]){const _0x915d86=_0x46f8ed[_0x5d4605(0x1cd)](_0x149fa7);if(_0x915d86){_0x915d86[_0x5d4605(0x1e4)](_0x4d1a7a,_0x48cd39);break;}}}[_0x35682a(0x1d7)](){const _0x519ee2=_0x35682a;if(this[_0x519ee2(0x1a5)]){const _0x4367ee=this[_0x519ee2(0x1d0)][_0x519ee2(0x1c6)][_0x519ee2(0x1b6)]?.[_0x519ee2(0x1de)]?.[_0x519ee2(0x1e0)]||'';this[_0x519ee2(0x1d0)][_0x519ee2(0x1be)](_0x4367ee);}}}function _0x35bb(){const _0x1e082c=['AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_EMPTY_MESSAGE','328009nqnxTo','ck-ai-chat-history__empty-message','_updateViewVisibility','_createSkeletonView','sectionsView','fieldView','openChat','ck-ai-notification_error','errorMessage','1653322UqwBsQ','splice','isMainErrorViewVisible','clear','search','bindTemplate','ck-ai-notification','remove','some','_createErrorView','bind','AI_CHAT_HISTORY_SEARCH_LABEL','queryView','ck-reset_all','children','_createSearchView','10NPSznt','5wMPIQo','change:isLoading','getItem','removeHistoryItem','setTemplate','searchView','updateItemTitle','2131965yYNJlx','updateItemLoadingState','isSearchViewVisible','AI_CHAT_HISTORY_HEADING','16970kOjkGm','_refreshSearch','set','change:errorMessage','title','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','fire','element','ck-ai-chat-history','value','ck-ai-notification_error__dismiss-button','isEmptyViewVisible','add','updateLoadingState','mainErrorView','items','ck-ai-chat-history__empty','_createEmptyStateView','isVisible','updateHistoryItemsWithCategories','_createListItemViews','delegate','indexOf','ck-hidden','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','div','isMaximized','ck-ai-chat__start-conversation','402biRUyx','aiHistory','render','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','execute','4645002SQeXgJ','length','ltr','addMany','push','change:hasItems','emptyView','itemsViews','24227JWXUkn','hasItems','resizeButton','extendTemplate','locale','sections','isLoading','updateTitle','2696uBAoBL','4215384MHVYoT','removeItem'];_0x35bb=function(){return _0x1e082c;};return _0x35bb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3749(){const _0x4b342c=['AIConnector','name','fix-grammar','395aUVwZu','toString','12013560eljrvv','config','PUT','/actions/system/','init','status','CloudServices','ai-request-aborted','make-tone-casual','100','/messages/','/documents/','updateConversation','upsertAIReviewRating','DELETE','/reviews/custom/calls','code','callSystemReview','/conversations/','feed','length','ai.serviceUrl','/documents','GET','define','improve-writing','search','ai-request-failed','PATCH','reset','MAKE_TONE_CASUAL','6EzSjpG','499580emDIEy','/actions/custom/calls/','get','then','4678956duDgyF','json','continue','POST','uploadFile','https://ai.cke-cs.com/v1','/files','plugins','IMPROVE_WRITING','upsertCustomAIReviewRating','_getStreamReader','deleteWebResource','read','parse','isOfficialPlugin','upsertAIChatRating','true','uploadDocument','value','items','/models/1','limit','requires','/web-resources/','FIX_GRAMMAR','excludeEmpty','/conversations?','startConversation','pluginName','attributes','/messages','/web-resources','_sendApiRequest','context','MAKE_LONGER','ai-missing-token','deleteFile','/reviews/system/','AbortError','fetchDocument','make-tone-formal','getModels','fetchConversationMessages','Content-Type','executeCustomAction','append','executeAction','stringify','7Nrunoh','queryAssistant','catch','upsertCustomAIActionRating','Bearer\x20','fetchConversation','/actions/custom/calls','TRANSLATE','keys','application/json','signal','/conversations','releaseLock','1457582fjZnrd','statusText','MAKE_SHORTER','abortController','translate','_apiUrl','/ratings','_decoder','file','modificationId','getReader','/files/','make-longer','fetchConversations','decode','CONTINUE','request','/calls/','totalCount','message','_token','MAKE_TONE_FORMAL','positiveCount','callCustomReview','deleteConversation','text','_handleError','data','uploadUrl','deleteDocument','isPremiumPlugin','5997380ApfXdJ','make-shorter','push','token','9603688ELwMjF','/calls','upsertAIActionRating','group','/reviews/custom/calls/','traceId','body'];_0x3749=function(){return _0x4b342c;};return _0x3749();}const _0x25b8a5=_0x434e;(function(_0x1711fc,_0x41c009){const _0xc3eaca=_0x434e,_0x2974f0=_0x1711fc();while(!![]){try{const _0x466f2f=parseInt(_0xc3eaca(0x230))/0x1+-parseInt(_0xc3eaca(0x203))/0x2*(parseInt(_0xc3eaca(0x251))/0x3)+parseInt(_0xc3eaca(0x222))/0x4+-parseInt(_0xc3eaca(0x252))/0x5+parseInt(_0xc3eaca(0x1c6))/0x6+parseInt(_0xc3eaca(0x1f6))/0x7*(-parseInt(_0xc3eaca(0x226))/0x8)+parseInt(_0xc3eaca(0x232))/0x9;if(_0x466f2f===_0x41c009)break;else _0x2974f0['push'](_0x2974f0['shift']());}catch(_0x3aed44){_0x2974f0['push'](_0x2974f0['shift']());}}}(_0x3749,0xd117f));import{createParser as _0x470ed6}from'eventsource-parser';import{ContextPlugin as _0x31bb9e}from'ckeditor5/src/core.js';function _0x434e(_0x50e016,_0x4a125f){const _0x37494f=_0x3749();return _0x434e=function(_0x434e9b,_0x4726ec){_0x434e9b=_0x434e9b-0x1c3;let _0x6814a9=_0x37494f[_0x434e9b];return _0x6814a9;},_0x434e(_0x50e016,_0x4a125f);}import{CKEditorError as _0x2a576c}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1f752e){const _0x2d4a45=_0x434e;_0x1f752e[_0x2d4a45(0x212)]=_0x2d4a45(0x1c8),_0x1f752e[_0x2d4a45(0x1de)]=_0x2d4a45(0x22f),_0x1f752e[_0x2d4a45(0x1ce)]=_0x2d4a45(0x24b),_0x1f752e[_0x2d4a45(0x1e8)]=_0x2d4a45(0x20f),_0x1f752e[_0x2d4a45(0x205)]=_0x2d4a45(0x223),_0x1f752e[_0x2d4a45(0x250)]=_0x2d4a45(0x23a),_0x1f752e[_0x2d4a45(0x218)]=_0x2d4a45(0x1ee),_0x1f752e[_0x2d4a45(0x1fd)]=_0x2d4a45(0x207);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x31bb9e{[_0x25b8a5(0x208)];[_0x25b8a5(0x217)];[_0x25b8a5(0x20a)];static get[_0x25b8a5(0x1dc)](){const _0x50552c=_0x25b8a5;return[_0x50552c(0x238)];}static get[_0x25b8a5(0x1e2)](){const _0x3b02fe=_0x25b8a5;return _0x3b02fe(0x22d);}static get[_0x25b8a5(0x1d4)](){return!0x0;}static get[_0x25b8a5(0x221)](){return!0x0;}constructor(_0x2f674b){const _0x4bfa8d=_0x25b8a5;super(_0x2f674b),this[_0x4bfa8d(0x1e7)][_0x4bfa8d(0x233)][_0x4bfa8d(0x24a)](_0x4bfa8d(0x247),_0x4bfa8d(0x1cb)),this[_0x4bfa8d(0x208)]=this[_0x4bfa8d(0x1e7)][_0x4bfa8d(0x233)][_0x4bfa8d(0x1c4)](_0x4bfa8d(0x247)),this[_0x4bfa8d(0x217)]=null,this[_0x4bfa8d(0x20a)]=new TextDecoder();}[_0x25b8a5(0x236)](){const _0x5fd496=_0x25b8a5,_0x4f9705=this[_0x5fd496(0x1e7)][_0x5fd496(0x1cd)][_0x5fd496(0x1c4)](_0x5fd496(0x238));if(!_0x4f9705[_0x5fd496(0x225)])throw new _0x2a576c(_0x5fd496(0x1e9),this);this[_0x5fd496(0x217)]=_0x4f9705[_0x5fd496(0x225)];}[_0x25b8a5(0x1e1)](_0x3037b5,_0x2ffc0b){const _0x12d202=_0x25b8a5,_0x4b53c6=this[_0x12d202(0x1e6)](_0x12d202(0x201),_0x12d202(0x1c9),{'id':_0x3037b5,'group':_0x2ffc0b});return{'getConversation':async()=>(await _0x4b53c6[_0x12d202(0x213)])[_0x12d202(0x1c7)](),'abortController':_0x4b53c6[_0x12d202(0x206)]};}[_0x25b8a5(0x1f7)]({message:_0x238726,conversationId:_0x57c4c4,parts:_0x4b8131,capabilities:_0xc41d72,model:_0x1400f8,quickActionData:_0x2fa062}){const _0x3609eb=_0x25b8a5,_0x58734d={..._0x2fa062&&{'quickActionData':_0x2fa062}},_0x61afca={'prompt':_0x238726,'content':_0x4b8131,'model':_0x1400f8,..._0xc41d72&&{'capabilities':_0xc41d72},...Object[_0x3609eb(0x1fe)](_0x58734d)[_0x3609eb(0x246)]>0x0&&{'attributes':_0x58734d}},_0x221291=this[_0x3609eb(0x1e6)](_0x3609eb(0x244)+_0x57c4c4+_0x3609eb(0x1e4),_0x3609eb(0x1c9),_0x61afca);return{'getStream':async()=>{const _0x1b7976=_0x3609eb,_0x4692de=(await _0x221291[_0x1b7976(0x213)])[_0x1b7976(0x22c)];return this[_0x1b7976(0x1d0)](_0x4692de);},'abortController':_0x221291[_0x3609eb(0x206)]};}[_0x25b8a5(0x1f2)]({content:_0x47ad34,message:_0x13f310,model:_0x16f198,outputFormat:_0x167076}){const _0x4a0413=_0x25b8a5,_0x2cd9ca={'content':[{'type':_0x4a0413(0x21c),'content':_0x47ad34}],'prompt':_0x13f310,'model':_0x16f198,'outputFormat':_0x167076},_0x1a4a88=this[_0x4a0413(0x1e6)](_0x4a0413(0x1fc),_0x4a0413(0x1c9),_0x2cd9ca);return{'getStream':async()=>{const _0x11cb14=_0x4a0413,_0x162edd=(await _0x1a4a88[_0x11cb14(0x213)])[_0x11cb14(0x22c)];return this[_0x11cb14(0x1d0)](_0x162edd);},'abortController':_0x1a4a88[_0x4a0413(0x206)]};}[_0x25b8a5(0x1f4)]({actionName:_0x39dfec,content:_0x2646f5,args:_0x5d393c}){const _0x55201e=_0x25b8a5,_0x13e5fc={'content':[{'type':_0x55201e(0x21c),'content':_0x2646f5}],'args':_0x5d393c},_0x53b6c7=this[_0x55201e(0x1e6)](_0x55201e(0x235)+_0x39dfec+_0x55201e(0x227),_0x55201e(0x1c9),_0x13e5fc);return{'getStream':async()=>{const _0x1d9dfe=_0x55201e,_0x53dc29=(await _0x53b6c7[_0x1d9dfe(0x213)])[_0x1d9dfe(0x22c)];return this[_0x1d9dfe(0x1d0)](_0x53dc29);},'abortController':_0x53b6c7[_0x55201e(0x206)]};}[_0x25b8a5(0x1ca)](_0x20dd8e,_0xdb9839,_0x20dd53){const _0x3fbced=_0x25b8a5,_0x486366=new FormData();_0x486366[_0x3fbced(0x1f3)](_0x3fbced(0x20b),_0xdb9839,_0xdb9839[_0x3fbced(0x22e)]),_0x20dd53&&_0x486366[_0x3fbced(0x1f3)](_0x3fbced(0x1e3),JSON[_0x3fbced(0x1f5)](_0x20dd53));const _0x41f90a=this[_0x3fbced(0x1e6)](_0x3fbced(0x244)+_0x20dd8e+_0x3fbced(0x1cc),_0x3fbced(0x1c9),_0x486366);return{'getId':async()=>(await _0x41f90a[_0x3fbced(0x213)])[_0x3fbced(0x1c7)](),'abortController':_0x41f90a[_0x3fbced(0x206)]};}[_0x25b8a5(0x1ed)](_0x3dac28,_0x2da20a){const _0x5f21ab=_0x25b8a5,_0x5d2796=this[_0x5f21ab(0x1e6)](_0x5f21ab(0x244)+_0x3dac28+_0x5f21ab(0x23d)+_0x2da20a,_0x5f21ab(0x249));return{'getDocument':async()=>(await _0x5d2796[_0x5f21ab(0x213)])[_0x5f21ab(0x1c7)](),'abortController':_0x5d2796[_0x5f21ab(0x206)]};}[_0x25b8a5(0x1d7)](_0x5406f6,_0x348083,_0x4076f6){const _0x656199=_0x25b8a5,_0x543a87={'content':_0x348083};_0x4076f6&&(_0x543a87[_0x656199(0x1e3)]=_0x4076f6);const _0x327127=this[_0x656199(0x1e6)](_0x656199(0x244)+_0x5406f6+_0x656199(0x248),_0x656199(0x1c9),_0x543a87);return{'getId':async()=>(await _0x327127[_0x656199(0x213)])[_0x656199(0x1c7)](),'abortController':_0x327127[_0x656199(0x206)]};}[_0x25b8a5(0x210)](_0x325729,_0x1d1ce8){const _0x2d8bb2=_0x25b8a5,_0xd2b64=new URLSearchParams();_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x1df),_0x2d8bb2(0x1d6)),_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x1db),_0x2d8bb2(0x23b)),_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x229),_0x325729),_0x1d1ce8&&_0xd2b64[_0x2d8bb2(0x1f3)](_0x2d8bb2(0x24c),_0x1d1ce8);const _0x2e0400=this[_0x2d8bb2(0x1e6)](_0x2d8bb2(0x1e0)+_0xd2b64[_0x2d8bb2(0x231)](),_0x2d8bb2(0x249));return{'getConversations':async()=>{const _0x594b0c=_0x2d8bb2,_0x5356fa=await _0x2e0400[_0x594b0c(0x213)];return(await _0x5356fa[_0x594b0c(0x1c7)]())[_0x594b0c(0x1d9)];},'abortController':_0x2e0400[_0x2d8bb2(0x206)]};}[_0x25b8a5(0x21b)](_0x2f99be){const _0x489199=_0x25b8a5,_0x57b3d9=this[_0x489199(0x1e6)](_0x489199(0x244)+_0x2f99be,_0x489199(0x240));return{'execute':async()=>{const _0xd01d71=_0x489199;await _0x57b3d9[_0xd01d71(0x213)];},'abortController':_0x57b3d9[_0x489199(0x206)]};}[_0x25b8a5(0x23e)](_0x5ae218,_0x205b2c){const _0x3a7beb=_0x25b8a5,_0x3832da=this[_0x3a7beb(0x1e6)](_0x3a7beb(0x244)+_0x5ae218,_0x3a7beb(0x24e),_0x205b2c);return{'getResult':async()=>(await _0x3832da[_0x3a7beb(0x213)],_0x205b2c),'abortController':_0x3832da[_0x3a7beb(0x206)]};}[_0x25b8a5(0x1fb)](_0x49aecf){const _0x5b5e9c=_0x25b8a5,_0x5c3744=this[_0x5b5e9c(0x1e6)](_0x5b5e9c(0x244)+_0x49aecf,_0x5b5e9c(0x249));return{'getConversation':async()=>(await _0x5c3744[_0x5b5e9c(0x213)])[_0x5b5e9c(0x1c7)](),'abortController':_0x5c3744[_0x5b5e9c(0x206)]};}[_0x25b8a5(0x1f0)](_0x45cad1){const _0x13a7d3=_0x25b8a5,_0x5b399a=this[_0x13a7d3(0x1e6)](_0x13a7d3(0x244)+_0x45cad1+_0x13a7d3(0x1e4),_0x13a7d3(0x249));return{'getMessages':async()=>{const _0x1dd12d=_0x13a7d3,_0x5d22c5=await _0x5b399a[_0x1dd12d(0x213)];return(await _0x5d22c5[_0x1dd12d(0x1c7)]())[_0x1dd12d(0x1d9)];},'abortController':_0x5b399a[_0x13a7d3(0x206)]};}[_0x25b8a5(0x21f)](_0x448823,_0x41df89,_0x5b3db9){const _0x2979f9=_0x25b8a5,_0xcfa8be=this[_0x2979f9(0x1e6)](_0x2979f9(0x244)+_0x448823+_0x2979f9(0x1e5),_0x2979f9(0x1c9),{'url':_0x41df89,'attributes':_0x5b3db9});return{'getId':async()=>(await _0xcfa8be[_0x2979f9(0x213)])[_0x2979f9(0x1c7)](),'abortController':_0xcfa8be[_0x2979f9(0x206)]};}[_0x25b8a5(0x1ef)](){const _0x1d5547=_0x25b8a5,_0x418609=this[_0x1d5547(0x1e6)](_0x1d5547(0x1da),_0x1d5547(0x249));return{'list':async()=>await(await _0x418609[_0x1d5547(0x213)])[_0x1d5547(0x1c7)](),'abortController':_0x418609[_0x1d5547(0x206)]};}[_0x25b8a5(0x1ea)](_0xec7b76,_0x4c9cbd){const _0x127cea=_0x25b8a5,_0x280f6d=this[_0x127cea(0x1e6)](_0x127cea(0x244)+_0xec7b76+_0x127cea(0x20e)+_0x4c9cbd,_0x127cea(0x240));return{'execute':async()=>{const _0xbc52f0=_0x127cea;await _0x280f6d[_0xbc52f0(0x213)];},'abortController':_0x280f6d[_0x127cea(0x206)]};}[_0x25b8a5(0x220)](_0x51a941,_0x3b6567){const _0xf50829=_0x25b8a5,_0x239f69=this[_0xf50829(0x1e6)](_0xf50829(0x244)+_0x51a941+_0xf50829(0x23d)+_0x3b6567,_0xf50829(0x240));return{'execute':async()=>{const _0x1eed0f=_0xf50829;await _0x239f69[_0x1eed0f(0x213)];},'abortController':_0x239f69[_0xf50829(0x206)]};}[_0x25b8a5(0x1d1)](_0x580a0c,_0x491ff3){const _0x5aed8f=_0x25b8a5,_0x113938=this[_0x5aed8f(0x1e6)](_0x5aed8f(0x244)+_0x580a0c+_0x5aed8f(0x1dd)+_0x491ff3,_0x5aed8f(0x240));return{'execute':async()=>{const _0x1f2bb8=_0x5aed8f;await _0x113938[_0x1f2bb8(0x213)];},'abortController':_0x113938[_0x5aed8f(0x206)]};}[_0x25b8a5(0x243)]({reviewName:_0x5bafad,content:_0xea16ce,args:_0x307524}){const _0x5e0465=_0x25b8a5,_0x56e9b0=this[_0x5e0465(0x1e6)](_0x5e0465(0x1eb)+_0x5bafad+_0x5e0465(0x227),_0x5e0465(0x1c9),{'content':[{'type':_0x5e0465(0x21c),'content':_0xea16ce}],'args':_0x307524});return{'getStream':async()=>{const _0x2790c6=_0x5e0465,_0x14f774=(await _0x56e9b0[_0x2790c6(0x213)])[_0x2790c6(0x22c)];return this[_0x2790c6(0x1d0)](_0x14f774);},'abortController':_0x56e9b0[_0x5e0465(0x206)]};}[_0x25b8a5(0x21a)]({content:_0xcd4c64,prompt:_0x29fbf5,model:_0x8fdec7}){const _0x4783c3=_0x25b8a5,_0x115100=this[_0x4783c3(0x1e6)](_0x4783c3(0x241),_0x4783c3(0x1c9),{'content':[{'type':_0x4783c3(0x21c),'content':_0xcd4c64}],'prompt':_0x29fbf5,'model':_0x8fdec7});return{'getStream':async()=>{const _0x4003f1=_0x4783c3,_0x1e0dc7=(await _0x115100[_0x4003f1(0x213)])[_0x4003f1(0x22c)];return this[_0x4003f1(0x1d0)](_0x1e0dc7);},'abortController':_0x115100[_0x4783c3(0x206)]};}[_0x25b8a5(0x1d5)](_0x1e94ca,_0x15f5c4,_0x2fb648){const _0x14e5a9=_0x25b8a5,_0x597d97=this[_0x14e5a9(0x1e6)](_0x14e5a9(0x244)+_0x1e94ca+_0x14e5a9(0x23c)+_0x15f5c4+_0x14e5a9(0x209),_0x14e5a9(0x234),{'positiveCount':_0x2fb648[_0x14e5a9(0x219)],'totalCount':_0x2fb648[_0x14e5a9(0x215)],'modificationId':_0x2fb648[_0x14e5a9(0x20c)]});return{'execute':async()=>{const _0x70676d=_0x14e5a9;await _0x597d97[_0x70676d(0x213)];},'abortController':_0x597d97[_0x14e5a9(0x206)]};}[_0x25b8a5(0x228)](_0x35ef82,_0x1bb2b6,_0x494f0f){const _0x2efadd=_0x25b8a5,_0x2fe706=this[_0x2efadd(0x1e6)](_0x2efadd(0x235)+_0x35ef82+_0x2efadd(0x214)+_0x1bb2b6+_0x2efadd(0x209),_0x2efadd(0x234),{'positiveCount':_0x494f0f[_0x2efadd(0x219)],'totalCount':_0x494f0f[_0x2efadd(0x215)]});return{'execute':async()=>{const _0x4ee549=_0x2efadd;await _0x2fe706[_0x4ee549(0x213)];},'abortController':_0x2fe706[_0x2efadd(0x206)]};}[_0x25b8a5(0x1f9)](_0x1e3603,_0x13a7c7){const _0x4e70b4=_0x25b8a5,_0x42abc0=this[_0x4e70b4(0x1e6)](_0x4e70b4(0x1c3)+_0x1e3603+_0x4e70b4(0x209),_0x4e70b4(0x234),{'positiveCount':_0x13a7c7[_0x4e70b4(0x219)],'totalCount':_0x13a7c7[_0x4e70b4(0x215)]});return{'execute':async()=>{const _0x842fb2=_0x4e70b4;await _0x42abc0[_0x842fb2(0x213)];},'abortController':_0x42abc0[_0x4e70b4(0x206)]};}[_0x25b8a5(0x23f)](_0x49d7a7,_0x492d00,_0xdf5970,_0x4a14d4){const _0x2157a1=_0x25b8a5,_0x211c38=this[_0x2157a1(0x1e6)](_0x2157a1(0x1eb)+_0x49d7a7+_0x2157a1(0x214)+_0x492d00+_0x2157a1(0x209),_0x2157a1(0x234),{'positiveCount':_0xdf5970[_0x2157a1(0x219)],'totalCount':_0xdf5970[_0x2157a1(0x215)],'dataId':_0x4a14d4});return{'execute':async()=>{const _0x27e387=_0x2157a1;await _0x211c38[_0x27e387(0x213)];},'abortController':_0x211c38[_0x2157a1(0x206)]};}[_0x25b8a5(0x1cf)](_0x59591a,_0x5b35d3,_0x2676f1){const _0x2c9d17=_0x25b8a5,_0xd4a34e=this[_0x2c9d17(0x1e6)](_0x2c9d17(0x22a)+_0x59591a+_0x2c9d17(0x209),_0x2c9d17(0x234),{'positiveCount':_0x5b35d3[_0x2c9d17(0x219)],'totalCount':_0x5b35d3[_0x2c9d17(0x215)],'dataId':_0x2676f1});return{'execute':async()=>{const _0x18fca0=_0x2c9d17;await _0xd4a34e[_0x18fca0(0x213)];},'abortController':_0xd4a34e[_0x2c9d17(0x206)]};}[_0x25b8a5(0x1e6)](_0x5139c9,_0x4fc082,_0x48768a){const _0x5a60b5=_0x25b8a5,_0x3c137a=new AbortController(),_0x204b2d=_0x48768a instanceof FormData,_0x3ef3be={'Authorization':_0x5a60b5(0x1fa)+this[_0x5a60b5(0x217)]?.[_0x5a60b5(0x1d8)]};_0x48768a&&!_0x204b2d&&(_0x3ef3be[_0x5a60b5(0x1f1)]=_0x5a60b5(0x1ff));const _0xe2d262={'method':_0x4fc082,'headers':_0x3ef3be,'signal':_0x3c137a[_0x5a60b5(0x200)]};return _0x48768a&&(_0xe2d262[_0x5a60b5(0x22c)]=_0x204b2d?_0x48768a:JSON[_0x5a60b5(0x1f5)](_0x48768a)),{'request':fetch(''+this[_0x5a60b5(0x208)]+_0x5139c9,_0xe2d262)[_0x5a60b5(0x1f8)](_0x59ebc3=>{const _0x1452dc=_0x5a60b5;this[_0x1452dc(0x21d)](_0x59ebc3);})[_0x5a60b5(0x1c5)](_0x5df610=>_0x5df610['ok']?_0x5df610:_0x5df610[_0x5a60b5(0x1c7)]()[_0x5a60b5(0x1c5)](_0x230961=>{const _0x3f161f=_0x5a60b5;throw{'url':this[_0x3f161f(0x208)],'path':_0x5139c9,'method':_0x4fc082,'body':_0x48768a,'status':(_0x5df610||{})[_0x3f161f(0x237)],'statusText':(_0x5df610||{})[_0x3f161f(0x204)],'code':_0x230961[_0x3f161f(0x242)],'message':_0x230961[_0x3f161f(0x216)],'traceId':_0x230961[_0x3f161f(0x22b)]};})),'abortController':_0x3c137a};}async*[_0x25b8a5(0x1d0)](_0x4cb0aa){const _0x15291c=_0x25b8a5,_0x4be529=[],_0x4b9716=_0x4cb0aa[_0x15291c(0x20d)](),_0x490354=_0x470ed6({'onError':_0x1263a6=>{const _0x4af3db=_0x15291c;this[_0x4af3db(0x21d)](_0x1263a6);},'onEvent':_0x9231d9=>{const _0x455b02=_0x15291c;_0x9231d9[_0x455b02(0x21e)]=JSON[_0x455b02(0x1d3)](_0x9231d9[_0x455b02(0x21e)]),_0x4be529[_0x455b02(0x224)](_0x9231d9);}});try{let _0x220d9e=!0x1;for(;!_0x220d9e;){const {done:_0x2f9290,value:_0x23503a}=await _0x4b9716[_0x15291c(0x1d2)]();_0x2f9290&&(_0x220d9e=!0x0),_0x490354[_0x15291c(0x245)](this[_0x15291c(0x20a)][_0x15291c(0x211)](_0x23503a,{'stream':!0x0})),yield*_0x4be529,_0x4be529[_0x15291c(0x246)]=0x0;}}catch(_0x71464e){this[_0x15291c(0x21d)](_0x71464e);}finally{_0x4b9716[_0x15291c(0x202)](),_0x490354[_0x15291c(0x24f)]();}}[_0x25b8a5(0x21d)](_0x4a63fe){const _0x37bc94=_0x25b8a5;if(_0x4a63fe instanceof _0x2a576c)throw _0x4a63fe;if(_0x4a63fe instanceof Error&&_0x37bc94(0x1ec)===_0x4a63fe[_0x37bc94(0x22e)])throw new _0x2a576c(_0x37bc94(0x239),this,{'originalError':_0x4a63fe});throw new _0x2a576c(_0x37bc94(0x24d),this,{'originalError':_0x4a63fe});}}
|
|
23
|
+
const _0x1d51b9=_0x3d41;function _0x4a7e(){const _0x11d39e=['callCustomReview','pluginName','json','signal','/documents','https://ai.cke-cs.com/v1','ai-request-failed','application/json','fix-grammar','uploadDocument','MAKE_LONGER','isOfficialPlugin','reset','continue','/files','/calls/','PUT','upsertAIActionRating','toString','releaseLock','PATCH','/models/1','define','make-longer','stringify','ai-request-aborted','IMPROVE_WRITING','callSystemReview','executeAction','statusText','deleteDocument','init','traceId','queryAssistant','_decoder','MAKE_SHORTER','24ksjEZN','TRANSLATE','212iJtlsw','MAKE_TONE_FORMAL','true','requires','config','deleteFile','group','make-shorter','fetchConversationMessages','GET','get','make-tone-casual','length','executeCustomAction','push','excludeEmpty','_getStreamReader','30jnJOtI','positiveCount','MAKE_TONE_CASUAL','body','ai-missing-token','DELETE','/calls','file','then','Content-Type','AIConnector','translate','CONTINUE','search','deleteWebResource','deleteConversation','items','/conversations','token','limit','/conversations/','catch','improve-writing','100','fetchConversations','message','7739721TRohUT','5443208ymlSAp','/ratings','upsertAIReviewRating','getReader','fetchDocument','decode','updateConversation','upsertAIChatRating','_handleError','read','_token','/messages','/actions/system/','feed','totalCount','/web-resources','keys','/reviews/custom/calls/','attributes','FIX_GRAMMAR','/reviews/system/','58680VRvKVc','2818242KtVhHI','/reviews/custom/calls','context','/actions/custom/calls/','uploadFile','modificationId','/documents/','ai.serviceUrl','Bearer\x20','/messages/','2748pFxHCE','_apiUrl','data','code','/web-resources/','startConversation','name','fetchConversation','append','value','text','abortController','AbortError','getModels','isPremiumPlugin','/conversations?','679803Gcgrwl','upsertCustomAIActionRating','status','request','plugins','uploadUrl','make-tone-formal','40705WZHZxj','777wplGZT','POST','upsertCustomAIReviewRating','parse','CloudServices','/files/','/actions/custom/calls','_sendApiRequest'];_0x4a7e=function(){return _0x11d39e;};return _0x4a7e();}(function(_0x4d11ab,_0x6c9dc){const _0x4aba88=_0x3d41,_0xd3c7cb=_0x4d11ab();while(!![]){try{const _0x15708a=parseInt(_0x4aba88(0x198))/0x1*(-parseInt(_0x4aba88(0x133))/0x2)+-parseInt(_0x4aba88(0x191))/0x3+parseInt(_0x4aba88(0x135))/0x4*(-parseInt(_0x4aba88(0x176))/0x5)+parseInt(_0x4aba88(0x181))/0x6*(parseInt(_0x4aba88(0x199))/0x7)+-parseInt(_0x4aba88(0x161))/0x8+parseInt(_0x4aba88(0x177))/0x9+parseInt(_0x4aba88(0x146))/0xa*(parseInt(_0x4aba88(0x160))/0xb);if(_0x15708a===_0x6c9dc)break;else _0xd3c7cb['push'](_0xd3c7cb['shift']());}catch(_0x3f597c){_0xd3c7cb['push'](_0xd3c7cb['shift']());}}}(_0x4a7e,0x6fa7b));import{createParser as _0x34775d}from'eventsource-parser';import{ContextPlugin as _0x498ac0}from'ckeditor5/src/core.js';import{CKEditorError as _0xc91ee9}from'ckeditor5/src/utils.js';function _0x3d41(_0x2bb8f9,_0x4561d8){const _0x4a7e28=_0x4a7e();return _0x3d41=function(_0x3d41d7,_0x27c71e){_0x3d41d7=_0x3d41d7-0x132;let _0x32e1e7=_0x4a7e28[_0x3d41d7];return _0x32e1e7;},_0x3d41(_0x2bb8f9,_0x4561d8);}export var AIActionsNames;!function(_0x39f7ab){const _0x4514e9=_0x3d41;_0x39f7ab[_0x4514e9(0x152)]=_0x4514e9(0x1ae),_0x39f7ab[_0x4514e9(0x174)]=_0x4514e9(0x1a9),_0x39f7ab[_0x4514e9(0x1bb)]=_0x4514e9(0x15c),_0x39f7ab[_0x4514e9(0x1ab)]=_0x4514e9(0x1b8),_0x39f7ab[_0x4514e9(0x132)]=_0x4514e9(0x13c),_0x39f7ab[_0x4514e9(0x148)]=_0x4514e9(0x140),_0x39f7ab[_0x4514e9(0x136)]=_0x4514e9(0x197),_0x39f7ab[_0x4514e9(0x134)]=_0x4514e9(0x151);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x498ac0{[_0x1d51b9(0x182)];[_0x1d51b9(0x16b)];[_0x1d51b9(0x1c3)];static get[_0x1d51b9(0x138)](){const _0x44b864=_0x1d51b9;return[_0x44b864(0x19d)];}static get[_0x1d51b9(0x1a2)](){const _0x3d5e7e=_0x1d51b9;return _0x3d5e7e(0x150);}static get[_0x1d51b9(0x1ac)](){return!0x0;}static get[_0x1d51b9(0x18f)](){return!0x0;}constructor(_0x5ef50c){const _0x3fbb04=_0x1d51b9;super(_0x5ef50c),this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x1b7)](_0x3fbb04(0x17e),_0x3fbb04(0x1a6)),this[_0x3fbb04(0x182)]=this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x13f)](_0x3fbb04(0x17e)),this[_0x3fbb04(0x16b)]=null,this[_0x3fbb04(0x1c3)]=new TextDecoder();}[_0x1d51b9(0x1c0)](){const _0x82e936=_0x1d51b9,_0x159925=this[_0x82e936(0x179)][_0x82e936(0x195)][_0x82e936(0x13f)](_0x82e936(0x19d));if(!_0x159925[_0x82e936(0x158)])throw new _0xc91ee9(_0x82e936(0x14a),this);this[_0x82e936(0x16b)]=_0x159925[_0x82e936(0x158)];}[_0x1d51b9(0x186)](_0x508d01,_0xffce2c){const _0xf05e86=_0x1d51b9,_0x17b939=this[_0xf05e86(0x1a0)](_0xf05e86(0x157),_0xf05e86(0x19a),{'id':_0x508d01,'group':_0xffce2c});return{'getConversation':async()=>(await _0x17b939[_0xf05e86(0x194)])[_0xf05e86(0x1a3)](),'abortController':_0x17b939[_0xf05e86(0x18c)]};}[_0x1d51b9(0x1c2)]({message:_0x2d21c,conversationId:_0x44a677,parts:_0x1a9664,capabilities:_0x24c2e6,model:_0x186769,quickActionData:_0x3d6d3d}){const _0x38f20d=_0x1d51b9,_0x451277={..._0x3d6d3d&&{'quickActionData':_0x3d6d3d}},_0x3c0183={'prompt':_0x2d21c,'content':_0x1a9664,'model':_0x186769,..._0x24c2e6&&{'capabilities':_0x24c2e6},...Object[_0x38f20d(0x171)](_0x451277)[_0x38f20d(0x141)]>0x0&&{'attributes':_0x451277}},_0x147639=this[_0x38f20d(0x1a0)](_0x38f20d(0x15a)+_0x44a677+_0x38f20d(0x16c),_0x38f20d(0x19a),_0x3c0183);return{'getStream':async()=>{const _0x37e203=_0x38f20d,_0x5358b9=(await _0x147639[_0x37e203(0x194)])[_0x37e203(0x149)];return this[_0x37e203(0x145)](_0x5358b9);},'abortController':_0x147639[_0x38f20d(0x18c)]};}[_0x1d51b9(0x142)]({content:_0x12eaaf,message:_0x49338b,model:_0x317741,outputFormat:_0x56a5a5}){const _0x373f1c=_0x1d51b9,_0x3faed3={'content':[{'type':_0x373f1c(0x18b),'content':_0x12eaaf}],'prompt':_0x49338b,'model':_0x317741,'outputFormat':_0x56a5a5},_0x393ca6=this[_0x373f1c(0x1a0)](_0x373f1c(0x19f),_0x373f1c(0x19a),_0x3faed3);return{'getStream':async()=>{const _0x8a97e5=_0x373f1c,_0x353220=(await _0x393ca6[_0x8a97e5(0x194)])[_0x8a97e5(0x149)];return this[_0x8a97e5(0x145)](_0x353220);},'abortController':_0x393ca6[_0x373f1c(0x18c)]};}[_0x1d51b9(0x1bd)]({actionName:_0x5c3c82,content:_0x4eedc5,args:_0x8162ba}){const _0x108bab=_0x1d51b9,_0x3dc443={'content':[{'type':_0x108bab(0x18b),'content':_0x4eedc5}],'args':_0x8162ba},_0x3a50d4=this[_0x108bab(0x1a0)](_0x108bab(0x16d)+_0x5c3c82+_0x108bab(0x14c),_0x108bab(0x19a),_0x3dc443);return{'getStream':async()=>{const _0x41adf5=_0x108bab,_0x1ebe3b=(await _0x3a50d4[_0x41adf5(0x194)])[_0x41adf5(0x149)];return this[_0x41adf5(0x145)](_0x1ebe3b);},'abortController':_0x3a50d4[_0x108bab(0x18c)]};}[_0x1d51b9(0x17b)](_0x3ffaf8,_0x2bf640,_0x3bdd4f){const _0x2a2929=_0x1d51b9,_0xb7e0a2=new FormData();_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x14d),_0x2bf640,_0x2bf640[_0x2a2929(0x187)]),_0x3bdd4f&&_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x173),JSON[_0x2a2929(0x1b9)](_0x3bdd4f));const _0x12f7f1=this[_0x2a2929(0x1a0)](_0x2a2929(0x15a)+_0x3ffaf8+_0x2a2929(0x1af),_0x2a2929(0x19a),_0xb7e0a2);return{'getId':async()=>(await _0x12f7f1[_0x2a2929(0x194)])[_0x2a2929(0x1a3)](),'abortController':_0x12f7f1[_0x2a2929(0x18c)]};}[_0x1d51b9(0x165)](_0xe53136,_0x1b999a){const _0x3c2442=_0x1d51b9,_0x384ea0=this[_0x3c2442(0x1a0)](_0x3c2442(0x15a)+_0xe53136+_0x3c2442(0x17d)+_0x1b999a,_0x3c2442(0x13e));return{'getDocument':async()=>(await _0x384ea0[_0x3c2442(0x194)])[_0x3c2442(0x1a3)](),'abortController':_0x384ea0[_0x3c2442(0x18c)]};}[_0x1d51b9(0x1aa)](_0x277985,_0x53aebf,_0x19c987){const _0x4b719e=_0x1d51b9,_0x3a5324={'content':_0x53aebf};_0x19c987&&(_0x3a5324[_0x4b719e(0x173)]=_0x19c987);const _0x5125fa=this[_0x4b719e(0x1a0)](_0x4b719e(0x15a)+_0x277985+_0x4b719e(0x1a5),_0x4b719e(0x19a),_0x3a5324);return{'getId':async()=>(await _0x5125fa[_0x4b719e(0x194)])[_0x4b719e(0x1a3)](),'abortController':_0x5125fa[_0x4b719e(0x18c)]};}[_0x1d51b9(0x15e)](_0x216a38,_0x2b612f){const _0x1eb831=_0x1d51b9,_0x36c124=new URLSearchParams();_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x144),_0x1eb831(0x137)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x159),_0x1eb831(0x15d)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x13b),_0x216a38),_0x2b612f&&_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x153),_0x2b612f);const _0x455c2f=this[_0x1eb831(0x1a0)](_0x1eb831(0x190)+_0x36c124[_0x1eb831(0x1b3)](),_0x1eb831(0x13e));return{'getConversations':async()=>{const _0x5b10fb=_0x1eb831,_0x4374f7=await _0x455c2f[_0x5b10fb(0x194)];return(await _0x4374f7[_0x5b10fb(0x1a3)]())[_0x5b10fb(0x156)];},'abortController':_0x455c2f[_0x1eb831(0x18c)]};}[_0x1d51b9(0x155)](_0x264c14){const _0xbfbb90=_0x1d51b9,_0x1a91ef=this[_0xbfbb90(0x1a0)](_0xbfbb90(0x15a)+_0x264c14,_0xbfbb90(0x14b));return{'execute':async()=>{const _0x355d07=_0xbfbb90;await _0x1a91ef[_0x355d07(0x194)];},'abortController':_0x1a91ef[_0xbfbb90(0x18c)]};}[_0x1d51b9(0x167)](_0x41472f,_0x52e173){const _0x403867=_0x1d51b9,_0x5b684f=this[_0x403867(0x1a0)](_0x403867(0x15a)+_0x41472f,_0x403867(0x1b5),_0x52e173);return{'getResult':async()=>(await _0x5b684f[_0x403867(0x194)],_0x52e173),'abortController':_0x5b684f[_0x403867(0x18c)]};}[_0x1d51b9(0x188)](_0x2fd4a2){const _0x28cb08=_0x1d51b9,_0x46d627=this[_0x28cb08(0x1a0)](_0x28cb08(0x15a)+_0x2fd4a2,_0x28cb08(0x13e));return{'getConversation':async()=>(await _0x46d627[_0x28cb08(0x194)])[_0x28cb08(0x1a3)](),'abortController':_0x46d627[_0x28cb08(0x18c)]};}[_0x1d51b9(0x13d)](_0xa5b6a1){const _0x18e577=_0x1d51b9,_0x56ff16=this[_0x18e577(0x1a0)](_0x18e577(0x15a)+_0xa5b6a1+_0x18e577(0x16c),_0x18e577(0x13e));return{'getMessages':async()=>{const _0x338a7f=_0x18e577,_0x4f29b6=await _0x56ff16[_0x338a7f(0x194)];return(await _0x4f29b6[_0x338a7f(0x1a3)]())[_0x338a7f(0x156)];},'abortController':_0x56ff16[_0x18e577(0x18c)]};}[_0x1d51b9(0x196)](_0x1527fe,_0x58123b,_0x1cc05f){const _0x4601bb=_0x1d51b9,_0x28a886=this[_0x4601bb(0x1a0)](_0x4601bb(0x15a)+_0x1527fe+_0x4601bb(0x170),_0x4601bb(0x19a),{'url':_0x58123b,'attributes':_0x1cc05f});return{'getId':async()=>(await _0x28a886[_0x4601bb(0x194)])[_0x4601bb(0x1a3)](),'abortController':_0x28a886[_0x4601bb(0x18c)]};}[_0x1d51b9(0x18e)](){const _0x5e3939=_0x1d51b9,_0x5ae95e=this[_0x5e3939(0x1a0)](_0x5e3939(0x1b6),_0x5e3939(0x13e));return{'list':async()=>await(await _0x5ae95e[_0x5e3939(0x194)])[_0x5e3939(0x1a3)](),'abortController':_0x5ae95e[_0x5e3939(0x18c)]};}[_0x1d51b9(0x13a)](_0x1ac123,_0x2698a2){const _0x4c5350=_0x1d51b9,_0x158517=this[_0x4c5350(0x1a0)](_0x4c5350(0x15a)+_0x1ac123+_0x4c5350(0x19e)+_0x2698a2,_0x4c5350(0x14b));return{'execute':async()=>{const _0x1b7191=_0x4c5350;await _0x158517[_0x1b7191(0x194)];},'abortController':_0x158517[_0x4c5350(0x18c)]};}[_0x1d51b9(0x1bf)](_0x204cb2,_0x1a7b26){const _0x5ec68c=_0x1d51b9,_0x2e934a=this[_0x5ec68c(0x1a0)](_0x5ec68c(0x15a)+_0x204cb2+_0x5ec68c(0x17d)+_0x1a7b26,_0x5ec68c(0x14b));return{'execute':async()=>{const _0x3391e0=_0x5ec68c;await _0x2e934a[_0x3391e0(0x194)];},'abortController':_0x2e934a[_0x5ec68c(0x18c)]};}[_0x1d51b9(0x154)](_0x112343,_0x2a399f){const _0xe3cb7e=_0x1d51b9,_0x514194=this[_0xe3cb7e(0x1a0)](_0xe3cb7e(0x15a)+_0x112343+_0xe3cb7e(0x185)+_0x2a399f,_0xe3cb7e(0x14b));return{'execute':async()=>{const _0x458e38=_0xe3cb7e;await _0x514194[_0x458e38(0x194)];},'abortController':_0x514194[_0xe3cb7e(0x18c)]};}[_0x1d51b9(0x1bc)]({reviewName:_0x3826e4,content:_0x5bc974,args:_0x45b7e3}){const _0x4c5932=_0x1d51b9,_0x2fc13b=this[_0x4c5932(0x1a0)](_0x4c5932(0x175)+_0x3826e4+_0x4c5932(0x14c),_0x4c5932(0x19a),{'content':[{'type':_0x4c5932(0x18b),'content':_0x5bc974}],'args':_0x45b7e3});return{'getStream':async()=>{const _0x3dad5a=_0x4c5932,_0x3da2ea=(await _0x2fc13b[_0x3dad5a(0x194)])[_0x3dad5a(0x149)];return this[_0x3dad5a(0x145)](_0x3da2ea);},'abortController':_0x2fc13b[_0x4c5932(0x18c)]};}[_0x1d51b9(0x1a1)]({content:_0x108ace,prompt:_0x1afd70,model:_0x55cc18}){const _0x48c152=_0x1d51b9,_0x4a05ac=this[_0x48c152(0x1a0)](_0x48c152(0x178),_0x48c152(0x19a),{'content':[{'type':_0x48c152(0x18b),'content':_0x108ace}],'prompt':_0x1afd70,'model':_0x55cc18});return{'getStream':async()=>{const _0x458ee0=_0x48c152,_0x2912ab=(await _0x4a05ac[_0x458ee0(0x194)])[_0x458ee0(0x149)];return this[_0x458ee0(0x145)](_0x2912ab);},'abortController':_0x4a05ac[_0x48c152(0x18c)]};}[_0x1d51b9(0x168)](_0x10c0a3,_0x2656f1,_0x17d706){const _0x4fd35e=_0x1d51b9,_0x32827b=this[_0x4fd35e(0x1a0)](_0x4fd35e(0x15a)+_0x10c0a3+_0x4fd35e(0x180)+_0x2656f1+_0x4fd35e(0x162),_0x4fd35e(0x1b1),{'positiveCount':_0x17d706[_0x4fd35e(0x147)],'totalCount':_0x17d706[_0x4fd35e(0x16f)],'modificationId':_0x17d706[_0x4fd35e(0x17c)]});return{'execute':async()=>{const _0x49d8e2=_0x4fd35e;await _0x32827b[_0x49d8e2(0x194)];},'abortController':_0x32827b[_0x4fd35e(0x18c)]};}[_0x1d51b9(0x1b2)](_0x22c3d0,_0x1b15cf,_0x300930){const _0x42ce57=_0x1d51b9,_0x166f99=this[_0x42ce57(0x1a0)](_0x42ce57(0x16d)+_0x22c3d0+_0x42ce57(0x1b0)+_0x1b15cf+_0x42ce57(0x162),_0x42ce57(0x1b1),{'positiveCount':_0x300930[_0x42ce57(0x147)],'totalCount':_0x300930[_0x42ce57(0x16f)]});return{'execute':async()=>{const _0x4b4c67=_0x42ce57;await _0x166f99[_0x4b4c67(0x194)];},'abortController':_0x166f99[_0x42ce57(0x18c)]};}[_0x1d51b9(0x192)](_0x3d0338,_0x1bbb07){const _0x4324ab=_0x1d51b9,_0x823b56=this[_0x4324ab(0x1a0)](_0x4324ab(0x17a)+_0x3d0338+_0x4324ab(0x162),_0x4324ab(0x1b1),{'positiveCount':_0x1bbb07[_0x4324ab(0x147)],'totalCount':_0x1bbb07[_0x4324ab(0x16f)]});return{'execute':async()=>{const _0x42c841=_0x4324ab;await _0x823b56[_0x42c841(0x194)];},'abortController':_0x823b56[_0x4324ab(0x18c)]};}[_0x1d51b9(0x163)](_0x2f2b40,_0x11f74f,_0x226366,_0x47a706){const _0x28edac=_0x1d51b9,_0x83c6ee=this[_0x28edac(0x1a0)](_0x28edac(0x175)+_0x2f2b40+_0x28edac(0x1b0)+_0x11f74f+_0x28edac(0x162),_0x28edac(0x1b1),{'positiveCount':_0x226366[_0x28edac(0x147)],'totalCount':_0x226366[_0x28edac(0x16f)],'dataId':_0x47a706});return{'execute':async()=>{const _0x11c062=_0x28edac;await _0x83c6ee[_0x11c062(0x194)];},'abortController':_0x83c6ee[_0x28edac(0x18c)]};}[_0x1d51b9(0x19b)](_0x2a1f0d,_0xd1ffc5,_0x16d7c7){const _0x14abb3=_0x1d51b9,_0x25c4c2=this[_0x14abb3(0x1a0)](_0x14abb3(0x172)+_0x2a1f0d+_0x14abb3(0x162),_0x14abb3(0x1b1),{'positiveCount':_0xd1ffc5[_0x14abb3(0x147)],'totalCount':_0xd1ffc5[_0x14abb3(0x16f)],'dataId':_0x16d7c7});return{'execute':async()=>{const _0x2eb069=_0x14abb3;await _0x25c4c2[_0x2eb069(0x194)];},'abortController':_0x25c4c2[_0x14abb3(0x18c)]};}[_0x1d51b9(0x1a0)](_0x23fe7f,_0x1911be,_0x4c59ae){const _0x26317a=_0x1d51b9,_0x1a18f2=new AbortController(),_0x29177b=_0x4c59ae instanceof FormData,_0x40dd70={'Authorization':_0x26317a(0x17f)+this[_0x26317a(0x16b)]?.[_0x26317a(0x18a)]};_0x4c59ae&&!_0x29177b&&(_0x40dd70[_0x26317a(0x14f)]=_0x26317a(0x1a8));const _0x4c6b63={'method':_0x1911be,'headers':_0x40dd70,'signal':_0x1a18f2[_0x26317a(0x1a4)]};return _0x4c59ae&&(_0x4c6b63[_0x26317a(0x149)]=_0x29177b?_0x4c59ae:JSON[_0x26317a(0x1b9)](_0x4c59ae)),{'request':fetch(''+this[_0x26317a(0x182)]+_0x23fe7f,_0x4c6b63)[_0x26317a(0x15b)](_0xc6c613=>{const _0x434d29=_0x26317a;this[_0x434d29(0x169)](_0xc6c613);})[_0x26317a(0x14e)](_0x5c63a6=>_0x5c63a6['ok']?_0x5c63a6:_0x5c63a6[_0x26317a(0x1a3)]()[_0x26317a(0x14e)](_0x2926fe=>{const _0x2f3887=_0x26317a;throw{'url':this[_0x2f3887(0x182)],'path':_0x23fe7f,'method':_0x1911be,'body':_0x4c59ae,'status':(_0x5c63a6||{})[_0x2f3887(0x193)],'statusText':(_0x5c63a6||{})[_0x2f3887(0x1be)],'code':_0x2926fe[_0x2f3887(0x184)],'message':_0x2926fe[_0x2f3887(0x15f)],'traceId':_0x2926fe[_0x2f3887(0x1c1)]};})),'abortController':_0x1a18f2};}async*[_0x1d51b9(0x145)](_0x535db4){const _0x46fbfd=_0x1d51b9,_0x16b97f=[],_0x12dbfa=_0x535db4[_0x46fbfd(0x164)](),_0x6f8d2d=_0x34775d({'onError':_0x28896f=>{const _0x20c338=_0x46fbfd;this[_0x20c338(0x169)](_0x28896f);},'onEvent':_0x1ffd12=>{const _0x443399=_0x46fbfd;_0x1ffd12[_0x443399(0x183)]=JSON[_0x443399(0x19c)](_0x1ffd12[_0x443399(0x183)]),_0x16b97f[_0x443399(0x143)](_0x1ffd12);}});try{let _0xd60158=!0x1;for(;!_0xd60158;){const {done:_0xad78b4,value:_0x4a4ff5}=await _0x12dbfa[_0x46fbfd(0x16a)]();_0xad78b4&&(_0xd60158=!0x0),_0x6f8d2d[_0x46fbfd(0x16e)](this[_0x46fbfd(0x1c3)][_0x46fbfd(0x166)](_0x4a4ff5,{'stream':!0x0})),yield*_0x16b97f,_0x16b97f[_0x46fbfd(0x141)]=0x0;}}catch(_0x2b31e2){this[_0x46fbfd(0x169)](_0x2b31e2);}finally{_0x12dbfa[_0x46fbfd(0x1b4)](),_0x6f8d2d[_0x46fbfd(0x1ad)]();}}[_0x1d51b9(0x169)](_0x4a4bdc){const _0x23e474=_0x1d51b9;if(_0x4a4bdc instanceof _0xc91ee9)throw _0x4a4bdc;if(_0x4a4bdc instanceof Error&&_0x23e474(0x18d)===_0x4a4bdc[_0x23e474(0x187)])throw new _0xc91ee9(_0x23e474(0x1ba),this,{'originalError':_0x4a4bdc});throw new _0xc91ee9(_0x23e474(0x1a7),this,{'originalError':_0x4a4bdc});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xaa39(){const _0x10e980=['3330ofpGKB','_integrateEditor','1605747RvLnNY','getWalker','createRangeIn','processor','$textProxy','showFakeVisualSelection','isAtEnd','_nextDataId','_displayedFakeSelectionLocked','_getMarkersInDocumentOrder','2600028SrUaYy','containerElement','ready','markerToElement','6884tVhSuG','dataDowncast','removeMarker','convertAiChatSelectionMarker','join','name','399133wXZqGH','add','plugins','substring',':end>','hideFakeVisualSelection','1078316KMiQsR','toData','start','isAfter','floor','sort','isContent','setAttribute',':end></','createUIElement','ck-fake-ai-selection','isPremiumPlugin','data-id','pluginName','_setDataIdsOnChildren','ai-selection:','createRange','listenTo','39uwNrbJ',':start></','push','isOpening','element','model','context','conversion','schema','ck-ai-assistant-ui_theme','getDocumentData','afterInit','RealTimeCollaborationClient','getSelection','version','_displayedFakeSelectionId','_sessionId','markers','getSelectedContent','getMarkersGroup','2000NnEqwo','markerToHighlight','random','getRoot',':start>','document','getChildren','isBefore','change','markerName','emptyElement','data','getSelectionText','isOfficialPlugin','fromCharCode','get','selection','length','view','toView','addMarker','for','ai-selection','getStart','indexOf','removeAllRanges','end','has','5ROAazS','getLastMatchingPosition','editingDowncast','4343031Ytcyjj','72vEagAH','trim','editors','modelToViewWithIds','from','sessionId','editing','AIEditing'];_0xaa39=function(){return _0x10e980;};return _0xaa39();}const _0x37249a=_0x3163;(function(_0x70f1ce,_0x4e4ed9){const _0x3ff9c2=_0x3163,_0x1cf815=_0x70f1ce();while(!![]){try{const _0x5a067d=-parseInt(_0x3ff9c2(0x143))/0x1*(parseInt(_0x3ff9c2(0x125))/0x2)+parseInt(_0x3ff9c2(0x117))/0x3+parseInt(_0x3ff9c2(0x131))/0x4*(-parseInt(_0x3ff9c2(0x109))/0x5)+parseInt(_0x3ff9c2(0x121))/0x6+-parseInt(_0x3ff9c2(0x12b))/0x7*(parseInt(_0x3ff9c2(0x10d))/0x8)+-parseInt(_0x3ff9c2(0x115))/0x9*(parseInt(_0x3ff9c2(0x157))/0xa)+parseInt(_0x3ff9c2(0x10c))/0xb;if(_0x5a067d===_0x4e4ed9)break;else _0x1cf815['push'](_0x1cf815['shift']());}catch(_0x56ef05){_0x1cf815['push'](_0x1cf815['shift']());}}}(_0xaa39,0x5aec4));import{ViewDowncastWriter as _0x1e80be}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x15d8b2,Editor as _0x24ef80}from'ckeditor5/src/core.js';import{uid as _0x4f17b1}from'ckeditor5/src/utils.js';function _0x3163(_0x1ad38e,_0x4e8ac2){const _0xaa395=_0xaa39();return _0x3163=function(_0x3163c3,_0x1cf69d){_0x3163c3=_0x3163c3-0xf1;let _0x29067b=_0xaa395[_0x3163c3];return _0x29067b;},_0x3163(_0x1ad38e,_0x4e8ac2);}import{getEditorFromContext as _0x1307c3}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x37249a(0x103);export class AIEditing extends _0x15d8b2{[_0x37249a(0x152)]=null;[_0x37249a(0x11f)]=!0x1;[_0x37249a(0x153)];static get[_0x37249a(0x13e)](){const _0x3a3696=_0x37249a;return _0x3a3696(0x114);}static get[_0x37249a(0xfa)](){return!0x0;}static get[_0x37249a(0x13c)](){return!0x0;}get[_0x37249a(0x112)](){const _0x44c35f=_0x37249a;if(!this[_0x44c35f(0x153)]){const _0x253489=_0x1307c3(this[_0x44c35f(0x149)]),_0x1f44bf=_0x253489[_0x44c35f(0x12d)][_0x44c35f(0x108)](_0x44c35f(0x14f))&&_0x253489[_0x44c35f(0x12d)][_0x44c35f(0xfc)](_0x44c35f(0x14f))[_0x44c35f(0x112)];this[_0x44c35f(0x153)]=_0x1f44bf||_0x4f17b1();}return this[_0x44c35f(0x153)];}[_0x37249a(0x14d)](){const _0x5de37b=_0x37249a,_0x2cfbde=_0x1307c3(this[_0x5de37b(0x149)]),_0x4b1196=_0x2cfbde[_0x5de37b(0x148)],_0x59beeb=_0x2cfbde[_0x5de37b(0xf8)][_0x5de37b(0x100)](_0x4b1196[_0x5de37b(0xf2)][_0x5de37b(0x15a)](),{'convertAiChatSelectionMarker':!0x0}),_0x264b5f=new _0x1e80be(_0x2cfbde[_0x5de37b(0x113)][_0x5de37b(0xff)][_0x5de37b(0xf2)]);this[_0x5de37b(0x13f)](_0x59beeb,_0x264b5f);let _0x88b391=_0x2cfbde[_0x5de37b(0xf8)][_0x5de37b(0x11a)][_0x5de37b(0x132)](_0x59beeb);const _0x1fd649=this[_0x5de37b(0x120)](),_0x3c8ff0=[];for(const _0x54686a of _0x1fd649){const _0x1503e7='<'+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0x144)+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0xf1),_0x510d56=_0x88b391[_0x5de37b(0x105)](_0x1503e7);_0x88b391=_0x88b391[_0x5de37b(0x12e)](0x0,_0x510d56)+_0x88b391[_0x5de37b(0x12e)](_0x510d56+_0x1503e7[_0x5de37b(0xfe)]);const _0xf8bf2a='<'+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0x139)+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0x12f),_0xe45247=_0x88b391[_0x5de37b(0x105)](_0xf8bf2a);_0x88b391=_0x88b391[_0x5de37b(0x12e)](0x0,_0xe45247)+_0x88b391[_0x5de37b(0x12e)](_0xe45247+_0xf8bf2a[_0x5de37b(0xfe)]),_0x3c8ff0[_0x5de37b(0x145)]({'markerName':_0x54686a[_0x5de37b(0x12a)],'start':_0x510d56,'end':_0xe45247,'htmlFragment':_0x88b391[_0x5de37b(0x12e)](_0x510d56,_0xe45247)});}return{'content':_0x88b391,'version':_0x2cfbde[_0x5de37b(0x148)][_0x5de37b(0xf2)][_0x5de37b(0x151)],'sessionId':this[_0x5de37b(0x112)],'selections':_0x3c8ff0};}async[_0x37249a(0x14e)](){const _0x28dd34=_0x37249a;this[_0x28dd34(0x149)]instanceof _0x24ef80?this[_0x28dd34(0x116)](this[_0x28dd34(0x149)]):this[_0x28dd34(0x142)](this[_0x28dd34(0x149)][_0x28dd34(0x10f)],_0x28dd34(0x12c),(_0x5d2b6e,_0x43e797)=>{const _0x2e1340=_0x28dd34;_0x43e797['on'](_0x2e1340(0x123),()=>{const _0x2bff42=_0x2e1340;this[_0x2bff42(0x116)](_0x43e797);});});}[_0x37249a(0x116)](_0x4def86){const _0x123046=_0x37249a;_0x4def86[_0x123046(0x14a)][_0x123046(0x102)](_0x123046(0x10b))[_0x123046(0x158)]({'model':_0x123046(0x103),'view':{'classes':[_0x123046(0x13b),_0x123046(0x14c)],'priority':0xc}}),_0x4def86[_0x123046(0x14a)][_0x123046(0x102)](_0x123046(0x126))[_0x123046(0x124)]({'model':_0x123046(0x103),'view':(_0x302e4b,{writer:_0x24399a,options:_0x1cdaaa})=>_0x1cdaaa[_0x123046(0x128)]?_0x24399a[_0x123046(0x13a)](_0x302e4b[_0x123046(0xf6)]+':'+(_0x302e4b[_0x123046(0x146)]?_0x123046(0x133):_0x123046(0x107))):null});}[_0x37249a(0x11c)](_0xd48858,_0x262946,_0x4c0676=!0x1,_0x34ae81=!0x1){const _0x35ca1f=_0x37249a;if(this[_0x35ca1f(0x11f)]&&!_0x34ae81)return!0x1;const _0x1bb121=_0x1307c3(this[_0x35ca1f(0x149)])[_0x35ca1f(0x148)];return _0x1bb121[_0x35ca1f(0xf5)](_0x3c300b=>{const _0x52814e=_0x35ca1f;this[_0x52814e(0x152)]&&this[_0x52814e(0x130)](this[_0x52814e(0x152)]),this[_0x52814e(0x152)]=_0x262946,this[_0x52814e(0x11f)]=_0x4c0676;let _0x1e62fd=0x0;for(let _0x47741d of _0xd48858){const _0x2e42f9=_0x52814e(0x140)+_0x1e62fd;if(_0x47741d[_0x52814e(0x133)][_0x52814e(0x11d)]){const _0x166b07=_0x47741d[_0x52814e(0x133)][_0x52814e(0x10a)](({item:_0x25f995})=>!_0x1bb121[_0x52814e(0x14b)][_0x52814e(0x137)](_0x25f995),{'boundaries':_0x47741d});_0x47741d=_0x3c300b[_0x52814e(0x141)](_0x166b07,_0x47741d[_0x52814e(0x107)]);}_0x3c300b[_0x52814e(0x101)](_0x2e42f9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x47741d}),_0x1e62fd++;}}),window[_0x35ca1f(0x150)]()?.[_0x35ca1f(0x106)](),!0x0;}[_0x37249a(0x130)](_0x1a1c4a){const _0x508007=_0x37249a;if(this[_0x508007(0x152)]!=_0x1a1c4a)return!0x1;this[_0x508007(0x152)]=null,this[_0x508007(0x11f)]=!0x1;const _0x87536e=_0x1307c3(this[_0x508007(0x149)]),_0x4eb45c=_0x87536e[_0x508007(0x148)][_0x508007(0x154)][_0x508007(0x156)](_0x508007(0x103));return _0x87536e[_0x508007(0x148)][_0x508007(0xf5)](_0x743a3=>{const _0x863419=_0x508007;for(const _0x3d4457 of _0x4eb45c)_0x743a3[_0x863419(0x127)](_0x3d4457);}),!0x0;}[_0x37249a(0x110)](_0x2402a9){const _0x19569f=_0x37249a,_0x55be53=_0x1307c3(this[_0x19569f(0x149)]),_0x23bcf5=_0x55be53[_0x19569f(0xf8)][_0x19569f(0x100)](_0x2402a9),_0x3d6765=new _0x1e80be(_0x55be53[_0x19569f(0x113)][_0x19569f(0xff)][_0x19569f(0xf2)]);return this[_0x19569f(0x13f)](_0x23bcf5,_0x3d6765),_0x23bcf5;}[_0x37249a(0x13f)](_0x56f4e3,_0x5696c3){const _0x3ebd75=_0x37249a;let _0x3b33ea=!0x1;const _0xeff764=new Set();for(const _0x53d62f of _0x56f4e3[_0x3ebd75(0xf3)]()){const _0x9e0604=_0x53d62f['is'](_0x3ebd75(0xf7))||_0x53d62f['is'](_0x3ebd75(0x122));if(!_0x53d62f['is'](_0x3ebd75(0x147)))continue;(this[_0x3ebd75(0x13f)](_0x53d62f,_0x5696c3)||_0x9e0604)&&(_0x5696c3[_0x3ebd75(0x138)](_0x3ebd75(0x13d),this[_0x3ebd75(0x11e)](_0xeff764),_0x53d62f),_0x3b33ea=!0x0);}return _0x3b33ea;}[_0x37249a(0x11e)](_0x57368d){const _0x7548c7=_0x37249a;let _0x1b89ec;do{_0x1b89ec='';for(let _0x554333=0x0;_0x554333<0x4;_0x554333++)_0x1b89ec+=String[_0x7548c7(0xfb)](0x61+Math[_0x7548c7(0x135)](0x1a*Math[_0x7548c7(0x159)]()));}while(_0x57368d[_0x7548c7(0x108)](_0x1b89ec));return _0x57368d[_0x7548c7(0x12c)](_0x1b89ec),_0x1b89ec;}[_0x37249a(0xf9)](){const _0x358468=_0x37249a,{model:_0x2a6472}=_0x1307c3(this[_0x358468(0x149)]),_0x48a687=_0x2a6472[_0x358468(0xf2)][_0x358468(0xfd)],_0x4b46eb=_0x2a6472[_0x358468(0x155)](_0x48a687),_0x36d099=[],_0x407c61=_0x2a6472[_0x358468(0x119)](_0x4b46eb)[_0x358468(0x118)]();for(const {item:_0x1e1281}of _0x407c61)_0x1e1281['is'](_0x358468(0x11b))?_0x36d099[_0x358468(0x145)](_0x1e1281[_0x358468(0xf8)]):_0x1e1281['is'](_0x358468(0x147))&&_0x36d099[_0x358468(0xfe)]>0x0&&'\x20'!==_0x36d099[_0x36d099[_0x358468(0xfe)]-0x1]&&_0x36d099[_0x358468(0x145)]('\x20');return'\x22'+_0x36d099[_0x358468(0x129)]('')[_0x358468(0x10e)]()+'\x22';}[_0x37249a(0x120)](){const _0x1ad2a7=_0x37249a,_0x19766d=_0x1307c3(this[_0x1ad2a7(0x149)])[_0x1ad2a7(0x148)];return Array[_0x1ad2a7(0x111)](_0x19766d[_0x1ad2a7(0x154)][_0x1ad2a7(0x156)](_0x1ad2a7(0x103)))[_0x1ad2a7(0x136)]((_0x284c62,_0x24a0ae)=>_0x284c62[_0x1ad2a7(0x104)]()[_0x1ad2a7(0xf4)](_0x24a0ae[_0x1ad2a7(0x104)]())?-0x1:_0x284c62[_0x1ad2a7(0x104)]()[_0x1ad2a7(0x134)](_0x24a0ae[_0x1ad2a7(0x104)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2b5a(_0x52bc95,_0x37ef26){const _0x365021=_0x3650();return _0x2b5a=function(_0x2b5a38,_0xdfacc6){_0x2b5a38=_0x2b5a38-0x16e;let _0x437bc3=_0x365021[_0x2b5a38];return _0x437bc3;},_0x2b5a(_0x52bc95,_0x37ef26);}const _0x44d3c3=_0x2b5a;(function(_0x58b403,_0x1b95c1){const _0x3784b5=_0x2b5a,_0x49b5bf=_0x58b403();while(!![]){try{const _0x2c15c9=-parseInt(_0x3784b5(0x179))/0x1+parseInt(_0x3784b5(0x181))/0x2+parseInt(_0x3784b5(0x173))/0x3*(parseInt(_0x3784b5(0x16f))/0x4)+parseInt(_0x3784b5(0x17c))/0x5*(parseInt(_0x3784b5(0x186))/0x6)+-parseInt(_0x3784b5(0x17f))/0x7*(-parseInt(_0x3784b5(0x187))/0x8)+-parseInt(_0x3784b5(0x188))/0x9*(-parseInt(_0x3784b5(0x171))/0xa)+-parseInt(_0x3784b5(0x17b))/0xb;if(_0x2c15c9===_0x1b95c1)break;else _0x49b5bf['push'](_0x49b5bf['shift']());}catch(_0x17caf3){_0x49b5bf['push'](_0x49b5bf['shift']());}}}(_0x3650,0x2feb0));import{EmitterMixin as _0x3aa26f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x44d3c3(0x172)];function _0x3650(){const _0x36fac3=['_isReasoningEnabled','setReasoning','init','getCapabilitiesConfig','60WkTeCj','376fexYNv','423hSeFqo','reset','8kjXjHR','setWebSearch','23230UOXstw','capabilitiesUpdated','580299kePuDf','webSearch','isWebSearchEnabled','_isWebSearchEnabled','reasoning','toggleReasoning','382073jZvISj','getCapabilitiesRequestData','6563073OVpDjG','183965uUzmBL','isReasoningEnabled','fire','10493XNUqYt','toggleWebSearch','481116Owrito'];_0x3650=function(){return _0x36fac3;};return _0x3650();}export class AICapabilities extends _0x3aa26f(){[_0x44d3c3(0x176)];[_0x44d3c3(0x182)];constructor(){const _0x49b94c=_0x44d3c3;super(),this[_0x49b94c(0x176)]=!0x1,this[_0x49b94c(0x182)]=!0x1;}[_0x44d3c3(0x184)](){const _0xfa773b=_0x44d3c3;this[_0xfa773b(0x16e)]();}[_0x44d3c3(0x16e)](){const _0x25a44c=_0x44d3c3;this[_0x25a44c(0x170)](!0x1),this[_0x25a44c(0x183)](!0x1);}[_0x44d3c3(0x185)](){const _0x3960f1=_0x44d3c3;return{'isWebSearchEnabled':this[_0x3960f1(0x176)],'isReasoningEnabled':this[_0x3960f1(0x182)]};}static[_0x44d3c3(0x17a)](_0x217f74){const _0x36712d=_0x44d3c3,_0x5132ad={};return _0x217f74&&_0x217f74[_0x36712d(0x175)]&&(_0x5132ad[_0x36712d(0x174)]={}),_0x217f74&&_0x217f74[_0x36712d(0x17d)]&&(_0x5132ad[_0x36712d(0x177)]={}),_0x5132ad;}[_0x44d3c3(0x180)](){const _0x595e46=_0x44d3c3;this[_0x595e46(0x170)](!this[_0x595e46(0x176)]);}[_0x44d3c3(0x178)](){const _0x27ddb7=_0x44d3c3;this[_0x27ddb7(0x183)](!this[_0x27ddb7(0x182)]);}[_0x44d3c3(0x170)](_0x310064){const _0x230100=_0x44d3c3;_0x310064!==this[_0x230100(0x176)]&&(this[_0x230100(0x176)]=_0x310064,this[_0x230100(0x17e)](_0x230100(0x172),this[_0x230100(0x185)]()));}[_0x44d3c3(0x183)](_0x5042b1){const _0x2924cf=_0x44d3c3;_0x5042b1!==this[_0x2924cf(0x182)]&&(this[_0x2924cf(0x182)]=_0x5042b1,this[_0x2924cf(0x17e)](_0x2924cf(0x172),this[_0x2924cf(0x185)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x421c80,_0x50f5cc){var _0x356d19=_0x46b0,_0x5cc56a=_0x421c80();while(!![]){try{var _0x1f2ba2=parseInt(_0x356d19(0xd5))/0x1*(parseInt(_0x356d19(0xdc))/0x2)+-parseInt(_0x356d19(0xe4))/0x3+parseInt(_0x356d19(0xce))/0x4+-parseInt(_0x356d19(0xd7))/0x5+parseInt(_0x356d19(0xe0))/0x6*(-parseInt(_0x356d19(0xd9))/0x7)+parseInt(_0x356d19(0xd4))/0x8*(parseInt(_0x356d19(0xd1))/0x9)+-parseInt(_0x356d19(0xdf))/0xa*(-parseInt(_0x356d19(0xd8))/0xb);if(_0x1f2ba2===_0x50f5cc)break;else _0x5cc56a['push'](_0x5cc56a['shift']());}catch(_0x3a548a){_0x5cc56a['push'](_0x5cc56a['shift']());}}}(_0x405d,0x6079f));export var AIContextItemType;function _0x46b0(_0x513597,_0x18c83a){var _0x405deb=_0x405d();return _0x46b0=function(_0x46b0dc,_0x5e27d5){_0x46b0dc=_0x46b0dc-0xce;var _0x4f3bb6=_0x405deb[_0x46b0dc];return _0x4f3bb6;},_0x46b0(_0x513597,_0x18c83a);}!function(_0x376326){var _0x2e9f4f=_0x46b0;_0x376326[_0x2e9f4f(0xe1)]=_0x2e9f4f(0xde),_0x376326[_0x2e9f4f(0xda)]=_0x2e9f4f(0xe3),_0x376326[_0x2e9f4f(0xdb)]=_0x2e9f4f(0xd2),_0x376326[_0x2e9f4f(0xe5)]=_0x2e9f4f(0xd0),_0x376326[_0x2e9f4f(0xe2)]=_0x2e9f4f(0xdd);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x203931){var _0x41acc2=_0x46b0;_0x203931[_0x41acc2(0xe5)]=_0x41acc2(0xd0),_0x203931[_0x41acc2(0xd6)]=_0x41acc2(0xe6),_0x203931[_0x41acc2(0xcf)]=_0x41acc2(0xd3);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x405d(){var _0x5ebf18=['selection','file','320hwtiqr','5832sUwMyw','FILE','SELECTION','document','593286wSuswE','TEXT','markdown','714412RmoDvx','HTML','text','217467rmkceC','web-resource','html','32BqYeKW','34fvFmgf','MARKDOWN','124780TKPUhh','310145DnukSZ','4928ShxxdX','DOCUMENT','URL','7334BbbkYa'];_0x405d=function(){return _0x5ebf18;};return _0x405d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x85d4(_0xd02536,_0x4360b5){const _0x36ff55=_0x36ff();return _0x85d4=function(_0x85d415,_0x1c151f){_0x85d415=_0x85d415-0x19b;let _0x5d66cf=_0x36ff55[_0x85d415];return _0x5d66cf;},_0x85d4(_0xd02536,_0x4360b5);}const _0x11a5db=_0x85d4;function _0x36ff(){const _0x588f2f=['source','200345XMwzwB','stop','7YqFMPD','getDocumentContext','reasoningStarted','6kkSFXN','message-metadata','data','modification-delta','start','delegate','isStopped','828261ntemRo','find','replyContentUpdated','createReply','webSearchFinished','interactionCreated','appendContent','web-search','sources','content','messageId','setConversationTitle','forEach','splice','getReply','383944rxXdhy','actionCallId','180mCMPHL','_finalizeInteraction','getStream','sendRequest','replies','interactionDestroyed','abort','currentReply','length','33046zPTIge','_isReasoning','160JDGAwC','abortController','currentRequest','action-metadata','4yPhaDO','conversationTitle','740982XzActZ','fire','reasoningFinished','interactionStopped','error','reasoning','replyChangeGroupStateUpdated','_isWebSearching','2437896owNEdg','isDestroyed','done','connector','push','webSearchStarted','interactionFinished','editor','interactionStarted','callId','event','destroy','stopListening','replyCreated','6849fEFlmJ','textDelta','ai-chat-interaction-error'];_0x36ff=function(){return _0x588f2f;};return _0x36ff();}(function(_0x3cdfe6,_0x2973a6){const _0x5990c5=_0x85d4,_0x23dbd3=_0x3cdfe6();while(!![]){try{const _0x415155=parseInt(_0x5990c5(0x19f))/0x1+-parseInt(_0x5990c5(0x1a7))/0x2+-parseInt(_0x5990c5(0x1cd))/0x3*(-parseInt(_0x5990c5(0x1a5))/0x4)+-parseInt(_0x5990c5(0x1c1))/0x5*(-parseInt(_0x5990c5(0x1c6))/0x6)+-parseInt(_0x5990c5(0x1c3))/0x7*(parseInt(_0x5990c5(0x1af))/0x8)+parseInt(_0x5990c5(0x1bd))/0x9*(-parseInt(_0x5990c5(0x1a1))/0xa)+-parseInt(_0x5990c5(0x1dc))/0xb*(-parseInt(_0x5990c5(0x1de))/0xc);if(_0x415155===_0x2973a6)break;else _0x23dbd3['push'](_0x23dbd3['shift']());}catch(_0x514fa5){_0x23dbd3['push'](_0x23dbd3['shift']());}}}(_0x36ff,0x2d40e));import{CKEditorError as _0x38f97e,EmitterMixin as _0x2c395f,uid as _0x57fd98}from'ckeditor5/src/utils.js';import{AIReply as _0xee6382,isIgnoredReplyType as _0x831e6e,isValidReplyType as _0x263e11,isReplyTitleType as _0x4963b8,isSourceType as _0x1aa9aa}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x11a5db(0x1d2),_0x11a5db(0x1b7),_0x11a5db(0x1aa),_0x11a5db(0x1b5),_0x11a5db(0x19b),_0x11a5db(0x1bc),_0x11a5db(0x1cf),_0x11a5db(0x1ad),_0x11a5db(0x1d8),_0x11a5db(0x1b4),_0x11a5db(0x1d1),_0x11a5db(0x1c5),_0x11a5db(0x1a9),_0x11a5db(0x1ab)];export class AIInteraction extends _0x2c395f(){['id'];[_0x11a5db(0x1e2)]=[];[_0x11a5db(0x19d)];[_0x11a5db(0x1d7)];[_0x11a5db(0x1dd)];[_0x11a5db(0x1a3)];[_0x11a5db(0x1b2)];[_0x11a5db(0x1cc)]=!0x1;[_0x11a5db(0x1b0)]=!0x1;[_0x11a5db(0x1b6)];[_0x11a5db(0x1a0)]=!0x1;[_0x11a5db(0x1ae)]=!0x1;constructor({connector:_0x33c565,editor:_0x4ee72d}){const _0xcc463d=_0x11a5db;super(),this['id']=_0x57fd98(),this[_0xcc463d(0x1b2)]=_0x33c565,this[_0xcc463d(0x1cc)]=!0x0,this[_0xcc463d(0x1b6)]=_0x4ee72d;}async[_0x11a5db(0x1ca)](){const _0x235f82=_0x11a5db;let _0x5e2e47;const _0x14847a=[];this[_0x235f82(0x1cc)]=!0x1;try{this[_0x235f82(0x1a3)]=await this[_0x235f82(0x1e1)](),this[_0x235f82(0x1a8)](_0x235f82(0x1b7),this);const _0x421a98=await this[_0x235f82(0x1a3)][_0x235f82(0x1e0)]();for await(const _0x5b1364 of _0x421a98){if(this[_0x235f82(0x1cc)])return;if(_0x235f82(0x1ab)===_0x5b1364[_0x235f82(0x1b9)])return void this[_0x235f82(0x1a8)](_0x235f82(0x1ab),{'error':new _0x38f97e(_0x235f82(0x1bf),this)});if(_0x235f82(0x1c7)!==_0x5b1364[_0x235f82(0x1b9)]){if(_0x235f82(0x1a4)!==_0x5b1364[_0x235f82(0x1b9)]){if(_0x4963b8(_0x5b1364[_0x235f82(0x1b9)])&&this[_0x235f82(0x1d8)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1a6)],!0x0),_0x1aa9aa(_0x5b1364[_0x235f82(0x1b9)]))_0x14847a[_0x235f82(0x1b3)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1c0)]);else{if(_0x263e11(_0x5b1364[_0x235f82(0x1b9)])){if(_0x5b1364[_0x235f82(0x1b9)]!==_0x5e2e47){if(_0x5e2e47=_0x5b1364[_0x235f82(0x1b9)],_0x235f82(0x1d4)===_0x5b1364[_0x235f82(0x1b9)]){this[_0x235f82(0x1ae)]||(this[_0x235f82(0x1ae)]=!0x0,this[_0x235f82(0x1a8)](_0x235f82(0x1b4),this));continue;}if(_0x235f82(0x1ac)===_0x5b1364[_0x235f82(0x1b9)]){this[_0x235f82(0x1a0)]||(this[_0x235f82(0x1a0)]=!0x0,this[_0x235f82(0x1a8)](_0x235f82(0x1c5),this));continue;}this[_0x235f82(0x1a0)]&&(this[_0x235f82(0x1a0)]=!0x1,this[_0x235f82(0x1a8)](_0x235f82(0x1a9),this)),this[_0x235f82(0x1ae)]&&(this[_0x235f82(0x1ae)]=!0x1,this[_0x235f82(0x1a8)](_0x235f82(0x1d1),this)),this[_0x235f82(0x19d)]&&this[_0x235f82(0x19d)][_0x235f82(0x1b1)](),this[_0x235f82(0x19d)]=this[_0x235f82(0x1d0)]({'type':_0x5b1364[_0x235f82(0x1b9)],'interactionId':this['id'],'id':_0x5b1364[_0x235f82(0x1c8)]?.['id']}),_0x14847a[_0x235f82(0x19e)]>0x0&&_0x235f82(0x1c9)===_0x5b1364[_0x235f82(0x1b9)]&&(this[_0x235f82(0x19d)][_0x235f82(0x1d5)]=_0x14847a[_0x235f82(0x1da)](0x0));}_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1be)]&&this[_0x235f82(0x19d)][_0x235f82(0x1d3)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1be)]);}else _0x831e6e(_0x5b1364[_0x235f82(0x1b9)]);}}else this[_0x235f82(0x1dd)]=_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1b8)];}else this[_0x235f82(0x1d7)]=_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1d7)];}}finally{this[_0x235f82(0x1cc)]||(_0x14847a[_0x235f82(0x19e)]>0x0&&(this[_0x235f82(0x19d)][_0x235f82(0x1d5)]=_0x14847a[_0x235f82(0x1da)](0x0)),this[_0x235f82(0x1df)](),this[_0x235f82(0x1a8)](_0x235f82(0x1b5),this));}}[_0x11a5db(0x1c2)](){const _0x487c3b=_0x11a5db;this[_0x487c3b(0x1cc)]||(this[_0x487c3b(0x1df)](),this[_0x487c3b(0x1a8)](_0x487c3b(0x1aa),this));}[_0x11a5db(0x1db)](_0xe9b4dd){const _0x5877fa=_0x11a5db;return this[_0x5877fa(0x1e2)][_0x5877fa(0x1ce)](_0x465447=>_0x465447['id']===_0xe9b4dd);}[_0x11a5db(0x1ba)](){const _0x5c5009=_0x11a5db;this[_0x5c5009(0x1b0)]||(this[_0x5c5009(0x1c2)](),this[_0x5c5009(0x1e2)][_0x5c5009(0x1d9)](_0x1e8161=>_0x1e8161[_0x5c5009(0x1ba)]()),this[_0x5c5009(0x1e2)]=[],this[_0x5c5009(0x1b0)]=!0x0,this[_0x5c5009(0x1a8)](_0x5c5009(0x19b),this),this[_0x5c5009(0x1bb)]());}[_0x11a5db(0x1d0)](_0x2de4aa){const _0x4b676e=_0x11a5db,_0x349aad=new _0xee6382({'editor':this[_0x4b676e(0x1b6)],'documentContextContent':this[_0x4b676e(0x1c4)]()?.[_0x4b676e(0x1d6)],..._0x2de4aa});return this[_0x4b676e(0x1e2)][_0x4b676e(0x1b3)](_0x349aad),_0x349aad[_0x4b676e(0x1cb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4b676e(0x1a8)](_0x4b676e(0x1bc),_0x349aad),_0x349aad;}[_0x11a5db(0x1d8)](_0x147633,_0xd2edd3=!0x1){const _0x5ebcb6=_0x11a5db;this[_0x5ebcb6(0x1a8)](_0x5ebcb6(0x1d8),_0x147633,_0xd2edd3);}[_0x11a5db(0x1df)](){const _0x213ce8=_0x11a5db;this[_0x213ce8(0x1cc)]=!0x0,this[_0x213ce8(0x1a3)]&&this[_0x213ce8(0x1a3)][_0x213ce8(0x1a2)][_0x213ce8(0x19c)](),this[_0x213ce8(0x19d)]&&this[_0x213ce8(0x19d)][_0x213ce8(0x1b1)](),this[_0x213ce8(0x1a3)]=this[_0x213ce8(0x19d)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36e817=_0x57a6;function _0x57a6(_0x5633b0,_0x35d9a2){const _0x17263a=_0x1726();return _0x57a6=function(_0x57a601,_0x38c437){_0x57a601=_0x57a601-0xfa;let _0x1fe06d=_0x17263a[_0x57a601];return _0x1fe06d;},_0x57a6(_0x5633b0,_0x35d9a2);}(function(_0x1ced96,_0xbfee92){const _0x7515c6=_0x57a6,_0x143937=_0x1ced96();while(!![]){try{const _0x2154d2=parseInt(_0x7515c6(0x109))/0x1*(-parseInt(_0x7515c6(0x103))/0x2)+parseInt(_0x7515c6(0x124))/0x3*(-parseInt(_0x7515c6(0x122))/0x4)+-parseInt(_0x7515c6(0x126))/0x5*(-parseInt(_0x7515c6(0x113))/0x6)+-parseInt(_0x7515c6(0x108))/0x7+-parseInt(_0x7515c6(0x10e))/0x8+parseInt(_0x7515c6(0x100))/0x9+parseInt(_0x7515c6(0x11b))/0xa*(parseInt(_0x7515c6(0x120))/0xb);if(_0x2154d2===_0xbfee92)break;else _0x143937['push'](_0x143937['shift']());}catch(_0x1d2297){_0x143937['push'](_0x143937['shift']());}}}(_0x1726,0x9678b));import{EmitterMixin as _0x4e83a1,logWarning as _0x396787,logError as _0x3c8601}from'ckeditor5/src/utils.js';import{getTranslation as _0x12632e}from'../utils/common-translations.js';export class AIModels extends _0x4e83a1(){[_0x36e817(0x10c)];[_0x36e817(0x10a)];[_0x36e817(0x10d)];[_0x36e817(0x10b)]=[];constructor({connector:_0x5173b8,availableModels:_0x5a8e85,defaultModelId:_0x40a08e}){const _0x3d3217=_0x36e817;super(),this[_0x3d3217(0x10c)]=_0x5173b8,this[_0x3d3217(0x10a)]=_0x5a8e85,this[_0x3d3217(0x10d)]=_0x40a08e;}async[_0x36e817(0x11d)](){const _0x467dec=_0x36e817;if(!this[_0x467dec(0x10b)][_0x467dec(0xfe)])try{const _0xc69e68=this[_0x467dec(0x10c)][_0x467dec(0xfb)](),_0x41c7c1=await _0xc69e68[_0x467dec(0x115)]();this[_0x467dec(0x10b)]=_0x41c7c1[_0x467dec(0x125)];}catch(_0x3c9027){throw _0x3c8601(_0x467dec(0x101),{'error':_0x3c9027}),_0x3c9027;}return[...this[_0x467dec(0x10b)]];}async[_0x36e817(0x11c)](){const _0xe76760=_0x36e817,_0x274e3c=await this[_0xe76760(0x11d)]();return this[_0xe76760(0x11f)](_0x274e3c,this[_0xe76760(0x10a)]);}async[_0x36e817(0x121)](_0x288fb6){const _0x4f59d8=_0x36e817,_0x5db51f=await this[_0x4f59d8(0x11d)]();if(!_0x5db51f[_0x4f59d8(0xfe)])return null;if(_0x288fb6){const _0x413e24=this[_0x4f59d8(0x112)](_0x5db51f,_0x288fb6);if(_0x413e24)return _0x413e24;_0x396787(_0x4f59d8(0x107),{'modelId':_0x288fb6,'fallBackModelId':this[_0x4f59d8(0x10d)]});}return this[_0x4f59d8(0x102)]();}async[_0x36e817(0x102)](){const _0x230154=_0x36e817,_0x1e4870=await this[_0x230154(0x11c)]();if(!_0x1e4870[_0x230154(0xfe)])return null;if(this[_0x230154(0x10d)]){const _0x4d2c4c=this[_0x230154(0x112)](_0x1e4870,this[_0x230154(0x10d)]);if(_0x4d2c4c)return _0x4d2c4c;_0x396787(_0x230154(0x116),{'defaultModelId':this[_0x230154(0x10d)],'fallBackModelId':_0x1e4870[0x0]['id']});}return _0x1e4870[0x0];}async[_0x36e817(0x105)](_0x52ab8f){const _0x5237eb=_0x36e817;return(await this[_0x5237eb(0x11c)]())[_0x5237eb(0x123)](_0x29abc9=>_0x29abc9[_0x5237eb(0x114)]===_0x52ab8f[_0x5237eb(0x114)]&&_0x29abc9[_0x5237eb(0xff)]===_0x52ab8f[_0x5237eb(0xff)]);}[_0x36e817(0x11f)](_0x304cdf,_0x62cdea){const _0x2f8270=_0x36e817;let _0x41aea5;if(_0x62cdea){_0x41aea5=[];const _0x197038=_0x2f8270(0x106)==typeof _0x62cdea?[_0x62cdea[_0x2f8270(0x118)]()]:_0x62cdea[_0x2f8270(0xfd)](_0x4391cd=>_0x4391cd[_0x2f8270(0x118)]());for(const _0x4bc66d of _0x197038)for(const _0x46e984 of _0x304cdf)(_0x46e984['id'][_0x2f8270(0x118)]()===_0x4bc66d||_0x46e984[_0x2f8270(0x114)][_0x2f8270(0x118)]()===_0x4bc66d||Ne(_0x46e984)&&_0x2f8270(0x110)===_0x4bc66d||_0x46e984[_0x2f8270(0xff)][_0x2f8270(0x118)]()===_0x4bc66d||_0x46e984['id'][_0x2f8270(0x118)]()[_0x2f8270(0x11e)](_0x4bc66d))&&_0x41aea5[_0x2f8270(0x104)](_0x46e984);}else _0x41aea5=_0x304cdf;return _0x41aea5;}[_0x36e817(0x112)](_0x59af3f,_0x88c857){const _0x29cf22=_0x36e817;return _0x59af3f[_0x29cf22(0x10f)](_0x13ec4b=>Ne(_0x13ec4b)&&_0x29cf22(0x110)===_0x88c857?_0x13ec4b:_0x13ec4b['id']===_0x88c857)||null;}static[_0x36e817(0xfa)](_0x345321,_0x15ec61){const _0x40ab11=_0x36e817;return _0x15ec61[_0x40ab11(0xfd)](_0x59e07e=>{const _0x38bc25=_0x40ab11;if(Ne(_0x59e07e))_0x59e07e[_0x38bc25(0x114)]=_0x12632e(_0x345321,_0x38bc25(0x111)),_0x59e07e[_0x38bc25(0x117)]=_0x12632e(_0x345321,_0x38bc25(0x11a));else _0x12632e(_0x345321,_0x38bc25(0xfc)+_0x59e07e['id'][_0x38bc25(0x119)]())[_0x38bc25(0x11e)](_0x38bc25(0xfc))||(_0x59e07e[_0x38bc25(0x117)]=_0x12632e(_0x345321,_0x38bc25(0xfc)+_0x59e07e['id'][_0x38bc25(0x119)]()));return _0x59e07e;});}}function Ne(_0x1dde4d){const _0x2f800c=_0x36e817;return _0x1dde4d['id'][_0x2f800c(0x11e)](_0x2f800c(0x127));}function _0x1726(){const _0x28d842=['ai-chat-model-id-unrecognized','4234839VsXjwR','659969wfYzEg','_availableModels','_modelList','_connector','_defaultModelId','1174816ytkYoS','find','auto','AI_MODEL_NAME_AUTO','_getModelById','3028926rgrJDC','name','list','ai-chat-default-model-id-unrecognized','description','toLocaleLowerCase','toUpperCase','AI_MODEL_DESCRIPTION_AUTO','1897150gpPziV','getAvailableModels','getAll','startsWith','_filterModels','121eAJLWX','getModel','4927924qRwyNw','some','3IDeIhO','items','10DvtcJz','agent','getLocalized','getModels','AI_MODEL_DESCRIPTION_','map','length','provider','1472427glMCeB','ai-models-unable-to-retrieve','getDefault','2kDprko','push','isAvailable','string'];_0x1726=function(){return _0x28d842;};return _0x1726();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x352474=_0xebb8;(function(_0x473f72,_0x4a73ec){const _0x3a4f73=_0xebb8,_0x42cb06=_0x473f72();while(!![]){try{const _0x392002=parseInt(_0x3a4f73(0x17f))/0x1+parseInt(_0x3a4f73(0x192))/0x2+parseInt(_0x3a4f73(0x17a))/0x3+-parseInt(_0x3a4f73(0x1a6))/0x4*(parseInt(_0x3a4f73(0x1a5))/0x5)+parseInt(_0x3a4f73(0x179))/0x6*(parseInt(_0x3a4f73(0x1bd))/0x7)+parseInt(_0x3a4f73(0x1c4))/0x8*(parseInt(_0x3a4f73(0x178))/0x9)+parseInt(_0x3a4f73(0x187))/0xa*(-parseInt(_0x3a4f73(0x1a3))/0xb);if(_0x392002===_0x4a73ec)break;else _0x42cb06['push'](_0x42cb06['shift']());}catch(_0x3b6889){_0x42cb06['push'](_0x42cb06['shift']());}}}(_0x13c3,0x4e8ef));function _0x13c3(){const _0x5eb34c=['set','color:\x20#808080;\x20font-style:\x20italic','previousSibling','28455LHrXbW','modified','convertMarkdownToHTML','web-search','AI_SUGGESTION_CONTENT_PART_REMOVED','_getCachedContentParts','pending','8SLTENO','values','parsedContent','cloneNode','data-id','indexOf','fire','_getDifferentChangeGroups','find','ai-reply-get-content-parts-group-not-found','appendContent','4178781QTkhUL','426GjutAN','1269141laGidX','modification-delta','sources','forEach','_setCachedContentParts','200740vJfmXI','aiResponseParser','splice','locale','withoutDiff','modifiedNodeIds','context','conversation-title','3506970leGHgF','content','stopListening','nextSibling','change:content','withDiff','node','type','every','unshift','push','123148yMFifA','map','getContentParts','removed','removedNodeIds','destroy','text-delta','data-unstable','aiResponseApplier','reasoning','index','length','updateChangeGroups','newNodeIds','state','documentContextContent','new','33zzwHWs','interactionId','322095QNhmNh','4ieBwgh','replyContentUpdated','source','setChangeGroupState','parseAndNormalizeHTML','filter','changes','onContentChange','areActionsDisabled','done','replyChangeGroupStateUpdated','isDone','cachedSuggestionContentParts','changeGroups','editor','includes','merge','ai-get-editor-from-context-no-editor','parsedMergedContent','span'];_0x13c3=function(){return _0x5eb34c;};return _0x13c3();}import{CKEditorError as _0x1eb2b7,ObservableMixin as _0x5309c8,uid as _0x84eeb4}from'ckeditor5/src/utils.js';import{Element as _0x3fbc50,findAll as _0xd61f12,getAttribute as _0x186595,getParents as _0x54ba44,Document as _0x50389f,parse as _0x1a3f5e,Text as _0x516db5}from'../utils/htmlparser.js';import{AIResponseParser as _0x29261c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1d9b9a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x9b4335}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x501f32}from'../utils/common-translations.js';import{cloneDeep as _0x156653}from'es-toolkit';export const AI_REPLY_TYPES=[_0x352474(0x17b),_0x352474(0x198),_0x352474(0x1c0),_0x352474(0x19b)];export const AI_REPLY_TYPES_IGNORED=[_0x352474(0x186)];export const AI_REPLY_TITLE_TYPE=_0x352474(0x186);export class AIReply extends _0x5309c8(){['id'];[_0x352474(0x1a4)];[_0x352474(0x18e)];[_0x352474(0x17c)]=[];[_0x352474(0x1c6)]=new _0x50389f([]);[_0x352474(0x1b8)]=new _0x50389f([]);[_0x352474(0x1b3)]=[];[_0x352474(0x1ae)]=!0x1;[_0x352474(0x1a1)];[_0x352474(0x180)];[_0x352474(0x19a)];[_0x352474(0x1b4)];[_0x352474(0x1b2)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x57b112,content:_0x4af3ae='',isDone:_0x2c338e=!0x1,interactionId:_0x4793e0,areActionsDisabled:_0xdcd63b,documentContextContent:_0x150417,editor:_0x5e0583,id:_0x23121d}){const _0x3117c0=_0x352474;super(),this['id']=_0x23121d||_0x84eeb4(),this[_0x3117c0(0x1a4)]=_0x4793e0,this[_0x3117c0(0x18e)]=_0x57b112,this[_0x3117c0(0x1ae)]=!!_0xdcd63b,this[_0x3117c0(0x1b4)]=_0x5e0583,this[_0x3117c0(0x180)]=new _0x29261c(),this[_0x3117c0(0x19a)]=new _0x1d9b9a(),this[_0x3117c0(0x1a1)]=_0x1a3f5e(_0x150417||''),this[_0x3117c0(0x1ba)](_0x3117c0(0x1b1),_0x2c338e),this['on'](_0x3117c0(0x18b),()=>{const _0x38c007=_0x3117c0;this[_0x38c007(0x1ad)]();}),this[_0x3117c0(0x1ba)](_0x3117c0(0x188),_0x4af3ae);}[_0x352474(0x177)](_0x7d94bc){const _0x529e22=_0x352474;this[_0x529e22(0x1ba)](_0x529e22(0x188),this[_0x529e22(0x188)]+_0x7d94bc);}[_0x352474(0x1af)](){const _0x5e4934=_0x352474;this[_0x5e4934(0x1b1)]||(this[_0x5e4934(0x1ba)](_0x5e4934(0x1b1),!0x0),this[_0x5e4934(0x1ad)]());}[_0x352474(0x197)](){const _0x3bcf33=_0x352474;this[_0x3bcf33(0x189)]();}[_0x352474(0x1a9)](_0x8f3fb3,_0x2a24b4){const _0x3331c5=_0x352474;this[_0x3331c5(0x1b3)][_0x8f3fb3][_0x3331c5(0x1a0)]=_0x2a24b4,this[_0x3331c5(0x173)](_0x3331c5(0x1b0),{'reply':this,'index':_0x8f3fb3,'state':_0x2a24b4});}[_0x352474(0x194)]({showDiff:_0x242336,groupIndex:_0x17bd00}){const _0x4fe955=_0x352474;if(!this[_0x4fe955(0x1b4)])throw new _0x1eb2b7(_0x4fe955(0x1b7),null,{'aiReply':this});const _0x5c1184=this[_0x4fe955(0x1c2)](_0x242336,_0x17bd00);if(_0x5c1184)return _0x5c1184;let _0x5576c7=[];if(void 0x0===_0x17bd00)_0x5576c7=this[_0x4fe955(0x1b3)];else{const _0x3ec939=this[_0x4fe955(0x1b3)][_0x4fe955(0x175)](({index:_0xe119db})=>_0xe119db===_0x17bd00);if(!_0x3ec939)throw new _0x1eb2b7(_0x4fe955(0x176),null,{'aiReply':this,'groupIndex':_0x17bd00});_0x5576c7=[_0x3ec939];}const _0x2ff1ac=_0x9b4335({'editor':this[_0x4fe955(0x1b4)],'showDiff':_0x242336,'changeGroups':_0x5576c7,'documentContextContent':this[_0x4fe955(0x1a1)]});return this[_0x4fe955(0x17e)](_0x242336,_0x2ff1ac),_0x2ff1ac;}[_0x352474(0x1c2)](_0x33b98c,_0xf957f1){const _0x310643=_0x352474,_0x121b27=_0x33b98c?_0x310643(0x18c):_0x310643(0x183);if(!this[_0x310643(0x1b2)][_0x121b27][_0x310643(0x19d)])return null;const _0x895b46=this[_0x310643(0x1b2)][_0x121b27];if(void 0x0===_0xf957f1)return _0x156653(_0x895b46);{const _0x81e3b0=_0x895b46[_0x310643(0x175)](({index:_0x2fb447})=>_0x2fb447===_0xf957f1);if(_0x81e3b0)return[_0x156653(_0x81e3b0)];}return null;}[_0x352474(0x17e)](_0x4b664f,_0x279c28){const _0x458ce0=_0x352474,_0x3f37c3=_0x4b664f?_0x458ce0(0x18c):_0x458ce0(0x183);_0x279c28[_0x458ce0(0x17d)](_0x172620=>{const _0x5818eb=_0x458ce0,_0x40b82c=this[_0x5818eb(0x1b2)][_0x3f37c3],_0x166b8e=_0x40b82c[_0x5818eb(0x175)](({index:_0x4f3188})=>_0x4f3188===_0x172620[_0x5818eb(0x19c)]);if(_0x166b8e){const _0x19baa3=_0x40b82c[_0x5818eb(0x172)](_0x166b8e);_0x40b82c[_0x5818eb(0x181)](_0x19baa3,0x1,_0x172620);}else _0x40b82c[_0x5818eb(0x191)](_0x172620);});}[_0x352474(0x1ad)](){const _0x5b6529=_0x352474;if(_0x5b6529(0x17b)===this[_0x5b6529(0x18e)]){this[_0x5b6529(0x1c6)]=this[_0x5b6529(0x180)][_0x5b6529(0x1aa)](this[_0x5b6529(0x188)]);const _0x15f336=this[_0x5b6529(0x1b3)];this[_0x5b6529(0x19e)]();const _0x540cc8=this[_0x5b6529(0x174)](_0x15f336,this[_0x5b6529(0x1b3)]);(_0x540cc8[_0x5b6529(0x19d)]||this[_0x5b6529(0x1b1)])&&(this[_0x5b6529(0x173)](_0x5b6529(0x1a7),this,_0x540cc8),this[_0x5b6529(0x1b2)][_0x5b6529(0x18c)][_0x5b6529(0x19d)]=this[_0x5b6529(0x1b2)][_0x5b6529(0x183)][_0x5b6529(0x19d)]=0x0);}else this[_0x5b6529(0x1c6)]=this[_0x5b6529(0x180)][_0x5b6529(0x1bf)](this[_0x5b6529(0x188)]),this[_0x5b6529(0x173)](_0x5b6529(0x1a7),this);}[_0x352474(0x174)](_0x378ee9,_0x2c2f82){const _0x2bd424=_0x352474,_0x216077=[];for(const _0x35096b of _0x2c2f82){const _0x2ab952=_0x378ee9[_0x35096b[_0x2bd424(0x19c)]];_0x2ab952?_0x2ab952[_0x2bd424(0x1ac)][_0x2bd424(0x19d)]!==_0x35096b[_0x2bd424(0x1ac)][_0x2bd424(0x19d)]?_0x216077[_0x2bd424(0x191)](_0x35096b):_0x2ab952[_0x2bd424(0x1ac)][_0x2bd424(0x17d)]((_0x274cec,_0xb301fd)=>{const _0x444da0=_0x2bd424,_0x59b65c=_0x35096b[_0x444da0(0x1ac)][_0xb301fd];_0x274cec['id']!==_0x59b65c['id']&&_0x216077[_0x444da0(0x191)](_0x35096b);}):_0x216077[_0x2bd424(0x191)](_0x35096b);}return _0x216077;}[_0x352474(0x19e)](){const _0x2d5163=_0x352474,_0x4aaacb=new _0x3fbc50('p',{},[new _0x3fbc50(_0x2d5163(0x1b9),{'style':_0x2d5163(0x1bb)},[new _0x516db5(_0x501f32(this[_0x2d5163(0x1b4)][_0x2d5163(0x182)],_0x2d5163(0x1c1)))])]),_0x48c6e9=this[_0x2d5163(0x19a)][_0x2d5163(0x1b6)](this[_0x2d5163(0x1c6)],this[_0x2d5163(0x1a1)][_0x2d5163(0x170)](!0x0),{'markUnstableElements':!this[_0x2d5163(0x1b1)],'replaceRemovedWith':_0x4aaacb,'cutAfterLastChange':!this[_0x2d5163(0x1b1)]});if(!_0x48c6e9[_0x2d5163(0x184)][_0x2d5163(0x19d)]&&!this[_0x2d5163(0x1b1)])return;this[_0x2d5163(0x1b8)]=_0x48c6e9[_0x2d5163(0x1c6)];let _0x2508f7=[];if(_0xd61f12(_0x4da5cd=>{const _0x54670d=_0x2d5163,_0x4beb80=_0x186595(_0x4da5cd,_0x54670d(0x171));if(!_0x4beb80||!_0x57e3b9(_0x4beb80))return!0x1;const _0x328929=[_0x4da5cd,..._0x54ba44(_0x4da5cd)]['at'](-0x2);if(_0x4da5cd!=_0x328929){const _0x47359a=_0x186595(_0x328929,_0x54670d(0x171));_0x57e3b9(_0x47359a)||(_0x2508f7[_0x54670d(0x191)]({'node':_0x328929,'id':_0x47359a,'type':_0x54670d(0x1be)}),_0x48c6e9[_0x54670d(0x184)][_0x54670d(0x191)](_0x47359a));}else _0x48c6e9[_0x54670d(0x184)][_0x54670d(0x1b5)](_0x4beb80)?_0x2508f7[_0x54670d(0x191)]({'node':_0x4da5cd,'type':_0x54670d(0x1be),'id':_0x4beb80}):_0x48c6e9[_0x54670d(0x19f)][_0x54670d(0x1b5)](_0x4beb80)?_0x2508f7[_0x54670d(0x191)]({'node':_0x4da5cd,'type':_0x54670d(0x1a2),'id':_0x4beb80,'anchorId':_0x186595(_0x4da5cd[_0x54670d(0x1bc)],_0x54670d(0x171))}):_0x2508f7[_0x54670d(0x191)]({'node':_0x4da5cd,'type':_0x54670d(0x195),'id':_0x4beb80});return!0x0;},this[_0x2d5163(0x1b8)]),_0x2508f7=_0x2508f7[_0x2d5163(0x1ab)](({node:_0x1ed6c8})=>[..._0x54ba44(_0x1ed6c8),_0x1ed6c8][_0x2d5163(0x18f)](_0x44d4af=>!_0x186595(_0x44d4af,_0x2d5163(0x199)))),0x0==_0x2508f7[_0x2d5163(0x19d)])return;const _0x22b68d=[[_0x2508f7[0x0]]];for(let _0x3a157d=0x1;_0x3a157d<_0x2508f7[_0x2d5163(0x19d)];_0x3a157d++){const _0x2d8839=_0x22b68d[_0x22b68d[_0x2d5163(0x19d)]-0x1],_0x97fbdb=_0x2d8839[_0x2d8839[_0x2d5163(0x19d)]-0x1];_0x2508f7[_0x3a157d][_0x2d5163(0x18d)][_0x2d5163(0x1bc)]==_0x97fbdb[_0x2d5163(0x18d)]&&_0x2d5163(0x1be)!=_0x2508f7[_0x3a157d][_0x2d5163(0x18e)]&&_0x2d5163(0x1be)!=_0x97fbdb[_0x2d5163(0x18e)]?_0x2d8839[_0x2d5163(0x191)](_0x2508f7[_0x3a157d]):_0x22b68d[_0x2d5163(0x191)]([_0x2508f7[_0x3a157d]]);}for(const _0x239900 of _0x22b68d){const _0x35c7c3=_0x239900[0x0],_0x37950d=_0x239900[_0x239900[_0x2d5163(0x19d)]-0x1],_0x29b953=_0x28f1dc(_0x35c7c3[_0x2d5163(0x18d)][_0x2d5163(0x1bc)]);_0x29b953&&_0x239900[_0x2d5163(0x190)](_0x29b953);const _0x209076=_0x28f1dc(_0x37950d[_0x2d5163(0x18d)][_0x2d5163(0x18a)]);_0x209076&&_0x239900[_0x2d5163(0x191)](_0x209076);}function _0x57e3b9(_0x1fa44b){const _0x31146b=_0x2d5163;return _0x48c6e9[_0x31146b(0x184)][_0x31146b(0x1b5)](_0x1fa44b)||_0x48c6e9[_0x31146b(0x19f)][_0x31146b(0x1b5)](_0x1fa44b)||_0x48c6e9[_0x31146b(0x196)][_0x31146b(0x1b5)](_0x1fa44b);}function _0x28f1dc(_0x29500d){const _0x2713ea=_0x2d5163;if(_0x29500d&&_0x186595(_0x29500d,_0x2713ea(0x171))&&!_0x186595(_0x29500d,_0x2713ea(0x199))){const _0x4f065a=_0x186595(_0x29500d,_0x2713ea(0x171));if(!_0x57e3b9(_0x4f065a))return{'node':_0x29500d,'type':_0x2713ea(0x185),'id':_0x4f065a};}return null;}this[_0x2d5163(0x1b3)]=_0x22b68d[_0x2d5163(0x193)]((_0x144e7b,_0x165647)=>({'changes':_0x144e7b,'state':_0x2d5163(0x1c3),'index':_0x165647}));}}export function isValidReplyType(_0x1c1fc7){const _0xb0ca90=_0x352474;return Object[_0xb0ca90(0x1c5)](AI_REPLY_TYPES)[_0xb0ca90(0x1b5)](_0x1c1fc7);}export function isIgnoredReplyType(_0x275ff8){const _0x5d9585=_0x352474;return AI_REPLY_TYPES_IGNORED[_0x5d9585(0x1b5)](_0x275ff8);}function _0xebb8(_0x22444a,_0x5e94f7){const _0x13c336=_0x13c3();return _0xebb8=function(_0xebb83,_0x12b398){_0xebb83=_0xebb83-0x170;let _0x44f6b9=_0x13c336[_0xebb83];return _0x44f6b9;},_0xebb8(_0x22444a,_0x5e94f7);}export function isReplyTitleType(_0xda2949){return _0xda2949===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x191ada){const _0x39dda7=_0x352474;return _0x39dda7(0x1a8)===_0x191ada;}
|
|
23
|
+
const _0x164748=_0x59e6;function _0x3f19(){const _0x57d78b=['map','forEach','push','text-delta','type','aiResponseParser','span','235886zKuxyK','includes','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','withoutDiff','modified','values','4024NKtLhR','1471074gTPZuC','115365bPtssV','aiResponseApplier','find','convertMarkdownToHTML','updateChangeGroups','done','stopListening','modification-delta','_getCachedContentParts','removed','change:content','getContentParts','set','12dFmNgc','content','pending','new','ai-reply-get-content-parts-group-not-found','parsedContent','reasoning','documentContextContent','withDiff','replyChangeGroupStateUpdated','parseAndNormalizeHTML','areActionsDisabled','color:\x20#808080;\x20font-style:\x20italic','sources','51491UtqFzT','parsedMergedContent','1000dThrWi','newNodeIds','indexOf','data-unstable','state','source','conversation-title','onContentChange','locale','data-id','length','60XZuugF','nextSibling','unshift','_setCachedContentParts','context','interactionId','2283Sbdtlv','replyContentUpdated','splice','12397221HCgAkI','cachedSuggestionContentParts','modifiedNodeIds','index','cloneNode','changes','ai-get-editor-from-context-no-editor','fire','node','appendContent','removedNodeIds','destroy','web-search','setChangeGroupState','previousSibling','isDone','merge','changeGroups','11604080FtQacd','_getDifferentChangeGroups','editor','every'];_0x3f19=function(){return _0x57d78b;};return _0x3f19();}(function(_0x475500,_0x2b9e4d){const _0x292af0=_0x59e6,_0x45b3db=_0x475500();while(!![]){try{const _0x5ce9b5=parseInt(_0x292af0(0x10e))/0x1+-parseInt(_0x292af0(0x10d))/0x2*(parseInt(_0x292af0(0x13d))/0x3)+-parseInt(_0x292af0(0x11c))/0x4*(-parseInt(_0x292af0(0x10f))/0x5)+parseInt(_0x292af0(0x137))/0x6*(parseInt(_0x292af0(0x106))/0x7)+parseInt(_0x292af0(0xfb))/0x8+-parseInt(_0x292af0(0x140))/0x9+-parseInt(_0x292af0(0x12c))/0xa*(-parseInt(_0x292af0(0x12a))/0xb);if(_0x5ce9b5===_0x2b9e4d)break;else _0x45b3db['push'](_0x45b3db['shift']());}catch(_0x319b7f){_0x45b3db['push'](_0x45b3db['shift']());}}}(_0x3f19,0xd89f2));import{CKEditorError as _0x56611b,ObservableMixin as _0x58df9e,uid as _0x46edc5}from'ckeditor5/src/utils.js';import{Element as _0x2be3ca,findAll as _0x5d682e,getAttribute as _0x4bb938,getParents as _0x233ccd,Document as _0x38344b,parse as _0x4e23fe,Text as _0x19e2f7}from'../utils/htmlparser.js';import{AIResponseParser as _0x2d0e03}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1ba911}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2ed705}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2484a4}from'../utils/common-translations.js';import{cloneDeep as _0x5ea9e6}from'es-toolkit';export const AI_REPLY_TYPES=[_0x164748(0x116),_0x164748(0x102),_0x164748(0xf5),_0x164748(0x122)];export const AI_REPLY_TYPES_IGNORED=[_0x164748(0x132)];export const AI_REPLY_TITLE_TYPE=_0x164748(0x132);export class AIReply extends _0x58df9e(){['id'];[_0x164748(0x13c)];[_0x164748(0x103)];[_0x164748(0x129)]=[];[_0x164748(0x121)]=new _0x38344b([]);[_0x164748(0x12b)]=new _0x38344b([]);[_0x164748(0xfa)]=[];[_0x164748(0x127)]=!0x1;[_0x164748(0x123)];[_0x164748(0x104)];[_0x164748(0x110)];[_0x164748(0xfd)];[_0x164748(0x141)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x472a51,content:_0x15cba4='',isDone:_0x19f5f1=!0x1,interactionId:_0x13fe77,areActionsDisabled:_0x4c0009,documentContextContent:_0xd059f9,editor:_0x469135,id:_0x5cfdb1}){const _0xb1766f=_0x164748;super(),this['id']=_0x5cfdb1||_0x46edc5(),this[_0xb1766f(0x13c)]=_0x13fe77,this[_0xb1766f(0x103)]=_0x472a51,this[_0xb1766f(0x127)]=!!_0x4c0009,this[_0xb1766f(0xfd)]=_0x469135,this[_0xb1766f(0x104)]=new _0x2d0e03(),this[_0xb1766f(0x110)]=new _0x1ba911(),this[_0xb1766f(0x123)]=_0x4e23fe(_0xd059f9||''),this[_0xb1766f(0x11b)](_0xb1766f(0xf8),_0x19f5f1),this['on'](_0xb1766f(0x119),()=>{const _0x1824bf=_0xb1766f;this[_0x1824bf(0x133)]();}),this[_0xb1766f(0x11b)](_0xb1766f(0x11d),_0x15cba4);}[_0x164748(0xf2)](_0x183af9){const _0x1f1df9=_0x164748;this[_0x1f1df9(0x11b)](_0x1f1df9(0x11d),this[_0x1f1df9(0x11d)]+_0x183af9);}[_0x164748(0x114)](){const _0x30c4c6=_0x164748;this[_0x30c4c6(0xf8)]||(this[_0x30c4c6(0x11b)](_0x30c4c6(0xf8),!0x0),this[_0x30c4c6(0x133)]());}[_0x164748(0xf4)](){const _0x3cee27=_0x164748;this[_0x3cee27(0x115)]();}[_0x164748(0xf6)](_0x22ac45,_0x45bedb){const _0x5547b3=_0x164748;this[_0x5547b3(0xfa)][_0x22ac45][_0x5547b3(0x130)]=_0x45bedb,this[_0x5547b3(0xf0)](_0x5547b3(0x125),{'reply':this,'index':_0x22ac45,'state':_0x45bedb});}[_0x164748(0x11a)]({showDiff:_0x4cbdb2,groupIndex:_0x24f42e}){const _0x2ef93c=_0x164748;if(!this[_0x2ef93c(0xfd)])throw new _0x56611b(_0x2ef93c(0xef),null,{'aiReply':this});const _0x58b6f3=this[_0x2ef93c(0x117)](_0x4cbdb2,_0x24f42e);if(_0x58b6f3)return _0x58b6f3;let _0x1e7550=[];if(void 0x0===_0x24f42e)_0x1e7550=this[_0x2ef93c(0xfa)];else{const _0x241791=this[_0x2ef93c(0xfa)][_0x2ef93c(0x111)](({index:_0x14fb3a})=>_0x14fb3a===_0x24f42e);if(!_0x241791)throw new _0x56611b(_0x2ef93c(0x120),null,{'aiReply':this,'groupIndex':_0x24f42e});_0x1e7550=[_0x241791];}const _0x257eef=_0x2ed705({'editor':this[_0x2ef93c(0xfd)],'showDiff':_0x4cbdb2,'changeGroups':_0x1e7550,'documentContextContent':this[_0x2ef93c(0x123)]});return this[_0x2ef93c(0x13a)](_0x4cbdb2,_0x257eef),_0x257eef;}[_0x164748(0x117)](_0x3c2d7f,_0x1d898a){const _0x2a482f=_0x164748,_0x458444=_0x3c2d7f?_0x2a482f(0x124):_0x2a482f(0x10a);if(!this[_0x2a482f(0x141)][_0x458444][_0x2a482f(0x136)])return null;const _0x1e0858=this[_0x2a482f(0x141)][_0x458444];if(void 0x0===_0x1d898a)return _0x5ea9e6(_0x1e0858);{const _0x15e2f6=_0x1e0858[_0x2a482f(0x111)](({index:_0x130bdb})=>_0x130bdb===_0x1d898a);if(_0x15e2f6)return[_0x5ea9e6(_0x15e2f6)];}return null;}[_0x164748(0x13a)](_0x1f5dc0,_0xedceb2){const _0x5e87a9=_0x164748,_0x1f2725=_0x1f5dc0?_0x5e87a9(0x124):_0x5e87a9(0x10a);_0xedceb2[_0x5e87a9(0x100)](_0x3daf9f=>{const _0x4624a3=_0x5e87a9,_0x3514b3=this[_0x4624a3(0x141)][_0x1f2725],_0xd8e6a9=_0x3514b3[_0x4624a3(0x111)](({index:_0x24a52f})=>_0x24a52f===_0x3daf9f[_0x4624a3(0xec)]);if(_0xd8e6a9){const _0x11a646=_0x3514b3[_0x4624a3(0x12e)](_0xd8e6a9);_0x3514b3[_0x4624a3(0x13f)](_0x11a646,0x1,_0x3daf9f);}else _0x3514b3[_0x4624a3(0x101)](_0x3daf9f);});}[_0x164748(0x133)](){const _0x720f31=_0x164748;if(_0x720f31(0x116)===this[_0x720f31(0x103)]){this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x126)](this[_0x720f31(0x11d)]);const _0x2d9a66=this[_0x720f31(0xfa)];this[_0x720f31(0x113)]();const _0x482b6c=this[_0x720f31(0xfc)](_0x2d9a66,this[_0x720f31(0xfa)]);(_0x482b6c[_0x720f31(0x136)]||this[_0x720f31(0xf8)])&&(this[_0x720f31(0xf0)](_0x720f31(0x13e),this,_0x482b6c),this[_0x720f31(0x141)][_0x720f31(0x124)][_0x720f31(0x136)]=this[_0x720f31(0x141)][_0x720f31(0x10a)][_0x720f31(0x136)]=0x0);}else this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x112)](this[_0x720f31(0x11d)]),this[_0x720f31(0xf0)](_0x720f31(0x13e),this);}[_0x164748(0xfc)](_0x374049,_0x27906b){const _0x225648=_0x164748,_0x574b0b=[];for(const _0xd8fce5 of _0x27906b){const _0x10e4ae=_0x374049[_0xd8fce5[_0x225648(0xec)]];_0x10e4ae?_0x10e4ae[_0x225648(0xee)][_0x225648(0x136)]!==_0xd8fce5[_0x225648(0xee)][_0x225648(0x136)]?_0x574b0b[_0x225648(0x101)](_0xd8fce5):_0x10e4ae[_0x225648(0xee)][_0x225648(0x100)]((_0x4f17c2,_0x32c057)=>{const _0x1a81a5=_0x225648,_0x15bc31=_0xd8fce5[_0x1a81a5(0xee)][_0x32c057];_0x4f17c2['id']!==_0x15bc31['id']&&_0x574b0b[_0x1a81a5(0x101)](_0xd8fce5);}):_0x574b0b[_0x225648(0x101)](_0xd8fce5);}return _0x574b0b;}[_0x164748(0x113)](){const _0x497534=_0x164748,_0x12accd=new _0x2be3ca('p',{},[new _0x2be3ca(_0x497534(0x105),{'style':_0x497534(0x128)},[new _0x19e2f7(_0x2484a4(this[_0x497534(0xfd)][_0x497534(0x134)],_0x497534(0x108)))])]),_0x9c2ea6=this[_0x497534(0x110)][_0x497534(0xf9)](this[_0x497534(0x121)],this[_0x497534(0x123)][_0x497534(0xed)](!0x0),{'markUnstableElements':!this[_0x497534(0xf8)],'replaceRemovedWith':_0x12accd,'cutAfterLastChange':!this[_0x497534(0xf8)]});if(!_0x9c2ea6[_0x497534(0x142)][_0x497534(0x136)]&&!this[_0x497534(0xf8)])return;this[_0x497534(0x12b)]=_0x9c2ea6[_0x497534(0x121)];let _0x3de901=[];if(_0x5d682e(_0x2b3828=>{const _0x396e2b=_0x497534,_0x5c1526=_0x4bb938(_0x2b3828,_0x396e2b(0x135));if(!_0x5c1526||!_0x240670(_0x5c1526))return!0x1;const _0xe67cd6=[_0x2b3828,..._0x233ccd(_0x2b3828)]['at'](-0x2);if(_0x2b3828!=_0xe67cd6){const _0xbc5cc8=_0x4bb938(_0xe67cd6,_0x396e2b(0x135));_0x240670(_0xbc5cc8)||(_0x3de901[_0x396e2b(0x101)]({'node':_0xe67cd6,'id':_0xbc5cc8,'type':_0x396e2b(0x10b)}),_0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x101)](_0xbc5cc8));}else _0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x10b),'id':_0x5c1526}):_0x9c2ea6[_0x396e2b(0x12d)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x11f),'id':_0x5c1526,'anchorId':_0x4bb938(_0x2b3828[_0x396e2b(0xf7)],_0x396e2b(0x135))}):_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x118),'id':_0x5c1526});return!0x0;},this[_0x497534(0x12b)]),_0x3de901=_0x3de901[_0x497534(0x109)](({node:_0x57d6de})=>[..._0x233ccd(_0x57d6de),_0x57d6de][_0x497534(0xfe)](_0x2a14e9=>!_0x4bb938(_0x2a14e9,_0x497534(0x12f)))),0x0==_0x3de901[_0x497534(0x136)])return;const _0x55fde7=[[_0x3de901[0x0]]];for(let _0x351f34=0x1;_0x351f34<_0x3de901[_0x497534(0x136)];_0x351f34++){const _0x31fe26=_0x55fde7[_0x55fde7[_0x497534(0x136)]-0x1],_0x4dc07e=_0x31fe26[_0x31fe26[_0x497534(0x136)]-0x1];_0x3de901[_0x351f34][_0x497534(0xf1)][_0x497534(0xf7)]==_0x4dc07e[_0x497534(0xf1)]&&_0x497534(0x10b)!=_0x3de901[_0x351f34][_0x497534(0x103)]&&_0x497534(0x10b)!=_0x4dc07e[_0x497534(0x103)]?_0x31fe26[_0x497534(0x101)](_0x3de901[_0x351f34]):_0x55fde7[_0x497534(0x101)]([_0x3de901[_0x351f34]]);}for(const _0x2b20bd of _0x55fde7){const _0x3b5605=_0x2b20bd[0x0],_0x476c21=_0x2b20bd[_0x2b20bd[_0x497534(0x136)]-0x1],_0x3c54ad=_0x271126(_0x3b5605[_0x497534(0xf1)][_0x497534(0xf7)]);_0x3c54ad&&_0x2b20bd[_0x497534(0x139)](_0x3c54ad);const _0x42a925=_0x271126(_0x476c21[_0x497534(0xf1)][_0x497534(0x138)]);_0x42a925&&_0x2b20bd[_0x497534(0x101)](_0x42a925);}function _0x240670(_0x2e3963){const _0x23225b=_0x497534;return _0x9c2ea6[_0x23225b(0x142)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0x12d)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0xf3)][_0x23225b(0x107)](_0x2e3963);}function _0x271126(_0x1a6430){const _0x34b3c8=_0x497534;if(_0x1a6430&&_0x4bb938(_0x1a6430,_0x34b3c8(0x135))&&!_0x4bb938(_0x1a6430,_0x34b3c8(0x12f))){const _0x220443=_0x4bb938(_0x1a6430,_0x34b3c8(0x135));if(!_0x240670(_0x220443))return{'node':_0x1a6430,'type':_0x34b3c8(0x13b),'id':_0x220443};}return null;}this[_0x497534(0xfa)]=_0x55fde7[_0x497534(0xff)]((_0x1972c,_0x1dd330)=>({'changes':_0x1972c,'state':_0x497534(0x11e),'index':_0x1dd330}));}}export function isValidReplyType(_0x37d662){const _0x18c83d=_0x164748;return Object[_0x18c83d(0x10c)](AI_REPLY_TYPES)[_0x18c83d(0x107)](_0x37d662);}export function isIgnoredReplyType(_0x1e163d){const _0x1ea97c=_0x164748;return AI_REPLY_TYPES_IGNORED[_0x1ea97c(0x107)](_0x1e163d);}function _0x59e6(_0x5d5821,_0x51cdb2){const _0x3f1990=_0x3f19();return _0x59e6=function(_0x59e612,_0x42a3e6){_0x59e612=_0x59e612-0xec;let _0x542a32=_0x3f1990[_0x59e612];return _0x542a32;},_0x59e6(_0x5d5821,_0x51cdb2);}export function isReplyTitleType(_0x225bba){return _0x225bba===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa2cde2){const _0x51ef07=_0x164748;return _0x51ef07(0x131)===_0xa2cde2;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x1f6d0f(){[_0x37edaf(0x17a)];[_0x37edaf(0x19f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x37edaf(0x189)]=new Set();constructor(_0x55e9c7){const _0x26255e=_0x37edaf;super(),this[_0x26255e(0x17a)]=_0x55e9c7||_0x5660b1;}[_0x37edaf(0x183)](_0x2a0663,_0x46b5ff,_0x97a07){const _0xf2d240=_0x37edaf,_0x4a78bc=_0x454471(_0x2a0663);if(0x0===_0x46b5ff[_0xf2d240(0x1b2)][_0xf2d240(0x19d)]){const _0x4ff48e=[];return _0x41c237(_0xf2d240(0x1a3),_0xf2d240(0x19a),_0x4a78bc)[_0xf2d240(0x1a5)](_0x39894b=>{const _0x41c34c=_0xf2d240,_0x376112=this[_0x41c34c(0x17a)]();_0xd3bb2(_0x39894b,_0x41c34c(0x1a3),_0x376112),_0x4ff48e[_0x41c34c(0x182)](_0x376112);}),this[_0xf2d240(0x1b9)](_0x4a78bc),{'parsedContent':_0x4a78bc,'newNodeIds':_0x4ff48e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x97a07&&_0x97a07[_0xf2d240(0x1a2)]&&this[_0xf2d240(0x1b6)](_0x4a78bc),this[_0xf2d240(0x19f)][_0xf2d240(0x194)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x1b4)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x180)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x172)]=[],this[_0xf2d240(0x19f)][_0xf2d240(0x17d)]=null,this[_0xf2d240(0x189)]=new Set(_0x41c237(_0xf2d240(0x1a3),null,_0x46b5ff)[_0xf2d240(0x17e)](_0x5fa964=>_0x4bf908(_0x5fa964,_0xf2d240(0x1a3)))[_0xf2d240(0x1ae)](_0x43dc19=>!!_0x43dc19));let _0x563bd4=-0x1,_0x525db9=!0x1;const _0x4d8e2f=_0x4a78bc[_0xf2d240(0x1b2)],_0xa3ed7c=Array[_0xf2d240(0x176)](_0x4d8e2f)[_0xf2d240(0x1ae)](_0x2934e0=>!(0x3===_0x2934e0[_0xf2d240(0x173)]&&''===_0x1bb420(_0x2934e0)[_0xf2d240(0x174)]())),_0x3c761c=_0xa3ed7c[_0xf2d240(0x19d)];for(let _0x406130=0x0;_0x406130<_0x3c761c;_0x406130++){const _0x1c9974=_0xa3ed7c[_0x406130],_0x1e202a=_0xa3ed7c[_0x406130+0x1];if(this[_0xf2d240(0x184)](_0x1c9974)){if(-0x1===_0x563bd4&&(_0x563bd4=_0x406130),this[_0xf2d240(0x17f)](_0x1c9974),!this[_0xf2d240(0x184)](_0x1e202a)){const [_0x513acf,_0x58d64d]=this[_0xf2d240(0x18d)](_0x1c9974,_0x525db9,_0x46b5ff);if(_0x513acf){const _0x12f212=Array[_0xf2d240(0x176)](_0xa3ed7c)[_0xf2d240(0x19c)](_0x563bd4,_0x406130+0x1);this[_0xf2d240(0x1af)](_0x513acf,_0x12f212,_0x58d64d),_0x563bd4=-0x1;}}}else{if(this[_0xf2d240(0x1b5)](_0x1c9974))_0x525db9=!0x0;else{if(this[_0xf2d240(0x188)](_0x1c9974)){const _0x43f802=_0x4bf908(_0x1c9974,_0xf2d240(0x1a3));if(_0x43f802&&this[_0xf2d240(0x189)][_0xf2d240(0x1ac)](_0x43f802)){const _0x1892e8=_0x3841a1(_0xf2d240(0x1a3),_0x43f802,_0x46b5ff);this[_0xf2d240(0x178)](_0x1892e8,_0x1c9974);}if(this[_0xf2d240(0x19f)][_0xf2d240(0x180)][_0xf2d240(0x171)](_0x43f802)){const _0x22cd12=this[_0xf2d240(0x19f)][_0xf2d240(0x180)][_0xf2d240(0x17b)](_0x43f802);this[_0xf2d240(0x19f)][_0xf2d240(0x180)][_0xf2d240(0x17c)](_0x22cd12,0x1);}}else{if(this[_0xf2d240(0x1ad)](_0x1c9974)){const _0x37197b=_0x4bf908(_0x1c9974,_0xf2d240(0x1a3));this[_0xf2d240(0x19f)][_0xf2d240(0x1b4)][_0xf2d240(0x171)](_0x37197b)||this[_0xf2d240(0x1a8)](_0x1c9974);}}}}}for(const _0x144bd3 of this[_0xf2d240(0x19f)][_0xf2d240(0x180)]){const _0x10f1cd=_0x3841a1(_0xf2d240(0x1a3),_0x144bd3,_0x46b5ff);if(_0x10f1cd){if(_0x97a07&&_0x97a07[_0xf2d240(0x190)]){this[_0xf2d240(0x19f)][_0xf2d240(0x17d)]=_0x144bd3;const _0x4b71f5=_0x97a07[_0xf2d240(0x190)][_0xf2d240(0x18b)](!0x0);_0xd3bb2(_0x4b71f5,_0xf2d240(0x1a3),_0x144bd3),_0xd3bb2(_0x4b71f5,_0xf2d240(0x198),_0xf2d240(0x18f)),_0x35e59f(_0x10f1cd,_0x4b71f5);}else _0x3de413(_0x10f1cd);}}if(_0x41c237(_0xf2d240(0x186),null,_0x46b5ff)[_0xf2d240(0x1a5)](_0x313fa5=>{const _0x4a6674=_0xf2d240,_0x253f84=_0x4bf908(_0x313fa5,_0x4a6674(0x186)),_0x130985=_0x3841a1(_0x4a6674(0x1a3),_0x253f84,_0x46b5ff);_0x130985&&_0x2832f3(_0x130985,_0x313fa5);}),_0x41c237(_0xf2d240(0x1a3),_0xf2d240(0x19a),_0x46b5ff)[_0xf2d240(0x1a5)](_0x56ca27=>{const _0x440c8e=_0xf2d240,_0x50b2de=this[_0x440c8e(0x175)](_0x56ca27);_0xd3bb2(_0x56ca27,_0x440c8e(0x1a3),_0x50b2de),this[_0x440c8e(0x19f)][_0x440c8e(0x194)][_0x440c8e(0x182)](_0x50b2de);}),this[_0xf2d240(0x1b9)](_0x46b5ff),_0x97a07&&_0x97a07[_0xf2d240(0x1a2)]&&this[_0xf2d240(0x1aa)](_0x46b5ff,_0x97a07[_0xf2d240(0x1ab)]||0x0),_0x97a07&&_0x97a07[_0xf2d240(0x1a6)]&&this[_0xf2d240(0x19f)][_0xf2d240(0x17d)]){let _0x272a00=_0x3841a1(_0xf2d240(0x1a3),this[_0xf2d240(0x19f)][_0xf2d240(0x17d)],_0x46b5ff);for(;_0x272a00;)_0x10cc21(_0x272a00),_0x272a00=_0x272a00[_0xf2d240(0x19e)];}return{'parsedContent':_0x46b5ff,'newNodeIds':this[_0xf2d240(0x19f)][_0xf2d240(0x194)],'modifiedNodeIds':this[_0xf2d240(0x19f)][_0xf2d240(0x1b4)],'removedNodeIds':this[_0xf2d240(0x19f)][_0xf2d240(0x180)]};}[_0x37edaf(0x1af)](_0x1fb53e,_0x4c4b93,_0x6739bf){const _0x513d4a=_0x37edaf;for(const _0x1baebd of _0x4c4b93){const _0x247361=this[_0x513d4a(0x175)](_0x1baebd);_0xd3bb2(_0x1baebd,_0x513d4a(0x1a3),_0x247361),this[_0x513d4a(0x19f)][_0x513d4a(0x194)][_0x513d4a(0x182)](_0x247361),this[_0x513d4a(0x19f)][_0x513d4a(0x17d)]=_0x247361;}const _0x363895=_0x513d4a(0x1b8)===_0x6739bf||_0x513d4a(0x192)===_0x6739bf?_0x4c4b93[_0x513d4a(0x19b)]():_0x4c4b93;for(const _0x398c2e of _0x363895)_0x3ff344(_0x1fb53e,_0x398c2e,_0x6739bf);}[_0x37edaf(0x178)](_0x29cc98,_0x10e545){const _0x3b1014=_0x37edaf;if(!_0x29cc98)return;if(_0x41dbde(_0x29cc98,_0x10e545))return;const _0x43da21=this[_0x3b1014(0x175)](_0x29cc98);_0xd3bb2(_0x10e545,_0x3b1014(0x1a3),_0x43da21),this[_0x3b1014(0x19f)][_0x3b1014(0x1b4)][_0x3b1014(0x182)](_0x43da21),this[_0x3b1014(0x19f)][_0x3b1014(0x17d)]=_0x43da21,_0x35e59f(_0x29cc98,_0x10e545[_0x3b1014(0x18b)](!0x0));}[_0x37edaf(0x18d)](_0x51866b,_0x48a26a,_0x10cd32){const _0x5087bc=_0x37edaf,_0x2abdb5=this[_0x5087bc(0x191)](_0x51866b,!0x1);if(_0x2abdb5){const _0x98cf81=this[_0x5087bc(0x1b3)](_0x2abdb5),_0x27625d=_0x3841a1(_0x5087bc(0x1a3),_0x98cf81,_0x10cd32);if(_0x27625d)return[_0x27625d,_0x5087bc(0x192)];this[_0x5087bc(0x19f)][_0x5087bc(0x172)][_0x5087bc(0x182)](_0x98cf81);}const _0x42dbed=this[_0x5087bc(0x18e)](_0x51866b,!0x1);if(_0x42dbed){const _0x1e9802=this[_0x5087bc(0x1b3)](_0x42dbed),_0x3b54f1=_0x3841a1(_0x5087bc(0x1a3),_0x1e9802,_0x10cd32);if(_0x3b54f1)return[_0x3b54f1,_0x5087bc(0x199)];this[_0x5087bc(0x19f)][_0x5087bc(0x172)][_0x5087bc(0x182)](_0x1e9802);}return _0x48a26a?_0x51866b[_0x5087bc(0x181)]?this[_0x5087bc(0x1b1)](_0x51866b,_0x10cd32):[_0x10cd32[_0x5087bc(0x1b2)][_0x10cd32[_0x5087bc(0x1b2)][_0x5087bc(0x19d)]-0x1],_0x5087bc(0x192)]:[_0x10cd32[_0x5087bc(0x1b2)][0x0],_0x5087bc(0x199)];}[_0x37edaf(0x1b1)](_0x568143,_0x4a91da){const _0x38c5b5=_0x37edaf,_0x5c0e53=[],_0xf638dc=this[_0x38c5b5(0x191)](_0x568143,!0x0);if(_0xf638dc){const _0x42cdbe=this[_0x38c5b5(0x1b3)](_0xf638dc),_0x38ba14=_0x3841a1(_0x38c5b5(0x1a3),_0x42cdbe,_0x4a91da);_0x38ba14&&_0x5c0e53[_0x38c5b5(0x182)]([_0x38ba14,_0x38c5b5(0x192)]);}const _0x362f65=this[_0x38c5b5(0x18e)](_0x568143,!0x0);if(_0x362f65){const _0x5cd646=this[_0x38c5b5(0x1b3)](_0x362f65),_0x2ba3cb=_0x3841a1(_0x38c5b5(0x1a3),_0x5cd646,_0x4a91da);_0x2ba3cb&&_0x5c0e53[_0x38c5b5(0x182)]([_0x2ba3cb,_0x38c5b5(0x199)]);}if(_0x5c0e53[_0x38c5b5(0x19d)]>0x1)return _0x555755(_0x5c0e53[0x0][0x0])<=_0x555755(_0x5c0e53[0x1][0x0])?_0x5c0e53[0x0]:_0x5c0e53[0x1];return 0x1===_0x5c0e53[_0x38c5b5(0x19d)]?_0x5c0e53[0x0]:[_0x4a91da[_0x38c5b5(0x187)],_0x38c5b5(0x192)];}[_0x37edaf(0x18e)](_0x54ae25,_0x349285){const _0x3089ae=_0x37edaf;let _0x39e0e4=_0x54ae25[_0x3089ae(0x181)],_0xbadf72=null,_0x1f5a9f=!0x1;for(;_0x39e0e4;){if(_0x2dba0f(_0x39e0e4)){if(this[_0x3089ae(0x1ad)](_0x39e0e4)&&(_0xbadf72=_0x39e0e4),this[_0x3089ae(0x1b5)](_0x39e0e4)&&_0x349285&&!_0x1f5a9f){_0x1f5a9f=!0x0,_0x39e0e4=_0x39e0e4[_0x3089ae(0x181)];continue;}break;}const _0x33bdba=_0x4bf908(_0x39e0e4,_0x3089ae(0x1a3));if(_0x33bdba&&_0x3089ae(0x19a)!==_0x33bdba&&this[_0x3089ae(0x189)][_0x3089ae(0x1ac)](_0x33bdba)){_0xbadf72=_0x39e0e4;break;}_0x39e0e4=_0x39e0e4[_0x3089ae(0x181)];}return _0xbadf72;}[_0x37edaf(0x191)](_0x2a0e2f,_0x1de98a){const _0xe95688=_0x37edaf;let _0x33c760=_0x2a0e2f[_0xe95688(0x193)],_0x3698b9=null,_0x35ea43=!0x1;for(;_0x33c760;){if(_0x2dba0f(_0x33c760)){if(this[_0xe95688(0x1ad)](_0x33c760)&&(_0x3698b9=_0x33c760),this[_0xe95688(0x1b5)](_0x33c760)&&_0x1de98a&&!_0x35ea43){_0x35ea43=!0x0,_0x33c760=_0x33c760[_0xe95688(0x193)];continue;}break;}const _0x50a224=_0x4bf908(_0x33c760,_0xe95688(0x1a3));if(_0x50a224&&_0xe95688(0x19a)!==_0x50a224&&this[_0xe95688(0x189)][_0xe95688(0x1ac)](_0x50a224)){_0x3698b9=_0x33c760;break;}_0x33c760=_0x33c760[_0xe95688(0x193)];}return _0x3698b9;}[_0x37edaf(0x17f)](_0x56adcf){const _0x56bb77=_0x37edaf;_0x27321f(_0x56adcf)&&_0x41c237(_0x56bb77(0x1a3),null,_0x56adcf)[_0x56bb77(0x1a5)](_0x4cc831=>{const _0x1ddcd5=_0x56bb77;if(this[_0x1ddcd5(0x188)](_0x4cc831)&&!this[_0x1ddcd5(0x185)](_0x4cc831)){const _0x533f01=_0x4bf908(_0x4cc831,_0x1ddcd5(0x1a3));_0xd3bb2(_0x4cc831,_0x1ddcd5(0x186),_0x533f01),_0xd3bb2(_0x4cc831,_0x1ddcd5(0x1a3),null);}});}[_0x37edaf(0x1b3)](_0x25c6f5){const _0x48a2dd=_0x37edaf;if(!_0x25c6f5)return null;if(_0x27321f(_0x25c6f5))return _0x4bf908(_0x25c6f5,_0x48a2dd(0x1a3));if(_0x2dba0f(_0x25c6f5)){const _0x2cbb1b=_0x1bb420(_0x25c6f5)[_0x48a2dd(0x18c)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2cbb1b&&_0x2cbb1b[0x1])return _0x2cbb1b[0x1];}return null;}[_0x37edaf(0x1a8)](_0x2668d7){const _0x179236=_0x37edaf;if(_0x2dba0f(_0x2668d7)){const _0x276ed=_0x1bb420(_0x2668d7)[_0x179236(0x18c)](/removed[\s*-]data-id="([^"]+)"/);_0x276ed&&_0x276ed[0x1]&&this[_0x179236(0x19f)][_0x179236(0x180)][_0x179236(0x182)](_0x276ed[0x1]);}}[_0x37edaf(0x175)](_0x3eabdd){const _0x37a028=_0x37edaf;return this[_0x37a028(0x188)](_0x3eabdd)?_0x4bf908(_0x3eabdd,_0x37a028(0x1a3)):this[_0x37a028(0x17a)]();}[_0x37edaf(0x1b9)](_0x4e029b){const _0x600475=_0x37edaf;_0x4970bb(_0x4e029b)[_0x600475(0x1ae)](_0x277958=>this[_0x600475(0x1ad)](_0x277958)||this[_0x600475(0x1b5)](_0x277958))[_0x600475(0x1a5)](_0x5a98b4=>{_0x3de413(_0x5a98b4);});}[_0x37edaf(0x1b6)](_0xd2d06e){const _0x5b1c87=_0x37edaf,_0x35d15a=_0xd2d06e[_0x5b1c87(0x1b2)],_0x1f5015=_0x35d15a[_0x35d15a[_0x5b1c87(0x19d)]-0x1];_0x1f5015&&_0x27321f(_0x1f5015)&&_0xd3bb2(_0x1f5015,_0x5b1c87(0x197),_0x5b1c87(0x18f));}[_0x37edaf(0x1aa)](_0x2740f8,_0x1ccaf3){const _0x12ebb3=_0x37edaf,_0x74476c=_0x3841a1(_0x12ebb3(0x197),_0x12ebb3(0x18f),_0x2740f8);if(!_0x74476c)return;const _0x460ca2=_0x13488f(_0x74476c)[_0x12ebb3(0x19c)](0x0,-0x1),_0x4bcf97=_0x460ca2[_0x12ebb3(0x19d)];let _0x248a9b=_0x74476c;if(_0x4bcf97>_0x1ccaf3){let _0x520288=_0x4bcf97,_0x1030c5=null;for(;_0x520288>_0x1ccaf3&&_0x520288>=0x0;)_0x520288--,_0x1030c5=_0x460ca2[_0x520288];_0x1030c5&&(_0x248a9b=_0x1030c5,_0xd3bb2(_0x74476c,_0x12ebb3(0x197),null),_0xd3bb2(_0x1030c5,_0x12ebb3(0x197),_0x12ebb3(0x18f)));}else{if(_0x4bcf97<_0x1ccaf3){let _0x8d538=_0x4bcf97,_0x16eeb3=_0x74476c;for(;_0x8d538<_0x1ccaf3;){const _0x3d349b=_0x16eeb3[_0x12ebb3(0x1b2)][_0x12ebb3(0x1ae)](_0x3946dd=>_0x27321f(_0x3946dd));if(0x0===_0x3d349b[_0x12ebb3(0x19d)])break;_0x8d538++,_0x16eeb3=_0x3d349b[_0x3d349b[_0x12ebb3(0x19d)]-0x1];}_0x16eeb3&&(_0x248a9b=_0x16eeb3,_0xd3bb2(_0x74476c,_0x12ebb3(0x197),null),_0xd3bb2(_0x16eeb3,_0x12ebb3(0x197),_0x12ebb3(0x18f)));}}let _0x1da13a=_0x248a9b;for(;_0x1da13a;){for(;_0x1da13a[_0x12ebb3(0x181)];)_0x1da13a=_0x1da13a[_0x12ebb3(0x181)],_0x27321f(_0x1da13a)&&_0xd3bb2(_0x1da13a,_0x12ebb3(0x197),_0x12ebb3(0x18f));_0x1da13a=_0x1da13a[_0x12ebb3(0x19e)];}}[_0x37edaf(0x184)](_0x4297db){const _0x1fb4af=_0x37edaf;return Boolean(_0x1fb4af(0x19a)===_0x4bf908(_0x4297db,_0x1fb4af(0x1a3)));}[_0x37edaf(0x188)](_0x2c632d){const _0x64a5c3=_0x37edaf;return Boolean((_0x4bf908(_0x2c632d,_0x64a5c3(0x1a3))||'')[_0x64a5c3(0x19d)]>0x0&&_0x64a5c3(0x19a)!==_0x4bf908(_0x2c632d,_0x64a5c3(0x1a3)));}[_0x37edaf(0x1ad)](_0x243007){const _0x372d03=_0x37edaf;return!!_0x243007&&Boolean(_0x2dba0f(_0x243007)&&_0x1bb420(_0x243007)[_0x372d03(0x18c)](/removed[\s*-]data-id="[^"]+"/));}[_0x37edaf(0x185)](_0x29626c){const _0x13b524=_0x37edaf;let _0x375933=_0x29626c[_0x13b524(0x19e)];for(;_0x375933;){if(_0x4bf908(_0x375933,_0x13b524(0x186)))return!0x0;_0x375933=_0x375933[_0x13b524(0x19e)];}return!0x1;}[_0x37edaf(0x1b5)](_0x58638a){const _0xef7eb1=_0x37edaf;return Boolean(_0x2dba0f(_0x58638a)&&_0x1bb420(_0x58638a)[_0xef7eb1(0x18c)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x11de9e=_0x2bb1;(function(_0x508a13,_0x4ab57b){const _0x24d5b1=_0x2bb1,_0xfbf4b1=_0x508a13();while(!![]){try{const _0x20a375=-parseInt(_0x24d5b1(0xd2))/0x1*(parseInt(_0x24d5b1(0xd9))/0x2)+-parseInt(_0x24d5b1(0xf6))/0x3+-parseInt(_0x24d5b1(0xfb))/0x4*(-parseInt(_0x24d5b1(0x10d))/0x5)+-parseInt(_0x24d5b1(0xf2))/0x6*(parseInt(_0x24d5b1(0xfa))/0x7)+parseInt(_0x24d5b1(0xc4))/0x8*(parseInt(_0x24d5b1(0x10b))/0x9)+-parseInt(_0x24d5b1(0x100))/0xa*(-parseInt(_0x24d5b1(0xcd))/0xb)+parseInt(_0x24d5b1(0xfe))/0xc*(-parseInt(_0x24d5b1(0xf9))/0xd);if(_0x20a375===_0x4ab57b)break;else _0xfbf4b1['push'](_0xfbf4b1['shift']());}catch(_0x1a41d5){_0xfbf4b1['push'](_0xfbf4b1['shift']());}}}(_0x34d4,0xb3fd5));function _0x34d4(){const _0x1251a2=['7woaFBY','137072pwAewv','_markUnstableElements','_findFallbackReferenceNode','12NRTmJk','afterbegin','927370tlSqck','push','slice','merge','data-wrapped-id','childNodes','reverse','_markLastTagElementUnstable','length','_isExistingNode','cloneNode','3027771HqwPKx','data-id','160YBJiMO','32coZnCA','data-unstable','_isExistingContentComment','splice','from','nextSibling','parentNode','markUnstableElements','indexOf','11LccgGv','_removeSpecialComments','_findReferenceNode','removedIds','true','1HsqePq','_touchedNodesState','beforebegin','_markWrappedElements','data-removed','afterend','_isNewNode','2225836WmSNoW','lastChild','markUnstableElementsDepth','previousSibling','includes','map','_insertNodes','filter','_replaceNode','replaceRemovedWith','_getNodeDataId','_existingDataIds','_findPrevElementWithDataId','_findNextElementWithDataId','invalidIds','cutAfterLastChange','has','match','forEach','nodeType','modifiedIds','_hasWrappedParent','new-element','lastTouchedId','_storeDeletedElementIds','1164882PxxRjn','_isDelNode','_generateUid','_getUid','1025616WJruFl','newIds','trim','1934595lWpeXe'];_0x34d4=function(){return _0x1251a2;};return _0x34d4();}import{ObservableMixin as _0x24d659,uid as _0x286459}from'ckeditor5/src/utils.js';function _0x2bb1(_0x4a2c41,_0x33c0f7){const _0x34d448=_0x34d4();return _0x2bb1=function(_0x2bb1e5,_0x2c26e0){_0x2bb1e5=_0x2bb1e5-0xc4;let _0x3d50c8=_0x34d448[_0x2bb1e5];return _0x3d50c8;},_0x2bb1(_0x4a2c41,_0x33c0f7);}import{findAllByAttribute as _0x469be7,findByAttribute as _0x203772,getAttribute as _0xbf53f2,isComment as _0xb10e39,isTag as _0x31a714,insertElement as _0x54a7b6,moveElement as _0x429156,removeElement as _0x438fd0,replaceElement as _0x3ab67b,serialize as _0x243c05,setAttribute as _0x4c04ff,clone as _0xcbd285,findAllComments as _0x39d7b2,getParents as _0x5b1fd7,getNodeNestingLevel as _0xe646f0,areNodesSame as _0x5766b9,removeElementsAfter as _0x12cb4a}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24d659(){[_0x11de9e(0xf4)];[_0x11de9e(0xd3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x11de9e(0xe4)]=new Set();constructor(_0x557b2c){const _0x4494d9=_0x11de9e;super(),this[_0x4494d9(0xf4)]=_0x557b2c||_0x286459;}[_0x11de9e(0x103)](_0x187502,_0x4a4073,_0x36cd15){const _0x475836=_0x11de9e,_0x191ba5=_0xcbd285(_0x187502);if(0x0===_0x4a4073[_0x475836(0x105)][_0x475836(0x108)]){const _0x2b2ad9=[];return _0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x191ba5)[_0x475836(0xeb)](_0x302988=>{const _0x357a9f=_0x475836,_0x5454f6=this[_0x357a9f(0xf4)]();_0x4c04ff(_0x302988,_0x357a9f(0x10c),_0x5454f6),_0x2b2ad9[_0x357a9f(0x101)](_0x5454f6);}),this[_0x475836(0xce)](_0x191ba5),{'parsedContent':_0x191ba5,'newNodeIds':_0x2b2ad9,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0x107)](_0x191ba5),this[_0x475836(0xd3)][_0x475836(0xf7)]=[],this[_0x475836(0xd3)][_0x475836(0xed)]=[],this[_0x475836(0xd3)][_0x475836(0xd0)]=[],this[_0x475836(0xd3)][_0x475836(0xe7)]=[],this[_0x475836(0xd3)][_0x475836(0xf0)]=null,this[_0x475836(0xe4)]=new Set(_0x469be7(_0x475836(0x10c),null,_0x4a4073)[_0x475836(0xde)](_0x4f9703=>_0xbf53f2(_0x4f9703,_0x475836(0x10c)))[_0x475836(0xe0)](_0x222f9d=>!!_0x222f9d));let _0x21ee67=-0x1,_0x3d7967=!0x1;const _0x1509fb=_0x191ba5[_0x475836(0x105)],_0x59c7bf=Array[_0x475836(0xc8)](_0x1509fb)[_0x475836(0xe0)](_0x47c0d1=>!(0x3===_0x47c0d1[_0x475836(0xec)]&&''===_0x243c05(_0x47c0d1)[_0x475836(0xf8)]())),_0x3b2879=_0x59c7bf[_0x475836(0x108)];for(let _0x3a9926=0x0;_0x3a9926<_0x3b2879;_0x3a9926++){const _0x1f758a=_0x59c7bf[_0x3a9926],_0x5a5106=_0x59c7bf[_0x3a9926+0x1];if(this[_0x475836(0xd8)](_0x1f758a)){if(-0x1===_0x21ee67&&(_0x21ee67=_0x3a9926),this[_0x475836(0xd5)](_0x1f758a),!this[_0x475836(0xd8)](_0x5a5106)){const [_0x1bdbfb,_0x27fbf9]=this[_0x475836(0xcf)](_0x1f758a,_0x3d7967,_0x4a4073);if(_0x1bdbfb){const _0x6a9e17=Array[_0x475836(0xc8)](_0x59c7bf)[_0x475836(0x102)](_0x21ee67,_0x3a9926+0x1);this[_0x475836(0xdf)](_0x1bdbfb,_0x6a9e17,_0x27fbf9),_0x21ee67=-0x1;}}}else{if(this[_0x475836(0xc6)](_0x1f758a))_0x3d7967=!0x0;else{if(this[_0x475836(0x109)](_0x1f758a)){const _0x5ba1d5=_0xbf53f2(_0x1f758a,_0x475836(0x10c));if(_0x5ba1d5&&this[_0x475836(0xe4)][_0x475836(0xe9)](_0x5ba1d5)){const _0x59de86=_0x203772(_0x475836(0x10c),_0x5ba1d5,_0x4a4073);this[_0x475836(0xe1)](_0x59de86,_0x1f758a);}if(this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xdd)](_0x5ba1d5)){const _0x55cd3b=this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xcc)](_0x5ba1d5);this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xc7)](_0x55cd3b,0x1);}}else{if(this[_0x475836(0xf3)](_0x1f758a)){const _0x28393e=_0xbf53f2(_0x1f758a,_0x475836(0x10c));this[_0x475836(0xd3)][_0x475836(0xed)][_0x475836(0xdd)](_0x28393e)||this[_0x475836(0xf1)](_0x1f758a);}}}}}for(const _0x3f63be of this[_0x475836(0xd3)][_0x475836(0xd0)]){const _0x958dde=_0x203772(_0x475836(0x10c),_0x3f63be,_0x4a4073);if(_0x958dde){if(_0x36cd15&&_0x36cd15[_0x475836(0xe2)]){this[_0x475836(0xd3)][_0x475836(0xf0)]=_0x3f63be;const _0x5f52d6=_0x36cd15[_0x475836(0xe2)][_0x475836(0x10a)](!0x0);_0x4c04ff(_0x5f52d6,_0x475836(0x10c),_0x3f63be),_0x4c04ff(_0x5f52d6,_0x475836(0xd6),_0x475836(0xd1)),_0x3ab67b(_0x958dde,_0x5f52d6);}else _0x438fd0(_0x958dde);}}if(_0x469be7(_0x475836(0x104),null,_0x4a4073)[_0x475836(0xeb)](_0xc3df39=>{const _0x268727=_0x475836,_0x1a1cba=_0xbf53f2(_0xc3df39,_0x268727(0x104)),_0x3268d5=_0x203772(_0x268727(0x10c),_0x1a1cba,_0x4a4073);_0x3268d5&&_0x429156(_0x3268d5,_0xc3df39);}),_0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x4a4073)[_0x475836(0xeb)](_0x4bc8d0=>{const _0x1787f8=_0x475836,_0x2b40b7=this[_0x1787f8(0xf5)](_0x4bc8d0);_0x4c04ff(_0x4bc8d0,_0x1787f8(0x10c),_0x2b40b7),this[_0x1787f8(0xd3)][_0x1787f8(0xf7)][_0x1787f8(0x101)](_0x2b40b7);}),this[_0x475836(0xce)](_0x4a4073),_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0xfc)](_0x4a4073,_0x36cd15[_0x475836(0xdb)]||0x0),_0x36cd15&&_0x36cd15[_0x475836(0xe8)]&&this[_0x475836(0xd3)][_0x475836(0xf0)]){let _0x35155f=_0x203772(_0x475836(0x10c),this[_0x475836(0xd3)][_0x475836(0xf0)],_0x4a4073);for(;_0x35155f;)_0x12cb4a(_0x35155f),_0x35155f=_0x35155f[_0x475836(0xca)];}return{'parsedContent':_0x4a4073,'newNodeIds':this[_0x475836(0xd3)][_0x475836(0xf7)],'modifiedNodeIds':this[_0x475836(0xd3)][_0x475836(0xed)],'removedNodeIds':this[_0x475836(0xd3)][_0x475836(0xd0)]};}[_0x11de9e(0xdf)](_0x158c3c,_0x370e80,_0x22d351){const _0x178d97=_0x11de9e;for(const _0x2a8962 of _0x370e80){const _0x398a42=this[_0x178d97(0xf5)](_0x2a8962);_0x4c04ff(_0x2a8962,_0x178d97(0x10c),_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf7)][_0x178d97(0x101)](_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf0)]=_0x398a42;}const _0x3a8069=_0x178d97(0xff)===_0x22d351||_0x178d97(0xd7)===_0x22d351?_0x370e80[_0x178d97(0x106)]():_0x370e80;for(const _0xf69eb4 of _0x3a8069)_0x54a7b6(_0x158c3c,_0xf69eb4,_0x22d351);}[_0x11de9e(0xe1)](_0x23e585,_0x2c3151){const _0x3356b6=_0x11de9e;if(!_0x23e585)return;if(_0x5766b9(_0x23e585,_0x2c3151))return;const _0x33c8cb=this[_0x3356b6(0xf5)](_0x23e585);_0x4c04ff(_0x2c3151,_0x3356b6(0x10c),_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xed)][_0x3356b6(0x101)](_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xf0)]=_0x33c8cb,_0x3ab67b(_0x23e585,_0x2c3151[_0x3356b6(0x10a)](!0x0));}[_0x11de9e(0xcf)](_0x16de4f,_0x253e2b,_0x265b01){const _0x49e472=_0x11de9e,_0x43a0ec=this[_0x49e472(0xe5)](_0x16de4f,!0x1);if(_0x43a0ec){const _0x1b9b63=this[_0x49e472(0xe3)](_0x43a0ec),_0x3a6032=_0x203772(_0x49e472(0x10c),_0x1b9b63,_0x265b01);if(_0x3a6032)return[_0x3a6032,_0x49e472(0xd7)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1b9b63);}const _0x355641=this[_0x49e472(0xe6)](_0x16de4f,!0x1);if(_0x355641){const _0x1e09cd=this[_0x49e472(0xe3)](_0x355641),_0x2dfa34=_0x203772(_0x49e472(0x10c),_0x1e09cd,_0x265b01);if(_0x2dfa34)return[_0x2dfa34,_0x49e472(0xd4)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1e09cd);}return _0x253e2b?_0x16de4f[_0x49e472(0xc9)]?this[_0x49e472(0xfd)](_0x16de4f,_0x265b01):[_0x265b01[_0x49e472(0x105)][_0x265b01[_0x49e472(0x105)][_0x49e472(0x108)]-0x1],_0x49e472(0xd7)]:[_0x265b01[_0x49e472(0x105)][0x0],_0x49e472(0xd4)];}[_0x11de9e(0xfd)](_0x178362,_0x17f072){const _0x36559b=_0x11de9e,_0x3bb4b8=[],_0x1362d2=this[_0x36559b(0xe5)](_0x178362,!0x0);if(_0x1362d2){const _0x2f48b8=this[_0x36559b(0xe3)](_0x1362d2),_0x4749e0=_0x203772(_0x36559b(0x10c),_0x2f48b8,_0x17f072);_0x4749e0&&_0x3bb4b8[_0x36559b(0x101)]([_0x4749e0,_0x36559b(0xd7)]);}const _0x13c5d7=this[_0x36559b(0xe6)](_0x178362,!0x0);if(_0x13c5d7){const _0x3f59d1=this[_0x36559b(0xe3)](_0x13c5d7),_0x1044ce=_0x203772(_0x36559b(0x10c),_0x3f59d1,_0x17f072);_0x1044ce&&_0x3bb4b8[_0x36559b(0x101)]([_0x1044ce,_0x36559b(0xd4)]);}if(_0x3bb4b8[_0x36559b(0x108)]>0x1)return _0xe646f0(_0x3bb4b8[0x0][0x0])<=_0xe646f0(_0x3bb4b8[0x1][0x0])?_0x3bb4b8[0x0]:_0x3bb4b8[0x1];return 0x1===_0x3bb4b8[_0x36559b(0x108)]?_0x3bb4b8[0x0]:[_0x17f072[_0x36559b(0xda)],_0x36559b(0xd7)];}[_0x11de9e(0xe6)](_0x279439,_0x1451cf){const _0x507a88=_0x11de9e;let _0x3e1a7=_0x279439[_0x507a88(0xc9)],_0x452e24=null,_0x358e29=!0x1;for(;_0x3e1a7;){if(_0xb10e39(_0x3e1a7)){if(this[_0x507a88(0xf3)](_0x3e1a7)&&(_0x452e24=_0x3e1a7),this[_0x507a88(0xc6)](_0x3e1a7)&&_0x1451cf&&!_0x358e29){_0x358e29=!0x0,_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];continue;}break;}const _0x3828a6=_0xbf53f2(_0x3e1a7,_0x507a88(0x10c));if(_0x3828a6&&_0x507a88(0xef)!==_0x3828a6&&this[_0x507a88(0xe4)][_0x507a88(0xe9)](_0x3828a6)){_0x452e24=_0x3e1a7;break;}_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];}return _0x452e24;}[_0x11de9e(0xe5)](_0x10cb98,_0x5b2bcc){const _0x5ed628=_0x11de9e;let _0x38d2a7=_0x10cb98[_0x5ed628(0xdc)],_0x4dfc8f=null,_0x39b47c=!0x1;for(;_0x38d2a7;){if(_0xb10e39(_0x38d2a7)){if(this[_0x5ed628(0xf3)](_0x38d2a7)&&(_0x4dfc8f=_0x38d2a7),this[_0x5ed628(0xc6)](_0x38d2a7)&&_0x5b2bcc&&!_0x39b47c){_0x39b47c=!0x0,_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];continue;}break;}const _0x1e0dba=_0xbf53f2(_0x38d2a7,_0x5ed628(0x10c));if(_0x1e0dba&&_0x5ed628(0xef)!==_0x1e0dba&&this[_0x5ed628(0xe4)][_0x5ed628(0xe9)](_0x1e0dba)){_0x4dfc8f=_0x38d2a7;break;}_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];}return _0x4dfc8f;}[_0x11de9e(0xd5)](_0x1a0901){const _0x21bbe9=_0x11de9e;_0x31a714(_0x1a0901)&&_0x469be7(_0x21bbe9(0x10c),null,_0x1a0901)[_0x21bbe9(0xeb)](_0x431780=>{const _0x37b3b8=_0x21bbe9;if(this[_0x37b3b8(0x109)](_0x431780)&&!this[_0x37b3b8(0xee)](_0x431780)){const _0x5566ad=_0xbf53f2(_0x431780,_0x37b3b8(0x10c));_0x4c04ff(_0x431780,_0x37b3b8(0x104),_0x5566ad),_0x4c04ff(_0x431780,_0x37b3b8(0x10c),null);}});}[_0x11de9e(0xe3)](_0xac06e1){const _0x28b6ab=_0x11de9e;if(!_0xac06e1)return null;if(_0x31a714(_0xac06e1))return _0xbf53f2(_0xac06e1,_0x28b6ab(0x10c));if(_0xb10e39(_0xac06e1)){const _0x3934bb=_0x243c05(_0xac06e1)[_0x28b6ab(0xea)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3934bb&&_0x3934bb[0x1])return _0x3934bb[0x1];}return null;}[_0x11de9e(0xf1)](_0x4a4ebc){const _0x626c54=_0x11de9e;if(_0xb10e39(_0x4a4ebc)){const _0x136f38=_0x243c05(_0x4a4ebc)[_0x626c54(0xea)](/removed[\s*-]data-id="([^"]+)"/);_0x136f38&&_0x136f38[0x1]&&this[_0x626c54(0xd3)][_0x626c54(0xd0)][_0x626c54(0x101)](_0x136f38[0x1]);}}[_0x11de9e(0xf5)](_0x381734){const _0x2a652e=_0x11de9e;return this[_0x2a652e(0x109)](_0x381734)?_0xbf53f2(_0x381734,_0x2a652e(0x10c)):this[_0x2a652e(0xf4)]();}[_0x11de9e(0xce)](_0x5e6de3){const _0x623879=_0x11de9e;_0x39d7b2(_0x5e6de3)[_0x623879(0xe0)](_0x5e6a97=>this[_0x623879(0xf3)](_0x5e6a97)||this[_0x623879(0xc6)](_0x5e6a97))[_0x623879(0xeb)](_0x5a5746=>{_0x438fd0(_0x5a5746);});}[_0x11de9e(0x107)](_0x21e9eb){const _0x211efd=_0x11de9e,_0x3af43f=_0x21e9eb[_0x211efd(0x105)],_0x50aebc=_0x3af43f[_0x3af43f[_0x211efd(0x108)]-0x1];_0x50aebc&&_0x31a714(_0x50aebc)&&_0x4c04ff(_0x50aebc,_0x211efd(0xc5),_0x211efd(0xd1));}[_0x11de9e(0xfc)](_0x26ec21,_0x455abf){const _0x41cc60=_0x11de9e,_0xf8faa9=_0x203772(_0x41cc60(0xc5),_0x41cc60(0xd1),_0x26ec21);if(!_0xf8faa9)return;const _0xa6a619=_0x5b1fd7(_0xf8faa9)[_0x41cc60(0x102)](0x0,-0x1),_0x41e3ae=_0xa6a619[_0x41cc60(0x108)];let _0x1222ef=_0xf8faa9;if(_0x41e3ae>_0x455abf){let _0x328ee8=_0x41e3ae,_0x3e0d7a=null;for(;_0x328ee8>_0x455abf&&_0x328ee8>=0x0;)_0x328ee8--,_0x3e0d7a=_0xa6a619[_0x328ee8];_0x3e0d7a&&(_0x1222ef=_0x3e0d7a,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x3e0d7a,_0x41cc60(0xc5),_0x41cc60(0xd1)));}else{if(_0x41e3ae<_0x455abf){let _0x52cc39=_0x41e3ae,_0x395eb4=_0xf8faa9;for(;_0x52cc39<_0x455abf;){const _0x4b8cf4=_0x395eb4[_0x41cc60(0x105)][_0x41cc60(0xe0)](_0x4996f0=>_0x31a714(_0x4996f0));if(0x0===_0x4b8cf4[_0x41cc60(0x108)])break;_0x52cc39++,_0x395eb4=_0x4b8cf4[_0x4b8cf4[_0x41cc60(0x108)]-0x1];}_0x395eb4&&(_0x1222ef=_0x395eb4,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x395eb4,_0x41cc60(0xc5),_0x41cc60(0xd1)));}}let _0x3491f1=_0x1222ef;for(;_0x3491f1;){for(;_0x3491f1[_0x41cc60(0xc9)];)_0x3491f1=_0x3491f1[_0x41cc60(0xc9)],_0x31a714(_0x3491f1)&&_0x4c04ff(_0x3491f1,_0x41cc60(0xc5),_0x41cc60(0xd1));_0x3491f1=_0x3491f1[_0x41cc60(0xca)];}}[_0x11de9e(0xd8)](_0x7eb748){const _0x59eecb=_0x11de9e;return Boolean(_0x59eecb(0xef)===_0xbf53f2(_0x7eb748,_0x59eecb(0x10c)));}[_0x11de9e(0x109)](_0x3f8296){const _0x4ae19f=_0x11de9e;return Boolean((_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c))||'')[_0x4ae19f(0x108)]>0x0&&_0x4ae19f(0xef)!==_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c)));}[_0x11de9e(0xf3)](_0x31461a){const _0x362751=_0x11de9e;return!!_0x31461a&&Boolean(_0xb10e39(_0x31461a)&&_0x243c05(_0x31461a)[_0x362751(0xea)](/removed[\s*-]data-id="[^"]+"/));}[_0x11de9e(0xee)](_0x55d666){const _0x44fb34=_0x11de9e;let _0x32d31f=_0x55d666[_0x44fb34(0xca)];for(;_0x32d31f;){if(_0xbf53f2(_0x32d31f,_0x44fb34(0x104)))return!0x0;_0x32d31f=_0x32d31f[_0x44fb34(0xca)];}return!0x1;}[_0x11de9e(0xc6)](_0x1c20e7){const _0x3109e5=_0x11de9e;return Boolean(_0xb10e39(_0x1c20e7)&&_0x243c05(_0x1c20e7)[_0x3109e5(0xea)](/\s*existing[\s*-](content|document)\s*/g));}}
|