@ckeditor/ckeditor5-ai 47.2.0-alpha.3 → 47.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/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/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/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/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/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/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/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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3d1a(){const _0x480c35=['set','554974UIqmFV','indexOf','filter','setTemplate','1090zciRdf','find','ck-ai-chat-history__section','itemsViews','div','3342053ZATItY','addMany','isMatching','getItem','title','removeItem','remove','21263najkyb','highlightText','ck-hidden','ck-ai-chat-history__section-title','bindTemplate','70TjVXjP','58gacaQl','isVisible','items','8zNQBmv','666WKycAS','splice','64224TrUTuG','54921GZnFki','7150kDNuQh','19112QgTApE','length','24UYavHq','_itemsListView'];_0x3d1a=function(){return _0x480c35;};return _0x3d1a();}const _0x321aa6=_0xe5f1;(function(_0x2a47f0,_0x37c5a9){const _0x4286c9=_0xe5f1,_0x22045c=_0x2a47f0();while(!![]){try{const _0x411aa2=parseInt(_0x4286c9(0x198))/0x1*(-parseInt(_0x4286c9(0x190))/0x2)+parseInt(_0x4286c9(0x197))/0x3*(-parseInt(_0x4286c9(0x193))/0x4)+parseInt(_0x4286c9(0x18f))/0x5*(-parseInt(_0x4286c9(0x196))/0x6)+parseInt(_0x4286c9(0x19e))/0x7+-parseInt(_0x4286c9(0x199))/0x8*(parseInt(_0x4286c9(0x194))/0x9)+-parseInt(_0x4286c9(0x1a2))/0xa*(-parseInt(_0x4286c9(0x18a))/0xb)+parseInt(_0x4286c9(0x19b))/0xc*(parseInt(_0x4286c9(0x183))/0xd);if(_0x411aa2===_0x37c5a9)break;else _0x22045c['push'](_0x22045c['shift']());}catch(_0x1a862e){_0x22045c['push'](_0x22045c['shift']());}}}(_0x3d1a,0x3903f));function _0xe5f1(_0xf8b97d,_0x3919c5){const _0x3d1a04=_0x3d1a();return _0xe5f1=function(_0xe5f10b,_0x85843f){_0xe5f10b=_0xe5f10b-0x183;let _0x486cd9=_0x3d1a04[_0xe5f10b];return _0x486cd9;},_0xe5f1(_0xf8b97d,_0x3919c5);}import{ListItemView as _0x44c530,View as _0x5c4cc6,ListView as _0x2aa11d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x44c530{[_0x321aa6(0x187)];[_0x321aa6(0x1a5)];[_0x321aa6(0x19c)];constructor(_0x13a0e5,{title:_0x101793,items:_0x34a846}){const _0x1739bd=_0x321aa6;super(_0x13a0e5);const _0x2bf980=this[_0x1739bd(0x18e)];this[_0x1739bd(0x19d)](_0x1739bd(0x191),!0x0),this[_0x1739bd(0x187)]=_0x101793,this[_0x1739bd(0x1a5)]=_0x34a846;const _0x223d02=new _0x5c4cc6(_0x13a0e5);_0x223d02[_0x1739bd(0x1a1)]({'tag':_0x1739bd(0x1a6),'attributes':{'class':[_0x1739bd(0x18d)]},'children':[this[_0x1739bd(0x187)]]}),this[_0x1739bd(0x19c)]=new _0x2aa11d(_0x13a0e5),this[_0x1739bd(0x19c)][_0x1739bd(0x192)][_0x1739bd(0x184)](this[_0x1739bd(0x1a5)]),this[_0x1739bd(0x1a1)]({'tag':'li','attributes':{'class':[_0x1739bd(0x1a4),_0x2bf980['if'](_0x1739bd(0x191),_0x1739bd(0x18c),_0xdef01=>!_0xdef01)]},'children':[_0x223d02,this[_0x1739bd(0x19c)]]});}[_0x321aa6(0x1a0)](_0x5f09bf){const _0x9db865=_0x321aa6,_0x5bf53d=this[_0x9db865(0x1a5)][_0x9db865(0x19a)];let _0x3adf32=0x0;for(const _0x4c2b60 of this[_0x9db865(0x1a5)]){if(_0x5f09bf){const _0x1e8d07=_0x4c2b60[_0x9db865(0x185)](_0x5f09bf);_0x4c2b60[_0x9db865(0x191)]=!!_0x1e8d07,_0x4c2b60[_0x9db865(0x18b)](_0x5f09bf);}else _0x4c2b60[_0x9db865(0x191)]=!0x0,_0x4c2b60[_0x9db865(0x18b)](null);_0x4c2b60[_0x9db865(0x191)]&&_0x3adf32++;}return this[_0x9db865(0x191)]=_0x3adf32>0x0,{'resultsCount':_0x3adf32,'totalItemsCount':_0x5bf53d};}[_0x321aa6(0x186)](_0x36cf4b){const _0x583240=_0x321aa6;return this[_0x583240(0x1a5)][_0x583240(0x1a3)](_0x428a88=>_0x428a88['id']===_0x36cf4b);}[_0x321aa6(0x188)](_0x994979){const _0x5e36f0=_0x321aa6,_0x4a9192=this[_0x5e36f0(0x1a5)][_0x5e36f0(0x19f)](_0x994979);-0x1!==_0x4a9192&&(this[_0x5e36f0(0x1a5)][_0x5e36f0(0x195)](_0x4a9192,0x1),this[_0x5e36f0(0x19c)][_0x5e36f0(0x192)][_0x5e36f0(0x189)](_0x994979));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x350e69=_0x3a9b;function _0x1976(){const _0x5850c6=['84033VMPfKH','776iJNYIj','733931tYFqBz','211707NEgaTa','ck-ai-chat-history__sections','4rgcJUh','filter','sections','addMany','9168418MmaETn','extendTemplate','56780RwtGHc','items','341339VxthFU','376EqdIfx','5862402mvHhQF','530AjCbXx'];_0x1976=function(){return _0x5850c6;};return _0x1976();}function _0x3a9b(_0xec99d0,_0x419995){const _0x197678=_0x1976();return _0x3a9b=function(_0x3a9b18,_0x119c9b){_0x3a9b18=_0x3a9b18-0x168;let _0x1b817e=_0x197678[_0x3a9b18];return _0x1b817e;},_0x3a9b(_0xec99d0,_0x419995);}(function(_0x253495,_0x343487){const _0x41a191=_0x3a9b,_0x4566bf=_0x253495();while(!![]){try{const _0x16bf9f=-parseInt(_0x41a191(0x171))/0x1+parseInt(_0x41a191(0x169))/0x2*(-parseInt(_0x41a191(0x178))/0x3)+parseInt(_0x41a191(0x172))/0x4*(parseInt(_0x41a191(0x16f))/0x5)+-parseInt(_0x41a191(0x173))/0x6+-parseInt(_0x41a191(0x16d))/0x7+parseInt(_0x41a191(0x176))/0x8*(-parseInt(_0x41a191(0x175))/0x9)+-parseInt(_0x41a191(0x174))/0xa*(-parseInt(_0x41a191(0x177))/0xb);if(_0x16bf9f===_0x343487)break;else _0x4566bf['push'](_0x4566bf['shift']());}catch(_0x428501){_0x4566bf['push'](_0x4566bf['shift']());}}}(_0x1976,0xe2b9e));import{ListView as _0x274b5e}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x274b5e{[_0x350e69(0x16b)];constructor(_0x6864ae,_0x20041c){const _0x170c3f=_0x350e69;super(_0x6864ae),this[_0x170c3f(0x16b)]=_0x20041c,this[_0x170c3f(0x170)][_0x170c3f(0x16c)](this[_0x170c3f(0x16b)]),this[_0x170c3f(0x16e)]({'attributes':{'class':[_0x170c3f(0x168)]}});}[_0x350e69(0x16a)](_0x4710e1){const _0x3c9b54=_0x350e69;let _0x4989ab=0x0,_0xa635a1=0x0;for(const _0x36009d of this[_0x3c9b54(0x16b)]){const {resultsCount:_0x5ca266,totalItemsCount:_0x306b58}=_0x36009d[_0x3c9b54(0x16a)](_0x4710e1);_0x4989ab+=_0x5ca266,_0xa635a1+=_0x306b58;}return{'resultsCount':_0x4989ab,'totalItemsCount':_0xa635a1};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c97a3=_0x4b4c;(function(_0x21cdf7,_0x5a3e56){const _0x339c94=_0x4b4c,_0x3d3462=_0x21cdf7();while(!![]){try{const _0x1f064b=-parseInt(_0x339c94(0x169))/0x1+parseInt(_0x339c94(0x17e))/0x2*(parseInt(_0x339c94(0x189))/0x3)+-parseInt(_0x339c94(0x17b))/0x4*(parseInt(_0x339c94(0x176))/0x5)+-parseInt(_0x339c94(0x17c))/0x6+-parseInt(_0x339c94(0x14b))/0x7+parseInt(_0x339c94(0x150))/0x8*(-parseInt(_0x339c94(0x182))/0x9)+parseInt(_0x339c94(0x191))/0xa;if(_0x1f064b===_0x5a3e56)break;else _0x3d3462['push'](_0x3d3462['shift']());}catch(_0x2810ef){_0x3d3462['push'](_0x3d3462['shift']());}}}(_0x1419,0x52a4b));import{View as _0x1bd8e4,SearchTextView as _0x193651,FormHeaderView as _0x59a2a4,ButtonView as _0xb8a249}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xaf8765,IconCancel as _0x4aa1e7,IconPlus as _0x25a466}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x35c875}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x10c55a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5808d6}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x20d28d}from'../aichathistoryui.js';import{AISkeletonView as _0x10dcc8,SKELETON_DEFINITIONS as _0x565505}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3fa6eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x3fad78}from'../../aicore/utils/common-translations.js';function _0x1419(){const _0x287233=['remove','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_refreshSearch','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','fire','title','AI_CHAT_HISTORY_SEARCH_LABEL','indexOf','10iGlOoA','skeletonView','isMaximized','ck-ai-chat__start-conversation','ck-hidden','541580faTqOE','1697568KBXgtD','searchView','4934ZDdSiZ','search','addMany','extendTemplate','135KlUMpa','_createSkeletonView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-error','AI_CHAT_HISTORY_HEADING','fieldView','ck-ai-chat-history','591CmSJdj','ck-reset_all','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty','splice','value','change:hasItems','emptyView','13516050xKezhQ','_createListItemViews','updateLoadingState','hasItems','ck-ai-chat-history__content','isSearchViewVisible','queryView','_createErrorView','add','change:errorMessage','removeHistoryItem','delegate','updateItemLoadingState','itemsViews','execute','ck-rounded-corners','errorMessage','_createEmptyStateView','removeItem','isEmptyViewVisible','set','2835273TeVpZH','AI_CHAT_LABEL_NEW_CHAT','_createSearchView','items','div','158552DzjvPz','bindTemplate','render','element','openChat','aiHistory','some','resizeButton','ltr','isVisible','ck-ai-chat-history__empty-message','updateHistoryItemsWithCategories','updateItemTitle','push','clear','_updateViewVisibility','setTemplate','locale','getItem','sectionsView','children','change:isLoading','isLoading','sections','errorView','243055MaePgS','length','bind','ck-ai-chat-error__dismiss-button'];_0x1419=function(){return _0x287233;};return _0x1419();}function _0x4b4c(_0x3ecf7e,_0x35dc79){const _0x141938=_0x1419();return _0x4b4c=function(_0x4b4c60,_0x471146){_0x4b4c60=_0x4b4c60-0x143;let _0x203da5=_0x141938[_0x4b4c60];return _0x203da5;},_0x4b4c(_0x3ecf7e,_0x35dc79);}export class AIChatHistoryView extends _0x1bd8e4{[_0x3c97a3(0x17d)];[_0x3c97a3(0x168)];[_0x3c97a3(0x177)];[_0x3c97a3(0x190)];[_0x3c97a3(0x163)];[_0x3c97a3(0x157)];constructor(_0x32867b,_0x1fbfaa){const _0x1a1017=_0x3c97a3;super(_0x32867b),this[_0x1a1017(0x14a)](_0x1a1017(0x194),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x166),!0x0),this[_0x1a1017(0x14a)](_0x1a1017(0x146),''),this[_0x1a1017(0x14a)](_0x1a1017(0x178),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x196),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x149),!0x1);const _0x55c652=new _0x59a2a4(_0x32867b,{'label':_0x3fad78(_0x32867b,_0x1a1017(0x186)),'icon':_0xaf8765,'class':_0x1a1017(0x184)});_0x1fbfaa&&(this[_0x1a1017(0x157)]=_0x3fa6eb(_0x32867b,this),_0x55c652[_0x1a1017(0x164)][_0x1a1017(0x199)](this[_0x1a1017(0x157)])),this[_0x1a1017(0x163)]=new _0x35c875(_0x32867b,[]),this[_0x1a1017(0x163)][_0x1a1017(0x19c)](..._0x20d28d)['to'](this),this[_0x1a1017(0x168)]=this[_0x1a1017(0x198)](),this[_0x1a1017(0x177)]=this[_0x1a1017(0x183)](),this[_0x1a1017(0x190)]=this[_0x1a1017(0x147)](),this[_0x1a1017(0x17d)]=this[_0x1a1017(0x14d)](),this['on'](_0x1a1017(0x165),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x18f),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x19a),()=>this[_0x1a1017(0x15f)]()),this[_0x1a1017(0x160)]({'tag':_0x1a1017(0x14f),'attributes':{'class':['ck',_0x1a1017(0x18a),_0x1a1017(0x188),_0x1a1017(0x145)],'dir':_0x1a1017(0x158)},'children':[_0x55c652,{'tag':_0x1a1017(0x14f),'attributes':{'class':[_0x1a1017(0x195)]},'children':[this[_0x1a1017(0x177)],this[_0x1a1017(0x168)],this[_0x1a1017(0x190)],this[_0x1a1017(0x17d)]]}]});}[_0x3c97a3(0x15f)](){const _0x2499a8=_0x3c97a3;this[_0x2499a8(0x196)]=!this[_0x2499a8(0x166)]&&this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)],this[_0x2499a8(0x149)]=!this[_0x2499a8(0x166)]&&!this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)];}[_0x3c97a3(0x14d)](){const _0x9465f0=_0x3c97a3,_0x5de5ee=new _0x193651(this[_0x9465f0(0x161)],{'filteredView':this[_0x9465f0(0x163)],'queryView':{'label':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x174))},'infoView':{'text':{'notFound':{'primary':_0x54a0f5=>_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x16e),_0x54a0f5),'secondary':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x171))}}}});return _0x5de5ee['on'](_0x9465f0(0x152),()=>{const _0x2cfffc=_0x9465f0;this[_0x2cfffc(0x17d)][_0x2cfffc(0x164)][_0x2cfffc(0x199)](this[_0x2cfffc(0x168)],0x1);}),_0x5de5ee[_0x9465f0(0x181)]({'attributes':{'class':[this[_0x9465f0(0x151)]['if'](_0x9465f0(0x196),_0x9465f0(0x17a),_0x3cc4cc=>!_0x3cc4cc)]}}),_0x5de5ee;}[_0x3c97a3(0x183)](){const _0xccd21c=_0x3c97a3,_0x303b9f=new _0x10dcc8(this[_0xccd21c(0x161)],_0x565505[_0xccd21c(0x155)]);return _0x303b9f[_0xccd21c(0x181)]({'attributes':{'class':[this[_0xccd21c(0x151)]['if'](_0xccd21c(0x166),_0xccd21c(0x17a),_0x4a4aee=>!_0x4a4aee)]}}),_0x303b9f;}[_0x3c97a3(0x198)](){const _0x44e2bc=_0x3c97a3,_0xc30959=new _0x1bd8e4(this[_0x44e2bc(0x161)]),_0x4dbc8=new _0xb8a249(this[_0x44e2bc(0x161)]);return _0x4dbc8[_0x44e2bc(0x14a)]({'withText':!0x1,'icon':_0x4aa1e7,'class':_0x44e2bc(0x16c)}),_0x4dbc8[_0x44e2bc(0x16b)](_0x44e2bc(0x159))['to'](this,_0x44e2bc(0x194),_0x28cc94=>!!_0x28cc94),_0x4dbc8['on'](_0x44e2bc(0x144),()=>{const _0x349704=_0x44e2bc;this[_0x349704(0x146)]='';}),_0xc30959[_0x44e2bc(0x160)]({'tag':_0x44e2bc(0x14f),'attributes':{'class':['ck',_0x44e2bc(0x185),this[_0x44e2bc(0x151)]['if'](_0x44e2bc(0x146),_0x44e2bc(0x17a),_0x593f66=>!_0x593f66)]},'children':[{'tag':'p','children':[{'text':this[_0x44e2bc(0x151)]['to'](_0x44e2bc(0x146))}]},_0x4dbc8]}),_0xc30959;}[_0x3c97a3(0x147)](){const _0x2cdf9c=_0x3c97a3,_0x3261d3=new _0xb8a249(this[_0x2cdf9c(0x161)]);_0x3261d3[_0x2cdf9c(0x14a)]({'label':_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x14c)),'withText':!0x0,'icon':_0x25a466,'class':_0x2cdf9c(0x179)}),_0x3261d3['on'](_0x2cdf9c(0x144),()=>{const _0x150005=_0x2cdf9c;this[_0x150005(0x172)](_0x150005(0x154));});const _0x593d6f=new _0x1bd8e4(this[_0x2cdf9c(0x161)]);return _0x593d6f[_0x2cdf9c(0x160)]({'tag':_0x2cdf9c(0x14f),'attributes':{'class':[_0x2cdf9c(0x18c),this[_0x2cdf9c(0x151)]['if'](_0x2cdf9c(0x149),_0x2cdf9c(0x17a),_0x34e75a=>!_0x34e75a)]},'children':[{'tag':'p','attributes':{'class':[_0x2cdf9c(0x15a)]},'children':[_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x18b))]},_0x3261d3]}),_0x593d6f;}[_0x3c97a3(0x192)](_0x7ab09e,_0x10de94){const _0x549977=_0x3c97a3,_0x45b1a1=[];for(const _0x525cd0 of _0x7ab09e){const _0x3a9da7=new _0x5808d6(_0x10de94,_0x525cd0);_0x3a9da7[_0x549977(0x19c)](..._0x20d28d)['to'](this),_0x45b1a1[_0x549977(0x15d)](_0x3a9da7);}return _0x45b1a1;}[_0x3c97a3(0x15b)](_0x13099e){const _0x2245df=_0x3c97a3,_0x443e53=this[_0x2245df(0x161)]||'en',_0x5af563=[];for(const _0x118e94 of _0x13099e){const _0x2bb058=this[_0x2245df(0x192)](_0x118e94[_0x2245df(0x14e)],_0x443e53);_0x5af563[_0x2245df(0x15d)](new _0x10c55a(_0x443e53,{'title':_0x118e94[_0x2245df(0x173)],'items':_0x2bb058}));}this[_0x2245df(0x163)][_0x2245df(0x167)]=_0x5af563,this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x15e)](),this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x180)](_0x5af563),this[_0x2245df(0x194)]=_0x13099e[_0x2245df(0x156)](_0x269c63=>_0x269c63[_0x2245df(0x14e)][_0x2245df(0x16a)]>0x0),this[_0x2245df(0x16f)]();}[_0x3c97a3(0x19b)](_0x394b45){const _0xb27787=_0x3c97a3;for(const _0x343ba0 of this[_0xb27787(0x163)][_0xb27787(0x167)]){const _0x29b064=_0x343ba0[_0xb27787(0x162)](_0x394b45);if(_0x29b064){if(_0x343ba0[_0xb27787(0x148)](_0x29b064),0x0===_0x343ba0[_0xb27787(0x143)][_0xb27787(0x16a)]){const _0x39d2e1=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x175)](_0x343ba0);-0x1!==_0x39d2e1&&(this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x18d)](_0x39d2e1,0x1),this[_0xb27787(0x163)][_0xb27787(0x14e)][_0xb27787(0x16d)](_0x343ba0));}this[_0xb27787(0x194)]=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x16a)]>0x0,this[_0xb27787(0x16f)]();break;}}}[_0x3c97a3(0x15c)](_0x20e919,_0x5bbdba){const _0x4a0450=_0x3c97a3;for(const _0x5401bd of this[_0x4a0450(0x163)][_0x4a0450(0x167)]){const _0xf234fb=_0x5401bd[_0x4a0450(0x162)](_0x20e919);if(_0xf234fb){_0xf234fb[_0x4a0450(0x170)](_0x5bbdba);break;}}}[_0x3c97a3(0x19d)](_0x52b455,_0x2fe85d,_0x5d6d3c){const _0x2a87a9=_0x3c97a3;for(const _0x5ce735 of this[_0x2a87a9(0x163)][_0x2a87a9(0x167)]){const _0x2edbcf=_0x5ce735[_0x2a87a9(0x162)](_0x52b455);if(_0x2edbcf){_0x2edbcf[_0x2a87a9(0x193)](_0x2fe85d,_0x5d6d3c);break;}}}[_0x3c97a3(0x16f)](){const _0x636098=_0x3c97a3;if(this[_0x636098(0x194)]){const _0x4c0a2d=this[_0x636098(0x17d)][_0x636098(0x197)][_0x636098(0x187)]?.[_0x636098(0x153)]?.[_0x636098(0x18e)]||'';this[_0x636098(0x17d)][_0x636098(0x17f)](_0x4c0a2d);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x8eb8(){const _0x208626=['define','MAKE_TONE_CASUAL','decode','CloudServices','upsertCustomAIReviewRating','/conversations','uploadDocument','pluginName','application/json','catch','_decoder','1253858IYRyhB','then','translate','_getStreamReader','text','581680obwGXT','fetchConversation','/messages/','396MPLMCc','true','stringify','/conversations?','executeCustomAction','uploadUrl','/ratings','/models/1','PATCH','keys','read','limit','/messages','AIConnector','file','7836zlgJcB','context','data','fetchConversations','ai-request-aborted','make-shorter','push','FIX_GRAMMAR','request','make-tone-casual','body','releaseLock','feed','upsertAIReviewRating','Content-Type','TRANSLATE','excludeEmpty','uploadFile','get','ai.serviceUrl','reset','/reviews/custom/calls','/web-resources/','/actions/system/','/calls','upsertAIChatRating','name','_sendApiRequest','init','38QfBWyO','/documents/','_handleError','plugins','length','POST','MAKE_TONE_FORMAL','100','getModels','/conversations/','attributes','/files','abortController','getReader','ai-missing-token','executeAction','make-tone-formal','PUT','status','group','isPremiumPlugin','1788182fvdOVs','callSystemReview','260pOftqi','IMPROVE_WRITING','/reviews/system/','callCustomReview','/reviews/custom/calls/','make-longer','deleteConversation','isOfficialPlugin','totalCount','fetchDocument','deleteWebResource','improve-writing','_token','/actions/custom/calls','requires','value','321832RNtBsX','startConversation','statusText','CONTINUE','_apiUrl','/web-resources','DELETE','json','266547pcovRu','continue','MAKE_SHORTER','/files/','deleteDocument','config','595whFAOa','updateConversation','4167570CzIMts','fix-grammar','/actions/custom/calls/','deleteFile','queryAssistant','MAKE_LONGER','/documents','toString','search','token','ai-request-failed','/calls/','Bearer\x20','positiveCount','GET','items','append','AbortError','upsertCustomAIActionRating','modificationId','fetchConversationMessages','upsertAIActionRating','parse','https://ai.cke-cs.com/v1','signal'];_0x8eb8=function(){return _0x208626;};return _0x8eb8();}const _0x26b8d3=_0x3589;(function(_0x3e4c2a,_0x99bc4){const _0x20f7ac=_0x3589,_0x36e64f=_0x3e4c2a();while(!![]){try{const _0x17f672=parseInt(_0x20f7ac(0x23c))/0x1+-parseInt(_0x20f7ac(0x1e1))/0x2*(parseInt(_0x20f7ac(0x210))/0x3)+-parseInt(_0x20f7ac(0x1b2))/0x4+-parseInt(_0x20f7ac(0x218))/0x5+-parseInt(_0x20f7ac(0x1c4))/0x6*(parseInt(_0x20f7ac(0x216))/0x7)+parseInt(_0x20f7ac(0x208))/0x8*(-parseInt(_0x20f7ac(0x1b5))/0x9)+parseInt(_0x20f7ac(0x1f8))/0xa*(parseInt(_0x20f7ac(0x1f6))/0xb);if(_0x17f672===_0x99bc4)break;else _0x36e64f['push'](_0x36e64f['shift']());}catch(_0x4bc88f){_0x36e64f['push'](_0x36e64f['shift']());}}}(_0x8eb8,0xe39df));import{createParser as _0xeac24c}from'eventsource-parser';function _0x3589(_0x5a0878,_0x392b4a){const _0x8eb82f=_0x8eb8();return _0x3589=function(_0x3589e9,_0x4dc704){_0x3589e9=_0x3589e9-0x1b0;let _0xe35a70=_0x8eb82f[_0x3589e9];return _0xe35a70;},_0x3589(_0x5a0878,_0x392b4a);}import{ContextPlugin as _0x323787}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d585d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2b0c2e){const _0x54968e=_0x3589;_0x2b0c2e[_0x54968e(0x20b)]=_0x54968e(0x211),_0x2b0c2e[_0x54968e(0x1cb)]=_0x54968e(0x219),_0x2b0c2e[_0x54968e(0x1f9)]=_0x54968e(0x203),_0x2b0c2e[_0x54968e(0x21d)]=_0x54968e(0x1fd),_0x2b0c2e[_0x54968e(0x212)]=_0x54968e(0x1c9),_0x2b0c2e[_0x54968e(0x232)]=_0x54968e(0x1cd),_0x2b0c2e[_0x54968e(0x1e7)]=_0x54968e(0x1f1),_0x2b0c2e[_0x54968e(0x1d3)]=_0x54968e(0x23e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x323787{[_0x26b8d3(0x20c)];[_0x26b8d3(0x204)];[_0x26b8d3(0x23b)];static get[_0x26b8d3(0x206)](){const _0x362510=_0x26b8d3;return[_0x362510(0x234)];}static get[_0x26b8d3(0x238)](){const _0x3d3e8b=_0x26b8d3;return _0x3d3e8b(0x1c2);}static get[_0x26b8d3(0x1ff)](){return!0x0;}static get[_0x26b8d3(0x1f5)](){return!0x0;}constructor(_0x334ca6){const _0x23d888=_0x26b8d3;super(_0x334ca6),this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x231)](_0x23d888(0x1d7),_0x23d888(0x22f)),this[_0x23d888(0x20c)]=this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x1d6)](_0x23d888(0x1d7)),this[_0x23d888(0x204)]=null,this[_0x23d888(0x23b)]=new TextDecoder();}[_0x26b8d3(0x1e0)](){const _0x11a9fb=_0x26b8d3,_0x2c4541=this[_0x11a9fb(0x1c5)][_0x11a9fb(0x1e4)][_0x11a9fb(0x1d6)](_0x11a9fb(0x234));if(!_0x2c4541[_0x11a9fb(0x221)])throw new _0x4d585d(_0x11a9fb(0x1ef),this);this[_0x11a9fb(0x204)]=_0x2c4541[_0x11a9fb(0x221)];}[_0x26b8d3(0x209)](_0x43132f,_0x46692d){const _0x55ca94=_0x26b8d3,_0x288dca=this[_0x55ca94(0x1df)](_0x55ca94(0x236),_0x55ca94(0x1e6),{'id':_0x43132f,'group':_0x46692d});return{'getConversation':async()=>(await _0x288dca[_0x55ca94(0x1cc)])[_0x55ca94(0x20f)](),'abortController':_0x288dca[_0x55ca94(0x1ed)]};}[_0x26b8d3(0x21c)]({message:_0x822647,conversationId:_0x1e12a4,parts:_0x59e0de,capabilities:_0xc369e7,model:_0x5345d1,quickActionData:_0x560f89}){const _0xa5ac78=_0x26b8d3,_0x215e75={..._0x560f89&&{'quickActionData':_0x560f89}},_0x5841b4={'prompt':_0x822647,'content':_0x59e0de,'model':_0x5345d1,..._0xc369e7&&{'capabilities':_0xc369e7},...Object[_0xa5ac78(0x1be)](_0x215e75)[_0xa5ac78(0x1e5)]>0x0&&{'attributes':_0x215e75}},_0x47e085=this[_0xa5ac78(0x1df)](_0xa5ac78(0x1ea)+_0x1e12a4+_0xa5ac78(0x1c1),_0xa5ac78(0x1e6),_0x5841b4);return{'getStream':async()=>{const _0x64b8b7=_0xa5ac78,_0x24d56b=(await _0x47e085[_0x64b8b7(0x1cc)])[_0x64b8b7(0x1ce)];return this[_0x64b8b7(0x1b0)](_0x24d56b);},'abortController':_0x47e085[_0xa5ac78(0x1ed)]};}[_0x26b8d3(0x1b9)]({content:_0x13e804,message:_0x30a99e,model:_0x23983b,outputFormat:_0x40d130}){const _0x4575fa=_0x26b8d3,_0x45ff2a={'content':[{'type':_0x4575fa(0x1b1),'content':_0x13e804}],'prompt':_0x30a99e,'model':_0x23983b,'outputFormat':_0x40d130},_0x5194b7=this[_0x4575fa(0x1df)](_0x4575fa(0x205),_0x4575fa(0x1e6),_0x45ff2a);return{'getStream':async()=>{const _0x28a36f=_0x4575fa,_0x5561fe=(await _0x5194b7[_0x28a36f(0x1cc)])[_0x28a36f(0x1ce)];return this[_0x28a36f(0x1b0)](_0x5561fe);},'abortController':_0x5194b7[_0x4575fa(0x1ed)]};}[_0x26b8d3(0x1f0)]({actionName:_0x4d9f46,content:_0x52b9a3,args:_0x5b7703}){const _0x11b09e=_0x26b8d3,_0x22dd22={'content':[{'type':_0x11b09e(0x1b1),'content':_0x52b9a3}],'args':_0x5b7703},_0x561b0b=this[_0x11b09e(0x1df)](_0x11b09e(0x1db)+_0x4d9f46+_0x11b09e(0x1dc),_0x11b09e(0x1e6),_0x22dd22);return{'getStream':async()=>{const _0x1e2548=_0x11b09e,_0xfed2c9=(await _0x561b0b[_0x1e2548(0x1cc)])[_0x1e2548(0x1ce)];return this[_0x1e2548(0x1b0)](_0xfed2c9);},'abortController':_0x561b0b[_0x11b09e(0x1ed)]};}[_0x26b8d3(0x1d5)](_0x9a892a,_0x36bded,_0x2fcdd2){const _0x1f4b9a=_0x26b8d3,_0x15c343=new FormData();_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1c3),_0x36bded,_0x36bded[_0x1f4b9a(0x1de)]),_0x2fcdd2&&_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1eb),JSON[_0x1f4b9a(0x1b7)](_0x2fcdd2));const _0x1c0b97=this[_0x1f4b9a(0x1df)](_0x1f4b9a(0x1ea)+_0x9a892a+_0x1f4b9a(0x1ec),_0x1f4b9a(0x1e6),_0x15c343);return{'getId':async()=>(await _0x1c0b97[_0x1f4b9a(0x1cc)])[_0x1f4b9a(0x20f)](),'abortController':_0x1c0b97[_0x1f4b9a(0x1ed)]};}[_0x26b8d3(0x201)](_0x48a4e3,_0x34a47c){const _0x32332b=_0x26b8d3,_0x28e71b=this[_0x32332b(0x1df)](_0x32332b(0x1ea)+_0x48a4e3+_0x32332b(0x1e2)+_0x34a47c,_0x32332b(0x226));return{'getDocument':async()=>(await _0x28e71b[_0x32332b(0x1cc)])[_0x32332b(0x20f)](),'abortController':_0x28e71b[_0x32332b(0x1ed)]};}[_0x26b8d3(0x237)](_0x529d61,_0x55a3df,_0x118e2c){const _0x107dc7=_0x26b8d3,_0x592a1c={'content':_0x55a3df};_0x118e2c&&(_0x592a1c[_0x107dc7(0x1eb)]=_0x118e2c);const _0x2c165b=this[_0x107dc7(0x1df)](_0x107dc7(0x1ea)+_0x529d61+_0x107dc7(0x21e),_0x107dc7(0x1e6),_0x592a1c);return{'getId':async()=>(await _0x2c165b[_0x107dc7(0x1cc)])[_0x107dc7(0x20f)](),'abortController':_0x2c165b[_0x107dc7(0x1ed)]};}[_0x26b8d3(0x1c7)](_0x97182f,_0x5b7266){const _0x18c3b8=_0x26b8d3,_0x33c6c4=new URLSearchParams();_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1d4),_0x18c3b8(0x1b6)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1c0),_0x18c3b8(0x1e8)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1f4),_0x97182f),_0x5b7266&&_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x220),_0x5b7266);const _0x1e65ac=this[_0x18c3b8(0x1df)](_0x18c3b8(0x1b8)+_0x33c6c4[_0x18c3b8(0x21f)](),_0x18c3b8(0x226));return{'getConversations':async()=>{const _0x9f8b25=_0x18c3b8,_0x5ab564=await _0x1e65ac[_0x9f8b25(0x1cc)];return(await _0x5ab564[_0x9f8b25(0x20f)]())[_0x9f8b25(0x227)];},'abortController':_0x1e65ac[_0x18c3b8(0x1ed)]};}[_0x26b8d3(0x1fe)](_0xedc134){const _0x466c37=_0x26b8d3,_0xa8c2c0=this[_0x466c37(0x1df)](_0x466c37(0x1ea)+_0xedc134,_0x466c37(0x20e));return{'execute':async()=>{const _0x47f242=_0x466c37;await _0xa8c2c0[_0x47f242(0x1cc)];},'abortController':_0xa8c2c0[_0x466c37(0x1ed)]};}[_0x26b8d3(0x217)](_0x3af564,_0x20f025){const _0x1bcd63=_0x26b8d3,_0x5dd6f2=this[_0x1bcd63(0x1df)](_0x1bcd63(0x1ea)+_0x3af564,_0x1bcd63(0x1bd),_0x20f025);return{'getResult':async()=>(await _0x5dd6f2[_0x1bcd63(0x1cc)],_0x20f025),'abortController':_0x5dd6f2[_0x1bcd63(0x1ed)]};}[_0x26b8d3(0x1b3)](_0x4e675a){const _0x41afaa=_0x26b8d3,_0x576fa1=this[_0x41afaa(0x1df)](_0x41afaa(0x1ea)+_0x4e675a,_0x41afaa(0x226));return{'getConversation':async()=>(await _0x576fa1[_0x41afaa(0x1cc)])[_0x41afaa(0x20f)](),'abortController':_0x576fa1[_0x41afaa(0x1ed)]};}[_0x26b8d3(0x22c)](_0x4c0891){const _0x5404b8=_0x26b8d3,_0x1d8895=this[_0x5404b8(0x1df)](_0x5404b8(0x1ea)+_0x4c0891+_0x5404b8(0x1c1),_0x5404b8(0x226));return{'getMessages':async()=>{const _0x1a31f7=_0x5404b8,_0x59ff35=await _0x1d8895[_0x1a31f7(0x1cc)];return(await _0x59ff35[_0x1a31f7(0x20f)]())[_0x1a31f7(0x227)];},'abortController':_0x1d8895[_0x5404b8(0x1ed)]};}[_0x26b8d3(0x1ba)](_0x309806,_0x2a78e5,_0x62a3f0){const _0x3d55cb=_0x26b8d3,_0x58b8fa=this[_0x3d55cb(0x1df)](_0x3d55cb(0x1ea)+_0x309806+_0x3d55cb(0x20d),_0x3d55cb(0x1e6),{'url':_0x2a78e5,'attributes':_0x62a3f0});return{'getId':async()=>(await _0x58b8fa[_0x3d55cb(0x1cc)])[_0x3d55cb(0x20f)](),'abortController':_0x58b8fa[_0x3d55cb(0x1ed)]};}[_0x26b8d3(0x1e9)](){const _0x2dbacb=_0x26b8d3,_0x2ad60b=this[_0x2dbacb(0x1df)](_0x2dbacb(0x1bc),_0x2dbacb(0x226));return{'list':async()=>await(await _0x2ad60b[_0x2dbacb(0x1cc)])[_0x2dbacb(0x20f)](),'abortController':_0x2ad60b[_0x2dbacb(0x1ed)]};}[_0x26b8d3(0x21b)](_0x304825,_0x2117c2){const _0x43fbbc=_0x26b8d3,_0xabfb=this[_0x43fbbc(0x1df)](_0x43fbbc(0x1ea)+_0x304825+_0x43fbbc(0x213)+_0x2117c2,_0x43fbbc(0x20e));return{'execute':async()=>{const _0x8c77ae=_0x43fbbc;await _0xabfb[_0x8c77ae(0x1cc)];},'abortController':_0xabfb[_0x43fbbc(0x1ed)]};}[_0x26b8d3(0x214)](_0x44136c,_0x19e60c){const _0x26c090=_0x26b8d3,_0xd6205e=this[_0x26c090(0x1df)](_0x26c090(0x1ea)+_0x44136c+_0x26c090(0x1e2)+_0x19e60c,_0x26c090(0x20e));return{'execute':async()=>{const _0x31217c=_0x26c090;await _0xd6205e[_0x31217c(0x1cc)];},'abortController':_0xd6205e[_0x26c090(0x1ed)]};}[_0x26b8d3(0x202)](_0x133e29,_0x3d0bc6){const _0x442535=_0x26b8d3,_0x303aa5=this[_0x442535(0x1df)](_0x442535(0x1ea)+_0x133e29+_0x442535(0x1da)+_0x3d0bc6,_0x442535(0x20e));return{'execute':async()=>{const _0x3f4cae=_0x442535;await _0x303aa5[_0x3f4cae(0x1cc)];},'abortController':_0x303aa5[_0x442535(0x1ed)]};}[_0x26b8d3(0x1f7)]({reviewName:_0x265a88,content:_0x12514c,args:_0x53a4a7}){const _0x5f429a=_0x26b8d3,_0x4610cb=this[_0x5f429a(0x1df)](_0x5f429a(0x1fa)+_0x265a88+_0x5f429a(0x1dc),_0x5f429a(0x1e6),{'content':[{'type':_0x5f429a(0x1b1),'content':_0x12514c}],'args':_0x53a4a7});return{'getStream':async()=>{const _0x3024a7=_0x5f429a,_0x42fb03=(await _0x4610cb[_0x3024a7(0x1cc)])[_0x3024a7(0x1ce)];return this[_0x3024a7(0x1b0)](_0x42fb03);},'abortController':_0x4610cb[_0x5f429a(0x1ed)]};}[_0x26b8d3(0x1fb)]({content:_0x17e280,prompt:_0x4ee538,model:_0x4fc200}){const _0x236aa4=_0x26b8d3,_0x2f1ac1=this[_0x236aa4(0x1df)](_0x236aa4(0x1d9),_0x236aa4(0x1e6),{'content':[{'type':_0x236aa4(0x1b1),'content':_0x17e280}],'prompt':_0x4ee538,'model':_0x4fc200});return{'getStream':async()=>{const _0x4805b1=_0x236aa4,_0x22f8f8=(await _0x2f1ac1[_0x4805b1(0x1cc)])[_0x4805b1(0x1ce)];return this[_0x4805b1(0x1b0)](_0x22f8f8);},'abortController':_0x2f1ac1[_0x236aa4(0x1ed)]};}[_0x26b8d3(0x1dd)](_0x4c3ec0,_0x1304c4,_0x1bdbcc){const _0x539faa=_0x26b8d3,_0x4d56de=this[_0x539faa(0x1df)](_0x539faa(0x1ea)+_0x4c3ec0+_0x539faa(0x1b4)+_0x1304c4+_0x539faa(0x1bb),_0x539faa(0x1f2),{'positiveCount':_0x1bdbcc[_0x539faa(0x225)],'totalCount':_0x1bdbcc[_0x539faa(0x200)],'modificationId':_0x1bdbcc[_0x539faa(0x22b)]});return{'execute':async()=>{const _0x88dd9=_0x539faa;await _0x4d56de[_0x88dd9(0x1cc)];},'abortController':_0x4d56de[_0x539faa(0x1ed)]};}[_0x26b8d3(0x22d)](_0x4a708,_0x3b5779,_0x36ceec){const _0x3d515a=_0x26b8d3,_0x37866b=this[_0x3d515a(0x1df)](_0x3d515a(0x1db)+_0x4a708+_0x3d515a(0x223)+_0x3b5779+_0x3d515a(0x1bb),_0x3d515a(0x1f2),{'positiveCount':_0x36ceec[_0x3d515a(0x225)],'totalCount':_0x36ceec[_0x3d515a(0x200)]});return{'execute':async()=>{const _0x5e87a2=_0x3d515a;await _0x37866b[_0x5e87a2(0x1cc)];},'abortController':_0x37866b[_0x3d515a(0x1ed)]};}[_0x26b8d3(0x22a)](_0x1252bd,_0x50991d){const _0x24aad1=_0x26b8d3,_0x516a2f=this[_0x24aad1(0x1df)](_0x24aad1(0x21a)+_0x1252bd+_0x24aad1(0x1bb),_0x24aad1(0x1f2),{'positiveCount':_0x50991d[_0x24aad1(0x225)],'totalCount':_0x50991d[_0x24aad1(0x200)]});return{'execute':async()=>{const _0x17a7bb=_0x24aad1;await _0x516a2f[_0x17a7bb(0x1cc)];},'abortController':_0x516a2f[_0x24aad1(0x1ed)]};}[_0x26b8d3(0x1d1)](_0x88ebca,_0x419aa0,_0x235ba3,_0x5d2502){const _0x152831=_0x26b8d3,_0x583c93=this[_0x152831(0x1df)](_0x152831(0x1fa)+_0x88ebca+_0x152831(0x223)+_0x419aa0+_0x152831(0x1bb),_0x152831(0x1f2),{'positiveCount':_0x235ba3[_0x152831(0x225)],'totalCount':_0x235ba3[_0x152831(0x200)],'dataId':_0x5d2502});return{'execute':async()=>{const _0x577b06=_0x152831;await _0x583c93[_0x577b06(0x1cc)];},'abortController':_0x583c93[_0x152831(0x1ed)]};}[_0x26b8d3(0x235)](_0x34dfb9,_0xc94e1,_0x424abb){const _0x1bc873=_0x26b8d3,_0x5240e5=this[_0x1bc873(0x1df)](_0x1bc873(0x1fc)+_0x34dfb9+_0x1bc873(0x1bb),_0x1bc873(0x1f2),{'positiveCount':_0xc94e1[_0x1bc873(0x225)],'totalCount':_0xc94e1[_0x1bc873(0x200)],'dataId':_0x424abb});return{'execute':async()=>{const _0x2d03dd=_0x1bc873;await _0x5240e5[_0x2d03dd(0x1cc)];},'abortController':_0x5240e5[_0x1bc873(0x1ed)]};}[_0x26b8d3(0x1df)](_0x34f5b3,_0x5192aa,_0x9d1ac7){const _0x470b3c=_0x26b8d3,_0x2c9be3=new AbortController(),_0x1150d3=_0x9d1ac7 instanceof FormData,_0x1e1778={'Authorization':_0x470b3c(0x224)+this[_0x470b3c(0x204)]?.[_0x470b3c(0x207)]};_0x9d1ac7&&!_0x1150d3&&(_0x1e1778[_0x470b3c(0x1d2)]=_0x470b3c(0x239));const _0x2723be={'method':_0x5192aa,'headers':_0x1e1778,'signal':_0x2c9be3[_0x470b3c(0x230)]};return _0x9d1ac7&&(_0x2723be[_0x470b3c(0x1ce)]=_0x1150d3?_0x9d1ac7:JSON[_0x470b3c(0x1b7)](_0x9d1ac7)),{'request':fetch(''+this[_0x470b3c(0x20c)]+_0x34f5b3,_0x2723be)[_0x470b3c(0x23a)](_0x8b9fee=>{const _0x5252fd=_0x470b3c;this[_0x5252fd(0x1e3)](_0x8b9fee);})[_0x470b3c(0x23d)](_0x51237=>{const _0x203274=_0x470b3c;if(!_0x51237['ok'])throw new _0x4d585d(_0x203274(0x222),this,{'url':this[_0x203274(0x20c)],'path':_0x34f5b3,'method':_0x5192aa,'body':_0x9d1ac7,'status':(_0x51237||{})[_0x203274(0x1f3)],'statusText':(_0x51237||{})[_0x203274(0x20a)]});return _0x51237;}),'abortController':_0x2c9be3};}async*[_0x26b8d3(0x1b0)](_0x3b68ea){const _0x5b630b=_0x26b8d3,_0x535c73=[],_0x4b811f=_0x3b68ea[_0x5b630b(0x1ee)](),_0x52508f=_0xeac24c({'onError':_0x1f848e=>{const _0x59d7ba=_0x5b630b;this[_0x59d7ba(0x1e3)](_0x1f848e);},'onEvent':_0x306717=>{const _0x3b5568=_0x5b630b;_0x306717[_0x3b5568(0x1c6)]=JSON[_0x3b5568(0x22e)](_0x306717[_0x3b5568(0x1c6)]),_0x535c73[_0x3b5568(0x1ca)](_0x306717);}});try{let _0x2bdb19=!0x1;for(;!_0x2bdb19;){const {done:_0x5943c0,value:_0xa84f3b}=await _0x4b811f[_0x5b630b(0x1bf)]();_0x5943c0&&(_0x2bdb19=!0x0),_0x52508f[_0x5b630b(0x1d0)](this[_0x5b630b(0x23b)][_0x5b630b(0x233)](_0xa84f3b,{'stream':!0x0})),yield*_0x535c73,_0x535c73[_0x5b630b(0x1e5)]=0x0;}}catch(_0x3ee495){this[_0x5b630b(0x1e3)](_0x3ee495);}finally{_0x4b811f[_0x5b630b(0x1cf)](),_0x52508f[_0x5b630b(0x1d8)]();}}[_0x26b8d3(0x1e3)](_0x14a1de){const _0x4209b9=_0x26b8d3;if(_0x14a1de instanceof _0x4d585d)throw _0x14a1de;if(_0x14a1de instanceof Error&&_0x4209b9(0x229)===_0x14a1de[_0x4209b9(0x1de)])throw new _0x4d585d(_0x4209b9(0x1c8),this,{'originalError':_0x14a1de});throw new _0x4d585d(_0x4209b9(0x222),this,{'originalError':_0x14a1de});}}
|
|
23
|
+
function _0x3e03(){const _0x42bfbf=['make-longer','true','attributes','callCustomReview','improve-writing','upsertCustomAIActionRating','json','CONTINUE','uploadUrl','10732238PVDinz','MAKE_SHORTER','/web-resources','_handleError','/reviews/system/','ai-request-failed','/ratings','deleteWebResource','translate','application/json','file','reset','pluginName','fetchDocument','fetchConversationMessages','deleteConversation','define','MAKE_TONE_CASUAL','decode','executeAction','continue','deleteFile','1079869HOiInY','statusText','push','126964etddVH','_token','upsertAIChatRating','group','/calls/','status','search','get','stringify','897624OfhwfC','PUT','/files/','fix-grammar','upsertAIReviewRating','FIX_GRAMMAR','_apiUrl','/conversations/','ai.serviceUrl','_sendApiRequest','IMPROVE_WRITING','releaseLock','20vXlWdU','data','fetchConversations','requires','/messages/','2RjHSmC','/calls','parse','totalCount','Bearer\x20','8zjeoaa','callSystemReview','/documents/','/web-resources/','name','executeCustomAction','MAKE_LONGER','catch','body','/documents','toString','read','TRANSLATE','https://ai.cke-cs.com/v1','POST','100','abortController','/messages','init','then','_decoder','ai-missing-token','/reviews/custom/calls','config','request','/actions/custom/calls/','text','CloudServices','updateConversation','ai-request-aborted','/conversations?','make-tone-casual','items','95334CgteLs','token','_getStreamReader','plugins','GET','deleteDocument','append','excludeEmpty','/models/1','/actions/custom/calls','Content-Type','1059KhYATj','feed','AbortError','/actions/system/','queryAssistant','uploadFile','modificationId','1516lzYYjR','make-tone-formal','upsertCustomAIReviewRating','value','limit','isOfficialPlugin','MAKE_TONE_FORMAL','upsertAIActionRating','/files','isPremiumPlugin','getReader','AIConnector','/conversations','2392570MeKeuM','fetchConversation','uploadDocument','PATCH','make-shorter','context','keys','getModels','length','startConversation','/reviews/custom/calls/','signal','positiveCount','DELETE'];_0x3e03=function(){return _0x42bfbf;};return _0x3e03();}const _0x1a3699=_0x4d7c;function _0x4d7c(_0x443cc1,_0x392415){const _0x3e0322=_0x3e03();return _0x4d7c=function(_0x4d7c71,_0x4f5f2b){_0x4d7c71=_0x4d7c71-0x1d7;let _0x1912db=_0x3e0322[_0x4d7c71];return _0x1912db;},_0x4d7c(_0x443cc1,_0x392415);}(function(_0x373d56,_0x5e834f){const _0x53d794=_0x4d7c,_0xfa20ef=_0x373d56();while(!![]){try{const _0x56d32e=-parseInt(_0x53d794(0x1d7))/0x1*(parseInt(_0x53d794(0x1f1))/0x2)+parseInt(_0x53d794(0x222))/0x3*(-parseInt(_0x53d794(0x229))/0x4)+-parseInt(_0x53d794(0x1ec))/0x5*(parseInt(_0x53d794(0x217))/0x6)+parseInt(_0x53d794(0x263))/0x7*(-parseInt(_0x53d794(0x1f6))/0x8)+-parseInt(_0x53d794(0x1e0))/0x9+-parseInt(_0x53d794(0x236))/0xa+parseInt(_0x53d794(0x24d))/0xb;if(_0x56d32e===_0x5e834f)break;else _0xfa20ef['push'](_0xfa20ef['shift']());}catch(_0x38bee7){_0xfa20ef['push'](_0xfa20ef['shift']());}}}(_0x3e03,0x2698b));import{createParser as _0x4667e8}from'eventsource-parser';import{ContextPlugin as _0x21198d}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e7388}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x390990){const _0x59998a=_0x4d7c;_0x390990[_0x59998a(0x24b)]=_0x59998a(0x261),_0x390990[_0x59998a(0x1e5)]=_0x59998a(0x1e3),_0x390990[_0x59998a(0x1ea)]=_0x59998a(0x248),_0x390990[_0x59998a(0x1fc)]=_0x59998a(0x244),_0x390990[_0x59998a(0x24e)]=_0x59998a(0x23a),_0x390990[_0x59998a(0x25e)]=_0x59998a(0x215),_0x390990[_0x59998a(0x22f)]=_0x59998a(0x22a),_0x390990[_0x59998a(0x202)]=_0x59998a(0x255);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x21198d{[_0x1a3699(0x1e6)];[_0x1a3699(0x1d8)];[_0x1a3699(0x20a)];static get[_0x1a3699(0x1ef)](){const _0x137f02=_0x1a3699;return[_0x137f02(0x211)];}static get[_0x1a3699(0x259)](){const _0x515e1e=_0x1a3699;return _0x515e1e(0x234);}static get[_0x1a3699(0x22e)](){return!0x0;}static get[_0x1a3699(0x232)](){return!0x0;}constructor(_0x170990){const _0x355a4e=_0x1a3699;super(_0x170990),this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x25d)](_0x355a4e(0x1e8),_0x355a4e(0x203)),this[_0x355a4e(0x1e6)]=this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x1de)](_0x355a4e(0x1e8)),this[_0x355a4e(0x1d8)]=null,this[_0x355a4e(0x20a)]=new TextDecoder();}[_0x1a3699(0x208)](){const _0x412280=_0x1a3699,_0x6a76e6=this[_0x412280(0x23b)][_0x412280(0x21a)][_0x412280(0x1de)](_0x412280(0x211));if(!_0x6a76e6[_0x412280(0x218)])throw new _0x4e7388(_0x412280(0x20b),this);this[_0x412280(0x1d8)]=_0x6a76e6[_0x412280(0x218)];}[_0x1a3699(0x23f)](_0x137258,_0x481077){const _0x458e9b=_0x1a3699,_0x1bdc3f=this[_0x458e9b(0x1e9)](_0x458e9b(0x235),_0x458e9b(0x204),{'id':_0x137258,'group':_0x481077});return{'getConversation':async()=>(await _0x1bdc3f[_0x458e9b(0x20e)])[_0x458e9b(0x24a)](),'abortController':_0x1bdc3f[_0x458e9b(0x206)]};}[_0x1a3699(0x226)]({message:_0x63500a,conversationId:_0x2b3ca7,parts:_0x1082bc,capabilities:_0x3d6e33,model:_0x46990d,quickActionData:_0x20800c}){const _0x5c53c3=_0x1a3699,_0x2e4dfb={..._0x20800c&&{'quickActionData':_0x20800c}},_0x1ae1f6={'prompt':_0x63500a,'content':_0x1082bc,'model':_0x46990d,..._0x3d6e33&&{'capabilities':_0x3d6e33},...Object[_0x5c53c3(0x23c)](_0x2e4dfb)[_0x5c53c3(0x23e)]>0x0&&{'attributes':_0x2e4dfb}},_0xd5b349=this[_0x5c53c3(0x1e9)](_0x5c53c3(0x1e7)+_0x2b3ca7+_0x5c53c3(0x207),_0x5c53c3(0x204),_0x1ae1f6);return{'getStream':async()=>{const _0x15b54b=_0x5c53c3,_0x555d1e=(await _0xd5b349[_0x15b54b(0x20e)])[_0x15b54b(0x1fe)];return this[_0x15b54b(0x219)](_0x555d1e);},'abortController':_0xd5b349[_0x5c53c3(0x206)]};}[_0x1a3699(0x1fb)]({content:_0x58c21,message:_0x30072c,model:_0x27dd0b,outputFormat:_0x590c67}){const _0xe08504=_0x1a3699,_0xdef959={'content':[{'type':_0xe08504(0x210),'content':_0x58c21}],'prompt':_0x30072c,'model':_0x27dd0b,'outputFormat':_0x590c67},_0x191136=this[_0xe08504(0x1e9)](_0xe08504(0x220),_0xe08504(0x204),_0xdef959);return{'getStream':async()=>{const _0xc1673e=_0xe08504,_0x94091e=(await _0x191136[_0xc1673e(0x20e)])[_0xc1673e(0x1fe)];return this[_0xc1673e(0x219)](_0x94091e);},'abortController':_0x191136[_0xe08504(0x206)]};}[_0x1a3699(0x260)]({actionName:_0x3c5940,content:_0x10ecb7,args:_0x573998}){const _0x284049=_0x1a3699,_0x3b8413={'content':[{'type':_0x284049(0x210),'content':_0x10ecb7}],'args':_0x573998},_0x26244c=this[_0x284049(0x1e9)](_0x284049(0x225)+_0x3c5940+_0x284049(0x1f2),_0x284049(0x204),_0x3b8413);return{'getStream':async()=>{const _0x5aaa77=_0x284049,_0x334ac9=(await _0x26244c[_0x5aaa77(0x20e)])[_0x5aaa77(0x1fe)];return this[_0x5aaa77(0x219)](_0x334ac9);},'abortController':_0x26244c[_0x284049(0x206)]};}[_0x1a3699(0x227)](_0x23047c,_0x4a6cb1,_0x296ca2){const _0x27d4f0=_0x1a3699,_0x33fb9b=new FormData();_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x257),_0x4a6cb1,_0x4a6cb1[_0x27d4f0(0x1fa)]),_0x296ca2&&_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x246),JSON[_0x27d4f0(0x1df)](_0x296ca2));const _0x7bef8=this[_0x27d4f0(0x1e9)](_0x27d4f0(0x1e7)+_0x23047c+_0x27d4f0(0x231),_0x27d4f0(0x204),_0x33fb9b);return{'getId':async()=>(await _0x7bef8[_0x27d4f0(0x20e)])[_0x27d4f0(0x24a)](),'abortController':_0x7bef8[_0x27d4f0(0x206)]};}[_0x1a3699(0x25a)](_0x382aef,_0x1fc62e){const _0x1aa564=_0x1a3699,_0x734212=this[_0x1aa564(0x1e9)](_0x1aa564(0x1e7)+_0x382aef+_0x1aa564(0x1f8)+_0x1fc62e,_0x1aa564(0x21b));return{'getDocument':async()=>(await _0x734212[_0x1aa564(0x20e)])[_0x1aa564(0x24a)](),'abortController':_0x734212[_0x1aa564(0x206)]};}[_0x1a3699(0x238)](_0x4a5995,_0x4257be,_0x3a3645){const _0x44c99f=_0x1a3699,_0x609ba={'content':_0x4257be};_0x3a3645&&(_0x609ba[_0x44c99f(0x246)]=_0x3a3645);const _0x5aedb4=this[_0x44c99f(0x1e9)](_0x44c99f(0x1e7)+_0x4a5995+_0x44c99f(0x1ff),_0x44c99f(0x204),_0x609ba);return{'getId':async()=>(await _0x5aedb4[_0x44c99f(0x20e)])[_0x44c99f(0x24a)](),'abortController':_0x5aedb4[_0x44c99f(0x206)]};}[_0x1a3699(0x1ee)](_0x5d25cc,_0x14f8d0){const _0x11584b=_0x1a3699,_0x48ce3e=new URLSearchParams();_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x21e),_0x11584b(0x245)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x22d),_0x11584b(0x205)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1da),_0x5d25cc),_0x14f8d0&&_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1dd),_0x14f8d0);const _0x2ec911=this[_0x11584b(0x1e9)](_0x11584b(0x214)+_0x48ce3e[_0x11584b(0x200)](),_0x11584b(0x21b));return{'getConversations':async()=>{const _0x411cfe=_0x11584b,_0x10b574=await _0x2ec911[_0x411cfe(0x20e)];return(await _0x10b574[_0x411cfe(0x24a)]())[_0x411cfe(0x216)];},'abortController':_0x2ec911[_0x11584b(0x206)]};}[_0x1a3699(0x25c)](_0x53cd8b){const _0x2bf93a=_0x1a3699,_0xcfb4a4=this[_0x2bf93a(0x1e9)](_0x2bf93a(0x1e7)+_0x53cd8b,_0x2bf93a(0x243));return{'execute':async()=>{const _0x1e9217=_0x2bf93a;await _0xcfb4a4[_0x1e9217(0x20e)];},'abortController':_0xcfb4a4[_0x2bf93a(0x206)]};}[_0x1a3699(0x212)](_0x47c1ac,_0x54ac52){const _0x4f5f6e=_0x1a3699,_0x225386=this[_0x4f5f6e(0x1e9)](_0x4f5f6e(0x1e7)+_0x47c1ac,_0x4f5f6e(0x239),_0x54ac52);return{'getResult':async()=>(await _0x225386[_0x4f5f6e(0x20e)],_0x54ac52),'abortController':_0x225386[_0x4f5f6e(0x206)]};}[_0x1a3699(0x237)](_0xfbe31f){const _0x242841=_0x1a3699,_0x3a72c2=this[_0x242841(0x1e9)](_0x242841(0x1e7)+_0xfbe31f,_0x242841(0x21b));return{'getConversation':async()=>(await _0x3a72c2[_0x242841(0x20e)])[_0x242841(0x24a)](),'abortController':_0x3a72c2[_0x242841(0x206)]};}[_0x1a3699(0x25b)](_0x72b7cc){const _0x8055ae=_0x1a3699,_0x1b726c=this[_0x8055ae(0x1e9)](_0x8055ae(0x1e7)+_0x72b7cc+_0x8055ae(0x207),_0x8055ae(0x21b));return{'getMessages':async()=>{const _0x3eab8f=_0x8055ae,_0x546008=await _0x1b726c[_0x3eab8f(0x20e)];return(await _0x546008[_0x3eab8f(0x24a)]())[_0x3eab8f(0x216)];},'abortController':_0x1b726c[_0x8055ae(0x206)]};}[_0x1a3699(0x24c)](_0x253ec7,_0xb8e556,_0x274abf){const _0xe48567=_0x1a3699,_0x2aeae2=this[_0xe48567(0x1e9)](_0xe48567(0x1e7)+_0x253ec7+_0xe48567(0x24f),_0xe48567(0x204),{'url':_0xb8e556,'attributes':_0x274abf});return{'getId':async()=>(await _0x2aeae2[_0xe48567(0x20e)])[_0xe48567(0x24a)](),'abortController':_0x2aeae2[_0xe48567(0x206)]};}[_0x1a3699(0x23d)](){const _0x5ab174=_0x1a3699,_0x3e109a=this[_0x5ab174(0x1e9)](_0x5ab174(0x21f),_0x5ab174(0x21b));return{'list':async()=>await(await _0x3e109a[_0x5ab174(0x20e)])[_0x5ab174(0x24a)](),'abortController':_0x3e109a[_0x5ab174(0x206)]};}[_0x1a3699(0x262)](_0x2f7d4a,_0x1c269e){const _0x1c3607=_0x1a3699,_0x5d0254=this[_0x1c3607(0x1e9)](_0x1c3607(0x1e7)+_0x2f7d4a+_0x1c3607(0x1e2)+_0x1c269e,_0x1c3607(0x243));return{'execute':async()=>{const _0x3400a8=_0x1c3607;await _0x5d0254[_0x3400a8(0x20e)];},'abortController':_0x5d0254[_0x1c3607(0x206)]};}[_0x1a3699(0x21c)](_0x1c0760,_0x499827){const _0x151bef=_0x1a3699,_0x6e38af=this[_0x151bef(0x1e9)](_0x151bef(0x1e7)+_0x1c0760+_0x151bef(0x1f8)+_0x499827,_0x151bef(0x243));return{'execute':async()=>{const _0x48aac5=_0x151bef;await _0x6e38af[_0x48aac5(0x20e)];},'abortController':_0x6e38af[_0x151bef(0x206)]};}[_0x1a3699(0x254)](_0x44ca89,_0x573aea){const _0x3a154b=_0x1a3699,_0x3fdd80=this[_0x3a154b(0x1e9)](_0x3a154b(0x1e7)+_0x44ca89+_0x3a154b(0x1f9)+_0x573aea,_0x3a154b(0x243));return{'execute':async()=>{const _0xd470f4=_0x3a154b;await _0x3fdd80[_0xd470f4(0x20e)];},'abortController':_0x3fdd80[_0x3a154b(0x206)]};}[_0x1a3699(0x1f7)]({reviewName:_0x3d7eb2,content:_0x208ae5,args:_0x3771c4}){const _0x179664=_0x1a3699,_0x31ec84=this[_0x179664(0x1e9)](_0x179664(0x251)+_0x3d7eb2+_0x179664(0x1f2),_0x179664(0x204),{'content':[{'type':_0x179664(0x210),'content':_0x208ae5}],'args':_0x3771c4});return{'getStream':async()=>{const _0x19c72d=_0x179664,_0x2d9092=(await _0x31ec84[_0x19c72d(0x20e)])[_0x19c72d(0x1fe)];return this[_0x19c72d(0x219)](_0x2d9092);},'abortController':_0x31ec84[_0x179664(0x206)]};}[_0x1a3699(0x247)]({content:_0x36e0cd,prompt:_0x456f15,model:_0x43d248}){const _0x3c9db4=_0x1a3699,_0x55f879=this[_0x3c9db4(0x1e9)](_0x3c9db4(0x20c),_0x3c9db4(0x204),{'content':[{'type':_0x3c9db4(0x210),'content':_0x36e0cd}],'prompt':_0x456f15,'model':_0x43d248});return{'getStream':async()=>{const _0x44cd2c=_0x3c9db4,_0x4626ae=(await _0x55f879[_0x44cd2c(0x20e)])[_0x44cd2c(0x1fe)];return this[_0x44cd2c(0x219)](_0x4626ae);},'abortController':_0x55f879[_0x3c9db4(0x206)]};}[_0x1a3699(0x1d9)](_0x557fb1,_0x4b3139,_0x1eb06e){const _0x2d0eae=_0x1a3699,_0x172af7=this[_0x2d0eae(0x1e9)](_0x2d0eae(0x1e7)+_0x557fb1+_0x2d0eae(0x1f0)+_0x4b3139+_0x2d0eae(0x253),_0x2d0eae(0x1e1),{'positiveCount':_0x1eb06e[_0x2d0eae(0x242)],'totalCount':_0x1eb06e[_0x2d0eae(0x1f4)],'modificationId':_0x1eb06e[_0x2d0eae(0x228)]});return{'execute':async()=>{const _0x5f08eb=_0x2d0eae;await _0x172af7[_0x5f08eb(0x20e)];},'abortController':_0x172af7[_0x2d0eae(0x206)]};}[_0x1a3699(0x230)](_0x448853,_0x34d7d1,_0x21c3c0){const _0x3858f8=_0x1a3699,_0x16c297=this[_0x3858f8(0x1e9)](_0x3858f8(0x225)+_0x448853+_0x3858f8(0x1db)+_0x34d7d1+_0x3858f8(0x253),_0x3858f8(0x1e1),{'positiveCount':_0x21c3c0[_0x3858f8(0x242)],'totalCount':_0x21c3c0[_0x3858f8(0x1f4)]});return{'execute':async()=>{const _0x14b895=_0x3858f8;await _0x16c297[_0x14b895(0x20e)];},'abortController':_0x16c297[_0x3858f8(0x206)]};}[_0x1a3699(0x249)](_0x3aafe0,_0x460f0b){const _0x42755a=_0x1a3699,_0x2d160d=this[_0x42755a(0x1e9)](_0x42755a(0x20f)+_0x3aafe0+_0x42755a(0x253),_0x42755a(0x1e1),{'positiveCount':_0x460f0b[_0x42755a(0x242)],'totalCount':_0x460f0b[_0x42755a(0x1f4)]});return{'execute':async()=>{const _0x2dcfb3=_0x42755a;await _0x2d160d[_0x2dcfb3(0x20e)];},'abortController':_0x2d160d[_0x42755a(0x206)]};}[_0x1a3699(0x1e4)](_0x1215a3,_0x1c6069,_0x26292d,_0x296cbf){const _0x660b06=_0x1a3699,_0x12ebe9=this[_0x660b06(0x1e9)](_0x660b06(0x251)+_0x1215a3+_0x660b06(0x1db)+_0x1c6069+_0x660b06(0x253),_0x660b06(0x1e1),{'positiveCount':_0x26292d[_0x660b06(0x242)],'totalCount':_0x26292d[_0x660b06(0x1f4)],'dataId':_0x296cbf});return{'execute':async()=>{const _0x201a28=_0x660b06;await _0x12ebe9[_0x201a28(0x20e)];},'abortController':_0x12ebe9[_0x660b06(0x206)]};}[_0x1a3699(0x22b)](_0x3cc7f8,_0x4699cd,_0x55d1f2){const _0x3cccc4=_0x1a3699,_0x540886=this[_0x3cccc4(0x1e9)](_0x3cccc4(0x240)+_0x3cc7f8+_0x3cccc4(0x253),_0x3cccc4(0x1e1),{'positiveCount':_0x4699cd[_0x3cccc4(0x242)],'totalCount':_0x4699cd[_0x3cccc4(0x1f4)],'dataId':_0x55d1f2});return{'execute':async()=>{const _0x5a487b=_0x3cccc4;await _0x540886[_0x5a487b(0x20e)];},'abortController':_0x540886[_0x3cccc4(0x206)]};}[_0x1a3699(0x1e9)](_0x3d7d35,_0x2db849,_0xfd982d){const _0x55abcf=_0x1a3699,_0x56572b=new AbortController(),_0x22a123=_0xfd982d instanceof FormData,_0x4cb67e={'Authorization':_0x55abcf(0x1f5)+this[_0x55abcf(0x1d8)]?.[_0x55abcf(0x22c)]};_0xfd982d&&!_0x22a123&&(_0x4cb67e[_0x55abcf(0x221)]=_0x55abcf(0x256));const _0x1c15ac={'method':_0x2db849,'headers':_0x4cb67e,'signal':_0x56572b[_0x55abcf(0x241)]};return _0xfd982d&&(_0x1c15ac[_0x55abcf(0x1fe)]=_0x22a123?_0xfd982d:JSON[_0x55abcf(0x1df)](_0xfd982d)),{'request':fetch(''+this[_0x55abcf(0x1e6)]+_0x3d7d35,_0x1c15ac)[_0x55abcf(0x1fd)](_0x10014e=>{const _0x2601bb=_0x55abcf;this[_0x2601bb(0x250)](_0x10014e);})[_0x55abcf(0x209)](_0x2a4764=>{const _0x4c51a8=_0x55abcf;if(!_0x2a4764['ok'])throw new _0x4e7388(_0x4c51a8(0x252),this,{'url':this[_0x4c51a8(0x1e6)],'path':_0x3d7d35,'method':_0x2db849,'body':_0xfd982d,'status':(_0x2a4764||{})[_0x4c51a8(0x1dc)],'statusText':(_0x2a4764||{})[_0x4c51a8(0x264)]});return _0x2a4764;}),'abortController':_0x56572b};}async*[_0x1a3699(0x219)](_0x4853e5){const _0x557b15=_0x1a3699,_0x452eca=[],_0x3d59dc=_0x4853e5[_0x557b15(0x233)](),_0xb16dd1=_0x4667e8({'onError':_0x459b73=>{const _0x3bea02=_0x557b15;this[_0x3bea02(0x250)](_0x459b73);},'onEvent':_0x5c191e=>{const _0x2340d9=_0x557b15;_0x5c191e[_0x2340d9(0x1ed)]=JSON[_0x2340d9(0x1f3)](_0x5c191e[_0x2340d9(0x1ed)]),_0x452eca[_0x2340d9(0x265)](_0x5c191e);}});try{let _0x5446aa=!0x1;for(;!_0x5446aa;){const {done:_0x2fe5c4,value:_0x362494}=await _0x3d59dc[_0x557b15(0x201)]();_0x2fe5c4&&(_0x5446aa=!0x0),_0xb16dd1[_0x557b15(0x223)](this[_0x557b15(0x20a)][_0x557b15(0x25f)](_0x362494,{'stream':!0x0})),yield*_0x452eca,_0x452eca[_0x557b15(0x23e)]=0x0;}}catch(_0xeb219f){this[_0x557b15(0x250)](_0xeb219f);}finally{_0x3d59dc[_0x557b15(0x1eb)](),_0xb16dd1[_0x557b15(0x258)]();}}[_0x1a3699(0x250)](_0x5784f7){const _0xad509=_0x1a3699;if(_0x5784f7 instanceof _0x4e7388)throw _0x5784f7;if(_0x5784f7 instanceof Error&&_0xad509(0x224)===_0x5784f7[_0xad509(0x1fa)])throw new _0x4e7388(_0xad509(0x213),this,{'originalError':_0x5784f7});throw new _0x4e7388(_0xad509(0x252),this,{'originalError':_0x5784f7});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25708a=_0x5d9b;(function(_0x31a056,_0xba31f6){const _0x9631e0=_0x5d9b,_0x549d9c=_0x31a056();while(!![]){try{const _0x5aaa54=parseInt(_0x9631e0(0x83))/0x1+-parseInt(_0x9631e0(0xbe))/0x2*(-parseInt(_0x9631e0(0xa5))/0x3)+-parseInt(_0x9631e0(0x7e))/0x4+-parseInt(_0x9631e0(0x94))/0x5+-parseInt(_0x9631e0(0x9c))/0x6+parseInt(_0x9631e0(0x7f))/0x7+parseInt(_0x9631e0(0xad))/0x8;if(_0x5aaa54===_0xba31f6)break;else _0x549d9c['push'](_0x549d9c['shift']());}catch(_0x334125){_0x549d9c['push'](_0x549d9c['shift']());}}}(_0xa127,0x2af09));import{ViewDowncastWriter as _0x14fdf4}from'ckeditor5/src/engine.js';function _0x5d9b(_0x258ce8,_0x293d34){const _0xa127d9=_0xa127();return _0x5d9b=function(_0x5d9b67,_0x598530){_0x5d9b67=_0x5d9b67-0x74;let _0xab9faa=_0xa127d9[_0x5d9b67];return _0xab9faa;},_0x5d9b(_0x258ce8,_0x293d34);}import{ContextPlugin as _0x36fdcf,Editor as _0x285234}from'ckeditor5/src/core.js';import{uid as _0x5b22ab}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x43629c}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x25708a(0xae);export class AIEditing extends _0x36fdcf{[_0x25708a(0xa1)]=null;[_0x25708a(0x7b)]=!0x1;[_0x25708a(0xcb)];static get[_0x25708a(0x8e)](){const _0xb0f058=_0x25708a;return _0xb0f058(0xa2);}static get[_0x25708a(0xd4)](){return!0x0;}static get[_0x25708a(0x96)](){return!0x0;}get[_0x25708a(0xa8)](){const _0x33e9b1=_0x25708a;if(!this[_0x33e9b1(0xcb)]){const _0xec789c=_0x43629c(this[_0x33e9b1(0xb4)]),_0x418fb0=_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xb7)](_0x33e9b1(0xd2))&&_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xa0)](_0x33e9b1(0xd2))[_0x33e9b1(0xa8)];this[_0x33e9b1(0xcb)]=_0x418fb0||_0x5b22ab();}return this[_0x33e9b1(0xcb)];}[_0x25708a(0xa4)](){const _0x392db5=_0x25708a,_0x4d02c1=_0x43629c(this[_0x392db5(0xb4)]),_0x570816=_0x4d02c1[_0x392db5(0x8c)],_0x13db68=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0x7d)](_0x570816[_0x392db5(0x9b)][_0x392db5(0xbd)](),{'convertAiChatSelectionMarker':!0x0}),_0x1ddc4d=new _0x14fdf4(_0x4d02c1[_0x392db5(0xca)][_0x392db5(0x76)][_0x392db5(0x9b)]);this[_0x392db5(0x79)](_0x13db68,_0x1ddc4d);let _0x46c171=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0xcc)][_0x392db5(0x8a)](_0x13db68);const _0x3cf523=this[_0x392db5(0xa7)](),_0x295668=[];for(const _0x42768d of _0x3cf523){const _0x1b98ea='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb6)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb1),_0x1382ad=_0x46c171[_0x392db5(0x95)](_0x1b98ea);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x1382ad)+_0x46c171[_0x392db5(0x82)](_0x1382ad+_0x1b98ea[_0x392db5(0xba)]);const _0x548023='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8f)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8d),_0x4e8041=_0x46c171[_0x392db5(0x95)](_0x548023);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x4e8041)+_0x46c171[_0x392db5(0x82)](_0x4e8041+_0x548023[_0x392db5(0xba)]),_0x295668[_0x392db5(0xd3)]({'markerName':_0x42768d[_0x392db5(0xbb)],'start':_0x1382ad,'end':_0x4e8041,'htmlFragment':_0x46c171[_0x392db5(0x82)](_0x1382ad,_0x4e8041)});}return{'content':_0x46c171,'version':_0x4d02c1[_0x392db5(0x8c)][_0x392db5(0x9b)][_0x392db5(0xc1)],'sessionId':this[_0x392db5(0xa8)],'selections':_0x295668};}async[_0x25708a(0x81)](){const _0x410a4e=_0x25708a;this[_0x410a4e(0xb4)]instanceof _0x285234?this[_0x410a4e(0xa6)](this[_0x410a4e(0xb4)]):this[_0x410a4e(0xc5)](this[_0x410a4e(0xb4)][_0x410a4e(0x74)],_0x410a4e(0x90),(_0x4982d7,_0x5dc03d)=>{const _0x3cd018=_0x410a4e;_0x5dc03d['on'](_0x3cd018(0xcd),()=>{const _0x4de51d=_0x3cd018;this[_0x4de51d(0xa6)](_0x5dc03d);});});}[_0x25708a(0xa6)](_0xe9d817){const _0x391069=_0x25708a;_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0xc4))[_0x391069(0xd1)]({'model':_0x391069(0xae),'view':{'classes':[_0x391069(0xb5),_0x391069(0x91)],'priority':0xc}}),_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0x87))[_0x391069(0xac)]({'model':_0x391069(0xae),'view':(_0x2dcf2e,{writer:_0x51f05b,options:_0x4038f1})=>_0x4038f1[_0x391069(0x80)]?_0x51f05b[_0x391069(0x9a)](_0x2dcf2e[_0x391069(0xab)]+':'+(_0x2dcf2e[_0x391069(0xa3)]?_0x391069(0xd7):_0x391069(0x77))):null});}[_0x25708a(0xbc)](_0x29fe9e,_0x566fe4,_0x456696=!0x1,_0x2b439c=!0x1){const _0x52cdf8=_0x25708a;if(this[_0x52cdf8(0x7b)]&&!_0x2b439c)return!0x1;const _0x2e6b35=_0x43629c(this[_0x52cdf8(0xb4)])[_0x52cdf8(0x8c)];return _0x2e6b35[_0x52cdf8(0x86)](_0x37ec07=>{const _0x4f5413=_0x52cdf8;this[_0x4f5413(0xa1)]&&this[_0x4f5413(0x9e)](this[_0x4f5413(0xa1)]),this[_0x4f5413(0xa1)]=_0x566fe4,this[_0x4f5413(0x7b)]=_0x456696;let _0x4a24ab=0x0;for(let _0x1b1a39 of _0x29fe9e){const _0x430084=_0x4f5413(0xbf)+_0x4a24ab;if(_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xda)]){const _0x43504e=_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xc2)](({item:_0x44f612})=>!_0x2e6b35[_0x4f5413(0x98)][_0x4f5413(0xa9)](_0x44f612),{'boundaries':_0x1b1a39});_0x1b1a39=_0x37ec07[_0x4f5413(0xd8)](_0x43504e,_0x1b1a39[_0x4f5413(0x77)]);}_0x37ec07[_0x4f5413(0xd9)](_0x430084,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1b1a39}),_0x4a24ab++;}}),window[_0x52cdf8(0x93)]()?.[_0x52cdf8(0xce)](),!0x0;}[_0x25708a(0x9e)](_0x377b6e){const _0x2659dd=_0x25708a;if(this[_0x2659dd(0xa1)]!=_0x377b6e)return!0x1;this[_0x2659dd(0xa1)]=null,this[_0x2659dd(0x7b)]=!0x1;const _0x399e67=_0x43629c(this[_0x2659dd(0xb4)]),_0x498a56=_0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x84)][_0x2659dd(0xc9)](_0x2659dd(0xae));return _0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x86)](_0x1e207e=>{const _0x24345d=_0x2659dd;for(const _0x304d3b of _0x498a56)_0x1e207e[_0x24345d(0x89)](_0x304d3b);}),!0x0;}[_0x25708a(0xd0)](_0x48a399){const _0x51097a=_0x25708a,_0x177065=_0x43629c(this[_0x51097a(0xb4)]),_0x49b599=_0x177065[_0x51097a(0x7c)][_0x51097a(0x7d)](_0x48a399),_0xb298e=new _0x14fdf4(_0x177065[_0x51097a(0xca)][_0x51097a(0x76)][_0x51097a(0x9b)]);return this[_0x51097a(0x79)](_0x49b599,_0xb298e),_0x49b599;}[_0x25708a(0x79)](_0x5dc2f7,_0xda8156){const _0x5a6e75=_0x25708a;let _0x3f263c=!0x1;const _0x330d60=new Set();for(const _0x578dab of _0x5dc2f7[_0x5a6e75(0xc0)]()){const _0xd9345c=_0x578dab['is'](_0x5a6e75(0xcf))||_0x578dab['is'](_0x5a6e75(0xb3));if(!_0x578dab['is'](_0x5a6e75(0xaa)))continue;(this[_0x5a6e75(0x79)](_0x578dab,_0xda8156)||_0xd9345c)&&(_0xda8156[_0x5a6e75(0xb9)](_0x5a6e75(0x78),this[_0x5a6e75(0x97)](_0x330d60),_0x578dab),_0x3f263c=!0x0);}return _0x3f263c;}[_0x25708a(0x97)](_0x314c74){const _0x38c5bf=_0x25708a;let _0x443d4f;do{_0x443d4f='';for(let _0x3ce042=0x0;_0x3ce042<0x4;_0x3ce042++)_0x443d4f+=String[_0x38c5bf(0xc6)](0x61+Math[_0x38c5bf(0x7a)](0x1a*Math[_0x38c5bf(0xd5)]()));}while(_0x314c74[_0x38c5bf(0xb7)](_0x443d4f));return _0x314c74[_0x38c5bf(0x90)](_0x443d4f),_0x443d4f;}[_0x25708a(0xaf)](){const _0x49dca7=_0x25708a,{model:_0x1df29c}=_0x43629c(this[_0x49dca7(0xb4)]),_0x20d006=_0x1df29c[_0x49dca7(0x9b)][_0x49dca7(0x75)],_0x463fef=_0x1df29c[_0x49dca7(0xd6)](_0x20d006),_0x46b538=[],_0x308137=_0x1df29c[_0x49dca7(0x9f)](_0x463fef)[_0x49dca7(0x92)]();for(const {item:_0x376073}of _0x308137)_0x376073['is'](_0x49dca7(0xb2))?_0x46b538[_0x49dca7(0xd3)](_0x376073[_0x49dca7(0x7c)]):_0x376073['is'](_0x49dca7(0xaa))&&_0x46b538[_0x49dca7(0xba)]>0x0&&'\x20'!==_0x46b538[_0x46b538[_0x49dca7(0xba)]-0x1]&&_0x46b538[_0x49dca7(0xd3)]('\x20');return'\x22'+_0x46b538[_0x49dca7(0x9d)]('')[_0x49dca7(0x8b)]()+'\x22';}[_0x25708a(0xa7)](){const _0x35c46=_0x25708a,_0x8ef914=_0x43629c(this[_0x35c46(0xb4)])[_0x35c46(0x8c)];return Array[_0x35c46(0xc3)](_0x8ef914[_0x35c46(0x84)][_0x35c46(0xc9)](_0x35c46(0xae)))[_0x35c46(0xc8)]((_0x53fed2,_0x599cf8)=>_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0xc7)](_0x599cf8[_0x35c46(0xb0)]())?-0x1:_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0x99)](_0x599cf8[_0x35c46(0xb0)]())?0x1:0x0);}}function _0xa127(){const _0x38f929=['start','createRange','addMarker','isAtEnd','editors','selection','view','end','data-id','_setDataIdsOnChildren','floor','_displayedFakeSelectionLocked','data','toView','925428waLQwZ','1144570AcCVsF','convertAiChatSelectionMarker','afterInit','substring','322573vSXWzq','markers','plugins','change','dataDowncast','conversion','removeMarker','toData','trim','model',':end>','pluginName',':end></','add','ck-ai-assistant-ui_theme','getWalker','getSelection','666900iqofUm','indexOf','isPremiumPlugin','_nextDataId','schema','isAfter','createUIElement','document','948636jrWhRI','join','hideFakeVisualSelection','createRangeIn','get','_displayedFakeSelectionId','AIEditing','isOpening','getDocumentData','885AxPTUk','_integrateEditor','_getMarkersInDocumentOrder','sessionId','isContent','element','markerName','markerToElement','1198448iBSTwE','ai-selection','getSelectionText','getStart',':start>','$textProxy','containerElement','context','ck-fake-ai-selection',':start></','has','for','setAttribute','length','name','showFakeVisualSelection','getRoot','426evVnEH','ai-selection:','getChildren','version','getLastMatchingPosition','from','editingDowncast','listenTo','fromCharCode','isBefore','sort','getMarkersGroup','editing','_sessionId','processor','ready','removeAllRanges','emptyElement','modelToViewWithIds','markerToHighlight','RealTimeCollaborationClient','push','isOfficialPlugin','random','getSelectedContent'];_0xa127=function(){return _0x38f929;};return _0xa127();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29a86c=_0x27da;(function(_0x282466,_0x5059ac){const _0x2cc7eb=_0x27da,_0x920790=_0x282466();while(!![]){try{const _0x3a8ee2=-parseInt(_0x2cc7eb(0xee))/0x1*(-parseInt(_0x2cc7eb(0xe0))/0x2)+-parseInt(_0x2cc7eb(0xe4))/0x3*(parseInt(_0x2cc7eb(0xf0))/0x4)+-parseInt(_0x2cc7eb(0xd9))/0x5*(-parseInt(_0x2cc7eb(0xeb))/0x6)+-parseInt(_0x2cc7eb(0xe6))/0x7*(-parseInt(_0x2cc7eb(0xdf))/0x8)+-parseInt(_0x2cc7eb(0xe7))/0x9+parseInt(_0x2cc7eb(0xe9))/0xa+-parseInt(_0x2cc7eb(0xec))/0xb;if(_0x3a8ee2===_0x5059ac)break;else _0x920790['push'](_0x920790['shift']());}catch(_0x89ec58){_0x920790['push'](_0x920790['shift']());}}}(_0x4dd3,0xa526c));function _0x27da(_0xf9c346,_0x13367a){const _0x4dd3f7=_0x4dd3();return _0x27da=function(_0x27daf1,_0x4e25e2){_0x27daf1=_0x27daf1-0xd6;let _0x1a67d4=_0x4dd3f7[_0x27daf1];return _0x1a67d4;},_0x27da(_0xf9c346,_0x13367a);}import{EmitterMixin as _0x1612e3}from'ckeditor5/src/utils.js';function _0x4dd3(){const _0x25daec=['isReasoningEnabled','5625590HmaVZs','reset','26808kFSPKc','23931776rVWgek','fire','41oaZOol','_isWebSearchEnabled','590856lFYtBE','init','setReasoning','capabilitiesUpdated','725XEHOoH','toggleReasoning','isWebSearchEnabled','toggleWebSearch','setWebSearch','reasoning','64376cZcrWz','49638Hyygzj','webSearch','getCapabilitiesRequestData','getCapabilitiesConfig','3KbdCDN','_isReasoningEnabled','798rlQiGk','1310094rILEaT'];_0x4dd3=function(){return _0x25daec;};return _0x4dd3();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x29a86c(0xd8)];export class AICapabilities extends _0x1612e3(){[_0x29a86c(0xef)];[_0x29a86c(0xe5)];constructor(){const _0x5a9a1f=_0x29a86c;super(),this[_0x5a9a1f(0xef)]=!0x1,this[_0x5a9a1f(0xe5)]=!0x1;}[_0x29a86c(0xd6)](){const _0x2a8578=_0x29a86c;this[_0x2a8578(0xea)]();}[_0x29a86c(0xea)](){const _0x4022d0=_0x29a86c;this[_0x4022d0(0xdd)](!0x1),this[_0x4022d0(0xd7)](!0x1);}[_0x29a86c(0xe3)](){const _0x44e918=_0x29a86c;return{'isWebSearchEnabled':this[_0x44e918(0xef)],'isReasoningEnabled':this[_0x44e918(0xe5)]};}static[_0x29a86c(0xe2)](_0x9ae2a3){const _0x1923b5=_0x29a86c,_0x57b24c={};return _0x9ae2a3&&_0x9ae2a3[_0x1923b5(0xdb)]&&(_0x57b24c[_0x1923b5(0xe1)]={}),_0x9ae2a3&&_0x9ae2a3[_0x1923b5(0xe8)]&&(_0x57b24c[_0x1923b5(0xde)]={}),_0x57b24c;}[_0x29a86c(0xdc)](){const _0x418d9b=_0x29a86c;this[_0x418d9b(0xdd)](!this[_0x418d9b(0xef)]);}[_0x29a86c(0xda)](){const _0x1fdc0d=_0x29a86c;this[_0x1fdc0d(0xd7)](!this[_0x1fdc0d(0xe5)]);}[_0x29a86c(0xdd)](_0x41e5c2){const _0x73183a=_0x29a86c;_0x41e5c2!==this[_0x73183a(0xef)]&&(this[_0x73183a(0xef)]=_0x41e5c2,this[_0x73183a(0xed)](_0x73183a(0xd8),this[_0x73183a(0xe3)]()));}[_0x29a86c(0xd7)](_0x207663){const _0x52957d=_0x29a86c;_0x207663!==this[_0x52957d(0xe5)]&&(this[_0x52957d(0xe5)]=_0x207663,this[_0x52957d(0xed)](_0x52957d(0xd8),this[_0x52957d(0xe3)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x265175=_0x1dbe;function _0x1dbe(_0x123dbb,_0x599df9){const _0x5e56bf=_0x5e56();return _0x1dbe=function(_0x1dbe7a,_0x2cd360){_0x1dbe7a=_0x1dbe7a-0x19f;let _0x3f1d62=_0x5e56bf[_0x1dbe7a];return _0x3f1d62;},_0x1dbe(_0x123dbb,_0x599df9);}(function(_0x4e7a26,_0x1f5b90){const _0x24c7a7=_0x1dbe,_0x539989=_0x4e7a26();while(!![]){try{const _0xda5972=-parseInt(_0x24c7a7(0x1e7))/0x1*(-parseInt(_0x24c7a7(0x1cf))/0x2)+-parseInt(_0x24c7a7(0x1b7))/0x3*(-parseInt(_0x24c7a7(0x1c5))/0x4)+parseInt(_0x24c7a7(0x1a8))/0x5*(parseInt(_0x24c7a7(0x1c2))/0x6)+-parseInt(_0x24c7a7(0x1da))/0x7+-parseInt(_0x24c7a7(0x1a1))/0x8+-parseInt(_0x24c7a7(0x1d9))/0x9*(-parseInt(_0x24c7a7(0x1e6))/0xa)+-parseInt(_0x24c7a7(0x1e0))/0xb*(parseInt(_0x24c7a7(0x1cb))/0xc);if(_0xda5972===_0x1f5b90)break;else _0x539989['push'](_0x539989['shift']());}catch(_0x6bb77){_0x539989['push'](_0x539989['shift']());}}}(_0x5e56,0x404e4));import{CKEditorError as _0x72c960,EmitterMixin as _0x30c987,logWarning as _0x312d80,uid as _0x52766a}from'ckeditor5/src/utils.js';import{AIReply as _0x3862e9,isIgnoredReplyType as _0x821e34,isValidReplyType as _0x3458ad,isReplyTitleType as _0x2db97d,isSourceType as _0x51b39a}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x265175(0x1d8),_0x265175(0x1aa),_0x265175(0x1b1),_0x265175(0x1bd),_0x265175(0x1b6),_0x265175(0x1b9),_0x265175(0x1d0),_0x265175(0x1b2),_0x265175(0x1bc),_0x265175(0x1a6),_0x265175(0x1c6),_0x265175(0x1ba),_0x265175(0x1dc),_0x265175(0x1ae)];function _0x5e56(){const _0x3fac2c=['16NFqzvz','webSearchFinished','event','isDestroyed','length','find','12SQvSUa','stopListening','_isReasoning','currentReply','292574YSJZeE','replyContentUpdated','_isWebSearching','push','fire','web-search','destroy','conversationTitle','content','interactionCreated','9VIfKJH','146279oECvZB','done','reasoningFinished','message-metadata','delegate','splice','1483185QtVAHn','abortController','getStream','isStopped','getDocumentContext','forEach','2087450qrfSTY','2ppLTrS','sources','currentRequest','3512144cksfvi','source','createReply','action-metadata','_finalizeInteraction','webSearchStarted','replies','25kkmdJj','actionCallId','interactionStarted','start','callId','appendContent','error','messageId','connector','interactionStopped','replyChangeGroupStateUpdated','ai-chat-interaction-error','textDelta','reasoning','interactionDestroyed','245169chirmm','sendRequest','replyCreated','reasoningStarted','stop','setConversationTitle','interactionFinished','modification-delta','abort','data','editor','35922CJRFot','getReply','ai-interaction-invalid-event-type'];_0x5e56=function(){return _0x3fac2c;};return _0x5e56();}export class AIInteraction extends _0x30c987(){['id'];[_0x265175(0x1a7)]=[];[_0x265175(0x1ce)];[_0x265175(0x1af)];[_0x265175(0x1a9)];[_0x265175(0x1a0)];[_0x265175(0x1b0)];[_0x265175(0x1e3)]=!0x1;[_0x265175(0x1c8)]=!0x1;[_0x265175(0x1c1)];[_0x265175(0x1cd)]=!0x1;[_0x265175(0x1d1)]=!0x1;constructor({connector:_0x1f5044,editor:_0x222aba}){const _0x19ea37=_0x265175;super(),this['id']=_0x52766a(),this[_0x19ea37(0x1b0)]=_0x1f5044,this[_0x19ea37(0x1e3)]=!0x0,this[_0x19ea37(0x1c1)]=_0x222aba;}async[_0x265175(0x1ab)](){const _0x363906=_0x265175;let _0x3aad80;const _0x1195b4=[];this[_0x363906(0x1e3)]=!0x1;try{this[_0x363906(0x1a0)]=await this[_0x363906(0x1b8)](),this[_0x363906(0x1d3)](_0x363906(0x1aa),this);const _0x2bf181=await this[_0x363906(0x1a0)][_0x363906(0x1e2)]();for await(const _0x50db5e of _0x2bf181){if(this[_0x363906(0x1e3)])return;if(_0x363906(0x1ae)===_0x50db5e[_0x363906(0x1c7)])return void this[_0x363906(0x1d3)](_0x363906(0x1ae),{'error':new _0x72c960(_0x363906(0x1b3),this)});if(_0x363906(0x1dd)!==_0x50db5e[_0x363906(0x1c7)]){if(_0x363906(0x1a4)!==_0x50db5e[_0x363906(0x1c7)]){if(_0x2db97d(_0x50db5e[_0x363906(0x1c7)])&&this[_0x363906(0x1bc)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1d6)],!0x0),_0x51b39a(_0x50db5e[_0x363906(0x1c7)]))_0x1195b4[_0x363906(0x1d2)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1a2)]);else{if(_0x3458ad(_0x50db5e[_0x363906(0x1c7)])){if(_0x50db5e[_0x363906(0x1c7)]!==_0x3aad80){if(_0x3aad80=_0x50db5e[_0x363906(0x1c7)],_0x363906(0x1d4)===_0x50db5e[_0x363906(0x1c7)]){this[_0x363906(0x1d1)]||(this[_0x363906(0x1d1)]=!0x0,this[_0x363906(0x1d3)](_0x363906(0x1a6),this));continue;}if(_0x363906(0x1b5)===_0x50db5e[_0x363906(0x1c7)]){this[_0x363906(0x1cd)]||(this[_0x363906(0x1cd)]=!0x0,this[_0x363906(0x1d3)](_0x363906(0x1ba),this));continue;}this[_0x363906(0x1cd)]&&(this[_0x363906(0x1cd)]=!0x1,this[_0x363906(0x1d3)](_0x363906(0x1dc),this)),this[_0x363906(0x1d1)]&&(this[_0x363906(0x1d1)]=!0x1,this[_0x363906(0x1d3)](_0x363906(0x1c6),this)),this[_0x363906(0x1ce)]&&this[_0x363906(0x1ce)][_0x363906(0x1db)](),this[_0x363906(0x1ce)]=this[_0x363906(0x1a3)]({'type':_0x50db5e[_0x363906(0x1c7)],'interactionId':this['id'],'id':_0x50db5e[_0x363906(0x1c0)]?.['id']}),_0x1195b4[_0x363906(0x1c9)]>0x0&&_0x363906(0x1be)===_0x50db5e[_0x363906(0x1c7)]&&(this[_0x363906(0x1ce)][_0x363906(0x19f)]=_0x1195b4[_0x363906(0x1df)](0x0));}_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1b4)]&&this[_0x363906(0x1ce)][_0x363906(0x1ad)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1b4)]);}else _0x821e34(_0x50db5e[_0x363906(0x1c7)])||_0x312d80(_0x363906(0x1c4),{'chunk':_0x50db5e});}}else this[_0x363906(0x1a9)]=_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1ac)];}else this[_0x363906(0x1af)]=_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1af)];}}finally{this[_0x363906(0x1e3)]||(_0x1195b4[_0x363906(0x1c9)]>0x0&&(this[_0x363906(0x1ce)][_0x363906(0x19f)]=_0x1195b4[_0x363906(0x1df)](0x0)),this[_0x363906(0x1a5)](),this[_0x363906(0x1d3)](_0x363906(0x1bd),this));}}[_0x265175(0x1bb)](){const _0x5d8cbd=_0x265175;this[_0x5d8cbd(0x1e3)]||(this[_0x5d8cbd(0x1a5)](),this[_0x5d8cbd(0x1d3)](_0x5d8cbd(0x1b1),this));}[_0x265175(0x1c3)](_0x2b8e84){const _0x55b321=_0x265175;return this[_0x55b321(0x1a7)][_0x55b321(0x1ca)](_0x590482=>_0x590482['id']===_0x2b8e84);}[_0x265175(0x1d5)](){const _0xec366f=_0x265175;this[_0xec366f(0x1c8)]||(this[_0xec366f(0x1bb)](),this[_0xec366f(0x1a7)][_0xec366f(0x1e5)](_0x5bced1=>_0x5bced1[_0xec366f(0x1d5)]()),this[_0xec366f(0x1a7)]=[],this[_0xec366f(0x1c8)]=!0x0,this[_0xec366f(0x1d3)](_0xec366f(0x1b6),this),this[_0xec366f(0x1cc)]());}[_0x265175(0x1a3)](_0x245b4a){const _0x346e02=_0x265175,_0x3ef3c2=new _0x3862e9({'editor':this[_0x346e02(0x1c1)],'documentContextContent':this[_0x346e02(0x1e4)]()?.[_0x346e02(0x1d7)],..._0x245b4a});return this[_0x346e02(0x1a7)][_0x346e02(0x1d2)](_0x3ef3c2),_0x3ef3c2[_0x346e02(0x1de)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x346e02(0x1d3)](_0x346e02(0x1b9),_0x3ef3c2),_0x3ef3c2;}[_0x265175(0x1bc)](_0x38a8c3,_0x556189=!0x1){const _0x2db433=_0x265175;this[_0x2db433(0x1d3)](_0x2db433(0x1bc),_0x38a8c3,_0x556189);}[_0x265175(0x1a5)](){const _0x40a6ee=_0x265175;this[_0x40a6ee(0x1e3)]=!0x0,this[_0x40a6ee(0x1a0)]&&this[_0x40a6ee(0x1a0)][_0x40a6ee(0x1e1)][_0x40a6ee(0x1bf)](),this[_0x40a6ee(0x1ce)]&&this[_0x40a6ee(0x1ce)][_0x40a6ee(0x1db)](),this[_0x40a6ee(0x1a0)]=this[_0x40a6ee(0x1ce)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5821b8=_0x17f9;(function(_0x31f81f,_0x5e6d22){const _0x2a6519=_0x17f9,_0x3dbd9b=_0x31f81f();while(!![]){try{const _0x5abbea=parseInt(_0x2a6519(0x1cc))/0x1+-parseInt(_0x2a6519(0x1b5))/0x2*(-parseInt(_0x2a6519(0x1ce))/0x3)+-parseInt(_0x2a6519(0x1ba))/0x4*(parseInt(_0x2a6519(0x1c0))/0x5)+-parseInt(_0x2a6519(0x1d4))/0x6*(-parseInt(_0x2a6519(0x1b7))/0x7)+-parseInt(_0x2a6519(0x1c9))/0x8*(-parseInt(_0x2a6519(0x1c6))/0x9)+parseInt(_0x2a6519(0x1d5))/0xa*(-parseInt(_0x2a6519(0x1b9))/0xb)+-parseInt(_0x2a6519(0x1cd))/0xc*(parseInt(_0x2a6519(0x1bb))/0xd);if(_0x5abbea===_0x5e6d22)break;else _0x3dbd9b['push'](_0x3dbd9b['shift']());}catch(_0x420a52){_0x3dbd9b['push'](_0x3dbd9b['shift']());}}}(_0x3d41,0x6d5db));function _0x17f9(_0x2b77e7,_0x521f3f){const _0x3d4188=_0x3d41();return _0x17f9=function(_0x17f97a,_0x15850b){_0x17f97a=_0x17f97a-0x1b5;let _0x2d3d27=_0x3d4188[_0x17f97a];return _0x2d3d27;},_0x17f9(_0x2b77e7,_0x521f3f);}import{CKEditorError as _0x200cbb,EmitterMixin as _0x4a3b46,logWarning as _0xbd8fc8}from'ckeditor5/src/utils.js';import{getTranslation as _0x3357a7}from'../utils/common-translations.js';export class AIModels extends _0x4a3b46(){[_0x5821b8(0x1c1)];[_0x5821b8(0x1d6)];[_0x5821b8(0x1c2)];[_0x5821b8(0x1d9)]=[];constructor({connector:_0x1589a3,availableModels:_0x5df6e7,defaultModelId:_0x55073b}){const _0x1148a5=_0x5821b8;super(),this[_0x1148a5(0x1c1)]=_0x1589a3,this[_0x1148a5(0x1d6)]=_0x5df6e7,this[_0x1148a5(0x1c2)]=_0x55073b;}async[_0x5821b8(0x1d7)](){const _0x3379a1=_0x5821b8;if(!this[_0x3379a1(0x1d9)][_0x3379a1(0x1e2)])try{const _0x263336=this[_0x3379a1(0x1c1)][_0x3379a1(0x1df)](),_0x2bda31=await _0x263336[_0x3379a1(0x1bd)]();this[_0x3379a1(0x1d9)]=_0x2bda31[_0x3379a1(0x1e1)];}catch(_0xefb72d){throw new _0x200cbb(_0x3379a1(0x1d2),null,{'error':_0xefb72d});}return[...this[_0x3379a1(0x1d9)]];}async[_0x5821b8(0x1d8)](){const _0x315684=_0x5821b8,_0x46f504=await this[_0x315684(0x1d7)]();return this[_0x315684(0x1dd)](_0x46f504,this[_0x315684(0x1d6)]);}async[_0x5821b8(0x1db)](_0x5c5b96){const _0x31caf6=_0x5821b8,_0x24d3d2=await this[_0x31caf6(0x1d7)]();if(!_0x24d3d2[_0x31caf6(0x1e2)])return null;if(_0x5c5b96){const _0x51c7c0=this[_0x31caf6(0x1cb)](_0x24d3d2,_0x5c5b96);if(_0x51c7c0)return _0x51c7c0;_0xbd8fc8(_0x31caf6(0x1d3),{'modelId':_0x5c5b96,'fallBackModelId':this[_0x31caf6(0x1c2)]});}return this[_0x31caf6(0x1bf)]();}async[_0x5821b8(0x1bf)](){const _0x334cc2=_0x5821b8,_0x41067b=await this[_0x334cc2(0x1d8)]();if(!_0x41067b[_0x334cc2(0x1e2)])return null;if(this[_0x334cc2(0x1c2)]){const _0x5935e8=this[_0x334cc2(0x1cb)](_0x41067b,this[_0x334cc2(0x1c2)]);if(_0x5935e8)return _0x5935e8;_0xbd8fc8(_0x334cc2(0x1c5),{'defaultModelId':this[_0x334cc2(0x1c2)],'fallBackModelId':_0x41067b[0x0]['id']});}return _0x41067b[0x0];}async[_0x5821b8(0x1e3)](_0x1ab394){const _0x387861=_0x5821b8;return(await this[_0x387861(0x1d8)]())[_0x387861(0x1ca)](_0x4bfeb7=>_0x4bfeb7[_0x387861(0x1b6)]===_0x1ab394[_0x387861(0x1b6)]&&_0x4bfeb7[_0x387861(0x1bc)]===_0x1ab394[_0x387861(0x1bc)]);}[_0x5821b8(0x1dd)](_0x109924,_0x46e744){const _0x382e3b=_0x5821b8;let _0x3a0632;if(_0x46e744){_0x3a0632=[];const _0x32a9f0=_0x382e3b(0x1dc)==typeof _0x46e744?[_0x46e744[_0x382e3b(0x1c8)]()]:_0x46e744[_0x382e3b(0x1de)](_0x1688c3=>_0x1688c3[_0x382e3b(0x1c8)]());for(const _0x1a69cc of _0x32a9f0)for(const _0x2f6146 of _0x109924)(_0x2f6146['id'][_0x382e3b(0x1c8)]()===_0x1a69cc||_0x2f6146[_0x382e3b(0x1b6)][_0x382e3b(0x1c8)]()===_0x1a69cc||Ne(_0x2f6146)&&_0x382e3b(0x1c4)===_0x1a69cc||_0x2f6146[_0x382e3b(0x1bc)][_0x382e3b(0x1c8)]()===_0x1a69cc||_0x2f6146['id'][_0x382e3b(0x1c8)]()[_0x382e3b(0x1cf)](_0x1a69cc))&&_0x3a0632[_0x382e3b(0x1da)](_0x2f6146);}else _0x3a0632=_0x109924;return _0x3a0632;}[_0x5821b8(0x1cb)](_0x56d3f2,_0x2634da){const _0x341c56=_0x5821b8;return _0x56d3f2[_0x341c56(0x1d0)](_0x53f3dd=>Ne(_0x53f3dd)&&_0x341c56(0x1c4)===_0x2634da?_0x53f3dd:_0x53f3dd['id']===_0x2634da)||null;}static[_0x5821b8(0x1c7)](_0x3a6dfd,_0x4ff709){const _0x3ef3b4=_0x5821b8;return _0x4ff709[_0x3ef3b4(0x1de)](_0xe33f94=>{const _0x1f729a=_0x3ef3b4;if(Ne(_0xe33f94))_0xe33f94[_0x1f729a(0x1b6)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1e0)),_0xe33f94[_0x1f729a(0x1b8)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1d1));else _0x3357a7(_0x3a6dfd,_0x1f729a(0x1e4)+_0xe33f94['id'][_0x1f729a(0x1be)]())[_0x1f729a(0x1cf)](_0x1f729a(0x1e4))||(_0xe33f94[_0x1f729a(0x1b8)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1e4)+_0xe33f94['id'][_0x1f729a(0x1be)]()));return _0xe33f94;});}}function _0x3d41(){const _0xaa390=['AI_MODEL_NAME_AUTO','items','length','isAvailable','AI_MODEL_DESCRIPTION_','446CwdmPW','name','7qVfLTD','description','2020568AWpiJd','4WZKTXo','26793VuAgUT','provider','list','toUpperCase','getDefault','4278235icwKKQ','_connector','_defaultModelId','agent','auto','ai-chat-default-model-id-unrecognized','63dgiION','getLocalized','toLocaleLowerCase','486376lXTccg','some','_getModelById','672819uFKIKD','828eYzJci','7788xNkuSD','startsWith','find','AI_MODEL_DESCRIPTION_AUTO','ai-models-unable-to-retrieve','ai-chat-model-id-unrecognized','1917462etAxFJ','30KJkSFf','_availableModels','getAll','getAvailableModels','_modelList','push','getModel','string','_filterModels','map','getModels'];_0x3d41=function(){return _0xaa390;};return _0x3d41();}function Ne(_0xba9b2a){const _0x192db2=_0x5821b8;return _0xba9b2a['id'][_0x192db2(0x1cf)](_0x192db2(0x1c3));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39cafa=_0x5afe;(function(_0x413847,_0x1bf6d2){const _0x251b6e=_0x5afe,_0x33f8e9=_0x413847();while(!![]){try{const _0x36f614=-parseInt(_0x251b6e(0x14b))/0x1*(parseInt(_0x251b6e(0x129))/0x2)+parseInt(_0x251b6e(0x144))/0x3*(parseInt(_0x251b6e(0x147))/0x4)+-parseInt(_0x251b6e(0x155))/0x5*(-parseInt(_0x251b6e(0x14f))/0x6)+-parseInt(_0x251b6e(0x14d))/0x7+-parseInt(_0x251b6e(0x120))/0x8+-parseInt(_0x251b6e(0x159))/0x9+-parseInt(_0x251b6e(0x13a))/0xa*(-parseInt(_0x251b6e(0x112))/0xb);if(_0x36f614===_0x1bf6d2)break;else _0x33f8e9['push'](_0x33f8e9['shift']());}catch(_0x36d995){_0x33f8e9['push'](_0x33f8e9['shift']());}}}(_0x2dde,0x8f50c));import{CKEditorError as _0xd00e30,ObservableMixin as _0x4b4ade,uid as _0x5b4e7e}from'ckeditor5/src/utils.js';function _0x5afe(_0x57bc23,_0x59db49){const _0x2ddef2=_0x2dde();return _0x5afe=function(_0x5afe05,_0x41c679){_0x5afe05=_0x5afe05-0x10a;let _0x5e5d47=_0x2ddef2[_0x5afe05];return _0x5e5d47;},_0x5afe(_0x57bc23,_0x59db49);}import{Element as _0x1afbf7,findAll as _0x33986f,getAttribute as _0x2d8dae,getParents as _0x1545f1,Document as _0x3332dd,parse as _0x361701,Text as _0x379eee}from'../utils/htmlparser.js';import{AIResponseParser as _0x4b13ac}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3091be}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x52995c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x20330c}from'../utils/common-translations.js';function _0x2dde(){const _0x2afbff=['areActionsDisabled','web-search','withoutDiff','text-delta','push','setChangeGroupState','434193DfRoRd','includes','interactionId','28nVOgge','modification-delta','state','appendContent','316jJBThJ','ai-get-editor-from-context-no-editor','3267943XVBbKg','sources','14154CkKGMw','indexOf','_getDifferentChangeGroups','modified','convertMarkdownToHTML','change:content','1250eCeLrg','conversation-title','stopListening','ai-reply-get-content-parts-group-not-found','6311925ekWzTY','editor','modifiedNodeIds','getContentParts','_getCachedContentParts','removed','span','find','color:\x20#808080;\x20font-style:\x20italic','removedNodeIds','newNodeIds','parsedMergedContent','data-id','done','reasoning','replyChangeGroupStateUpdated','96547Xusxei','set','locale','every','source','changes','nextSibling','parseAndNormalizeHTML','withDiff','length','forEach','map','documentContextContent','_setCachedContentParts','1539184nbTpqX','cachedSuggestionContentParts','pending','splice','content','previousSibling','type','cloneNode','index','2540AQeRWV','merge','aiResponseApplier','replyContentUpdated','data-unstable','changeGroups','destroy','fire','parsedContent','node','new','unshift','context','updateChangeGroups','values','aiResponseParser','filter','850qjrGGu','onContentChange','isDone','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x2dde=function(){return _0x2afbff;};return _0x2dde();}import{cloneDeep as _0x4d0dfb}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cafa(0x148),_0x39cafa(0x141),_0x39cafa(0x13f),_0x39cafa(0x110)];export const AI_REPLY_TYPES_IGNORED=[_0x39cafa(0x156)];export const AI_REPLY_TITLE_TYPE=_0x39cafa(0x156);export class AIReply extends _0x4b4ade(){['id'];[_0x39cafa(0x146)];[_0x39cafa(0x126)];[_0x39cafa(0x14e)]=[];[_0x39cafa(0x131)]=new _0x3332dd([]);[_0x39cafa(0x10d)]=new _0x3332dd([]);[_0x39cafa(0x12e)]=[];[_0x39cafa(0x13e)]=!0x1;[_0x39cafa(0x11e)];[_0x39cafa(0x138)];[_0x39cafa(0x12b)];[_0x39cafa(0x15a)];[_0x39cafa(0x121)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0xcb1212,content:_0x334ad7='',isDone:_0x1cb1e0=!0x1,interactionId:_0x57d817,areActionsDisabled:_0x133d51,documentContextContent:_0x4f9676,editor:_0x429b6e,id:_0x239681}){const _0x49ba85=_0x39cafa;super(),this['id']=_0x239681||_0x5b4e7e(),this[_0x49ba85(0x146)]=_0x57d817,this[_0x49ba85(0x126)]=_0xcb1212,this[_0x49ba85(0x13e)]=!!_0x133d51,this[_0x49ba85(0x15a)]=_0x429b6e,this[_0x49ba85(0x138)]=new _0x4b13ac(),this[_0x49ba85(0x12b)]=new _0x3091be(),this[_0x49ba85(0x11e)]=_0x361701(_0x4f9676||''),this[_0x49ba85(0x113)](_0x49ba85(0x13c),_0x1cb1e0),this['on'](_0x49ba85(0x154),()=>{const _0x1af39d=_0x49ba85;this[_0x1af39d(0x13b)]();}),this[_0x49ba85(0x113)](_0x49ba85(0x124),_0x334ad7);}[_0x39cafa(0x14a)](_0x3b8d0b){const _0x53ddf6=_0x39cafa;this[_0x53ddf6(0x113)](_0x53ddf6(0x124),this[_0x53ddf6(0x124)]+_0x3b8d0b);}[_0x39cafa(0x10f)](){const _0x5733d2=_0x39cafa;this[_0x5733d2(0x13c)]||(this[_0x5733d2(0x113)](_0x5733d2(0x13c),!0x0),this[_0x5733d2(0x13b)]());}[_0x39cafa(0x12f)](){const _0x1ba02a=_0x39cafa;this[_0x1ba02a(0x157)]();}[_0x39cafa(0x143)](_0x553e86,_0x5a2eaa){const _0x315548=_0x39cafa;this[_0x315548(0x12e)][_0x553e86][_0x315548(0x149)]=_0x5a2eaa,this[_0x315548(0x130)](_0x315548(0x111),{'reply':this,'index':_0x553e86,'state':_0x5a2eaa});}[_0x39cafa(0x15c)]({showDiff:_0x171aa6,groupIndex:_0x327bda}){const _0x31b1fd=_0x39cafa;if(!this[_0x31b1fd(0x15a)])throw new _0xd00e30(_0x31b1fd(0x14c),null,{'aiReply':this});const _0xb1c9f1=this[_0x31b1fd(0x15d)](_0x171aa6,_0x327bda);if(_0xb1c9f1)return _0xb1c9f1;let _0x4020cc=[];if(void 0x0===_0x327bda)_0x4020cc=this[_0x31b1fd(0x12e)];else{const _0x1dc2d6=this[_0x31b1fd(0x12e)][_0x31b1fd(0x160)](({index:_0x1e6e87})=>_0x1e6e87===_0x327bda);if(!_0x1dc2d6)throw new _0xd00e30(_0x31b1fd(0x158),null,{'aiReply':this,'groupIndex':_0x327bda});_0x4020cc=[_0x1dc2d6];}const _0x3a9e7c=_0x52995c({'editor':this[_0x31b1fd(0x15a)],'showDiff':_0x171aa6,'changeGroups':_0x4020cc,'documentContextContent':this[_0x31b1fd(0x11e)]});return this[_0x31b1fd(0x11f)](_0x171aa6,_0x3a9e7c),_0x3a9e7c;}[_0x39cafa(0x15d)](_0x533a74,_0x3567df){const _0x192fa9=_0x39cafa,_0x4d6560=_0x533a74?_0x192fa9(0x11a):_0x192fa9(0x140);if(!this[_0x192fa9(0x121)][_0x4d6560][_0x192fa9(0x11b)])return null;const _0x345400=this[_0x192fa9(0x121)][_0x4d6560];if(void 0x0===_0x3567df)return _0x4d0dfb(_0x345400);{const _0x1062b3=_0x345400[_0x192fa9(0x160)](({index:_0x41e86d})=>_0x41e86d===_0x3567df);if(_0x1062b3)return[_0x4d0dfb(_0x1062b3)];}return null;}[_0x39cafa(0x11f)](_0x1a2ae2,_0xaf677d){const _0x354a84=_0x39cafa,_0x28e741=_0x1a2ae2?_0x354a84(0x11a):_0x354a84(0x140);_0xaf677d[_0x354a84(0x11c)](_0x14b664=>{const _0x3872a4=_0x354a84,_0x124426=this[_0x3872a4(0x121)][_0x28e741],_0x3e3919=_0x124426[_0x3872a4(0x160)](({index:_0x11b3af})=>_0x11b3af===_0x14b664[_0x3872a4(0x128)]);if(_0x3e3919){const _0x2b8c0b=_0x124426[_0x3872a4(0x150)](_0x3e3919);_0x124426[_0x3872a4(0x123)](_0x2b8c0b,0x1,_0x14b664);}else _0x124426[_0x3872a4(0x142)](_0x14b664);});}[_0x39cafa(0x13b)](){const _0x3d67dd=_0x39cafa;if(_0x3d67dd(0x148)===this[_0x3d67dd(0x126)]){this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x119)](this[_0x3d67dd(0x124)]);const _0x413c93=this[_0x3d67dd(0x12e)];this[_0x3d67dd(0x136)]();const _0xfab43e=this[_0x3d67dd(0x151)](_0x413c93,this[_0x3d67dd(0x12e)]);(_0xfab43e[_0x3d67dd(0x11b)]||this[_0x3d67dd(0x13c)])&&(this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this,_0xfab43e),this[_0x3d67dd(0x121)][_0x3d67dd(0x11a)][_0x3d67dd(0x11b)]=this[_0x3d67dd(0x121)][_0x3d67dd(0x140)][_0x3d67dd(0x11b)]=0x0);}else this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x153)](this[_0x3d67dd(0x124)]),this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this);}[_0x39cafa(0x151)](_0xfd9d2d,_0x11893d){const _0x1726cf=_0x39cafa,_0x5264f7=[];for(const _0x2235f2 of _0x11893d){const _0x315a1a=_0xfd9d2d[_0x2235f2[_0x1726cf(0x128)]];_0x315a1a?_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11b)]!==_0x2235f2[_0x1726cf(0x117)][_0x1726cf(0x11b)]?_0x5264f7[_0x1726cf(0x142)](_0x2235f2):_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11c)]((_0x5d9811,_0x3c81c0)=>{const _0x239ef6=_0x1726cf,_0x357a3f=_0x2235f2[_0x239ef6(0x117)][_0x3c81c0];_0x5d9811['id']!==_0x357a3f['id']&&_0x5264f7[_0x239ef6(0x142)](_0x2235f2);}):_0x5264f7[_0x1726cf(0x142)](_0x2235f2);}return _0x5264f7;}[_0x39cafa(0x136)](){const _0x1ad6c9=_0x39cafa,_0x783659=new _0x1afbf7('p',{},[new _0x1afbf7(_0x1ad6c9(0x15f),{'style':_0x1ad6c9(0x10a)},[new _0x379eee(_0x20330c(this[_0x1ad6c9(0x15a)][_0x1ad6c9(0x114)],_0x1ad6c9(0x13d)))])]),_0x67a838=this[_0x1ad6c9(0x12b)][_0x1ad6c9(0x12a)](this[_0x1ad6c9(0x131)],this[_0x1ad6c9(0x11e)][_0x1ad6c9(0x127)](!0x0),{'markUnstableElements':!this[_0x1ad6c9(0x13c)],'replaceRemovedWith':_0x783659,'cutAfterLastChange':!this[_0x1ad6c9(0x13c)]});if(!_0x67a838[_0x1ad6c9(0x15b)][_0x1ad6c9(0x11b)]&&!this[_0x1ad6c9(0x13c)])return;this[_0x1ad6c9(0x10d)]=_0x67a838[_0x1ad6c9(0x131)];let _0x6b2adf=[];if(_0x33986f(_0x11fc85=>{const _0x7676fb=_0x1ad6c9,_0x531e17=_0x2d8dae(_0x11fc85,_0x7676fb(0x10e));if(!_0x531e17||!_0x471613(_0x531e17))return!0x1;const _0xe884a3=[_0x11fc85,..._0x1545f1(_0x11fc85)]['at'](-0x2);if(_0x11fc85!=_0xe884a3){const _0x188c11=_0x2d8dae(_0xe884a3,_0x7676fb(0x10e));_0x471613(_0x188c11)||(_0x6b2adf[_0x7676fb(0x142)]({'node':_0xe884a3,'id':_0x188c11,'type':_0x7676fb(0x152)}),_0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x142)](_0x188c11));}else _0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x152),'id':_0x531e17}):_0x67a838[_0x7676fb(0x10c)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x133),'id':_0x531e17,'anchorId':_0x2d8dae(_0x11fc85[_0x7676fb(0x125)],_0x7676fb(0x10e))}):_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x15e),'id':_0x531e17});return!0x0;},this[_0x1ad6c9(0x10d)]),_0x6b2adf=_0x6b2adf[_0x1ad6c9(0x139)](({node:_0x4e5238})=>[..._0x1545f1(_0x4e5238),_0x4e5238][_0x1ad6c9(0x115)](_0x154a0a=>!_0x2d8dae(_0x154a0a,_0x1ad6c9(0x12d)))),0x0==_0x6b2adf[_0x1ad6c9(0x11b)])return;const _0x502ebe=[[_0x6b2adf[0x0]]];for(let _0x196077=0x1;_0x196077<_0x6b2adf[_0x1ad6c9(0x11b)];_0x196077++){const _0x437e40=_0x502ebe[_0x502ebe[_0x1ad6c9(0x11b)]-0x1],_0x555154=_0x437e40[_0x437e40[_0x1ad6c9(0x11b)]-0x1];_0x6b2adf[_0x196077][_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]==_0x555154[_0x1ad6c9(0x132)]&&_0x1ad6c9(0x152)!=_0x6b2adf[_0x196077][_0x1ad6c9(0x126)]&&_0x1ad6c9(0x152)!=_0x555154[_0x1ad6c9(0x126)]?_0x437e40[_0x1ad6c9(0x142)](_0x6b2adf[_0x196077]):_0x502ebe[_0x1ad6c9(0x142)]([_0x6b2adf[_0x196077]]);}for(const _0x483e8e of _0x502ebe){const _0x119b51=_0x483e8e[0x0],_0x568717=_0x483e8e[_0x483e8e[_0x1ad6c9(0x11b)]-0x1],_0x6dc09b=_0x2bf7e6(_0x119b51[_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]);_0x6dc09b&&_0x483e8e[_0x1ad6c9(0x134)](_0x6dc09b);const _0x22627e=_0x2bf7e6(_0x568717[_0x1ad6c9(0x132)][_0x1ad6c9(0x118)]);_0x22627e&&_0x483e8e[_0x1ad6c9(0x142)](_0x22627e);}function _0x471613(_0x1d2482){const _0x2f5aa2=_0x1ad6c9;return _0x67a838[_0x2f5aa2(0x15b)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10c)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10b)][_0x2f5aa2(0x145)](_0x1d2482);}function _0x2bf7e6(_0x69ee61){const _0x220e41=_0x1ad6c9;if(_0x69ee61&&_0x2d8dae(_0x69ee61,_0x220e41(0x10e))&&!_0x2d8dae(_0x69ee61,_0x220e41(0x12d))){const _0x448335=_0x2d8dae(_0x69ee61,_0x220e41(0x10e));if(!_0x471613(_0x448335))return{'node':_0x69ee61,'type':_0x220e41(0x135),'id':_0x448335};}return null;}this[_0x1ad6c9(0x12e)]=_0x502ebe[_0x1ad6c9(0x11d)]((_0x43976b,_0x262c0b)=>({'changes':_0x43976b,'state':_0x1ad6c9(0x122),'index':_0x262c0b}));}}export function isValidReplyType(_0x4b4ad0){const _0x5af8bb=_0x39cafa;return Object[_0x5af8bb(0x137)](AI_REPLY_TYPES)[_0x5af8bb(0x145)](_0x4b4ad0);}export function isIgnoredReplyType(_0x4a8822){const _0x376495=_0x39cafa;return AI_REPLY_TYPES_IGNORED[_0x376495(0x145)](_0x4a8822);}export function isReplyTitleType(_0x2313b7){return _0x2313b7===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x1b025f){const _0x209152=_0x39cafa;return _0x209152(0x116)===_0x1b025f;}
|
|
23
|
+
const _0x1ae9d4=_0x502e;(function(_0x50eb8c,_0x3019f0){const _0x3377fa=_0x502e,_0x4007ba=_0x50eb8c();while(!![]){try{const _0x1a7c49=parseInt(_0x3377fa(0x1fa))/0x1*(parseInt(_0x3377fa(0x1e6))/0x2)+parseInt(_0x3377fa(0x20c))/0x3+-parseInt(_0x3377fa(0x1e4))/0x4+parseInt(_0x3377fa(0x1f2))/0x5+-parseInt(_0x3377fa(0x1fc))/0x6*(parseInt(_0x3377fa(0x1d2))/0x7)+parseInt(_0x3377fa(0x201))/0x8*(parseInt(_0x3377fa(0x1e8))/0x9)+parseInt(_0x3377fa(0x1d6))/0xa*(-parseInt(_0x3377fa(0x20e))/0xb);if(_0x1a7c49===_0x3019f0)break;else _0x4007ba['push'](_0x4007ba['shift']());}catch(_0x48b1b8){_0x4007ba['push'](_0x4007ba['shift']());}}}(_0x3b40,0xf0b12));function _0x3b40(){const _0x5003aa=['context','editor','unshift','every','forEach','modification-delta','stopListening','source','AI_SUGGESTION_CONTENT_PART_REMOVED','withDiff','change:content','reasoning','fire','conversation-title','merge','_getDifferentChangeGroups','aiResponseParser','7WxxHiE','_getCachedContentParts','isDone','removedNodeIds','29880gdFOvx','locale','_setCachedContentParts','removed','setChangeGroupState','data-unstable','ai-reply-get-content-parts-group-not-found','destroy','getContentParts','ai-get-editor-from-context-no-editor','appendContent','done','type','interactionId','1129304KUkyOu','map','8JUqkVa','parsedContent','17728398dphWVy','changes','filter','replyContentUpdated','aiResponseApplier','values','areActionsDisabled','newNodeIds','node','includes','2854815WStkwy','index','convertMarkdownToHTML','length','replyChangeGroupStateUpdated','set','documentContextContent','span','394343ZBxclp','withoutDiff','52926nlBJSq','web-search','modified','cloneNode','parsedMergedContent','8msQAnv','text-delta','content','previousSibling','find','updateChangeGroups','push','data-id','cachedSuggestionContentParts','sources','new','4644708BPjNxs','indexOf','16159sceZNM','modifiedNodeIds','changeGroups','pending','splice','onContentChange','state','color:\x20#808080;\x20font-style:\x20italic','nextSibling','parseAndNormalizeHTML'];_0x3b40=function(){return _0x5003aa;};return _0x3b40();}import{CKEditorError as _0x32da5e,ObservableMixin as _0x32ad48,uid as _0x279237}from'ckeditor5/src/utils.js';import{Element as _0x5c5c2f,findAll as _0x18311e,getAttribute as _0x4189e2,getParents as _0x1673c9,Document as _0x395878,parse as _0x1cdcaf,Text as _0x529011}from'../utils/htmlparser.js';import{AIResponseParser as _0x4dbfa3}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x391f34}from'../pipeline/airesponseapplier.js';function _0x502e(_0x5cea80,_0x1ab4bb){const _0x3b409d=_0x3b40();return _0x502e=function(_0x502e85,_0x3e5ebe){_0x502e85=_0x502e85-0x1c9;let _0x18055e=_0x3b409d[_0x502e85];return _0x18055e;},_0x502e(_0x5cea80,_0x1ab4bb);}import{getSuggestionPartsFromReply as _0x75cf6d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x34d524}from'../utils/common-translations.js';import{cloneDeep as _0x218d2b}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1ae9d4(0x21d),_0x1ae9d4(0x202),_0x1ae9d4(0x1fd),_0x1ae9d4(0x1cc)];export const AI_REPLY_TYPES_IGNORED=[_0x1ae9d4(0x1ce)];export const AI_REPLY_TITLE_TYPE=_0x1ae9d4(0x1ce);export class AIReply extends _0x32ad48(){['id'];[_0x1ae9d4(0x1e3)];[_0x1ae9d4(0x1e2)];[_0x1ae9d4(0x20a)]=[];[_0x1ae9d4(0x1e7)]=new _0x395878([]);[_0x1ae9d4(0x200)]=new _0x395878([]);[_0x1ae9d4(0x210)]=[];[_0x1ae9d4(0x1ee)]=!0x1;[_0x1ae9d4(0x1f8)];[_0x1ae9d4(0x1d1)];[_0x1ae9d4(0x1ec)];[_0x1ae9d4(0x219)];[_0x1ae9d4(0x209)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x132310,content:_0x30ca75='',isDone:_0x10d869=!0x1,interactionId:_0x2f015a,areActionsDisabled:_0x8e0592,documentContextContent:_0x9e4be2,editor:_0x15a8fd,id:_0x42245c}){const _0x445163=_0x1ae9d4;super(),this['id']=_0x42245c||_0x279237(),this[_0x445163(0x1e3)]=_0x2f015a,this[_0x445163(0x1e2)]=_0x132310,this[_0x445163(0x1ee)]=!!_0x8e0592,this[_0x445163(0x219)]=_0x15a8fd,this[_0x445163(0x1d1)]=new _0x4dbfa3(),this[_0x445163(0x1ec)]=new _0x391f34(),this[_0x445163(0x1f8)]=_0x1cdcaf(_0x9e4be2||''),this[_0x445163(0x1f7)](_0x445163(0x1d4),_0x10d869),this['on'](_0x445163(0x1cb),()=>{const _0x3faaa8=_0x445163;this[_0x3faaa8(0x213)]();}),this[_0x445163(0x1f7)](_0x445163(0x203),_0x30ca75);}[_0x1ae9d4(0x1e0)](_0xc59182){const _0x588544=_0x1ae9d4;this[_0x588544(0x1f7)](_0x588544(0x203),this[_0x588544(0x203)]+_0xc59182);}[_0x1ae9d4(0x1e1)](){const _0x795f01=_0x1ae9d4;this[_0x795f01(0x1d4)]||(this[_0x795f01(0x1f7)](_0x795f01(0x1d4),!0x0),this[_0x795f01(0x213)]());}[_0x1ae9d4(0x1dd)](){const _0x1bd8ee=_0x1ae9d4;this[_0x1bd8ee(0x21e)]();}[_0x1ae9d4(0x1da)](_0x5baf62,_0x317eb2){const _0x5e92cb=_0x1ae9d4;this[_0x5e92cb(0x210)][_0x5baf62][_0x5e92cb(0x214)]=_0x317eb2,this[_0x5e92cb(0x1cd)](_0x5e92cb(0x1f6),{'reply':this,'index':_0x5baf62,'state':_0x317eb2});}[_0x1ae9d4(0x1de)]({showDiff:_0x3e42db,groupIndex:_0x10ce8f}){const _0x598a55=_0x1ae9d4;if(!this[_0x598a55(0x219)])throw new _0x32da5e(_0x598a55(0x1df),null,{'aiReply':this});const _0x589e84=this[_0x598a55(0x1d3)](_0x3e42db,_0x10ce8f);if(_0x589e84)return _0x589e84;let _0x3a4faf=[];if(void 0x0===_0x10ce8f)_0x3a4faf=this[_0x598a55(0x210)];else{const _0x172f47=this[_0x598a55(0x210)][_0x598a55(0x205)](({index:_0x528132})=>_0x528132===_0x10ce8f);if(!_0x172f47)throw new _0x32da5e(_0x598a55(0x1dc),null,{'aiReply':this,'groupIndex':_0x10ce8f});_0x3a4faf=[_0x172f47];}const _0x16536a=_0x75cf6d({'editor':this[_0x598a55(0x219)],'showDiff':_0x3e42db,'changeGroups':_0x3a4faf,'documentContextContent':this[_0x598a55(0x1f8)]});return this[_0x598a55(0x1d8)](_0x3e42db,_0x16536a),_0x16536a;}[_0x1ae9d4(0x1d3)](_0x5a6a84,_0x55a910){const _0x157a95=_0x1ae9d4,_0x2c3a40=_0x5a6a84?_0x157a95(0x1ca):_0x157a95(0x1fb);if(!this[_0x157a95(0x209)][_0x2c3a40][_0x157a95(0x1f5)])return null;const _0x14379c=this[_0x157a95(0x209)][_0x2c3a40];if(void 0x0===_0x55a910)return _0x218d2b(_0x14379c);{const _0x1aeb28=_0x14379c[_0x157a95(0x205)](({index:_0x587894})=>_0x587894===_0x55a910);if(_0x1aeb28)return[_0x218d2b(_0x1aeb28)];}return null;}[_0x1ae9d4(0x1d8)](_0x586f8b,_0x3f89e2){const _0x130753=_0x1ae9d4,_0x5a1b29=_0x586f8b?_0x130753(0x1ca):_0x130753(0x1fb);_0x3f89e2[_0x130753(0x21c)](_0x38dddb=>{const _0x4b3c72=_0x130753,_0x4a7962=this[_0x4b3c72(0x209)][_0x5a1b29],_0x42a704=_0x4a7962[_0x4b3c72(0x205)](({index:_0x2040ef})=>_0x2040ef===_0x38dddb[_0x4b3c72(0x1f3)]);if(_0x42a704){const _0x3a3179=_0x4a7962[_0x4b3c72(0x20d)](_0x42a704);_0x4a7962[_0x4b3c72(0x212)](_0x3a3179,0x1,_0x38dddb);}else _0x4a7962[_0x4b3c72(0x207)](_0x38dddb);});}[_0x1ae9d4(0x213)](){const _0x277ae7=_0x1ae9d4;if(_0x277ae7(0x21d)===this[_0x277ae7(0x1e2)]){this[_0x277ae7(0x1e7)]=this[_0x277ae7(0x1d1)][_0x277ae7(0x217)](this[_0x277ae7(0x203)]);const _0x1c1f09=this[_0x277ae7(0x210)];this[_0x277ae7(0x206)]();const _0x37641b=this[_0x277ae7(0x1d0)](_0x1c1f09,this[_0x277ae7(0x210)]);(_0x37641b[_0x277ae7(0x1f5)]||this[_0x277ae7(0x1d4)])&&(this[_0x277ae7(0x1cd)](_0x277ae7(0x1eb),this,_0x37641b),this[_0x277ae7(0x209)][_0x277ae7(0x1ca)][_0x277ae7(0x1f5)]=this[_0x277ae7(0x209)][_0x277ae7(0x1fb)][_0x277ae7(0x1f5)]=0x0);}else this[_0x277ae7(0x1e7)]=this[_0x277ae7(0x1d1)][_0x277ae7(0x1f4)](this[_0x277ae7(0x203)]),this[_0x277ae7(0x1cd)](_0x277ae7(0x1eb),this);}[_0x1ae9d4(0x1d0)](_0x453898,_0x4f113c){const _0x26d0b8=_0x1ae9d4,_0x4376f5=[];for(const _0x4d0492 of _0x4f113c){const _0x3cf476=_0x453898[_0x4d0492[_0x26d0b8(0x1f3)]];_0x3cf476?_0x3cf476[_0x26d0b8(0x1e9)][_0x26d0b8(0x1f5)]!==_0x4d0492[_0x26d0b8(0x1e9)][_0x26d0b8(0x1f5)]?_0x4376f5[_0x26d0b8(0x207)](_0x4d0492):_0x3cf476[_0x26d0b8(0x1e9)][_0x26d0b8(0x21c)]((_0x36f7cc,_0x419acf)=>{const _0x59dafc=_0x26d0b8,_0x5dc347=_0x4d0492[_0x59dafc(0x1e9)][_0x419acf];_0x36f7cc['id']!==_0x5dc347['id']&&_0x4376f5[_0x59dafc(0x207)](_0x4d0492);}):_0x4376f5[_0x26d0b8(0x207)](_0x4d0492);}return _0x4376f5;}[_0x1ae9d4(0x206)](){const _0x459068=_0x1ae9d4,_0x53e927=new _0x5c5c2f('p',{},[new _0x5c5c2f(_0x459068(0x1f9),{'style':_0x459068(0x215)},[new _0x529011(_0x34d524(this[_0x459068(0x219)][_0x459068(0x1d7)],_0x459068(0x1c9)))])]),_0x248971=this[_0x459068(0x1ec)][_0x459068(0x1cf)](this[_0x459068(0x1e7)],this[_0x459068(0x1f8)][_0x459068(0x1ff)](!0x0),{'markUnstableElements':!this[_0x459068(0x1d4)],'replaceRemovedWith':_0x53e927,'cutAfterLastChange':!this[_0x459068(0x1d4)]});if(!_0x248971[_0x459068(0x20f)][_0x459068(0x1f5)]&&!this[_0x459068(0x1d4)])return;this[_0x459068(0x200)]=_0x248971[_0x459068(0x1e7)];let _0x50f44c=[];if(_0x18311e(_0x2be8a3=>{const _0x563803=_0x459068,_0x59a265=_0x4189e2(_0x2be8a3,_0x563803(0x208));if(!_0x59a265||!_0x3304ad(_0x59a265))return!0x1;const _0x38eaa0=[_0x2be8a3,..._0x1673c9(_0x2be8a3)]['at'](-0x2);if(_0x2be8a3!=_0x38eaa0){const _0x3e35cc=_0x4189e2(_0x38eaa0,_0x563803(0x208));_0x3304ad(_0x3e35cc)||(_0x50f44c[_0x563803(0x207)]({'node':_0x38eaa0,'id':_0x3e35cc,'type':_0x563803(0x1fe)}),_0x248971[_0x563803(0x20f)][_0x563803(0x207)](_0x3e35cc));}else _0x248971[_0x563803(0x20f)][_0x563803(0x1f1)](_0x59a265)?_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x1fe),'id':_0x59a265}):_0x248971[_0x563803(0x1ef)][_0x563803(0x1f1)](_0x59a265)?_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x20b),'id':_0x59a265,'anchorId':_0x4189e2(_0x2be8a3[_0x563803(0x204)],_0x563803(0x208))}):_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x1d9),'id':_0x59a265});return!0x0;},this[_0x459068(0x200)]),_0x50f44c=_0x50f44c[_0x459068(0x1ea)](({node:_0x4256e9})=>[..._0x1673c9(_0x4256e9),_0x4256e9][_0x459068(0x21b)](_0x26a67d=>!_0x4189e2(_0x26a67d,_0x459068(0x1db)))),0x0==_0x50f44c[_0x459068(0x1f5)])return;const _0x5b81d4=[[_0x50f44c[0x0]]];for(let _0x5204f6=0x1;_0x5204f6<_0x50f44c[_0x459068(0x1f5)];_0x5204f6++){const _0x1e488f=_0x5b81d4[_0x5b81d4[_0x459068(0x1f5)]-0x1],_0x2dfff5=_0x1e488f[_0x1e488f[_0x459068(0x1f5)]-0x1];_0x50f44c[_0x5204f6][_0x459068(0x1f0)][_0x459068(0x204)]==_0x2dfff5[_0x459068(0x1f0)]&&_0x459068(0x1fe)!=_0x50f44c[_0x5204f6][_0x459068(0x1e2)]&&_0x459068(0x1fe)!=_0x2dfff5[_0x459068(0x1e2)]?_0x1e488f[_0x459068(0x207)](_0x50f44c[_0x5204f6]):_0x5b81d4[_0x459068(0x207)]([_0x50f44c[_0x5204f6]]);}for(const _0x269c59 of _0x5b81d4){const _0x39ec4d=_0x269c59[0x0],_0x102bed=_0x269c59[_0x269c59[_0x459068(0x1f5)]-0x1],_0x7d0af4=_0x427f8d(_0x39ec4d[_0x459068(0x1f0)][_0x459068(0x204)]);_0x7d0af4&&_0x269c59[_0x459068(0x21a)](_0x7d0af4);const _0x4168fb=_0x427f8d(_0x102bed[_0x459068(0x1f0)][_0x459068(0x216)]);_0x4168fb&&_0x269c59[_0x459068(0x207)](_0x4168fb);}function _0x3304ad(_0x2cc583){const _0x34d048=_0x459068;return _0x248971[_0x34d048(0x20f)][_0x34d048(0x1f1)](_0x2cc583)||_0x248971[_0x34d048(0x1ef)][_0x34d048(0x1f1)](_0x2cc583)||_0x248971[_0x34d048(0x1d5)][_0x34d048(0x1f1)](_0x2cc583);}function _0x427f8d(_0xe813ed){const _0x484fa3=_0x459068;if(_0xe813ed&&_0x4189e2(_0xe813ed,_0x484fa3(0x208))&&!_0x4189e2(_0xe813ed,_0x484fa3(0x1db))){const _0x398112=_0x4189e2(_0xe813ed,_0x484fa3(0x208));if(!_0x3304ad(_0x398112))return{'node':_0xe813ed,'type':_0x484fa3(0x218),'id':_0x398112};}return null;}this[_0x459068(0x210)]=_0x5b81d4[_0x459068(0x1e5)]((_0x50fafa,_0x1f6969)=>({'changes':_0x50fafa,'state':_0x459068(0x211),'index':_0x1f6969}));}}export function isValidReplyType(_0x58f3aa){const _0x440930=_0x1ae9d4;return Object[_0x440930(0x1ed)](AI_REPLY_TYPES)[_0x440930(0x1f1)](_0x58f3aa);}export function isIgnoredReplyType(_0x45c472){const _0x5c4047=_0x1ae9d4;return AI_REPLY_TYPES_IGNORED[_0x5c4047(0x1f1)](_0x45c472);}export function isReplyTitleType(_0xae83db){return _0xae83db===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x443725){const _0x508a11=_0x1ae9d4;return _0x508a11(0x21f)===_0x443725;}
|