@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/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/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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/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.1.0-alpha.
|
|
3
|
+
"version": "47.1.0-alpha.1",
|
|
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.1.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.1.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.1.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.1.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.1.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.1.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.1.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.1.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.1.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.1.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.1.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.1.0-alpha.
|
|
44
|
-
"ckeditor5": "47.1.0-alpha.
|
|
45
|
-
"ckeditor5-collaboration": "47.1.0-alpha.
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.1.0-alpha.1",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.1.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.1.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.1.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.1.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.1.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.1.0-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.1.0-alpha.1",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.1.0-alpha.1",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.1.0-alpha.1",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.1.0-alpha.1",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.1.0-alpha.1",
|
|
44
|
+
"ckeditor5": "47.1.0-alpha.1",
|
|
45
|
+
"ckeditor5-collaboration": "47.1.0-alpha.1",
|
|
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 _0x37b474=_0x2e00;(function(_0x1de954,_0x2133e0){const _0x2c87c4=_0x2e00,_0x140d56=_0x1de954();while(!![]){try{const _0x22941a=-parseInt(_0x2c87c4(0x24c))/0x1*(-parseInt(_0x2c87c4(0x28b))/0x2)+parseInt(_0x2c87c4(0x2a0))/0x3+-parseInt(_0x2c87c4(0x29c))/0x4*(-parseInt(_0x2c87c4(0x278))/0x5)+parseInt(_0x2c87c4(0x25d))/0x6*(-parseInt(_0x2c87c4(0x2a8))/0x7)+-parseInt(_0x2c87c4(0x1d6))/0x8*(-parseInt(_0x2c87c4(0x292))/0x9)+-parseInt(_0x2c87c4(0x236))/0xa*(-parseInt(_0x2c87c4(0x29d))/0xb)+-parseInt(_0x2c87c4(0x1fa))/0xc;if(_0x22941a===_0x2133e0)break;else _0x140d56['push'](_0x140d56['shift']());}catch(_0x24d377){_0x140d56['push'](_0x140d56['shift']());}}}(_0x2ea2,0x2b2a5));import{Plugin as _0x5f3f4b}from'ckeditor5/src/core.js';function _0x2e00(_0xa52712,_0x1c7bc1){const _0x2ea20e=_0x2ea2();return _0x2e00=function(_0x2e00e9,_0x285eb8){_0x2e00e9=_0x2e00e9-0x1d5;let _0x3d8207=_0x2ea20e[_0x2e00e9];return _0x3d8207;},_0x2e00(_0xa52712,_0x1c7bc1);}import{AIConnector as _0x619395}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x231b7b}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3bb786,ButtonView as _0x48a1e8,ViewCollection as _0x23e3f0,View as _0xa56c91}from'ckeditor5/src/ui.js';import{AIEditing as _0x3a5f7d}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x15d36a}from'./model/aiactionsinteraction.js';import{first as _0x5c625d}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xcf4659,IconRefresh as _0x5f1450,IconNextArrow as _0xaa83ac,IconPreviousArrow as _0x45c75f,IconShowChangesOff as _0x14c239}from'@ckeditor/ckeditor5-icons';function _0x2ea2(){const _0x1c886c=['14JZwoBK','getChildAtOffset','howMany','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','startsWith','getRanges','_refreshInteraction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getChild','nodeAfter','requires','upsertCustomAIActionRating','push','setChangeGroupState','locale','19976tfVbEF','_clone','_displayInteractionAtIndex','close','stopListening','AIActions','getAncestors','operationsA','clearErrorState','stopInteraction','isOfficialPlugin','set','_navigationNextButton','_clearSuggestionContent','createPositionAt','ck-ai-custom-action-button','_clearLoadingState','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getSelectionAsFragment','areChangesVisible','miniToolbarView','getSelectedTableCells','showChangesButton','_setLoadingState','get','batch','first','ck-ai-navigation-button\x20ck-ai-next-button','abort','error','document','showError','ck-ai-navigation-button\x20ck-ai-previous-button','documentFragment','pluginName','_anchorOperation','3777264TeDFEX','_updateNavigationUI','interactionFinished','replyChangeGroupStateUpdated','pending','getCommonAncestor','execute','catch','applySuggestion','indexOf','AIBalloon','getSelectedContent','AI_ACTIONS_PREVIOUS_INTERACTION','static','icon','remove','end','merge','mainView','setSelection','changeGroups','_children','AI_ACTIONS_GENERIC_ERROR','upsertAIActionRating','bind','replyCreated','documentContextContent','has','isCollapsed','Error\x20refreshing\x20interaction:','getOperations','toggleSuggestionDisplayMode','filter','length','setTemplate','element','range','Error\x20updating\x20content\x20in\x20replyCreated:','_execute','model','_setupCustomViews','_setErrorState','path','_getExecuteDataRegular','dialogClosed','_appendChild','_createInteraction','updateContent','$graveyard','1/1','parent','signal','message','Attribute','start','slice','hasPendingParts','span','selection','createPositionBefore','10JndjbL','actionCallId','toolbar','aiBalloon','_applyOperationsAsSuggestions','change','_navigateToPrevious','addOperation','_clearErrorState','_interactions','position','getRoot','isBusy','_aiConnector','insert','map','_currentInteractionIndex','focus','_interactionParams','hideError','getLimitElement','createPositionAfter','353179BMhhRY','isDocumentOperation','_navigationCounter','_clearInteractionHistory','_navigateToNext','isPremiumPlugin','baseVersion','move','textContent','state','split','includes','open','setErrorState','toData','clearLoading','applyOperation','973338XJkPmn','queueEmptyPromise','clone','nextSibling','_isNavigationNextButtonInView','getDocumentContext','AI_ACTIONS_NEXT_INTERACTION','rename','enqueue','_filterOperationsOutsideRange','showLoader','bodyView','stickiness','getFirstRange','ck-ai-interaction-counter','root','TableSelection','Error\x20updating\x20content\x20during\x20navigation:','editor','replyContentUpdated','_isAbortError','streaming','type','_promiseQueue','data','processor','_applyChanges','5EIWeMu','random','createRange','balloonView','setLoading','schema','add','addNavigationItem','_customViews','replies','_isNavigationPreviousButtonInView','_wrapWithCommonAncestors','isLoading','stop','rejected','AIConnector','_getExecuteDataInTable','hideLoader','sourcePosition','2NGBAtv','_navigationPreviousButton','executeAction','isEnabled','plugins','rootName','hasError','279kUFaPu','reinsert','_isNavigationCounterInView','actionName','history','_interaction','getSelectedBlocks','ai-request-aborted','AI_ACTIONS_TRY_AGAIN','version','46120daSxfK','2761495NmfqQp','TrackChangesEditing','_executeAction','368586KYYiIw','modelToViewWithIds','insertSuggestion','_balloonShowDiff','accepted','_stopInteraction','listenTo','removeNavigationItem'];_0x2ea2=function(){return _0x1c886c;};return _0x2ea2();}import{AIBalloon as _0x5d2518}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x225b5f}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5b224f}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1221a4}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1e4bd2}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1658d3}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x51bb6e,ModelRange as _0x3e478d,ModelPosition as _0x37893e,_DetachOperation as _0x40c249,transformOperationSets as _0xc766e8}from'ckeditor5/src/engine.js';export class AIActions extends _0x5f3f4b{static get[_0x37b474(0x2b2)](){return[_0x619395,_0x3bb786,_0x3a5f7d,_0x5d2518,_0x1e4bd2];}static get[_0x37b474(0x1f8)](){const _0x5731f1=_0x37b474;return _0x5731f1(0x1db);}static get[_0x37b474(0x1e0)](){return!0x0;}static get[_0x37b474(0x251)](){return!0x0;}[_0x37b474(0x243)];[_0x37b474(0x23f)]=[];[_0x37b474(0x246)]=0x0;[_0x37b474(0x248)];[_0x37b474(0x2a3)]=!0x1;[_0x37b474(0x280)]=new _0x23e3f0();[_0x37b474(0x28c)];[_0x37b474(0x24e)];[_0x37b474(0x294)]=!0x1;[_0x37b474(0x1e2)];[_0x37b474(0x282)]=!0x1;[_0x37b474(0x261)]=!0x1;[_0x37b474(0x274)];get[_0x37b474(0x297)](){const _0x34a70f=_0x37b474;return this[_0x34a70f(0x23f)][this[_0x34a70f(0x23f)][_0x34a70f(0x21b)]-0x1];}constructor(_0x4f8f0c){const _0x264e76=_0x37b474;super(_0x4f8f0c),this[_0x264e76(0x243)]=this[_0x264e76(0x26f)][_0x264e76(0x28f)][_0x264e76(0x1ee)](_0x264e76(0x287)),this[_0x264e76(0x1e1)](_0x264e76(0x242),!0x1),this[_0x264e76(0x274)]=new _0x225b5f(),this[_0x264e76(0x222)]();}[_0x37b474(0x1df)](){const _0x1a0a07=_0x37b474;this[_0x1a0a07(0x2a5)]();}async[_0x37b474(0x28d)](_0xaa02b4,_0x4ee68c,_0xd987ef){const _0x42800e=_0x37b474;if(this[_0x42800e(0x26f)][_0x42800e(0x28f)][_0x42800e(0x215)](_0x42800e(0x26d))){if(this[_0x42800e(0x26f)][_0x42800e(0x28f)][_0x42800e(0x1ee)](_0x42800e(0x26d))[_0x42800e(0x1eb)]()){const {modelFragment:_0x16e59e,anchorData:_0x1c5530}=this[_0x42800e(0x288)]();return this[_0x42800e(0x29f)](_0xaa02b4,_0x16e59e,_0x1c5530,_0x4ee68c,_0xd987ef);}}const {modelFragment:_0x3a8ae7,anchorData:_0x1341a3}=this[_0x42800e(0x225)]();return this[_0x42800e(0x29f)](_0xaa02b4,_0x3a8ae7,_0x1341a3,_0x4ee68c,_0xd987ef);}[_0x37b474(0x225)](){const _0x4cbe78=_0x37b474,_0x5b3fcf=this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x1f4)][_0x4cbe78(0x234)];if(_0x5b3fcf[_0x4cbe78(0x216)]){const _0x5b26e7=_0x5c625d(_0x5b3fcf[_0x4cbe78(0x298)]())||this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x27d)][_0x4cbe78(0x24a)](_0x5b3fcf);this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x23b)](_0x1d4b54=>{const _0x9cdfbd=_0x4cbe78;_0x1d4b54[_0x9cdfbd(0x20d)](_0x5b26e7,'in');});}const _0x48240f=_0x5b3fcf[_0x4cbe78(0x26a)](),_0x49a9b2=this[_0x4cbe78(0x283)](this[_0x4cbe78(0x26f)][_0x4cbe78(0x221)][_0x4cbe78(0x205)](_0x5b3fcf),_0x48240f[_0x4cbe78(0x230)],_0x48240f[_0x4cbe78(0x20a)]),_0x462e9a=_0x5b3fcf[_0x4cbe78(0x26a)]()[_0x4cbe78(0x230)],_0x41046f=new Map();let _0x406369=_0x49a9b2;for(let _0x1cce72=0x0;_0x1cce72<_0x462e9a[_0x4cbe78(0x224)][_0x4cbe78(0x21b)];_0x1cce72++)_0x41046f[_0x4cbe78(0x1e1)](_0x406369,_0x462e9a[_0x4cbe78(0x224)][_0x1cce72]),_0x406369=_0x406369[_0x4cbe78(0x2b0)](0x0);return{'modelFragment':_0x49a9b2,'anchorData':_0x41046f};}[_0x37b474(0x288)](){const _0x1f0d94=_0x37b474,_0x27d78b=this[_0x1f0d94(0x26f)][_0x1f0d94(0x221)][_0x1f0d94(0x1f4)][_0x1f0d94(0x234)],_0x183c1e=this[_0x1f0d94(0x26f)][_0x1f0d94(0x28f)][_0x1f0d94(0x1ee)](_0x1f0d94(0x26d))[_0x1f0d94(0x1e8)](),_0x2e42f9=_0x27d78b[_0x1f0d94(0x26a)]()[_0x1f0d94(0x230)][_0x1f0d94(0x22c)][_0x1f0d94(0x22c)],_0x394e61=this[_0x1f0d94(0x283)](_0x183c1e,this[_0x1f0d94(0x26f)][_0x1f0d94(0x221)][_0x1f0d94(0x235)](_0x2e42f9),this[_0x1f0d94(0x26f)][_0x1f0d94(0x221)][_0x1f0d94(0x24b)](_0x2e42f9)),_0x53523c=_0x27d78b[_0x1f0d94(0x26a)]()[_0x1f0d94(0x230)],_0x1e936c=new Map();let _0x52d377=_0x394e61;for(let _0x210976=0x0;_0x210976<_0x53523c[_0x1f0d94(0x224)][_0x1f0d94(0x21b)];_0x210976++)if(_0x1e936c[_0x1f0d94(0x1e1)](_0x52d377,_0x53523c[_0x1f0d94(0x224)][_0x210976]),_0x210976<_0x53523c[_0x1f0d94(0x224)][_0x1f0d94(0x21b)]-0x1)_0x52d377=_0x52d377[_0x1f0d94(0x2b0)](0x0);else{let _0x45caab=_0x52d377[_0x1f0d94(0x260)];for(;_0x45caab;)_0x1e936c[_0x1f0d94(0x1e1)](_0x45caab,_0x53523c[_0x1f0d94(0x224)][_0x210976]),_0x45caab=_0x45caab[_0x1f0d94(0x260)];}return{'modelFragment':_0x394e61,'anchorData':_0x1e936c};}[_0x37b474(0x29f)](_0x1af417,_0x1e28e5,_0x2317b9,_0x2574eb,_0x18c740){const _0x59b114=_0x37b474,_0x3b6d9c=this[_0x59b114(0x26f)][_0x59b114(0x28f)][_0x59b114(0x1ee)](_0x3a5f7d),_0x1f11e1=this[_0x59b114(0x26f)][_0x59b114(0x28f)][_0x59b114(0x1ee)](_0x5d2518),_0x2fc47c=this[_0x59b114(0x26f)][_0x59b114(0x221)][_0x59b114(0x1f4)][_0x59b114(0x234)],_0x35193c=_0x3b6d9c[_0x59b114(0x2a1)](_0x1e28e5),_0x41db83=this[_0x59b114(0x26f)][_0x59b114(0x275)][_0x59b114(0x276)][_0x59b114(0x25a)](_0x35193c),_0x32abd5=this[_0x59b114(0x26f)][_0x59b114(0x221)][_0x59b114(0x1f4)][_0x59b114(0x29b)],_0x2ced28=[..._0x2fc47c[_0x59b114(0x2ad)]()],_0x3ac320=new _0x231b7b(this[_0x59b114(0x26f)][_0x59b114(0x1d5)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x59b114(0x208),'customView':this[_0x59b114(0x280)]},'showUnchangedParts':!0x0});return _0x1f11e1[_0x59b114(0x258)]({'index':0x3e8*Math[_0x59b114(0x279)]()%0x3e8,'title':_0x2574eb,'icon':_0x18c740||_0xcf4659,'mainView':_0x3ac320,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2ced28}),this[_0x59b114(0x1ed)](_0x3ac320,_0x1f11e1),this[_0x59b114(0x2a6)](_0x1f11e1,_0x59b114(0x202),()=>{const _0x1b3118=_0x59b114;this[_0x1b3118(0x277)](_0x1e28e5,_0x2317b9,!0x1);}),this[_0x59b114(0x2a6)](_0x1f11e1,_0x59b114(0x2a2),()=>{const _0x232342=_0x59b114;this[_0x232342(0x277)](_0x1e28e5,_0x2317b9,!0x0);}),this[_0x59b114(0x2a6)](_0x1f11e1,_0x59b114(0x226),()=>{const _0x177a35=_0x59b114;if(this[_0x177a35(0x297)]&&this[_0x177a35(0x297)][_0x177a35(0x281)][_0x177a35(0x21b)]>0x0){const _0x5362df=this[_0x177a35(0x297)][_0x177a35(0x281)][this[_0x177a35(0x297)][_0x177a35(0x281)][_0x177a35(0x21b)]-0x1],_0x386919=_0x5362df[_0x177a35(0x20e)][0x0];_0x386919&&_0x177a35(0x1fe)===_0x386919[_0x177a35(0x255)]&&_0x5362df[_0x177a35(0x2b5)](0x0,_0x177a35(0x286));}this[_0x177a35(0x2a5)](),this[_0x177a35(0x24f)](),this[_0x177a35(0x1da)](_0x1f11e1);}),this[_0x59b114(0x228)](_0x41db83,_0x32abd5,_0x3ac320,_0x1f11e1,_0x1af417);}[_0x37b474(0x283)](_0x1133bd,_0x1043b0,_0x5bfadd){const _0x487c94=_0x37b474,_0x5bc382=this[_0x487c94(0x26f)][_0x487c94(0x221)][_0x487c94(0x27a)](_0x1043b0,_0x5bfadd)[_0x487c94(0x1ff)](),_0x58cc06=_0x5bc382['is'](_0x487c94(0x1f7))?[]:_0x5bc382[_0x487c94(0x1dc)]({'includeSelf':!0x0})[_0x487c94(0x231)](0x1);if(_0x58cc06[_0x487c94(0x21b)]){const _0x3ee6fc=_0x58cc06[_0x487c94(0x245)](_0x123828=>_0x123828[_0x487c94(0x1d7)](!0x1));for(let _0x3faf25=0x1;_0x3faf25<_0x3ee6fc[_0x487c94(0x21b)];_0x3faf25++)_0x3ee6fc[_0x3faf25-0x1][_0x487c94(0x227)](_0x3ee6fc[_0x3faf25]);return _0x3ee6fc[_0x3ee6fc[_0x487c94(0x21b)]-0x1][_0x487c94(0x227)](_0x1133bd),new _0x51bb6e(_0x3ee6fc[0x0]);}return _0x1133bd;}async[_0x37b474(0x228)](_0x29be2c,_0x416a19,_0x3e40bb,_0xf66160,_0x693c04){const _0x39c2e2=_0x37b474,_0x4802c2=this[_0x39c2e2(0x26f)];this[_0x39c2e2(0x248)]={'action':_0x693c04,'content':_0x29be2c,'version':_0x416a19,'mainView':_0x3e40bb,'aiBalloon':_0xf66160};const _0x215ff2=new _0x15d36a({'connector':this[_0x39c2e2(0x243)],'editor':_0x4802c2,'content':_0x29be2c,'version':_0x416a19,..._0x693c04});this[_0x39c2e2(0x23f)][_0x39c2e2(0x2b4)](_0x215ff2),_0x3e40bb[_0x39c2e2(0x249)]();const _0x3ee793=(_0x40d4fe,_0x266ce1,_0x123e60=!0x1,_0x2aed0d=_0x39c2e2(0x272))=>this[_0x39c2e2(0x274)][_0x39c2e2(0x265)](async _0x1ff480=>{const _0x5aae4b=_0x39c2e2;try{const _0x3156d8=_0x1221a4({'editor':_0x4802c2,'changeGroups':_0x40d4fe[_0x5aae4b(0x20e)],'documentContextContent':_0x40d4fe[_0x5aae4b(0x214)],'showDiff':_0x123e60,'trimUnchanged':!0x1});await _0x266ce1[_0x5aae4b(0x229)]({'parts':_0x3156d8,'renderingStrategy':_0x2aed0d,'abortSignal':_0x1ff480});}catch(_0x44c104){if(this[_0x5aae4b(0x271)](_0x44c104))return;throw _0x44c104;}});this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x213),(_0x467942,_0x5cc763)=>{const _0x1538f7=_0x39c2e2;_0x3e40bb[_0x1538f7(0x289)](),_0x3ee793(_0x5cc763,_0x3e40bb)[_0x1538f7(0x201)](_0x22c26b=>{const _0x5b81f0=_0x1538f7;this[_0x5b81f0(0x271)](_0x22c26b)||(console[_0x5b81f0(0x1f3)](_0x5b81f0(0x21f),_0x22c26b),this[_0x5b81f0(0x223)](_0x215ff2,_0x3e40bb));});}),this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x270),(_0x29129a,_0x21c615)=>{const _0x9cf676=_0x39c2e2;_0x3ee793(_0x21c615,_0x3e40bb)[_0x9cf676(0x201)](_0x45e07f=>{const _0x587074=_0x9cf676;this[_0x587074(0x271)](_0x45e07f)||(console[_0x587074(0x1f3)](_0x587074(0x2af),_0x45e07f),this[_0x587074(0x223)](_0x215ff2,_0x3e40bb));});}),this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x1fc),async()=>{const _0x60e0ff=_0x39c2e2;try{await this[_0x60e0ff(0x1e6)](_0x3e40bb,_0xf66160),this[_0x60e0ff(0x1fb)]();}catch(_0xabecc4){this[_0x60e0ff(0x271)](_0xabecc4)||(console[_0x60e0ff(0x1f3)](_0x60e0ff(0x1e7),_0xabecc4),this[_0x60e0ff(0x223)](_0x215ff2,_0x3e40bb));}}),this[_0x39c2e2(0x2a6)](_0x3e40bb,_0x39c2e2(0x219),(_0x2d8612,{showDiff:_0x210ca6})=>{const _0x38dde5=_0x39c2e2;this[_0x38dde5(0x2a3)]=_0x210ca6;const _0x2c444b=this[_0x38dde5(0x297)][_0x38dde5(0x281)][this[_0x38dde5(0x297)][_0x38dde5(0x281)][_0x38dde5(0x21b)]-0x1];_0x2c444b&&_0x3ee793(_0x2c444b,_0x3e40bb,_0x210ca6,_0x38dde5(0x207))[_0x38dde5(0x201)](_0x8f61ab=>{const _0x5e2072=_0x38dde5;this[_0x5e2072(0x271)](_0x8f61ab)||(console[_0x5e2072(0x1f3)](_0x5e2072(0x2ab),_0x8f61ab),this[_0x5e2072(0x223)](_0x215ff2,_0x3e40bb));});}),this[_0x39c2e2(0x297)]['on'](_0x39c2e2(0x1fd),(_0x190ceb,{reply:_0x24d2cd})=>{const _0x447f4a=_0x39c2e2,_0x530d0e={'positiveCount':_0x24d2cd[_0x447f4a(0x20e)][_0x447f4a(0x21a)](_0x13fc44=>_0x447f4a(0x2a4)===_0x13fc44[_0x447f4a(0x255)])[_0x447f4a(0x21b)],'totalCount':_0x24d2cd[_0x447f4a(0x20e)][_0x447f4a(0x21b)]},_0x377fb3=this[_0x447f4a(0x297)][_0x447f4a(0x237)],_0x37d538=this[_0x447f4a(0x297)][_0x447f4a(0x295)];_0x37d538?this[_0x447f4a(0x243)][_0x447f4a(0x211)](_0x37d538,_0x377fb3,_0x530d0e):this[_0x447f4a(0x243)][_0x447f4a(0x2b3)](_0x377fb3,_0x530d0e);}),this[_0x39c2e2(0x1ed)](_0x3e40bb,_0xf66160);try{const _0x11af36=await this[_0x39c2e2(0x297)][_0x39c2e2(0x230)]();return this[_0x39c2e2(0x1fb)](),_0x11af36;}catch(_0x183219){if(this[_0x39c2e2(0x271)](_0x183219))return;_0x3e40bb[_0x39c2e2(0x289)](),this[_0x39c2e2(0x223)](_0x215ff2,_0x3e40bb);}}[_0x37b474(0x277)](_0x6e5b29,_0xe4dd6a,_0xfd96f9){const _0x521837=_0x37b474,_0x494a2e=this[_0x521837(0x26f)],_0x3ec720=this[_0x521837(0x26f)][_0x521837(0x28f)][_0x521837(0x1ee)](_0x1e4bd2),_0x12ca43=this[_0x521837(0x297)],_0x4dc90c=this[_0x521837(0x297)][_0x521837(0x281)][this[_0x521837(0x297)][_0x521837(0x281)][_0x521837(0x21b)]-0x1],_0x10f513=_0x4dc90c[_0x521837(0x20e)];_0x4dc90c[_0x521837(0x2b5)](0x0,_0x521837(0x2a4));let _0x2f2d7b=_0x1658d3({'editor':_0x494a2e,'reply':_0x4dc90c,'interaction':_0x12ca43,'groups':_0x10f513,'transform':!0x1,'documentCompare':_0x3ec720,'documentCompareOptions':{'anchor':_0x494a2e[_0x521837(0x221)][_0x521837(0x1e4)](_0x6e5b29,0x0),'markDeletions':_0xfd96f9}});_0x2f2d7b=this[_0x521837(0x266)](_0x2f2d7b,_0xe4dd6a);for(const _0x15c245 of _0x2f2d7b)this[_0x521837(0x1f9)](_0xe4dd6a,_0x15c245,_0x494a2e[_0x521837(0x221)][_0x521837(0x1f4)][_0x521837(0x241)]());const _0x1bd403=_0x12ca43[_0x521837(0x262)]()[_0x521837(0x29b)],_0x277c69=_0x494a2e[_0x521837(0x221)][_0x521837(0x1f4)][_0x521837(0x296)][_0x521837(0x218)](_0x1bd403),_0x15dd9d={'document':_0x494a2e[_0x521837(0x221)][_0x521837(0x1f4)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1e7bf9=_0xc766e8(_0x2f2d7b,_0x277c69,_0x15dd9d)[_0x521837(0x1dd)];_0x494a2e[_0x521837(0x221)][_0x521837(0x23b)](_0x1d5ef0=>{const _0x3826b0=_0x521837;if(_0x1d5ef0[_0x3826b0(0x20d)](_0x494a2e[_0x3826b0(0x221)][_0x3826b0(0x1f4)][_0x3826b0(0x234)][_0x3826b0(0x247)]),_0xfd96f9)_0x494a2e[_0x3826b0(0x28f)][_0x3826b0(0x1ee)](_0x3826b0(0x29e))[_0x3826b0(0x23a)](_0x1e7bf9);else{for(const _0x3c6667 of _0x1e7bf9)_0x3c6667[_0x3826b0(0x252)]=_0x494a2e[_0x3826b0(0x221)][_0x3826b0(0x1f4)][_0x3826b0(0x29b)],_0x1d5ef0[_0x3826b0(0x1ef)][_0x3826b0(0x23d)](_0x3c6667),_0x494a2e[_0x3826b0(0x221)][_0x3826b0(0x25c)](_0x3c6667);}}),this[_0x521837(0x26f)][_0x521837(0x28f)][_0x521837(0x1ee)](_0x521837(0x204))[_0x521837(0x1d9)]();}[_0x37b474(0x266)](_0x3b1ff0,_0x3a76bd){const _0x2484f0=_0x37b474;return _0x3b1ff0[_0x2484f0(0x21a)](_0x5d4d5e=>{const _0x1bf41f=_0x2484f0;if(_0x1bf41f(0x264)==_0x5d4d5e[_0x1bf41f(0x273)]){const _0x12f631=_0x5d4d5e[_0x1bf41f(0x240)][_0x1bf41f(0x2b1)];return!_0x3a76bd[_0x1bf41f(0x215)](_0x12f631);}if(_0x5d4d5e[_0x1bf41f(0x273)][_0x1bf41f(0x203)](_0x1bf41f(0x22f))>-0x1){const _0x453185=_0x5d4d5e[_0x1bf41f(0x21e)][_0x1bf41f(0x230)][_0x1bf41f(0x2b1)];return!_0x3a76bd[_0x1bf41f(0x215)](_0x453185);}return!0x0;});}[_0x37b474(0x1f9)](_0x5e29fa,_0x3abee9,_0x258453){const _0x5019ee=_0x37b474,_0x1133b=_0x3abee9[_0x5019ee(0x25f)]();for(const _0x1d8e53 in _0x3abee9){const _0x4524dc=_0x3abee9[_0x1d8e53];_0x4524dc instanceof _0x3e478d?_0x3abee9[_0x1d8e53]=new _0x3e478d(_0x1dd586(_0x4524dc[_0x5019ee(0x230)]),_0x1dd586(_0x4524dc[_0x5019ee(0x20a)])):_0x4524dc instanceof _0x37893e&&(_0x3abee9[_0x1d8e53]=_0x1dd586(_0x4524dc));}if([_0x5019ee(0x244),_0x5019ee(0x253),_0x5019ee(0x209),_0x5019ee(0x293),_0x5019ee(0x256),_0x5019ee(0x20b)][_0x5019ee(0x257)](_0x1133b[_0x5019ee(0x273)])){if(_0x1133b[_0x5019ee(0x24d)]=!0x1,_0x1133b[_0x5019ee(0x252)]=null,_0x5019ee(0x209)==_0x1133b[_0x5019ee(0x273)]){const _0x2dde99=_0x1133b[_0x5019ee(0x28a)],_0x4a70c3=_0x1133b[_0x5019ee(0x2aa)];new _0x40c249(_0x2dde99,_0x4a70c3)[_0x5019ee(0x220)]();}else _0x1133b[_0x5019ee(0x220)]();}function _0x1dd586(_0x55319b){const _0x1b1b60=_0x5019ee;if(_0x1b1b60(0x22a)==_0x55319b[_0x1b1b60(0x26c)][_0x1b1b60(0x290)])return _0x55319b;const _0x585e43=[];let _0x884a99=_0x55319b[_0x1b1b60(0x26c)];for(let _0x2ba2c7=0x0;_0x2ba2c7<_0x55319b[_0x1b1b60(0x224)][_0x1b1b60(0x21b)];_0x2ba2c7++){const _0x40fa6e=_0x5e29fa[_0x1b1b60(0x1ee)](_0x884a99)||0x0;_0x585e43[_0x2ba2c7]=_0x55319b[_0x1b1b60(0x224)][_0x2ba2c7]+_0x40fa6e,_0x884a99=_0x884a99[_0x1b1b60(0x2a9)](_0x55319b[_0x1b1b60(0x224)][_0x2ba2c7]);}return new _0x37893e(_0x258453,_0x585e43,_0x55319b[_0x1b1b60(0x269)]);}}[_0x37b474(0x2ae)](){const _0x4a68b8=_0x37b474;if(!this[_0x4a68b8(0x248)])return;this[_0x4a68b8(0x23f)][_0x4a68b8(0x21b)]>0x0&&this[_0x4a68b8(0x2a5)](),this[_0x4a68b8(0x246)]=0x0,this[_0x4a68b8(0x2a3)]=!0x1;const {action:_0x746e46,content:_0x24f269,version:_0x41b636,mainView:_0x8c0560,aiBalloon:_0x3efed}=this[_0x4a68b8(0x248)];_0x8c0560[_0x4a68b8(0x1e9)]=!0x1,_0x8c0560[_0x4a68b8(0x249)](),this[_0x4a68b8(0x23e)](_0x8c0560,_0x3efed);const _0x582511=_0x8c0560;_0x582511[_0x4a68b8(0x1ea)]&&_0x582511[_0x4a68b8(0x1ea)][_0x4a68b8(0x1ec)]&&_0x582511[_0x4a68b8(0x1ea)][_0x4a68b8(0x1ec)][_0x4a68b8(0x1e1)]({'isOn':!0x1,'icon':_0x14c239}),this[_0x4a68b8(0x1e3)](_0x8c0560),_0x8c0560[_0x4a68b8(0x267)](),this[_0x4a68b8(0x1fb)](),this[_0x4a68b8(0x228)](_0x24f269,_0x41b636,_0x8c0560,_0x3efed,_0x746e46)[_0x4a68b8(0x201)](_0x1cae57=>{const _0x5ec464=_0x4a68b8;this[_0x5ec464(0x271)](_0x1cae57)||console[_0x5ec464(0x1f3)](_0x5ec464(0x217),_0x1cae57);});}[_0x37b474(0x1e3)](_0x3d84f8){const _0x348e7c=_0x37b474,_0x40db38=_0x3d84f8[_0x348e7c(0x268)][_0x348e7c(0x20f)];for(;_0x40db38[_0x348e7c(0x21b)]>0x0;)_0x40db38[_0x348e7c(0x209)](_0x40db38[_0x348e7c(0x1f0)]);_0x3d84f8[_0x348e7c(0x268)][_0x348e7c(0x232)]=!0x1;}[_0x37b474(0x271)](_0x3cbdb0){const _0x5df93d=_0x37b474;return!!_0x3cbdb0[_0x5df93d(0x22e)]&&_0x3cbdb0[_0x5df93d(0x22e)][_0x5df93d(0x2ac)](_0x5df93d(0x299));}[_0x37b474(0x24f)](){const _0x3d5dbf=_0x37b474;this[_0x3d5dbf(0x23f)]=[],this[_0x3d5dbf(0x248)]=void 0x0,this[_0x3d5dbf(0x246)]=0x0,this[_0x3d5dbf(0x1fb)]();}[_0x37b474(0x2a5)](){const _0x3b0e99=_0x37b474;this[_0x3b0e99(0x297)]&&this[_0x3b0e99(0x297)][_0x3b0e99(0x285)](),this[_0x3b0e99(0x274)][_0x3b0e99(0x1f2)](),this[_0x3b0e99(0x242)]=!0x1;}[_0x37b474(0x222)](){const _0x378676=_0x37b474,_0x491e8a=new _0x48a1e8(this[_0x378676(0x26f)][_0x378676(0x1d5)]),_0x4e1b23=new _0x48a1e8(this[_0x378676(0x26f)][_0x378676(0x1d5)]),_0x342cc3=new _0xa56c91(this[_0x378676(0x26f)][_0x378676(0x1d5)]),_0x287f78=new _0x48a1e8(this[_0x378676(0x26f)][_0x378676(0x1d5)]);_0x491e8a[_0x378676(0x1e1)]({'icon':_0x5f1450,'label':_0x5b224f(this[_0x378676(0x26f)][_0x378676(0x1d5)],_0x378676(0x29a)),'tooltip':!0x0,'class':_0x378676(0x1e5)}),_0x4e1b23[_0x378676(0x1e1)]({'icon':_0x45c75f,'tooltip':_0x5b224f(this[_0x378676(0x26f)][_0x378676(0x1d5)],_0x378676(0x206)),'class':_0x378676(0x1f6)}),_0x342cc3[_0x378676(0x21c)]({'tag':_0x378676(0x233),'attributes':{'class':[_0x378676(0x26b)]},'children':[_0x378676(0x22b)]}),_0x287f78[_0x378676(0x1e1)]({'icon':_0xaa83ac,'tooltip':_0x5b224f(this[_0x378676(0x26f)][_0x378676(0x1d5)],_0x378676(0x263)),'class':_0x378676(0x1f1)}),_0x491e8a[_0x378676(0x212)](_0x378676(0x28e))['to'](this,_0x378676(0x242),_0x425cda=>!_0x425cda),_0x491e8a['on'](_0x378676(0x200),()=>{const _0x46e997=_0x378676;this[_0x46e997(0x2ae)]();}),_0x4e1b23[_0x378676(0x212)](_0x378676(0x28e))['to'](this,_0x378676(0x242),_0x266ad7=>!_0x266ad7),_0x4e1b23['on'](_0x378676(0x200),()=>{const _0x4a17f8=_0x378676;this[_0x4a17f8(0x23c)]();}),_0x287f78[_0x378676(0x212)](_0x378676(0x28e))['to'](this,_0x378676(0x242),_0x3cccbb=>!_0x3cccbb),_0x287f78['on'](_0x378676(0x200),()=>{const _0x25bfe5=_0x378676;this[_0x25bfe5(0x250)]();}),this[_0x378676(0x28c)]=_0x4e1b23,this[_0x378676(0x24e)]=_0x342cc3,this[_0x378676(0x1e2)]=_0x287f78,this[_0x378676(0x280)][_0x378676(0x27e)](_0x491e8a);}[_0x37b474(0x23c)](){const _0x147c88=_0x37b474,_0x1447ee=this[_0x147c88(0x23f)][_0x147c88(0x21b)];this[_0x147c88(0x246)]<_0x1447ee-0x1&&this[_0x147c88(0x1d8)](this[_0x147c88(0x246)]+0x1);}[_0x37b474(0x250)](){const _0x334c1c=_0x37b474;this[_0x334c1c(0x246)]>0x0&&this[_0x334c1c(0x1d8)](this[_0x334c1c(0x246)]-0x1);}async[_0x37b474(0x1d8)](_0x5e0815){const _0x13ee0f=_0x37b474;if(!this[_0x13ee0f(0x248)])return;this[_0x13ee0f(0x246)]=_0x5e0815;const {mainView:_0x57d831}=this[_0x13ee0f(0x248)],_0x234023=this[_0x13ee0f(0x23f)][this[_0x13ee0f(0x23f)][_0x13ee0f(0x21b)]-0x1-this[_0x13ee0f(0x246)]];if(!_0x234023)return;if(_0x234023[_0x13ee0f(0x291)])return this[_0x13ee0f(0x223)](_0x234023,_0x57d831),void this[_0x13ee0f(0x1fb)]();if(!_0x234023[_0x13ee0f(0x281)][_0x13ee0f(0x21b)])return;_0x57d831[_0x13ee0f(0x249)](),this[_0x13ee0f(0x248)]&&this[_0x13ee0f(0x23e)](_0x57d831,this[_0x13ee0f(0x248)][_0x13ee0f(0x239)]);const _0x357cae=_0x234023[_0x13ee0f(0x281)][_0x234023[_0x13ee0f(0x281)][_0x13ee0f(0x21b)]-0x1];if(_0x357cae){const _0x5e4a09=this[_0x13ee0f(0x26f)];this[_0x13ee0f(0x1e3)](_0x57d831);try{const _0x2c0842=_0x1221a4({'editor':_0x5e4a09,'changeGroups':_0x357cae[_0x13ee0f(0x20e)],'documentContextContent':_0x357cae[_0x13ee0f(0x214)],'showDiff':this[_0x13ee0f(0x2a3)],'trimUnchanged':!0x1});this[_0x13ee0f(0x1e3)](_0x57d831),await new Promise(_0x4c2771=>setTimeout(_0x4c2771,0x32)),await _0x57d831[_0x13ee0f(0x229)]({'parts':_0x2c0842,'renderingStrategy':_0x13ee0f(0x207),'abortSignal':new AbortController()[_0x13ee0f(0x22d)]});}catch(_0x17c9c7){this[_0x13ee0f(0x271)](_0x17c9c7)||console[_0x13ee0f(0x1f3)](_0x13ee0f(0x26e),_0x17c9c7);}}this[_0x13ee0f(0x1fb)]();}[_0x37b474(0x1fb)](){const _0xca4331=_0x37b474;if(!this[_0xca4331(0x28c)]||!this[_0xca4331(0x24e)]||!this[_0xca4331(0x1e2)])return;const _0x3e2f2d=this[_0xca4331(0x23f)][_0xca4331(0x21b)],_0x21b88d=_0x3e2f2d>0x1,_0x55d81e=this[_0xca4331(0x248)]?.[_0xca4331(0x20c)];if(_0x21b88d){this[_0xca4331(0x282)]||this[_0xca4331(0x294)]||this[_0xca4331(0x261)]||(this[_0xca4331(0x280)][_0xca4331(0x27e)](this[_0xca4331(0x28c)]),_0x55d81e?.[_0xca4331(0x27f)](this[_0xca4331(0x28c)]),this[_0xca4331(0x282)]=!0x0,this[_0xca4331(0x280)][_0xca4331(0x27e)](this[_0xca4331(0x24e)]),_0x55d81e?.[_0xca4331(0x27f)](this[_0xca4331(0x24e)]),this[_0xca4331(0x294)]=!0x0,this[_0xca4331(0x280)][_0xca4331(0x27e)](this[_0xca4331(0x1e2)]),_0x55d81e?.[_0xca4331(0x27f)](this[_0xca4331(0x1e2)]),this[_0xca4331(0x261)]=!0x0);const _0x5f59fc=_0x3e2f2d-this[_0xca4331(0x246)];this[_0xca4331(0x24e)][_0xca4331(0x21d)]&&(this[_0xca4331(0x24e)][_0xca4331(0x21d)][_0xca4331(0x254)]=_0x5f59fc+'/'+_0x3e2f2d),this[_0xca4331(0x28c)][_0xca4331(0x28e)]=this[_0xca4331(0x246)]<_0x3e2f2d-0x1,this[_0xca4331(0x1e2)][_0xca4331(0x28e)]=this[_0xca4331(0x246)]>0x0;}else(this[_0xca4331(0x282)]||this[_0xca4331(0x294)]||this[_0xca4331(0x261)])&&(this[_0xca4331(0x280)][_0xca4331(0x209)](this[_0xca4331(0x28c)]),_0x55d81e?.[_0xca4331(0x2a7)](this[_0xca4331(0x28c)]),this[_0xca4331(0x282)]=!0x1,this[_0xca4331(0x280)][_0xca4331(0x209)](this[_0xca4331(0x24e)]),_0x55d81e?.[_0xca4331(0x2a7)](this[_0xca4331(0x24e)]),this[_0xca4331(0x294)]=!0x1,this[_0xca4331(0x280)][_0xca4331(0x209)](this[_0xca4331(0x1e2)]),_0x55d81e?.[_0xca4331(0x2a7)](this[_0xca4331(0x1e2)]),this[_0xca4331(0x261)]=!0x1);}[_0x37b474(0x1ed)](_0x2aca2d,_0xa30ec1){const _0x3f37b6=_0x37b474;_0x2aca2d[_0x3f37b6(0x27c)](),_0xa30ec1[_0x3f37b6(0x27b)][_0x3f37b6(0x27c)](),this[_0x3f37b6(0x242)]=!0x0;}async[_0x37b474(0x223)](_0x178585,_0x805ab7){const _0x59ef51=_0x37b474,_0x1fa6ed=_0x5b224f(this[_0x59ef51(0x26f)][_0x59ef51(0x1d5)],_0x59ef51(0x210));_0x805ab7[_0x59ef51(0x1f5)](_0x1fa6ed),_0x178585[_0x59ef51(0x291)]=!0x0,await this[_0x59ef51(0x274)][_0x59ef51(0x25e)],_0x805ab7[_0x59ef51(0x259)](),this[_0x59ef51(0x248)]?.[_0x59ef51(0x239)][_0x59ef51(0x27b)][_0x59ef51(0x238)]&&(this[_0x59ef51(0x248)][_0x59ef51(0x239)][_0x59ef51(0x27b)][_0x59ef51(0x238)][_0x59ef51(0x284)]=!0x0);}[_0x37b474(0x23e)](_0x4e993d,_0x255f83){const _0x2cc93a=_0x37b474;_0x4e993d[_0x2cc93a(0x1de)](),_0x255f83[_0x2cc93a(0x27b)][_0x2cc93a(0x238)]&&(_0x255f83[_0x2cc93a(0x27b)][_0x2cc93a(0x238)][_0x2cc93a(0x284)]=!0x1);}async[_0x37b474(0x1e6)](_0x1723da,_0x37f7d3){const _0x28e838=_0x37b474;await this[_0x28e838(0x274)][_0x28e838(0x25e)],this[_0x28e838(0x242)]=!0x1,_0x1723da[_0x28e838(0x25b)](),_0x37f7d3[_0x28e838(0x27b)][_0x28e838(0x25b)]();}}
|
|
23
|
+
const _0x410544=_0x6d10;(function(_0x37f2d4,_0x25d5ff){const _0x59ec0b=_0x6d10,_0x128f80=_0x37f2d4();while(!![]){try{const _0x40721c=-parseInt(_0x59ec0b(0x23d))/0x1*(-parseInt(_0x59ec0b(0x1c5))/0x2)+-parseInt(_0x59ec0b(0x1dc))/0x3*(-parseInt(_0x59ec0b(0x258))/0x4)+-parseInt(_0x59ec0b(0x24e))/0x5*(parseInt(_0x59ec0b(0x1e1))/0x6)+-parseInt(_0x59ec0b(0x1bc))/0x7+parseInt(_0x59ec0b(0x1c7))/0x8+parseInt(_0x59ec0b(0x249))/0x9+-parseInt(_0x59ec0b(0x1c2))/0xa;if(_0x40721c===_0x25d5ff)break;else _0x128f80['push'](_0x128f80['shift']());}catch(_0xca6a7e){_0x128f80['push'](_0x128f80['shift']());}}}(_0x2f80,0xe0b60));import{Plugin as _0x51632c}from'ckeditor5/src/core.js';import{AIConnector as _0x5d3ec2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x343e78}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x4fd0bc,ButtonView as _0x27534c,ViewCollection as _0x5b82a8,View as _0x5b2a42}from'ckeditor5/src/ui.js';import{AIEditing as _0x25f74e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4f0ffc}from'./model/aiactionsinteraction.js';import{first as _0x520196}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1959ee,IconRefresh as _0x5cd54c,IconNextArrow as _0x357da0,IconPreviousArrow as _0x5e5e45,IconShowChangesOff as _0x4283d4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x461234}from'../aiballoon/aiballoon.js';function _0x2f80(){const _0x1bd81d=['isPremiumPlugin','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20during\x20navigation:','insert','ck-ai-custom-action-button','abort','AIActions','13065534fACLeu','rejected','_appendChild','startsWith','getSelectionAsFragment','7842025mVNnbD','clearLoading','document','Error\x20updating\x20content\x20in\x20replyCreated:','documentFragment','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_getExecuteDataInTable','length','toData','hideLoader','3236TqfFwi','_setLoadingState','setLoading','sourcePosition','setChangeGroupState','addOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getSelectedContent','nextSibling','indexOf','_customViews','random','getOperations','get','isLoading','replyCreated','replyContentUpdated','element','history','bind','bodyView','reinsert','AIBalloon','execute','queueEmptyPromise','_execute','AI_ACTIONS_TRY_AGAIN','_currentInteractionIndex','processor','clone','_navigateToNext','_setErrorState','static','_navigationCounter','accepted','mainView','change','_clearSuggestionContent','isCollapsed','actionName','nodeAfter','_aiConnector','setErrorState','start','getDocumentContext','isEnabled','AI_ACTIONS_NEXT_INTERACTION','_clearLoadingState','set','createPositionAt','selection','first','position','applyOperation','pending','_navigateToPrevious','includes','parent','modelToViewWithIds','applySuggestion','AI_ACTIONS_PREVIOUS_INTERACTION','Attribute','batch','showChangesButton','_refreshInteraction','stickiness','createPositionBefore','2360253SVceaJ','hasError','areChangesVisible','add','operationsA','isOfficialPlugin','32933070TcRplM','has','_navigationPreviousButton','862ZSUxGR','filter','11812648zZTazR','move','setSelection','setTemplate','upsertAIActionRating','Error\x20refreshing\x20interaction:','getCommonAncestor','replyChangeGroupStateUpdated','catch','interactionFinished','merge','signal','_anchorOperation','root','path','miniToolbarView','_isNavigationPreviousButtonInView','_interactionParams','dialogClosed','_children','span','5301gCoOBd','showError','_stopInteraction','_wrapWithCommonAncestors','getChild','6CtBXvJ','_applyChanges','getChildAtOffset','stopListening','editor','model','type','pluginName','rootName','actionCallId','TableSelection','TrackChangesEditing','_createInteraction','_executeAction','1/1','message','data','rename','ck-ai-interaction-counter','streaming','_interaction','hasPendingParts','map','changeGroups','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','removeNavigationItem','_clone','error','_promiseQueue','toolbar','updateContent','_navigationNextButton','isBusy','slice','open','listenTo','split','ai-request-aborted','_clearInteractionHistory','_isNavigationNextButtonInView','ck-ai-navigation-button\x20ck-ai-next-button','getRanges','balloonView','getSelectedBlocks','_interactions','enqueue','_isNavigationCounterInView','insertSuggestion','AIConnector','getLimitElement','getRoot','_displayInteractionAtIndex','aiBalloon','_balloonShowDiff','_setupCustomViews','end','schema','hideError','_applyOperationsAsSuggestions','isDocumentOperation','remove','createRange','locale','_filterOperationsOutsideRange','push','getAncestors','replies','focus','ck-ai-navigation-button\x20ck-ai-previous-button','createPositionAfter','AI_ACTIONS_GENERIC_ERROR','showLoader','range','_isAbortError','textContent','_getExecuteDataRegular','close','state','baseVersion','howMany','documentContextContent','_updateNavigationUI','version','requires','stopInteraction','addNavigationItem','stop','_clearErrorState','getFirstRange','clearErrorState','plugins','4087yKRzxE','icon','executeAction','$graveyard','getSelectedTableCells'];_0x2f80=function(){return _0x1bd81d;};return _0x2f80();}import{PromiseQueue as _0x3710f6}from'../aichat/utils/promisequeue.js';function _0x6d10(_0x3b9e95,_0x4490bb){const _0x2f8043=_0x2f80();return _0x6d10=function(_0x6d10dd,_0x5e7c4b){_0x6d10dd=_0x6d10dd-0x1af;let _0x49fb74=_0x2f8043[_0x6d10dd];return _0x49fb74;},_0x6d10(_0x3b9e95,_0x4490bb);}import{getTranslation as _0x1933ba}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x37135b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x195bd6}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0xf3c669}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x413ac3,ModelRange as _0x50f276,ModelPosition as _0x51cfb4,_DetachOperation as _0x18765a,transformOperationSets as _0x157373}from'ckeditor5/src/engine.js';export class AIActions extends _0x51632c{static get[_0x410544(0x235)](){return[_0x5d3ec2,_0x4fd0bc,_0x25f74e,_0x461234,_0x195bd6];}static get[_0x410544(0x1e8)](){const _0xd93c88=_0x410544;return _0xd93c88(0x248);}static get[_0x410544(0x1c1)](){return!0x0;}static get[_0x410544(0x242)](){return!0x0;}[_0x410544(0x281)];[_0x410544(0x20e)]=[];[_0x410544(0x273)]=0x0;[_0x410544(0x1d8)];[_0x410544(0x217)]=!0x1;[_0x410544(0x262)]=new _0x5b82a8();[_0x410544(0x1c4)];[_0x410544(0x279)];[_0x410544(0x210)]=!0x1;[_0x410544(0x201)];[_0x410544(0x1d7)]=!0x1;[_0x410544(0x209)]=!0x1;[_0x410544(0x1fe)];get[_0x410544(0x1f5)](){const _0x9186b=_0x410544;return this[_0x9186b(0x20e)][this[_0x9186b(0x20e)][_0x9186b(0x255)]-0x1];}constructor(_0x58291f){const _0x402a4f=_0x410544;super(_0x58291f),this[_0x402a4f(0x281)]=this[_0x402a4f(0x1e5)][_0x402a4f(0x23c)][_0x402a4f(0x265)](_0x402a4f(0x212)),this[_0x402a4f(0x288)](_0x402a4f(0x202),!0x1),this[_0x402a4f(0x1fe)]=new _0x3710f6(),this[_0x402a4f(0x218)]();}[_0x410544(0x236)](){const _0x359ab1=_0x410544;this[_0x359ab1(0x1de)]();}async[_0x410544(0x23f)](_0x12fa92,_0xe65920,_0x59b323){const _0x43ce35=_0x410544;if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x1c3)](_0x43ce35(0x1eb))){if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x265)](_0x43ce35(0x1eb))[_0x43ce35(0x241)]()){const {modelFragment:_0x1e2797,anchorData:_0x2e5471}=this[_0x43ce35(0x254)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x1e2797,_0x2e5471,_0xe65920,_0x59b323);}}const {modelFragment:_0x34e5bd,anchorData:_0x4f84b5}=this[_0x43ce35(0x22d)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x34e5bd,_0x4f84b5,_0xe65920,_0x59b323);}[_0x410544(0x22d)](){const _0x3d569c=_0x410544,_0x34e567=this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x250)][_0x3d569c(0x28a)];if(_0x34e567[_0x3d569c(0x27e)]){const _0x62560a=_0x520196(_0x34e567[_0x3d569c(0x20d)]())||this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x21a)][_0x3d569c(0x213)](_0x34e567);this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x27c)](_0x213303=>{const _0xc8ad5d=_0x3d569c;_0x213303[_0xc8ad5d(0x1c9)](_0x62560a,'in');});}const _0xcc499d=_0x34e567[_0x3d569c(0x23a)](),_0x2989a6=this[_0x3d569c(0x1df)](this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x25f)](_0x34e567),_0xcc499d[_0x3d569c(0x283)],_0xcc499d[_0x3d569c(0x219)]),_0x284462=_0x34e567[_0x3d569c(0x23a)]()[_0x3d569c(0x283)],_0x2061aa=new Map();let _0x2a175a=_0x2989a6;for(let _0x549b31=0x0;_0x549b31<_0x284462[_0x3d569c(0x1d5)][_0x3d569c(0x255)];_0x549b31++)_0x2061aa[_0x3d569c(0x288)](_0x2a175a,_0x284462[_0x3d569c(0x1d5)][_0x549b31]),_0x2a175a=_0x2a175a[_0x3d569c(0x1e0)](0x0);return{'modelFragment':_0x2989a6,'anchorData':_0x2061aa};}[_0x410544(0x254)](){const _0x1ca93e=_0x410544,_0x2201ed=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x250)][_0x1ca93e(0x28a)],_0x2af650=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x23c)][_0x1ca93e(0x265)](_0x1ca93e(0x1eb))[_0x1ca93e(0x24d)](),_0x2bfcaf=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)][_0x1ca93e(0x1b2)][_0x1ca93e(0x1b2)],_0x6a0ca4=this[_0x1ca93e(0x1df)](_0x2af650,this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x1bb)](_0x2bfcaf),this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x227)](_0x2bfcaf)),_0x478247=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)],_0x308a7d=new Map();let _0xba8748=_0x6a0ca4;for(let _0x42c246=0x0;_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)];_0x42c246++)if(_0x308a7d[_0x1ca93e(0x288)](_0xba8748,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)]-0x1)_0xba8748=_0xba8748[_0x1ca93e(0x1e0)](0x0);else{let _0x36896e=_0xba8748[_0x1ca93e(0x260)];for(;_0x36896e;)_0x308a7d[_0x1ca93e(0x288)](_0x36896e,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x36896e=_0x36896e[_0x1ca93e(0x260)];}return{'modelFragment':_0x6a0ca4,'anchorData':_0x308a7d};}[_0x410544(0x1ee)](_0x4ca9c1,_0x139cbe,_0x3a0226,_0x48ab60,_0x5dcb3f){const _0x23dfea=_0x410544,_0x38fd28=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x25f74e),_0x18773b=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x461234),_0x1747f6=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x28a)],_0x186dec=_0x38fd28[_0x23dfea(0x1b3)](_0x139cbe),_0x2cf112=this[_0x23dfea(0x1e5)][_0x23dfea(0x1f1)][_0x23dfea(0x274)][_0x23dfea(0x256)](_0x186dec),_0x4ecb4c=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x234)],_0x1c4f98=[..._0x1747f6[_0x23dfea(0x20b)]()],_0x187ac8=new _0x343e78(this[_0x23dfea(0x1e5)][_0x23dfea(0x220)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x23dfea(0x23e),'customView':this[_0x23dfea(0x262)]},'showUnchangedParts':!0x0});return _0x18773b[_0x23dfea(0x204)]({'index':0x3e8*Math[_0x23dfea(0x263)]()%0x3e8,'title':_0x48ab60,'icon':_0x5dcb3f||_0x1959ee,'mainView':_0x187ac8,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1c4f98}),this[_0x23dfea(0x259)](_0x187ac8,_0x18773b),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1b4),()=>{const _0x1a54f4=_0x23dfea;this[_0x1a54f4(0x1e2)](_0x139cbe,_0x3a0226,!0x1);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x211),()=>{const _0x3164a4=_0x23dfea;this[_0x3164a4(0x1e2)](_0x139cbe,_0x3a0226,!0x0);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1d9),()=>{const _0xb2a046=_0x23dfea;if(this[_0xb2a046(0x1f5)]&&this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]>0x0){const _0x54d18e=this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]-0x1],_0xb04b48=_0x54d18e[_0xb2a046(0x1f8)][0x0];_0xb04b48&&_0xb2a046(0x1af)===_0xb04b48[_0xb2a046(0x22f)]&&_0x54d18e[_0xb2a046(0x25c)](0x0,_0xb2a046(0x24a));}this[_0xb2a046(0x1de)](),this[_0xb2a046(0x208)](),this[_0xb2a046(0x1e4)](_0x18773b);}),this[_0x23dfea(0x1ed)](_0x2cf112,_0x4ecb4c,_0x187ac8,_0x18773b,_0x4ca9c1);}[_0x410544(0x1df)](_0x47da69,_0x2b5673,_0x357fc6){const _0x4d14bd=_0x410544,_0x2e06d0=this[_0x4d14bd(0x1e5)][_0x4d14bd(0x1e6)][_0x4d14bd(0x21f)](_0x2b5673,_0x357fc6)[_0x4d14bd(0x1cd)](),_0x267347=_0x2e06d0['is'](_0x4d14bd(0x252))?[]:_0x2e06d0[_0x4d14bd(0x223)]({'includeSelf':!0x0})[_0x4d14bd(0x203)](0x1);if(_0x267347[_0x4d14bd(0x255)]){const _0x34bf1b=_0x267347[_0x4d14bd(0x1f7)](_0x1e0040=>_0x1e0040[_0x4d14bd(0x1fc)](!0x1));for(let _0x27efe4=0x1;_0x27efe4<_0x34bf1b[_0x4d14bd(0x255)];_0x27efe4++)_0x34bf1b[_0x27efe4-0x1][_0x4d14bd(0x24b)](_0x34bf1b[_0x27efe4]);return _0x34bf1b[_0x34bf1b[_0x4d14bd(0x255)]-0x1][_0x4d14bd(0x24b)](_0x47da69),new _0x413ac3(_0x34bf1b[0x0]);}return _0x47da69;}async[_0x410544(0x1ed)](_0x4cc174,_0x3eae39,_0x588589,_0x38d19a,_0x3cf167){const _0xb20bdc=_0x410544,_0xad0c25=this[_0xb20bdc(0x1e5)];this[_0xb20bdc(0x1d8)]={'action':_0x3cf167,'content':_0x4cc174,'version':_0x3eae39,'mainView':_0x588589,'aiBalloon':_0x38d19a};const _0x152674=new _0x4f0ffc({'connector':this[_0xb20bdc(0x281)],'editor':_0xad0c25,'content':_0x4cc174,'version':_0x3eae39,..._0x3cf167});this[_0xb20bdc(0x20e)][_0xb20bdc(0x222)](_0x152674),_0x588589[_0xb20bdc(0x21b)]();const _0x1a2fe0=(_0x53c181,_0x197aa0,_0x3dad7d=!0x1,_0x19ea05=_0xb20bdc(0x1f4))=>this[_0xb20bdc(0x1fe)][_0xb20bdc(0x20f)](async _0x304942=>{const _0x15d4fd=_0xb20bdc;try{const _0x372ac9=_0x37135b({'editor':_0xad0c25,'changeGroups':_0x53c181[_0x15d4fd(0x1f8)],'documentContextContent':_0x53c181[_0x15d4fd(0x232)],'showDiff':_0x3dad7d,'trimUnchanged':!0x1});await _0x197aa0[_0x15d4fd(0x200)]({'parts':_0x372ac9,'renderingStrategy':_0x19ea05,'abortSignal':_0x304942});}catch(_0x410c49){if(this[_0x15d4fd(0x22b)](_0x410c49))return;throw _0x410c49;}});this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x267),(_0x2c5e14,_0x46d5ce)=>{const _0x23c2fe=_0xb20bdc;_0x588589[_0x23c2fe(0x257)](),_0x1a2fe0(_0x46d5ce,_0x588589)[_0x23c2fe(0x1cf)](_0x346b1f=>{const _0x4efea1=_0x23c2fe;this[_0x4efea1(0x22b)](_0x346b1f)||(console[_0x4efea1(0x1fd)](_0x4efea1(0x251),_0x346b1f),this[_0x4efea1(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x268),(_0x311bdd,_0x23ba09)=>{const _0xefc9f=_0xb20bdc;_0x1a2fe0(_0x23ba09,_0x588589)[_0xefc9f(0x1cf)](_0x528575=>{const _0x2a7b7c=_0xefc9f;this[_0x2a7b7c(0x22b)](_0x528575)||(console[_0x2a7b7c(0x1fd)](_0x2a7b7c(0x1fa),_0x528575),this[_0x2a7b7c(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1d0),async()=>{const _0x41e6e3=_0xb20bdc;try{await this[_0x41e6e3(0x287)](_0x588589,_0x38d19a),this[_0x41e6e3(0x233)]();}catch(_0x466849){this[_0x41e6e3(0x22b)](_0x466849)||(console[_0x41e6e3(0x1fd)](_0x41e6e3(0x253),_0x466849),this[_0x41e6e3(0x277)](_0x152674,_0x588589));}}),this[_0xb20bdc(0x205)](_0x588589,_0xb20bdc(0x243),(_0x4182a1,{showDiff:_0x488ca8})=>{const _0x3776ff=_0xb20bdc;this[_0x3776ff(0x217)]=_0x488ca8;const _0x5e6de4=this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][_0x3776ff(0x255)]-0x1];_0x5e6de4&&_0x1a2fe0(_0x5e6de4,_0x588589,_0x488ca8,_0x3776ff(0x278))[_0x3776ff(0x1cf)](_0x35ba7b=>{const _0x2e9586=_0x3776ff;this[_0x2e9586(0x22b)](_0x35ba7b)||(console[_0x2e9586(0x1fd)](_0x2e9586(0x25e),_0x35ba7b),this[_0x2e9586(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1ce),(_0x48b825,{reply:_0x5dc3d6})=>{const _0x58479d=_0xb20bdc,_0x24b709={'positiveCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x1c6)](_0x582ba0=>_0x58479d(0x27a)===_0x582ba0[_0x58479d(0x22f)])[_0x58479d(0x255)],'totalCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x255)]},_0x3a3f1a=this[_0x58479d(0x1f5)][_0x58479d(0x1ea)],_0x52ec98=this[_0x58479d(0x1f5)][_0x58479d(0x27f)];_0x52ec98?this[_0x58479d(0x281)][_0x58479d(0x1cb)](_0x52ec98,_0x3a3f1a,_0x24b709):this[_0x58479d(0x281)][_0x58479d(0x1f9)](_0x3a3f1a,_0x24b709);}),this[_0xb20bdc(0x259)](_0x588589,_0x38d19a);try{const _0x7d65a1=await this[_0xb20bdc(0x1f5)][_0xb20bdc(0x283)]();return this[_0xb20bdc(0x233)](),_0x7d65a1;}catch(_0x921ef1){if(this[_0xb20bdc(0x22b)](_0x921ef1))return;_0x588589[_0xb20bdc(0x257)](),this[_0xb20bdc(0x277)](_0x152674,_0x588589);}}[_0x410544(0x1e2)](_0x25b7a2,_0x59f186,_0x4b053c){const _0x4f3840=_0x410544,_0x38ffd8=this[_0x4f3840(0x1e5)],_0x3fcbf1=this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x195bd6),_0x3b6ce9=this[_0x4f3840(0x1f5)],_0x58b92f=this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][_0x4f3840(0x255)]-0x1],_0x4f9072=_0x58b92f[_0x4f3840(0x1f8)];_0x58b92f[_0x4f3840(0x25c)](0x0,_0x4f3840(0x27a));let _0x4fed40=_0xf3c669({'editor':_0x38ffd8,'reply':_0x58b92f,'interaction':_0x3b6ce9,'groups':_0x4f9072,'transform':!0x1,'documentCompare':_0x3fcbf1,'documentCompareOptions':{'anchor':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x289)](_0x25b7a2,0x0),'markDeletions':_0x4b053c}});_0x4fed40=this[_0x4f3840(0x221)](_0x4fed40,_0x59f186);for(const _0x1f5915 of _0x4fed40)this[_0x4f3840(0x1d3)](_0x59f186,_0x1f5915,_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x214)]());const _0x3e0975=_0x3b6ce9[_0x4f3840(0x284)]()[_0x4f3840(0x234)],_0x3d9d4c=_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x26a)][_0x4f3840(0x264)](_0x3e0975),_0x156384={'document':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2daeec=_0x157373(_0x4fed40,_0x3d9d4c,_0x156384)[_0x4f3840(0x1c0)];_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x27c)](_0x5212bf=>{const _0x316d82=_0x4f3840;if(_0x5212bf[_0x316d82(0x1c9)](_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x28a)][_0x316d82(0x225)]),_0x4b053c)_0x38ffd8[_0x316d82(0x23c)][_0x316d82(0x265)](_0x316d82(0x1ec))[_0x316d82(0x21c)](_0x2daeec);else{for(const _0x383a36 of _0x2daeec)_0x383a36[_0x316d82(0x230)]=_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x234)],_0x5212bf[_0x316d82(0x1b7)][_0x316d82(0x25d)](_0x383a36),_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x28d)](_0x383a36);}}),this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x4f3840(0x26e))[_0x4f3840(0x22e)]();}[_0x410544(0x221)](_0x4c0d85,_0x4a9a8b){const _0x514a2f=_0x410544;return _0x4c0d85[_0x514a2f(0x1c6)](_0x569456=>{const _0x3af971=_0x514a2f;if(_0x3af971(0x1f2)==_0x569456[_0x3af971(0x1e7)]){const _0x55c8a9=_0x569456[_0x3af971(0x28c)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x55c8a9);}if(_0x569456[_0x3af971(0x1e7)][_0x3af971(0x261)](_0x3af971(0x1b6))>-0x1){const _0x1a8eac=_0x569456[_0x3af971(0x22a)][_0x3af971(0x283)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x1a8eac);}return!0x0;});}[_0x410544(0x1d3)](_0x2e70d9,_0x48a445,_0x277b38){const _0x429831=_0x410544,_0x4afcbf=_0x48a445[_0x429831(0x275)]();for(const _0x3507bf in _0x48a445){const _0xde5f58=_0x48a445[_0x3507bf];_0xde5f58 instanceof _0x50f276?_0x48a445[_0x3507bf]=new _0x50f276(_0x5a2766(_0xde5f58[_0x429831(0x283)]),_0x5a2766(_0xde5f58[_0x429831(0x219)])):_0xde5f58 instanceof _0x51cfb4&&(_0x48a445[_0x3507bf]=_0x5a2766(_0xde5f58));}if([_0x429831(0x245),_0x429831(0x1c8),_0x429831(0x21e),_0x429831(0x26d),_0x429831(0x206),_0x429831(0x1d1)][_0x429831(0x1b1)](_0x4afcbf[_0x429831(0x1e7)])){if(_0x4afcbf[_0x429831(0x21d)]=!0x1,_0x4afcbf[_0x429831(0x230)]=null,_0x429831(0x21e)==_0x4afcbf[_0x429831(0x1e7)]){const _0x1b6224=_0x4afcbf[_0x429831(0x25b)],_0x4fbe15=_0x4afcbf[_0x429831(0x231)];new _0x18765a(_0x1b6224,_0x4fbe15)[_0x429831(0x271)]();}else _0x4afcbf[_0x429831(0x271)]();}function _0x5a2766(_0x1a8782){const _0x2ede8a=_0x429831;if(_0x2ede8a(0x240)==_0x1a8782[_0x2ede8a(0x1d4)][_0x2ede8a(0x1e9)])return _0x1a8782;const _0x1ba70e=[];let _0x24d46a=_0x1a8782[_0x2ede8a(0x1d4)];for(let _0x46aa20=0x0;_0x46aa20<_0x1a8782[_0x2ede8a(0x1d5)][_0x2ede8a(0x255)];_0x46aa20++){const _0xc38a55=_0x2e70d9[_0x2ede8a(0x265)](_0x24d46a)||0x0;_0x1ba70e[_0x46aa20]=_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]+_0xc38a55,_0x24d46a=_0x24d46a[_0x2ede8a(0x1e3)](_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]);}return new _0x51cfb4(_0x277b38,_0x1ba70e,_0x1a8782[_0x2ede8a(0x1ba)]);}}[_0x410544(0x1b9)](){const _0x4c3f1a=_0x410544;if(!this[_0x4c3f1a(0x1d8)])return;this[_0x4c3f1a(0x20e)][_0x4c3f1a(0x255)]>0x0&&this[_0x4c3f1a(0x1de)](),this[_0x4c3f1a(0x273)]=0x0,this[_0x4c3f1a(0x217)]=!0x1;const {action:_0x4f4c36,content:_0xb20a06,version:_0x86ab85,mainView:_0x75ee74,aiBalloon:_0x98803d}=this[_0x4c3f1a(0x1d8)];_0x75ee74[_0x4c3f1a(0x1be)]=!0x1,_0x75ee74[_0x4c3f1a(0x21b)](),this[_0x4c3f1a(0x239)](_0x75ee74,_0x98803d);const _0x3a504e=_0x75ee74;_0x3a504e[_0x4c3f1a(0x1d6)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)][_0x4c3f1a(0x288)]({'isOn':!0x1,'icon':_0x4283d4}),this[_0x4c3f1a(0x27d)](_0x75ee74),_0x75ee74[_0x4c3f1a(0x229)](),this[_0x4c3f1a(0x233)](),this[_0x4c3f1a(0x1ed)](_0xb20a06,_0x86ab85,_0x75ee74,_0x98803d,_0x4f4c36)[_0x4c3f1a(0x1cf)](_0x1820ec=>{const _0x4dacf8=_0x4c3f1a;this[_0x4dacf8(0x22b)](_0x1820ec)||console[_0x4dacf8(0x1fd)](_0x4dacf8(0x1cc),_0x1820ec);});}[_0x410544(0x27d)](_0x55f43f){const _0x424410=_0x410544,_0x4e7d15=_0x55f43f[_0x424410(0x26c)][_0x424410(0x1da)];for(;_0x4e7d15[_0x424410(0x255)]>0x0;)_0x4e7d15[_0x424410(0x21e)](_0x4e7d15[_0x424410(0x28b)]);_0x55f43f[_0x424410(0x26c)][_0x424410(0x1f6)]=!0x1;}[_0x410544(0x22b)](_0x36434f){const _0x22bacd=_0x410544;return!!_0x36434f[_0x22bacd(0x1f0)]&&_0x36434f[_0x22bacd(0x1f0)][_0x22bacd(0x24c)](_0x22bacd(0x207));}[_0x410544(0x208)](){const _0x46eeb2=_0x410544;this[_0x46eeb2(0x20e)]=[],this[_0x46eeb2(0x1d8)]=void 0x0,this[_0x46eeb2(0x273)]=0x0,this[_0x46eeb2(0x233)]();}[_0x410544(0x1de)](){const _0x41909a=_0x410544;this[_0x41909a(0x1f5)]&&this[_0x41909a(0x1f5)][_0x41909a(0x238)](),this[_0x41909a(0x1fe)][_0x41909a(0x247)](),this[_0x41909a(0x202)]=!0x1;}[_0x410544(0x218)](){const _0x16dcc2=_0x410544,_0x27a20=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x204668=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x4b5fe4=new _0x5b2a42(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x5a3cb2=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]);_0x27a20[_0x16dcc2(0x288)]({'icon':_0x5cd54c,'label':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x272)),'tooltip':!0x0,'class':_0x16dcc2(0x246)}),_0x204668[_0x16dcc2(0x288)]({'icon':_0x5e5e45,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x1b5)),'class':_0x16dcc2(0x226)}),_0x4b5fe4[_0x16dcc2(0x1ca)]({'tag':_0x16dcc2(0x1db),'attributes':{'class':[_0x16dcc2(0x1f3)]},'children':[_0x16dcc2(0x1ef)]}),_0x5a3cb2[_0x16dcc2(0x288)]({'icon':_0x357da0,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x286)),'class':_0x16dcc2(0x20a)}),_0x27a20[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x345c0c=>!_0x345c0c),_0x27a20['on'](_0x16dcc2(0x26f),()=>{const _0x4af22c=_0x16dcc2;this[_0x4af22c(0x1b9)]();}),_0x204668[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x2fb754=>!_0x2fb754),_0x204668['on'](_0x16dcc2(0x26f),()=>{const _0x25c0d2=_0x16dcc2;this[_0x25c0d2(0x1b0)]();}),_0x5a3cb2[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x393d1f=>!_0x393d1f),_0x5a3cb2['on'](_0x16dcc2(0x26f),()=>{const _0x60a7c9=_0x16dcc2;this[_0x60a7c9(0x276)]();}),this[_0x16dcc2(0x1c4)]=_0x204668,this[_0x16dcc2(0x279)]=_0x4b5fe4,this[_0x16dcc2(0x201)]=_0x5a3cb2,this[_0x16dcc2(0x262)][_0x16dcc2(0x1bf)](_0x27a20);}[_0x410544(0x1b0)](){const _0x33ca77=_0x410544,_0x547c8e=this[_0x33ca77(0x20e)][_0x33ca77(0x255)];this[_0x33ca77(0x273)]<_0x547c8e-0x1&&this[_0x33ca77(0x215)](this[_0x33ca77(0x273)]+0x1);}[_0x410544(0x276)](){const _0x51810e=_0x410544;this[_0x51810e(0x273)]>0x0&&this[_0x51810e(0x215)](this[_0x51810e(0x273)]-0x1);}async[_0x410544(0x215)](_0x2adc14){const _0xbcc471=_0x410544;if(!this[_0xbcc471(0x1d8)])return;this[_0xbcc471(0x273)]=_0x2adc14;const {mainView:_0x4b120e}=this[_0xbcc471(0x1d8)],_0x2c1547=this[_0xbcc471(0x20e)][this[_0xbcc471(0x20e)][_0xbcc471(0x255)]-0x1-this[_0xbcc471(0x273)]];if(!_0x2c1547)return;if(_0x2c1547[_0xbcc471(0x1bd)])return this[_0xbcc471(0x277)](_0x2c1547,_0x4b120e),void this[_0xbcc471(0x233)]();if(!_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)])return;_0x4b120e[_0xbcc471(0x21b)](),this[_0xbcc471(0x1d8)]&&this[_0xbcc471(0x239)](_0x4b120e,this[_0xbcc471(0x1d8)][_0xbcc471(0x216)]);const _0x54489e=_0x2c1547[_0xbcc471(0x224)][_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)]-0x1];if(_0x54489e){const _0x61d889=this[_0xbcc471(0x1e5)];this[_0xbcc471(0x27d)](_0x4b120e);try{const _0x2e5f7b=_0x37135b({'editor':_0x61d889,'changeGroups':_0x54489e[_0xbcc471(0x1f8)],'documentContextContent':_0x54489e[_0xbcc471(0x232)],'showDiff':this[_0xbcc471(0x217)],'trimUnchanged':!0x1});this[_0xbcc471(0x27d)](_0x4b120e),await new Promise(_0x58c58d=>setTimeout(_0x58c58d,0x32)),await _0x4b120e[_0xbcc471(0x200)]({'parts':_0x2e5f7b,'renderingStrategy':_0xbcc471(0x278),'abortSignal':new AbortController()[_0xbcc471(0x1d2)]});}catch(_0x4350ff){this[_0xbcc471(0x22b)](_0x4350ff)||console[_0xbcc471(0x1fd)](_0xbcc471(0x244),_0x4350ff);}}this[_0xbcc471(0x233)]();}[_0x410544(0x233)](){const _0x134f83=_0x410544;if(!this[_0x134f83(0x1c4)]||!this[_0x134f83(0x279)]||!this[_0x134f83(0x201)])return;const _0x185cd5=this[_0x134f83(0x20e)][_0x134f83(0x255)],_0x51422e=_0x185cd5>0x1,_0x25052f=this[_0x134f83(0x1d8)]?.[_0x134f83(0x27b)];if(_0x51422e){this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)]||(this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x0);const _0x45dc37=_0x185cd5-this[_0x134f83(0x273)];this[_0x134f83(0x279)][_0x134f83(0x269)]&&(this[_0x134f83(0x279)][_0x134f83(0x269)][_0x134f83(0x22c)]=_0x45dc37+'/'+_0x185cd5),this[_0x134f83(0x1c4)][_0x134f83(0x285)]=this[_0x134f83(0x273)]<_0x185cd5-0x1,this[_0x134f83(0x201)][_0x134f83(0x285)]=this[_0x134f83(0x273)]>0x0;}else(this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)])&&(this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x1);}[_0x410544(0x259)](_0x4ca1a9,_0x36f1fd){const _0x647178=_0x410544;_0x4ca1a9[_0x647178(0x25a)](),_0x36f1fd[_0x647178(0x20c)][_0x647178(0x25a)](),this[_0x647178(0x202)]=!0x0;}async[_0x410544(0x277)](_0x3ca01d,_0xc0214e){const _0x3a676c=_0x410544,_0x2fa2ea=_0x1933ba(this[_0x3a676c(0x1e5)][_0x3a676c(0x220)],_0x3a676c(0x228));_0xc0214e[_0x3a676c(0x1dd)](_0x2fa2ea),_0x3ca01d[_0x3a676c(0x1bd)]=!0x0,await this[_0x3a676c(0x1fe)][_0x3a676c(0x270)],_0xc0214e[_0x3a676c(0x282)](),this[_0x3a676c(0x1d8)]?.[_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)]&&(this[_0x3a676c(0x1d8)][_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)][_0x3a676c(0x266)]=!0x0);}[_0x410544(0x239)](_0x15acd9,_0x300ce5){const _0x3afcf4=_0x410544;_0x15acd9[_0x3afcf4(0x23b)](),_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)]&&(_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)][_0x3afcf4(0x266)]=!0x1);}async[_0x410544(0x287)](_0x443fc4,_0x31c875){const _0x473d2a=_0x410544;await this[_0x473d2a(0x1fe)][_0x473d2a(0x270)],this[_0x473d2a(0x202)]=!0x1,_0x443fc4[_0x473d2a(0x24f)](),_0x31c875[_0x473d2a(0x20c)][_0x473d2a(0x24f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3f4d(){const _0x49c092=['actionName','180DmwAqj','html','executeAction','getDocumentContext','1294676bSdWXi','connector','push','version','11643876lOjoWJ','replyCreated','createReply','5YwFgJO','16589avNmfu','2384008tMImab','22MqWoCQ','6seeXwu','current-document','sendRequest','executeCustomAction','fire','replies','6399hfllBY','content','model','Current\x20document','userMessage','2430342ThZokH','1990240GeeFil','TEXT','86zjBkkl','args','editor','delegate','hasError'];_0x3f4d=function(){return _0x49c092;};return _0x3f4d();}const _0x518a51=_0x36a1;function _0x36a1(_0x3bcbba,_0x30c0fe){const _0x3f4de6=_0x3f4d();return _0x36a1=function(_0x36a17e,_0x4c3115){_0x36a17e=_0x36a17e-0x183;let _0x62ef64=_0x3f4de6[_0x36a17e];return _0x62ef64;},_0x36a1(_0x3bcbba,_0x30c0fe);}(function(_0x16c762,_0x5eb664){const _0x54bbfa=_0x36a1,_0x52c214=_0x16c762();while(!![]){try{const _0x5c8438=parseInt(_0x54bbfa(0x19d))/0x1*(parseInt(_0x54bbfa(0x18b))/0x2)+-parseInt(_0x54bbfa(0x1a0))/0x3*(-parseInt(_0x54bbfa(0x195))/0x4)+parseInt(_0x54bbfa(0x19c))/0x5*(parseInt(_0x54bbfa(0x188))/0x6)+parseInt(_0x54bbfa(0x189))/0x7+parseInt(_0x54bbfa(0x19e))/0x8+-parseInt(_0x54bbfa(0x183))/0x9*(parseInt(_0x54bbfa(0x191))/0xa)+parseInt(_0x54bbfa(0x19f))/0xb*(-parseInt(_0x54bbfa(0x199))/0xc);if(_0x5c8438===_0x5eb664)break;else _0x52c214['push'](_0x52c214['shift']());}catch(_0x3ec4eb){_0x52c214['push'](_0x52c214['shift']());}}}(_0x3f4d,0x60567));import{AIInteraction as _0x351d25,AI_MODEL_EVENT_NAMES as _0x1747a1}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x252d1a}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0xc6b58b}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x351d25{[_0x518a51(0x184)];[_0x518a51(0x198)];[_0x518a51(0x190)];[_0x518a51(0x18c)];[_0x518a51(0x187)];[_0x518a51(0x185)];[_0x518a51(0x18f)]=!0x1;constructor(_0x4128ea){const _0x22c837=_0x518a51;super(_0x4128ea),this[_0x22c837(0x184)]=_0x4128ea[_0x22c837(0x184)],this[_0x22c837(0x198)]=_0x4128ea[_0x22c837(0x198)],this[_0x22c837(0x190)]=_0x4128ea[_0x22c837(0x190)],this[_0x22c837(0x18c)]=_0x4128ea[_0x22c837(0x18c)],this[_0x22c837(0x187)]=_0x4128ea[_0x22c837(0x187)],this[_0x22c837(0x185)]=_0x4128ea[_0x22c837(0x185)];}async[_0x518a51(0x1a2)](){const _0x2cd8b2=_0x518a51;return this[_0x2cd8b2(0x190)]?this[_0x2cd8b2(0x196)][_0x2cd8b2(0x193)]({'content':this[_0x2cd8b2(0x184)],'actionName':this[_0x2cd8b2(0x190)],'args':this[_0x2cd8b2(0x18c)]}):this[_0x2cd8b2(0x196)][_0x2cd8b2(0x1a3)]({'content':this[_0x2cd8b2(0x184)],'message':this[_0x2cd8b2(0x187)],'model':this[_0x2cd8b2(0x185)],'outputFormat':_0x2cd8b2(0x192)});}[_0x518a51(0x194)](){const _0x526b0a=_0x518a51;return{'type':_0x252d1a[_0x526b0a(0x18a)],'content':this[_0x526b0a(0x184)],'version':this[_0x526b0a(0x198)],'label':_0x526b0a(0x186),'uiId':_0x526b0a(0x1a1)};}[_0x518a51(0x19b)](_0x184445){const _0x35ee3e=_0x518a51,_0x16f019=new _0xc6b58b({'editor':this[_0x35ee3e(0x18d)],'documentContextContent':this[_0x35ee3e(0x184)],..._0x184445});return this[_0x35ee3e(0x1a5)][_0x35ee3e(0x197)](_0x16f019),_0x16f019[_0x35ee3e(0x18e)](..._0x1747a1)['to'](this),this[_0x35ee3e(0x1a4)](_0x35ee3e(0x19a),_0x16f019),_0x16f019;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5b8b82=_0x3b6f;(function(_0x5ec03a,_0x24788a){const _0x19741a=_0x3b6f,_0xc8526b=_0x5ec03a();while(!![]){try{const _0x2e4612=-parseInt(_0x19741a(0x186))/0x1*(parseInt(_0x19741a(0x198))/0x2)+-parseInt(_0x19741a(0x18d))/0x3*(-parseInt(_0x19741a(0x188))/0x4)+parseInt(_0x19741a(0x18a))/0x5+parseInt(_0x19741a(0x184))/0x6+parseInt(_0x19741a(0x196))/0x7*(parseInt(_0x19741a(0x193))/0x8)+-parseInt(_0x19741a(0x18e))/0x9*(parseInt(_0x19741a(0x187))/0xa)+-parseInt(_0x19741a(0x192))/0xb;if(_0x2e4612===_0x24788a)break;else _0xc8526b['push'](_0xc8526b['shift']());}catch(_0x302146){_0xc8526b['push'](_0xc8526b['shift']());}}}(_0x349a,0xb2e0d));import{AIReply as _0x56475f}from'../../aicore/model/aireply.js';function _0x349a(){const _0x46e7f1=['56948QGQYhy','cloneNode','3632100npxjKa','isDone','childNodes','75roMSCg','5617071krZITz','node','changeGroups','value','4586879KbWilD','104CxEVhT','data-id','updateChangeGroups','598129uEgicj','new','2YwJNGJ','children','pop','length','parsedMergedContent','added','documentContextContent','modified','pending','_getDifferentChangeGroups','map','parsedContent','8261610ikIcrL','removed','1172179SqNZKR','20YPINJG'];_0x349a=function(){return _0x46e7f1;};return _0x349a();}function _0x3b6f(_0x5685ea,_0x1066f2){const _0x349a04=_0x349a();return _0x3b6f=function(_0x3b6f91,_0xd85fd){_0x3b6f91=_0x3b6f91-0x17d;let _0xd925cd=_0x349a04[_0x3b6f91];return _0xd925cd;},_0x3b6f(_0x5685ea,_0x1066f2);}import{getAttribute as _0x436538}from'../../aicore/utils/htmlparser.js';import{uid as _0x3082e7}from'ckeditor5/src/utils.js';import{diffArrays as _0x1aa18c}from'diff';export class AIActionsReply extends _0x56475f{[_0x5b8b82(0x195)](){const _0x4d623d=_0x5b8b82;if(this[_0x4d623d(0x19c)]=this[_0x4d623d(0x183)][_0x4d623d(0x189)](!0x0),0x0==this[_0x4d623d(0x19c)][_0x4d623d(0x18c)][_0x4d623d(0x19b)])return void(this[_0x4d623d(0x190)]=[]);const _0x1c7683=this[_0x4d623d(0x17e)][_0x4d623d(0x199)][_0x4d623d(0x182)](_0x794b0e=>({'node':_0x794b0e,'id':_0x436538(_0x794b0e,_0x4d623d(0x194))})),_0xeea7a2=this[_0x4d623d(0x19c)][_0x4d623d(0x199)][_0x4d623d(0x182)](_0x1bf6c1=>({'node':_0x1bf6c1,'id':_0x436538(_0x1bf6c1,_0x4d623d(0x194))||_0x3082e7()})),_0x2b17fe=_0x1aa18c(_0x1c7683,_0xeea7a2,{'comparator':(_0x3b483d,_0x554a98)=>_0x3b483d['id']==_0x554a98['id'],'oneChangePerToken':!0x0});if(!this[_0x4d623d(0x18b)]){for(;_0x2b17fe[_0x4d623d(0x19b)]&&_0x2b17fe[_0x2b17fe[_0x4d623d(0x19b)]-0x1][_0x4d623d(0x185)];)_0x2b17fe[_0x4d623d(0x19a)]();}const _0x4d5d76=_0x2b17fe[_0x4d623d(0x182)](_0x5f334c=>{const _0x554ad4=_0x4d623d,_0x48103a=_0x5f334c[_0x554ad4(0x17d)]?_0x554ad4(0x197):_0x5f334c[_0x554ad4(0x185)]?_0x554ad4(0x185):_0x554ad4(0x17f);return{'node':_0x5f334c[_0x554ad4(0x191)][0x0][_0x554ad4(0x18f)],'type':_0x48103a,'id':_0x5f334c[_0x554ad4(0x191)][0x0]['id']};});this[_0x4d623d(0x190)]=[{'changes':_0x4d5d76,'state':_0x4d623d(0x180),'index':0x0}];}[_0x5b8b82(0x181)](_0x4f0048,_0x26fd3b){return _0x26fd3b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16fa74=_0x542d;(function(_0x206588,_0x1f6288){var _0x477ee8=_0x542d,_0x1254d4=_0x206588();while(!![]){try{var _0x2c5345=-parseInt(_0x477ee8(0x73))/0x1+parseInt(_0x477ee8(0x6e))/0x2+-parseInt(_0x477ee8(0x74))/0x3+-parseInt(_0x477ee8(0x71))/0x4*(parseInt(_0x477ee8(0x7e))/0x5)+-parseInt(_0x477ee8(0x7c))/0x6*(parseInt(_0x477ee8(0x77))/0x7)+-parseInt(_0x477ee8(0x7f))/0x8+-parseInt(_0x477ee8(0x80))/0x9*(-parseInt(_0x477ee8(0x78))/0xa);if(_0x2c5345===_0x1f6288)break;else _0x1254d4['push'](_0x1254d4['shift']());}catch(_0x3d3ffe){_0x1254d4['push'](_0x1254d4['shift']());}}}(_0x1435,0x94f5a));import{Plugin as _0x3b89b4}from'ckeditor5/src/core.js';function _0x542d(_0x46d0a3,_0x15428c){var _0x14355c=_0x1435();return _0x542d=function(_0x542d79,_0xbbc4c4){_0x542d79=_0x542d79-0x6e;var _0x132f99=_0x14355c[_0x542d79];return _0x132f99;},_0x542d(_0x46d0a3,_0x15428c);}function _0x1435(){var _0x16edf3=['AIAdapter','5820Dbgsfr','281943qMHEVx','textAdapter','AIRequestError','215026VKLSdj','26260370RCZGTb','pluginName','afterInit','isOfficialPlugin','204iQGkbZ','name','5yTsoju','3713232bIjDXN','9aFIEIY','81582uszAJd','aiadapter-text-adapter-not-set','isPremiumPlugin','1793292FFGPlD'];_0x1435=function(){return _0x16edf3;};return _0x1435();}import{CKEditorError as _0x41636f}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3b89b4{static get[_0x16fa74(0x79)](){var _0x37d8a4=_0x16fa74;return _0x37d8a4(0x72);}static get[_0x16fa74(0x7b)](){return!0x0;}static get[_0x16fa74(0x70)](){return!0x0;}[_0x16fa74(0x7a)](){var _0x3d9d9a=_0x16fa74;if(!this[_0x3d9d9a(0x75)])throw new _0x41636f(_0x3d9d9a(0x6f),null);}}export class AIRequestError extends Error{constructor(_0x598d30){var _0x25ae64=_0x16fa74;super(_0x598d30),this[_0x25ae64(0x7d)]=_0x25ae64(0x76);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e6f3c=_0x4cb5;(function(_0x5d576d,_0x40edcd){const _0x50bdbc=_0x4cb5,_0x54c96f=_0x5d576d();while(!![]){try{const _0x13b256=parseInt(_0x50bdbc(0x16d))/0x1+parseInt(_0x50bdbc(0x151))/0x2+-parseInt(_0x50bdbc(0x14a))/0x3*(-parseInt(_0x50bdbc(0x162))/0x4)+parseInt(_0x50bdbc(0x15e))/0x5*(-parseInt(_0x50bdbc(0x16c))/0x6)+-parseInt(_0x50bdbc(0x15f))/0x7*(-parseInt(_0x50bdbc(0x163))/0x8)+-parseInt(_0x50bdbc(0x14e))/0x9+-parseInt(_0x50bdbc(0x16e))/0xa;if(_0x13b256===_0x40edcd)break;else _0x54c96f['push'](_0x54c96f['shift']());}catch(_0x5cebcf){_0x54c96f['push'](_0x54c96f['shift']());}}}(_0xa072,0x77433));function _0xa072(){const _0x5a68b4=['511wyUsVo','_prepareRequestHeaders','aitextadapter-send-request-failed','4mTsOhh','81544FxujQV','get','sendRequest','textAdapter','init','AI_ERROR_GET_PARAMETERS','editor','reject','error','6rdtBIs','274927RWUtCP','6121320UsPBnv','219282vkkfXw','resolve','plugins','requires','124326Eelavv','signal','object','1857148wCjkSS','makeRequest','name','abortController','_prepareRequestParameters','catch','locale','aborted','assign','AI_ERROR_GET_HEADERS','AbortError','application/json','abort','4531195TqnfRd'];_0xa072=function(){return _0x5a68b4;};return _0xa072();}import{Plugin as _0x1ad7c3}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ae9ff}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4a43cd,AIRequestError as _0x80876b}from'./aiadapter.js';import{getTranslation as _0x2a9018}from'../utils/common-translations.js';function _0x4cb5(_0x401737,_0x33d1b1){const _0xa072e7=_0xa072();return _0x4cb5=function(_0x4cb5e8,_0x59a4f1){_0x4cb5e8=_0x4cb5e8-0x14a;let _0x55f4c0=_0xa072e7[_0x4cb5e8];return _0x55f4c0;},_0x4cb5(_0x401737,_0x33d1b1);}export class AITextAdapter extends _0x1ad7c3{[_0x1e6f3c(0x154)];static get[_0x1e6f3c(0x14d)](){return[_0x4a43cd];}constructor(_0xee7b5b){const _0x516be3=_0x1e6f3c;super(_0xee7b5b),this[_0x516be3(0x154)]=new AbortController();}[_0x1e6f3c(0x167)](){const _0x5bb540=_0x1e6f3c;this[_0x5bb540(0x169)][_0x5bb540(0x14c)][_0x5bb540(0x164)](_0x4a43cd)[_0x5bb540(0x166)]=this;}[_0x1e6f3c(0x15d)](){const _0xe49b62=_0x1e6f3c;this[_0xe49b62(0x154)][_0xe49b62(0x14f)][_0xe49b62(0x158)]||(this[_0xe49b62(0x154)][_0xe49b62(0x15d)](),this[_0xe49b62(0x154)]=new AbortController());}async[_0x1e6f3c(0x152)](_0x5a7171){const _0x17a9d7=_0x1e6f3c;return this[_0x17a9d7(0x165)](_0x5a7171)[_0x17a9d7(0x156)](_0x338147=>{const _0x4bd6df=_0x17a9d7;if(_0x338147 instanceof _0x80876b)return Promise[_0x4bd6df(0x16a)](_0x338147);if(_0x4bd6df(0x15b)==_0x338147[_0x4bd6df(0x153)])return Promise[_0x4bd6df(0x14b)]();throw console[_0x4bd6df(0x16b)](_0x338147),new _0x3ae9ff(_0x4bd6df(0x161),null);});}async[_0x1e6f3c(0x160)](_0x4e15b3,_0x12009b){const _0x1e0950=_0x1e6f3c,_0x3cb210=this[_0x1e0950(0x169)][_0x1e0950(0x157)],_0x1e0352={'Content-Type':_0x1e0950(0x15c)};if(_0x1e0950(0x150)==typeof _0x4e15b3)Object[_0x1e0950(0x159)](_0x1e0352,_0x4e15b3);else{if(_0x4e15b3)try{const _0x176fde=await _0x4e15b3(_0x12009b);Object[_0x1e0950(0x159)](_0x1e0352,_0x176fde);}catch{return Promise[_0x1e0950(0x16a)](new _0x80876b(_0x2a9018(_0x3cb210,_0x1e0950(0x15a))));}}return _0x1e0352;}async[_0x1e6f3c(0x155)](_0x166d5c,_0x4f82d5){const _0x2d2e47=_0x1e6f3c,_0x4077d6=this[_0x2d2e47(0x169)][_0x2d2e47(0x157)];if(_0x2d2e47(0x150)==typeof _0x166d5c)return _0x166d5c;try{return await _0x166d5c(_0x4f82d5);}catch{return Promise[_0x2d2e47(0x16a)](new _0x80876b(_0x2a9018(_0x4077d6,_0x2d2e47(0x168))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5642bf=_0xf88c;(function(_0x4819de,_0x190d95){const _0xd86ba3=_0xf88c,_0x5932f8=_0x4819de();while(!![]){try{const _0x5c3993=parseInt(_0xd86ba3(0x105))/0x1+-parseInt(_0xd86ba3(0xf4))/0x2*(parseInt(_0xd86ba3(0x119))/0x3)+parseInt(_0xd86ba3(0x102))/0x4*(-parseInt(_0xd86ba3(0x104))/0x5)+parseInt(_0xd86ba3(0x115))/0x6*(-parseInt(_0xd86ba3(0x101))/0x7)+-parseInt(_0xd86ba3(0xde))/0x8*(-parseInt(_0xd86ba3(0xfd))/0x9)+-parseInt(_0xd86ba3(0xf5))/0xa+parseInt(_0xd86ba3(0x11d))/0xb*(parseInt(_0xd86ba3(0xdf))/0xc);if(_0x5c3993===_0x190d95)break;else _0x5932f8['push'](_0x5932f8['shift']());}catch(_0x15b20e){_0x5932f8['push'](_0x5932f8['shift']());}}}(_0x5918,0x450a3));import{AITextAdapter as _0x430538}from'./aitextadapter.js';import{AIRequestError as _0x5c0fce}from'./aiadapter.js';import{BedrockRuntimeClient as _0x18ffeb,InvokeModelCommand as _0x3cb64b,InvokeModelWithResponseStreamCommand as _0x203bf3}from'@aws-sdk/client-bedrock-runtime';function _0xf88c(_0x514580,_0x103bcd){const _0x591846=_0x5918();return _0xf88c=function(_0xf88c7e,_0x4757d7){_0xf88c7e=_0xf88c7e-0xd0;let _0x38b8f5=_0x591846[_0xf88c7e];return _0x38b8f5;},_0xf88c(_0x514580,_0x103bcd);}function _0x5918(){const _0x3fe2e6=['_prepareRequestHeaders','config','resolve','86898qEpVIy','send','Human:\x0a','bytes','1344021rxdmUv','filter','data','get','11UvHToV','length','bedrock-2023-05-31','body','AWSTextAdapter','application/json','pluginName','ai21.j2','split','editor','getModelFamily','signal','ai.assistant.adapter.aws.requestParameters','\x0a<</SYS>>\x0a[INST]\x0a','_processAWSRequest','utf-8','generation','_readStreamableResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','1552IylEKI','11315076ZVmUvx','meta.llama','stringify','test','_bedrockClientConfig','text','decode','ai.assistant.adapter.aws.bedrockClientConfig','completion','AI_ERROR_UNSUPPORTED_MODEL','_requestHeaders','chunk','locale','POST','anthropic.claude','_readStaticResponse','anthropic.claude-v2','_apiUrl','preparePrompt','cohere.command','json','2CyWgXk','1136610EuideG','sendRequest','_requestParameters','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.','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.','\x0a[/INST]','join','<<SYS>>\x0a','4113XgrBDQ','abortController','_processProxyRequest','Instruction:\x0a','42MoFQdO','4vPpPVg','completions','2493070jYrcws','398386CZNgXi','\x0a\x0aAssistant:','parse','_readAsyncIterableResponse','generations','ai.assistant.adapter.aws.apiUrl','_prepareRequestParameters','ai.assistant.adapter.aws.requestHeaders','map','read','define','getReader','_getGeneratedText'];_0x5918=function(){return _0x3fe2e6;};return _0x5918();}import{getTranslation as _0x47beab}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x430538{[_0x5642bf(0xf0)];[_0x5642bf(0xe9)];[_0x5642bf(0xe3)];[_0x5642bf(0xf7)];static get[_0x5642bf(0xd1)](){const _0x1dd9b4=_0x5642bf;return _0x1dd9b4(0x121);}constructor(_0x33e560){const _0x57b937=_0x5642bf;super(_0x33e560),_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xd7))||_0x33e560[_0x57b937(0x113)][_0x57b937(0x10f)](_0x57b937(0xd7),{'model':_0x57b937(0xef),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x57b937(0x11f),'stream':!0x0}),this[_0x57b937(0xf0)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0x10a)),this[_0x57b937(0xe3)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xe6)),this[_0x57b937(0xe9)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0x10c)),this[_0x57b937(0xf7)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xd7));}async[_0x5642bf(0xf6)]({query:_0x1b99a1,context:_0x5b5ddd,onData:_0x2d7923,actionId:_0x34ae30}){const _0x368c6b=_0x5642bf,{model:_0x9e11d0,stream:_0x5368c3,..._0x222e93}=await this[_0x368c6b(0x10b)](this[_0x368c6b(0xf7)],_0x34ae30),_0x24edb8={'prompt':await this[_0x368c6b(0xf1)](_0x1b99a1,_0x5b5ddd,_0x9e11d0,_0x34ae30),..._0x222e93};this[_0x368c6b(0xf0)]?await this[_0x368c6b(0xff)](_0x24edb8,_0x9e11d0,_0x5368c3,_0x2d7923,_0x34ae30):await this[_0x368c6b(0xd9)](_0x24edb8,_0x9e11d0,_0x5368c3,_0x2d7923);}async[_0x5642bf(0xf1)](_0x1d85d6,_0x128cee,_0x8b714e,_0x5e8377){const _0x384308=_0x5642bf;let _0x33d30c,_0x52fcf2;return _0x128cee?(_0x33d30c=_0x384308(0xf9),_0x52fcf2=_0x384308(0x100)+_0x1d85d6+_0x384308(0xdd)+_0x128cee):(_0x33d30c=_0x384308(0xf8),_0x52fcf2=_0x1d85d6),_0x384308(0xe0)==this[_0x384308(0xd5)](_0x8b714e)?_0x384308(0xfc)+_0x33d30c+_0x384308(0xd8)+_0x52fcf2+_0x384308(0xfa):_0x384308(0x117)+_0x33d30c+'\x0a'+_0x52fcf2+_0x384308(0x106);}[_0x5642bf(0xd5)](_0x4ea2a9){const _0x439615=_0x5642bf;if(/^anthropic\.claude/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xed);if(/^ai21\.j2/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xd2);if(/^cohere\.command/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xf2);if(/^meta\.llama/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xe0);throw new _0x5c0fce(_0x47beab(this[_0x439615(0xd4)][_0x439615(0xeb)],_0x439615(0xe8),_0x4ea2a9));}async[_0x5642bf(0xff)](_0x3b95a3,_0x282f1a,_0x328075,_0x48d5d1,_0x189216){const _0x15c2ac=_0x5642bf,_0xc9a1c={'method':_0x15c2ac(0xec),'headers':await this[_0x15c2ac(0x112)](this[_0x15c2ac(0xe9)],_0x189216),'body':JSON[_0x15c2ac(0xe1)]({..._0x3b95a3,'model':_0x282f1a,'stream':_0x328075}),'signal':this[_0x15c2ac(0xfe)][_0x15c2ac(0xd6)]},_0x6d7024=await fetch(this[_0x15c2ac(0xf0)],_0xc9a1c);_0x328075?await this[_0x15c2ac(0xdc)](_0x6d7024,_0x282f1a,_0x48d5d1):await this[_0x15c2ac(0xee)](_0x6d7024,_0x282f1a,_0x48d5d1);}async[_0x5642bf(0xd9)](_0x39cb3d,_0xe2173e,_0x2e9b1e,_0x61a4fe){const _0x35f8fe=_0x5642bf,_0x5a9e45=new _0x18ffeb(this[_0x35f8fe(0xe3)]),_0x463608={'body':JSON[_0x35f8fe(0xe1)](_0x39cb3d),'contentType':_0x35f8fe(0xd0),'accept':_0x35f8fe(0xd0),'modelId':_0xe2173e};let _0xccc69b;if(_0x2e9b1e){const _0x3d6c2d=new _0x203bf3(_0x463608);_0xccc69b=await _0x5a9e45[_0x35f8fe(0x116)](_0x3d6c2d,{'abortSignal':this[_0x35f8fe(0xfe)][_0x35f8fe(0xd6)]}),await this[_0x35f8fe(0x108)](_0xccc69b,_0xe2173e,_0x61a4fe);}else{const _0x3ef6c2=new _0x3cb64b(_0x463608);_0xccc69b=await _0x5a9e45[_0x35f8fe(0x116)](_0x3ef6c2,{'abortSignal':this[_0x35f8fe(0xfe)][_0x35f8fe(0xd6)]}),await this[_0x35f8fe(0xee)](_0xccc69b,_0xe2173e,_0x61a4fe);}}async[_0x5642bf(0x108)](_0x31af57,_0x3acb2e,_0x381706){const _0x135822=_0x5642bf,_0x4f02c9=_0x31af57[_0x135822(0x120)],_0x357c5a=new TextDecoder(_0x135822(0xda));let _0x44727c='';for await(const _0x1a5fc4 of _0x4f02c9)if(_0x1a5fc4[_0x135822(0xea)]){const _0x531b3a=_0x357c5a[_0x135822(0xe5)](_0x1a5fc4[_0x135822(0xea)][_0x135822(0x118)]),_0x2bbcf8=JSON[_0x135822(0x107)](_0x531b3a);_0x44727c+=this[_0x135822(0x111)](_0x2bbcf8,_0x3acb2e),_0x381706(_0x44727c);}return Promise[_0x135822(0x114)]();}async[_0x5642bf(0xdc)](_0x543648,_0x62c5b3,_0x392217){const _0xe27dc9=_0x5642bf,_0x3cf32f=_0x543648[_0xe27dc9(0x120)],_0x58ff3c=new TextDecoder(_0xe27dc9(0xda)),_0x17103b=_0x3cf32f[_0xe27dc9(0x110)]();let _0x2f4819='',_0x2e1483='',_0x394b25=!0x1;for(;!_0x394b25;){const {done:_0x4dc060,value:_0x546f23}=await _0x17103b[_0xe27dc9(0x10e)]();if(_0x394b25=_0x4dc060,_0x394b25)break;const _0x1333c7=(_0x2f4819+_0x58ff3c[_0xe27dc9(0xe5)](_0x546f23))[_0xe27dc9(0xd3)]('\x0a')[_0xe27dc9(0x10d)](_0x56866d=>{const _0x148447=_0xe27dc9;try{return _0x2f4819='',JSON[_0x148447(0x107)](_0x56866d);}catch{return _0x2f4819=_0x56866d,null;}})[_0xe27dc9(0x11a)](_0x17cfb4=>null!==_0x17cfb4);_0x1333c7[_0xe27dc9(0x11e)]&&(_0x2e1483+=_0x1333c7[_0xe27dc9(0x10d)](_0x4f256c=>this[_0xe27dc9(0x111)](_0x4f256c,_0x62c5b3))[_0xe27dc9(0xfb)](''),_0x392217(_0x2e1483));}return Promise[_0xe27dc9(0x114)]();}async[_0x5642bf(0xee)](_0x50248b,_0x146f37,_0x33c5bf){const _0xdbf572=_0x5642bf;let _0x3c4f7a;return _0x3c4f7a=_0x50248b instanceof Response?await _0x50248b[_0xdbf572(0xf3)]():JSON[_0xdbf572(0x107)](new TextDecoder(_0xdbf572(0xda))[_0xdbf572(0xe5)](_0x50248b[_0xdbf572(0x120)])),(_0x33c5bf(this[_0xdbf572(0x111)](_0x3c4f7a,_0x146f37)),Promise[_0xdbf572(0x114)]());}[_0x5642bf(0x111)](_0x114318,_0x14bac1){const _0x5991b6=_0x5642bf;switch(this[_0x5991b6(0xd5)](_0x14bac1)){case _0x5991b6(0xed):return _0x114318[_0x5991b6(0xe7)];case _0x5991b6(0xd2):return _0x114318[_0x5991b6(0x103)][0x0][_0x5991b6(0x11b)][_0x5991b6(0xe4)];case _0x5991b6(0xf2):return _0x114318[_0x5991b6(0x109)][0x0][_0x5991b6(0xe4)];case _0x5991b6(0xe0):return _0x114318[_0x5991b6(0xdb)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33b32d=_0x568f;(function(_0x5a8f3d,_0x2bab9f){const _0x425f06=_0x568f,_0x2c7f1b=_0x5a8f3d();while(!![]){try{const _0x1b26e7=-parseInt(_0x425f06(0x8d))/0x1*(-parseInt(_0x425f06(0x84))/0x2)+-parseInt(_0x425f06(0x92))/0x3*(-parseInt(_0x425f06(0xc6))/0x4)+parseInt(_0x425f06(0x90))/0x5+parseInt(_0x425f06(0xc0))/0x6+parseInt(_0x425f06(0xbf))/0x7*(-parseInt(_0x425f06(0x8b))/0x8)+-parseInt(_0x425f06(0xa1))/0x9+-parseInt(_0x425f06(0xaf))/0xa;if(_0x1b26e7===_0x2bab9f)break;else _0x2c7f1b['push'](_0x2c7f1b['shift']());}catch(_0x3c2f1d){_0x2c7f1b['push'](_0x2c7f1b['shift']());}}}(_0x28a8,0x8a544));function _0x568f(_0x56242e,_0x43375b){const _0x28a876=_0x28a8();return _0x568f=function(_0x568fc7,_0x4f914f){_0x568fc7=_0x568fc7-0x84;let _0x3f0f89=_0x28a876[_0x568fc7];return _0x3f0f89;},_0x568f(_0x56242e,_0x43375b);}import{AITextAdapter as _0x557cec}from'./aitextadapter.js';import{AIRequestError as _0x14dfa9}from'./aiadapter.js';import{getTranslation as _0xb4eeb6}from'../utils/common-translations.js';function _0x28a8(){const _0xe7bd70=['getReader','pluginName','_requestHeaders','2317860MMQVNk','_prepareRequestParameters','https://api.openai.com/v1/chat/completions','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','reject','split','config','replace','AI_ERROR_MODERATION','content','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.','abortController','_requestParameters','Moderation','signal','7904183vouRGG','4976502uaptdl','stringify','body','stream','gpt-4o','length','2041624SroLQc','resolve','sendRequest','POST','22bVXuSV','delta','define','text','choices','_cleanUpData','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.','8Wamgzb','context_length_exceeded','190vPXOMb','map','prepareMessages','3812930ssgUGZ','_prepareRequestHeaders','6kHgRTz','get','_isBufferIncomplete','user','AI_ERROR_CONTEXT_LENGTH','OpenAITextAdapter','parse','editor','[DONE]','ai.assistant.adapter.openAI.requestParameters','ai.assistant.adapter.openAI.requestHeaders','Instruction:\x0a','json','filter','_apiUrl','6186186lXmiiS','message','_readStaticResponse','data:\x20','read','includes','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','join','locale','system'];_0x28a8=function(){return _0xe7bd70;};return _0x28a8();}export class OpenAITextAdapter extends _0x557cec{[_0x33b32d(0xa0)];[_0x33b32d(0xae)];[_0x33b32d(0xbc)];static get[_0x33b32d(0xad)](){const _0xa269d9=_0x33b32d;return _0xa269d9(0x97);}constructor(_0x24bfa8){const _0x492df6=_0x33b32d;super(_0x24bfa8),_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x86)](_0x492df6(0xb3),_0x492df6(0xb1)),_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9b))||_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x86)](_0x492df6(0x9b),{'model':_0x492df6(0xc4),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x492df6(0xa0)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0xb3)),this[_0x492df6(0xae)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9c))||{},this[_0x492df6(0xbc)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9b));}async[_0x33b32d(0xc8)]({query:_0x7117b1,context:_0x449b04,onData:_0x1a88f5,actionId:_0x224dfa}){const _0x82449f=_0x33b32d,_0x283a51=this[_0x82449f(0x99)][_0x82449f(0xaa)],_0x5c3d57=await this[_0x82449f(0x8f)](_0x7117b1,_0x449b04,_0x224dfa),_0x4d96f7=await this[_0x82449f(0x91)](this[_0x82449f(0xae)],_0x224dfa),_0x3e21da=await this[_0x82449f(0xb0)](this[_0x82449f(0xbc)],_0x224dfa),_0x5aea18={'messages':_0x5c3d57,..._0x3e21da},_0x4f93ab={'method':_0x82449f(0xc9),'headers':_0x4d96f7,'body':JSON[_0x82449f(0xc1)](_0x5aea18),'signal':this[_0x82449f(0xbb)][_0x82449f(0xbe)]},_0x33ff17=await fetch(this[_0x82449f(0xa0)],_0x4f93ab);if(_0x33ff17['ok'])return _0x3e21da[_0x82449f(0xc3)]?await this[_0x82449f(0xb2)](_0x33ff17,_0x1a88f5):await this[_0x82449f(0xa3)](_0x33ff17,_0x1a88f5),Promise[_0x82449f(0xc7)]();{const _0xaafa36=await _0x33ff17[_0x82449f(0x87)]();return _0xaafa36[_0x82449f(0xa6)](_0x82449f(0x8c))?Promise[_0x82449f(0xb4)](new _0x14dfa9(_0xb4eeb6(_0x283a51,_0x82449f(0x96)))):_0xaafa36[_0x82449f(0xa6)](_0x82449f(0xbd))?Promise[_0x82449f(0xb4)](new _0x14dfa9(_0xb4eeb6(_0x283a51,_0x82449f(0xb8)))):Promise[_0x82449f(0xb4)](new Error(_0xaafa36));}}async[_0x33b32d(0x8f)](_0x1d078a,_0x1ff34c,_0x36d065){const _0x1f46a5=_0x33b32d;let _0x59a605,_0x46d6f7;return _0x1ff34c?(_0x59a605=_0x1f46a5(0xba),_0x46d6f7=_0x1f46a5(0x9d)+_0x1d078a+_0x1f46a5(0xa7)+_0x1ff34c):(_0x59a605=_0x1f46a5(0x8a),_0x46d6f7=_0x1d078a),[{'role':_0x1f46a5(0xab),'content':_0x59a605},{'role':_0x1f46a5(0x95),'content':_0x46d6f7}];}async[_0x33b32d(0xb2)](_0x50619d,_0x280794){const _0x2552b8=_0x33b32d,_0x5484d2=_0x50619d[_0x2552b8(0xc2)][_0x2552b8(0xac)](),_0x58bb3d=new TextDecoder();let _0x1ac41e='',_0x7fc76b='',_0x520215='',_0x535de1=!0x1;for(;!_0x535de1;){const {done:_0x3e3ec0,value:_0x31aa21}=await _0x5484d2[_0x2552b8(0xa5)](),_0x182af4=_0x1ac41e+_0x58bb3d[_0x2552b8(0xa8)](_0x31aa21);let _0x560caf='';_0x535de1=_0x3e3ec0;try{_0x560caf=this[_0x2552b8(0x89)](_0x182af4),_0x1ac41e='';}catch{_0x1ac41e=_0x182af4;continue;}_0x7fc76b+=_0x560caf,!_0x535de1&&this[_0x2552b8(0x94)](_0x7fc76b)||_0x7fc76b&&(_0x520215+=_0x7fc76b,_0x7fc76b='',_0x280794(_0x520215));}return Promise[_0x2552b8(0xc7)]();}async[_0x33b32d(0xa3)](_0x188938,_0x7a5b1b){const _0xaeb57b=_0x33b32d;return _0x7a5b1b((await _0x188938[_0xaeb57b(0x9e)]())[_0xaeb57b(0x88)][0x0][_0xaeb57b(0xa2)][_0xaeb57b(0xb9)]),Promise[_0xaeb57b(0xc7)]();}[_0x33b32d(0x94)](_0x25587d){const _0x4fa19a=_0x33b32d,_0x44bcfa=_0x25587d[_0x4fa19a(0xb5)]('<')[_0x4fa19a(0xc5)]!==_0x25587d[_0x4fa19a(0xb5)]('>')[_0x4fa19a(0xc5)],_0x5251ea=_0x25587d[_0x4fa19a(0xc5)]<0x1e;return _0x44bcfa&&_0x5251ea;}[_0x33b32d(0x89)](_0x2122ce){const _0xaec61d=_0x33b32d;return _0x2122ce[_0xaec61d(0xb5)](/\n(?![^{]*\})/g)[_0xaec61d(0x8e)](_0x22f8bd=>_0x22f8bd[_0xaec61d(0xb7)](_0xaec61d(0xa4),''))[_0xaec61d(0x9f)](_0x16249c=>_0x16249c&&_0x16249c[_0xaec61d(0xc5)]>0x0&&_0xaec61d(0x9a)!==_0x16249c)[_0xaec61d(0x8e)](_0x4d8315=>{const _0x231771=_0xaec61d,{choices:_0x40f090}=JSON[_0x231771(0x98)](_0x4d8315);if(_0x40f090[0x0]?.[_0x231771(0x85)]?.[_0x231771(0xb9)])return _0x40f090[0x0][_0x231771(0x85)][_0x231771(0xb9)];})[_0xaec61d(0x9f)](_0x5d1de2=>_0x5d1de2)[_0xaec61d(0xa9)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1a41(_0x50e9cf,_0x1ae728){const _0x6a5143=_0x6a51();return _0x1a41=function(_0x1a41ea,_0x217420){_0x1a41ea=_0x1a41ea-0x1b5;let _0x12163a=_0x6a5143[_0x1a41ea];return _0x12163a;},_0x1a41(_0x50e9cf,_0x1ae728);}const _0x4d19fa=_0x1a41;function _0x6a51(){const _0x438061=['professional','isPremiumPlugin','Direct','isOfficialPlugin','Simplified\x20Chinese','translateGerman','3KNyeUO','Change\x20style','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Change\x20tone','Continue','AIAssistant','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Spanish','1RTAHNK','editOrReview','commands','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Professional','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','1159776UxBsrI','makeLonger','simplifyLanguage','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','1294510gWhblH','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Hindi','push','translateEnglish','Translate\x20the\x20content\x20to\x20German\x20language.','includes','translateChinese','French','ai.assistant.removeCommands','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Business','ai.assistant.extraCommandGroups','filter','ai.assistant.preserveComments','friendly','132298zVvYSu','1598427NqZmoc','Arabic','Portuguese','translateHindi','translatePortuguese','988564MUaeSt','Confident','config','translateFrench','poetic','journalism','pluginName','summarize','Make\x20longer','groupId','Translate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','forEach','translateSpanish','6fEoNLA','business','changeTone','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','direct','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20writing','locale','ai.assistant.commands','Legal','confident','Simplify\x20language','Friendly','Translate\x20the\x20content\x20to\x20English\x20language.','requires','977522BLOXnn','changeStyle','improveWriting','Translate\x20the\x20content\x20to\x20Hindi\x20language.','set','Casual','generate','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','concat','Summarize','casual','translateArabic','English','find','3065775dXhXUr','continue','Journalism','get','Edit\x20or\x20review','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','German','makeShorter','translate','Translate\x20the\x20content\x20to\x20French\x20language.','Generate\x20from\x20selection','Make\x20shorter','legal','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'];_0x6a51=function(){return _0x438061;};return _0x6a51();}(function(_0x18281b,_0x21df92){const _0x2cb444=_0x1a41,_0xf56ffd=_0x18281b();while(!![]){try{const _0x36b598=-parseInt(_0x2cb444(0x1bd))/0x1*(parseInt(_0x2cb444(0x1da))/0x2)+parseInt(_0x2cb444(0x223))/0x3*(-parseInt(_0x2cb444(0x1e0))/0x4)+parseInt(_0x2cb444(0x20f))/0x5+-parseInt(_0x2cb444(0x1f1))/0x6*(parseInt(_0x2cb444(0x200))/0x7)+-parseInt(_0x2cb444(0x1c3))/0x8+parseInt(_0x2cb444(0x1db))/0x9+parseInt(_0x2cb444(0x1c9))/0xa;if(_0x36b598===_0x21df92)break;else _0xf56ffd['push'](_0xf56ffd['shift']());}catch(_0x5f03f4){_0xf56ffd['push'](_0xf56ffd['shift']());}}}(_0x6a51,0x4eafd));import{Plugin as _0x297345}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x525cdd}from'./aiassistantui.js';import{AIAssistantEditing as _0x5aeb9a}from'./aiassistantediting.js';import{getTranslation as _0x920f9a}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3040bc}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x297345{static get[_0x4d19fa(0x1ff)](){return[_0x525cdd,_0x5aeb9a];}static get[_0x4d19fa(0x1e6)](){const _0xbb30f2=_0x4d19fa;return _0xbb30f2(0x1ba);}static get[_0x4d19fa(0x220)](){return!0x0;}static get[_0x4d19fa(0x21e)](){return!0x0;}constructor(_0x50bafe){const _0xae6be6=_0x4d19fa;super(_0x50bafe);const _0x450a46=_0x50bafe[_0xae6be6(0x1e2)],_0x28285f=_0x50bafe[_0xae6be6(0x1f8)];_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d8),!0x0),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1f9),getDefaultAICommands(_0x28285f)),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d6),[]),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d3),[]);let _0x302fb=_0x3040bc(_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1f9)),_0x28285f);const _0x44be3c=_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1d6)),_0x3b5345=_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1d3));_0x44be3c[_0xae6be6(0x1ef)](_0x453e5d=>{const _0x2f26a6=_0xae6be6,_0x3c0616=_0x302fb[_0x2f26a6(0x20e)](_0x33517a=>_0x33517a[_0x2f26a6(0x1e9)]===_0x453e5d[_0x2f26a6(0x1e9)]);_0x3c0616?_0x3c0616[_0x2f26a6(0x1bf)]=_0x3c0616[_0x2f26a6(0x1bf)][_0x2f26a6(0x209)](_0x453e5d[_0x2f26a6(0x1bf)]):_0x302fb[_0x2f26a6(0x1cd)](_0x453e5d);}),_0x302fb=_0x302fb[_0xae6be6(0x1d7)](_0x2c4a19=>!_0x3b5345[_0xae6be6(0x1d0)](_0x2c4a19[_0xae6be6(0x1e9)])),_0x302fb[_0xae6be6(0x1ef)](_0x128844=>{const _0x1567f5=_0xae6be6;_0x128844[_0x1567f5(0x1bf)]=_0x128844[_0x1567f5(0x1bf)][_0x1567f5(0x1d7)](_0x25deed=>!_0x3b5345[_0x1567f5(0x1d0)](_0x25deed['id']));}),_0x450a46[_0xae6be6(0x204)](_0xae6be6(0x1f9),_0x302fb);}}export function getDefaultAICommands(_0x7e19f4){const _0xc46b37=_0x4d19fa;return[{'groupId':_0xc46b37(0x1be),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x213)),'commands':[{'id':_0xc46b37(0x202),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1f7)),'prompt':_0xc46b37(0x1b7)},{'id':_0xc46b37(0x216),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x21a)),'prompt':_0xc46b37(0x1f4)},{'id':_0xc46b37(0x1c4),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1e8)),'prompt':_0xc46b37(0x1ec)},{'id':_0xc46b37(0x1c5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fc)),'prompt':_0xc46b37(0x214)}]},{'groupId':_0xc46b37(0x206),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x219)),'commands':[{'id':_0xc46b37(0x1e7),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x20a)),'prompt':_0xc46b37(0x1c0)},{'id':_0xc46b37(0x210),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b9)),'prompt':_0xc46b37(0x1bb)}]},{'groupId':_0xc46b37(0x1f3),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b8)),'commands':[{'id':_0xc46b37(0x21d),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1c1)),'prompt':_0xc46b37(0x21c)},{'id':_0xc46b37(0x20b),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x205)),'prompt':_0xc46b37(0x1c7)},{'id':_0xc46b37(0x1f5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x21f)),'prompt':_0xc46b37(0x1eb)},{'id':_0xc46b37(0x1fb),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1e1)),'prompt':_0xc46b37(0x1c2)},{'id':_0xc46b37(0x1d9),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fd)),'prompt':_0xc46b37(0x1f6)}]},{'groupId':_0xc46b37(0x201),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b5)),'commands':[{'id':_0xc46b37(0x1f2),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1d5)),'prompt':_0xc46b37(0x1ee)},{'id':_0xc46b37(0x21b),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fa)),'prompt':_0xc46b37(0x1d4)},{'id':_0xc46b37(0x1e5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x211)),'prompt':_0xc46b37(0x1cb)},{'id':_0xc46b37(0x1e4),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1ed)),'prompt':_0xc46b37(0x1b6)}]},{'groupId':_0xc46b37(0x217),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1ea)),'commands':[{'id':_0xc46b37(0x1ce),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x20d)),'prompt':_0xc46b37(0x1fe)},{'id':_0xc46b37(0x1f0),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1bc)),'prompt':_0xc46b37(0x1c8)},{'id':_0xc46b37(0x1df),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1dd)),'prompt':_0xc46b37(0x1c6)},{'id':_0xc46b37(0x222),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x215)),'prompt':_0xc46b37(0x1cf)},{'id':_0xc46b37(0x1e3),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1d2)),'prompt':_0xc46b37(0x218)},{'id':_0xc46b37(0x1d1),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x221)),'prompt':_0xc46b37(0x207)},{'id':_0xc46b37(0x1de),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1cc)),'prompt':_0xc46b37(0x203)},{'id':_0xc46b37(0x20c),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1dc)),'prompt':_0xc46b37(0x1ca)}]}];}
|