@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x204de0=_0xd2db;(function(_0x212b83,_0x17768f){const _0x3eac94=_0xd2db,_0x35c9c5=_0x212b83();while(!![]){try{const _0x2d5fde=parseInt(_0x3eac94(0x11f))/0x1+-parseInt(_0x3eac94(0x15f))/0x2*(parseInt(_0x3eac94(0x169))/0x3)+parseInt(_0x3eac94(0x140))/0x4*(parseInt(_0x3eac94(0xdc))/0x5)+parseInt(_0x3eac94(0x19c))/0x6+-parseInt(_0x3eac94(0x151))/0x7+parseInt(_0x3eac94(0x16d))/0x8+-parseInt(_0x3eac94(0x117))/0x9*(parseInt(_0x3eac94(0x10d))/0xa);if(_0x2d5fde===_0x17768f)break;else _0x35c9c5['push'](_0x35c9c5['shift']());}catch(_0x2a9cf5){_0x35c9c5['push'](_0x35c9c5['shift']());}}}(_0x4d38,0xbcfa1));import{Plugin as _0xf1ee02}from'ckeditor5/src/core.js';import{AIConnector as _0x2fb014}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x5a1593}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3f94d0,ButtonView as _0x28b59a,ViewCollection as _0x2e9255,View as _0x52f630}from'ckeditor5/src/ui.js';import{AIEditing as _0x1e3f1c}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4b1f75}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x59200e,first as _0x21bb81}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x215182,IconRefresh as _0x146f8c,IconNextArrow as _0x40047d,IconPreviousArrow as _0x18f19d,IconShowChangesOff as _0x35c373}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x10bdba}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xa999dc}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x3b796d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x164d47}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x4b0301}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4b0b4f,getOperationsFromReply as _0x1d40d6}from'../aicore/utils/getoperationsfromreply.js';function _0xd2db(_0x1852d1,_0x460c09){const _0x4d3856=_0x4d38();return _0xd2db=function(_0xd2dbfd,_0x2c38f0){_0xd2dbfd=_0xd2dbfd-0xc1;let _0x3f5266=_0x4d3856[_0xd2dbfd];return _0x3f5266;},_0xd2db(_0x1852d1,_0x460c09);}import{ModelDocumentFragment as _0x2ff68e,ModelRange as _0x1f620b,ModelPosition as _0x27165c,_DetachOperation as _0x3c364c,transformOperationSets as _0xc735fa}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4d78ed}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x4d38(){const _0x280b8a=['toolbar','getSelectedTableCells','418235qmIoOO','setTemplate','toggleSuggestionDisplayMode','isPremiumPlugin','isEnabled','getSelectedContent','hideLoader','_displayInteractionAtIndex','path','_navigateToPrevious','ai-request-aborted','howMany','_stopInteraction','requires','getChild','actionName','getChildAtOffset','startAutoScroll','AIActions','Error\x20refreshing\x20interaction:','ai-no-track-changes','icon','element','_wrapWithCommonAncestors','selection','remove','isCollapsed','showError','clearErrorState','_promiseQueue','bind','_anchorOperation','setErrorState','_clearInteractionHistory','error','pending','history','stickiness','_isNavigationNextButtonInView','editor','_navigationPreviousButton','addOperation','_isNavigationCounterInView','_balloonShowDiff','Attribute','AIConnector','_applyOperationsAsSuggestions','getCommonAncestor','push','110iTErye','setChangeGroupState','TrackChanges','interactionFinished','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_currentInteractionIndex','rejected','executeAction','static','1703889daWgwj','span','map','aiBalloon','_clone','filter','replyContentUpdated','slice','1299685XBGWDB','get','setLoading','baseVersion','split','_aiConnector','startsWith','showChangesButton','random','type','streaming','isLoading','pluginName','set','setSelection','hasError','ck-ai-navigation-button\x20ck-ai-previous-button','focus','_getExecuteDataInTable','indexOf','isOfficialPlugin','_refreshInteraction','_interactions','_children','getAncestors','parent','length','Error\x20updating\x20content\x20during\x20navigation:','add','_clearSuggestionContent','schema','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','change','44ceLBhq','merge','hideError','processor','rename','bodyView','replies','state','_appendChild','miniToolbarView','AI_ACTIONS_TRY_AGAIN','getSelectionAsFragment','getRoot','ck-ai-interaction-counter','toData','changeGroups','has','1273622csRJrx','accepted','getLimitElement','enqueue','isBusy','catch','first','TrackChangesEditing','_getExecuteDataRegular','start','getSelectedBlocks','_navigationCounter','createPositionAfter','applySuggestion','789040QumAbm','insert','queueEmptyPromise','stopListening','1/1','TableSelection','execute','end','_applyChanges','range','3JjjBqy','_executeAction','_filterOperationsOutsideRange','createRange','5216232jVnlby','_customViews','forEach','removeNavigationItem','clearLoading','createPositionAt','dialogClosed','signal','getFirstRange','_interaction','actionCallId','ck-ai-custom-action-button','listenTo','areChangesVisible','nextSibling','_navigationNextButton','version','sourcePosition','root','AI_ACTIONS_PREVIOUS_INTERACTION','upsertAIActionRating','abort','insertSuggestion','nodeAfter','document','_execute','operationsA','isDocumentOperation','documentContextContent','getDocumentContext','updateContent','_setErrorState','getOperations','applyOperation','replyCreated','addNavigationItem','stopInteraction','close','_clearErrorState','_isAbortError','stopAutoScroll','AI_ACTIONS_NEXT_INTERACTION','_isNavigationPreviousButtonInView','batch','position','hasPendingParts','move','3367290wSnFSj','_navigateToNext','stop','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','config','_clearLoadingState','message','open','documentFragment','selectionRemoved','$graveyard','AI_ACTIONS_GENERIC_ERROR','textContent','createPositionBefore','_setupCustomViews','showLoader','getRanges','ck-ai-navigation-button\x20ck-ai-next-button','replyChangeGroupStateUpdated','_setLoadingState','modelToViewWithIds','ai.availableReplyActions','includes','clone','_disableCustomViews','_interactionParams','AIBalloon','Error\x20updating\x20content\x20in\x20replyCreated:','data','rootName','mainView','reinsert','plugins','model','_createInteraction','_updateNavigationUI','locale','balloonView'];_0x4d38=function(){return _0x280b8a;};return _0x4d38();}export class AIActions extends _0xf1ee02{static get[_0x204de0(0xe9)](){return[_0x2fb014,_0x3f94d0,_0x1e3f1c,_0x10bdba,_0x4b0301];}static get[_0x204de0(0x12b)](){const _0x4d40fa=_0x204de0;return _0x4d40fa(0xee);}static get[_0x204de0(0x133)](){return!0x0;}static get[_0x204de0(0xdf)](){return!0x0;}[_0x204de0(0x124)];[_0x204de0(0x135)]=[];[_0x204de0(0x113)]=0x0;[_0x204de0(0xcd)];[_0x204de0(0x107)]=!0x1;[_0x204de0(0x16e)]=new _0x2e9255();[_0x204de0(0x104)];[_0x204de0(0x15c)];[_0x204de0(0x106)]=!0x1;[_0x204de0(0x17c)];[_0x204de0(0x197)]=!0x1;[_0x204de0(0x102)]=!0x1;[_0x204de0(0xf9)];get[_0x204de0(0x176)](){const _0x555c9f=_0x204de0;return this[_0x555c9f(0x135)][this[_0x555c9f(0x135)][_0x555c9f(0x139)]-0x1];}constructor(_0x2569db){const _0x5763c0=_0x204de0;super(_0x2569db),this[_0x5763c0(0x124)]=this[_0x5763c0(0x103)][_0x5763c0(0xd4)][_0x5763c0(0x120)](_0x5763c0(0x109)),this[_0x5763c0(0x12c)](_0x5763c0(0x155),!0x1),this[_0x5763c0(0xf9)]=new _0xa999dc(),this[_0x5763c0(0xc2)]();}[_0x204de0(0x191)](){const _0x17129d=_0x204de0;this[_0x17129d(0xe8)]();}async[_0x204de0(0x115)](_0x5ed8e6,_0x2211f5,_0x8780b9){const _0x48f9cd=_0x204de0;if(this[_0x48f9cd(0x103)][_0x48f9cd(0xd4)][_0x48f9cd(0x150)](_0x48f9cd(0x164))){if(this[_0x48f9cd(0x103)][_0x48f9cd(0xd4)][_0x48f9cd(0x120)](_0x48f9cd(0x164))[_0x48f9cd(0xdb)]()){const {modelFragment:_0x33706b,anchorData:_0x144740}=this[_0x48f9cd(0x131)]();return this[_0x48f9cd(0x16a)](_0x5ed8e6,_0x33706b,_0x144740,_0x2211f5,_0x8780b9);}}const {modelFragment:_0x1f3df6,anchorData:_0x1b4373}=this[_0x48f9cd(0x159)]();return this[_0x48f9cd(0x16a)](_0x5ed8e6,_0x1f3df6,_0x1b4373,_0x2211f5,_0x8780b9);}[_0x204de0(0x159)](){const _0x9e6a5f=_0x204de0,_0x21761e=this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0x185)][_0x9e6a5f(0xf4)];if(_0x21761e[_0x9e6a5f(0xf6)]){const _0x243a96=_0x21bb81(_0x21761e[_0x9e6a5f(0x15b)]())||this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0x13d)][_0x9e6a5f(0x153)](_0x21761e);this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0x13f)](_0x4af689=>{const _0x3f2fa5=_0x9e6a5f;_0x4af689[_0x3f2fa5(0x12d)](_0x243a96,'in');});}const _0x1ee776=_0x21761e[_0x9e6a5f(0x175)](),_0x91645f=this[_0x9e6a5f(0xf3)](this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0xe1)](_0x21761e),_0x1ee776[_0x9e6a5f(0x15a)],_0x1ee776[_0x9e6a5f(0x166)]),_0x36054d=_0x21761e[_0x9e6a5f(0x175)]()[_0x9e6a5f(0x15a)],_0x5b5b73=new Map();let _0x2d72f3=_0x91645f;for(let _0x11ca0e=0x0;_0x11ca0e<_0x36054d[_0x9e6a5f(0xe4)][_0x9e6a5f(0x139)];_0x11ca0e++)_0x5b5b73[_0x9e6a5f(0x12c)](_0x2d72f3,_0x36054d[_0x9e6a5f(0xe4)][_0x11ca0e]),_0x2d72f3=_0x2d72f3[_0x9e6a5f(0xea)](0x0);return{'modelFragment':_0x91645f,'anchorData':_0x5b5b73};}[_0x204de0(0x131)](){const _0x26b77a=_0x204de0,_0x2b400f=this[_0x26b77a(0x103)][_0x26b77a(0xd5)][_0x26b77a(0x185)][_0x26b77a(0xf4)],_0x4ab393=this[_0x26b77a(0x103)][_0x26b77a(0xd4)][_0x26b77a(0x120)](_0x26b77a(0x164))[_0x26b77a(0x14b)](),_0xfbb624=_0x2b400f[_0x26b77a(0x175)]()[_0x26b77a(0x15a)][_0x26b77a(0x138)][_0x26b77a(0x138)],_0x11ce5e=this[_0x26b77a(0xf3)](_0x4ab393,this[_0x26b77a(0x103)][_0x26b77a(0xd5)][_0x26b77a(0xc1)](_0xfbb624),this[_0x26b77a(0x103)][_0x26b77a(0xd5)][_0x26b77a(0x15d)](_0xfbb624)),_0xb8906d=_0x2b400f[_0x26b77a(0x175)]()[_0x26b77a(0x15a)],_0x523406=new Map();let _0x1f1efd=_0x11ce5e;for(let _0x31151a=0x0;_0x31151a<_0xb8906d[_0x26b77a(0xe4)][_0x26b77a(0x139)];_0x31151a++)if(_0x523406[_0x26b77a(0x12c)](_0x1f1efd,_0xb8906d[_0x26b77a(0xe4)][_0x31151a]),_0x31151a<_0xb8906d[_0x26b77a(0xe4)][_0x26b77a(0x139)]-0x1)_0x1f1efd=_0x1f1efd[_0x26b77a(0xea)](0x0);else{let _0x2589e3=_0x1f1efd[_0x26b77a(0x17b)];for(;_0x2589e3;)_0x523406[_0x26b77a(0x12c)](_0x2589e3,_0xb8906d[_0x26b77a(0xe4)][_0x31151a]),_0x2589e3=_0x2589e3[_0x26b77a(0x17b)];}return{'modelFragment':_0x11ce5e,'anchorData':_0x523406};}[_0x204de0(0x16a)](_0x7d8caa,_0x187360,_0xd611da,_0x29b096,_0x4d8213){const _0x303c48=_0x204de0,_0x38ffb3=this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x120)](_0x1e3f1c),_0x11903a=this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x120)](_0x10bdba),_0x3cf54e=this[_0x303c48(0x103)][_0x303c48(0xd5)][_0x303c48(0x185)][_0x303c48(0xf4)],_0x30c902=_0x38ffb3[_0x303c48(0xc8)](_0x187360),_0x1c7e74=this[_0x303c48(0x103)][_0x303c48(0xd0)][_0x303c48(0x143)][_0x303c48(0x14e)](_0x30c902),_0x3a8f43=this[_0x303c48(0x103)][_0x303c48(0xd5)][_0x303c48(0x185)][_0x303c48(0x17d)],_0x42c597=[..._0x3cf54e[_0x303c48(0xc4)]()];let _0x1ca97f=this[_0x303c48(0x103)][_0x303c48(0x1a0)][_0x303c48(0x120)](_0x303c48(0xc9))||[..._0x4d78ed];this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x150)](_0x303c48(0x10f))||(_0x1ca97f=_0x1ca97f[_0x303c48(0x11c)](_0x1dd21a=>_0x303c48(0x183)!=_0x1dd21a));const _0x53d6bf=new _0x5a1593(this[_0x303c48(0x103)][_0x303c48(0xd8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x303c48(0xf1),'customView':this[_0x303c48(0x16e)]},'showUnchangedParts':!0x0,'availableActions':_0x1ca97f});return _0x11903a[_0x303c48(0x1a3)]({'index':0x3e8*Math[_0x303c48(0x127)]()%0x3e8,'title':_0x29b096,'icon':_0x4d8213||_0x215182,'mainView':_0x53d6bf,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x150)](_0x303c48(0x10f)),'ranges':_0x42c597}),this[_0x303c48(0xc7)](_0x53d6bf,_0x11903a),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x15e),()=>{const _0x3c5218=_0x303c48;this[_0x3c5218(0x167)](_0x187360,_0xd611da,!0x1);}),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x183),()=>{const _0x498d11=_0x303c48;this[_0x498d11(0x167)](_0x187360,_0xd611da,!0x0);}),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x1a5),()=>{const _0x55f3ca=_0x303c48;this[_0x55f3ca(0xe8)](),this[_0x55f3ca(0xcc)]();}),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x173),()=>{const _0x58b812=_0x303c48;if(this[_0x58b812(0x176)]&&this[_0x58b812(0x176)][_0x58b812(0x146)][_0x58b812(0x139)]>0x0){const _0x123741=this[_0x58b812(0x176)][_0x58b812(0x146)][this[_0x58b812(0x176)][_0x58b812(0x146)][_0x58b812(0x139)]-0x1],_0xfd52f0=_0x123741[_0x58b812(0x14f)][0x0];_0xfd52f0&&_0x58b812(0xff)===_0xfd52f0[_0x58b812(0x147)]&&_0x123741[_0x58b812(0x10e)](0x0,_0x58b812(0x114));}this[_0x58b812(0xe8)](),this[_0x58b812(0xfd)](),this[_0x58b812(0x162)](_0x11903a);}),this[_0x303c48(0xd6)](_0x1c7e74,_0x3a8f43,_0x53d6bf,_0x11903a,_0x7d8caa);}[_0x204de0(0xf3)](_0x38b50a,_0x2b828f,_0x6f0c24){const _0x3f1f0c=_0x204de0,_0x580eee=this[_0x3f1f0c(0x103)][_0x3f1f0c(0xd5)][_0x3f1f0c(0x16c)](_0x2b828f,_0x6f0c24)[_0x3f1f0c(0x10b)](),_0x29d51a=_0x580eee['is'](_0x3f1f0c(0x1a4))?[]:_0x580eee[_0x3f1f0c(0x137)]({'includeSelf':!0x0})[_0x3f1f0c(0x11e)](0x1);if(_0x29d51a[_0x3f1f0c(0x139)]){const _0x58c928=_0x29d51a[_0x3f1f0c(0x119)](_0x35bdb5=>_0x35bdb5[_0x3f1f0c(0x11b)](!0x1));for(let _0xe8a860=0x1;_0xe8a860<_0x58c928[_0x3f1f0c(0x139)];_0xe8a860++)_0x58c928[_0xe8a860-0x1][_0x3f1f0c(0x148)](_0x58c928[_0xe8a860]);return _0x58c928[_0x58c928[_0x3f1f0c(0x139)]-0x1][_0x3f1f0c(0x148)](_0x38b50a),new _0x2ff68e(_0x58c928[0x0]);}return _0x38b50a;}async[_0x204de0(0xd6)](_0x3c7e88,_0xd0686d,_0x1dbacc,_0x456f07,_0x3588d8){const _0xebc89e=_0x204de0,_0x3f18f9=this[_0xebc89e(0x103)];this[_0xebc89e(0xcd)]={'action':_0x3588d8,'content':_0x3c7e88,'version':_0xd0686d,'mainView':_0x1dbacc,'aiBalloon':_0x456f07};const _0x2c5f81=new _0x4b1f75({'connector':this[_0xebc89e(0x124)],'editor':_0x3f18f9,'content':_0x3c7e88,'version':_0xd0686d,..._0x3588d8});this[_0xebc89e(0x135)][_0xebc89e(0x10c)](_0x2c5f81),_0x1dbacc[_0xebc89e(0x142)]();const _0x5126a6=(_0x2f02d0,_0x3d7cd0,_0x3a526b=!0x1,_0x37e527=_0xebc89e(0x129))=>this[_0xebc89e(0xf9)][_0xebc89e(0x154)](async _0x10091f=>{const _0x66f0d9=_0xebc89e;try{const _0x5d01ca=_0x164d47({'editor':_0x3f18f9,'changeGroups':_0x2f02d0[_0x66f0d9(0x14f)],'documentContextContent':_0x2f02d0[_0x66f0d9(0x189)],'showDiff':_0x3a526b,'trimUnchanged':!0x1});await _0x3d7cd0[_0x66f0d9(0x18b)]({'parts':_0x5d01ca,'renderingStrategy':_0x37e527,'abortSignal':_0x10091f});}catch(_0xa1d8f3){if(this[_0x66f0d9(0x194)](_0xa1d8f3))return;throw _0xa1d8f3;}});this[_0xebc89e(0x176)]['on'](_0xebc89e(0x18f),(_0x2084f2,_0x41116b)=>{const _0x172957=_0xebc89e;_0x1dbacc[_0x172957(0xe2)](),_0x456f07[_0x172957(0xed)](),_0x5126a6(_0x41116b,_0x1dbacc)[_0x172957(0x156)](_0x9a9033=>{const _0x51ea1a=_0x172957;this[_0x51ea1a(0x194)](_0x9a9033)||(console[_0x51ea1a(0xfe)](_0x51ea1a(0xcf),_0x9a9033),this[_0x51ea1a(0x18c)](_0x2c5f81,_0x1dbacc));});}),this[_0xebc89e(0x176)]['on'](_0xebc89e(0x11d),(_0x1776a5,_0x4bf675)=>{const _0x30f789=_0xebc89e;_0x5126a6(_0x4bf675,_0x1dbacc)[_0x30f789(0x156)](_0x1022dd=>{const _0x188fe6=_0x30f789;this[_0x188fe6(0x194)](_0x1022dd)||(console[_0x188fe6(0xfe)](_0x188fe6(0x112),_0x1022dd),this[_0x188fe6(0x18c)](_0x2c5f81,_0x1dbacc));});}),this[_0xebc89e(0x176)]['on'](_0xebc89e(0x110),async()=>{const _0x117bb3=_0xebc89e;try{await this[_0x117bb3(0x1a1)](_0x1dbacc,_0x456f07),this[_0x117bb3(0xd7)](),await this[_0x117bb3(0xf9)][_0x117bb3(0x161)];}catch(_0xcba2b0){this[_0x117bb3(0x194)](_0xcba2b0)||(console[_0x117bb3(0xfe)](_0x117bb3(0x19f),_0xcba2b0),this[_0x117bb3(0x18c)](_0x2c5f81,_0x1dbacc));}finally{_0x456f07[_0x117bb3(0x195)]();}}),this[_0xebc89e(0x179)](_0x1dbacc,_0xebc89e(0xde),async(_0x434b4a,{showDiff:_0x1b646f})=>{const _0x13275c=_0xebc89e;try{this[_0x13275c(0x107)]=_0x1b646f;const _0x1d3c01=this[_0x13275c(0x176)][_0x13275c(0x146)][this[_0x13275c(0x176)][_0x13275c(0x146)][_0x13275c(0x139)]-0x1];_0x1d3c01&&await _0x5126a6(_0x1d3c01,_0x1dbacc,_0x1b646f,_0x13275c(0x116));}catch(_0x3e0008){this[_0x13275c(0x194)](_0x3e0008)||(console[_0x13275c(0xfe)](_0x13275c(0x13e),_0x3e0008),this[_0x13275c(0x18c)](_0x2c5f81,_0x1dbacc));}}),this[_0xebc89e(0x176)]['on'](_0xebc89e(0xc6),(_0x468d7b,{reply:_0x334705})=>{const _0x572558=_0xebc89e,_0x5de556={'positiveCount':_0x334705[_0x572558(0x14f)][_0x572558(0x11c)](_0x427c4b=>_0x572558(0x152)===_0x427c4b[_0x572558(0x147)])[_0x572558(0x139)],'totalCount':_0x334705[_0x572558(0x14f)][_0x572558(0x139)]},_0x17c052=this[_0x572558(0x176)][_0x572558(0x177)],_0x21829d=this[_0x572558(0x176)][_0x572558(0xeb)];_0x21829d?this[_0x572558(0x124)][_0x572558(0x181)](_0x21829d,_0x17c052,_0x5de556):this[_0x572558(0x124)][_0x572558(0x111)](_0x17c052,_0x5de556);}),this[_0xebc89e(0xc7)](_0x1dbacc,_0x456f07);try{const _0x426bc4=await this[_0xebc89e(0x176)][_0xebc89e(0x15a)]();return this[_0xebc89e(0xd7)](),_0x426bc4;}catch(_0x2df8d5){if(this[_0xebc89e(0x194)](_0x2df8d5))return;_0x1dbacc[_0xebc89e(0xe2)](),this[_0xebc89e(0x18c)](_0x2c5f81,_0x1dbacc);}}[_0x204de0(0x167)](_0x30d7d1,_0x3ce8a6,_0x5ebf78){const _0x4e748b=_0x204de0,_0x36d352=this[_0x4e748b(0x103)];if(_0x5ebf78&&!_0x36d352[_0x4e748b(0xd4)][_0x4e748b(0x150)](_0x4e748b(0x10f)))throw new _0x59200e(_0x4e748b(0xf0),null);const _0x2f45ae=this[_0x4e748b(0x103)][_0x4e748b(0xd4)][_0x4e748b(0x120)](_0x4b0301),_0x554d02=this[_0x4e748b(0x176)],_0x4af403=this[_0x4e748b(0x176)][_0x4e748b(0x146)][this[_0x4e748b(0x176)][_0x4e748b(0x146)][_0x4e748b(0x139)]-0x1],_0x2449df=_0x4af403[_0x4e748b(0x14f)];_0x4af403[_0x4e748b(0x10e)](0x0,_0x4e748b(0x152));let _0x57528f=_0x1d40d6({'editor':_0x36d352,'reply':_0x4af403,'interaction':_0x554d02,'groups':_0x2449df,'transform':!0x1,'documentCompare':_0x2f45ae,'documentCompareOptions':{'anchor':_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x172)](_0x30d7d1,0x0),'markDeletions':_0x5ebf78}});_0x57528f=this[_0x4e748b(0x16b)](_0x57528f,_0x3ce8a6);for(const _0x7f68c3 of _0x57528f)this[_0x4e748b(0xfb)](_0x3ce8a6,_0x7f68c3,_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x185)][_0x4e748b(0x14c)]());const _0x32f925=_0x554d02[_0x4e748b(0x18a)]()[_0x4e748b(0x17d)],_0x42cc5c=_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x185)][_0x4e748b(0x100)][_0x4e748b(0x18d)](_0x32f925),_0x10d6a2={'document':_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x185)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x316048=_0xc735fa(_0x57528f,_0x42cc5c,_0x10d6a2)[_0x4e748b(0x187)];_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x13f)](_0x3b0eaa=>{const _0x5b6d1a=_0x4e748b;if(_0x3b0eaa[_0x5b6d1a(0x12d)](_0x36d352[_0x5b6d1a(0xd5)][_0x5b6d1a(0x185)][_0x5b6d1a(0xf4)][_0x5b6d1a(0x130)]),_0x5ebf78)_0x36d352[_0x5b6d1a(0xd4)][_0x5b6d1a(0x120)](_0x5b6d1a(0x158))[_0x5b6d1a(0x10a)](_0x316048);else{for(const _0x298b03 of _0x316048)_0x298b03[_0x5b6d1a(0x122)]=_0x36d352[_0x5b6d1a(0xd5)][_0x5b6d1a(0x185)][_0x5b6d1a(0x17d)],_0x4b0b4f(_0x36d352,_0x298b03),_0x3b0eaa[_0x5b6d1a(0x198)][_0x5b6d1a(0x105)](_0x298b03),_0x36d352[_0x5b6d1a(0xd5)][_0x5b6d1a(0x18e)](_0x298b03);}}),this[_0x4e748b(0x103)][_0x4e748b(0xd4)][_0x4e748b(0x120)](_0x4e748b(0xce))[_0x4e748b(0x192)]();}[_0x204de0(0x16b)](_0x25850f,_0x1fc1b6){const _0x3e1275=_0x204de0;return _0x25850f[_0x3e1275(0x11c)](_0x1fe9de=>{const _0x3c1c6b=_0x3e1275;if(_0x3c1c6b(0x144)==_0x1fe9de[_0x3c1c6b(0x128)]){const _0x288a2d=_0x1fe9de[_0x3c1c6b(0x199)][_0x3c1c6b(0x184)];return!_0x1fc1b6[_0x3c1c6b(0x150)](_0x288a2d);}if(_0x1fe9de[_0x3c1c6b(0x128)][_0x3c1c6b(0x132)](_0x3c1c6b(0x108))>-0x1){const _0x2ab0e9=_0x1fe9de[_0x3c1c6b(0x168)][_0x3c1c6b(0x15a)][_0x3c1c6b(0x184)];return!_0x1fc1b6[_0x3c1c6b(0x150)](_0x2ab0e9);}return!0x0;});}[_0x204de0(0xfb)](_0x22f0a4,_0x1d1aca,_0x34e6f4){const _0x22876f=_0x204de0,_0x4f9309=_0x1d1aca[_0x22876f(0xcb)]();for(const _0x36f59d in _0x1d1aca){const _0x104975=_0x1d1aca[_0x36f59d];_0x104975 instanceof _0x1f620b?_0x1d1aca[_0x36f59d]=new _0x1f620b(_0x236b28(_0x104975[_0x22876f(0x15a)]),_0x236b28(_0x104975[_0x22876f(0x166)])):_0x104975 instanceof _0x27165c&&(_0x1d1aca[_0x36f59d]=_0x236b28(_0x104975));}if([_0x22876f(0x160),_0x22876f(0x19b),_0x22876f(0xf5),_0x22876f(0xd3),_0x22876f(0x123),_0x22876f(0x141)][_0x22876f(0xca)](_0x4f9309[_0x22876f(0x128)])){if(_0x4f9309[_0x22876f(0x188)]=!0x1,_0x4f9309[_0x22876f(0x122)]=null,_0x22876f(0xf5)==_0x4f9309[_0x22876f(0x128)]){const _0x2d0e8f=_0x4f9309[_0x22876f(0x17e)],_0x28ac26=_0x4f9309[_0x22876f(0xe7)];new _0x3c364c(_0x2d0e8f,_0x28ac26)[_0x22876f(0x186)]();}else _0x4f9309[_0x22876f(0x186)]();}function _0x236b28(_0x523b8d){const _0x1bf7db=_0x22876f;if(_0x1bf7db(0x1a6)==_0x523b8d[_0x1bf7db(0x17f)][_0x1bf7db(0xd1)])return _0x523b8d;const _0x2c295d=[];let _0x4df4cd=_0x523b8d[_0x1bf7db(0x17f)];for(let _0x58f08d=0x0;_0x58f08d<_0x523b8d[_0x1bf7db(0xe4)][_0x1bf7db(0x139)];_0x58f08d++){const _0x4defd6=_0x22f0a4[_0x1bf7db(0x120)](_0x4df4cd)||0x0;_0x2c295d[_0x58f08d]=_0x523b8d[_0x1bf7db(0xe4)][_0x58f08d]+_0x4defd6,_0x4df4cd=_0x4df4cd[_0x1bf7db(0xec)](_0x523b8d[_0x1bf7db(0xe4)][_0x58f08d]);}return new _0x27165c(_0x34e6f4,_0x2c295d,_0x523b8d[_0x1bf7db(0x101)]);}}[_0x204de0(0x134)](){const _0x3cfd29=_0x204de0;if(!this[_0x3cfd29(0xcd)])return;this[_0x3cfd29(0x135)][_0x3cfd29(0x139)]>0x0&&this[_0x3cfd29(0xe8)](),this[_0x3cfd29(0x113)]=0x0,this[_0x3cfd29(0x107)]=!0x1;const {action:_0x148800,content:_0x24d7ee,version:_0xdee6e8,mainView:_0x42bffb,aiBalloon:_0x4499cc}=this[_0x3cfd29(0xcd)];_0x42bffb[_0x3cfd29(0x17a)]=!0x1,_0x42bffb[_0x3cfd29(0x142)](),this[_0x3cfd29(0x193)](_0x42bffb,_0x4499cc);const _0x25eafc=_0x42bffb;_0x25eafc[_0x3cfd29(0x149)]&&_0x25eafc[_0x3cfd29(0x149)][_0x3cfd29(0x126)]&&_0x25eafc[_0x3cfd29(0x149)][_0x3cfd29(0x126)][_0x3cfd29(0x12c)]({'isOn':!0x1,'icon':_0x35c373}),this[_0x3cfd29(0x13c)](_0x42bffb),_0x42bffb[_0x3cfd29(0xc3)](),this[_0x3cfd29(0xd7)](),this[_0x3cfd29(0x162)](_0x42bffb),this[_0x3cfd29(0xd6)](_0x24d7ee,_0xdee6e8,_0x42bffb,_0x4499cc,_0x148800)[_0x3cfd29(0x156)](_0x442e98=>{const _0x5dc279=_0x3cfd29;this[_0x5dc279(0x194)](_0x442e98)||console[_0x5dc279(0xfe)](_0x5dc279(0xef),_0x442e98);});}[_0x204de0(0x13c)](_0xc42779){const _0x293761=_0x204de0,_0x835700=_0xc42779[_0x293761(0x145)][_0x293761(0x136)];for(;_0x835700[_0x293761(0x139)]>0x0;)_0x835700[_0x293761(0xf5)](_0x835700[_0x293761(0x157)]);_0xc42779[_0x293761(0x145)][_0x293761(0x19a)]=!0x1;}[_0x204de0(0x194)](_0x22ce54){const _0x49a3fe=_0x204de0;return!!_0x22ce54[_0x49a3fe(0x1a2)]&&_0x22ce54[_0x49a3fe(0x1a2)][_0x49a3fe(0x125)](_0x49a3fe(0xe6));}[_0x204de0(0xfd)](){const _0x3eae92=_0x204de0;this[_0x3eae92(0x135)]=[],this[_0x3eae92(0xcd)]=void 0x0,this[_0x3eae92(0x113)]=0x0,this[_0x3eae92(0xd7)]();}[_0x204de0(0xe8)](){const _0x2d4df1=_0x204de0;this[_0x2d4df1(0x176)]&&this[_0x2d4df1(0x176)][_0x2d4df1(0x19e)](),this[_0x2d4df1(0xf9)][_0x2d4df1(0x182)](),this[_0x2d4df1(0x155)]=!0x1,this[_0x2d4df1(0xcd)]&&this[_0x2d4df1(0xcd)][_0x2d4df1(0x11a)][_0x2d4df1(0x195)]();}[_0x204de0(0xc2)](){const _0x2bedf2=_0x204de0,_0x12e0b8=new _0x28b59a(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]),_0x56fff5=new _0x28b59a(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]),_0x3f379f=new _0x52f630(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]),_0x682bb0=new _0x28b59a(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]);_0x12e0b8[_0x2bedf2(0x12c)]({'icon':_0x146f8c,'label':_0x3b796d(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)],_0x2bedf2(0x14a)),'tooltip':!0x0,'class':_0x2bedf2(0x178)}),_0x56fff5[_0x2bedf2(0x12c)]({'icon':_0x18f19d,'tooltip':_0x3b796d(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)],_0x2bedf2(0x180)),'class':_0x2bedf2(0x12f)}),_0x3f379f[_0x2bedf2(0xdd)]({'tag':_0x2bedf2(0x118),'attributes':{'class':[_0x2bedf2(0x14d)]},'children':[_0x2bedf2(0x163)]}),_0x682bb0[_0x2bedf2(0x12c)]({'icon':_0x40047d,'tooltip':_0x3b796d(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)],_0x2bedf2(0x196)),'class':_0x2bedf2(0xc5)}),_0x12e0b8[_0x2bedf2(0xfa)](_0x2bedf2(0xe0))['to'](this,_0x2bedf2(0x155),_0x46e2da=>!_0x46e2da),_0x12e0b8['on'](_0x2bedf2(0x165),()=>{const _0x753100=_0x2bedf2;this[_0x753100(0x134)]();}),_0x56fff5[_0x2bedf2(0xfa)](_0x2bedf2(0xe0))['to'](this,_0x2bedf2(0x155),_0x5be6f3=>!_0x5be6f3),_0x56fff5['on'](_0x2bedf2(0x165),()=>{const _0x40e514=_0x2bedf2;this[_0x40e514(0xe5)]();}),_0x682bb0[_0x2bedf2(0xfa)](_0x2bedf2(0xe0))['to'](this,_0x2bedf2(0x155),_0x2b7530=>!_0x2b7530),_0x682bb0['on'](_0x2bedf2(0x165),()=>{const _0x462c95=_0x2bedf2;this[_0x462c95(0x19d)]();}),this[_0x2bedf2(0x104)]=_0x56fff5,this[_0x2bedf2(0x15c)]=_0x3f379f,this[_0x2bedf2(0x17c)]=_0x682bb0,this[_0x2bedf2(0x16e)][_0x2bedf2(0x13b)](_0x12e0b8);}[_0x204de0(0xe5)](){const _0x24a2ae=_0x204de0,_0x119c34=this[_0x24a2ae(0x135)][_0x24a2ae(0x139)];this[_0x24a2ae(0x113)]<_0x119c34-0x1&&this[_0x24a2ae(0xe3)](this[_0x24a2ae(0x113)]+0x1);}[_0x204de0(0x19d)](){const _0x23969e=_0x204de0;this[_0x23969e(0x113)]>0x0&&this[_0x23969e(0xe3)](this[_0x23969e(0x113)]-0x1);}async[_0x204de0(0xe3)](_0xb241a2){const _0x5f56dc=_0x204de0;if(!this[_0x5f56dc(0xcd)])return;this[_0x5f56dc(0x113)]=_0xb241a2;const {mainView:_0x4b2d89}=this[_0x5f56dc(0xcd)],_0xbbe29=this[_0x5f56dc(0x135)][this[_0x5f56dc(0x135)][_0x5f56dc(0x139)]-0x1-this[_0x5f56dc(0x113)]];if(!_0xbbe29)return;if(_0xbbe29[_0x5f56dc(0x12e)])return this[_0x5f56dc(0x18c)](_0xbbe29,_0x4b2d89),void this[_0x5f56dc(0xd7)]();if(!_0xbbe29[_0x5f56dc(0x146)][_0x5f56dc(0x139)])return;_0x4b2d89[_0x5f56dc(0x142)](),this[_0x5f56dc(0xcd)]&&this[_0x5f56dc(0x193)](_0x4b2d89,this[_0x5f56dc(0xcd)][_0x5f56dc(0x11a)]);const _0x20fc6d=_0xbbe29[_0x5f56dc(0x146)][_0xbbe29[_0x5f56dc(0x146)][_0x5f56dc(0x139)]-0x1];if(_0x20fc6d){const _0x1aaf05=this[_0x5f56dc(0x103)];this[_0x5f56dc(0x13c)](_0x4b2d89);try{const _0x13117f=_0x164d47({'editor':_0x1aaf05,'changeGroups':_0x20fc6d[_0x5f56dc(0x14f)],'documentContextContent':_0x20fc6d[_0x5f56dc(0x189)],'showDiff':this[_0x5f56dc(0x107)],'trimUnchanged':!0x1});this[_0x5f56dc(0x13c)](_0x4b2d89),await new Promise(_0xed7cef=>setTimeout(_0xed7cef,0x32)),await _0x4b2d89[_0x5f56dc(0x18b)]({'parts':_0x13117f,'renderingStrategy':_0x5f56dc(0x116),'abortSignal':new AbortController()[_0x5f56dc(0x174)]});}catch(_0x4c4df4){this[_0x5f56dc(0x194)](_0x4c4df4)||console[_0x5f56dc(0xfe)](_0x5f56dc(0x13a),_0x4c4df4);}}this[_0x5f56dc(0xd7)]();}[_0x204de0(0xd7)](){const _0x5cc94f=_0x204de0;if(!this[_0x5cc94f(0x104)]||!this[_0x5cc94f(0x15c)]||!this[_0x5cc94f(0x17c)])return;const _0x5eed9b=this[_0x5cc94f(0x135)][_0x5cc94f(0x139)],_0x3f677e=_0x5eed9b>0x1,_0xf83b3d=this[_0x5cc94f(0xcd)]?.[_0x5cc94f(0xd2)];if(_0x3f677e){this[_0x5cc94f(0x197)]||this[_0x5cc94f(0x106)]||this[_0x5cc94f(0x102)]||(this[_0x5cc94f(0x16e)][_0x5cc94f(0x13b)](this[_0x5cc94f(0x104)]),_0xf83b3d?.[_0x5cc94f(0x190)](this[_0x5cc94f(0x104)]),this[_0x5cc94f(0x197)]=!0x0,this[_0x5cc94f(0x16e)][_0x5cc94f(0x13b)](this[_0x5cc94f(0x15c)]),_0xf83b3d?.[_0x5cc94f(0x190)](this[_0x5cc94f(0x15c)]),this[_0x5cc94f(0x106)]=!0x0,this[_0x5cc94f(0x16e)][_0x5cc94f(0x13b)](this[_0x5cc94f(0x17c)]),_0xf83b3d?.[_0x5cc94f(0x190)](this[_0x5cc94f(0x17c)]),this[_0x5cc94f(0x102)]=!0x0);const _0x2bc3d2=_0x5eed9b-this[_0x5cc94f(0x113)];this[_0x5cc94f(0x15c)][_0x5cc94f(0xf2)]&&(this[_0x5cc94f(0x15c)][_0x5cc94f(0xf2)][_0x5cc94f(0x1a8)]=_0x2bc3d2+'/'+_0x5eed9b),this[_0x5cc94f(0x104)][_0x5cc94f(0xe0)]=this[_0x5cc94f(0x113)]<_0x5eed9b-0x1,this[_0x5cc94f(0x17c)][_0x5cc94f(0xe0)]=this[_0x5cc94f(0x113)]>0x0;}else(this[_0x5cc94f(0x197)]||this[_0x5cc94f(0x106)]||this[_0x5cc94f(0x102)])&&(this[_0x5cc94f(0x16e)][_0x5cc94f(0xf5)](this[_0x5cc94f(0x104)]),_0xf83b3d?.[_0x5cc94f(0x170)](this[_0x5cc94f(0x104)]),this[_0x5cc94f(0x197)]=!0x1,this[_0x5cc94f(0x16e)][_0x5cc94f(0xf5)](this[_0x5cc94f(0x15c)]),_0xf83b3d?.[_0x5cc94f(0x170)](this[_0x5cc94f(0x15c)]),this[_0x5cc94f(0x106)]=!0x1,this[_0x5cc94f(0x16e)][_0x5cc94f(0xf5)](this[_0x5cc94f(0x17c)]),_0xf83b3d?.[_0x5cc94f(0x170)](this[_0x5cc94f(0x17c)]),this[_0x5cc94f(0x102)]=!0x1);}[_0x204de0(0xc7)](_0x37c6ea,_0x341125){const _0x145c15=_0x204de0;_0x37c6ea[_0x145c15(0x121)](),_0x341125[_0x145c15(0xd9)][_0x145c15(0x121)](),this[_0x145c15(0x155)]=!0x0;}async[_0x204de0(0x18c)](_0x200094,_0xf653cf){const _0x21b5e9=_0x204de0,_0x4dcfd6=_0x3b796d(this[_0x21b5e9(0x103)][_0x21b5e9(0xd8)],_0x21b5e9(0x1a7));_0xf653cf[_0x21b5e9(0xf7)](_0x4dcfd6),_0x200094[_0x21b5e9(0x12e)]=!0x0,await this[_0x21b5e9(0xf9)][_0x21b5e9(0x161)],_0xf653cf[_0x21b5e9(0xfc)](),this[_0x21b5e9(0xcd)]?.[_0x21b5e9(0x11a)][_0x21b5e9(0xd9)][_0x21b5e9(0xda)]&&(this[_0x21b5e9(0xcd)][_0x21b5e9(0x11a)][_0x21b5e9(0xd9)][_0x21b5e9(0xda)][_0x21b5e9(0x12a)]=!0x0);}[_0x204de0(0x193)](_0x11a54c,_0x695616){const _0x442652=_0x204de0;_0x11a54c[_0x442652(0xf8)](),_0x695616[_0x442652(0xd9)][_0x442652(0xda)]&&(_0x695616[_0x442652(0xd9)][_0x442652(0xda)][_0x442652(0x12a)]=!0x1);}async[_0x204de0(0x1a1)](_0x1edf2d,_0x50950b){const _0xa9a664=_0x204de0;await this[_0xa9a664(0xf9)][_0xa9a664(0x161)],this[_0xa9a664(0x155)]=!0x1,_0x1edf2d[_0xa9a664(0x171)](),_0x50950b[_0xa9a664(0xd9)][_0xa9a664(0x171)]();}[_0x204de0(0xcc)](){const _0x4874e2=_0x204de0;this[_0x4874e2(0x16e)][_0x4874e2(0x16f)](_0x524051=>{const _0xfb98d4=_0x4874e2;_0xfb98d4(0xe0)in _0x524051&&(_0x524051[_0xfb98d4(0xe0)]=!0x1);});}}
|
|
23
|
+
const _0x29b850=_0x12ff;(function(_0x4a895e,_0x16c879){const _0x2b1e3b=_0x12ff,_0x56905a=_0x4a895e();while(!![]){try{const _0x5a1860=-parseInt(_0x2b1e3b(0x234))/0x1*(-parseInt(_0x2b1e3b(0x1d6))/0x2)+parseInt(_0x2b1e3b(0x1e7))/0x3*(parseInt(_0x2b1e3b(0x22a))/0x4)+parseInt(_0x2b1e3b(0x262))/0x5*(-parseInt(_0x2b1e3b(0x223))/0x6)+parseInt(_0x2b1e3b(0x1c4))/0x7*(parseInt(_0x2b1e3b(0x275))/0x8)+-parseInt(_0x2b1e3b(0x1e2))/0x9+parseInt(_0x2b1e3b(0x1b4))/0xa*(-parseInt(_0x2b1e3b(0x1f0))/0xb)+parseInt(_0x2b1e3b(0x27c))/0xc;if(_0x5a1860===_0x16c879)break;else _0x56905a['push'](_0x56905a['shift']());}catch(_0x45766f){_0x56905a['push'](_0x56905a['shift']());}}}(_0x36e3,0xb93ef));import{Plugin as _0x809aed}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8941}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3fcdb2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x36e3(){const _0x613cd8=['hideLoader','message','ai.availableReplyActions','error','slice','replies','1/1','_navigateToPrevious','startsWith','howMany','removeNavigationItem','_currentInteractionIndex','insert','Error\x20updating\x20content\x20during\x20navigation:','path','length','forEach','_clearLoadingState','pending','set','upsertAIActionRating','showLoader','interactionFinished','AI_ACTIONS_NEXT_INTERACTION','model','documentFragment','static','_customViews','_interactions','_interaction','stopInteraction','_createInteraction','nextSibling','has','locale','root','Attribute','_displayInteractionAtIndex','AI_ACTIONS_PREVIOUS_INTERACTION','isPremiumPlugin','ck-ai-interaction-counter','showChangesButton','getSelectedContent','isOfficialPlugin','position','getRanges','_getExecuteDataInTable','addNavigationItem','19692MFDtJz','getOperations','hasError','aiBalloon','applyOperation','end','operationsA','47524gGQKdS','getRoot','TrackChanges','parent','executeAction','balloonView','listenTo','$graveyard','getLimitElement','stopAutoScroll','15659EEQcrQ','_disableCustomViews','clone','includes','_interactionParams','close','getFirstRange','_refreshInteraction','map','Error\x20refreshing\x20interaction:','first','isEnabled','_children','random','_clearInteractionHistory','createPositionAt','setLoading','isDocumentOperation','element','createPositionBefore','_aiConnector','processor','abort','textContent','setTemplate','hasPendingParts','isBusy','getDocumentContext','_isNavigationPreviousButtonInView','_navigationPreviousButton','isCollapsed','_anchorOperation','history','stopListening','reinsert','getAncestors','_execute','split','TableSelection','_getExecuteDataRegular','span','mainView','Error\x20updating\x20content\x20in\x20replyContentUpdated:','requires','move','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','1005GolYKG','streaming','replyChangeGroupStateUpdated','nodeAfter','Error\x20updating\x20content\x20in\x20replyCreated:','filter','accepted','add','AIConnector','replyContentUpdated','getCommonAncestor','baseVersion','_appendChild','replyCreated','clearErrorState','showError','ck-ai-navigation-button\x20ck-ai-next-button','_isAbortError','_stopInteraction','8nBqxSL','selectionRemoved','getSelectionAsFragment','updateContent','stop','ck-ai-custom-action-button','toolbar','16320312DFXbZR','enqueue','range','plugins','_setErrorState','_clone','_applyChanges','_navigationCounter','rename','AIBalloon','get','indexOf','setErrorState','remove','_applyOperationsAsSuggestions','_executeAction','actionName','execute','AI_ACTIONS_GENERIC_ERROR','_clearSuggestionContent','type','editor','TrackChangesEditing','setSelection','queueEmptyPromise','data','change','rootName','_promiseQueue','start','merge','AIActions','_balloonShowDiff','selection','4510WPnzyY','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_isNavigationCounterInView','open','miniToolbarView','_navigationNextButton','config','setChangeGroupState','sourcePosition','hideError','clearLoading','createPositionAfter','areChangesVisible','createRange','ai-request-aborted','icon','1701021mpxiGV','stickiness','state','changeGroups','applySuggestion','batch','_clearErrorState','getSelectedTableCells','isLoading','modelToViewWithIds','insertSuggestion','toData','bind','getChild','getChildAtOffset','_setLoadingState','_filterOperationsOutsideRange','toggleSuggestionDisplayMode','58YYfMVp','_wrapWithCommonAncestors','signal','bodyView','focus','catch','AI_ACTIONS_TRY_AGAIN','startAutoScroll','_isNavigationNextButtonInView','documentContextContent','_updateNavigationUI','_setupCustomViews','3475809GskqEj','version','upsertCustomAIActionRating','dialogClosed','ai-no-track-changes','45YqBBGN','push','actionCallId','ck-ai-navigation-button\x20ck-ai-previous-button','schema','getSelectedBlocks','_navigateToNext','rejected','pluginName','10505tCuwHi','addOperation','document'];_0x36e3=function(){return _0x613cd8;};return _0x36e3();}import{Dialog as _0x407cb2,ButtonView as _0x197995,ViewCollection as _0x11ec9e,View as _0x36dd8f}from'ckeditor5/src/ui.js';import{AIEditing as _0x4b4090}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5df450}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x25704a,first as _0x251ea3}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4eb835,IconRefresh as _0x45f56f,IconNextArrow as _0x58f9c4,IconPreviousArrow as _0x5ddb6b,IconShowChangesOff as _0x4013b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x270f06}from'../aiballoon/aiballoon.js';function _0x12ff(_0xb56307,_0x2c788d){const _0x36e383=_0x36e3();return _0x12ff=function(_0x12ff4a,_0x2d12cc){_0x12ff4a=_0x12ff4a-0x1b3;let _0x23d7b9=_0x36e383[_0x12ff4a];return _0x23d7b9;},_0x12ff(_0xb56307,_0x2c788d);}import{PromiseQueue as _0x4f17b7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4f89fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x49ea10}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3233b4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xf95b18,getOperationsFromReply as _0x3de8a7}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5a7505,ModelRange as _0x19a245,ModelPosition as _0x41f1b2,_DetachOperation as _0x1e8805,transformOperationSets as _0x359e8b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x83a4ce}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x809aed{static get[_0x29b850(0x25f)](){return[_0x4b8941,_0x407cb2,_0x4b4090,_0x270f06,_0x3233b4];}static get[_0x29b850(0x1ef)](){const _0x385e3e=_0x29b850;return _0x385e3e(0x29b);}static get[_0x29b850(0x21e)](){return!0x0;}static get[_0x29b850(0x21a)](){return!0x0;}[_0x29b850(0x248)];[_0x29b850(0x20f)]=[];[_0x29b850(0x1fe)]=0x0;[_0x29b850(0x238)];[_0x29b850(0x29c)]=!0x1;[_0x29b850(0x20e)]=new _0x11ec9e();[_0x29b850(0x251)];[_0x29b850(0x283)];[_0x29b850(0x1b6)]=!0x1;[_0x29b850(0x1b9)];[_0x29b850(0x250)]=!0x1;[_0x29b850(0x1de)]=!0x1;[_0x29b850(0x298)];get[_0x29b850(0x210)](){const _0x5775ad=_0x29b850;return this[_0x5775ad(0x20f)][this[_0x5775ad(0x20f)][_0x5775ad(0x202)]-0x1];}constructor(_0x37a3a1){const _0x530ece=_0x29b850;super(_0x37a3a1),this[_0x530ece(0x248)]=this[_0x530ece(0x291)][_0x530ece(0x27f)][_0x530ece(0x286)](_0x530ece(0x26a)),this[_0x530ece(0x206)](_0x530ece(0x24e),!0x1),this[_0x530ece(0x298)]=new _0x4f17b7(),this[_0x530ece(0x1e1)]();}[_0x29b850(0x211)](){const _0x19641f=_0x29b850;this[_0x19641f(0x274)]();}async[_0x29b850(0x22e)](_0xffb427,_0x538e4e,_0x2ea5ba){const _0x1fc1be=_0x29b850;if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x214)](_0x1fc1be(0x25a))){if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x286)](_0x1fc1be(0x25a))[_0x1fc1be(0x1cb)]()){const {modelFragment:_0x2ca8bc,anchorData:_0x3033bb}=this[_0x1fc1be(0x221)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x2ca8bc,_0x3033bb,_0x538e4e,_0x2ea5ba);}}const {modelFragment:_0x4e9ab3,anchorData:_0x14be92}=this[_0x1fc1be(0x25b)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x4e9ab3,_0x14be92,_0x538e4e,_0x2ea5ba);}[_0x29b850(0x25b)](){const _0x100ecd=_0x29b850,_0x180763=this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1f2)][_0x100ecd(0x1b3)];if(_0x180763[_0x100ecd(0x252)]){const _0x54af8b=_0x251ea3(_0x180763[_0x100ecd(0x1ec)]())||this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1eb)][_0x100ecd(0x232)](_0x180763);this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x296)](_0x490f38=>{const _0x20b71f=_0x100ecd;_0x490f38[_0x20b71f(0x293)](_0x54af8b,'in');});}const _0x5a2044=_0x180763[_0x100ecd(0x23a)](),_0x38e721=this[_0x100ecd(0x1d7)](this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x21d)](_0x180763),_0x5a2044[_0x100ecd(0x299)],_0x5a2044[_0x100ecd(0x228)]),_0x16bbd4=_0x180763[_0x100ecd(0x23a)]()[_0x100ecd(0x299)],_0x16ea93=new Map();let _0x3bc6d9=_0x38e721;for(let _0x2d9241=0x0;_0x2d9241<_0x16bbd4[_0x100ecd(0x201)][_0x100ecd(0x202)];_0x2d9241++)_0x16ea93[_0x100ecd(0x206)](_0x3bc6d9,_0x16bbd4[_0x100ecd(0x201)][_0x2d9241]),_0x3bc6d9=_0x3bc6d9[_0x100ecd(0x1d1)](0x0);return{'modelFragment':_0x38e721,'anchorData':_0x16ea93};}[_0x29b850(0x221)](){const _0x385ed5=_0x29b850,_0xd46029=this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1f2)][_0x385ed5(0x1b3)],_0x321ab1=this[_0x385ed5(0x291)][_0x385ed5(0x27f)][_0x385ed5(0x286)](_0x385ed5(0x25a))[_0x385ed5(0x277)](),_0x593b99=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)][_0x385ed5(0x22d)][_0x385ed5(0x22d)],_0x210b9d=this[_0x385ed5(0x1d7)](_0x321ab1,this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x247)](_0x593b99),this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1bf)](_0x593b99)),_0x4a403f=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)],_0x470843=new Map();let _0x1ccb02=_0x210b9d;for(let _0xc48f9a=0x0;_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)];_0xc48f9a++)if(_0x470843[_0x385ed5(0x206)](_0x1ccb02,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)]-0x1)_0x1ccb02=_0x1ccb02[_0x385ed5(0x1d1)](0x0);else{let _0x2ad6a5=_0x1ccb02[_0x385ed5(0x213)];for(;_0x2ad6a5;)_0x470843[_0x385ed5(0x206)](_0x2ad6a5,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0x2ad6a5=_0x2ad6a5[_0x385ed5(0x213)];}return{'modelFragment':_0x210b9d,'anchorData':_0x470843};}[_0x29b850(0x28b)](_0x3807e0,_0x542872,_0x93869,_0x169e61,_0x4d71ac){const _0x50eac5=_0x29b850,_0x575a31=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x4b4090),_0x5b7ed0=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x270f06),_0x17847f=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1b3)],_0x5a49e1=_0x575a31[_0x50eac5(0x1cd)](_0x542872),_0x3c9834=this[_0x50eac5(0x291)][_0x50eac5(0x295)][_0x50eac5(0x249)][_0x50eac5(0x1cf)](_0x5a49e1),_0x20b7c6=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1e3)],_0x1daf56=[..._0x17847f[_0x50eac5(0x220)]()];let _0x54d2b3=this[_0x50eac5(0x291)][_0x50eac5(0x1ba)][_0x50eac5(0x286)](_0x50eac5(0x1f5))||[..._0x83a4ce];this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c))||(_0x54d2b3=_0x54d2b3[_0x50eac5(0x267)](_0x55f159=>_0x50eac5(0x1ce)!=_0x55f159));const _0x51acda=new _0x3fcdb2(this[_0x50eac5(0x291)][_0x50eac5(0x215)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x50eac5(0x1c3),'customView':this[_0x50eac5(0x20e)]},'showUnchangedParts':!0x0,'availableActions':_0x54d2b3});return _0x5b7ed0[_0x50eac5(0x1b7)]({'index':0x3e8*Math[_0x50eac5(0x241)]()%0x3e8,'title':_0x169e61,'icon':_0x4d71ac||_0x4eb835,'mainView':_0x51acda,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c)),'ranges':_0x1daf56}),this[_0x50eac5(0x1d3)](_0x51acda,_0x5b7ed0),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1c8),()=>{const _0x236a56=_0x50eac5;this[_0x236a56(0x282)](_0x542872,_0x93869,!0x1);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1ce),()=>{const _0x3608d2=_0x50eac5;this[_0x3608d2(0x282)](_0x542872,_0x93869,!0x0);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x276),()=>{const _0x58e13e=_0x50eac5;this[_0x58e13e(0x274)](),this[_0x58e13e(0x235)]();}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1e5),()=>{const _0xe41055=_0x50eac5;if(this[_0xe41055(0x210)]&&this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]>0x0){const _0xd2ca37=this[_0xe41055(0x210)][_0xe41055(0x1f8)][this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]-0x1],_0x3e7af1=_0xd2ca37[_0xe41055(0x1c7)][0x0];_0x3e7af1&&_0xe41055(0x205)===_0x3e7af1[_0xe41055(0x1c6)]&&_0xd2ca37[_0xe41055(0x1bb)](0x0,_0xe41055(0x1ee));}this[_0xe41055(0x274)](),this[_0xe41055(0x242)](),this[_0xe41055(0x255)](_0x5b7ed0);}),this[_0x50eac5(0x212)](_0x3c9834,_0x20b7c6,_0x51acda,_0x5b7ed0,_0x3807e0);}[_0x29b850(0x1d7)](_0x4d5560,_0x1cdb52,_0x4483d3){const _0x281304=_0x29b850,_0x2e701b=this[_0x281304(0x291)][_0x281304(0x20b)][_0x281304(0x1c1)](_0x1cdb52,_0x4483d3)[_0x281304(0x26c)](),_0x39bbdd=_0x2e701b['is'](_0x281304(0x20c))?[]:_0x2e701b[_0x281304(0x257)]({'includeSelf':!0x0})[_0x281304(0x1f7)](0x1);if(_0x39bbdd[_0x281304(0x202)]){const _0x1b9528=_0x39bbdd[_0x281304(0x23c)](_0x5e84d1=>_0x5e84d1[_0x281304(0x281)](!0x1));for(let _0x51553c=0x1;_0x51553c<_0x1b9528[_0x281304(0x202)];_0x51553c++)_0x1b9528[_0x51553c-0x1][_0x281304(0x26e)](_0x1b9528[_0x51553c]);return _0x1b9528[_0x1b9528[_0x281304(0x202)]-0x1][_0x281304(0x26e)](_0x4d5560),new _0x5a7505(_0x1b9528[0x0]);}return _0x4d5560;}async[_0x29b850(0x212)](_0x518538,_0x3a41a7,_0x32f9b5,_0x58b832,_0x1bcc90){const _0x4a29f6=_0x29b850,_0x436b70=this[_0x4a29f6(0x291)];this[_0x4a29f6(0x238)]={'action':_0x1bcc90,'content':_0x518538,'version':_0x3a41a7,'mainView':_0x32f9b5,'aiBalloon':_0x58b832};const _0x3c1617=new _0x5df450({'connector':this[_0x4a29f6(0x248)],'editor':_0x436b70,'content':_0x518538,'version':_0x3a41a7,..._0x1bcc90});this[_0x4a29f6(0x20f)][_0x4a29f6(0x1e8)](_0x3c1617),_0x32f9b5[_0x4a29f6(0x1bd)]();const _0x4e11b0=(_0xcd263b,_0x445a49,_0x16c90f=!0x1,_0x250569=_0x4a29f6(0x263))=>this[_0x4a29f6(0x298)][_0x4a29f6(0x27d)](async _0x2d153e=>{const _0x2735a3=_0x4a29f6;try{const _0x1dab75=_0x49ea10({'editor':_0x436b70,'changeGroups':_0xcd263b[_0x2735a3(0x1c7)],'documentContextContent':_0xcd263b[_0x2735a3(0x1df)],'showDiff':_0x16c90f,'trimUnchanged':!0x1});await _0x445a49[_0x2735a3(0x278)]({'parts':_0x1dab75,'renderingStrategy':_0x250569,'abortSignal':_0x2d153e});}catch(_0x59a2f8){if(this[_0x2735a3(0x273)](_0x59a2f8))return;throw _0x59a2f8;}});this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26f),(_0x3cdf8c,_0x38ece3)=>{const _0x374719=_0x4a29f6;_0x32f9b5[_0x374719(0x1f3)](),_0x58b832[_0x374719(0x1dd)](),_0x4e11b0(_0x38ece3,_0x32f9b5)[_0x374719(0x1db)](_0x437d8c=>{const _0x25fb22=_0x374719;this[_0x25fb22(0x273)](_0x437d8c)||(console[_0x25fb22(0x1f6)](_0x25fb22(0x266),_0x437d8c),this[_0x25fb22(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26b),(_0x58955b,_0x5e2b75)=>{const _0x48b0bd=_0x4a29f6;_0x4e11b0(_0x5e2b75,_0x32f9b5)[_0x48b0bd(0x1db)](_0x603999=>{const _0x47941e=_0x48b0bd;this[_0x47941e(0x273)](_0x603999)||(console[_0x47941e(0x1f6)](_0x47941e(0x25e),_0x603999),this[_0x47941e(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x209),async()=>{const _0x1d9eba=_0x4a29f6;try{await this[_0x1d9eba(0x204)](_0x32f9b5,_0x58b832),this[_0x1d9eba(0x1e0)](),await this[_0x1d9eba(0x298)][_0x1d9eba(0x294)];}catch(_0x416242){this[_0x1d9eba(0x273)](_0x416242)||(console[_0x1d9eba(0x1f6)](_0x1d9eba(0x1b5),_0x416242),this[_0x1d9eba(0x280)](_0x3c1617,_0x32f9b5));}finally{_0x58b832[_0x1d9eba(0x233)]();}}),this[_0x4a29f6(0x230)](_0x32f9b5,_0x4a29f6(0x1d5),async(_0x3ebbe9,{showDiff:_0xdb7ac3})=>{const _0x9898=_0x4a29f6;try{this[_0x9898(0x29c)]=_0xdb7ac3;const _0x422e50=this[_0x9898(0x210)][_0x9898(0x1f8)][this[_0x9898(0x210)][_0x9898(0x1f8)][_0x9898(0x202)]-0x1];_0x422e50&&await _0x4e11b0(_0x422e50,_0x32f9b5,_0xdb7ac3,_0x9898(0x20d));}catch(_0x5ebae){this[_0x9898(0x273)](_0x5ebae)||(console[_0x9898(0x1f6)](_0x9898(0x261),_0x5ebae),this[_0x9898(0x280)](_0x3c1617,_0x32f9b5));}}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x264),(_0x13e6de,{reply:_0x377275})=>{const _0x18b871=_0x4a29f6,_0x1d35e7={'positiveCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x267)](_0xaeb5b4=>_0x18b871(0x268)===_0xaeb5b4[_0x18b871(0x1c6)])[_0x18b871(0x202)],'totalCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x202)]},_0x669699=this[_0x18b871(0x210)][_0x18b871(0x1e9)],_0x5af7a8=this[_0x18b871(0x210)][_0x18b871(0x28c)];_0x5af7a8?this[_0x18b871(0x248)][_0x18b871(0x207)](_0x5af7a8,_0x669699,_0x1d35e7):this[_0x18b871(0x248)][_0x18b871(0x1e4)](_0x669699,_0x1d35e7);}),this[_0x4a29f6(0x1d3)](_0x32f9b5,_0x58b832);try{const _0x42ef6b=await this[_0x4a29f6(0x210)][_0x4a29f6(0x299)]();return this[_0x4a29f6(0x1e0)](),_0x42ef6b;}catch(_0x573ec4){if(this[_0x4a29f6(0x273)](_0x573ec4))return;_0x32f9b5[_0x4a29f6(0x1f3)](),this[_0x4a29f6(0x280)](_0x3c1617,_0x32f9b5);}}[_0x29b850(0x282)](_0x597d8e,_0x1b77ba,_0x4d60d9){const _0x559725=_0x29b850,_0x2fc8fe=this[_0x559725(0x291)];if(_0x4d60d9&&!_0x2fc8fe[_0x559725(0x27f)][_0x559725(0x214)](_0x559725(0x22c)))throw new _0x25704a(_0x559725(0x1e6),null);const _0xc7b72f=this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x3233b4),_0x38de5f=this[_0x559725(0x210)],_0x53eb20=this[_0x559725(0x210)][_0x559725(0x1f8)][this[_0x559725(0x210)][_0x559725(0x1f8)][_0x559725(0x202)]-0x1],_0x33e033=_0x53eb20[_0x559725(0x1c7)];_0x53eb20[_0x559725(0x1bb)](0x0,_0x559725(0x268));let _0x4f6242=_0x3de8a7({'editor':_0x2fc8fe,'reply':_0x53eb20,'interaction':_0x38de5f,'groups':_0x33e033,'transform':!0x1,'documentCompare':_0xc7b72f,'documentCompareOptions':{'anchor':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x243)](_0x597d8e,0x0),'markDeletions':_0x4d60d9}});_0x4f6242=this[_0x559725(0x1d4)](_0x4f6242,_0x1b77ba);for(const _0x34bcad of _0x4f6242)this[_0x559725(0x253)](_0x1b77ba,_0x34bcad,_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x22b)]());const _0x5ed7db=_0x38de5f[_0x559725(0x24f)]()[_0x559725(0x1e3)],_0x4a7b9a=_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x254)][_0x559725(0x224)](_0x5ed7db),_0x2dceff={'document':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x23a8b0=_0x359e8b(_0x4f6242,_0x4a7b9a,_0x2dceff)[_0x559725(0x229)];_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x296)](_0x5815ae=>{const _0xa8162f=_0x559725;if(_0x5815ae[_0xa8162f(0x293)](_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1b3)][_0xa8162f(0x1da)]),_0x4d60d9)_0x2fc8fe[_0xa8162f(0x27f)][_0xa8162f(0x286)](_0xa8162f(0x292))[_0xa8162f(0x28a)](_0x23a8b0);else{for(const _0x32d40f of _0x23a8b0)_0x32d40f[_0xa8162f(0x26d)]=_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1e3)],_0xf95b18(_0x2fc8fe,_0x32d40f),_0x5815ae[_0xa8162f(0x1c9)][_0xa8162f(0x1f1)](_0x32d40f),_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x227)](_0x32d40f);}}),this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x559725(0x285))[_0x559725(0x239)]();}[_0x29b850(0x1d4)](_0x17c3be,_0x12df39){const _0x57433e=_0x29b850;return _0x17c3be[_0x57433e(0x267)](_0x27c4ae=>{const _0x11d4b3=_0x57433e;if(_0x11d4b3(0x284)==_0x27c4ae[_0x11d4b3(0x290)]){const _0x3db492=_0x27c4ae[_0x11d4b3(0x21f)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x3db492);}if(_0x27c4ae[_0x11d4b3(0x290)][_0x11d4b3(0x287)](_0x11d4b3(0x217))>-0x1){const _0x4ac251=_0x27c4ae[_0x11d4b3(0x27e)][_0x11d4b3(0x299)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x4ac251);}return!0x0;});}[_0x29b850(0x253)](_0x3923e0,_0xd3cc9b,_0x505928){const _0x3268c9=_0x29b850,_0xfab994=_0xd3cc9b[_0x3268c9(0x236)]();for(const _0x44c0c6 in _0xd3cc9b){const _0x1d968f=_0xd3cc9b[_0x44c0c6];_0x1d968f instanceof _0x19a245?_0xd3cc9b[_0x44c0c6]=new _0x19a245(_0xaa654d(_0x1d968f[_0x3268c9(0x299)]),_0xaa654d(_0x1d968f[_0x3268c9(0x228)])):_0x1d968f instanceof _0x41f1b2&&(_0xd3cc9b[_0x44c0c6]=_0xaa654d(_0x1d968f));}if([_0x3268c9(0x1ff),_0x3268c9(0x260),_0x3268c9(0x289),_0x3268c9(0x256),_0x3268c9(0x259),_0x3268c9(0x29a)][_0x3268c9(0x237)](_0xfab994[_0x3268c9(0x290)])){if(_0xfab994[_0x3268c9(0x245)]=!0x1,_0xfab994[_0x3268c9(0x26d)]=null,_0x3268c9(0x289)==_0xfab994[_0x3268c9(0x290)]){const _0x400fed=_0xfab994[_0x3268c9(0x1bc)],_0x56116e=_0xfab994[_0x3268c9(0x1fc)];new _0x1e8805(_0x400fed,_0x56116e)[_0x3268c9(0x258)]();}else _0xfab994[_0x3268c9(0x258)]();}function _0xaa654d(_0x245b2b){const _0xfa37b1=_0x3268c9;if(_0xfa37b1(0x231)==_0x245b2b[_0xfa37b1(0x216)][_0xfa37b1(0x297)])return _0x245b2b;const _0x30efd6=[];let _0x1a4850=_0x245b2b[_0xfa37b1(0x216)];for(let _0x2b1643=0x0;_0x2b1643<_0x245b2b[_0xfa37b1(0x201)][_0xfa37b1(0x202)];_0x2b1643++){const _0x26e53f=_0x3923e0[_0xfa37b1(0x286)](_0x1a4850)||0x0;_0x30efd6[_0x2b1643]=_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]+_0x26e53f,_0x1a4850=_0x1a4850[_0xfa37b1(0x1d2)](_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]);}return new _0x41f1b2(_0x505928,_0x30efd6,_0x245b2b[_0xfa37b1(0x1c5)]);}}[_0x29b850(0x23b)](){const _0x1b6cba=_0x29b850;if(!this[_0x1b6cba(0x238)])return;this[_0x1b6cba(0x20f)][_0x1b6cba(0x202)]>0x0&&this[_0x1b6cba(0x274)](),this[_0x1b6cba(0x1fe)]=0x0,this[_0x1b6cba(0x29c)]=!0x1;const {action:_0x449efd,content:_0x1580ef,version:_0x2c7820,mainView:_0x1f3229,aiBalloon:_0x22b3d5}=this[_0x1b6cba(0x238)];_0x1f3229[_0x1b6cba(0x1c0)]=!0x1,_0x1f3229[_0x1b6cba(0x1bd)](),this[_0x1b6cba(0x1ca)](_0x1f3229,_0x22b3d5);const _0x568b7d=_0x1f3229;_0x568b7d[_0x1b6cba(0x1b8)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)][_0x1b6cba(0x206)]({'isOn':!0x1,'icon':_0x4013b0}),this[_0x1b6cba(0x28f)](_0x1f3229),_0x1f3229[_0x1b6cba(0x208)](),this[_0x1b6cba(0x1e0)](),this[_0x1b6cba(0x255)](_0x1f3229),this[_0x1b6cba(0x212)](_0x1580ef,_0x2c7820,_0x1f3229,_0x22b3d5,_0x449efd)[_0x1b6cba(0x1db)](_0x49b423=>{const _0x1df3a1=_0x1b6cba;this[_0x1df3a1(0x273)](_0x49b423)||console[_0x1df3a1(0x1f6)](_0x1df3a1(0x23d),_0x49b423);});}[_0x29b850(0x28f)](_0x2a2180){const _0x21bbf0=_0x29b850,_0xd99c3d=_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x240)];for(;_0xd99c3d[_0x21bbf0(0x202)]>0x0;)_0xd99c3d[_0x21bbf0(0x289)](_0xd99c3d[_0x21bbf0(0x23e)]);_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x24d)]=!0x1;}[_0x29b850(0x273)](_0x5515a8){const _0x4b1afc=_0x29b850;return!!_0x5515a8[_0x4b1afc(0x1f4)]&&_0x5515a8[_0x4b1afc(0x1f4)][_0x4b1afc(0x1fb)](_0x4b1afc(0x1c2));}[_0x29b850(0x242)](){const _0x5439f0=_0x29b850;this[_0x5439f0(0x20f)]=[],this[_0x5439f0(0x238)]=void 0x0,this[_0x5439f0(0x1fe)]=0x0,this[_0x5439f0(0x1e0)]();}[_0x29b850(0x274)](){const _0x29bd98=_0x29b850;this[_0x29bd98(0x210)]&&this[_0x29bd98(0x210)][_0x29bd98(0x279)](),this[_0x29bd98(0x298)][_0x29bd98(0x24a)](),this[_0x29bd98(0x24e)]=!0x1,this[_0x29bd98(0x238)]&&this[_0x29bd98(0x238)][_0x29bd98(0x226)][_0x29bd98(0x233)]();}[_0x29b850(0x1e1)](){const _0x58e232=_0x29b850,_0x42336c=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x299494=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x21210c=new _0x36dd8f(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x27ad4a=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]);_0x42336c[_0x58e232(0x206)]({'icon':_0x45f56f,'label':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x1dc)),'tooltip':!0x0,'class':_0x58e232(0x27a)}),_0x299494[_0x58e232(0x206)]({'icon':_0x5ddb6b,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x219)),'class':_0x58e232(0x1ea)}),_0x21210c[_0x58e232(0x24c)]({'tag':_0x58e232(0x25c),'attributes':{'class':[_0x58e232(0x21b)]},'children':[_0x58e232(0x1f9)]}),_0x27ad4a[_0x58e232(0x206)]({'icon':_0x58f9c4,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x20a)),'class':_0x58e232(0x272)}),_0x42336c[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x267083=>!_0x267083),_0x42336c['on'](_0x58e232(0x28d),()=>{const _0x5c359b=_0x58e232;this[_0x5c359b(0x23b)]();}),_0x299494[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x57fbd9=>!_0x57fbd9),_0x299494['on'](_0x58e232(0x28d),()=>{const _0x419881=_0x58e232;this[_0x419881(0x1fa)]();}),_0x27ad4a[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x2dd2b2=>!_0x2dd2b2),_0x27ad4a['on'](_0x58e232(0x28d),()=>{const _0x37b698=_0x58e232;this[_0x37b698(0x1ed)]();}),this[_0x58e232(0x251)]=_0x299494,this[_0x58e232(0x283)]=_0x21210c,this[_0x58e232(0x1b9)]=_0x27ad4a,this[_0x58e232(0x20e)][_0x58e232(0x269)](_0x42336c);}[_0x29b850(0x1fa)](){const _0x185ca6=_0x29b850,_0x34a1e3=this[_0x185ca6(0x20f)][_0x185ca6(0x202)];this[_0x185ca6(0x1fe)]<_0x34a1e3-0x1&&this[_0x185ca6(0x218)](this[_0x185ca6(0x1fe)]+0x1);}[_0x29b850(0x1ed)](){const _0x6878f6=_0x29b850;this[_0x6878f6(0x1fe)]>0x0&&this[_0x6878f6(0x218)](this[_0x6878f6(0x1fe)]-0x1);}async[_0x29b850(0x218)](_0x1bc63e){const _0x202800=_0x29b850;if(!this[_0x202800(0x238)])return;this[_0x202800(0x1fe)]=_0x1bc63e;const {mainView:_0x39f57f}=this[_0x202800(0x238)],_0xfb1144=this[_0x202800(0x20f)][this[_0x202800(0x20f)][_0x202800(0x202)]-0x1-this[_0x202800(0x1fe)]];if(!_0xfb1144)return;if(_0xfb1144[_0x202800(0x225)])return this[_0x202800(0x280)](_0xfb1144,_0x39f57f),void this[_0x202800(0x1e0)]();if(!_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)])return;_0x39f57f[_0x202800(0x1bd)](),this[_0x202800(0x238)]&&this[_0x202800(0x1ca)](_0x39f57f,this[_0x202800(0x238)][_0x202800(0x226)]);const _0x328522=_0xfb1144[_0x202800(0x1f8)][_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)]-0x1];if(_0x328522){const _0x2b94ad=this[_0x202800(0x291)];this[_0x202800(0x28f)](_0x39f57f);try{const _0x27cc36=_0x49ea10({'editor':_0x2b94ad,'changeGroups':_0x328522[_0x202800(0x1c7)],'documentContextContent':_0x328522[_0x202800(0x1df)],'showDiff':this[_0x202800(0x29c)],'trimUnchanged':!0x1});this[_0x202800(0x28f)](_0x39f57f),await new Promise(_0x5b1994=>setTimeout(_0x5b1994,0x32)),await _0x39f57f[_0x202800(0x278)]({'parts':_0x27cc36,'renderingStrategy':_0x202800(0x20d),'abortSignal':new AbortController()[_0x202800(0x1d8)]});}catch(_0x3403c6){this[_0x202800(0x273)](_0x3403c6)||console[_0x202800(0x1f6)](_0x202800(0x200),_0x3403c6);}}this[_0x202800(0x1e0)]();}[_0x29b850(0x1e0)](){const _0x26d2e9=_0x29b850;if(!this[_0x26d2e9(0x251)]||!this[_0x26d2e9(0x283)]||!this[_0x26d2e9(0x1b9)])return;const _0x4b4037=this[_0x26d2e9(0x20f)][_0x26d2e9(0x202)],_0x387fc2=_0x4b4037>0x1,_0x3d701f=this[_0x26d2e9(0x238)]?.[_0x26d2e9(0x25d)];if(_0x387fc2){this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)]||(this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x0);const _0x3eab40=_0x4b4037-this[_0x26d2e9(0x1fe)];this[_0x26d2e9(0x283)][_0x26d2e9(0x246)]&&(this[_0x26d2e9(0x283)][_0x26d2e9(0x246)][_0x26d2e9(0x24b)]=_0x3eab40+'/'+_0x4b4037),this[_0x26d2e9(0x251)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]<_0x4b4037-0x1,this[_0x26d2e9(0x1b9)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]>0x0;}else(this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)])&&(this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x1);}[_0x29b850(0x1d3)](_0x2e899d,_0x1ddfe4){const _0x551779=_0x29b850;_0x2e899d[_0x551779(0x244)](),_0x1ddfe4[_0x551779(0x22f)][_0x551779(0x244)](),this[_0x551779(0x24e)]=!0x0;}async[_0x29b850(0x280)](_0x4dd27c,_0x4742e2){const _0x45d80d=_0x29b850,_0x5f2686=_0x4f89fe(this[_0x45d80d(0x291)][_0x45d80d(0x215)],_0x45d80d(0x28e));_0x4742e2[_0x45d80d(0x271)](_0x5f2686),_0x4dd27c[_0x45d80d(0x225)]=!0x0,await this[_0x45d80d(0x298)][_0x45d80d(0x294)],_0x4742e2[_0x45d80d(0x288)](),this[_0x45d80d(0x238)]?.[_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)]&&(this[_0x45d80d(0x238)][_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)][_0x45d80d(0x1cc)]=!0x0);}[_0x29b850(0x1ca)](_0x4639b7,_0x4d3262){const _0x2f538e=_0x29b850;_0x4639b7[_0x2f538e(0x270)](),_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)]&&(_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)][_0x2f538e(0x1cc)]=!0x1);}async[_0x29b850(0x204)](_0x5a11e6,_0x4e4900){const _0x25e240=_0x29b850;await this[_0x25e240(0x298)][_0x25e240(0x294)],this[_0x25e240(0x24e)]=!0x1,_0x5a11e6[_0x25e240(0x1be)](),_0x4e4900[_0x25e240(0x22f)][_0x25e240(0x1be)]();}[_0x29b850(0x235)](){const _0x122843=_0x29b850;this[_0x122843(0x20e)][_0x122843(0x203)](_0x5b06b3=>{const _0x2b794e=_0x122843;_0x2b794e(0x23f)in _0x5b06b3&&(_0x5b06b3[_0x2b794e(0x23f)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb23c64=_0x50d4;function _0x50d4(_0x2c983a,_0x1afbca){const _0x4113a5=_0x4113();return _0x50d4=function(_0x50d48e,_0x6c22a){_0x50d48e=_0x50d48e-0xab;let _0x25ea13=_0x4113a5[_0x50d48e];return _0x25ea13;},_0x50d4(_0x2c983a,_0x1afbca);}(function(_0x2e14d9,_0x5c9bea){const _0x291a36=_0x50d4,_0x46c8d4=_0x2e14d9();while(!![]){try{const _0x581fe2=parseInt(_0x291a36(0xc3))/0x1*(-parseInt(_0x291a36(0xc4))/0x2)+-parseInt(_0x291a36(0xac))/0x3*(parseInt(_0x291a36(0xae))/0x4)+-parseInt(_0x291a36(0xca))/0x5*(parseInt(_0x291a36(0xbe))/0x6)+-parseInt(_0x291a36(0xb7))/0x7+parseInt(_0x291a36(0xb4))/0x8+-parseInt(_0x291a36(0xaf))/0x9*(parseInt(_0x291a36(0xbb))/0xa)+parseInt(_0x291a36(0xcc))/0xb;if(_0x581fe2===_0x5c9bea)break;else _0x46c8d4['push'](_0x46c8d4['shift']());}catch(_0x5d2150){_0x46c8d4['push'](_0x46c8d4['shift']());}}}(_0x4113,0x2f775));function _0x4113(){const _0x345647=['executeCustomAction','40xBOyKB','TEXT','content','12hxKeEB','Current\x20document','executeAction','createReply','delegate','3957KXJJrH','134eIzdSH','replyCreated','editor','replies','model','sendRequest','96095WJWova','args','6083341UOtRIY','current-document','5028PPEOHM','connector','284wMAKNS','317043zarznR','hasError','getDocumentContext','userMessage','html','2600656vvdRys','actionName','version','841617TmxzXN','fire','push'];_0x4113=function(){return _0x345647;};return _0x4113();}import{AIInteraction as _0x6a2d8b,AI_MODEL_EVENT_NAMES as _0xc89ae5}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x591768}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x17b693}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x6a2d8b{[_0xb23c64(0xbd)];[_0xb23c64(0xb6)];[_0xb23c64(0xb5)];[_0xb23c64(0xcb)];[_0xb23c64(0xb2)];[_0xb23c64(0xc8)];[_0xb23c64(0xb0)]=!0x1;constructor(_0x450d08){const _0x34495c=_0xb23c64;super(_0x450d08),this[_0x34495c(0xbd)]=_0x450d08[_0x34495c(0xbd)],this[_0x34495c(0xb6)]=_0x450d08[_0x34495c(0xb6)],this[_0x34495c(0xb5)]=_0x450d08[_0x34495c(0xb5)],this[_0x34495c(0xcb)]=_0x450d08[_0x34495c(0xcb)],this[_0x34495c(0xb2)]=_0x450d08[_0x34495c(0xb2)],this[_0x34495c(0xc8)]=_0x450d08[_0x34495c(0xc8)];}async[_0xb23c64(0xc9)](){const _0x185464=_0xb23c64;return this[_0x185464(0xb5)]?this[_0x185464(0xad)][_0x185464(0xc0)]({'content':this[_0x185464(0xbd)],'actionName':this[_0x185464(0xb5)],'args':this[_0x185464(0xcb)]}):this[_0x185464(0xad)][_0x185464(0xba)]({'content':this[_0x185464(0xbd)],'message':this[_0x185464(0xb2)],'model':this[_0x185464(0xc8)],'outputFormat':_0x185464(0xb3)});}[_0xb23c64(0xb1)](){const _0x10fa39=_0xb23c64;return{'type':_0x591768[_0x10fa39(0xbc)],'content':this[_0x10fa39(0xbd)],'version':this[_0x10fa39(0xb6)],'label':_0x10fa39(0xbf),'uiId':_0x10fa39(0xab)};}[_0xb23c64(0xc1)](_0x43b214){const _0x240e89=_0xb23c64,_0x422f4f=new _0x17b693({'editor':this[_0x240e89(0xc6)],'documentContextContent':this[_0x240e89(0xbd)],..._0x43b214});return this[_0x240e89(0xc7)][_0x240e89(0xb9)](_0x422f4f),_0x422f4f[_0x240e89(0xc2)](..._0xc89ae5)['to'](this),this[_0x240e89(0xb8)](_0x240e89(0xc5),_0x422f4f),_0x422f4f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1ccd01=_0x113e;function _0x113e(_0x2786f2,_0x212605){const _0x85daa7=_0x85da();return _0x113e=function(_0x113e15,_0xec6257){_0x113e15=_0x113e15-0x15d;let _0x41216c=_0x85daa7[_0x113e15];return _0x41216c;},_0x113e(_0x2786f2,_0x212605);}(function(_0x32ea8a,_0x301250){const _0x136e35=_0x113e,_0x2af4e8=_0x32ea8a();while(!![]){try{const _0x1600a6=parseInt(_0x136e35(0x171))/0x1*(parseInt(_0x136e35(0x170))/0x2)+parseInt(_0x136e35(0x16d))/0x3*(parseInt(_0x136e35(0x168))/0x4)+parseInt(_0x136e35(0x15e))/0x5*(-parseInt(_0x136e35(0x160))/0x6)+parseInt(_0x136e35(0x17a))/0x7+parseInt(_0x136e35(0x178))/0x8*(parseInt(_0x136e35(0x166))/0x9)+parseInt(_0x136e35(0x174))/0xa+-parseInt(_0x136e35(0x172))/0xb*(parseInt(_0x136e35(0x164))/0xc);if(_0x1600a6===_0x301250)break;else _0x2af4e8['push'](_0x2af4e8['shift']());}catch(_0x27aad5){_0x2af4e8['push'](_0x2af4e8['shift']());}}}(_0x85da,0xc8d5b));import{AIReply as _0x113174}from'../../aicore/model/aireply.js';import{getAttribute as _0x5c91bf}from'../../aicore/utils/htmlparser.js';import{uid as _0x128a05}from'ckeditor5/src/utils.js';function _0x85da(){const _0x2e3f39=['updateChangeGroups','parsedContent','34792hKFByg','cloneNode','5379612nqDbSM','isDone','modified','data-id','parsedMergedContent','25yHcVhX','length','1920972AQtqfi','changeGroups','map','removed','12DrHjFu','node','3249ITXqIk','added','4766376YgHdxN','_getDifferentChangeGroups','childNodes','pop','value','3KOONXs','pending','new','501782OHXZgV','2ZHBbbn','25989062LGOfoh','children','7541900TnErAu','documentContextContent'];_0x85da=function(){return _0x2e3f39;};return _0x85da();}import{diffArrays as _0x171802}from'diff';export class AIActionsReply extends _0x113174{[_0x1ccd01(0x176)](){const _0x82cb81=_0x1ccd01;if(this[_0x82cb81(0x15d)]=this[_0x82cb81(0x177)][_0x82cb81(0x179)](!0x0),0x0==this[_0x82cb81(0x15d)][_0x82cb81(0x16a)][_0x82cb81(0x15f)])return void(this[_0x82cb81(0x161)]=[]);const _0x490744=this[_0x82cb81(0x175)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x4d589e=>({'node':_0x4d589e,'id':_0x5c91bf(_0x4d589e,_0x82cb81(0x17d))})),_0x3cc22f=this[_0x82cb81(0x15d)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x215160=>({'node':_0x215160,'id':_0x5c91bf(_0x215160,_0x82cb81(0x17d))||_0x128a05()})),_0x3abd10=_0x171802(_0x490744,_0x3cc22f,{'comparator':(_0x315201,_0x5bf377)=>_0x315201['id']==_0x5bf377['id'],'oneChangePerToken':!0x0});if(!this[_0x82cb81(0x17b)]){for(;_0x3abd10[_0x82cb81(0x15f)]&&_0x3abd10[_0x3abd10[_0x82cb81(0x15f)]-0x1][_0x82cb81(0x163)];)_0x3abd10[_0x82cb81(0x16b)]();}const _0x2ee217=_0x3abd10[_0x82cb81(0x162)](_0x4483b3=>{const _0x4b18d8=_0x82cb81,_0x4ba0a3=_0x4483b3[_0x4b18d8(0x167)]?_0x4b18d8(0x16f):_0x4483b3[_0x4b18d8(0x163)]?_0x4b18d8(0x163):_0x4b18d8(0x17c);return{'node':_0x4483b3[_0x4b18d8(0x16c)][0x0][_0x4b18d8(0x165)],'type':_0x4ba0a3,'id':_0x4483b3[_0x4b18d8(0x16c)][0x0]['id']};});this[_0x82cb81(0x161)]=[{'changes':_0x2ee217,'state':_0x82cb81(0x16e),'index':0x0}];}[_0x1ccd01(0x169)](_0x53b0e7,_0x6c3b0c){return _0x6c3b0c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3186(_0x1ce607,_0x1f216b){var _0x4777ec=_0x4777();return _0x3186=function(_0x318634,_0x303c53){_0x318634=_0x318634-0x183;var _0x56efad=_0x4777ec[_0x318634];return _0x56efad;},_0x3186(_0x1ce607,_0x1f216b);}var _0x4ef9bf=_0x3186;(function(_0x34d601,_0x537d52){var _0x521e1d=_0x3186,_0x13cf13=_0x34d601();while(!![]){try{var _0x2da665=-parseInt(_0x521e1d(0x186))/0x1*(parseInt(_0x521e1d(0x196))/0x2)+parseInt(_0x521e1d(0x193))/0x3*(-parseInt(_0x521e1d(0x189))/0x4)+parseInt(_0x521e1d(0x191))/0x5*(parseInt(_0x521e1d(0x190))/0x6)+parseInt(_0x521e1d(0x188))/0x7*(-parseInt(_0x521e1d(0x18b))/0x8)+-parseInt(_0x521e1d(0x18d))/0x9+-parseInt(_0x521e1d(0x18f))/0xa+parseInt(_0x521e1d(0x194))/0xb;if(_0x2da665===_0x537d52)break;else _0x13cf13['push'](_0x13cf13['shift']());}catch(_0xa5e6f1){_0x13cf13['push'](_0x13cf13['shift']());}}}(_0x4777,0x6eab9));import{Plugin as _0x363c6f}from'ckeditor5/src/core.js';import{CKEditorError as _0x57fe6e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x363c6f{static get[_0x4ef9bf(0x18a)](){var _0x4bf52a=_0x4ef9bf;return _0x4bf52a(0x185);}static get[_0x4ef9bf(0x184)](){return!0x0;}static get[_0x4ef9bf(0x183)](){return!0x0;}[_0x4ef9bf(0x18e)](){var _0x30e4d8=_0x4ef9bf;if(!this[_0x30e4d8(0x187)])throw new _0x57fe6e(_0x30e4d8(0x192),null);}}export class AIRequestError extends Error{constructor(_0x36abf9){var _0x1c71b2=_0x4ef9bf;super(_0x36abf9),this[_0x1c71b2(0x18c)]=_0x1c71b2(0x195);}}function _0x4777(){var _0x2505c2=['391120NWcVEj','1298874CoTpSJ','10znPDPX','aiadapter-text-adapter-not-set','1512uRnqdN','14071673pMjLUv','AIRequestError','4wzPELN','isPremiumPlugin','isOfficialPlugin','AIAdapter','100627EKVoVN','textAdapter','724283qwhOdk','1428pvWYrU','pluginName','40NeXGAo','name','2891313xQWMGk','afterInit'];_0x4777=function(){return _0x2505c2;};return _0x4777();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x29577e=_0xc087;(function(_0x919540,_0x8ba195){const _0xbea5f3=_0xc087,_0x2f766a=_0x919540();while(!![]){try{const _0x3f25fa=parseInt(_0xbea5f3(0x1ce))/0x1+-parseInt(_0xbea5f3(0x1d0))/0x2+parseInt(_0xbea5f3(0x1d8))/0x3+-parseInt(_0xbea5f3(0x1d6))/0x4*(-parseInt(_0xbea5f3(0x1cf))/0x5)+parseInt(_0xbea5f3(0x1da))/0x6+parseInt(_0xbea5f3(0x1d9))/0x7+parseInt(_0xbea5f3(0x1dd))/0x8*(-parseInt(_0xbea5f3(0x1e4))/0x9);if(_0x3f25fa===_0x8ba195)break;else _0x2f766a['push'](_0x2f766a['shift']());}catch(_0x290d67){_0x2f766a['push'](_0x2f766a['shift']());}}}(_0x30ef,0x73e8a));function _0x30ef(){const _0x55b25d=['_prepareRequestHeaders','locale','plugins','634372iyyxSM','17350SqyItR','1067194vlfRBE','resolve','abort','assign','abortController','get','376CKVxcs','catch','627339fWguJN','5080369NDPxGW','1427028bwAfya','error','init','243224NzxDgi','AI_ERROR_GET_PARAMETERS','requires','AbortError','object','editor','AI_ERROR_GET_HEADERS','333VKdrTQ','sendRequest','reject','_prepareRequestParameters','signal','application/json','aitextadapter-send-request-failed','textAdapter','name','aborted','makeRequest'];_0x30ef=function(){return _0x55b25d;};return _0x30ef();}import{Plugin as _0x41a1c6}from'ckeditor5/src/core.js';import{CKEditorError as _0x4cbf79}from'ckeditor5/src/utils.js';import{AIAdapter as _0x149510,AIRequestError as _0x587740}from'./aiadapter.js';function _0xc087(_0x2997c6,_0x11a3bc){const _0x30efb6=_0x30ef();return _0xc087=function(_0xc08717,_0xbfb1c){_0xc08717=_0xc08717-0x1c3;let _0x4c39c3=_0x30efb6[_0xc08717];return _0x4c39c3;},_0xc087(_0x2997c6,_0x11a3bc);}import{getTranslation as _0x1b7d7e}from'../utils/common-translations.js';export class AITextAdapter extends _0x41a1c6{[_0x29577e(0x1d4)];static get[_0x29577e(0x1df)](){return[_0x149510];}constructor(_0x162514){const _0x2435e6=_0x29577e;super(_0x162514),this[_0x2435e6(0x1d4)]=new AbortController();}[_0x29577e(0x1dc)](){const _0x44d9ff=_0x29577e;this[_0x44d9ff(0x1e2)][_0x44d9ff(0x1cd)][_0x44d9ff(0x1d5)](_0x149510)[_0x44d9ff(0x1c7)]=this;}[_0x29577e(0x1d2)](){const _0x2cf096=_0x29577e;this[_0x2cf096(0x1d4)][_0x2cf096(0x1c4)][_0x2cf096(0x1c9)]||(this[_0x2cf096(0x1d4)][_0x2cf096(0x1d2)](),this[_0x2cf096(0x1d4)]=new AbortController());}async[_0x29577e(0x1ca)](_0x17cc0d){const _0x30009b=_0x29577e;return this[_0x30009b(0x1e5)](_0x17cc0d)[_0x30009b(0x1d7)](_0x3b1738=>{const _0x45d847=_0x30009b;if(_0x3b1738 instanceof _0x587740)return Promise[_0x45d847(0x1e6)](_0x3b1738);if(_0x45d847(0x1e0)==_0x3b1738[_0x45d847(0x1c8)])return Promise[_0x45d847(0x1d1)]();throw console[_0x45d847(0x1db)](_0x3b1738),new _0x4cbf79(_0x45d847(0x1c6),null);});}async[_0x29577e(0x1cb)](_0x392db9,_0x3220d3){const _0x280b6a=_0x29577e,_0x1953bf=this[_0x280b6a(0x1e2)][_0x280b6a(0x1cc)],_0x4d10d9={'Content-Type':_0x280b6a(0x1c5)};if(_0x280b6a(0x1e1)==typeof _0x392db9)Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x392db9);else{if(_0x392db9)try{const _0x4dd666=await _0x392db9(_0x3220d3);Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x4dd666);}catch{return Promise[_0x280b6a(0x1e6)](new _0x587740(_0x1b7d7e(_0x1953bf,_0x280b6a(0x1e3))));}}return _0x4d10d9;}async[_0x29577e(0x1c3)](_0x3fe48c,_0xe24c52){const _0x203c65=_0x29577e,_0x32afaa=this[_0x203c65(0x1e2)][_0x203c65(0x1cc)];if(_0x203c65(0x1e1)==typeof _0x3fe48c)return _0x3fe48c;try{return await _0x3fe48c(_0xe24c52);}catch{return Promise[_0x203c65(0x1e6)](new _0x587740(_0x1b7d7e(_0x32afaa,_0x203c65(0x1de))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7a809a=_0x200b;(function(_0x38a87b,_0x2c72cc){const _0x2aa817=_0x200b,_0x85f82a=_0x38a87b();while(!![]){try{const _0x231a50=-parseInt(_0x2aa817(0xab))/0x1+-parseInt(_0x2aa817(0x84))/0x2*(-parseInt(_0x2aa817(0x8a))/0x3)+parseInt(_0x2aa817(0xc6))/0x4+parseInt(_0x2aa817(0xc5))/0x5*(parseInt(_0x2aa817(0xbb))/0x6)+parseInt(_0x2aa817(0xb9))/0x7+parseInt(_0x2aa817(0xc3))/0x8+-parseInt(_0x2aa817(0x93))/0x9;if(_0x231a50===_0x2c72cc)break;else _0x85f82a['push'](_0x85f82a['shift']());}catch(_0x3e5f84){_0x85f82a['push'](_0x85f82a['shift']());}}}(_0x3102,0x51f34));import{AITextAdapter as _0x53f494}from'./aitextadapter.js';import{AIRequestError as _0xc73759}from'./aiadapter.js';import{BedrockRuntimeClient as _0x5105f5,InvokeModelCommand as _0x5b1565,InvokeModelWithResponseStreamCommand as _0x9a153}from'@aws-sdk/client-bedrock-runtime';function _0x200b(_0x570a6e,_0x9e49b5){const _0x310279=_0x3102();return _0x200b=function(_0x200b70,_0x5291a1){_0x200b70=_0x200b70-0x81;let _0x50ca78=_0x310279[_0x200b70];return _0x50ca78;},_0x200b(_0x570a6e,_0x9e49b5);}function _0x3102(){const _0x1aebc1=['_processAWSRequest','bedrock-2023-05-31','parse','Human:\x0a','_prepareRequestParameters','generations','get','7313337ctcrSx','generation','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','editor','abortController','POST','ai.assistant.adapter.aws.apiUrl','Instruction:\x0a','_getGeneratedText','text','config','application/json','_bedrockClientConfig','meta.llama','ai.assistant.adapter.aws.requestParameters','define','chunk','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','anthropic.claude','completions','_requestParameters','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','bytes','329371pVbwPy','signal','json','split','utf-8','sendRequest','_readStaticResponse','getReader','send','map','\x0a\x0aAssistant:','ai.assistant.adapter.aws.bedrockClientConfig','ai21.j2','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','3810478dIFpgq','completion','524670FvzXvQ','data','cohere.command','preparePrompt','join','\x0a[/INST]','_readAsyncIterableResponse','_processProxyRequest','2404232gIyPEv','test','35WBUzAY','71240DfawBP','body','_readStreamableResponse','_requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','ai.assistant.adapter.aws.requestHeaders','decode','_apiUrl','anthropic.claude-v2','filter','AWSTextAdapter','stringify','<<SYS>>\x0a','5648lOkurr','resolve','pluginName','length','read','locale','3QXZmgu','getModelFamily'];_0x3102=function(){return _0x1aebc1;};return _0x3102();}import{getTranslation as _0x4230e9}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x53f494{[_0x7a809a(0xcd)];[_0x7a809a(0xc9)];[_0x7a809a(0x9f)];[_0x7a809a(0xa7)];static get[_0x7a809a(0x86)](){const _0x4adabf=_0x7a809a;return _0x4adabf(0x81);}constructor(_0x5c7f40){const _0x59591a=_0x7a809a;super(_0x5c7f40),_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1))||_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0xa2)](_0x59591a(0xa1),{'model':_0x59591a(0xce),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x59591a(0x8d),'stream':!0x0}),this[_0x59591a(0xcd)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0x99)),this[_0x59591a(0x9f)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xb6)),this[_0x59591a(0xc9)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xcb)),this[_0x59591a(0xa7)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1));}async[_0x7a809a(0xb0)]({query:_0x5c6a13,context:_0x2546b6,onData:_0x2aa22e,actionId:_0x957b97}){const _0x45a50e=_0x7a809a,{model:_0x1cb1c2,stream:_0x3be488,..._0x120346}=await this[_0x45a50e(0x90)](this[_0x45a50e(0xa7)],_0x957b97),_0x244e58={'prompt':await this[_0x45a50e(0xbe)](_0x5c6a13,_0x2546b6,_0x1cb1c2,_0x957b97),..._0x120346};this[_0x45a50e(0xcd)]?await this[_0x45a50e(0xc2)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e,_0x957b97):await this[_0x45a50e(0x8c)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e);}async[_0x7a809a(0xbe)](_0x55f60a,_0x5f1fdc,_0x45f58b,_0x4e2864){const _0x5d33f5=_0x7a809a;let _0xa581a4,_0x272f38;return _0x5f1fdc?(_0xa581a4=_0x5d33f5(0x95),_0x272f38=_0x5d33f5(0x9a)+_0x55f60a+_0x5d33f5(0xa4)+_0x5f1fdc):(_0xa581a4=_0x5d33f5(0xb8),_0x272f38=_0x55f60a),_0x5d33f5(0xa0)==this[_0x5d33f5(0x8b)](_0x45f58b)?_0x5d33f5(0x83)+_0xa581a4+_0x5d33f5(0xa9)+_0x272f38+_0x5d33f5(0xc0):_0x5d33f5(0x8f)+_0xa581a4+'\x0a'+_0x272f38+_0x5d33f5(0xb5);}[_0x7a809a(0x8b)](_0x5eb3ff){const _0x4e6eb5=_0x7a809a;if(/^anthropic\.claude/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa5);if(/^ai21\.j2/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xb7);if(/^cohere\.command/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xbd);if(/^meta\.llama/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa0);throw new _0xc73759(_0x4230e9(this[_0x4e6eb5(0x96)][_0x4e6eb5(0x89)],_0x4e6eb5(0xca),_0x5eb3ff));}async[_0x7a809a(0xc2)](_0x4e4826,_0x37f183,_0x460c20,_0x2589ef,_0x34ff59){const _0x1902d1=_0x7a809a,_0xbb0d2a={'method':_0x1902d1(0x98),'headers':await this[_0x1902d1(0xa8)](this[_0x1902d1(0xc9)],_0x34ff59),'body':JSON[_0x1902d1(0x82)]({..._0x4e4826,'model':_0x37f183,'stream':_0x460c20}),'signal':this[_0x1902d1(0x97)][_0x1902d1(0xac)]},_0xd83714=await fetch(this[_0x1902d1(0xcd)],_0xbb0d2a);_0x460c20?await this[_0x1902d1(0xc8)](_0xd83714,_0x37f183,_0x2589ef):await this[_0x1902d1(0xb1)](_0xd83714,_0x37f183,_0x2589ef);}async[_0x7a809a(0x8c)](_0x3adca7,_0x186fdd,_0x154bd0,_0x3beac9){const _0x1116d1=_0x7a809a,_0xfdd549=new _0x5105f5(this[_0x1116d1(0x9f)]),_0xa0243d={'body':JSON[_0x1116d1(0x82)](_0x3adca7),'contentType':_0x1116d1(0x9e),'accept':_0x1116d1(0x9e),'modelId':_0x186fdd};let _0xdbe903;if(_0x154bd0){const _0x576fde=new _0x9a153(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x576fde,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xc1)](_0xdbe903,_0x186fdd,_0x3beac9);}else{const _0x5f3454=new _0x5b1565(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x5f3454,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xb1)](_0xdbe903,_0x186fdd,_0x3beac9);}}async[_0x7a809a(0xc1)](_0x5e9ad6,_0x3b6df6,_0x27cc4d){const _0x2cc3e1=_0x7a809a,_0x4598b3=_0x5e9ad6[_0x2cc3e1(0xc7)],_0x3fbb12=new TextDecoder(_0x2cc3e1(0xaf));let _0x3c35d0='';for await(const _0x14b943 of _0x4598b3)if(_0x14b943[_0x2cc3e1(0xa3)]){const _0x564e1f=_0x3fbb12[_0x2cc3e1(0xcc)](_0x14b943[_0x2cc3e1(0xa3)][_0x2cc3e1(0xaa)]),_0x5aa700=JSON[_0x2cc3e1(0x8e)](_0x564e1f);_0x3c35d0+=this[_0x2cc3e1(0x9b)](_0x5aa700,_0x3b6df6),_0x27cc4d(_0x3c35d0);}return Promise[_0x2cc3e1(0x85)]();}async[_0x7a809a(0xc8)](_0x3da7a2,_0x1fc7a7,_0x1387bf){const _0x32f941=_0x7a809a,_0x351516=_0x3da7a2[_0x32f941(0xc7)],_0x358861=new TextDecoder(_0x32f941(0xaf)),_0x33c930=_0x351516[_0x32f941(0xb2)]();let _0x1d6027='',_0x68c2c8='',_0x5632de=!0x1;for(;!_0x5632de;){const {done:_0x40efcf,value:_0x17bc83}=await _0x33c930[_0x32f941(0x88)]();if(_0x5632de=_0x40efcf,_0x5632de)break;const _0x412092=(_0x1d6027+_0x358861[_0x32f941(0xcc)](_0x17bc83))[_0x32f941(0xae)]('\x0a')[_0x32f941(0xb4)](_0x8665b2=>{const _0x489041=_0x32f941;try{return _0x1d6027='',JSON[_0x489041(0x8e)](_0x8665b2);}catch{return _0x1d6027=_0x8665b2,null;}})[_0x32f941(0xcf)](_0x56f90d=>null!==_0x56f90d);_0x412092[_0x32f941(0x87)]&&(_0x68c2c8+=_0x412092[_0x32f941(0xb4)](_0x2057f4=>this[_0x32f941(0x9b)](_0x2057f4,_0x1fc7a7))[_0x32f941(0xbf)](''),_0x1387bf(_0x68c2c8));}return Promise[_0x32f941(0x85)]();}async[_0x7a809a(0xb1)](_0x4cb014,_0x28d7ac,_0x51293a){const _0x5cc4b9=_0x7a809a;let _0x4a3da4;return _0x4a3da4=_0x4cb014 instanceof Response?await _0x4cb014[_0x5cc4b9(0xad)]():JSON[_0x5cc4b9(0x8e)](new TextDecoder(_0x5cc4b9(0xaf))[_0x5cc4b9(0xcc)](_0x4cb014[_0x5cc4b9(0xc7)])),(_0x51293a(this[_0x5cc4b9(0x9b)](_0x4a3da4,_0x28d7ac)),Promise[_0x5cc4b9(0x85)]());}[_0x7a809a(0x9b)](_0x491fd1,_0x23f003){const _0x377ce5=_0x7a809a;switch(this[_0x377ce5(0x8b)](_0x23f003)){case _0x377ce5(0xa5):return _0x491fd1[_0x377ce5(0xba)];case _0x377ce5(0xb7):return _0x491fd1[_0x377ce5(0xa6)][0x0][_0x377ce5(0xbc)][_0x377ce5(0x9c)];case _0x377ce5(0xbd):return _0x491fd1[_0x377ce5(0x91)][0x0][_0x377ce5(0x9c)];case _0x377ce5(0xa0):return _0x491fd1[_0x377ce5(0x94)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3e6735=_0x5b92;function _0x46b8(){const _0x340998=['config','153coPmOp','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','stringify','pluginName','ai.assistant.adapter.openAI.requestParameters','abortController','choices','decode','581848DRfHgY','1482807iQwBAW','split','5RaaUUl','_requestParameters','system','context_length_exceeded','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','86170BqyzNT','signal','Instruction:\x0a','resolve','parse','[DONE]','message','ai.assistant.adapter.openAI.requestHeaders','reject','body','https://api.openai.com/v1/chat/completions','POST','data:\x20','read','_prepareRequestParameters','AI_ERROR_CONTEXT_LENGTH','prepareMessages','getReader','_isBufferIncomplete','stream','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','content','includes','AI_ERROR_MODERATION','replace','_requestHeaders','1069692fsJpvJ','Moderation','14wPbeMg','sendRequest','_prepareRequestHeaders','text','map','json','editor','get','filter','length','4002328JOXGgL','_readStaticResponse','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','12gYLLfG','1675384gqRVZl','locale','_apiUrl','1YzDRUH','_cleanUpData','29018xYPhYW','delta','gpt-4o','join','define','user'];_0x46b8=function(){return _0x340998;};return _0x46b8();}(function(_0x5918e9,_0x20885f){const _0x366613=_0x5b92,_0x5e849a=_0x5918e9();while(!![]){try{const _0x41060e=-parseInt(_0x366613(0xb6))/0x1*(parseInt(_0x366613(0xc8))/0x2)+parseInt(_0x366613(0xc9))/0x3+-parseInt(_0x366613(0xb3))/0x4*(-parseInt(_0x366613(0xcb))/0x5)+-parseInt(_0x366613(0xa2))/0x6*(-parseInt(_0x366613(0xa4))/0x7)+-parseInt(_0x366613(0xae))/0x8+-parseInt(_0x366613(0xbf))/0x9*(parseInt(_0x366613(0xd0))/0xa)+-parseInt(_0x366613(0xb8))/0xb*(-parseInt(_0x366613(0xb2))/0xc);if(_0x41060e===_0x20885f)break;else _0x5e849a['push'](_0x5e849a['shift']());}catch(_0x3a51cc){_0x5e849a['push'](_0x5e849a['shift']());}}}(_0x46b8,0x51b15));function _0x5b92(_0x42cbe4,_0x5c81b3){const _0x46b806=_0x46b8();return _0x5b92=function(_0x5b9290,_0xb047d6){_0x5b9290=_0x5b9290-0x9f;let _0x3a98c5=_0x46b806[_0x5b9290];return _0x3a98c5;},_0x5b92(_0x42cbe4,_0x5c81b3);}import{AITextAdapter as _0x2ce9c5}from'./aitextadapter.js';import{AIRequestError as _0x518eb2}from'./aiadapter.js';import{getTranslation as _0xe4cf3d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2ce9c5{[_0x3e6735(0xb5)];[_0x3e6735(0xa1)];[_0x3e6735(0xcc)];static get[_0x3e6735(0xc3)](){const _0x305a25=_0x3e6735;return _0x305a25(0xb0);}constructor(_0x4fd9d0){const _0x4582f6=_0x3e6735;super(_0x4fd9d0),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc1),_0x4582f6(0xda)),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4))||_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc4),{'model':_0x4582f6(0xba),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4582f6(0xb5)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc1)),this[_0x4582f6(0xa1)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xd7))||{},this[_0x4582f6(0xcc)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4));}async[_0x3e6735(0xa5)]({query:_0x876160,context:_0x36215d,onData:_0x18c3a3,actionId:_0x379d0d}){const _0x2667a3=_0x3e6735,_0x18a60a=this[_0x2667a3(0xaa)][_0x2667a3(0xb4)],_0x332708=await this[_0x2667a3(0xe0)](_0x876160,_0x36215d,_0x379d0d),_0x301f6a=await this[_0x2667a3(0xa6)](this[_0x2667a3(0xa1)],_0x379d0d),_0x434ddc=await this[_0x2667a3(0xde)](this[_0x2667a3(0xcc)],_0x379d0d),_0x4c062f={'messages':_0x332708,..._0x434ddc},_0x429a04={'method':_0x2667a3(0xdb),'headers':_0x301f6a,'body':JSON[_0x2667a3(0xc2)](_0x4c062f),'signal':this[_0x2667a3(0xc5)][_0x2667a3(0xd1)]},_0x15a92f=await fetch(this[_0x2667a3(0xb5)],_0x429a04);if(_0x15a92f['ok'])return _0x434ddc[_0x2667a3(0xe3)]?await this[_0x2667a3(0xc0)](_0x15a92f,_0x18c3a3):await this[_0x2667a3(0xaf)](_0x15a92f,_0x18c3a3),Promise[_0x2667a3(0xd3)]();{const _0x3dd1c0=await _0x15a92f[_0x2667a3(0xa7)]();return _0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xce))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0xdf)))):_0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xa3))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0x9f)))):Promise[_0x2667a3(0xd8)](new Error(_0x3dd1c0));}}async[_0x3e6735(0xe0)](_0xa5f114,_0x3f23a0,_0x4bd262){const _0x296237=_0x3e6735;let _0x2d7575,_0x28bc66;return _0x3f23a0?(_0x2d7575=_0x296237(0xe4),_0x28bc66=_0x296237(0xd2)+_0xa5f114+_0x296237(0xcf)+_0x3f23a0):(_0x2d7575=_0x296237(0xb1),_0x28bc66=_0xa5f114),[{'role':_0x296237(0xcd),'content':_0x2d7575},{'role':_0x296237(0xbd),'content':_0x28bc66}];}async[_0x3e6735(0xc0)](_0x9debce,_0x1377ae){const _0x2af0c9=_0x3e6735,_0x4796f4=_0x9debce[_0x2af0c9(0xd9)][_0x2af0c9(0xe1)](),_0x1d582c=new TextDecoder();let _0x3cd309='',_0x35e0d0='',_0x46aeb5='',_0x62c9b0=!0x1;for(;!_0x62c9b0;){const {done:_0x578999,value:_0xd407bc}=await _0x4796f4[_0x2af0c9(0xdd)](),_0x2709e8=_0x3cd309+_0x1d582c[_0x2af0c9(0xc7)](_0xd407bc);let _0x11f6d3='';_0x62c9b0=_0x578999;try{_0x11f6d3=this[_0x2af0c9(0xb7)](_0x2709e8),_0x3cd309='';}catch{_0x3cd309=_0x2709e8;continue;}_0x35e0d0+=_0x11f6d3,!_0x62c9b0&&this[_0x2af0c9(0xe2)](_0x35e0d0)||_0x35e0d0&&(_0x46aeb5+=_0x35e0d0,_0x35e0d0='',_0x1377ae(_0x46aeb5));}return Promise[_0x2af0c9(0xd3)]();}async[_0x3e6735(0xaf)](_0x46d403,_0x31aa5f){const _0x391b36=_0x3e6735;return _0x31aa5f((await _0x46d403[_0x391b36(0xa9)]())[_0x391b36(0xc6)][0x0][_0x391b36(0xd6)][_0x391b36(0xe5)]),Promise[_0x391b36(0xd3)]();}[_0x3e6735(0xe2)](_0x4e5633){const _0x3c0876=_0x3e6735,_0x12aa77=_0x4e5633[_0x3c0876(0xca)]('<')[_0x3c0876(0xad)]!==_0x4e5633[_0x3c0876(0xca)]('>')[_0x3c0876(0xad)],_0xaa2e10=_0x4e5633[_0x3c0876(0xad)]<0x1e;return _0x12aa77&&_0xaa2e10;}[_0x3e6735(0xb7)](_0x38513a){const _0x268038=_0x3e6735;return _0x38513a[_0x268038(0xca)](/\n(?![^{]*\})/g)[_0x268038(0xa8)](_0x48fdbd=>_0x48fdbd[_0x268038(0xa0)](_0x268038(0xdc),''))[_0x268038(0xac)](_0x30a539=>_0x30a539&&_0x30a539[_0x268038(0xad)]>0x0&&_0x268038(0xd5)!==_0x30a539)[_0x268038(0xa8)](_0x569671=>{const _0x5b24d2=_0x268038,{choices:_0x43cd6e}=JSON[_0x5b24d2(0xd4)](_0x569671);if(_0x43cd6e[0x0]?.[_0x5b24d2(0xb9)]?.[_0x5b24d2(0xe5)])return _0x43cd6e[0x0][_0x5b24d2(0xb9)][_0x5b24d2(0xe5)];})[_0x268038(0xac)](_0x12e089=>_0x12e089)[_0x268038(0xbb)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10bd4e=_0x2a21;(function(_0x57838b,_0xc4c586){const _0x2a5333=_0x2a21,_0xc26f15=_0x57838b();while(!![]){try{const _0x39a4d5=-parseInt(_0x2a5333(0x126))/0x1*(parseInt(_0x2a5333(0x12e))/0x2)+parseInt(_0x2a5333(0x16b))/0x3*(-parseInt(_0x2a5333(0x152))/0x4)+parseInt(_0x2a5333(0x151))/0x5*(-parseInt(_0x2a5333(0x14f))/0x6)+parseInt(_0x2a5333(0x15f))/0x7*(-parseInt(_0x2a5333(0x16d))/0x8)+-parseInt(_0x2a5333(0x158))/0x9+parseInt(_0x2a5333(0x130))/0xa*(parseInt(_0x2a5333(0x156))/0xb)+parseInt(_0x2a5333(0x176))/0xc;if(_0x39a4d5===_0xc4c586)break;else _0xc26f15['push'](_0xc26f15['shift']());}catch(_0x1a643c){_0xc26f15['push'](_0xc26f15['shift']());}}}(_0x45e2,0x92f2a));import{Plugin as _0x1608c0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x414b9e}from'./aiassistantui.js';import{AIAssistantEditing as _0x4ab2e3}from'./aiassistantediting.js';function _0x45e2(){const _0x3888aa=['Make\x20longer','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','config','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','French','German','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Simplified\x20Chinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeLonger','business','friendly','Friendly','51EynBCg','isOfficialPlugin','translate','get','ai.assistant.preserveComments','improveWriting','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','ai.assistant.commands','13010OIkJaS','requires','10TmErmo','Simplify\x20language','translateArabic','Translate\x20the\x20content\x20to\x20Arabic\x20language.','concat','Continue','includes','confident','Portuguese','Improve\x20writing','commands','Confident','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20tone','poetic','AIAssistant','ai.assistant.extraCommandGroups','Summarize','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','casual','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','pluginName','locale','Generate\x20from\x20selection','Business','translateHindi','simplifyLanguage','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Edit\x20or\x20review','groupId','48XmKAbE','Make\x20shorter','609415GyRvcv','4071388ENtFVd','Direct','translateEnglish','legal','2369037ZhxlNN','translateSpanish','9839169vaxwJy','Journalism','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Professional','find','changeStyle','Translate','196wwjACw','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Spanish','Hindi','Casual','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','editOrReview','generate','translateChinese','translateFrench','push','3ywCKHN','Poetic','240040cPATzI','English','journalism','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','filter','ai.assistant.removeCommands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','55734936JtyVoX','Change\x20style','continue','Translate\x20the\x20content\x20to\x20German\x20language.','changeTone','direct','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','Translate\x20the\x20content\x20to\x20French\x20language.','forEach','isPremiumPlugin','summarize','Legal','Translate\x20the\x20content\x20to\x20English\x20language.','professional','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translatePortuguese','makeShorter'];_0x45e2=function(){return _0x3888aa;};return _0x45e2();}import{getTranslation as _0x22f55c}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3daf1a}from'./utils/normalizecommandsconfig.js';function _0x2a21(_0x4e3094,_0x18d47b){const _0x45e262=_0x45e2();return _0x2a21=function(_0x2a2180,_0xcb0412){_0x2a2180=_0x2a2180-0x108;let _0x52d847=_0x45e262[_0x2a2180];return _0x52d847;},_0x2a21(_0x4e3094,_0x18d47b);}export class AIAssistant extends _0x1608c0{static get[_0x10bd4e(0x12f)](){return[_0x414b9e,_0x4ab2e3];}static get[_0x10bd4e(0x146)](){const _0x59fc74=_0x10bd4e;return _0x59fc74(0x13f);}static get[_0x10bd4e(0x127)](){return!0x0;}static get[_0x10bd4e(0x10f)](){return!0x0;}constructor(_0x10d6de){const _0x2daab8=_0x10bd4e;super(_0x10d6de);const _0x961ef6=_0x10d6de[_0x2daab8(0x11b)],_0x40f096=_0x10d6de[_0x2daab8(0x147)];_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x12a),!0x0),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x12d),getDefaultAICommands(_0x40f096)),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x140),[]),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x174),[]);let _0x2d5b43=_0x3daf1a(_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x12d)),_0x40f096);const _0x9239df=_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x140)),_0x53ac6f=_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x174));_0x9239df[_0x2daab8(0x10e)](_0x1952a9=>{const _0x488475=_0x2daab8,_0x1f2582=_0x2d5b43[_0x488475(0x15c)](_0x1e59b5=>_0x1e59b5[_0x488475(0x14e)]===_0x1952a9[_0x488475(0x14e)]);_0x1f2582?_0x1f2582[_0x488475(0x13a)]=_0x1f2582[_0x488475(0x13a)][_0x488475(0x134)](_0x1952a9[_0x488475(0x13a)]):_0x2d5b43[_0x488475(0x16a)](_0x1952a9);}),_0x2d5b43=_0x2d5b43[_0x2daab8(0x173)](_0x281db1=>!_0x53ac6f[_0x2daab8(0x136)](_0x281db1[_0x2daab8(0x14e)])),_0x2d5b43[_0x2daab8(0x10e)](_0x1415b4=>{const _0x2cfb9c=_0x2daab8;_0x1415b4[_0x2cfb9c(0x13a)]=_0x1415b4[_0x2cfb9c(0x13a)][_0x2cfb9c(0x173)](_0x239109=>!_0x53ac6f[_0x2cfb9c(0x136)](_0x239109['id']));}),_0x961ef6[_0x2daab8(0x161)](_0x2daab8(0x12d),_0x2d5b43);}}export function getDefaultAICommands(_0x46ef1a){const _0x465709=_0x10bd4e;return[{'groupId':_0x465709(0x166),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x14d)),'commands':[{'id':_0x465709(0x12b),'label':_0x22f55c(_0x46ef1a,_0x465709(0x139)),'prompt':_0x465709(0x11f)},{'id':_0x465709(0x117),'label':_0x22f55c(_0x46ef1a,_0x465709(0x150)),'prompt':_0x465709(0x119)},{'id':_0x465709(0x122),'label':_0x22f55c(_0x46ef1a,_0x465709(0x118)),'prompt':_0x465709(0x13c)},{'id':_0x465709(0x14b),'label':_0x22f55c(_0x46ef1a,_0x465709(0x131)),'prompt':_0x465709(0x175)}]},{'groupId':_0x465709(0x167),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x148)),'commands':[{'id':_0x465709(0x110),'label':_0x22f55c(_0x46ef1a,_0x465709(0x141)),'prompt':_0x465709(0x115)},{'id':_0x465709(0x178),'label':_0x22f55c(_0x46ef1a,_0x465709(0x135)),'prompt':_0x465709(0x143)}]},{'groupId':_0x465709(0x109),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x13d)),'commands':[{'id':_0x465709(0x113),'label':_0x22f55c(_0x46ef1a,_0x465709(0x15b)),'prompt':_0x465709(0x121)},{'id':_0x465709(0x144),'label':_0x22f55c(_0x46ef1a,_0x465709(0x164)),'prompt':_0x465709(0x145)},{'id':_0x465709(0x10a),'label':_0x22f55c(_0x46ef1a,_0x465709(0x153)),'prompt':_0x465709(0x114)},{'id':_0x465709(0x137),'label':_0x22f55c(_0x46ef1a,_0x465709(0x13b)),'prompt':_0x465709(0x11c)},{'id':_0x465709(0x124),'label':_0x22f55c(_0x46ef1a,_0x465709(0x125)),'prompt':_0x465709(0x160)}]},{'groupId':_0x465709(0x15d),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x177)),'commands':[{'id':_0x465709(0x123),'label':_0x22f55c(_0x46ef1a,_0x465709(0x149)),'prompt':_0x465709(0x142)},{'id':_0x465709(0x155),'label':_0x22f55c(_0x46ef1a,_0x465709(0x111)),'prompt':_0x465709(0x165)},{'id':_0x465709(0x16f),'label':_0x22f55c(_0x46ef1a,_0x465709(0x159)),'prompt':_0x465709(0x15a)},{'id':_0x465709(0x13e),'label':_0x22f55c(_0x46ef1a,_0x465709(0x16c)),'prompt':_0x465709(0x170)}]},{'groupId':_0x465709(0x128),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x15e)),'commands':[{'id':_0x465709(0x154),'label':_0x22f55c(_0x46ef1a,_0x465709(0x16e)),'prompt':_0x465709(0x112)},{'id':_0x465709(0x157),'label':_0x22f55c(_0x46ef1a,_0x465709(0x162)),'prompt':_0x465709(0x172)},{'id':_0x465709(0x116),'label':_0x22f55c(_0x46ef1a,_0x465709(0x138)),'prompt':_0x465709(0x12c)},{'id':_0x465709(0x171),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11e)),'prompt':_0x465709(0x108)},{'id':_0x465709(0x169),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11d)),'prompt':_0x465709(0x10d)},{'id':_0x465709(0x168),'label':_0x22f55c(_0x46ef1a,_0x465709(0x120)),'prompt':_0x465709(0x10b)},{'id':_0x465709(0x14a),'label':_0x22f55c(_0x46ef1a,_0x465709(0x163)),'prompt':_0x465709(0x14c)},{'id':_0x465709(0x132),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11a)),'prompt':_0x465709(0x133)}]}];}
|