@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/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/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.4.0
|
|
3
|
+
"version": "47.4.0",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-bedrock-runtime": "3.823.0",
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.4.0
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.4.0
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.4.0
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.4.0
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.4.0
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.4.0
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.4.0
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.4.0
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.4.0
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.4.0
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.4.0
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.4.0
|
|
44
|
-
"ckeditor5": "47.4.0
|
|
45
|
-
"ckeditor5-collaboration": "47.4.0
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.4.0",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.4.0",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.4.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.4.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.4.0",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.4.0",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.4.0",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.4.0",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.4.0",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.4.0",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.4.0",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.4.0",
|
|
44
|
+
"ckeditor5": "47.4.0",
|
|
45
|
+
"ckeditor5-collaboration": "47.4.0",
|
|
46
46
|
"es-toolkit": "1.39.5",
|
|
47
47
|
"eventsource-parser": "3.0.2",
|
|
48
48
|
"htmlparser2": "10.0.0",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2eeabb=_0x18da;function _0x270b(){const _0x556e9c=['bind','_clearLoadingState','message','1/1','rename','change','isBusy','isPremiumPlugin','getFirstRange','enqueue','first','reinsert','howMany','_aiConnector','getChildAtOffset','getLimitElement','indexOf','add','_applyOperationsAsSuggestions','createPositionAt','forEach','_setupCustomViews','getChild','getDocumentContext','editor','setChangeGroupState','updateContent','_isAbortError','ck-ai-custom-action-button','plugins','position','insertSuggestion','addNavigationItem','_navigationCounter','changeGroups','12976eSFezx','hideError','textContent','queueEmptyPromise','_displayInteractionAtIndex','removeNavigationItem','execute','_createInteraction','getSelectedBlocks','filter','_setLoadingState','_clearInteractionHistory','baseVersion','interactionFinished','path','executeAction','processor','hasPendingParts','operationsA','pluginName','setSelection','dialogClosed','startsWith','replyCreated','clearErrorState','config','locale','_appendChild','balloonView','upsertCustomAIActionRating','ai-no-track-changes','setTemplate','_bodyCollection','modelToViewWithIds','AIBalloon','includes','_children','isDocumentOperation','stopInteraction','upsertAIActionRating','16595rVjyNa','ai-request-aborted','attachToDom','insert','Error\x20updating\x20content\x20in\x20replyContentUpdated:','AI_ACTIONS_GENERIC_ERROR','hasError','mainView','accepted','createPositionBefore','element','state','_interactionParams','close','batch','schema','getRanges','createRange','toolbar','replyChangeGroupStateUpdated','pending','rootName','ck-ai-navigation-button\x20ck-ai-previous-button','detachFromDom','createPositionAfter','data','_getExecuteDataInTable','model','ck-ai-interaction-counter','remove','slice','isOfficialPlugin','getSelectionAsFragment','_getExecuteDataRegular','documentContextContent','ck-ai-navigation-button\x20ck-ai-next-button','_navigateToPrevious','applyOperation','clearLoading','version','_applyChanges','isCollapsed','getCommonAncestor','getOperations','_wrapWithCommonAncestors','miniToolbarView','span','selection','getRoot','random','showError','replyContentUpdated','_interaction','nextSibling','_executeAction','_isNavigationNextButtonInView','static','get','_navigationNextButton','sourcePosition','abort','getSelectedTableCells','_currentInteractionIndex','clone','type','621vWBuie','actionName','parent','1pNDRhU','_customViews','_updateNavigationUI','_setErrorState','areChangesVisible','icon','399984YMnclS','AIActions','toData','requires','move','aiBalloon','TrackChanges','_filterOperationsOutsideRange','length','rejected','has','documentFragment','TableSelection','merge','nodeAfter','_navigationPreviousButton','showChangesButton','setErrorState','streaming','signal','focus','document','getAncestors','addOperation','_interactions','start','_execute','82534uBTgXL','stopListening','end','listenTo','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','stopAutoScroll','$graveyard','Attribute','selectionRemoved','AI_ACTIONS_TRY_AGAIN','map','catch','_disableCustomViews','_clone','_clearErrorState','_promiseQueue','Error\x20refreshing\x20interaction:','474NVAmks','isLoading','_isNavigationPreviousButtonInView','_balloonShowDiff','bodyView','_stopInteraction','hideLoader','_clearSuggestionContent','startAutoScroll','77vVAXfD','AI_ACTIONS_PREVIOUS_INTERACTION','replies','showLoader','applySuggestion','_refreshInteraction','setLoading','AI_ACTIONS_NEXT_INTERACTION','Error\x20updating\x20content\x20in\x20replyCreated:','AIConnector','_anchorOperation','error','_isNavigationCounterInView','split','range','Error\x20updating\x20content\x20during\x20navigation:','1083610VgiySo','4552751dMZfVE','root','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_navigateToNext','set','actionCallId','TrackChangesEditing','toggleSuggestionDisplayMode','push','destroy','history','open','stickiness','getSelectedContent','stop','856452yafRBf','ai.availableReplyActions','isEnabled'];_0x270b=function(){return _0x556e9c;};return _0x270b();}(function(_0x1404d4,_0x43b065){const _0x15510c=_0x18da,_0x4de3eb=_0x1404d4();while(!![]){try{const _0xfabc8e=parseInt(_0x15510c(0x171))/0x1*(parseInt(_0x15510c(0x192))/0x2)+-parseInt(_0x15510c(0x1cc))/0x3+parseInt(_0x15510c(0x177))/0x4+parseInt(_0x15510c(0x21a))/0x5*(parseInt(_0x15510c(0x1a3))/0x6)+-parseInt(_0x15510c(0x1bd))/0x7+-parseInt(_0x15510c(0x1f2))/0x8*(-parseInt(_0x15510c(0x16e))/0x9)+-parseInt(_0x15510c(0x1bc))/0xa*(-parseInt(_0x15510c(0x1ac))/0xb);if(_0xfabc8e===_0x43b065)break;else _0x4de3eb['push'](_0x4de3eb['shift']());}catch(_0x431afa){_0x4de3eb['push'](_0x4de3eb['shift']());}}}(_0x270b,0x52870));import{Plugin as _0x3b951e}from'ckeditor5/src/core.js';import{AIConnector as _0x27015a}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x28f346}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x33775e,ButtonView as _0x339298,ViewCollection as _0x2e4715,View as _0x48f5c5,BodyCollection as _0xe74b06}from'ckeditor5/src/ui.js';import{AIEditing as _0x58b19e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5e2469}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1a5355,first as _0x2def81}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1530d9,IconRefresh as _0x3c65ac,IconNextArrow as _0x2150a1,IconPreviousArrow as _0x5d872f,IconShowChangesOff as _0x5026f4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x19ec3b}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x15a720}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x118c41}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x194eb6}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3ea68e}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x33cead,getOperationsFromReply as _0x48ed0a}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x94c305,ModelRange as _0x1d9f3b,ModelPosition as _0x28c289,_DetachOperation as _0x59f959,transformOperationSets as _0x3ea885}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x30ba48}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x18da(_0x2ecf3d,_0xbda0e3){const _0x270be3=_0x270b();return _0x18da=function(_0x18da46,_0x3f4a0c){_0x18da46=_0x18da46-0x160;let _0x4e1d65=_0x270be3[_0x18da46];return _0x4e1d65;},_0x18da(_0x2ecf3d,_0xbda0e3);}export class AIActions extends _0x3b951e{static get[_0x2eeabb(0x17a)](){return[_0x27015a,_0x33775e,_0x58b19e,_0x19ec3b,_0x3ea68e];}static get[_0x2eeabb(0x205)](){const _0x3d2de8=_0x2eeabb;return _0x3d2de8(0x178);}static get[_0x2eeabb(0x239)](){return!0x0;}static get[_0x2eeabb(0x1d6)](){return!0x0;}[_0x2eeabb(0x1dc)];[_0x2eeabb(0x18f)]=[];[_0x2eeabb(0x16b)]=0x0;[_0x2eeabb(0x226)];[_0x2eeabb(0x1a6)]=!0x1;[_0x2eeabb(0x172)]=new _0x2e4715();[_0x2eeabb(0x186)];[_0x2eeabb(0x1f0)];[_0x2eeabb(0x1b8)]=!0x1;[_0x2eeabb(0x167)];[_0x2eeabb(0x1a5)]=!0x1;[_0x2eeabb(0x164)]=!0x1;[_0x2eeabb(0x1a1)];[_0x2eeabb(0x212)];get[_0x2eeabb(0x161)](){const _0x3fb4a3=_0x2eeabb;return this[_0x3fb4a3(0x18f)][this[_0x3fb4a3(0x18f)][_0x3fb4a3(0x17f)]-0x1];}constructor(_0x1a390d){const _0x2ea655=_0x2eeabb;super(_0x1a390d),this[_0x2ea655(0x212)]=new _0xe74b06(this[_0x2ea655(0x1e7)][_0x2ea655(0x20c)]),this[_0x2ea655(0x212)][_0x2ea655(0x21c)](),this[_0x2ea655(0x1dc)]=this[_0x2ea655(0x1e7)][_0x2ea655(0x1ec)][_0x2ea655(0x166)](_0x2ea655(0x1b5)),this[_0x2ea655(0x1c1)](_0x2ea655(0x1d5),!0x1),this[_0x2ea655(0x1a1)]=new _0x15a720(),this[_0x2ea655(0x1e4)]();}[_0x2eeabb(0x218)](){const _0x4734c0=_0x2eeabb;this[_0x4734c0(0x1a8)]();}async[_0x2eeabb(0x201)](_0x4d98d7,_0x211b0b,_0x10e298){const _0x47d09d=_0x2eeabb;if(this[_0x47d09d(0x1e7)][_0x47d09d(0x1ec)][_0x47d09d(0x181)](_0x47d09d(0x183))){if(this[_0x47d09d(0x1e7)][_0x47d09d(0x1ec)][_0x47d09d(0x166)](_0x47d09d(0x183))[_0x47d09d(0x16a)]()){const {modelFragment:_0x1d9c36,anchorData:_0x1e914c}=this[_0x47d09d(0x234)]();return this[_0x47d09d(0x163)](_0x4d98d7,_0x1d9c36,_0x1e914c,_0x211b0b,_0x10e298);}}const {modelFragment:_0x55c941,anchorData:_0x4665ea}=this[_0x47d09d(0x23b)]();return this[_0x47d09d(0x163)](_0x4d98d7,_0x55c941,_0x4665ea,_0x211b0b,_0x10e298);}[_0x2eeabb(0x1c6)](){const _0x325779=_0x2eeabb;this[_0x325779(0x212)][_0x325779(0x231)](),super[_0x325779(0x1c6)]();}[_0x2eeabb(0x23b)](){const _0x4381a5=_0x2eeabb,_0x11b19b=this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x18c)][_0x4381a5(0x249)];if(_0x11b19b[_0x4381a5(0x243)]){const _0x8a838c=_0x2def81(_0x11b19b[_0x4381a5(0x1fa)]())||this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x229)][_0x4381a5(0x1de)](_0x11b19b);this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x1d4)](_0x51365a=>{const _0x319ad8=_0x4381a5;_0x51365a[_0x319ad8(0x206)](_0x8a838c,'in');});}const _0x304114=_0x11b19b[_0x4381a5(0x1d7)](),_0x1c264b=this[_0x4381a5(0x246)](this[_0x4381a5(0x1e7)][_0x4381a5(0x235)][_0x4381a5(0x1ca)](_0x11b19b),_0x304114[_0x4381a5(0x190)],_0x304114[_0x4381a5(0x194)]),_0x169f03=_0x11b19b[_0x4381a5(0x1d7)]()[_0x4381a5(0x190)],_0x28116b=new Map();let _0x2a1552=_0x1c264b;for(let _0x457af6=0x0;_0x457af6<_0x169f03[_0x4381a5(0x200)][_0x4381a5(0x17f)];_0x457af6++)_0x28116b[_0x4381a5(0x1c1)](_0x2a1552,_0x169f03[_0x4381a5(0x200)][_0x457af6]),_0x2a1552=_0x2a1552[_0x4381a5(0x1e5)](0x0);return{'modelFragment':_0x1c264b,'anchorData':_0x28116b};}[_0x2eeabb(0x234)](){const _0x1e3ed2=_0x2eeabb,_0x37b3e8=this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x235)][_0x1e3ed2(0x18c)][_0x1e3ed2(0x249)],_0x57c717=this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x1ec)][_0x1e3ed2(0x166)](_0x1e3ed2(0x183))[_0x1e3ed2(0x23a)](),_0x26397b=_0x37b3e8[_0x1e3ed2(0x1d7)]()[_0x1e3ed2(0x190)][_0x1e3ed2(0x170)][_0x1e3ed2(0x170)],_0xccac05=this[_0x1e3ed2(0x246)](_0x57c717,this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x235)][_0x1e3ed2(0x223)](_0x26397b),this[_0x1e3ed2(0x1e7)][_0x1e3ed2(0x235)][_0x1e3ed2(0x232)](_0x26397b)),_0x322a45=_0x37b3e8[_0x1e3ed2(0x1d7)]()[_0x1e3ed2(0x190)],_0x5f2de2=new Map();let _0x424465=_0xccac05;for(let _0x32de02=0x0;_0x32de02<_0x322a45[_0x1e3ed2(0x200)][_0x1e3ed2(0x17f)];_0x32de02++)if(_0x5f2de2[_0x1e3ed2(0x1c1)](_0x424465,_0x322a45[_0x1e3ed2(0x200)][_0x32de02]),_0x32de02<_0x322a45[_0x1e3ed2(0x200)][_0x1e3ed2(0x17f)]-0x1)_0x424465=_0x424465[_0x1e3ed2(0x1e5)](0x0);else{let _0x579715=_0x424465[_0x1e3ed2(0x162)];for(;_0x579715;)_0x5f2de2[_0x1e3ed2(0x1c1)](_0x579715,_0x322a45[_0x1e3ed2(0x200)][_0x32de02]),_0x579715=_0x579715[_0x1e3ed2(0x162)];}return{'modelFragment':_0xccac05,'anchorData':_0x5f2de2};}[_0x2eeabb(0x163)](_0x19e2e7,_0x8d9fdd,_0xef0ceb,_0xc1cdbe,_0xff0d12){const _0x2ddc57=_0x2eeabb,_0x39fee8=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x166)](_0x58b19e),_0x494153=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x166)](_0x19ec3b),_0x2d0acd=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x235)][_0x2ddc57(0x18c)][_0x2ddc57(0x249)],_0x819cdf=_0x39fee8[_0x2ddc57(0x213)](_0x8d9fdd),_0x2b0f08=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x233)][_0x2ddc57(0x202)][_0x2ddc57(0x179)](_0x819cdf),_0xe55d71=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x235)][_0x2ddc57(0x18c)][_0x2ddc57(0x241)],_0xd5cdff=[..._0x2d0acd[_0x2ddc57(0x22a)]()];let _0x337596=this[_0x2ddc57(0x1e7)][_0x2ddc57(0x20b)][_0x2ddc57(0x166)](_0x2ddc57(0x1cd))||[..._0x30ba48];this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x181)](_0x2ddc57(0x17d))||(_0x337596=_0x337596[_0x2ddc57(0x1fb)](_0x5755e9=>_0x2ddc57(0x1ee)!=_0x5755e9));const _0x46b403=new _0x28f346(this[_0x2ddc57(0x1e7)][_0x2ddc57(0x20c)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2ddc57(0x176),'customView':this[_0x2ddc57(0x172)]},'showUnchangedParts':!0x0,'availableActions':_0x337596},this[_0x2ddc57(0x212)]);return _0x494153[_0x2ddc57(0x1c8)]({'index':0x3e8*Math[_0x2ddc57(0x24b)]()%0x3e8,'title':_0xc1cdbe,'icon':_0xff0d12||_0x1530d9,'mainView':_0x46b403,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x2ddc57(0x1e7)][_0x2ddc57(0x1ec)][_0x2ddc57(0x181)](_0x2ddc57(0x17d)),'ranges':_0xd5cdff}),this[_0x2ddc57(0x1fc)](_0x46b403,_0x494153),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x1b0),()=>{const _0x5c9b7d=_0x2ddc57;this[_0x5c9b7d(0x242)](_0x8d9fdd,_0xef0ceb,!0x1);}),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x1ee),()=>{const _0x76aaeb=_0x2ddc57;this[_0x76aaeb(0x242)](_0x8d9fdd,_0xef0ceb,!0x0);}),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x19a),()=>{const _0x36c769=_0x2ddc57;this[_0x36c769(0x1a8)](),this[_0x36c769(0x19e)]();}),this[_0x2ddc57(0x195)](_0x494153,_0x2ddc57(0x207),()=>{const _0x4469e0=_0x2ddc57;if(this[_0x4469e0(0x161)]&&this[_0x4469e0(0x161)][_0x4469e0(0x1ae)][_0x4469e0(0x17f)]>0x0){const _0x43f657=this[_0x4469e0(0x161)][_0x4469e0(0x1ae)][this[_0x4469e0(0x161)][_0x4469e0(0x1ae)][_0x4469e0(0x17f)]-0x1],_0x385213=_0x43f657[_0x4469e0(0x1f1)][0x0];_0x385213&&_0x4469e0(0x22e)===_0x385213[_0x4469e0(0x225)]&&_0x43f657[_0x4469e0(0x1e8)](0x0,_0x4469e0(0x180));}this[_0x4469e0(0x1a8)](),this[_0x4469e0(0x1fd)](),this[_0x4469e0(0x193)](_0x494153);}),this[_0x2ddc57(0x1f9)](_0x2b0f08,_0xe55d71,_0x46b403,_0x494153,_0x19e2e7);}[_0x2eeabb(0x246)](_0x5876b0,_0x58367b,_0x4779fd){const _0x59e739=_0x2eeabb,_0x1770ed=this[_0x59e739(0x1e7)][_0x59e739(0x235)][_0x59e739(0x22b)](_0x58367b,_0x4779fd)[_0x59e739(0x244)](),_0x3291fd=_0x1770ed['is'](_0x59e739(0x182))?[]:_0x1770ed[_0x59e739(0x18d)]({'includeSelf':!0x0})[_0x59e739(0x238)](0x1);if(_0x3291fd[_0x59e739(0x17f)]){const _0x13093e=_0x3291fd[_0x59e739(0x19c)](_0x24d2e4=>_0x24d2e4[_0x59e739(0x19f)](!0x1));for(let _0x4921e4=0x1;_0x4921e4<_0x13093e[_0x59e739(0x17f)];_0x4921e4++)_0x13093e[_0x4921e4-0x1][_0x59e739(0x20d)](_0x13093e[_0x4921e4]);return _0x13093e[_0x13093e[_0x59e739(0x17f)]-0x1][_0x59e739(0x20d)](_0x5876b0),new _0x94c305(_0x13093e[0x0]);}return _0x5876b0;}async[_0x2eeabb(0x1f9)](_0xec9843,_0x201dca,_0x2aca1f,_0x18c5e9,_0x262ee6){const _0x490fd3=_0x2eeabb,_0x5dfa6b=this[_0x490fd3(0x1e7)];this[_0x490fd3(0x226)]={'action':_0x262ee6,'content':_0xec9843,'version':_0x201dca,'mainView':_0x2aca1f,'aiBalloon':_0x18c5e9};const _0x4aacfa=new _0x5e2469({'connector':this[_0x490fd3(0x1dc)],'editor':_0x5dfa6b,'content':_0xec9843,'version':_0x201dca,..._0x262ee6});this[_0x490fd3(0x18f)][_0x490fd3(0x1c5)](_0x4aacfa),_0x2aca1f[_0x490fd3(0x1f3)]();const _0x297e9c=(_0x577ebc,_0x317371,_0x6870ec=!0x1,_0x1c28d0=_0x490fd3(0x189))=>this[_0x490fd3(0x1a1)][_0x490fd3(0x1d8)](async _0x247d2f=>{const _0x1c0421=_0x490fd3;try{const _0x8e9d24=_0x194eb6({'editor':_0x5dfa6b,'changeGroups':_0x577ebc[_0x1c0421(0x1f1)],'documentContextContent':_0x577ebc[_0x1c0421(0x23c)],'showDiff':_0x6870ec,'trimUnchanged':!0x1});await _0x317371[_0x1c0421(0x1e9)]({'parts':_0x8e9d24,'renderingStrategy':_0x1c28d0,'abortSignal':_0x247d2f});}catch(_0x309e41){if(this[_0x1c0421(0x1ea)](_0x309e41))return;throw _0x309e41;}});this[_0x490fd3(0x161)]['on'](_0x490fd3(0x209),(_0x4dde29,_0x1fa7e2)=>{const _0x3727e2=_0x490fd3;_0x2aca1f[_0x3727e2(0x1a9)](),_0x18c5e9[_0x3727e2(0x1ab)](),_0x297e9c(_0x1fa7e2,_0x2aca1f)[_0x3727e2(0x19d)](_0x285969=>{const _0x35431e=_0x3727e2;this[_0x35431e(0x1ea)](_0x285969)||(console[_0x35431e(0x1b7)](_0x35431e(0x1b4),_0x285969),this[_0x35431e(0x174)](_0x4aacfa,_0x2aca1f));});}),this[_0x490fd3(0x161)]['on'](_0x490fd3(0x160),(_0x3532d4,_0x5da737)=>{const _0x20fd7e=_0x490fd3;_0x297e9c(_0x5da737,_0x2aca1f)[_0x20fd7e(0x19d)](_0x2caa82=>{const _0x343161=_0x20fd7e;this[_0x343161(0x1ea)](_0x2caa82)||(console[_0x343161(0x1b7)](_0x343161(0x21e),_0x2caa82),this[_0x343161(0x174)](_0x4aacfa,_0x2aca1f));});}),this[_0x490fd3(0x161)]['on'](_0x490fd3(0x1ff),async()=>{const _0x265503=_0x490fd3;try{await this[_0x265503(0x1d0)](_0x2aca1f,_0x18c5e9),this[_0x265503(0x173)](),await this[_0x265503(0x1a1)][_0x265503(0x1f5)];}catch(_0x5273af){this[_0x265503(0x1ea)](_0x5273af)||(console[_0x265503(0x1b7)](_0x265503(0x1bf),_0x5273af),this[_0x265503(0x174)](_0x4aacfa,_0x2aca1f));}finally{_0x18c5e9[_0x265503(0x197)]();}}),this[_0x490fd3(0x195)](_0x2aca1f,_0x490fd3(0x1c4),async(_0x1205a3,{showDiff:_0x1ffca2})=>{const _0x514075=_0x490fd3;try{this[_0x514075(0x1a6)]=_0x1ffca2;const _0x4227ec=this[_0x514075(0x161)][_0x514075(0x1ae)][this[_0x514075(0x161)][_0x514075(0x1ae)][_0x514075(0x17f)]-0x1];_0x4227ec&&await _0x297e9c(_0x4227ec,_0x2aca1f,_0x1ffca2,_0x514075(0x165));}catch(_0x4c814b){this[_0x514075(0x1ea)](_0x4c814b)||(console[_0x514075(0x1b7)](_0x514075(0x196),_0x4c814b),this[_0x514075(0x174)](_0x4aacfa,_0x2aca1f));}}),this[_0x490fd3(0x161)]['on'](_0x490fd3(0x22d),(_0x59793b,{reply:_0xb0e377})=>{const _0x5dac73=_0x490fd3,_0x565f46={'positiveCount':_0xb0e377[_0x5dac73(0x1f1)][_0x5dac73(0x1fb)](_0x3805ec=>_0x5dac73(0x222)===_0x3805ec[_0x5dac73(0x225)])[_0x5dac73(0x17f)],'totalCount':_0xb0e377[_0x5dac73(0x1f1)][_0x5dac73(0x17f)]},_0x43d30a=this[_0x5dac73(0x161)][_0x5dac73(0x1c2)],_0x772ee4=this[_0x5dac73(0x161)][_0x5dac73(0x16f)];_0x772ee4?this[_0x5dac73(0x1dc)][_0x5dac73(0x219)](_0x772ee4,_0x43d30a,_0x565f46):this[_0x5dac73(0x1dc)][_0x5dac73(0x20f)](_0x43d30a,_0x565f46);}),this[_0x490fd3(0x1fc)](_0x2aca1f,_0x18c5e9);try{const _0xe95954=await this[_0x490fd3(0x161)][_0x490fd3(0x190)]();return this[_0x490fd3(0x173)](),_0xe95954;}catch(_0x516469){if(this[_0x490fd3(0x1ea)](_0x516469))return;_0x2aca1f[_0x490fd3(0x1a9)](),this[_0x490fd3(0x174)](_0x4aacfa,_0x2aca1f);}}[_0x2eeabb(0x242)](_0xe83e76,_0x1d54ba,_0x2258b4){const _0x2b610f=_0x2eeabb,_0x5dafe2=this[_0x2b610f(0x1e7)];if(_0x2258b4&&!_0x5dafe2[_0x2b610f(0x1ec)][_0x2b610f(0x181)](_0x2b610f(0x17d)))throw new _0x1a5355(_0x2b610f(0x210),null);const _0x3cb45f=this[_0x2b610f(0x1e7)][_0x2b610f(0x1ec)][_0x2b610f(0x166)](_0x3ea68e),_0x5ab7d9=this[_0x2b610f(0x161)],_0x484eb2=this[_0x2b610f(0x161)][_0x2b610f(0x1ae)][this[_0x2b610f(0x161)][_0x2b610f(0x1ae)][_0x2b610f(0x17f)]-0x1],_0x1f0384=_0x484eb2[_0x2b610f(0x1f1)];_0x484eb2[_0x2b610f(0x1e8)](0x0,_0x2b610f(0x222));let _0x16ddde=_0x48ed0a({'editor':_0x5dafe2,'reply':_0x484eb2,'interaction':_0x5ab7d9,'groups':_0x1f0384,'transform':!0x1,'documentCompare':_0x3cb45f,'documentCompareOptions':{'anchor':_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x1e2)](_0xe83e76,0x0),'markDeletions':_0x2258b4}});_0x16ddde=this[_0x2b610f(0x17e)](_0x16ddde,_0x1d54ba);for(const _0x32c929 of _0x16ddde)this[_0x2b610f(0x1b6)](_0x1d54ba,_0x32c929,_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x18c)][_0x2b610f(0x24a)]());const _0x221824=_0x5ab7d9[_0x2b610f(0x1e6)]()[_0x2b610f(0x241)],_0x51fae3=_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x18c)][_0x2b610f(0x1c7)][_0x2b610f(0x245)](_0x221824),_0x39c0e9={'document':_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x18c)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5cc2ab=_0x3ea885(_0x16ddde,_0x51fae3,_0x39c0e9)[_0x2b610f(0x204)];_0x5dafe2[_0x2b610f(0x235)][_0x2b610f(0x1d4)](_0x50ccf4=>{const _0x281009=_0x2b610f;if(_0x50ccf4[_0x281009(0x206)](_0x5dafe2[_0x281009(0x235)][_0x281009(0x18c)][_0x281009(0x249)][_0x281009(0x18b)]),_0x2258b4)_0x5dafe2[_0x281009(0x1ec)][_0x281009(0x166)](_0x281009(0x1c3))[_0x281009(0x1e1)](_0x5cc2ab);else{for(const _0x2cccce of _0x5cc2ab)_0x2cccce[_0x281009(0x1fe)]=_0x5dafe2[_0x281009(0x235)][_0x281009(0x18c)][_0x281009(0x241)],_0x33cead(_0x5dafe2,_0x2cccce),_0x50ccf4[_0x281009(0x228)][_0x281009(0x18e)](_0x2cccce),_0x5dafe2[_0x281009(0x235)][_0x281009(0x23f)](_0x2cccce);}}),this[_0x2b610f(0x1e7)][_0x2b610f(0x1ec)][_0x2b610f(0x166)](_0x2b610f(0x214))[_0x2b610f(0x227)]();}[_0x2eeabb(0x17e)](_0x5e0e96,_0x342e7){const _0x1580d8=_0x2eeabb;return _0x5e0e96[_0x1580d8(0x1fb)](_0x1739e0=>{const _0x24a48d=_0x1580d8;if(_0x24a48d(0x1d3)==_0x1739e0[_0x24a48d(0x16d)]){const _0x4d6a37=_0x1739e0[_0x24a48d(0x1ed)][_0x24a48d(0x185)];return!_0x342e7[_0x24a48d(0x181)](_0x4d6a37);}if(_0x1739e0[_0x24a48d(0x16d)][_0x24a48d(0x1df)](_0x24a48d(0x199))>-0x1){const _0x5c4fe9=_0x1739e0[_0x24a48d(0x1ba)][_0x24a48d(0x190)][_0x24a48d(0x185)];return!_0x342e7[_0x24a48d(0x181)](_0x5c4fe9);}return!0x0;});}[_0x2eeabb(0x1b6)](_0x3376b2,_0x1cb2bf,_0x379c0f){const _0x27219b=_0x2eeabb,_0x223254=_0x1cb2bf[_0x27219b(0x16c)]();for(const _0x502aad in _0x1cb2bf){const _0x4663b9=_0x1cb2bf[_0x502aad];_0x4663b9 instanceof _0x1d9f3b?_0x1cb2bf[_0x502aad]=new _0x1d9f3b(_0x2a814f(_0x4663b9[_0x27219b(0x190)]),_0x2a814f(_0x4663b9[_0x27219b(0x194)])):_0x4663b9 instanceof _0x28c289&&(_0x1cb2bf[_0x502aad]=_0x2a814f(_0x4663b9));}if([_0x27219b(0x21d),_0x27219b(0x17b),_0x27219b(0x237),_0x27219b(0x1da),_0x27219b(0x1b9),_0x27219b(0x184)][_0x27219b(0x215)](_0x223254[_0x27219b(0x16d)])){if(_0x223254[_0x27219b(0x217)]=!0x1,_0x223254[_0x27219b(0x1fe)]=null,_0x27219b(0x237)==_0x223254[_0x27219b(0x16d)]){const _0x36f33e=_0x223254[_0x27219b(0x168)],_0x266395=_0x223254[_0x27219b(0x1db)];new _0x59f959(_0x36f33e,_0x266395)[_0x27219b(0x191)]();}else _0x223254[_0x27219b(0x191)]();}function _0x2a814f(_0x43fb5b){const _0x149c5c=_0x27219b;if(_0x149c5c(0x198)==_0x43fb5b[_0x149c5c(0x1be)][_0x149c5c(0x22f)])return _0x43fb5b;const _0x5cb216=[];let _0x3f2222=_0x43fb5b[_0x149c5c(0x1be)];for(let _0x4cbb91=0x0;_0x4cbb91<_0x43fb5b[_0x149c5c(0x200)][_0x149c5c(0x17f)];_0x4cbb91++){const _0x57612d=_0x3376b2[_0x149c5c(0x166)](_0x3f2222)||0x0;_0x5cb216[_0x4cbb91]=_0x43fb5b[_0x149c5c(0x200)][_0x4cbb91]+_0x57612d,_0x3f2222=_0x3f2222[_0x149c5c(0x1dd)](_0x43fb5b[_0x149c5c(0x200)][_0x4cbb91]);}return new _0x28c289(_0x379c0f,_0x5cb216,_0x43fb5b[_0x149c5c(0x1c9)]);}}[_0x2eeabb(0x1b1)](){const _0x1e39b3=_0x2eeabb;if(!this[_0x1e39b3(0x226)])return;this[_0x1e39b3(0x18f)][_0x1e39b3(0x17f)]>0x0&&this[_0x1e39b3(0x1a8)](),this[_0x1e39b3(0x16b)]=0x0,this[_0x1e39b3(0x1a6)]=!0x1;const {action:_0x79b9c,content:_0x5e18bd,version:_0x102190,mainView:_0x15889c,aiBalloon:_0x52eca5}=this[_0x1e39b3(0x226)];_0x15889c[_0x1e39b3(0x175)]=!0x1,_0x15889c[_0x1e39b3(0x1f3)](),this[_0x1e39b3(0x1a0)](_0x15889c,_0x52eca5);const _0x5595dc=_0x15889c;_0x5595dc[_0x1e39b3(0x247)]&&_0x5595dc[_0x1e39b3(0x247)][_0x1e39b3(0x187)]&&_0x5595dc[_0x1e39b3(0x247)][_0x1e39b3(0x187)][_0x1e39b3(0x1c1)]({'isOn':!0x1,'icon':_0x5026f4}),this[_0x1e39b3(0x1aa)](_0x15889c),_0x15889c[_0x1e39b3(0x1af)](),this[_0x1e39b3(0x173)](),this[_0x1e39b3(0x193)](_0x15889c),this[_0x1e39b3(0x1f9)](_0x5e18bd,_0x102190,_0x15889c,_0x52eca5,_0x79b9c)[_0x1e39b3(0x19d)](_0x4fcdf3=>{const _0x90b064=_0x1e39b3;this[_0x90b064(0x1ea)](_0x4fcdf3)||console[_0x90b064(0x1b7)](_0x90b064(0x1a2),_0x4fcdf3);});}[_0x2eeabb(0x1aa)](_0x258ced){const _0x1a5e2e=_0x2eeabb,_0x193f3d=_0x258ced[_0x1a5e2e(0x1a7)][_0x1a5e2e(0x216)];for(;_0x193f3d[_0x1a5e2e(0x17f)]>0x0;)_0x193f3d[_0x1a5e2e(0x237)](_0x193f3d[_0x1a5e2e(0x1d9)]);_0x258ced[_0x1a5e2e(0x1a7)][_0x1a5e2e(0x203)]=!0x1;}[_0x2eeabb(0x1ea)](_0x31b578){const _0x5e4b30=_0x2eeabb;return!!_0x31b578[_0x5e4b30(0x1d1)]&&_0x31b578[_0x5e4b30(0x1d1)][_0x5e4b30(0x208)](_0x5e4b30(0x21b));}[_0x2eeabb(0x1fd)](){const _0x1c7764=_0x2eeabb;this[_0x1c7764(0x18f)]=[],this[_0x1c7764(0x226)]=void 0x0,this[_0x1c7764(0x16b)]=0x0,this[_0x1c7764(0x173)]();}[_0x2eeabb(0x1a8)](){const _0x366c6f=_0x2eeabb;this[_0x366c6f(0x161)]&&this[_0x366c6f(0x161)][_0x366c6f(0x1cb)](),this[_0x366c6f(0x1a1)][_0x366c6f(0x169)](),this[_0x366c6f(0x1d5)]=!0x1,this[_0x366c6f(0x226)]&&this[_0x366c6f(0x226)][_0x366c6f(0x17c)][_0x366c6f(0x197)]();}[_0x2eeabb(0x1e4)](){const _0x2ebe05=_0x2eeabb,_0x1739b0=new _0x339298(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]),_0x213c96=new _0x339298(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]),_0x306dae=new _0x48f5c5(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]),_0x565b13=new _0x339298(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)]);_0x1739b0[_0x2ebe05(0x1c1)]({'icon':_0x3c65ac,'label':_0x118c41(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)],_0x2ebe05(0x19b)),'tooltip':!0x0,'class':_0x2ebe05(0x1eb)}),_0x213c96[_0x2ebe05(0x1c1)]({'icon':_0x5d872f,'tooltip':_0x118c41(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)],_0x2ebe05(0x1ad)),'class':_0x2ebe05(0x230)}),_0x306dae[_0x2ebe05(0x211)]({'tag':_0x2ebe05(0x248),'attributes':{'class':[_0x2ebe05(0x236)]},'children':[_0x2ebe05(0x1d2)]}),_0x565b13[_0x2ebe05(0x1c1)]({'icon':_0x2150a1,'tooltip':_0x118c41(this[_0x2ebe05(0x1e7)][_0x2ebe05(0x20c)],_0x2ebe05(0x1b3)),'class':_0x2ebe05(0x23d)}),_0x1739b0[_0x2ebe05(0x1cf)](_0x2ebe05(0x1ce))['to'](this,_0x2ebe05(0x1d5),_0x18f700=>!_0x18f700),_0x1739b0['on'](_0x2ebe05(0x1f8),()=>{const _0x3a3cd2=_0x2ebe05;this[_0x3a3cd2(0x1b1)]();}),_0x213c96[_0x2ebe05(0x1cf)](_0x2ebe05(0x1ce))['to'](this,_0x2ebe05(0x1d5),_0x45ab7c=>!_0x45ab7c),_0x213c96['on'](_0x2ebe05(0x1f8),()=>{const _0x590db5=_0x2ebe05;this[_0x590db5(0x23e)]();}),_0x565b13[_0x2ebe05(0x1cf)](_0x2ebe05(0x1ce))['to'](this,_0x2ebe05(0x1d5),_0xb57df8=>!_0xb57df8),_0x565b13['on'](_0x2ebe05(0x1f8),()=>{const _0x28a6a4=_0x2ebe05;this[_0x28a6a4(0x1c0)]();}),this[_0x2ebe05(0x186)]=_0x213c96,this[_0x2ebe05(0x1f0)]=_0x306dae,this[_0x2ebe05(0x167)]=_0x565b13,this[_0x2ebe05(0x172)][_0x2ebe05(0x1e0)](_0x1739b0);}[_0x2eeabb(0x23e)](){const _0x55ea96=_0x2eeabb,_0x175657=this[_0x55ea96(0x18f)][_0x55ea96(0x17f)];this[_0x55ea96(0x16b)]<_0x175657-0x1&&this[_0x55ea96(0x1f6)](this[_0x55ea96(0x16b)]+0x1);}[_0x2eeabb(0x1c0)](){const _0x4efcb1=_0x2eeabb;this[_0x4efcb1(0x16b)]>0x0&&this[_0x4efcb1(0x1f6)](this[_0x4efcb1(0x16b)]-0x1);}async[_0x2eeabb(0x1f6)](_0x13cd12){const _0x57d522=_0x2eeabb;if(!this[_0x57d522(0x226)])return;this[_0x57d522(0x16b)]=_0x13cd12;const {mainView:_0x5a8c41}=this[_0x57d522(0x226)],_0x153a95=this[_0x57d522(0x18f)][this[_0x57d522(0x18f)][_0x57d522(0x17f)]-0x1-this[_0x57d522(0x16b)]];if(!_0x153a95)return;if(_0x153a95[_0x57d522(0x220)])return this[_0x57d522(0x174)](_0x153a95,_0x5a8c41),void this[_0x57d522(0x173)]();if(!_0x153a95[_0x57d522(0x1ae)][_0x57d522(0x17f)])return;_0x5a8c41[_0x57d522(0x1f3)](),this[_0x57d522(0x226)]&&this[_0x57d522(0x1a0)](_0x5a8c41,this[_0x57d522(0x226)][_0x57d522(0x17c)]);const _0x3d382a=_0x153a95[_0x57d522(0x1ae)][_0x153a95[_0x57d522(0x1ae)][_0x57d522(0x17f)]-0x1];if(_0x3d382a){const _0x1eff5a=this[_0x57d522(0x1e7)];this[_0x57d522(0x1aa)](_0x5a8c41);try{const _0x5ce30d=_0x194eb6({'editor':_0x1eff5a,'changeGroups':_0x3d382a[_0x57d522(0x1f1)],'documentContextContent':_0x3d382a[_0x57d522(0x23c)],'showDiff':this[_0x57d522(0x1a6)],'trimUnchanged':!0x1});this[_0x57d522(0x1aa)](_0x5a8c41),await new Promise(_0x437c9f=>setTimeout(_0x437c9f,0x32)),await _0x5a8c41[_0x57d522(0x1e9)]({'parts':_0x5ce30d,'renderingStrategy':_0x57d522(0x165),'abortSignal':new AbortController()[_0x57d522(0x18a)]});}catch(_0x406f6c){this[_0x57d522(0x1ea)](_0x406f6c)||console[_0x57d522(0x1b7)](_0x57d522(0x1bb),_0x406f6c);}}this[_0x57d522(0x173)]();}[_0x2eeabb(0x173)](){const _0x42db4a=_0x2eeabb;if(!this[_0x42db4a(0x186)]||!this[_0x42db4a(0x1f0)]||!this[_0x42db4a(0x167)])return;const _0x39275f=this[_0x42db4a(0x18f)][_0x42db4a(0x17f)],_0x2a05df=_0x39275f>0x1,_0x59fe2e=this[_0x42db4a(0x226)]?.[_0x42db4a(0x221)];if(_0x2a05df){this[_0x42db4a(0x1a5)]||this[_0x42db4a(0x1b8)]||this[_0x42db4a(0x164)]||(this[_0x42db4a(0x172)][_0x42db4a(0x1e0)](this[_0x42db4a(0x186)]),_0x59fe2e?.[_0x42db4a(0x1ef)](this[_0x42db4a(0x186)]),this[_0x42db4a(0x1a5)]=!0x0,this[_0x42db4a(0x172)][_0x42db4a(0x1e0)](this[_0x42db4a(0x1f0)]),_0x59fe2e?.[_0x42db4a(0x1ef)](this[_0x42db4a(0x1f0)]),this[_0x42db4a(0x1b8)]=!0x0,this[_0x42db4a(0x172)][_0x42db4a(0x1e0)](this[_0x42db4a(0x167)]),_0x59fe2e?.[_0x42db4a(0x1ef)](this[_0x42db4a(0x167)]),this[_0x42db4a(0x164)]=!0x0);const _0x2475fe=_0x39275f-this[_0x42db4a(0x16b)];this[_0x42db4a(0x1f0)][_0x42db4a(0x224)]&&(this[_0x42db4a(0x1f0)][_0x42db4a(0x224)][_0x42db4a(0x1f4)]=_0x2475fe+'/'+_0x39275f),this[_0x42db4a(0x186)][_0x42db4a(0x1ce)]=this[_0x42db4a(0x16b)]<_0x39275f-0x1,this[_0x42db4a(0x167)][_0x42db4a(0x1ce)]=this[_0x42db4a(0x16b)]>0x0;}else(this[_0x42db4a(0x1a5)]||this[_0x42db4a(0x1b8)]||this[_0x42db4a(0x164)])&&(this[_0x42db4a(0x172)][_0x42db4a(0x237)](this[_0x42db4a(0x186)]),_0x59fe2e?.[_0x42db4a(0x1f7)](this[_0x42db4a(0x186)]),this[_0x42db4a(0x1a5)]=!0x1,this[_0x42db4a(0x172)][_0x42db4a(0x237)](this[_0x42db4a(0x1f0)]),_0x59fe2e?.[_0x42db4a(0x1f7)](this[_0x42db4a(0x1f0)]),this[_0x42db4a(0x1b8)]=!0x1,this[_0x42db4a(0x172)][_0x42db4a(0x237)](this[_0x42db4a(0x167)]),_0x59fe2e?.[_0x42db4a(0x1f7)](this[_0x42db4a(0x167)]),this[_0x42db4a(0x164)]=!0x1);}[_0x2eeabb(0x1fc)](_0x5e644c,_0xb3b0cc){const _0x5ddea2=_0x2eeabb;_0x5e644c[_0x5ddea2(0x1b2)](),_0xb3b0cc[_0x5ddea2(0x20e)][_0x5ddea2(0x1b2)](),this[_0x5ddea2(0x1d5)]=!0x0;}async[_0x2eeabb(0x174)](_0x5a8cdc,_0xbfeaea){const _0x530d92=_0x2eeabb,_0x435821=_0x118c41(this[_0x530d92(0x1e7)][_0x530d92(0x20c)],_0x530d92(0x21f));_0xbfeaea[_0x530d92(0x24c)](_0x435821),_0x5a8cdc[_0x530d92(0x220)]=!0x0,await this[_0x530d92(0x1a1)][_0x530d92(0x1f5)],_0xbfeaea[_0x530d92(0x188)](),this[_0x530d92(0x226)]?.[_0x530d92(0x17c)][_0x530d92(0x20e)][_0x530d92(0x22c)]&&(this[_0x530d92(0x226)][_0x530d92(0x17c)][_0x530d92(0x20e)][_0x530d92(0x22c)][_0x530d92(0x1a4)]=!0x0);}[_0x2eeabb(0x1a0)](_0x38d15b,_0x36db1d){const _0x478250=_0x2eeabb;_0x38d15b[_0x478250(0x20a)](),_0x36db1d[_0x478250(0x20e)][_0x478250(0x22c)]&&(_0x36db1d[_0x478250(0x20e)][_0x478250(0x22c)][_0x478250(0x1a4)]=!0x1);}async[_0x2eeabb(0x1d0)](_0x1325e9,_0x29ff15){const _0x312453=_0x2eeabb;await this[_0x312453(0x1a1)][_0x312453(0x1f5)],this[_0x312453(0x1d5)]=!0x1,_0x1325e9[_0x312453(0x240)](),_0x29ff15[_0x312453(0x20e)][_0x312453(0x240)]();}[_0x2eeabb(0x19e)](){const _0x58bc46=_0x2eeabb;this[_0x58bc46(0x172)][_0x58bc46(0x1e3)](_0x3debf6=>{const _0x16f2b5=_0x58bc46;_0x16f2b5(0x1ce)in _0x3debf6&&(_0x3debf6[_0x16f2b5(0x1ce)]=!0x1);});}}
|
|
23
|
+
const _0x5b3354=_0x383a;(function(_0x56a2a7,_0x2a732d){const _0x538fcd=_0x383a,_0xced2f5=_0x56a2a7();while(!![]){try{const _0x2990bf=-parseInt(_0x538fcd(0x28f))/0x1+parseInt(_0x538fcd(0x29e))/0x2+parseInt(_0x538fcd(0x243))/0x3+-parseInt(_0x538fcd(0x1f0))/0x4*(-parseInt(_0x538fcd(0x26b))/0x5)+parseInt(_0x538fcd(0x245))/0x6+-parseInt(_0x538fcd(0x208))/0x7+parseInt(_0x538fcd(0x1c8))/0x8;if(_0x2990bf===_0x2a732d)break;else _0xced2f5['push'](_0xced2f5['shift']());}catch(_0xf357b7){_0xced2f5['push'](_0xced2f5['shift']());}}}(_0x2a49,0x192e0));import{Plugin as _0x5ac00d}from'ckeditor5/src/core.js';import{AIConnector as _0x1932af}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x204954}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x58d420,ButtonView as _0x3a1089,ViewCollection as _0x188297,View as _0x330230,BodyCollection as _0x37a76f}from'ckeditor5/src/ui.js';import{AIEditing as _0x95b872}from'../aicore/aiediting.js';function _0x2a49(){const _0x498fe8=['_navigationNextButton','Error\x20refreshing\x20interaction:','pending','addNavigationItem','root','applySuggestion','_promiseQueue','Attribute','areChangesVisible','removeNavigationItem','document','_navigateToNext','Error\x20updating\x20content\x20in\x20replyCreated:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','textContent','attachToDom','filter','AI_ACTIONS_NEXT_INTERACTION','_disableCustomViews','push','TableSelection','AIConnector','position','updateContent','_filterOperationsOutsideRange','_stopInteraction','271626MvcVIj','_isNavigationPreviousButtonInView','380466cUySYO','_navigationPreviousButton','setSelection','element','isCollapsed','baseVersion','isBusy','isPremiumPlugin','getSelectedTableCells','documentFragment','insert','1/1','miniToolbarView','_anchorOperation','open','slice','getDocumentContext','setChangeGroupState','applyOperation','path','first','_bodyCollection','destroy','_execute','documentContextContent','_customViews','_clone','end','showLoader','remove','change','createPositionBefore','type','isDocumentOperation','parent','startAutoScroll','sourcePosition','range','5QLzmOj','rename','_refreshInteraction','interactionFinished','stopInteraction','replies','getLimitElement','_navigateToPrevious','includes','addOperation','_wrapWithCommonAncestors','queueEmptyPromise','showError','static','upsertAIActionRating','move','locale','actionName','getSelectionAsFragment','startsWith','insertSuggestion','ai.availableReplyActions','_clearSuggestionContent','createRange','_currentInteractionIndex','get','ai-no-track-changes','getRanges','listenTo','forEach','model','streaming','aiBalloon','balloonView','_isNavigationCounterInView','actionCallId','164615plQWbi','AI_ACTIONS_TRY_AGAIN','has','_isAbortError','focus','setLoading','span','TrackChangesEditing','signal','_applyOperationsAsSuggestions','getSelectedContent','getFirstRange','_interactionParams','set','abort','172626iOJcZt','close','modelToViewWithIds','nodeAfter','_clearErrorState','_children','merge','_interactions','_clearLoadingState','howMany','state','config','stop','accepted','ck-ai-navigation-button\x20ck-ai-next-button','rejected','isOfficialPlugin','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_setLoadingState','getAncestors','322464ejDWPf','schema','isEnabled','_isNavigationNextButtonInView','rootName','replyContentUpdated','upsertCustomAIActionRating','replyCreated','createPositionAfter','ck-ai-custom-action-button','version','icon','mainView','random','_setupCustomViews','_executeAction','_interaction','clone','data','map','batch','_createInteraction','_clearInteractionHistory','length','toolbar','_updateNavigationUI','catch','start','_applyChanges','add','toData','AIActions','requires','selectionRemoved','showChangesButton','editor','stickiness','clearLoading','reinsert','selection','172148jfNyBR','_navigationCounter','hasPendingParts','detachFromDom','getChild','_displayInteractionAtIndex','getRoot','_setErrorState','setTemplate','operationsA','indexOf','isLoading','hideError','message','hasError','nextSibling','AI_ACTIONS_PREVIOUS_INTERACTION','bind','execute','dialogClosed','plugins','replyChangeGroupStateUpdated','clearErrorState','split','391020ucwFlH','$graveyard','_getExecuteDataInTable','hideLoader','enqueue','TrackChanges','_getExecuteDataRegular','ai-request-aborted','getSelectedBlocks','_balloonShowDiff','stopAutoScroll','ck-ai-navigation-button\x20ck-ai-previous-button','bodyView','processor','getOperations','history','changeGroups','createPositionAt','_aiConnector','ck-ai-interaction-counter','getCommonAncestor','AIBalloon','_appendChild','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20during\x20navigation:','executeAction','pluginName','error','setErrorState','AI_ACTIONS_GENERIC_ERROR','getChildAtOffset','stopListening','Error\x20updating\x20content\x20in\x20replyContentUpdated:'];_0x2a49=function(){return _0x498fe8;};return _0x2a49();}import{AIActionsInteraction as _0x25f476}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x94a4f3,first as _0x411376}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4bf878,IconRefresh as _0x3f999b,IconNextArrow as _0x5acb7,IconPreviousArrow as _0x49d882,IconShowChangesOff as _0x33e389}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x406c9f}from'../aiballoon/aiballoon.js';function _0x383a(_0x1da306,_0x512988){const _0x2a49d5=_0x2a49();return _0x383a=function(_0x383acb,_0x2ec8f3){_0x383acb=_0x383acb-0x1be;let _0xa7f8c5=_0x2a49d5[_0x383acb];return _0xa7f8c5;},_0x383a(_0x1da306,_0x512988);}import{PromiseQueue as _0x38d1d2}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x46a3b0}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x401ad0}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3007da}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x100c91,getOperationsFromReply as _0x4859a1}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x8eeec8,ModelRange as _0x3541b2,ModelPosition as _0x3610e6,_DetachOperation as _0x32b203,transformOperationSets as _0x582b69}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x211c12}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x5ac00d{static get[_0x5b3354(0x1e8)](){return[_0x1932af,_0x58d420,_0x95b872,_0x406c9f,_0x3007da];}static get[_0x5b3354(0x222)](){const _0x50b9ce=_0x5b3354;return _0x50b9ce(0x1e7);}static get[_0x5b3354(0x1c4)](){return!0x0;}static get[_0x5b3354(0x24c)](){return!0x0;}[_0x5b3354(0x21a)];[_0x5b3354(0x2a5)]=[];[_0x5b3354(0x283)]=0x0;[_0x5b3354(0x29b)];[_0x5b3354(0x211)]=!0x1;[_0x5b3354(0x25e)]=new _0x188297();[_0x5b3354(0x246)];[_0x5b3354(0x1f1)];[_0x5b3354(0x28d)]=!0x1;[_0x5b3354(0x229)];[_0x5b3354(0x244)]=!0x1;[_0x5b3354(0x1cb)]=!0x1;[_0x5b3354(0x22f)];[_0x5b3354(0x25a)];get[_0x5b3354(0x1d8)](){const _0x3356fe=_0x5b3354;return this[_0x3356fe(0x2a5)][this[_0x3356fe(0x2a5)][_0x3356fe(0x1df)]-0x1];}constructor(_0x2dfa8c){const _0xff05a3=_0x5b3354;super(_0x2dfa8c),this[_0xff05a3(0x25a)]=new _0x37a76f(this[_0xff05a3(0x1eb)][_0xff05a3(0x27b)]),this[_0xff05a3(0x25a)][_0xff05a3(0x238)](),this[_0xff05a3(0x21a)]=this[_0xff05a3(0x1eb)][_0xff05a3(0x204)][_0xff05a3(0x284)](_0xff05a3(0x23e)),this[_0xff05a3(0x29c)](_0xff05a3(0x24b),!0x1),this[_0xff05a3(0x22f)]=new _0x38d1d2(),this[_0xff05a3(0x1d6)]();}[_0x5b3354(0x26f)](){const _0x4a2907=_0x5b3354;this[_0x4a2907(0x242)]();}async[_0x5b3354(0x221)](_0x5191e8,_0x211fbc,_0x4f909f){const _0x274bbf=_0x5b3354;if(this[_0x274bbf(0x1eb)][_0x274bbf(0x204)][_0x274bbf(0x291)](_0x274bbf(0x23d))){if(this[_0x274bbf(0x1eb)][_0x274bbf(0x204)][_0x274bbf(0x284)](_0x274bbf(0x23d))[_0x274bbf(0x24d)]()){const {modelFragment:_0x306b30,anchorData:_0x1626b}=this[_0x274bbf(0x20a)]();return this[_0x274bbf(0x1d7)](_0x5191e8,_0x306b30,_0x1626b,_0x211fbc,_0x4f909f);}}const {modelFragment:_0x3ae538,anchorData:_0x1fedd4}=this[_0x274bbf(0x20e)]();return this[_0x274bbf(0x1d7)](_0x5191e8,_0x3ae538,_0x1fedd4,_0x211fbc,_0x4f909f);}[_0x5b3354(0x25b)](){const _0xc18c3e=_0x5b3354;this[_0xc18c3e(0x25a)][_0xc18c3e(0x1f3)](),super[_0xc18c3e(0x25b)]();}[_0x5b3354(0x20e)](){const _0x5c69f9=_0x5b3354,_0xa96780=this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x233)][_0x5c69f9(0x1ef)];if(_0xa96780[_0x5c69f9(0x249)]){const _0x557c01=_0x411376(_0xa96780[_0x5c69f9(0x210)]())||this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x1c9)][_0x5c69f9(0x271)](_0xa96780);this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x263)](_0x5a4b47=>{const _0x2a8425=_0x5c69f9;_0x5a4b47[_0x2a8425(0x247)](_0x557c01,'in');});}const _0x25cc0a=_0xa96780[_0x5c69f9(0x29a)](),_0x2a48dd=this[_0x5c69f9(0x275)](this[_0x5c69f9(0x1eb)][_0x5c69f9(0x289)][_0x5c69f9(0x299)](_0xa96780),_0x25cc0a[_0x5c69f9(0x1e3)],_0x25cc0a[_0x5c69f9(0x260)]),_0x262a29=_0xa96780[_0x5c69f9(0x29a)]()[_0x5c69f9(0x1e3)],_0x69edf7=new Map();let _0x1e828e=_0x2a48dd;for(let _0x3bdba1=0x0;_0x3bdba1<_0x262a29[_0x5c69f9(0x258)][_0x5c69f9(0x1df)];_0x3bdba1++)_0x69edf7[_0x5c69f9(0x29c)](_0x1e828e,_0x262a29[_0x5c69f9(0x258)][_0x3bdba1]),_0x1e828e=_0x1e828e[_0x5c69f9(0x1f4)](0x0);return{'modelFragment':_0x2a48dd,'anchorData':_0x69edf7};}[_0x5b3354(0x20a)](){const _0x360ad7=_0x5b3354,_0x39d916=this[_0x360ad7(0x1eb)][_0x360ad7(0x289)][_0x360ad7(0x233)][_0x360ad7(0x1ef)],_0x133994=this[_0x360ad7(0x1eb)][_0x360ad7(0x204)][_0x360ad7(0x284)](_0x360ad7(0x23d))[_0x360ad7(0x27d)](),_0x550023=_0x39d916[_0x360ad7(0x29a)]()[_0x360ad7(0x1e3)][_0x360ad7(0x267)][_0x360ad7(0x267)],_0x5699c4=this[_0x360ad7(0x275)](_0x133994,this[_0x360ad7(0x1eb)][_0x360ad7(0x289)][_0x360ad7(0x264)](_0x550023),this[_0x360ad7(0x1eb)][_0x360ad7(0x289)][_0x360ad7(0x1d0)](_0x550023)),_0x278520=_0x39d916[_0x360ad7(0x29a)]()[_0x360ad7(0x1e3)],_0xf3993a=new Map();let _0x2ce9b7=_0x5699c4;for(let _0x45f868=0x0;_0x45f868<_0x278520[_0x360ad7(0x258)][_0x360ad7(0x1df)];_0x45f868++)if(_0xf3993a[_0x360ad7(0x29c)](_0x2ce9b7,_0x278520[_0x360ad7(0x258)][_0x45f868]),_0x45f868<_0x278520[_0x360ad7(0x258)][_0x360ad7(0x1df)]-0x1)_0x2ce9b7=_0x2ce9b7[_0x360ad7(0x1f4)](0x0);else{let _0x75cb32=_0x2ce9b7[_0x360ad7(0x1ff)];for(;_0x75cb32;)_0xf3993a[_0x360ad7(0x29c)](_0x75cb32,_0x278520[_0x360ad7(0x258)][_0x45f868]),_0x75cb32=_0x75cb32[_0x360ad7(0x1ff)];}return{'modelFragment':_0x5699c4,'anchorData':_0xf3993a};}[_0x5b3354(0x1d7)](_0x206945,_0x265985,_0xc6a5e0,_0x190f2b,_0x4823dc){const _0x4dc3e9=_0x5b3354,_0x455d34=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x284)](_0x95b872),_0x231552=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x284)](_0x406c9f),_0x5fa41c=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x289)][_0x4dc3e9(0x233)][_0x4dc3e9(0x1ef)],_0xa94fc6=_0x455d34[_0x4dc3e9(0x2a0)](_0x265985),_0x21a35d=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x1da)][_0x4dc3e9(0x215)][_0x4dc3e9(0x1e6)](_0xa94fc6),_0x156846=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x289)][_0x4dc3e9(0x233)][_0x4dc3e9(0x1d2)],_0x2a4ec9=[..._0x5fa41c[_0x4dc3e9(0x286)]()];let _0x219afa=this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x1bf)][_0x4dc3e9(0x284)](_0x4dc3e9(0x280))||[..._0x211c12];this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x291)](_0x4dc3e9(0x20d))||(_0x219afa=_0x219afa[_0x4dc3e9(0x239)](_0x272b61=>_0x4dc3e9(0x27f)!=_0x272b61));const _0x533e8e=new _0x204954(this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x27b)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4dc3e9(0x1d3),'customView':this[_0x4dc3e9(0x25e)]},'showUnchangedParts':!0x0,'availableActions':_0x219afa},this[_0x4dc3e9(0x25a)]);return _0x231552[_0x4dc3e9(0x253)]({'index':0x3e8*Math[_0x4dc3e9(0x1d5)]()%0x3e8,'title':_0x190f2b,'icon':_0x4823dc||_0x4bf878,'mainView':_0x533e8e,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x4dc3e9(0x1eb)][_0x4dc3e9(0x204)][_0x4dc3e9(0x291)](_0x4dc3e9(0x20d)),'ranges':_0x2a4ec9}),this[_0x4dc3e9(0x1c6)](_0x533e8e,_0x231552),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x22e),()=>{const _0x37796f=_0x4dc3e9;this[_0x37796f(0x1e4)](_0x265985,_0xc6a5e0,!0x1);}),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x27f),()=>{const _0x40d4bc=_0x4dc3e9;this[_0x40d4bc(0x1e4)](_0x265985,_0xc6a5e0,!0x0);}),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x1e9),()=>{const _0x2a0396=_0x4dc3e9;this[_0x2a0396(0x242)](),this[_0x2a0396(0x23b)]();}),this[_0x4dc3e9(0x287)](_0x231552,_0x4dc3e9(0x203),()=>{const _0x46f824=_0x4dc3e9;if(this[_0x46f824(0x1d8)]&&this[_0x46f824(0x1d8)][_0x46f824(0x270)][_0x46f824(0x1df)]>0x0){const _0x12ee1f=this[_0x46f824(0x1d8)][_0x46f824(0x270)][this[_0x46f824(0x1d8)][_0x46f824(0x270)][_0x46f824(0x1df)]-0x1],_0x4c7b6c=_0x12ee1f[_0x46f824(0x218)][0x0];_0x4c7b6c&&_0x46f824(0x22b)===_0x4c7b6c[_0x46f824(0x1be)]&&_0x12ee1f[_0x46f824(0x256)](0x0,_0x46f824(0x1c3));}this[_0x46f824(0x242)](),this[_0x46f824(0x1de)](),this[_0x46f824(0x227)](_0x231552);}),this[_0x4dc3e9(0x1dd)](_0x21a35d,_0x156846,_0x533e8e,_0x231552,_0x206945);}[_0x5b3354(0x275)](_0x5f937b,_0x116e61,_0x53be17){const _0x4dabd5=_0x5b3354,_0xe77b5a=this[_0x4dabd5(0x1eb)][_0x4dabd5(0x289)][_0x4dabd5(0x282)](_0x116e61,_0x53be17)[_0x4dabd5(0x21c)](),_0x1ad4c8=_0xe77b5a['is'](_0x4dabd5(0x24e))?[]:_0xe77b5a[_0x4dabd5(0x1c7)]({'includeSelf':!0x0})[_0x4dabd5(0x254)](0x1);if(_0x1ad4c8[_0x4dabd5(0x1df)]){const _0x3c06ec=_0x1ad4c8[_0x4dabd5(0x1db)](_0x499dd1=>_0x499dd1[_0x4dabd5(0x25f)](!0x1));for(let _0x263cb6=0x1;_0x263cb6<_0x3c06ec[_0x4dabd5(0x1df)];_0x263cb6++)_0x3c06ec[_0x263cb6-0x1][_0x4dabd5(0x21e)](_0x3c06ec[_0x263cb6]);return _0x3c06ec[_0x3c06ec[_0x4dabd5(0x1df)]-0x1][_0x4dabd5(0x21e)](_0x5f937b),new _0x8eeec8(_0x3c06ec[0x0]);}return _0x5f937b;}async[_0x5b3354(0x1dd)](_0x5ecfff,_0xc341a7,_0x4b5b15,_0x24fb6a,_0x19ad21){const _0x3ebfb3=_0x5b3354,_0x1c6aa3=this[_0x3ebfb3(0x1eb)];this[_0x3ebfb3(0x29b)]={'action':_0x19ad21,'content':_0x5ecfff,'version':_0xc341a7,'mainView':_0x4b5b15,'aiBalloon':_0x24fb6a};const _0x965728=new _0x25f476({'connector':this[_0x3ebfb3(0x21a)],'editor':_0x1c6aa3,'content':_0x5ecfff,'version':_0xc341a7,..._0x19ad21});this[_0x3ebfb3(0x2a5)][_0x3ebfb3(0x23c)](_0x965728),_0x4b5b15[_0x3ebfb3(0x1fc)]();const _0x17313d=(_0x1369d9,_0x41cf3f,_0x4317ce=!0x1,_0xdbaec4=_0x3ebfb3(0x28a))=>this[_0x3ebfb3(0x22f)][_0x3ebfb3(0x20c)](async _0x537338=>{const _0x3a45db=_0x3ebfb3;try{const _0x2b6021=_0x401ad0({'editor':_0x1c6aa3,'changeGroups':_0x1369d9[_0x3a45db(0x218)],'documentContextContent':_0x1369d9[_0x3a45db(0x25d)],'showDiff':_0x4317ce,'trimUnchanged':!0x1});await _0x41cf3f[_0x3a45db(0x240)]({'parts':_0x2b6021,'renderingStrategy':_0xdbaec4,'abortSignal':_0x537338});}catch(_0x316913){if(this[_0x3a45db(0x292)](_0x316913))return;throw _0x316913;}});this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x1cf),(_0x6b6d2f,_0x24f427)=>{const _0x4ad3d9=_0x3ebfb3;_0x4b5b15[_0x4ad3d9(0x20b)](),_0x24fb6a[_0x4ad3d9(0x268)](),_0x17313d(_0x24f427,_0x4b5b15)[_0x4ad3d9(0x1e2)](_0x441e68=>{const _0x3af22d=_0x4ad3d9;this[_0x3af22d(0x292)](_0x441e68)||(console[_0x3af22d(0x223)](_0x3af22d(0x235),_0x441e68),this[_0x3af22d(0x1f7)](_0x965728,_0x4b5b15));});}),this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x1cd),(_0x85948e,_0x19efd9)=>{const _0x5c66fe=_0x3ebfb3;_0x17313d(_0x19efd9,_0x4b5b15)[_0x5c66fe(0x1e2)](_0x51c966=>{const _0x209556=_0x5c66fe;this[_0x209556(0x292)](_0x51c966)||(console[_0x209556(0x223)](_0x209556(0x228),_0x51c966),this[_0x209556(0x1f7)](_0x965728,_0x4b5b15));});}),this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x26e),async()=>{const _0x43041f=_0x3ebfb3;try{await this[_0x43041f(0x2a6)](_0x4b5b15,_0x24fb6a),this[_0x43041f(0x1e1)](),await this[_0x43041f(0x22f)][_0x43041f(0x276)];}catch(_0x1f3d22){this[_0x43041f(0x292)](_0x1f3d22)||(console[_0x43041f(0x223)](_0x43041f(0x1c5),_0x1f3d22),this[_0x43041f(0x1f7)](_0x965728,_0x4b5b15));}finally{_0x24fb6a[_0x43041f(0x212)]();}}),this[_0x3ebfb3(0x287)](_0x4b5b15,_0x3ebfb3(0x21f),async(_0x237433,{showDiff:_0x3ffbe8})=>{const _0x22c121=_0x3ebfb3;try{this[_0x22c121(0x211)]=_0x3ffbe8;const _0x453c47=this[_0x22c121(0x1d8)][_0x22c121(0x270)][this[_0x22c121(0x1d8)][_0x22c121(0x270)][_0x22c121(0x1df)]-0x1];_0x453c47&&await _0x17313d(_0x453c47,_0x4b5b15,_0x3ffbe8,_0x22c121(0x278));}catch(_0x195fe4){this[_0x22c121(0x292)](_0x195fe4)||(console[_0x22c121(0x223)](_0x22c121(0x236),_0x195fe4),this[_0x22c121(0x1f7)](_0x965728,_0x4b5b15));}}),this[_0x3ebfb3(0x1d8)]['on'](_0x3ebfb3(0x205),(_0x579691,{reply:_0x4fed22})=>{const _0x56ffc6=_0x3ebfb3,_0x1bc669={'positiveCount':_0x4fed22[_0x56ffc6(0x218)][_0x56ffc6(0x239)](_0x199bba=>_0x56ffc6(0x1c1)===_0x199bba[_0x56ffc6(0x1be)])[_0x56ffc6(0x1df)],'totalCount':_0x4fed22[_0x56ffc6(0x218)][_0x56ffc6(0x1df)]},_0x31af2c=this[_0x56ffc6(0x1d8)][_0x56ffc6(0x28e)],_0xdc11b0=this[_0x56ffc6(0x1d8)][_0x56ffc6(0x27c)];_0xdc11b0?this[_0x56ffc6(0x21a)][_0x56ffc6(0x279)](_0xdc11b0,_0x31af2c,_0x1bc669):this[_0x56ffc6(0x21a)][_0x56ffc6(0x1ce)](_0x31af2c,_0x1bc669);}),this[_0x3ebfb3(0x1c6)](_0x4b5b15,_0x24fb6a);try{const _0x26ddb1=await this[_0x3ebfb3(0x1d8)][_0x3ebfb3(0x1e3)]();return this[_0x3ebfb3(0x1e1)](),_0x26ddb1;}catch(_0x581f9e){if(this[_0x3ebfb3(0x292)](_0x581f9e))return;_0x4b5b15[_0x3ebfb3(0x20b)](),this[_0x3ebfb3(0x1f7)](_0x965728,_0x4b5b15);}}[_0x5b3354(0x1e4)](_0x589645,_0x436d57,_0x40f662){const _0x1c55f7=_0x5b3354,_0x54d636=this[_0x1c55f7(0x1eb)];if(_0x40f662&&!_0x54d636[_0x1c55f7(0x204)][_0x1c55f7(0x291)](_0x1c55f7(0x20d)))throw new _0x94a4f3(_0x1c55f7(0x285),null);const _0x213e85=this[_0x1c55f7(0x1eb)][_0x1c55f7(0x204)][_0x1c55f7(0x284)](_0x3007da),_0x16720e=this[_0x1c55f7(0x1d8)],_0x98bbbe=this[_0x1c55f7(0x1d8)][_0x1c55f7(0x270)][this[_0x1c55f7(0x1d8)][_0x1c55f7(0x270)][_0x1c55f7(0x1df)]-0x1],_0x416ee1=_0x98bbbe[_0x1c55f7(0x218)];_0x98bbbe[_0x1c55f7(0x256)](0x0,_0x1c55f7(0x1c1));let _0x4e8fab=_0x4859a1({'editor':_0x54d636,'reply':_0x98bbbe,'interaction':_0x16720e,'groups':_0x416ee1,'transform':!0x1,'documentCompare':_0x213e85,'documentCompareOptions':{'anchor':_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x219)](_0x589645,0x0),'markDeletions':_0x40f662}});_0x4e8fab=this[_0x1c55f7(0x241)](_0x4e8fab,_0x436d57);for(const _0x3397c7 of _0x4e8fab)this[_0x1c55f7(0x252)](_0x436d57,_0x3397c7,_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x233)][_0x1c55f7(0x1f6)]());const _0x4f548a=_0x16720e[_0x1c55f7(0x255)]()[_0x1c55f7(0x1d2)],_0xa6927a=_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x233)][_0x1c55f7(0x217)][_0x1c55f7(0x216)](_0x4f548a),_0x2e47bd={'document':_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x233)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x431b27=_0x582b69(_0x4e8fab,_0xa6927a,_0x2e47bd)[_0x1c55f7(0x1f9)];_0x54d636[_0x1c55f7(0x289)][_0x1c55f7(0x263)](_0x1eed1b=>{const _0x227d5d=_0x1c55f7;if(_0x1eed1b[_0x227d5d(0x247)](_0x54d636[_0x227d5d(0x289)][_0x227d5d(0x233)][_0x227d5d(0x1ef)][_0x227d5d(0x293)]),_0x40f662)_0x54d636[_0x227d5d(0x204)][_0x227d5d(0x284)](_0x227d5d(0x296))[_0x227d5d(0x298)](_0x431b27);else{for(const _0x5bf35c of _0x431b27)_0x5bf35c[_0x227d5d(0x24a)]=_0x54d636[_0x227d5d(0x289)][_0x227d5d(0x233)][_0x227d5d(0x1d2)],_0x100c91(_0x54d636,_0x5bf35c),_0x1eed1b[_0x227d5d(0x1dc)][_0x227d5d(0x274)](_0x5bf35c),_0x54d636[_0x227d5d(0x289)][_0x227d5d(0x257)](_0x5bf35c);}}),this[_0x1c55f7(0x1eb)][_0x1c55f7(0x204)][_0x1c55f7(0x284)](_0x1c55f7(0x21d))[_0x1c55f7(0x29f)]();}[_0x5b3354(0x241)](_0x40b9ce,_0x17d87e){const _0x1a63b7=_0x5b3354;return _0x40b9ce[_0x1a63b7(0x239)](_0x5a86d3=>{const _0x332e77=_0x1a63b7;if(_0x332e77(0x26c)==_0x5a86d3[_0x332e77(0x265)]){const _0x11f1f2=_0x5a86d3[_0x332e77(0x23f)][_0x332e77(0x2a1)];return!_0x17d87e[_0x332e77(0x291)](_0x11f1f2);}if(_0x5a86d3[_0x332e77(0x265)][_0x332e77(0x1fa)](_0x332e77(0x230))>-0x1){const _0x400f1f=_0x5a86d3[_0x332e77(0x26a)][_0x332e77(0x1e3)][_0x332e77(0x2a1)];return!_0x17d87e[_0x332e77(0x291)](_0x400f1f);}return!0x0;});}[_0x5b3354(0x252)](_0x225840,_0xa35b0d,_0x1c250b){const _0x249920=_0x5b3354,_0x56e0c1=_0xa35b0d[_0x249920(0x1d9)]();for(const _0x2b625b in _0xa35b0d){const _0x4ad203=_0xa35b0d[_0x2b625b];_0x4ad203 instanceof _0x3541b2?_0xa35b0d[_0x2b625b]=new _0x3541b2(_0x18ca1f(_0x4ad203[_0x249920(0x1e3)]),_0x18ca1f(_0x4ad203[_0x249920(0x260)])):_0x4ad203 instanceof _0x3610e6&&(_0xa35b0d[_0x2b625b]=_0x18ca1f(_0x4ad203));}if([_0x249920(0x24f),_0x249920(0x27a),_0x249920(0x262),_0x249920(0x1ee),_0x249920(0x207),_0x249920(0x2a4)][_0x249920(0x273)](_0x56e0c1[_0x249920(0x265)])){if(_0x56e0c1[_0x249920(0x266)]=!0x1,_0x56e0c1[_0x249920(0x24a)]=null,_0x249920(0x262)==_0x56e0c1[_0x249920(0x265)]){const _0x2fd1eb=_0x56e0c1[_0x249920(0x269)],_0xca2ddb=_0x56e0c1[_0x249920(0x2a7)];new _0x32b203(_0x2fd1eb,_0xca2ddb)[_0x249920(0x25c)]();}else _0x56e0c1[_0x249920(0x25c)]();}function _0x18ca1f(_0x3c144c){const _0x25e407=_0x249920;if(_0x25e407(0x209)==_0x3c144c[_0x25e407(0x22d)][_0x25e407(0x1cc)])return _0x3c144c;const _0x3884ec=[];let _0x1ccf93=_0x3c144c[_0x25e407(0x22d)];for(let _0x4456e5=0x0;_0x4456e5<_0x3c144c[_0x25e407(0x258)][_0x25e407(0x1df)];_0x4456e5++){const _0x5dfe02=_0x225840[_0x25e407(0x284)](_0x1ccf93)||0x0;_0x3884ec[_0x4456e5]=_0x3c144c[_0x25e407(0x258)][_0x4456e5]+_0x5dfe02,_0x1ccf93=_0x1ccf93[_0x25e407(0x226)](_0x3c144c[_0x25e407(0x258)][_0x4456e5]);}return new _0x3610e6(_0x1c250b,_0x3884ec,_0x3c144c[_0x25e407(0x1ec)]);}}[_0x5b3354(0x26d)](){const _0x1ed844=_0x5b3354;if(!this[_0x1ed844(0x29b)])return;this[_0x1ed844(0x2a5)][_0x1ed844(0x1df)]>0x0&&this[_0x1ed844(0x242)](),this[_0x1ed844(0x283)]=0x0,this[_0x1ed844(0x211)]=!0x1;const {action:_0x8a9956,content:_0x44f426,version:_0x1d7e72,mainView:_0x485652,aiBalloon:_0x45bab8}=this[_0x1ed844(0x29b)];_0x485652[_0x1ed844(0x231)]=!0x1,_0x485652[_0x1ed844(0x1fc)](),this[_0x1ed844(0x2a2)](_0x485652,_0x45bab8);const _0x1f09dd=_0x485652;_0x1f09dd[_0x1ed844(0x251)]&&_0x1f09dd[_0x1ed844(0x251)][_0x1ed844(0x1ea)]&&_0x1f09dd[_0x1ed844(0x251)][_0x1ed844(0x1ea)][_0x1ed844(0x29c)]({'isOn':!0x1,'icon':_0x33e389}),this[_0x1ed844(0x281)](_0x485652),_0x485652[_0x1ed844(0x261)](),this[_0x1ed844(0x1e1)](),this[_0x1ed844(0x227)](_0x485652),this[_0x1ed844(0x1dd)](_0x44f426,_0x1d7e72,_0x485652,_0x45bab8,_0x8a9956)[_0x1ed844(0x1e2)](_0x71d253=>{const _0x2f61b3=_0x1ed844;this[_0x2f61b3(0x292)](_0x71d253)||console[_0x2f61b3(0x223)](_0x2f61b3(0x22a),_0x71d253);});}[_0x5b3354(0x281)](_0xfe2b56){const _0x43dd2d=_0x5b3354,_0x3bd5c5=_0xfe2b56[_0x43dd2d(0x214)][_0x43dd2d(0x2a3)];for(;_0x3bd5c5[_0x43dd2d(0x1df)]>0x0;)_0x3bd5c5[_0x43dd2d(0x262)](_0x3bd5c5[_0x43dd2d(0x259)]);_0xfe2b56[_0x43dd2d(0x214)][_0x43dd2d(0x1f2)]=!0x1;}[_0x5b3354(0x292)](_0x58b0d7){const _0x26e23a=_0x5b3354;return!!_0x58b0d7[_0x26e23a(0x1fd)]&&_0x58b0d7[_0x26e23a(0x1fd)][_0x26e23a(0x27e)](_0x26e23a(0x20f));}[_0x5b3354(0x1de)](){const _0x5c4eee=_0x5b3354;this[_0x5c4eee(0x2a5)]=[],this[_0x5c4eee(0x29b)]=void 0x0,this[_0x5c4eee(0x283)]=0x0,this[_0x5c4eee(0x1e1)]();}[_0x5b3354(0x242)](){const _0x4a07ca=_0x5b3354;this[_0x4a07ca(0x1d8)]&&this[_0x4a07ca(0x1d8)][_0x4a07ca(0x1c0)](),this[_0x4a07ca(0x22f)][_0x4a07ca(0x29d)](),this[_0x4a07ca(0x24b)]=!0x1,this[_0x4a07ca(0x29b)]&&this[_0x4a07ca(0x29b)][_0x4a07ca(0x28b)][_0x4a07ca(0x212)]();}[_0x5b3354(0x1d6)](){const _0x595476=_0x5b3354,_0x57d9e2=new _0x3a1089(this[_0x595476(0x1eb)][_0x595476(0x27b)]),_0x18f48e=new _0x3a1089(this[_0x595476(0x1eb)][_0x595476(0x27b)]),_0xaf5d6f=new _0x330230(this[_0x595476(0x1eb)][_0x595476(0x27b)]),_0x113a96=new _0x3a1089(this[_0x595476(0x1eb)][_0x595476(0x27b)]);_0x57d9e2[_0x595476(0x29c)]({'icon':_0x3f999b,'label':_0x46a3b0(this[_0x595476(0x1eb)][_0x595476(0x27b)],_0x595476(0x290)),'tooltip':!0x0,'class':_0x595476(0x1d1)}),_0x18f48e[_0x595476(0x29c)]({'icon':_0x49d882,'tooltip':_0x46a3b0(this[_0x595476(0x1eb)][_0x595476(0x27b)],_0x595476(0x200)),'class':_0x595476(0x213)}),_0xaf5d6f[_0x595476(0x1f8)]({'tag':_0x595476(0x295),'attributes':{'class':[_0x595476(0x21b)]},'children':[_0x595476(0x250)]}),_0x113a96[_0x595476(0x29c)]({'icon':_0x5acb7,'tooltip':_0x46a3b0(this[_0x595476(0x1eb)][_0x595476(0x27b)],_0x595476(0x23a)),'class':_0x595476(0x1c2)}),_0x57d9e2[_0x595476(0x201)](_0x595476(0x1ca))['to'](this,_0x595476(0x24b),_0x3f3fbf=>!_0x3f3fbf),_0x57d9e2['on'](_0x595476(0x202),()=>{const _0x59feab=_0x595476;this[_0x59feab(0x26d)]();}),_0x18f48e[_0x595476(0x201)](_0x595476(0x1ca))['to'](this,_0x595476(0x24b),_0x22bf79=>!_0x22bf79),_0x18f48e['on'](_0x595476(0x202),()=>{const _0x534e4d=_0x595476;this[_0x534e4d(0x272)]();}),_0x113a96[_0x595476(0x201)](_0x595476(0x1ca))['to'](this,_0x595476(0x24b),_0x9c133f=>!_0x9c133f),_0x113a96['on'](_0x595476(0x202),()=>{const _0x27ba57=_0x595476;this[_0x27ba57(0x234)]();}),this[_0x595476(0x246)]=_0x18f48e,this[_0x595476(0x1f1)]=_0xaf5d6f,this[_0x595476(0x229)]=_0x113a96,this[_0x595476(0x25e)][_0x595476(0x1e5)](_0x57d9e2);}[_0x5b3354(0x272)](){const _0x36d63e=_0x5b3354,_0x414de3=this[_0x36d63e(0x2a5)][_0x36d63e(0x1df)];this[_0x36d63e(0x283)]<_0x414de3-0x1&&this[_0x36d63e(0x1f5)](this[_0x36d63e(0x283)]+0x1);}[_0x5b3354(0x234)](){const _0x3a058a=_0x5b3354;this[_0x3a058a(0x283)]>0x0&&this[_0x3a058a(0x1f5)](this[_0x3a058a(0x283)]-0x1);}async[_0x5b3354(0x1f5)](_0x2ac654){const _0x21ba53=_0x5b3354;if(!this[_0x21ba53(0x29b)])return;this[_0x21ba53(0x283)]=_0x2ac654;const {mainView:_0x245399}=this[_0x21ba53(0x29b)],_0x327100=this[_0x21ba53(0x2a5)][this[_0x21ba53(0x2a5)][_0x21ba53(0x1df)]-0x1-this[_0x21ba53(0x283)]];if(!_0x327100)return;if(_0x327100[_0x21ba53(0x1fe)])return this[_0x21ba53(0x1f7)](_0x327100,_0x245399),void this[_0x21ba53(0x1e1)]();if(!_0x327100[_0x21ba53(0x270)][_0x21ba53(0x1df)])return;_0x245399[_0x21ba53(0x1fc)](),this[_0x21ba53(0x29b)]&&this[_0x21ba53(0x2a2)](_0x245399,this[_0x21ba53(0x29b)][_0x21ba53(0x28b)]);const _0x2fce18=_0x327100[_0x21ba53(0x270)][_0x327100[_0x21ba53(0x270)][_0x21ba53(0x1df)]-0x1];if(_0x2fce18){const _0xecde06=this[_0x21ba53(0x1eb)];this[_0x21ba53(0x281)](_0x245399);try{const _0x43efc2=_0x401ad0({'editor':_0xecde06,'changeGroups':_0x2fce18[_0x21ba53(0x218)],'documentContextContent':_0x2fce18[_0x21ba53(0x25d)],'showDiff':this[_0x21ba53(0x211)],'trimUnchanged':!0x1});this[_0x21ba53(0x281)](_0x245399),await new Promise(_0xcf908e=>setTimeout(_0xcf908e,0x32)),await _0x245399[_0x21ba53(0x240)]({'parts':_0x43efc2,'renderingStrategy':_0x21ba53(0x278),'abortSignal':new AbortController()[_0x21ba53(0x297)]});}catch(_0x305ebf){this[_0x21ba53(0x292)](_0x305ebf)||console[_0x21ba53(0x223)](_0x21ba53(0x220),_0x305ebf);}}this[_0x21ba53(0x1e1)]();}[_0x5b3354(0x1e1)](){const _0x948541=_0x5b3354;if(!this[_0x948541(0x246)]||!this[_0x948541(0x1f1)]||!this[_0x948541(0x229)])return;const _0x669286=this[_0x948541(0x2a5)][_0x948541(0x1df)],_0x33fa4b=_0x669286>0x1,_0x470155=this[_0x948541(0x29b)]?.[_0x948541(0x1d4)];if(_0x33fa4b){this[_0x948541(0x244)]||this[_0x948541(0x28d)]||this[_0x948541(0x1cb)]||(this[_0x948541(0x25e)][_0x948541(0x1e5)](this[_0x948541(0x246)]),_0x470155?.[_0x948541(0x22c)](this[_0x948541(0x246)]),this[_0x948541(0x244)]=!0x0,this[_0x948541(0x25e)][_0x948541(0x1e5)](this[_0x948541(0x1f1)]),_0x470155?.[_0x948541(0x22c)](this[_0x948541(0x1f1)]),this[_0x948541(0x28d)]=!0x0,this[_0x948541(0x25e)][_0x948541(0x1e5)](this[_0x948541(0x229)]),_0x470155?.[_0x948541(0x22c)](this[_0x948541(0x229)]),this[_0x948541(0x1cb)]=!0x0);const _0x44cdad=_0x669286-this[_0x948541(0x283)];this[_0x948541(0x1f1)][_0x948541(0x248)]&&(this[_0x948541(0x1f1)][_0x948541(0x248)][_0x948541(0x237)]=_0x44cdad+'/'+_0x669286),this[_0x948541(0x246)][_0x948541(0x1ca)]=this[_0x948541(0x283)]<_0x669286-0x1,this[_0x948541(0x229)][_0x948541(0x1ca)]=this[_0x948541(0x283)]>0x0;}else(this[_0x948541(0x244)]||this[_0x948541(0x28d)]||this[_0x948541(0x1cb)])&&(this[_0x948541(0x25e)][_0x948541(0x262)](this[_0x948541(0x246)]),_0x470155?.[_0x948541(0x232)](this[_0x948541(0x246)]),this[_0x948541(0x244)]=!0x1,this[_0x948541(0x25e)][_0x948541(0x262)](this[_0x948541(0x1f1)]),_0x470155?.[_0x948541(0x232)](this[_0x948541(0x1f1)]),this[_0x948541(0x28d)]=!0x1,this[_0x948541(0x25e)][_0x948541(0x262)](this[_0x948541(0x229)]),_0x470155?.[_0x948541(0x232)](this[_0x948541(0x229)]),this[_0x948541(0x1cb)]=!0x1);}[_0x5b3354(0x1c6)](_0x1ed0c6,_0x26d665){const _0xcd9252=_0x5b3354;_0x1ed0c6[_0xcd9252(0x294)](),_0x26d665[_0xcd9252(0x28c)][_0xcd9252(0x294)](),this[_0xcd9252(0x24b)]=!0x0;}async[_0x5b3354(0x1f7)](_0x16ed00,_0x167f86){const _0x31028e=_0x5b3354,_0x149525=_0x46a3b0(this[_0x31028e(0x1eb)][_0x31028e(0x27b)],_0x31028e(0x225));_0x167f86[_0x31028e(0x277)](_0x149525),_0x16ed00[_0x31028e(0x1fe)]=!0x0,await this[_0x31028e(0x22f)][_0x31028e(0x276)],_0x167f86[_0x31028e(0x224)](),this[_0x31028e(0x29b)]?.[_0x31028e(0x28b)][_0x31028e(0x28c)][_0x31028e(0x1e0)]&&(this[_0x31028e(0x29b)][_0x31028e(0x28b)][_0x31028e(0x28c)][_0x31028e(0x1e0)][_0x31028e(0x1fb)]=!0x0);}[_0x5b3354(0x2a2)](_0x538493,_0x26d523){const _0x58edfd=_0x5b3354;_0x538493[_0x58edfd(0x206)](),_0x26d523[_0x58edfd(0x28c)][_0x58edfd(0x1e0)]&&(_0x26d523[_0x58edfd(0x28c)][_0x58edfd(0x1e0)][_0x58edfd(0x1fb)]=!0x1);}async[_0x5b3354(0x2a6)](_0x218622,_0xb4196e){const _0x1291f2=_0x5b3354;await this[_0x1291f2(0x22f)][_0x1291f2(0x276)],this[_0x1291f2(0x24b)]=!0x1,_0x218622[_0x1291f2(0x1ed)](),_0xb4196e[_0x1291f2(0x28c)][_0x1291f2(0x1ed)]();}[_0x5b3354(0x23b)](){const _0x1eca9f=_0x5b3354;this[_0x1eca9f(0x25e)][_0x1eca9f(0x288)](_0x566db7=>{const _0x2bd703=_0x1eca9f;_0x2bd703(0x1ca)in _0x566db7&&(_0x566db7[_0x2bd703(0x1ca)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4271e8=_0x49d0;(function(_0x404484,_0x211573){const _0xe69f43=_0x49d0,_0x59a7e4=_0x404484();while(!![]){try{const _0x5c99d5=parseInt(_0xe69f43(0x1ac))/0x1*(-parseInt(_0xe69f43(0x1bc))/0x2)+parseInt(_0xe69f43(0x1b4))/0x3+-parseInt(_0xe69f43(0x1cb))/0x4*(-parseInt(_0xe69f43(0x1ad))/0x5)+parseInt(_0xe69f43(0x1b2))/0x6+-parseInt(_0xe69f43(0x1c6))/0x7*(parseInt(_0xe69f43(0x1be))/0x8)+parseInt(_0xe69f43(0x1bf))/0x9+-parseInt(_0xe69f43(0x1c8))/0xa;if(_0x5c99d5===_0x211573)break;else _0x59a7e4['push'](_0x59a7e4['shift']());}catch(_0xfba5a6){_0x59a7e4['push'](_0x59a7e4['shift']());}}}(_0x26c6,0x43da9));import{AIInteraction as _0x382ca7,AI_MODEL_EVENT_NAMES as _0x55acf0}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xcb19c2}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x5b16f8}from'./aiactionsreply.js';function _0x26c6(){const _0x116d5d=['version','args','delegate','268877DVmalb','replies','6183820AnKiRh','userMessage','Current\x20document','1509812OfWMRY','sendRequest','1dLFTlC','5oftOEE','push','hasError','connector','content','842082pppUmI','actionName','1545324LPQdaq','html','TEXT','executeAction','editor','createReply','replyCreated','executeCustomAction','53048TaYCiY','fire','48ETUgEU','1083537nEnOgL','getDocumentContext','model','current-document'];_0x26c6=function(){return _0x116d5d;};return _0x26c6();}function _0x49d0(_0x5b304f,_0x952e3e){const _0x26c603=_0x26c6();return _0x49d0=function(_0x49d098,_0x34ce70){_0x49d098=_0x49d098-0x1ab;let _0x24ab06=_0x26c603[_0x49d098];return _0x24ab06;},_0x49d0(_0x5b304f,_0x952e3e);}export class AIActionsInteraction extends _0x382ca7{[_0x4271e8(0x1b1)];[_0x4271e8(0x1c3)];[_0x4271e8(0x1b3)];[_0x4271e8(0x1c4)];[_0x4271e8(0x1c9)];[_0x4271e8(0x1c1)];[_0x4271e8(0x1af)]=!0x1;constructor(_0x1339c0){const _0x520005=_0x4271e8;super(_0x1339c0),this[_0x520005(0x1b1)]=_0x1339c0[_0x520005(0x1b1)],this[_0x520005(0x1c3)]=_0x1339c0[_0x520005(0x1c3)],this[_0x520005(0x1b3)]=_0x1339c0[_0x520005(0x1b3)],this[_0x520005(0x1c4)]=_0x1339c0[_0x520005(0x1c4)],this[_0x520005(0x1c9)]=_0x1339c0[_0x520005(0x1c9)],this[_0x520005(0x1c1)]=_0x1339c0[_0x520005(0x1c1)];}async[_0x4271e8(0x1ab)](){const _0x163a71=_0x4271e8;return this[_0x163a71(0x1b3)]?this[_0x163a71(0x1b0)][_0x163a71(0x1b7)]({'content':this[_0x163a71(0x1b1)],'actionName':this[_0x163a71(0x1b3)],'args':this[_0x163a71(0x1c4)]}):this[_0x163a71(0x1b0)][_0x163a71(0x1bb)]({'content':this[_0x163a71(0x1b1)],'message':this[_0x163a71(0x1c9)],'model':this[_0x163a71(0x1c1)],'outputFormat':_0x163a71(0x1b5)});}[_0x4271e8(0x1c0)](){const _0x5072b6=_0x4271e8;return{'type':_0xcb19c2[_0x5072b6(0x1b6)],'content':this[_0x5072b6(0x1b1)],'version':this[_0x5072b6(0x1c3)],'label':_0x5072b6(0x1ca),'uiId':_0x5072b6(0x1c2)};}[_0x4271e8(0x1b9)](_0x4bef40){const _0x2544b9=_0x4271e8,_0x31d5c7=new _0x5b16f8({'editor':this[_0x2544b9(0x1b8)],'documentContextContent':this[_0x2544b9(0x1b1)],..._0x4bef40});return this[_0x2544b9(0x1c7)][_0x2544b9(0x1ae)](_0x31d5c7),_0x31d5c7[_0x2544b9(0x1c5)](..._0x55acf0)['to'](this),this[_0x2544b9(0x1bd)](_0x2544b9(0x1ba),_0x31d5c7),_0x31d5c7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27a7b8=_0x5a34;(function(_0x4e0546,_0x4a180){const _0x4367cf=_0x5a34,_0xe11b2f=_0x4e0546();while(!![]){try{const _0x22d2c8=parseInt(_0x4367cf(0xb7))/0x1+parseInt(_0x4367cf(0xd0))/0x2*(-parseInt(_0x4367cf(0xc3))/0x3)+parseInt(_0x4367cf(0xb6))/0x4*(-parseInt(_0x4367cf(0xbb))/0x5)+parseInt(_0x4367cf(0xbd))/0x6+parseInt(_0x4367cf(0xcd))/0x7+parseInt(_0x4367cf(0xb9))/0x8*(parseInt(_0x4367cf(0xbe))/0x9)+-parseInt(_0x4367cf(0xc6))/0xa;if(_0x22d2c8===_0x4a180)break;else _0xe11b2f['push'](_0xe11b2f['shift']());}catch(_0x36627c){_0xe11b2f['push'](_0xe11b2f['shift']());}}}(_0x597d,0xc9fa5));import{AIReply as _0x1dcf04}from'../../aicore/model/aireply.js';import{getAttribute as _0x5ebb21}from'../../aicore/utils/htmlparser.js';import{uid as _0x1e0b93}from'ckeditor5/src/utils.js';import{diffArrays as _0x3eed02}from'diff';function _0x5a34(_0xc60f4,_0x436d08){const _0x597d2e=_0x597d();return _0x5a34=function(_0x5a3449,_0x8570f3){_0x5a3449=_0x5a3449-0xb3;let _0x112deb=_0x597d2e[_0x5a3449];return _0x112deb;},_0x5a34(_0xc60f4,_0x436d08);}export class AIActionsReply extends _0x1dcf04{[_0x27a7b8(0xc1)](){const _0x2207fd=_0x27a7b8;if(this[_0x2207fd(0xcc)]=this[_0x2207fd(0xbf)][_0x2207fd(0xc5)](!0x0),0x0==this[_0x2207fd(0xcc)][_0x2207fd(0xca)][_0x2207fd(0xc9)])return void(this[_0x2207fd(0xd1)]=[]);const _0x373eed=this[_0x2207fd(0xc8)][_0x2207fd(0xb4)][_0x2207fd(0xc0)](_0x1f1a1d=>({'node':_0x1f1a1d,'id':_0x5ebb21(_0x1f1a1d,_0x2207fd(0xb3))})),_0x5dc4ff=this[_0x2207fd(0xcc)][_0x2207fd(0xb4)][_0x2207fd(0xc0)](_0x4eb77c=>({'node':_0x4eb77c,'id':_0x5ebb21(_0x4eb77c,_0x2207fd(0xb3))||_0x1e0b93()})),_0x314e58=_0x3eed02(_0x373eed,_0x5dc4ff,{'comparator':(_0x4d05f2,_0x437296)=>_0x4d05f2['id']==_0x437296['id'],'oneChangePerToken':!0x0});if(!this[_0x2207fd(0xc4)]){for(;_0x314e58[_0x2207fd(0xc9)]&&_0x314e58[_0x314e58[_0x2207fd(0xc9)]-0x1][_0x2207fd(0xba)];)_0x314e58[_0x2207fd(0xc7)]();}const _0x3e6129=_0x314e58[_0x2207fd(0xc0)](_0x12a26d=>{const _0x56b595=_0x2207fd,_0x5b7678=_0x12a26d[_0x56b595(0xcf)]?_0x56b595(0xb8):_0x12a26d[_0x56b595(0xba)]?_0x56b595(0xba):_0x56b595(0xce);return{'node':_0x12a26d[_0x56b595(0xcb)][0x0][_0x56b595(0xb5)],'type':_0x5b7678,'id':_0x12a26d[_0x56b595(0xcb)][0x0]['id']};});this[_0x2207fd(0xd1)]=[{'changes':_0x3e6129,'state':_0x2207fd(0xc2),'index':0x0}];}[_0x27a7b8(0xbc)](_0x1c4494,_0x105da8){return _0x105da8;}}function _0x597d(){const _0x37c17f=['_getDifferentChangeGroups','1341684hZkblJ','769536oCmsjx','parsedContent','map','updateChangeGroups','pending','184557hlAdUX','isDone','cloneNode','987090sTwCIR','pop','documentContextContent','length','childNodes','value','parsedMergedContent','5209932qAyjbY','modified','added','20UKaFCG','changeGroups','data-id','children','node','187080yuYwgQ','542612ixdiSq','new','16QWcdVe','removed','15Pamdup'];_0x597d=function(){return _0x37c17f;};return _0x597d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x236b24=_0xc93e;function _0xc93e(_0x469106,_0x24204c){var _0x424a17=_0x424a();return _0xc93e=function(_0xc93e81,_0x3c0e1e){_0xc93e81=_0xc93e81-0x135;var _0x7ae043=_0x424a17[_0xc93e81];return _0x7ae043;},_0xc93e(_0x469106,_0x24204c);}(function(_0x5aa12c,_0x5b1971){var _0x1cabd7=_0xc93e,_0x4f4be6=_0x5aa12c();while(!![]){try{var _0x2a5ce6=-parseInt(_0x1cabd7(0x142))/0x1+parseInt(_0x1cabd7(0x145))/0x2+parseInt(_0x1cabd7(0x137))/0x3*(-parseInt(_0x1cabd7(0x13a))/0x4)+parseInt(_0x1cabd7(0x147))/0x5*(parseInt(_0x1cabd7(0x139))/0x6)+-parseInt(_0x1cabd7(0x140))/0x7*(parseInt(_0x1cabd7(0x146))/0x8)+parseInt(_0x1cabd7(0x13f))/0x9*(parseInt(_0x1cabd7(0x13c))/0xa)+parseInt(_0x1cabd7(0x144))/0xb;if(_0x2a5ce6===_0x5b1971)break;else _0x4f4be6['push'](_0x4f4be6['shift']());}catch(_0xd1e83c){_0x4f4be6['push'](_0x4f4be6['shift']());}}}(_0x424a,0xd58ee));import{Plugin as _0x1562a3}from'ckeditor5/src/core.js';import{CKEditorError as _0x17b740}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x1562a3{static get[_0x236b24(0x138)](){var _0x48282e=_0x236b24;return _0x48282e(0x13e);}static get[_0x236b24(0x143)](){return!0x0;}static get[_0x236b24(0x141)](){return!0x0;}[_0x236b24(0x148)](){var _0x1aba6e=_0x236b24;if(!this[_0x1aba6e(0x13d)])throw new _0x17b740(_0x1aba6e(0x136),null);}}function _0x424a(){var _0x12eca1=['name','aiadapter-text-adapter-not-set','9WkotLU','pluginName','141546wsYltU','285788YnzzPW','AIRequestError','10CQUCGb','textAdapter','AIAdapter','8094699TwHtlr','805581MmQrqh','isPremiumPlugin','1293621YBCHwp','isOfficialPlugin','24322914CngJhl','79482XTKIKr','96ItTxYb','130fHZhzH','afterInit'];_0x424a=function(){return _0x12eca1;};return _0x424a();}export class AIRequestError extends Error{constructor(_0xb56959){var _0x4bdb85=_0x236b24;super(_0xb56959),this[_0x4bdb85(0x135)]=_0x4bdb85(0x13b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x789e1f=_0xac87;(function(_0x164cb8,_0x12661b){const _0x2f8154=_0xac87,_0x3e97b3=_0x164cb8();while(!![]){try{const _0x4d21b3=parseInt(_0x2f8154(0xa4))/0x1+parseInt(_0x2f8154(0x9a))/0x2*(-parseInt(_0x2f8154(0xb5))/0x3)+parseInt(_0x2f8154(0x98))/0x4+parseInt(_0x2f8154(0xa1))/0x5*(-parseInt(_0x2f8154(0xa7))/0x6)+parseInt(_0x2f8154(0xab))/0x7*(-parseInt(_0x2f8154(0xb9))/0x8)+parseInt(_0x2f8154(0x99))/0x9*(parseInt(_0x2f8154(0xa3))/0xa)+-parseInt(_0x2f8154(0xaf))/0xb*(-parseInt(_0x2f8154(0xb0))/0xc);if(_0x4d21b3===_0x12661b)break;else _0x3e97b3['push'](_0x3e97b3['shift']());}catch(_0x4f6dfd){_0x3e97b3['push'](_0x3e97b3['shift']());}}}(_0x1318,0x65cb3));function _0xac87(_0x50c0f7,_0x46fcbc){const _0x1318d8=_0x1318();return _0xac87=function(_0xac8765,_0x2038d1){_0xac8765=_0xac8765-0x95;let _0x1c19a2=_0x1318d8[_0xac8765];return _0x1c19a2;},_0xac87(_0x50c0f7,_0x46fcbc);}import{Plugin as _0x591707}from'ckeditor5/src/core.js';import{CKEditorError as _0x11178d}from'ckeditor5/src/utils.js';import{AIAdapter as _0x3b5e1f,AIRequestError as _0x479999}from'./aiadapter.js';import{getTranslation as _0x461e8a}from'../utils/common-translations.js';function _0x1318(){const _0x1f8ab6=['192968seeTxu','name','locale','signal','error','catch','385044fPlxKH','18yTyeJy','20bGUwJm','textAdapter','assign','sendRequest','abortController','get','makeRequest','5JqMcHu','application/json','177880toFLvt','233666ZHZWeI','abort','_prepareRequestHeaders','3025734GYwvTA','plugins','object','AbortError','182RyHMVt','init','AI_ERROR_GET_PARAMETERS','_prepareRequestParameters','18425209HGizjW','12PXWulU','reject','resolve','aitextadapter-send-request-failed','AI_ERROR_GET_HEADERS','147642XmjEpQ','editor','requires','aborted'];_0x1318=function(){return _0x1f8ab6;};return _0x1318();}export class AITextAdapter extends _0x591707{[_0x789e1f(0x9e)];static get[_0x789e1f(0xb7)](){return[_0x3b5e1f];}constructor(_0x5518dc){const _0x5ddc77=_0x789e1f;super(_0x5518dc),this[_0x5ddc77(0x9e)]=new AbortController();}[_0x789e1f(0xac)](){const _0x295c24=_0x789e1f;this[_0x295c24(0xb6)][_0x295c24(0xa8)][_0x295c24(0x9f)](_0x3b5e1f)[_0x295c24(0x9b)]=this;}[_0x789e1f(0xa5)](){const _0x146733=_0x789e1f;this[_0x146733(0x9e)][_0x146733(0x95)][_0x146733(0xb8)]||(this[_0x146733(0x9e)][_0x146733(0xa5)](),this[_0x146733(0x9e)]=new AbortController());}async[_0x789e1f(0xa0)](_0x50116d){const _0x520155=_0x789e1f;return this[_0x520155(0x9d)](_0x50116d)[_0x520155(0x97)](_0x336de0=>{const _0x279004=_0x520155;if(_0x336de0 instanceof _0x479999)return Promise[_0x279004(0xb1)](_0x336de0);if(_0x279004(0xaa)==_0x336de0[_0x279004(0xba)])return Promise[_0x279004(0xb2)]();throw console[_0x279004(0x96)](_0x336de0),new _0x11178d(_0x279004(0xb3),null);});}async[_0x789e1f(0xa6)](_0x59cb6f,_0x29be94){const _0x158d7f=_0x789e1f,_0x13f7ba=this[_0x158d7f(0xb6)][_0x158d7f(0xbb)],_0x4eb1cf={'Content-Type':_0x158d7f(0xa2)};if(_0x158d7f(0xa9)==typeof _0x59cb6f)Object[_0x158d7f(0x9c)](_0x4eb1cf,_0x59cb6f);else{if(_0x59cb6f)try{const _0x81021b=await _0x59cb6f(_0x29be94);Object[_0x158d7f(0x9c)](_0x4eb1cf,_0x81021b);}catch{return Promise[_0x158d7f(0xb1)](new _0x479999(_0x461e8a(_0x13f7ba,_0x158d7f(0xb4))));}}return _0x4eb1cf;}async[_0x789e1f(0xae)](_0x521abc,_0x1a080c){const _0x289e7b=_0x789e1f,_0x4ab2c0=this[_0x289e7b(0xb6)][_0x289e7b(0xbb)];if(_0x289e7b(0xa9)==typeof _0x521abc)return _0x521abc;try{return await _0x521abc(_0x1a080c);}catch{return Promise[_0x289e7b(0xb1)](new _0x479999(_0x461e8a(_0x4ab2c0,_0x289e7b(0xad))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e5dde=_0x1683;(function(_0x4e573a,_0x8574c){const _0x4d281f=_0x1683,_0x1aa495=_0x4e573a();while(!![]){try{const _0x6f1f81=-parseInt(_0x4d281f(0xcf))/0x1*(-parseInt(_0x4d281f(0xab))/0x2)+-parseInt(_0x4d281f(0xa3))/0x3+-parseInt(_0x4d281f(0xaa))/0x4+-parseInt(_0x4d281f(0xa1))/0x5+-parseInt(_0x4d281f(0xd4))/0x6*(parseInt(_0x4d281f(0x9d))/0x7)+-parseInt(_0x4d281f(0xc2))/0x8*(parseInt(_0x4d281f(0xdb))/0x9)+parseInt(_0x4d281f(0xa4))/0xa*(parseInt(_0x4d281f(0xd1))/0xb);if(_0x6f1f81===_0x8574c)break;else _0x1aa495['push'](_0x1aa495['shift']());}catch(_0x2fb2ad){_0x1aa495['push'](_0x1aa495['shift']());}}}(_0x17cf,0x4de8e));import{AITextAdapter as _0x4e1312}from'./aitextadapter.js';import{AIRequestError as _0x2194d7}from'./aiadapter.js';function _0x1683(_0x5b0c29,_0x1683d6){const _0x17cfc5=_0x17cf();return _0x1683=function(_0x168381,_0xdd3d26){_0x168381=_0x168381-0x9a;let _0x4e85ba=_0x17cfc5[_0x168381];return _0x4e85ba;},_0x1683(_0x5b0c29,_0x1683d6);}import{BedrockRuntimeClient as _0x2d48b7,InvokeModelCommand as _0x2cb0c0,InvokeModelWithResponseStreamCommand as _0x3bda19}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x19ee8b}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x4e1312{[_0x4e5dde(0xd6)];[_0x4e5dde(0xe9)];[_0x4e5dde(0x9b)];[_0x4e5dde(0xad)];static get[_0x4e5dde(0xa5)](){const _0x46d214=_0x4e5dde;return _0x46d214(0xea);}constructor(_0x3a17ba){const _0x4976a8=_0x4e5dde;super(_0x3a17ba),_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xbb))||_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xe6)](_0x4976a8(0xbb),{'model':_0x4976a8(0xb7),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4976a8(0xb0),'stream':!0x0}),this[_0x4976a8(0xd6)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xb9)),this[_0x4976a8(0x9b)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xc6)),this[_0x4976a8(0xe9)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xcb)),this[_0x4976a8(0xad)]=_0x3a17ba[_0x4976a8(0xa7)][_0x4976a8(0xba)](_0x4976a8(0xbb));}async[_0x4e5dde(0xb6)]({query:_0x18db87,context:_0x3c2e51,onData:_0x5db3fb,actionId:_0x481b4b}){const _0xb42102=_0x4e5dde,{model:_0x45f46f,stream:_0x247536,..._0x475605}=await this[_0xb42102(0xe4)](this[_0xb42102(0xad)],_0x481b4b),_0xc10a2a={'prompt':await this[_0xb42102(0xae)](_0x18db87,_0x3c2e51,_0x45f46f,_0x481b4b),..._0x475605};this[_0xb42102(0xd6)]?await this[_0xb42102(0xcc)](_0xc10a2a,_0x45f46f,_0x247536,_0x5db3fb,_0x481b4b):await this[_0xb42102(0xa8)](_0xc10a2a,_0x45f46f,_0x247536,_0x5db3fb);}async[_0x4e5dde(0xae)](_0x2df570,_0x5bf43c,_0x4f7bc1,_0x32c84e){const _0x4f6ce3=_0x4e5dde;let _0x29c85b,_0x36a1cd;return _0x5bf43c?(_0x29c85b=_0x4f6ce3(0xb3),_0x36a1cd=_0x4f6ce3(0xb8)+_0x2df570+_0x4f6ce3(0xca)+_0x5bf43c):(_0x29c85b=_0x4f6ce3(0xb4),_0x36a1cd=_0x2df570),_0x4f6ce3(0xc7)==this[_0x4f6ce3(0xdd)](_0x4f7bc1)?_0x4f6ce3(0xbe)+_0x29c85b+_0x4f6ce3(0xcd)+_0x36a1cd+_0x4f6ce3(0xdc):_0x4f6ce3(0xc5)+_0x29c85b+'\x0a'+_0x36a1cd+_0x4f6ce3(0xc1);}[_0x4e5dde(0xdd)](_0x350076){const _0x286fa9=_0x4e5dde;if(/^anthropic\.claude/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0xb1);if(/^ai21\.j2/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0xb2);if(/^cohere\.command/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0x9e);if(/^meta\.llama/[_0x286fa9(0x9c)](_0x350076))return _0x286fa9(0xc7);throw new _0x2194d7(_0x19ee8b(this[_0x286fa9(0xa0)][_0x286fa9(0xce)],_0x286fa9(0xb5),_0x350076));}async[_0x4e5dde(0xcc)](_0x45344a,_0xff914,_0x5cdc5e,_0x48db8a,_0x3514af){const _0x46e231=_0x4e5dde,_0x4493da={'method':_0x46e231(0xdf),'headers':await this[_0x46e231(0xd2)](this[_0x46e231(0xe9)],_0x3514af),'body':JSON[_0x46e231(0xd0)]({..._0x45344a,'model':_0xff914,'stream':_0x5cdc5e}),'signal':this[_0x46e231(0xe1)][_0x46e231(0xe3)]},_0x263812=await fetch(this[_0x46e231(0xd6)],_0x4493da);_0x5cdc5e?await this[_0x46e231(0xbd)](_0x263812,_0xff914,_0x48db8a):await this[_0x46e231(0xbf)](_0x263812,_0xff914,_0x48db8a);}async[_0x4e5dde(0xa8)](_0x1d4bd8,_0x440bcd,_0x3077c3,_0x366c75){const _0x191050=_0x4e5dde,_0xe3f83a=new _0x2d48b7(this[_0x191050(0x9b)]),_0x5e1839={'body':JSON[_0x191050(0xd0)](_0x1d4bd8),'contentType':_0x191050(0xe5),'accept':_0x191050(0xe5),'modelId':_0x440bcd};let _0x47e6e7;if(_0x3077c3){const _0x4f3369=new _0x3bda19(_0x5e1839);_0x47e6e7=await _0xe3f83a[_0x191050(0x9a)](_0x4f3369,{'abortSignal':this[_0x191050(0xe1)][_0x191050(0xe3)]}),await this[_0x191050(0xe2)](_0x47e6e7,_0x440bcd,_0x366c75);}else{const _0x4b77e7=new _0x2cb0c0(_0x5e1839);_0x47e6e7=await _0xe3f83a[_0x191050(0x9a)](_0x4b77e7,{'abortSignal':this[_0x191050(0xe1)][_0x191050(0xe3)]}),await this[_0x191050(0xbf)](_0x47e6e7,_0x440bcd,_0x366c75);}}async[_0x4e5dde(0xe2)](_0x2656e3,_0x4c656d,_0x5db7c1){const _0xfeed69=_0x4e5dde,_0x2dda97=_0x2656e3[_0xfeed69(0xe8)],_0x1fce87=new TextDecoder(_0xfeed69(0xc3));let _0x33a17d='';for await(const _0x799185 of _0x2dda97)if(_0x799185[_0xfeed69(0xc0)]){const _0x5b6c9f=_0x1fce87[_0xfeed69(0xaf)](_0x799185[_0xfeed69(0xc0)][_0xfeed69(0xda)]),_0x2e021e=JSON[_0xfeed69(0xa2)](_0x5b6c9f);_0x33a17d+=this[_0xfeed69(0xbc)](_0x2e021e,_0x4c656d),_0x5db7c1(_0x33a17d);}return Promise[_0xfeed69(0xc8)]();}async[_0x4e5dde(0xbd)](_0x50b12d,_0x14a8fc,_0x32a267){const _0xa79d85=_0x4e5dde,_0x4c1e02=_0x50b12d[_0xa79d85(0xe8)],_0x43ab7b=new TextDecoder(_0xa79d85(0xc3)),_0x3613e2=_0x4c1e02[_0xa79d85(0xe0)]();let _0x4fc4f1='',_0x25f132='',_0x11aacf=!0x1;for(;!_0x11aacf;){const {done:_0x551e7f,value:_0x1a6834}=await _0x3613e2[_0xa79d85(0xd5)]();if(_0x11aacf=_0x551e7f,_0x11aacf)break;const _0x2528c2=(_0x4fc4f1+_0x43ab7b[_0xa79d85(0xaf)](_0x1a6834))[_0xa79d85(0xd7)]('\x0a')[_0xa79d85(0xc4)](_0x23b129=>{const _0x32910c=_0xa79d85;try{return _0x4fc4f1='',JSON[_0x32910c(0xa2)](_0x23b129);}catch{return _0x4fc4f1=_0x23b129,null;}})[_0xa79d85(0xd9)](_0x28a7db=>null!==_0x28a7db);_0x2528c2[_0xa79d85(0xd8)]&&(_0x25f132+=_0x2528c2[_0xa79d85(0xc4)](_0x43b99f=>this[_0xa79d85(0xbc)](_0x43b99f,_0x14a8fc))[_0xa79d85(0x9f)](''),_0x32a267(_0x25f132));}return Promise[_0xa79d85(0xc8)]();}async[_0x4e5dde(0xbf)](_0x5749de,_0x5e0855,_0x217228){const _0x45887d=_0x4e5dde;let _0x3a0fd2;return _0x3a0fd2=_0x5749de instanceof Response?await _0x5749de[_0x45887d(0xa9)]():JSON[_0x45887d(0xa2)](new TextDecoder(_0x45887d(0xc3))[_0x45887d(0xaf)](_0x5749de[_0x45887d(0xe8)])),(_0x217228(this[_0x45887d(0xbc)](_0x3a0fd2,_0x5e0855)),Promise[_0x45887d(0xc8)]());}[_0x4e5dde(0xbc)](_0x16a389,_0x569ec3){const _0x403a6c=_0x4e5dde;switch(this[_0x403a6c(0xdd)](_0x569ec3)){case _0x403a6c(0xb1):return _0x16a389[_0x403a6c(0xac)];case _0x403a6c(0xb2):return _0x16a389[_0x403a6c(0xd3)][0x0][_0x403a6c(0xe7)][_0x403a6c(0xa6)];case _0x403a6c(0x9e):return _0x16a389[_0x403a6c(0xde)][0x0][_0x403a6c(0xa6)];case _0x403a6c(0xc7):return _0x16a389[_0x403a6c(0xc9)];}}}function _0x17cf(){const _0x2861d3=['getReader','abortController','_readAsyncIterableResponse','signal','_prepareRequestParameters','application/json','define','data','body','_requestHeaders','AWSTextAdapter','send','_bedrockClientConfig','test','14iwdVtV','cohere.command','join','editor','3147750jUVHhI','parse','1171944uujqbx','30yjIIuD','pluginName','text','config','_processAWSRequest','json','2142224bBAxKJ','406UnvMWw','completion','_requestParameters','preparePrompt','decode','bedrock-2023-05-31','anthropic.claude','ai21.j2','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.','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.','AI_ERROR_UNSUPPORTED_MODEL','sendRequest','anthropic.claude-v2','Instruction:\x0a','ai.assistant.adapter.aws.apiUrl','get','ai.assistant.adapter.aws.requestParameters','_getGeneratedText','_readStreamableResponse','<<SYS>>\x0a','_readStaticResponse','chunk','\x0a\x0aAssistant:','5464WVriHE','utf-8','map','Human:\x0a','ai.assistant.adapter.aws.bedrockClientConfig','meta.llama','resolve','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.assistant.adapter.aws.requestHeaders','_processProxyRequest','\x0a<</SYS>>\x0a[INST]\x0a','locale','889zGjlIO','stringify','9970818nJpUjQ','_prepareRequestHeaders','completions','1548222rZDtRB','read','_apiUrl','split','length','filter','bytes','6705eAvDjP','\x0a[/INST]','getModelFamily','generations','POST'];_0x17cf=function(){return _0x2861d3;};return _0x17cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5e79(_0x5e98fc,_0x4d9010){const _0x55a711=_0x55a7();return _0x5e79=function(_0x5e79f9,_0x28a49d){_0x5e79f9=_0x5e79f9-0x119;let _0x532657=_0x55a711[_0x5e79f9];return _0x532657;},_0x5e79(_0x5e98fc,_0x4d9010);}const _0x47978c=_0x5e79;(function(_0x5a6c59,_0x1cfdec){const _0x4391a7=_0x5e79,_0x21661c=_0x5a6c59();while(!![]){try{const _0x3332a0=parseInt(_0x4391a7(0x125))/0x1*(parseInt(_0x4391a7(0x123))/0x2)+-parseInt(_0x4391a7(0x14b))/0x3*(parseInt(_0x4391a7(0x135))/0x4)+-parseInt(_0x4391a7(0x12c))/0x5+-parseInt(_0x4391a7(0x140))/0x6*(-parseInt(_0x4391a7(0x149))/0x7)+parseInt(_0x4391a7(0x158))/0x8*(-parseInt(_0x4391a7(0x133))/0x9)+-parseInt(_0x4391a7(0x141))/0xa+parseInt(_0x4391a7(0x12a))/0xb;if(_0x3332a0===_0x1cfdec)break;else _0x21661c['push'](_0x21661c['shift']());}catch(_0x22eb2c){_0x21661c['push'](_0x21661c['shift']());}}}(_0x55a7,0x692e7));function _0x55a7(){const _0x262ed5=['_apiUrl','split','https://api.openai.com/v1/chat/completions','ai.assistant.adapter.openAI.apiUrl','read','user','POST','stringify','ai.assistant.adapter.openAI.requestHeaders','_cleanUpData','json','abortController','locale','6BDjcmj','length','203271evcmql','choices','content','system','_prepareRequestParameters','9662543iuVidt','reject','915915KEkWKB','define','text','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.','AI_ERROR_CONTEXT_LENGTH','OpenAITextAdapter','sendRequest','207SlIOzZ','pluginName','127948UYaDiG','join','_isBufferIncomplete','prepareMessages','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.','map','_requestHeaders','message','signal','data:\x20','getReader','3993342xtNMQc','6510780vyEtQv','decode','replace','_readStreamableResponse','resolve','config','_requestParameters','_prepareRequestHeaders','7oHxrjc','includes','45WZJVao','stream','[DONE]','gpt-4o','Instruction:\x0a','filter','editor','context_length_exceeded','body','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','AI_ERROR_MODERATION','get','parse','142224jUWFYu','ai.assistant.adapter.openAI.requestParameters','Moderation','delta','_readStaticResponse'];_0x55a7=function(){return _0x262ed5;};return _0x55a7();}import{AITextAdapter as _0x493300}from'./aitextadapter.js';import{AIRequestError as _0x259097}from'./aiadapter.js';import{getTranslation as _0x366300}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x493300{[_0x47978c(0x15d)];[_0x47978c(0x13b)];[_0x47978c(0x147)];static get[_0x47978c(0x134)](){const _0x1175de=_0x47978c;return _0x1175de(0x131);}constructor(_0x175357){const _0x13e243=_0x47978c;super(_0x175357),_0x175357[_0x13e243(0x146)][_0x13e243(0x12d)](_0x13e243(0x119),_0x13e243(0x15f)),_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x159))||_0x175357[_0x13e243(0x146)][_0x13e243(0x12d)](_0x13e243(0x159),{'model':_0x13e243(0x14e),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x13e243(0x15d)]=_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x119)),this[_0x13e243(0x13b)]=_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x11e))||{},this[_0x13e243(0x147)]=_0x175357[_0x13e243(0x146)][_0x13e243(0x156)](_0x13e243(0x159));}async[_0x47978c(0x132)]({query:_0x2ad689,context:_0x5dda52,onData:_0x1f0872,actionId:_0x38bdbc}){const _0x41e06d=_0x47978c,_0x2f115a=this[_0x41e06d(0x151)][_0x41e06d(0x122)],_0x73ae82=await this[_0x41e06d(0x138)](_0x2ad689,_0x5dda52,_0x38bdbc),_0x3ba8ca=await this[_0x41e06d(0x148)](this[_0x41e06d(0x13b)],_0x38bdbc),_0xb7ea3f=await this[_0x41e06d(0x129)](this[_0x41e06d(0x147)],_0x38bdbc),_0x2090bc={'messages':_0x73ae82,..._0xb7ea3f},_0x5b05a7={'method':_0x41e06d(0x11c),'headers':_0x3ba8ca,'body':JSON[_0x41e06d(0x11d)](_0x2090bc),'signal':this[_0x41e06d(0x121)][_0x41e06d(0x13d)]},_0x214ac3=await fetch(this[_0x41e06d(0x15d)],_0x5b05a7);if(_0x214ac3['ok'])return _0xb7ea3f[_0x41e06d(0x14c)]?await this[_0x41e06d(0x144)](_0x214ac3,_0x1f0872):await this[_0x41e06d(0x15c)](_0x214ac3,_0x1f0872),Promise[_0x41e06d(0x145)]();{const _0x522b3e=await _0x214ac3[_0x41e06d(0x12e)]();return _0x522b3e[_0x41e06d(0x14a)](_0x41e06d(0x152))?Promise[_0x41e06d(0x12b)](new _0x259097(_0x366300(_0x2f115a,_0x41e06d(0x130)))):_0x522b3e[_0x41e06d(0x14a)](_0x41e06d(0x15a))?Promise[_0x41e06d(0x12b)](new _0x259097(_0x366300(_0x2f115a,_0x41e06d(0x155)))):Promise[_0x41e06d(0x12b)](new Error(_0x522b3e));}}async[_0x47978c(0x138)](_0x46ede7,_0x1ba256,_0x3488fa){const _0x4d0bb5=_0x47978c;let _0x1bac53,_0x4f462a;return _0x1ba256?(_0x1bac53=_0x4d0bb5(0x139),_0x4f462a=_0x4d0bb5(0x14f)+_0x46ede7+_0x4d0bb5(0x154)+_0x1ba256):(_0x1bac53=_0x4d0bb5(0x12f),_0x4f462a=_0x46ede7),[{'role':_0x4d0bb5(0x128),'content':_0x1bac53},{'role':_0x4d0bb5(0x11b),'content':_0x4f462a}];}async[_0x47978c(0x144)](_0x4cf2a1,_0x158efa){const _0x20a5f8=_0x47978c,_0x3a4be3=_0x4cf2a1[_0x20a5f8(0x153)][_0x20a5f8(0x13f)](),_0x70df95=new TextDecoder();let _0xb0fbcc='',_0x20684c='',_0x4d6ce0='',_0x3e00b2=!0x1;for(;!_0x3e00b2;){const {done:_0x23594c,value:_0xffde36}=await _0x3a4be3[_0x20a5f8(0x11a)](),_0x537acf=_0xb0fbcc+_0x70df95[_0x20a5f8(0x142)](_0xffde36);let _0x5dd999='';_0x3e00b2=_0x23594c;try{_0x5dd999=this[_0x20a5f8(0x11f)](_0x537acf),_0xb0fbcc='';}catch{_0xb0fbcc=_0x537acf;continue;}_0x20684c+=_0x5dd999,!_0x3e00b2&&this[_0x20a5f8(0x137)](_0x20684c)||_0x20684c&&(_0x4d6ce0+=_0x20684c,_0x20684c='',_0x158efa(_0x4d6ce0));}return Promise[_0x20a5f8(0x145)]();}async[_0x47978c(0x15c)](_0x147526,_0x31a7eb){const _0x3f8dd3=_0x47978c;return _0x31a7eb((await _0x147526[_0x3f8dd3(0x120)]())[_0x3f8dd3(0x126)][0x0][_0x3f8dd3(0x13c)][_0x3f8dd3(0x127)]),Promise[_0x3f8dd3(0x145)]();}[_0x47978c(0x137)](_0x52f9e6){const _0x503874=_0x47978c,_0xa51189=_0x52f9e6[_0x503874(0x15e)]('<')[_0x503874(0x124)]!==_0x52f9e6[_0x503874(0x15e)]('>')[_0x503874(0x124)],_0x30b4cc=_0x52f9e6[_0x503874(0x124)]<0x1e;return _0xa51189&&_0x30b4cc;}[_0x47978c(0x11f)](_0xb7033c){const _0x386c9b=_0x47978c;return _0xb7033c[_0x386c9b(0x15e)](/\n(?![^{]*\})/g)[_0x386c9b(0x13a)](_0x5d6618=>_0x5d6618[_0x386c9b(0x143)](_0x386c9b(0x13e),''))[_0x386c9b(0x150)](_0x487202=>_0x487202&&_0x487202[_0x386c9b(0x124)]>0x0&&_0x386c9b(0x14d)!==_0x487202)[_0x386c9b(0x13a)](_0x328ff7=>{const _0x1f361f=_0x386c9b,{choices:_0x5032c1}=JSON[_0x1f361f(0x157)](_0x328ff7);if(_0x5032c1[0x0]?.[_0x1f361f(0x15b)]?.[_0x1f361f(0x127)])return _0x5032c1[0x0][_0x1f361f(0x15b)][_0x1f361f(0x127)];})[_0x386c9b(0x150)](_0x24855d=>_0x24855d)[_0x386c9b(0x136)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d9218=_0x3798;(function(_0x4f8bd7,_0x29548b){const _0x109053=_0x3798,_0x48e810=_0x4f8bd7();while(!![]){try{const _0x12846c=-parseInt(_0x109053(0x1f3))/0x1*(-parseInt(_0x109053(0x1ff))/0x2)+parseInt(_0x109053(0x244))/0x3+-parseInt(_0x109053(0x23d))/0x4*(parseInt(_0x109053(0x1fe))/0x5)+-parseInt(_0x109053(0x23a))/0x6+parseInt(_0x109053(0x220))/0x7*(parseInt(_0x109053(0x222))/0x8)+parseInt(_0x109053(0x23e))/0x9*(parseInt(_0x109053(0x248))/0xa)+-parseInt(_0x109053(0x231))/0xb;if(_0x12846c===_0x29548b)break;else _0x48e810['push'](_0x48e810['shift']());}catch(_0x144c08){_0x48e810['push'](_0x48e810['shift']());}}}(_0x5e3c,0xab255));import{Plugin as _0x591572}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x654074}from'./aiassistantui.js';import{AIAssistantEditing as _0x19fe3f}from'./aiassistantediting.js';import{getTranslation as _0x28d518}from'./utils/common-translations.js';function _0x3798(_0x5d8496,_0x4b88e2){const _0x5e3c45=_0x5e3c();return _0x3798=function(_0x379811,_0x5411e9){_0x379811=_0x379811-0x1eb;let _0x372e89=_0x5e3c45[_0x379811];return _0x372e89;},_0x3798(_0x5d8496,_0x4b88e2);}import{normalizeCommandsConfig as _0x4e60f8}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x591572{static get[_0x3d9218(0x1f6)](){return[_0x654074,_0x19fe3f];}static get[_0x3d9218(0x23f)](){const _0x57bcd0=_0x3d9218;return _0x57bcd0(0x21b);}static get[_0x3d9218(0x235)](){return!0x0;}static get[_0x3d9218(0x246)](){return!0x0;}constructor(_0x5e4661){const _0x1dcb22=_0x3d9218;super(_0x5e4661);const _0x376f3e=_0x5e4661[_0x1dcb22(0x252)],_0x3eccb5=_0x5e4661[_0x1dcb22(0x216)];_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x221),!0x0),_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x1ed),getDefaultAICommands(_0x3eccb5)),_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x240),[]),_0x376f3e[_0x1dcb22(0x201)](_0x1dcb22(0x1f8),[]);let _0x3b4015=_0x4e60f8(_0x376f3e[_0x1dcb22(0x1ee)](_0x1dcb22(0x1ed)),_0x3eccb5);const _0x26e482=_0x376f3e[_0x1dcb22(0x1ee)](_0x1dcb22(0x240)),_0x40df7b=_0x376f3e[_0x1dcb22(0x1ee)](_0x1dcb22(0x1f8));_0x26e482[_0x1dcb22(0x255)](_0x27effe=>{const _0x1eb8c7=_0x1dcb22,_0x3d1e4e=_0x3b4015[_0x1eb8c7(0x200)](_0x262242=>_0x262242[_0x1eb8c7(0x20d)]===_0x27effe[_0x1eb8c7(0x20d)]);_0x3d1e4e?_0x3d1e4e[_0x1eb8c7(0x21f)]=_0x3d1e4e[_0x1eb8c7(0x21f)][_0x1eb8c7(0x204)](_0x27effe[_0x1eb8c7(0x21f)]):_0x3b4015[_0x1eb8c7(0x1fc)](_0x27effe);}),_0x3b4015=_0x3b4015[_0x1dcb22(0x238)](_0x294a33=>!_0x40df7b[_0x1dcb22(0x209)](_0x294a33[_0x1dcb22(0x20d)])),_0x3b4015[_0x1dcb22(0x255)](_0x239689=>{const _0x2bd42e=_0x1dcb22;_0x239689[_0x2bd42e(0x21f)]=_0x239689[_0x2bd42e(0x21f)][_0x2bd42e(0x238)](_0x1debcd=>!_0x40df7b[_0x2bd42e(0x209)](_0x1debcd['id']));}),_0x376f3e[_0x1dcb22(0x1f5)](_0x1dcb22(0x1ed),_0x3b4015);}}export function getDefaultAICommands(_0x4eefa6){const _0x1c13c2=_0x3d9218;return[{'groupId':_0x1c13c2(0x219),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x21a)),'commands':[{'id':_0x1c13c2(0x20f),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x24a)),'prompt':_0x1c13c2(0x232)},{'id':_0x1c13c2(0x1f9),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x210)),'prompt':_0x1c13c2(0x20e)},{'id':_0x1c13c2(0x21e),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x21d)),'prompt':_0x1c13c2(0x245)},{'id':_0x1c13c2(0x213),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x254)),'prompt':_0x1c13c2(0x203)}]},{'groupId':_0x1c13c2(0x24d),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x259)),'commands':[{'id':_0x1c13c2(0x257),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x24f)),'prompt':_0x1c13c2(0x20b)},{'id':_0x1c13c2(0x211),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x233)),'prompt':_0x1c13c2(0x23b)}]},{'groupId':_0x1c13c2(0x249),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x230)),'commands':[{'id':_0x1c13c2(0x22b),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x218)),'prompt':_0x1c13c2(0x20a)},{'id':_0x1c13c2(0x25a),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x212)),'prompt':_0x1c13c2(0x215)},{'id':_0x1c13c2(0x253),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x22c)),'prompt':_0x1c13c2(0x22a)},{'id':_0x1c13c2(0x1f1),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1ef)),'prompt':_0x1c13c2(0x24e)},{'id':_0x1c13c2(0x214),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x21c)),'prompt':_0x1c13c2(0x242)}]},{'groupId':_0x1c13c2(0x250),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x229)),'commands':[{'id':_0x1c13c2(0x202),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1ec)),'prompt':_0x1c13c2(0x239)},{'id':_0x1c13c2(0x207),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x24c)),'prompt':_0x1c13c2(0x1f7)},{'id':_0x1c13c2(0x225),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x22d)),'prompt':_0x1c13c2(0x228)},{'id':_0x1c13c2(0x217),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x241)),'prompt':_0x1c13c2(0x208)}]},{'groupId':_0x1c13c2(0x243),'groupLabel':_0x28d518(_0x4eefa6,_0x1c13c2(0x205)),'commands':[{'id':_0x1c13c2(0x23c),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x258)),'prompt':_0x1c13c2(0x236)},{'id':_0x1c13c2(0x206),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x226)),'prompt':_0x1c13c2(0x24b)},{'id':_0x1c13c2(0x234),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x22f)),'prompt':_0x1c13c2(0x1f0)},{'id':_0x1c13c2(0x1f4),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x227)),'prompt':_0x1c13c2(0x224)},{'id':_0x1c13c2(0x1f2),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x20c)),'prompt':_0x1c13c2(0x237)},{'id':_0x1c13c2(0x223),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x247)),'prompt':_0x1c13c2(0x256)},{'id':_0x1c13c2(0x22e),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1eb)),'prompt':_0x1c13c2(0x1fa)},{'id':_0x1c13c2(0x251),'label':_0x28d518(_0x4eefa6,_0x1c13c2(0x1fd)),'prompt':_0x1c13c2(0x1fb)}]}];}function _0x5e3c(){const _0x102f97=['Summarize','changeStyle','translateArabic','config','direct','Simplify\x20language','forEach','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','summarize','English','Generate\x20from\x20selection','casual','Hindi','Business','ai.assistant.commands','get','Confident','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','confident','translateFrench','149VzcuOs','translateGerman','set','requires','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.assistant.removeCommands','makeShorter','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','push','Arabic','5ZLxnEE','7348rChDOY','find','define','business','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','concat','Translate','translateSpanish','legal','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','includes','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','French','groupId','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','improveWriting','Make\x20shorter','continue','Casual','simplifyLanguage','friendly','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','locale','poetic','Professional','editOrReview','Edit\x20or\x20review','AIAssistant','Friendly','Make\x20longer','makeLonger','commands','2023ZREMnw','ai.assistant.preserveComments','37256CbAVLa','translateChinese','Translate\x20the\x20content\x20to\x20German\x20language.','journalism','Spanish','German','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20style','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','professional','Direct','Journalism','translateHindi','Portuguese','Change\x20tone','16983626XmcdLe','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Continue','translatePortuguese','isOfficialPlugin','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','filter','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','1839876CboaKK','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translateEnglish','702524CXpFpK','1431WTlslD','pluginName','ai.assistant.extraCommandGroups','Poetic','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translate','2049198mlgzvs','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','isPremiumPlugin','Simplified\x20Chinese','9490djIEyY','changeTone','Improve\x20writing','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Legal','generate','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'];_0x5e3c=function(){return _0x102f97;};return _0x5e3c();}
|