@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/dist/index-editor.css +54 -18
- package/dist/index.css +64 -19
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -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.d.ts +7 -2
- 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.d.ts +4 -0
- 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/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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/aiconfig.d.ts +17 -0
- package/src/aicore/aiconnector.d.ts +13 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/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/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -6,7 +6,6 @@ import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
|
6
6
|
import { type AIActionsNames, AIConnector } from '../aicore/aiconnector.js';
|
|
7
7
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
8
8
|
import { AIEditing } from '../aicore/aiediting.js';
|
|
9
|
-
import { AIActionsInteraction } from './model/aiactionsinteraction.js';
|
|
10
9
|
import { AIBalloon } from '../aiballoon/aiballoon.js';
|
|
11
10
|
import { DocumentCompare } from '@ckeditor/ckeditor5-collaboration-core';
|
|
12
11
|
export declare class AIActions extends Plugin {
|
|
@@ -36,7 +35,6 @@ export declare class AIActions extends Plugin {
|
|
|
36
35
|
isBusy: boolean;
|
|
37
36
|
constructor(editor: Editor);
|
|
38
37
|
stopInteraction(): void;
|
|
39
|
-
get previousInteractions(): ReadonlyArray<AIActionsInteraction>;
|
|
40
38
|
executeAction(action: AIActionDefinition, label: string, icon?: string): Promise<void>;
|
|
41
39
|
private _createInteraction;
|
|
42
40
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1cb3af=_0x1d76;(function(_0x4cefa6,_0xb8421b){const _0x23ec7e=_0x1d76,_0x16563c=_0x4cefa6();while(!![]){try{const _0x2e5833=parseInt(_0x23ec7e(0x1fe))/0x1+parseInt(_0x23ec7e(0x1bb))/0x2*(-parseInt(_0x23ec7e(0x16f))/0x3)+-parseInt(_0x23ec7e(0x1e1))/0x4+parseInt(_0x23ec7e(0x1e4))/0x5*(-parseInt(_0x23ec7e(0x17f))/0x6)+-parseInt(_0x23ec7e(0x1f1))/0x7+parseInt(_0x23ec7e(0x18e))/0x8+parseInt(_0x23ec7e(0x1f9))/0x9;if(_0x2e5833===_0xb8421b)break;else _0x16563c['push'](_0x16563c['shift']());}catch(_0x145847){_0x16563c['push'](_0x16563c['shift']());}}}(_0x54b2,0x8963c));function _0x54b2(){const _0x169231=['end','enqueue','modelToViewWithIds','rootName','abort','_executeAction','_appendChild','editor','position','updateContent','streaming','_filterOperationsOutsideRange','_currentInteractionParams','3080072vRDuLC','replyContentUpdated','execute','insertSuggestion','random','addOperation','slice','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','previousInteractions','AIConnector','data','clone','length','_previousInteractions','isPremiumPlugin','TrackChangesEditing','isOfficialPlugin','applySuggestion','_applyChanges','getSelectedBlocks','Error\x20updating\x20content\x20in\x20replyContentUpdated:','changeGroups','parent','_balloonShowDiff','_stopInteraction','showLoader','locale','ck-ai-custom-action-button','nodeAfter','createPositionAt','executeAction','AIBalloon','type','getSelectedTableCells','_getExecuteDataRegular','howMany','reinsert','push','move','startsWith','processor','stickiness','createPositionBefore','isDocumentOperation','_interaction','4610FgSnGi','documentFragment','getDocumentContext','_clearLoadingState','_setupCustomViews','change','static','_clearSuggestionContent','version','Error\x20refreshing\x20interaction:','start','clearLoading','stop','range','operationsA','close','message','toData','ai-request-aborted','icon','replies','filter','_applyOperationsAsSuggestions','indexOf','Attribute','includes','getLimitElement','_setLoadingState','nextSibling','getSelectionAsFragment','schema','baseVersion','isEnabled','interactionFinished','hideLoader','createRange','_refreshInteraction','_wrapWithCommonAncestors','1387744dKjWzb','has','getChild','5560DkEdqW','batch','first','sourcePosition','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getFirstRange','applyOperation','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20in\x20replyCreated:','_promiseQueue','insert','documentContextContent','_clone','813512pTARyi','get','_clearInteractionHistory','setLoading','requires','selection','rename','history','13511358WNecLG','No\x20current\x20interaction\x20to\x20refresh','_anchorOperation','TableSelection','focus','686780mKQPSl','merge','hasPendingParts','model','replyCreated','dialogClosed','map','bodyView','getRanges','getAncestors','warn','isBusy','$graveyard','set','getRoot','_customViews','stopInteraction','queueEmptyPromise','_children','_createInteraction','bind','remove','getCommonAncestor','_isAbortError','getSelectedContent','open','plugins','stopListening','listenTo','pluginName','_getExecuteDataInTable','AIActions','837eRlclm','setSelection','root','catch','add','_aiConnector','isCollapsed','error','path','getOperations','split','createPositionAfter','getChildAtOffset','document','balloonView','AI_ACTIONS_TRY_AGAIN','4878UAZFEb','_execute'];_0x54b2=function(){return _0x169231;};return _0x54b2();}import{Plugin as _0x31fa12}from'ckeditor5/src/core.js';import{AIConnector as _0x2b80a3}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x4f1c9e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0xacc1fc,ButtonView as _0x137a66,ViewCollection as _0x629451}from'ckeditor5/src/ui.js';import{AIEditing as _0xfb7b7f}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x180878}from'./model/aiactionsinteraction.js';import{first as _0x4465b9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5b1099,IconRefresh as _0x225576}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x5757b5}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x12f0a7}from'../aichat/utils/promisequeue.js';function _0x1d76(_0x1e2c37,_0x50fcb7){const _0x54b295=_0x54b2();return _0x1d76=function(_0x1d76f0,_0x2b2324){_0x1d76f0=_0x1d76f0-0x157;let _0x2f4811=_0x54b295[_0x1d76f0];return _0x2f4811;},_0x1d76(_0x1e2c37,_0x50fcb7);}import{getTranslation as _0xa1c139}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4ef310}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3f3e59}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x3f835f}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x139095,ModelRange as _0x2efb5c,ModelPosition as _0x506d80,_DetachOperation as _0x128d9d,transformOperationSets as _0x2cdc5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x31fa12{static get[_0x1cb3af(0x1f5)](){return[_0x2b80a3,_0xacc1fc,_0xfb7b7f,_0x5757b5,_0x3f3e59];}static get[_0x1cb3af(0x16c)](){const _0x5ec162=_0x1cb3af;return _0x5ec162(0x16e);}static get[_0x1cb3af(0x19e)](){return!0x0;}static get[_0x1cb3af(0x19c)](){return!0x0;}[_0x1cb3af(0x174)];[_0x1cb3af(0x19b)]=[];[_0x1cb3af(0x18d)];[_0x1cb3af(0x1a5)]=!0x1;[_0x1cb3af(0x15e)]=new _0x629451();[_0x1cb3af(0x1ed)];constructor(_0x13bbd9){const _0x562e6b=_0x1cb3af;super(_0x13bbd9),this[_0x562e6b(0x174)]=this[_0x562e6b(0x188)][_0x562e6b(0x169)][_0x562e6b(0x1f2)](_0x562e6b(0x197)),this[_0x562e6b(0x15c)](_0x562e6b(0x15a),!0x1),this[_0x562e6b(0x1ed)]=new _0x12f0a7(),this[_0x562e6b(0x1bf)]();}[_0x1cb3af(0x15f)](){const _0x142730=_0x1cb3af;this[_0x142730(0x1a6)]();}get[_0x1cb3af(0x196)](){const _0x232141=_0x1cb3af;return this[_0x232141(0x19b)];}async[_0x1cb3af(0x1ac)](_0x3dd099,_0x10d7c0,_0x4e596b){const _0x4274fd=_0x1cb3af;if(this[_0x4274fd(0x188)][_0x4274fd(0x169)][_0x4274fd(0x1e2)](_0x4274fd(0x1fc))){if(this[_0x4274fd(0x188)][_0x4274fd(0x169)][_0x4274fd(0x1f2)](_0x4274fd(0x1fc))[_0x4274fd(0x1af)]()){const {modelFragment:_0x851391,anchorData:_0x10b172}=this[_0x4274fd(0x16d)]();return this[_0x4274fd(0x186)](_0x3dd099,_0x851391,_0x10b172,_0x10d7c0,_0x4e596b);}}const {modelFragment:_0x5186ca,anchorData:_0xa9ae26}=this[_0x4274fd(0x1b0)]();return this[_0x4274fd(0x186)](_0x3dd099,_0x5186ca,_0xa9ae26,_0x10d7c0,_0x4e596b);}[_0x1cb3af(0x1b0)](){const _0x37eee0=_0x1cb3af,_0x1276df=this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x17c)][_0x37eee0(0x1f6)];if(_0x1276df[_0x37eee0(0x175)]){const _0x2367c6=_0x4465b9(_0x1276df[_0x37eee0(0x1a1)]())||this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x1d9)][_0x37eee0(0x1d5)](_0x1276df);this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x1c0)](_0x1ddb2d=>{const _0x350b54=_0x37eee0;_0x1ddb2d[_0x350b54(0x170)](_0x2367c6,'in');});}const _0x57e380=_0x1276df[_0x37eee0(0x1e9)](),_0x2024c8=this[_0x37eee0(0x1e0)](this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x167)](_0x1276df),_0x57e380[_0x37eee0(0x1c5)],_0x57e380[_0x37eee0(0x181)]),_0x2d2bf8=_0x1276df[_0x37eee0(0x1e9)]()[_0x37eee0(0x1c5)],_0x36eb02=new Map();let _0x756d86=_0x2024c8;for(let _0x4f58ce=0x0;_0x4f58ce<_0x2d2bf8[_0x37eee0(0x177)][_0x37eee0(0x19a)];_0x4f58ce++)_0x36eb02[_0x37eee0(0x15c)](_0x756d86,_0x2d2bf8[_0x37eee0(0x177)][_0x4f58ce]),_0x756d86=_0x756d86[_0x37eee0(0x1e3)](0x0);return{'modelFragment':_0x2024c8,'anchorData':_0x36eb02};}[_0x1cb3af(0x16d)](){const _0x6deb29=_0x1cb3af,_0x4c3740=this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x17c)][_0x6deb29(0x1f6)],_0x1c7df7=this[_0x6deb29(0x188)][_0x6deb29(0x169)][_0x6deb29(0x1f2)](_0x6deb29(0x1fc))[_0x6deb29(0x1d8)](),_0x72c2a5=_0x4c3740[_0x6deb29(0x1e9)]()[_0x6deb29(0x1c5)][_0x6deb29(0x1a4)][_0x6deb29(0x1a4)],_0x4eef9e=this[_0x6deb29(0x1e0)](_0x1c7df7,this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x1b8)](_0x72c2a5),this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x17a)](_0x72c2a5)),_0x400380=_0x4c3740[_0x6deb29(0x1e9)]()[_0x6deb29(0x1c5)],_0xdef5f3=new Map();let _0x3bb688=_0x4eef9e;for(let _0x34a3cb=0x0;_0x34a3cb<_0x400380[_0x6deb29(0x177)][_0x6deb29(0x19a)];_0x34a3cb++)if(_0xdef5f3[_0x6deb29(0x15c)](_0x3bb688,_0x400380[_0x6deb29(0x177)][_0x34a3cb]),_0x34a3cb<_0x400380[_0x6deb29(0x177)][_0x6deb29(0x19a)]-0x1)_0x3bb688=_0x3bb688[_0x6deb29(0x1e3)](0x0);else{let _0x58b528=_0x3bb688[_0x6deb29(0x1d7)];for(;_0x58b528;)_0xdef5f3[_0x6deb29(0x15c)](_0x58b528,_0x400380[_0x6deb29(0x177)][_0x34a3cb]),_0x58b528=_0x58b528[_0x6deb29(0x1d7)];}return{'modelFragment':_0x4eef9e,'anchorData':_0xdef5f3};}[_0x1cb3af(0x186)](_0x427527,_0x3397ad,_0x448ff4,_0xc126d7,_0x521f11){const _0x48e592=_0x1cb3af,_0xd0db6c=this[_0x48e592(0x188)][_0x48e592(0x169)][_0x48e592(0x1f2)](_0xfb7b7f),_0x202820=this[_0x48e592(0x188)][_0x48e592(0x169)][_0x48e592(0x1f2)](_0x5757b5),_0x56613a=this[_0x48e592(0x188)][_0x48e592(0x201)][_0x48e592(0x17c)][_0x48e592(0x1f6)],_0xf10a4c=_0xd0db6c[_0x48e592(0x183)](_0x3397ad),_0x38d5e3=this[_0x48e592(0x188)][_0x48e592(0x198)][_0x48e592(0x1b6)][_0x48e592(0x1cc)](_0xf10a4c),_0x2b521a=this[_0x48e592(0x188)][_0x48e592(0x201)][_0x48e592(0x17c)][_0x48e592(0x1c3)],_0x1b0ac7=[..._0x56613a[_0x48e592(0x157)]()],_0x418e76=new _0x4f1c9e(this[_0x48e592(0x188)][_0x48e592(0x1a8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x48e592(0x1ce),'customView':this[_0x48e592(0x15e)]},'showUnchangedParts':!0x0});return _0x202820[_0x48e592(0x168)]({'index':0x3e8*Math[_0x48e592(0x192)]()%0x3e8,'title':_0xc126d7,'icon':_0x521f11||_0x5b1099,'mainView':_0x418e76,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1b0ac7}),this[_0x48e592(0x1d6)](_0x418e76,_0x202820),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x19f),()=>{const _0x31aa3e=_0x48e592;this[_0x31aa3e(0x1a0)](_0x3397ad,_0x448ff4,!0x1);}),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x191),()=>{const _0x48c445=_0x48e592;this[_0x48c445(0x1a0)](_0x3397ad,_0x448ff4,!0x0);}),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x203),()=>{const _0x541f8f=_0x48e592;this[_0x541f8f(0x1a6)](),this[_0x541f8f(0x1f3)](),this[_0x541f8f(0x16a)](_0x202820);}),this[_0x48e592(0x162)](_0x38d5e3,_0x2b521a,_0x418e76,_0x202820,_0x427527);}[_0x1cb3af(0x1e0)](_0x11610e,_0xee6c7c,_0x1cc4e8){const _0x1c8681=_0x1cb3af,_0x189a06=this[_0x1c8681(0x188)][_0x1c8681(0x201)][_0x1c8681(0x1de)](_0xee6c7c,_0x1cc4e8)[_0x1c8681(0x165)](),_0x2e9346=_0x189a06['is'](_0x1c8681(0x1bc))?[]:_0x189a06[_0x1c8681(0x158)]({'includeSelf':!0x0})[_0x1c8681(0x194)](0x1);if(_0x2e9346[_0x1c8681(0x19a)]){const _0x3b48f2=_0x2e9346[_0x1c8681(0x204)](_0x126c81=>_0x126c81[_0x1c8681(0x1f0)](!0x1));for(let _0xa204ed=0x1;_0xa204ed<_0x3b48f2[_0x1c8681(0x19a)];_0xa204ed++)_0x3b48f2[_0xa204ed-0x1][_0x1c8681(0x187)](_0x3b48f2[_0xa204ed]);return _0x3b48f2[_0x3b48f2[_0x1c8681(0x19a)]-0x1][_0x1c8681(0x187)](_0x11610e),new _0x139095(_0x3b48f2[0x0]);}return _0x11610e;}async[_0x1cb3af(0x162)](_0x281c68,_0x46361d,_0x505e8b,_0x38de64,_0x3c3756){const _0x3ee084=_0x1cb3af,_0x1782b9=this[_0x3ee084(0x188)];this[_0x3ee084(0x18d)]={'action':_0x3c3756,'content':_0x281c68,'version':_0x46361d,'mainView':_0x505e8b,'aiBalloon':_0x38de64},this[_0x3ee084(0x1ba)]=new _0x180878({'connector':this[_0x3ee084(0x174)],'editor':_0x1782b9,'content':_0x281c68,'version':_0x46361d,..._0x3c3756});const _0x38fa5a=(_0x746a7e,_0x3f4022,_0x2f205c=!0x1,_0x1c905c=_0x3ee084(0x18b))=>this[_0x3ee084(0x1ed)][_0x3ee084(0x182)](async _0x384d66=>{const _0x5cccd4=_0x3ee084;try{const _0x2cbea1=_0x4ef310({'editor':_0x1782b9,'changeGroups':_0x746a7e[_0x5cccd4(0x1a3)],'documentContextContent':_0x746a7e[_0x5cccd4(0x1ef)],'showDiff':_0x2f205c,'trimUnchanged':!0x1});await _0x3f4022[_0x5cccd4(0x18a)]({'parts':_0x2cbea1,'renderingStrategy':_0x1c905c,'abortSignal':_0x384d66});}catch(_0x122602){if(this[_0x5cccd4(0x166)](_0x122602))return;throw _0x122602;}});this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x202),(_0x3f79b4,_0x56dd99)=>{const _0x1cef79=_0x3ee084;_0x505e8b[_0x1cef79(0x1dd)](),_0x38fa5a(_0x56dd99,_0x505e8b)[_0x1cef79(0x172)](_0x5d29e3=>{const _0x3f47e4=_0x1cef79;this[_0x3f47e4(0x166)](_0x5d29e3)||console[_0x3f47e4(0x176)](_0x3f47e4(0x1ec),_0x5d29e3);});}),this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x18f),(_0x40aced,_0x25a3b3)=>{const _0xbc84ea=_0x3ee084;_0x38fa5a(_0x25a3b3,_0x505e8b)[_0xbc84ea(0x172)](_0x47bd6e=>{const _0x4aabf8=_0xbc84ea;this[_0x4aabf8(0x166)](_0x47bd6e)||console[_0x4aabf8(0x176)](_0x4aabf8(0x1a2),_0x47bd6e);});}),this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x1dc),async()=>{const _0x1f3592=_0x3ee084;try{await this[_0x1f3592(0x1be)](_0x505e8b,_0x38de64);}catch(_0x438a27){this[_0x1f3592(0x166)](_0x438a27)||console[_0x1f3592(0x176)](_0x1f3592(0x1e8),_0x438a27);}}),this[_0x3ee084(0x16b)](_0x505e8b,_0x3ee084(0x1eb),(_0x1c7435,{showDiff:_0x50decf})=>{const _0x574c67=_0x3ee084;this[_0x574c67(0x1a5)]=_0x50decf;const _0x4f7b92=this[_0x574c67(0x1ba)][_0x574c67(0x1cf)][this[_0x574c67(0x1ba)][_0x574c67(0x1cf)][_0x574c67(0x19a)]-0x1];_0x4f7b92&&_0x38fa5a(_0x4f7b92,_0x505e8b,_0x50decf,_0x574c67(0x1c1))[_0x574c67(0x172)](_0x8db8da=>{const _0x445ffb=_0x574c67;this[_0x445ffb(0x166)](_0x8db8da)||console[_0x445ffb(0x176)](_0x445ffb(0x195),_0x8db8da);});}),this[_0x3ee084(0x1d6)](_0x505e8b,_0x38de64);try{return await this[_0x3ee084(0x1ba)][_0x3ee084(0x1c5)]();}catch(_0x502dcc){if(this[_0x3ee084(0x166)](_0x502dcc))return;throw _0x502dcc;}}[_0x1cb3af(0x1a0)](_0x1db3ce,_0x3d948a,_0x36a623){const _0x11f6d5=_0x1cb3af,_0x506dc9=this[_0x11f6d5(0x188)],_0x1631ad=this[_0x11f6d5(0x188)][_0x11f6d5(0x169)][_0x11f6d5(0x1f2)](_0x3f3e59),_0x424d70=this[_0x11f6d5(0x1ba)],_0x11a9fa=this[_0x11f6d5(0x1ba)][_0x11f6d5(0x1cf)][this[_0x11f6d5(0x1ba)][_0x11f6d5(0x1cf)][_0x11f6d5(0x19a)]-0x1],_0x5a33c2=_0x11a9fa[_0x11f6d5(0x1a3)];let _0x20b07b=_0x3f835f({'editor':_0x506dc9,'reply':_0x11a9fa,'interaction':_0x424d70,'groups':_0x5a33c2,'transform':!0x1,'documentCompare':_0x1631ad,'documentCompareOptions':{'anchor':_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x1ab)](_0x1db3ce,0x0),'markDeletions':_0x36a623}});_0x20b07b=this[_0x11f6d5(0x18c)](_0x20b07b,_0x3d948a);for(const _0x1c0aed of _0x20b07b)this[_0x11f6d5(0x1fb)](_0x3d948a,_0x1c0aed,_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)][_0x11f6d5(0x15d)]());const _0x316401=_0x424d70[_0x11f6d5(0x1bd)]()[_0x11f6d5(0x1c3)],_0x2333ea=_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)][_0x11f6d5(0x1f8)][_0x11f6d5(0x178)](_0x316401),_0x402e4e={'document':_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1653bb=_0x2cdc5f(_0x20b07b,_0x2333ea,_0x402e4e)[_0x11f6d5(0x1c9)];_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x1c0)](_0x8fc194=>{const _0x5ac148=_0x11f6d5;if(_0x8fc194[_0x5ac148(0x170)](_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x17c)][_0x5ac148(0x1f6)][_0x5ac148(0x1fd)]),_0x36a623)_0x506dc9[_0x5ac148(0x169)][_0x5ac148(0x1f2)](_0x5ac148(0x19d))[_0x5ac148(0x1d1)](_0x1653bb);else{for(const _0x5a3ffa of _0x1653bb)_0x5a3ffa[_0x5ac148(0x1da)]=_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x17c)][_0x5ac148(0x1c3)],_0x8fc194[_0x5ac148(0x1e5)][_0x5ac148(0x193)](_0x5a3ffa),_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x1ea)](_0x5a3ffa);}}),this[_0x11f6d5(0x188)][_0x11f6d5(0x169)][_0x11f6d5(0x1f2)](_0x11f6d5(0x1ad))[_0x11f6d5(0x1ca)]();}[_0x1cb3af(0x18c)](_0x546e47,_0x5a7a99){const _0x49b0e2=_0x1cb3af;return _0x546e47[_0x49b0e2(0x1d0)](_0x185281=>{const _0x3b5411=_0x49b0e2;if(_0x3b5411(0x1f7)==_0x185281[_0x3b5411(0x1ae)]){const _0x2e1ccc=_0x185281[_0x3b5411(0x189)][_0x3b5411(0x1aa)];return!_0x5a7a99[_0x3b5411(0x1e2)](_0x2e1ccc);}if(_0x185281[_0x3b5411(0x1ae)][_0x3b5411(0x1d2)](_0x3b5411(0x1d3))>-0x1){const _0x148312=_0x185281[_0x3b5411(0x1c8)][_0x3b5411(0x1c5)][_0x3b5411(0x1aa)];return!_0x5a7a99[_0x3b5411(0x1e2)](_0x148312);}return!0x0;});}[_0x1cb3af(0x1fb)](_0x561106,_0x3a8a8e,_0xce6284){const _0x4c8d97=_0x1cb3af,_0x12e3d3=_0x3a8a8e[_0x4c8d97(0x199)]();for(const _0x1b9fe2 in _0x3a8a8e){const _0x3ddadc=_0x3a8a8e[_0x1b9fe2];_0x3ddadc instanceof _0x2efb5c?_0x3a8a8e[_0x1b9fe2]=new _0x2efb5c(_0x9ae258(_0x3ddadc[_0x4c8d97(0x1c5)]),_0x9ae258(_0x3ddadc[_0x4c8d97(0x181)])):_0x3ddadc instanceof _0x506d80&&(_0x3a8a8e[_0x1b9fe2]=_0x9ae258(_0x3ddadc));}if([_0x4c8d97(0x1ee),_0x4c8d97(0x1b4),_0x4c8d97(0x164),_0x4c8d97(0x1b2),_0x4c8d97(0x179),_0x4c8d97(0x1ff)][_0x4c8d97(0x1d4)](_0x12e3d3[_0x4c8d97(0x1ae)])){if(_0x12e3d3[_0x4c8d97(0x1b9)]=!0x1,_0x12e3d3[_0x4c8d97(0x1da)]=null,_0x4c8d97(0x164)==_0x12e3d3[_0x4c8d97(0x1ae)]){const _0x1f09de=_0x12e3d3[_0x4c8d97(0x1e7)],_0x105907=_0x12e3d3[_0x4c8d97(0x1b1)];new _0x128d9d(_0x1f09de,_0x105907)[_0x4c8d97(0x180)]();}else _0x12e3d3[_0x4c8d97(0x180)]();}function _0x9ae258(_0x33f1b0){const _0x34c791=_0x4c8d97;if(_0x34c791(0x15b)==_0x33f1b0[_0x34c791(0x171)][_0x34c791(0x184)])return _0x33f1b0;const _0x3f0a32=[];let _0x53260d=_0x33f1b0[_0x34c791(0x171)];for(let _0x1c44c3=0x0;_0x1c44c3<_0x33f1b0[_0x34c791(0x177)][_0x34c791(0x19a)];_0x1c44c3++){const _0x29a475=_0x561106[_0x34c791(0x1f2)](_0x53260d)||0x0;_0x3f0a32[_0x1c44c3]=_0x33f1b0[_0x34c791(0x177)][_0x1c44c3]+_0x29a475,_0x53260d=_0x53260d[_0x34c791(0x17b)](_0x33f1b0[_0x34c791(0x177)][_0x1c44c3]);}return new _0x506d80(_0xce6284,_0x3f0a32,_0x33f1b0[_0x34c791(0x1b7)]);}}[_0x1cb3af(0x1df)](){const _0x21b413=_0x1cb3af;if(!this[_0x21b413(0x18d)])return void console[_0x21b413(0x159)](_0x21b413(0x1fa));this[_0x21b413(0x1ba)]&&(this[_0x21b413(0x19b)][_0x21b413(0x1b3)](this[_0x21b413(0x1ba)]),this[_0x21b413(0x1a6)]());const {action:_0x3e33f4,content:_0x34d367,version:_0x11d84c,mainView:_0x4efa5e,aiBalloon:_0x38f078}=this[_0x21b413(0x18d)];this[_0x21b413(0x1c2)](_0x4efa5e),_0x4efa5e[_0x21b413(0x1a7)](),this[_0x21b413(0x162)](_0x34d367,_0x11d84c,_0x4efa5e,_0x38f078,_0x3e33f4)[_0x21b413(0x172)](_0x54db50=>{const _0x530351=_0x21b413;this[_0x530351(0x166)](_0x54db50)||console[_0x530351(0x176)](_0x530351(0x1c4),_0x54db50);});}[_0x1cb3af(0x1c2)](_0x144c40){const _0x486114=_0x1cb3af,_0x2c16cf=_0x144c40[_0x486114(0x205)][_0x486114(0x161)];for(;_0x2c16cf[_0x486114(0x19a)]>0x0;)_0x2c16cf[_0x486114(0x164)](_0x2c16cf[_0x486114(0x1e6)]);_0x144c40[_0x486114(0x205)][_0x486114(0x200)]=!0x1;}[_0x1cb3af(0x166)](_0x4b76f6){const _0x6846a6=_0x1cb3af;return!!_0x4b76f6[_0x6846a6(0x1cb)]&&_0x4b76f6[_0x6846a6(0x1cb)][_0x6846a6(0x1b5)](_0x6846a6(0x1cd));}[_0x1cb3af(0x1f3)](){const _0x56e604=_0x1cb3af;this[_0x56e604(0x19b)]=[],this[_0x56e604(0x18d)]=void 0x0;}[_0x1cb3af(0x1a6)](){const _0x33a3d7=_0x1cb3af;this[_0x33a3d7(0x1ba)]&&this[_0x33a3d7(0x1ba)][_0x33a3d7(0x1c7)](),this[_0x33a3d7(0x1ed)][_0x33a3d7(0x185)](),this[_0x33a3d7(0x15a)]=!0x1;}[_0x1cb3af(0x1bf)](){const _0x25effc=_0x1cb3af,_0x2810af=new _0x137a66(this[_0x25effc(0x188)][_0x25effc(0x1a8)]);_0x2810af[_0x25effc(0x15c)]({'icon':_0x225576,'label':_0xa1c139(this[_0x25effc(0x188)][_0x25effc(0x1a8)],_0x25effc(0x17e)),'tooltip':!0x0,'class':_0x25effc(0x1a9)}),_0x2810af[_0x25effc(0x163)](_0x25effc(0x1db))['to'](this,_0x25effc(0x15a),_0x2ce8e0=>!_0x2ce8e0),_0x2810af['on'](_0x25effc(0x190),()=>{const _0x45e0d7=_0x25effc;this[_0x45e0d7(0x1df)]();}),this[_0x25effc(0x15e)][_0x25effc(0x173)](_0x2810af);}[_0x1cb3af(0x1d6)](_0x1b9ef4,_0x40e8ce){const _0x158828=_0x1cb3af;_0x1b9ef4[_0x158828(0x1f4)](),_0x40e8ce[_0x158828(0x17d)][_0x158828(0x1f4)](),this[_0x158828(0x15a)]=!0x0;}async[_0x1cb3af(0x1be)](_0x46220a,_0x83251e){const _0x38f726=_0x1cb3af;await this[_0x38f726(0x1ed)][_0x38f726(0x160)],this[_0x38f726(0x15a)]=!0x1,_0x46220a[_0x38f726(0x1c6)](),_0x83251e[_0x38f726(0x17d)][_0x38f726(0x1c6)]();}}
|
|
23
|
+
const _0x1af132=_0x4f02;(function(_0x348ca6,_0x240794){const _0x1f9d8d=_0x4f02,_0x2015b5=_0x348ca6();while(!![]){try{const _0x3085ed=parseInt(_0x1f9d8d(0x20d))/0x1+parseInt(_0x1f9d8d(0x216))/0x2*(parseInt(_0x1f9d8d(0x1f6))/0x3)+-parseInt(_0x1f9d8d(0x1ff))/0x4+parseInt(_0x1f9d8d(0x1dc))/0x5+-parseInt(_0x1f9d8d(0x1e7))/0x6*(-parseInt(_0x1f9d8d(0x20c))/0x7)+-parseInt(_0x1f9d8d(0x1c4))/0x8+-parseInt(_0x1f9d8d(0x298))/0x9*(-parseInt(_0x1f9d8d(0x29a))/0xa);if(_0x3085ed===_0x240794)break;else _0x2015b5['push'](_0x2015b5['shift']());}catch(_0x177989){_0x2015b5['push'](_0x2015b5['shift']());}}}(_0x3aa1,0x1e86a));import{Plugin as _0x5cc163}from'ckeditor5/src/core.js';import{AIConnector as _0x4aae16}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x287f92}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5267bb,ButtonView as _0x5662e1,ViewCollection as _0x374145,View as _0x3bc492}from'ckeditor5/src/ui.js';import{AIEditing as _0x568e5e}from'../aicore/aiediting.js';function _0x4f02(_0x2fea8c,_0x56c3f0){const _0x3aa14a=_0x3aa1();return _0x4f02=function(_0x4f02b5,_0x25313f){_0x4f02b5=_0x4f02b5-0x1c4;let _0x4515d6=_0x3aa14a[_0x4f02b5];return _0x4515d6;},_0x4f02(_0x2fea8c,_0x56c3f0);}import{AIActionsInteraction as _0x9a9da9}from'./model/aiactionsinteraction.js';import{first as _0x190261}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3e88a1,IconRefresh as _0x53a4ee,IconNextArrow as _0x4e495d,IconPreviousArrow as _0x206cb7,IconShowChangesOff as _0x773fc8}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x38f40a}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x278283}from'../aichat/utils/promisequeue.js';function _0x3aa1(){const _0x2678ca=['setChangeGroupState','_isNavigationPreviousButtonInView','_setErrorState','message','signal','replyContentUpdated','start','getAncestors','add','_interactionParams','createPositionAfter','63920rLaJUh','isBusy','locale','changeGroups','upsertAIActionRating','push','root','rootName','_wrapWithCommonAncestors','enqueue','replies','43470vgDpoD','bind','requires','applyOperation','hideError','getChildAtOffset','_setLoadingState','AIActions','replyChangeGroupStateUpdated','getSelectedTableCells','ck-ai-custom-action-button','textContent','stopListening','_currentInteractionIndex','split','120639LxviXg','operationsA','history','_navigationPreviousButton','_isNavigationNextButtonInView','plugins','areChangesVisible','state','element','990952tFqqmR','version','AI_ACTIONS_GENERIC_ERROR','createPositionBefore','_interaction','getOperations','_clearLoadingState','indexOf','_customViews','ck-ai-navigation-button\x20ck-ai-next-button','rejected','_getExecuteDataInTable','_aiConnector','28zvsmki','181840TjZqyl','modelToViewWithIds','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','catch','_displayInteractionAtIndex','_appendChild','isOfficialPlugin','aiBalloon','replyCreated','4PobKXn','TrackChangesEditing','Error\x20updating\x20content\x20in\x20replyContentUpdated:','baseVersion','filter','_stopInteraction','ai-request-aborted','_balloonShowDiff','_refreshInteraction','mainView','hideLoader','executeAction','removeNavigationItem','TableSelection','documentContextContent','insert','addNavigationItem','getRoot','setTemplate','listenTo','toData','document','_clearInteractionHistory','hasPendingParts','getDocumentContext','stickiness','showError','1/1','_navigateToNext','ck-ai-interaction-counter','type','end','showLoader','includes','bodyView','isPremiumPlugin','_clone','getSelectedContent','_navigationNextButton','first','_applyOperationsAsSuggestions','createPositionAt','$graveyard','AI_ACTIONS_TRY_AGAIN','data','createRange','static','schema','_navigationCounter','queueEmptyPromise','ck-ai-navigation-button\x20ck-ai-previous-button','dialogClosed','span','interactionFinished','path','nextSibling','random','startsWith','abort','documentFragment','_createInteraction','clearErrorState','stopInteraction','_updateNavigationUI','getSelectedBlocks','model','getLimitElement','change','howMany','execute','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','has','toggleSuggestionDisplayMode','balloonView','editor','_isNavigationCounterInView','streaming','rename','_anchorOperation','merge','position','addOperation','focus','AIConnector','getSelectionAsFragment','get','setErrorState','processor','_isAbortError','_execute','actionCallId','_executeAction','error','isEnabled','length','_clearErrorState','accepted','isCollapsed','_children','upsertCustomAIActionRating','_applyChanges','_filterOperationsOutsideRange','icon','move','selection','toolbar','getFirstRange','_setupCustomViews','Error\x20refreshing\x20interaction:','actionName','isLoading','hasError','pending','AI_ACTIONS_NEXT_INTERACTION','showChangesButton','_interactions','open','slice','stop','range','AI_ACTIONS_PREVIOUS_INTERACTION','parent','setSelection','updateContent','close','_clearSuggestionContent','map','clone','_getExecuteDataRegular','setLoading','45yykZFP','_navigateToPrevious','569030HskWPR','isDocumentOperation','applySuggestion','pluginName','nodeAfter','set','AIBalloon','miniToolbarView','Error\x20updating\x20content\x20in\x20replyCreated:','1726184iqUtUh','getChild','Error\x20updating\x20content\x20during\x20navigation:','clearLoading','_promiseQueue','getRanges','reinsert','insertSuggestion','remove','sourcePosition','Attribute','getCommonAncestor','batch'];_0x3aa1=function(){return _0x2678ca;};return _0x3aa1();}import{getTranslation as _0xf1606d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x147bf7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x28fcc4}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2ab13d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1ba277,ModelRange as _0x2a52d5,ModelPosition as _0x2037d6,_DetachOperation as _0x3b804e,transformOperationSets as _0x1fc536}from'ckeditor5/src/engine.js';export class AIActions extends _0x5cc163{static get[_0x1af132(0x1e9)](){return[_0x4aae16,_0x5267bb,_0x568e5e,_0x38f40a,_0x28fcc4];}static get[_0x1af132(0x29d)](){const _0x4df7ed=_0x1af132;return _0x4df7ed(0x1ee);}static get[_0x1af132(0x213)](){return!0x0;}static get[_0x1af132(0x239)](){return!0x0;}[_0x1af132(0x20b)];[_0x1af132(0x289)]=[];[_0x1af132(0x1f4)]=0x0;[_0x1af132(0x1da)];[_0x1af132(0x21d)]=!0x1;[_0x1af132(0x207)]=new _0x374145();[_0x1af132(0x1f9)];[_0x1af132(0x246)];[_0x1af132(0x261)]=!0x1;[_0x1af132(0x23c)];[_0x1af132(0x1d2)]=!0x1;[_0x1af132(0x1fa)]=!0x1;[_0x1af132(0x1c8)];get[_0x1af132(0x203)](){const _0x90baf8=_0x1af132;return this[_0x90baf8(0x289)][this[_0x90baf8(0x289)][_0x90baf8(0x274)]-0x1];}constructor(_0x2052db){const _0x931280=_0x1af132;super(_0x2052db),this[_0x931280(0x20b)]=this[_0x931280(0x260)][_0x931280(0x1fb)][_0x931280(0x26b)](_0x931280(0x269)),this[_0x931280(0x29f)](_0x931280(0x1dd),!0x1),this[_0x931280(0x1c8)]=new _0x278283(),this[_0x931280(0x281)]();}[_0x1af132(0x254)](){const _0x407e07=_0x1af132;this[_0x407e07(0x21b)]();}async[_0x1af132(0x221)](_0x1c44f0,_0x1e1d78,_0x3f0301){const _0x1a3b83=_0x1af132;if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x25d)](_0x1a3b83(0x223))){if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x26b)](_0x1a3b83(0x223))[_0x1a3b83(0x1f0)]()){const {modelFragment:_0x4df8dc,anchorData:_0x5802fb}=this[_0x1a3b83(0x20a)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x4df8dc,_0x5802fb,_0x1e1d78,_0x3f0301);}}const {modelFragment:_0x36cd37,anchorData:_0x1e2340}=this[_0x1a3b83(0x296)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x36cd37,_0x1e2340,_0x1e1d78,_0x3f0301);}[_0x1af132(0x296)](){const _0xc50550=_0x1af132,_0x3e6298=this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x22b)][_0xc50550(0x27e)];if(_0x3e6298[_0xc50550(0x277)]){const _0x15e473=_0x190261(_0x3e6298[_0xc50550(0x256)]())||this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x245)][_0xc50550(0x258)](_0x3e6298);this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x259)](_0xa986f3=>{const _0x36b703=_0xc50550;_0xa986f3[_0x36b703(0x290)](_0x15e473,'in');});}const _0x436096=_0x3e6298[_0xc50550(0x280)](),_0x4d76d6=this[_0xc50550(0x1e4)](this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x23b)](_0x3e6298),_0x436096[_0xc50550(0x1d7)],_0x436096[_0xc50550(0x235)]),_0x11d0c7=_0x3e6298[_0xc50550(0x280)]()[_0xc50550(0x1d7)],_0x32685c=new Map();let _0x493e11=_0x4d76d6;for(let _0x1247c0=0x0;_0x1247c0<_0x11d0c7[_0xc50550(0x24c)][_0xc50550(0x274)];_0x1247c0++)_0x32685c[_0xc50550(0x29f)](_0x493e11,_0x11d0c7[_0xc50550(0x24c)][_0x1247c0]),_0x493e11=_0x493e11[_0xc50550(0x1c5)](0x0);return{'modelFragment':_0x4d76d6,'anchorData':_0x32685c};}[_0x1af132(0x20a)](){const _0x138de7=_0x1af132,_0x1f2f8d=this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x22b)][_0x138de7(0x27e)],_0x2b3aaa=this[_0x138de7(0x260)][_0x138de7(0x1fb)][_0x138de7(0x26b)](_0x138de7(0x223))[_0x138de7(0x26a)](),_0x11e223=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)][_0x138de7(0x28f)][_0x138de7(0x28f)],_0x355dff=this[_0x138de7(0x1e4)](_0x2b3aaa,this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x202)](_0x11e223),this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x1db)](_0x11e223)),_0x3a82e4=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)],_0x306236=new Map();let _0x4a93f1=_0x355dff;for(let _0x55ef62=0x0;_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)];_0x55ef62++)if(_0x306236[_0x138de7(0x29f)](_0x4a93f1,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)]-0x1)_0x4a93f1=_0x4a93f1[_0x138de7(0x1c5)](0x0);else{let _0x235888=_0x4a93f1[_0x138de7(0x24d)];for(;_0x235888;)_0x306236[_0x138de7(0x29f)](_0x235888,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x235888=_0x235888[_0x138de7(0x24d)];}return{'modelFragment':_0x355dff,'anchorData':_0x306236};}[_0x1af132(0x271)](_0x44196a,_0x3c7345,_0x4d99c5,_0x2e9684,_0x5725e6){const _0x4e0b25=_0x1af132,_0x3494e8=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x568e5e),_0x294f6d=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x38f40a),_0x4b9ccb=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x27e)],_0x566d03=_0x3494e8[_0x4e0b25(0x20e)](_0x3c7345),_0x235e56=this[_0x4e0b25(0x260)][_0x4e0b25(0x242)][_0x4e0b25(0x26d)][_0x4e0b25(0x22a)](_0x566d03),_0x13a0d1=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x200)],_0x5a99ee=[..._0x4b9ccb[_0x4e0b25(0x1c9)]()],_0x39bbfb=new _0x287f92(this[_0x4e0b25(0x260)][_0x4e0b25(0x1de)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4e0b25(0x27c),'customView':this[_0x4e0b25(0x207)]},'showUnchangedParts':!0x0});return _0x294f6d[_0x4e0b25(0x28a)]({'index':0x3e8*Math[_0x4e0b25(0x24e)]()%0x3e8,'title':_0x2e9684,'icon':_0x5725e6||_0x3e88a1,'mainView':_0x39bbfb,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x5a99ee}),this[_0x4e0b25(0x1ed)](_0x39bbfb,_0x294f6d),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x29c),()=>{const _0x3ee564=_0x4e0b25;this[_0x3ee564(0x27a)](_0x3c7345,_0x4d99c5,!0x1);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x1cb),()=>{const _0xb0e58f=_0x4e0b25;this[_0xb0e58f(0x27a)](_0x3c7345,_0x4d99c5,!0x0);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x249),()=>{const _0x2a7622=_0x4e0b25;if(this[_0x2a7622(0x203)]&&this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]>0x0){const _0x768791=this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]-0x1],_0x1d04b5=_0x768791[_0x2a7622(0x1df)][0x0];_0x1d04b5&&_0x2a7622(0x286)===_0x1d04b5[_0x2a7622(0x1fd)]&&_0x768791[_0x2a7622(0x1d1)](0x0,_0x2a7622(0x209));}this[_0x2a7622(0x21b)](),this[_0x2a7622(0x22c)](),this[_0x2a7622(0x1f3)](_0x294f6d);}),this[_0x4e0b25(0x252)](_0x235e56,_0x13a0d1,_0x39bbfb,_0x294f6d,_0x44196a);}[_0x1af132(0x1e4)](_0x3c8d02,_0x5d487a,_0x2d01b4){const _0x112912=_0x1af132,_0x395dd4=this[_0x112912(0x260)][_0x112912(0x257)][_0x112912(0x243)](_0x5d487a,_0x2d01b4)[_0x112912(0x1cf)](),_0x2b86f7=_0x395dd4['is'](_0x112912(0x251))?[]:_0x395dd4[_0x112912(0x1d8)]({'includeSelf':!0x0})[_0x112912(0x28b)](0x1);if(_0x2b86f7[_0x112912(0x274)]){const _0x3497ed=_0x2b86f7[_0x112912(0x294)](_0x55bff1=>_0x55bff1[_0x112912(0x23a)](!0x1));for(let _0x89e550=0x1;_0x89e550<_0x3497ed[_0x112912(0x274)];_0x89e550++)_0x3497ed[_0x89e550-0x1][_0x112912(0x212)](_0x3497ed[_0x89e550]);return _0x3497ed[_0x3497ed[_0x112912(0x274)]-0x1][_0x112912(0x212)](_0x3c8d02),new _0x1ba277(_0x3497ed[0x0]);}return _0x3c8d02;}async[_0x1af132(0x252)](_0x27caa5,_0x1c8a66,_0x37de99,_0x409931,_0x3cfdb7){const _0x4ffa70=_0x1af132,_0x39543b=this[_0x4ffa70(0x260)];this[_0x4ffa70(0x1da)]={'action':_0x3cfdb7,'content':_0x27caa5,'version':_0x1c8a66,'mainView':_0x37de99,'aiBalloon':_0x409931};const _0xd84d2e=new _0x9a9da9({'connector':this[_0x4ffa70(0x20b)],'editor':_0x39543b,'content':_0x27caa5,'version':_0x1c8a66,..._0x3cfdb7});this[_0x4ffa70(0x289)][_0x4ffa70(0x1e1)](_0xd84d2e),_0x37de99[_0x4ffa70(0x1eb)]();const _0x14896a=(_0x4e5be3,_0x1fa288,_0x2b5fdf=!0x1,_0x521fbf=_0x4ffa70(0x262))=>this[_0x4ffa70(0x1c8)][_0x4ffa70(0x1e5)](async _0x55d2ba=>{const _0x1537a9=_0x4ffa70;try{const _0xaeb580=_0x147bf7({'editor':_0x39543b,'changeGroups':_0x4e5be3[_0x1537a9(0x1df)],'documentContextContent':_0x4e5be3[_0x1537a9(0x224)],'showDiff':_0x2b5fdf,'trimUnchanged':!0x1});await _0x1fa288[_0x1537a9(0x291)]({'parts':_0xaeb580,'renderingStrategy':_0x521fbf,'abortSignal':_0x55d2ba});}catch(_0x57e583){if(this[_0x1537a9(0x26e)](_0x57e583))return;throw _0x57e583;}});this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x215),(_0x2b74bd,_0x2aa712)=>{const _0x47ed64=_0x4ffa70;_0x37de99[_0x47ed64(0x220)](),_0x14896a(_0x2aa712,_0x37de99)[_0x47ed64(0x210)](_0x4bf7c0=>{const _0x19efa5=_0x47ed64;this[_0x19efa5(0x26e)](_0x4bf7c0)||(console[_0x19efa5(0x272)](_0x19efa5(0x2a2),_0x4bf7c0),this[_0x19efa5(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1d6),(_0x1287b3,_0x216e56)=>{const _0x1ad1f8=_0x4ffa70;_0x14896a(_0x216e56,_0x37de99)[_0x1ad1f8(0x210)](_0xe6770e=>{const _0xcacaff=_0x1ad1f8;this[_0xcacaff(0x26e)](_0xe6770e)||(console[_0xcacaff(0x272)](_0xcacaff(0x218),_0xe6770e),this[_0xcacaff(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x24b),async()=>{const _0x258235=_0x4ffa70;try{await this[_0x258235(0x205)](_0x37de99,_0x409931),this[_0x258235(0x255)]();}catch(_0x2c5ac3){this[_0x258235(0x26e)](_0x2c5ac3)||(console[_0x258235(0x272)](_0x258235(0x20f),_0x2c5ac3),this[_0x258235(0x1d3)](_0xd84d2e,_0x37de99));}}),this[_0x4ffa70(0x229)](_0x37de99,_0x4ffa70(0x25e),(_0x20e69f,{showDiff:_0xfa4a18})=>{const _0xb692b1=_0x4ffa70;this[_0xb692b1(0x21d)]=_0xfa4a18;const _0x1b7e50=this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][_0xb692b1(0x274)]-0x1];_0x1b7e50&&_0x14896a(_0x1b7e50,_0x37de99,_0xfa4a18,_0xb692b1(0x244))[_0xb692b1(0x210)](_0x844768=>{const _0x20afce=_0xb692b1;this[_0x20afce(0x26e)](_0x844768)||(console[_0x20afce(0x272)](_0x20afce(0x25c),_0x844768),this[_0x20afce(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1ef),(_0x517a43,{reply:_0x3463c4})=>{const _0x877976=_0x4ffa70,_0x2f21f3={'positiveCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x21a)](_0x5b028d=>_0x877976(0x276)===_0x5b028d[_0x877976(0x1fd)])[_0x877976(0x274)],'totalCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x274)]},_0x5a824a=this[_0x877976(0x203)][_0x877976(0x270)],_0x113576=this[_0x877976(0x203)][_0x877976(0x283)];_0x113576?this[_0x877976(0x20b)][_0x877976(0x1e0)](_0x113576,_0x5a824a,_0x2f21f3):this[_0x877976(0x20b)][_0x877976(0x279)](_0x5a824a,_0x2f21f3);}),this[_0x4ffa70(0x1ed)](_0x37de99,_0x409931);try{const _0x5cc343=await this[_0x4ffa70(0x203)][_0x4ffa70(0x1d7)]();return this[_0x4ffa70(0x255)](),_0x5cc343;}catch(_0x522591){if(this[_0x4ffa70(0x26e)](_0x522591))return;_0x37de99[_0x4ffa70(0x220)](),this[_0x4ffa70(0x1d3)](_0xd84d2e,_0x37de99);}}[_0x1af132(0x27a)](_0x29f91c,_0x1f6857,_0x514823){const _0x30e46b=_0x1af132,_0x2ce11a=this[_0x30e46b(0x260)],_0x4ff95e=this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x28fcc4),_0x14e3b9=this[_0x30e46b(0x203)],_0x205cc4=this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][_0x30e46b(0x274)]-0x1],_0x273aef=_0x205cc4[_0x30e46b(0x1df)];_0x205cc4[_0x30e46b(0x1d1)](0x0,_0x30e46b(0x276));let _0x1dcefc=_0x2ab13d({'editor':_0x2ce11a,'reply':_0x205cc4,'interaction':_0x14e3b9,'groups':_0x273aef,'transform':!0x1,'documentCompare':_0x4ff95e,'documentCompareOptions':{'anchor':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x23f)](_0x29f91c,0x0),'markDeletions':_0x514823}});_0x1dcefc=this[_0x30e46b(0x27b)](_0x1dcefc,_0x1f6857);for(const _0x45c661 of _0x1dcefc)this[_0x30e46b(0x264)](_0x1f6857,_0x45c661,_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x227)]());const _0x38e8d1=_0x14e3b9[_0x30e46b(0x22e)]()[_0x30e46b(0x200)],_0x377e2b=_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x1f8)][_0x30e46b(0x204)](_0x38e8d1),_0x5340b5={'document':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4b5352=_0x1fc536(_0x1dcefc,_0x377e2b,_0x5340b5)[_0x30e46b(0x1f7)];_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x259)](_0x289262=>{const _0x318bef=_0x30e46b;if(_0x289262[_0x318bef(0x290)](_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x27e)][_0x318bef(0x268)]),_0x514823)_0x2ce11a[_0x318bef(0x1fb)][_0x318bef(0x26b)](_0x318bef(0x217))[_0x318bef(0x23e)](_0x4b5352);else{for(const _0x19332f of _0x4b5352)_0x19332f[_0x318bef(0x219)]=_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x200)],_0x289262[_0x318bef(0x1d0)][_0x318bef(0x267)](_0x19332f),_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x1ea)](_0x19332f);}}),this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x30e46b(0x2a0))[_0x30e46b(0x292)]();}[_0x1af132(0x27b)](_0x41b543,_0xa9f5ac){const _0xc7e59c=_0x1af132;return _0x41b543[_0xc7e59c(0x21a)](_0x1e52e9=>{const _0x1e8111=_0xc7e59c;if(_0x1e8111(0x263)==_0x1e52e9[_0x1e8111(0x234)]){const _0x32ba4d=_0x1e52e9[_0x1e8111(0x266)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x32ba4d);}if(_0x1e52e9[_0x1e8111(0x234)][_0x1e8111(0x206)](_0x1e8111(0x1ce))>-0x1){const _0x46f844=_0x1e52e9[_0x1e8111(0x28d)][_0x1e8111(0x1d7)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x46f844);}return!0x0;});}[_0x1af132(0x264)](_0x352526,_0x882274,_0x3ca555){const _0x2e55dc=_0x1af132,_0x420e22=_0x882274[_0x2e55dc(0x295)]();for(const _0x2e5f78 in _0x882274){const _0x1907e7=_0x882274[_0x2e5f78];_0x1907e7 instanceof _0x2a52d5?_0x882274[_0x2e5f78]=new _0x2a52d5(_0x38fe16(_0x1907e7[_0x2e55dc(0x1d7)]),_0x38fe16(_0x1907e7[_0x2e55dc(0x235)])):_0x1907e7 instanceof _0x2037d6&&(_0x882274[_0x2e5f78]=_0x38fe16(_0x1907e7));}if([_0x2e55dc(0x225),_0x2e55dc(0x27d),_0x2e55dc(0x1cc),_0x2e55dc(0x1ca),_0x2e55dc(0x1f5),_0x2e55dc(0x265)][_0x2e55dc(0x237)](_0x420e22[_0x2e55dc(0x234)])){if(_0x420e22[_0x2e55dc(0x29b)]=!0x1,_0x420e22[_0x2e55dc(0x219)]=null,_0x2e55dc(0x1cc)==_0x420e22[_0x2e55dc(0x234)]){const _0x45a6b0=_0x420e22[_0x2e55dc(0x1cd)],_0x2b3529=_0x420e22[_0x2e55dc(0x25a)];new _0x3b804e(_0x45a6b0,_0x2b3529)[_0x2e55dc(0x26f)]();}else _0x420e22[_0x2e55dc(0x26f)]();}function _0x38fe16(_0x1af884){const _0x100062=_0x2e55dc;if(_0x100062(0x240)==_0x1af884[_0x100062(0x1e2)][_0x100062(0x1e3)])return _0x1af884;const _0x553d96=[];let _0x433d92=_0x1af884[_0x100062(0x1e2)];for(let _0x34638a=0x0;_0x34638a<_0x1af884[_0x100062(0x24c)][_0x100062(0x274)];_0x34638a++){const _0x17cc49=_0x352526[_0x100062(0x26b)](_0x433d92)||0x0;_0x553d96[_0x34638a]=_0x1af884[_0x100062(0x24c)][_0x34638a]+_0x17cc49,_0x433d92=_0x433d92[_0x100062(0x1ec)](_0x1af884[_0x100062(0x24c)][_0x34638a]);}return new _0x2037d6(_0x3ca555,_0x553d96,_0x1af884[_0x100062(0x22f)]);}}[_0x1af132(0x21e)](){const _0x341d84=_0x1af132;if(!this[_0x341d84(0x1da)])return;this[_0x341d84(0x289)][_0x341d84(0x274)]>0x0&&this[_0x341d84(0x21b)](),this[_0x341d84(0x1f4)]=0x0,this[_0x341d84(0x21d)]=!0x1;const {action:_0x2b7b61,content:_0x2e1953,version:_0x312922,mainView:_0x2f76eb,aiBalloon:_0x12b547}=this[_0x341d84(0x1da)];_0x2f76eb[_0x341d84(0x1fc)]=!0x1,_0x2f76eb[_0x341d84(0x1eb)](),this[_0x341d84(0x275)](_0x2f76eb,_0x12b547);const _0x5c4cbe=_0x2f76eb;_0x5c4cbe[_0x341d84(0x2a1)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)][_0x341d84(0x29f)]({'isOn':!0x1,'icon':_0x773fc8}),this[_0x341d84(0x293)](_0x2f76eb),_0x2f76eb[_0x341d84(0x236)](),this[_0x341d84(0x255)](),this[_0x341d84(0x252)](_0x2e1953,_0x312922,_0x2f76eb,_0x12b547,_0x2b7b61)[_0x341d84(0x210)](_0x5796a7=>{const _0x4ca928=_0x341d84;this[_0x4ca928(0x26e)](_0x5796a7)||console[_0x4ca928(0x272)](_0x4ca928(0x282),_0x5796a7);});}[_0x1af132(0x293)](_0x13342b){const _0x15b6bf=_0x1af132,_0x12f1b3=_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x278)];for(;_0x12f1b3[_0x15b6bf(0x274)]>0x0;)_0x12f1b3[_0x15b6bf(0x1cc)](_0x12f1b3[_0x15b6bf(0x23d)]);_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x22d)]=!0x1;}[_0x1af132(0x26e)](_0x1960be){const _0x480b5a=_0x1af132;return!!_0x1960be[_0x480b5a(0x1d4)]&&_0x1960be[_0x480b5a(0x1d4)][_0x480b5a(0x24f)](_0x480b5a(0x21c));}[_0x1af132(0x22c)](){const _0x50ace2=_0x1af132;this[_0x50ace2(0x289)]=[],this[_0x50ace2(0x1da)]=void 0x0,this[_0x50ace2(0x1f4)]=0x0,this[_0x50ace2(0x255)]();}[_0x1af132(0x21b)](){const _0x278963=_0x1af132;this[_0x278963(0x203)]&&this[_0x278963(0x203)][_0x278963(0x28c)](),this[_0x278963(0x1c8)][_0x278963(0x250)](),this[_0x278963(0x1dd)]=!0x1;}[_0x1af132(0x281)](){const _0x45a790=_0x1af132,_0x40505d=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x48335f=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x4d72d6=new _0x3bc492(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x18ca0b=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]);_0x40505d[_0x45a790(0x29f)]({'icon':_0x53a4ee,'label':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x241)),'tooltip':!0x0,'class':_0x45a790(0x1f1)}),_0x48335f[_0x45a790(0x29f)]({'icon':_0x206cb7,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x28e)),'class':_0x45a790(0x248)}),_0x4d72d6[_0x45a790(0x228)]({'tag':_0x45a790(0x24a),'attributes':{'class':[_0x45a790(0x233)]},'children':[_0x45a790(0x231)]}),_0x18ca0b[_0x45a790(0x29f)]({'icon':_0x4e495d,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x287)),'class':_0x45a790(0x208)}),_0x40505d[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x460d4b=>!_0x460d4b),_0x40505d['on'](_0x45a790(0x25b),()=>{const _0x3818f3=_0x45a790;this[_0x3818f3(0x21e)]();}),_0x48335f[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x4187b8=>!_0x4187b8),_0x48335f['on'](_0x45a790(0x25b),()=>{const _0xda1ba1=_0x45a790;this[_0xda1ba1(0x299)]();}),_0x18ca0b[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x27ea6c=>!_0x27ea6c),_0x18ca0b['on'](_0x45a790(0x25b),()=>{const _0x473de7=_0x45a790;this[_0x473de7(0x232)]();}),this[_0x45a790(0x1f9)]=_0x48335f,this[_0x45a790(0x246)]=_0x4d72d6,this[_0x45a790(0x23c)]=_0x18ca0b,this[_0x45a790(0x207)][_0x45a790(0x1d9)](_0x40505d);}[_0x1af132(0x299)](){const _0x49576b=_0x1af132,_0x500bf0=this[_0x49576b(0x289)][_0x49576b(0x274)];this[_0x49576b(0x1f4)]<_0x500bf0-0x1&&this[_0x49576b(0x211)](this[_0x49576b(0x1f4)]+0x1);}[_0x1af132(0x232)](){const _0x3d9520=_0x1af132;this[_0x3d9520(0x1f4)]>0x0&&this[_0x3d9520(0x211)](this[_0x3d9520(0x1f4)]-0x1);}async[_0x1af132(0x211)](_0x227d75){const _0x3c1705=_0x1af132;if(!this[_0x3c1705(0x1da)])return;this[_0x3c1705(0x1f4)]=_0x227d75;const {mainView:_0xdc020d}=this[_0x3c1705(0x1da)],_0x57dc2c=this[_0x3c1705(0x289)][this[_0x3c1705(0x289)][_0x3c1705(0x274)]-0x1-this[_0x3c1705(0x1f4)]];if(!_0x57dc2c)return;if(_0x57dc2c[_0x3c1705(0x285)])return this[_0x3c1705(0x1d3)](_0x57dc2c,_0xdc020d),void this[_0x3c1705(0x255)]();if(!_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)])return;_0xdc020d[_0x3c1705(0x1eb)](),this[_0x3c1705(0x1da)]&&this[_0x3c1705(0x275)](_0xdc020d,this[_0x3c1705(0x1da)][_0x3c1705(0x214)]);const _0x32c5bc=_0x57dc2c[_0x3c1705(0x1e6)][_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)]-0x1];if(_0x32c5bc){const _0x1ab2ca=this[_0x3c1705(0x260)];this[_0x3c1705(0x293)](_0xdc020d);try{const _0x64d872=_0x147bf7({'editor':_0x1ab2ca,'changeGroups':_0x32c5bc[_0x3c1705(0x1df)],'documentContextContent':_0x32c5bc[_0x3c1705(0x224)],'showDiff':this[_0x3c1705(0x21d)],'trimUnchanged':!0x1});this[_0x3c1705(0x293)](_0xdc020d),await new Promise(_0x519668=>setTimeout(_0x519668,0x32)),await _0xdc020d[_0x3c1705(0x291)]({'parts':_0x64d872,'renderingStrategy':_0x3c1705(0x244),'abortSignal':new AbortController()[_0x3c1705(0x1d5)]});}catch(_0x5b3e95){this[_0x3c1705(0x26e)](_0x5b3e95)||console[_0x3c1705(0x272)](_0x3c1705(0x1c6),_0x5b3e95);}}this[_0x3c1705(0x255)]();}[_0x1af132(0x255)](){const _0x47cd8b=_0x1af132;if(!this[_0x47cd8b(0x1f9)]||!this[_0x47cd8b(0x246)]||!this[_0x47cd8b(0x23c)])return;const _0x4f87c7=this[_0x47cd8b(0x289)][_0x47cd8b(0x274)],_0x20e3b2=_0x4f87c7>0x1,_0x4b5674=this[_0x47cd8b(0x1da)]?.[_0x47cd8b(0x21f)];if(_0x20e3b2){this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)]||(this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x0);const _0xea3e7c=_0x4f87c7-this[_0x47cd8b(0x1f4)];this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)]&&(this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)][_0x47cd8b(0x1f2)]=_0xea3e7c+'/'+_0x4f87c7),this[_0x47cd8b(0x1f9)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]<_0x4f87c7-0x1,this[_0x47cd8b(0x23c)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]>0x0;}else(this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)])&&(this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x1);}[_0x1af132(0x1ed)](_0x4bd7e6,_0x4a401b){const _0x41d059=_0x1af132;_0x4bd7e6[_0x41d059(0x297)](),_0x4a401b[_0x41d059(0x25f)][_0x41d059(0x297)](),this[_0x41d059(0x1dd)]=!0x0;}async[_0x1af132(0x1d3)](_0x2908dc,_0x38560c){const _0x501628=_0x1af132,_0x1d9a7f=_0xf1606d(this[_0x501628(0x260)][_0x501628(0x1de)],_0x501628(0x201));_0x38560c[_0x501628(0x230)](_0x1d9a7f),_0x2908dc[_0x501628(0x285)]=!0x0,await this[_0x501628(0x1c8)][_0x501628(0x247)],_0x38560c[_0x501628(0x26c)](),this[_0x501628(0x1da)]?.[_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)]&&(this[_0x501628(0x1da)][_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)][_0x501628(0x284)]=!0x0);}[_0x1af132(0x275)](_0x2c7eb2,_0x993063){const _0x2fc467=_0x1af132;_0x2c7eb2[_0x2fc467(0x253)](),_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)]&&(_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)][_0x2fc467(0x284)]=!0x1);}async[_0x1af132(0x205)](_0x274325,_0x4d08a7){const _0x3d85d2=_0x1af132;await this[_0x3d85d2(0x1c8)][_0x3d85d2(0x247)],this[_0x3d85d2(0x1dd)]=!0x1,_0x274325[_0x3d85d2(0x1c7)](),_0x4d08a7[_0x3d85d2(0x25f)][_0x3d85d2(0x1c7)]();}}
|
|
@@ -32,6 +32,7 @@ export declare class AIActionsInteraction extends AIInteraction {
|
|
|
32
32
|
* The model of the command. Specified only for custom actions.
|
|
33
33
|
*/
|
|
34
34
|
readonly model?: string;
|
|
35
|
+
hasError: boolean;
|
|
35
36
|
constructor(options: AIActionsInteractionOptions);
|
|
36
37
|
sendRequest(): Promise<AIConnectorRequest>;
|
|
37
38
|
getDocumentContext(): AIContextItem | undefined;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x25fb56=_0x5ccb;(function(_0x2daf77,_0xf7846){const _0x57be90=_0x5ccb,_0x27743a=_0x2daf77();while(!![]){try{const _0x17c9a5=parseInt(_0x57be90(0x9d))/0x1*(-parseInt(_0x57be90(0x9b))/0x2)+-parseInt(_0x57be90(0x96))/0x3+parseInt(_0x57be90(0x8e))/0x4+parseInt(_0x57be90(0x7f))/0x5+parseInt(_0x57be90(0x80))/0x6+parseInt(_0x57be90(0x95))/0x7*(-parseInt(_0x57be90(0x9a))/0x8)+parseInt(_0x57be90(0x81))/0x9*(parseInt(_0x57be90(0x88))/0xa);if(_0x17c9a5===_0xf7846)break;else _0x27743a['push'](_0x27743a['shift']());}catch(_0x2deac2){_0x27743a['push'](_0x27743a['shift']());}}}(_0xe72f,0x86a83));import{AIInteraction as _0x37af8c,AI_MODEL_EVENT_NAMES as _0xfb820d}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4073ad}from'../../aicore/model/aicontext.js';function _0x5ccb(_0x5941f2,_0x2a2b01){const _0xe72f96=_0xe72f();return _0x5ccb=function(_0x5ccb74,_0x2aebd8){_0x5ccb74=_0x5ccb74-0x7e;let _0x4fb954=_0xe72f96[_0x5ccb74];return _0x4fb954;},_0x5ccb(_0x5941f2,_0x2a2b01);}function _0xe72f(){const _0x41dc7a=['4121568aAjEcg','delegate','TEXT','fire','html','sendRequest','createReply','4067CARnrc','1457466HPvXbN','model','userMessage','hasError','15064oPFSIM','2XBfBQm','current-document','585092pAWUcZ','actionName','executeCustomAction','5447010KdEYdp','3548142bLtQAB','63QkeNmz','args','Current\x20document','replyCreated','executeAction','replies','content','7630otnUhs','version','editor','push','connector','getDocumentContext'];_0xe72f=function(){return _0x41dc7a;};return _0xe72f();}import{AIActionsReply as _0x1c4533}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x37af8c{[_0x25fb56(0x87)];[_0x25fb56(0x89)];[_0x25fb56(0x9e)];[_0x25fb56(0x82)];[_0x25fb56(0x98)];[_0x25fb56(0x97)];[_0x25fb56(0x99)]=!0x1;constructor(_0x1538cc){const _0x4f8ea9=_0x25fb56;super(_0x1538cc),this[_0x4f8ea9(0x87)]=_0x1538cc[_0x4f8ea9(0x87)],this[_0x4f8ea9(0x89)]=_0x1538cc[_0x4f8ea9(0x89)],this[_0x4f8ea9(0x9e)]=_0x1538cc[_0x4f8ea9(0x9e)],this[_0x4f8ea9(0x82)]=_0x1538cc[_0x4f8ea9(0x82)],this[_0x4f8ea9(0x98)]=_0x1538cc[_0x4f8ea9(0x98)],this[_0x4f8ea9(0x97)]=_0x1538cc[_0x4f8ea9(0x97)];}async[_0x25fb56(0x93)](){const _0x90539c=_0x25fb56;return this[_0x90539c(0x9e)]?this[_0x90539c(0x8c)][_0x90539c(0x85)]({'content':this[_0x90539c(0x87)],'actionName':this[_0x90539c(0x9e)],'args':this[_0x90539c(0x82)]}):this[_0x90539c(0x8c)][_0x90539c(0x7e)]({'content':this[_0x90539c(0x87)],'message':this[_0x90539c(0x98)],'model':this[_0x90539c(0x97)],'outputFormat':_0x90539c(0x92)});}[_0x25fb56(0x8d)](){const _0x339bdb=_0x25fb56;return{'type':_0x4073ad[_0x339bdb(0x90)],'content':this[_0x339bdb(0x87)],'version':this[_0x339bdb(0x89)],'label':_0x339bdb(0x83),'uiId':_0x339bdb(0x9c)};}[_0x25fb56(0x94)](_0x312250){const _0x14afa9=_0x25fb56,_0x246fef=new _0x1c4533({'editor':this[_0x14afa9(0x8a)],'documentContextContent':this[_0x14afa9(0x87)],..._0x312250});return this[_0x14afa9(0x86)][_0x14afa9(0x8b)](_0x246fef),_0x246fef[_0x14afa9(0x8f)](..._0xfb820d)['to'](this),this[_0x14afa9(0x91)](_0x14afa9(0x84),_0x246fef),_0x246fef;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58a275=_0x32c8;(function(_0x2b4f7e,_0x17fe13){const _0x36f3ba=_0x32c8,_0x311a12=_0x2b4f7e();while(!![]){try{const _0x25a30d=-parseInt(_0x36f3ba(0xc4))/0x1*(parseInt(_0x36f3ba(0xcf))/0x2)+parseInt(_0x36f3ba(0xc1))/0x3*(parseInt(_0x36f3ba(0xb9))/0x4)+parseInt(_0x36f3ba(0xd5))/0x5*(parseInt(_0x36f3ba(0xd6))/0x6)+parseInt(_0x36f3ba(0xd0))/0x7*(parseInt(_0x36f3ba(0xbd))/0x8)+parseInt(_0x36f3ba(0xcd))/0x9+parseInt(_0x36f3ba(0xbc))/0xa+parseInt(_0x36f3ba(0xc8))/0xb*(-parseInt(_0x36f3ba(0xc5))/0xc);if(_0x25a30d===_0x17fe13)break;else _0x311a12['push'](_0x311a12['shift']());}catch(_0x320dc5){_0x311a12['push'](_0x311a12['shift']());}}}(_0x3fca,0xb9a07));import{AIReply as _0x399411}from'../../aicore/model/aireply.js';function _0x3fca(){const _0x39ed4e=['parsedMergedContent','3755345VfVRoP','removed','length','cloneNode','data-id','6384717xPgNbY','documentContextContent','2768606FPMHVb','10255fvtxQD','new','parsedContent','map','pop','855835kUdWVX','12fIxMbw','node','_getDifferentChangeGroups','isDone','4UctgyU','value','added','4985150REBANI','7408nynMhj','updateChangeGroups','childNodes','modified','2834259FtTLoZ','children','changeGroups','1gZRRPe','60sqwQiJ','pending'];_0x3fca=function(){return _0x39ed4e;};return _0x3fca();}import{getAttribute as _0x4f5666}from'../../aicore/utils/htmlparser.js';function _0x32c8(_0x5040df,_0x240ffb){const _0x3fca0a=_0x3fca();return _0x32c8=function(_0x32c882,_0x55b0af){_0x32c882=_0x32c882-0xb6;let _0x28fa79=_0x3fca0a[_0x32c882];return _0x28fa79;},_0x32c8(_0x5040df,_0x240ffb);}import{uid as _0x41c3d8}from'ckeditor5/src/utils.js';import{diffArrays as _0x281245}from'diff';export class AIActionsReply extends _0x399411{[_0x58a275(0xbe)](){const _0x2e4019=_0x58a275;if(this[_0x2e4019(0xc7)]=this[_0x2e4019(0xd2)][_0x2e4019(0xcb)](!0x0),0x0==this[_0x2e4019(0xc7)][_0x2e4019(0xbf)][_0x2e4019(0xca)])return void(this[_0x2e4019(0xc3)]=[]);const _0x5a14ab=this[_0x2e4019(0xce)][_0x2e4019(0xc2)][_0x2e4019(0xd3)](_0x345097=>({'node':_0x345097,'id':_0x4f5666(_0x345097,_0x2e4019(0xcc))})),_0xfe26e7=this[_0x2e4019(0xc7)][_0x2e4019(0xc2)][_0x2e4019(0xd3)](_0x20707b=>({'node':_0x20707b,'id':_0x4f5666(_0x20707b,_0x2e4019(0xcc))||_0x41c3d8()})),_0x3b6614=_0x281245(_0x5a14ab,_0xfe26e7,{'comparator':(_0x3e6abd,_0x2fad66)=>_0x3e6abd['id']==_0x2fad66['id'],'oneChangePerToken':!0x0});if(!this[_0x2e4019(0xb8)]){for(;_0x3b6614[_0x2e4019(0xca)]&&_0x3b6614[_0x3b6614[_0x2e4019(0xca)]-0x1][_0x2e4019(0xc9)];)_0x3b6614[_0x2e4019(0xd4)]();}const _0x592c23=_0x3b6614[_0x2e4019(0xd3)](_0x44a71b=>{const _0x2e23ef=_0x2e4019,_0x55dc9b=_0x44a71b[_0x2e23ef(0xbb)]?_0x2e23ef(0xd1):_0x44a71b[_0x2e23ef(0xc9)]?_0x2e23ef(0xc9):_0x2e23ef(0xc0);return{'node':_0x44a71b[_0x2e23ef(0xba)][0x0][_0x2e23ef(0xb6)],'type':_0x55dc9b,'id':_0x44a71b[_0x2e23ef(0xba)][0x0]['id']};});this[_0x2e4019(0xc3)]=[{'changes':_0x592c23,'state':_0x2e4019(0xc6),'index':0x0}];}[_0x58a275(0xb7)](_0x320789,_0x599b8d){return _0x599b8d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x21cd80=_0xcb3a;(function(_0x4ada1b,_0x185d3c){var _0x183fde=_0xcb3a,_0x277b03=_0x4ada1b();while(!![]){try{var _0x547b75=-parseInt(_0x183fde(0x176))/0x1*(parseInt(_0x183fde(0x17e))/0x2)+parseInt(_0x183fde(0x181))/0x3+-parseInt(_0x183fde(0x174))/0x4*(-parseInt(_0x183fde(0x180))/0x5)+-parseInt(_0x183fde(0x179))/0x6*(parseInt(_0x183fde(0x17b))/0x7)+parseInt(_0x183fde(0x178))/0x8*(parseInt(_0x183fde(0x172))/0x9)+-parseInt(_0x183fde(0x17f))/0xa+parseInt(_0x183fde(0x175))/0xb;if(_0x547b75===_0x185d3c)break;else _0x277b03['push'](_0x277b03['shift']());}catch(_0x5d0736){_0x277b03['push'](_0x277b03['shift']());}}}(_0x5cdb,0xddf7b));import{Plugin as _0x206a17}from'ckeditor5/src/core.js';function _0xcb3a(_0x5e68e1,_0x5cc697){var _0x5cdb51=_0x5cdb();return _0xcb3a=function(_0xcb3a7c,_0xf0d0b6){_0xcb3a7c=_0xcb3a7c-0x170;var _0x2ab3bf=_0x5cdb51[_0xcb3a7c];return _0x2ab3bf;},_0xcb3a(_0x5e68e1,_0x5cc697);}import{CKEditorError as _0x17290d}from'ckeditor5/src/utils.js';function _0x5cdb(){var _0x42112d=['16462320xkXfmx','606190KvRSFR','5019714fdFdTt','isPremiumPlugin','AIAdapter','AIRequestError','aiadapter-text-adapter-not-set','205137NTsXzr','textAdapter','8SvFbcy','28369935JFksYY','101335MQRTKF','name','184KexgOZ','60864cTUIlT','isOfficialPlugin','791LcqEPd','afterInit','pluginName','26WCjJqV'];_0x5cdb=function(){return _0x42112d;};return _0x5cdb();}export class AIAdapter extends _0x206a17{static get[_0x21cd80(0x17d)](){var _0x141d18=_0x21cd80;return _0x141d18(0x183);}static get[_0x21cd80(0x17a)](){return!0x0;}static get[_0x21cd80(0x182)](){return!0x0;}[_0x21cd80(0x17c)](){var _0x4c41d3=_0x21cd80;if(!this[_0x4c41d3(0x173)])throw new _0x17290d(_0x4c41d3(0x171),null);}}export class AIRequestError extends Error{constructor(_0x327521){var _0x2c4d5d=_0x21cd80;super(_0x327521),this[_0x2c4d5d(0x177)]=_0x2c4d5d(0x170);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5b1fb2=_0x4405;function _0x1bec(){const _0xc24820=['requires','10295110QdIHgJ','9fBkfGG','catch','6UKbYUy','11266flBdQF','AI_ERROR_GET_HEADERS','locale','aitextadapter-send-request-failed','249lGxkVS','get','init','4056024sLSYvM','resolve','1363928cFPMwA','signal','error','aborted','plugins','5602005nTQWia','object','869548fzFmYu','_prepareRequestHeaders','application/json','27284283bmvWbT','makeRequest','sendRequest','assign','editor','reject','name','textAdapter','3wbDpOU','11EUzSyb','AI_ERROR_GET_PARAMETERS','AbortError','abort','_prepareRequestParameters','7xTJEKr','abortController'];_0x1bec=function(){return _0xc24820;};return _0x1bec();}function _0x4405(_0x4275c8,_0x1c0079){const _0x1bec3d=_0x1bec();return _0x4405=function(_0x440506,_0x3353d5){_0x440506=_0x440506-0x16d;let _0xcb8690=_0x1bec3d[_0x440506];return _0xcb8690;},_0x4405(_0x4275c8,_0x1c0079);}(function(_0x5d7cd0,_0x264f4b){const _0x37b733=_0x4405,_0x3d0285=_0x5d7cd0();while(!![]){try{const _0x4e7a33=parseInt(_0x37b733(0x174))/0x1*(-parseInt(_0x37b733(0x170))/0x2)+parseInt(_0x37b733(0x18b))/0x3*(parseInt(_0x37b733(0x180))/0x4)+parseInt(_0x37b733(0x17e))/0x5*(parseInt(_0x37b733(0x16f))/0x6)+-parseInt(_0x37b733(0x191))/0x7*(-parseInt(_0x37b733(0x179))/0x8)+-parseInt(_0x37b733(0x16d))/0x9*(parseInt(_0x37b733(0x194))/0xa)+parseInt(_0x37b733(0x18c))/0xb*(-parseInt(_0x37b733(0x177))/0xc)+parseInt(_0x37b733(0x183))/0xd;if(_0x4e7a33===_0x264f4b)break;else _0x3d0285['push'](_0x3d0285['shift']());}catch(_0x427e25){_0x3d0285['push'](_0x3d0285['shift']());}}}(_0x1bec,0xcc54c));import{Plugin as _0xfdbaa4}from'ckeditor5/src/core.js';import{CKEditorError as _0x1bd9a0}from'ckeditor5/src/utils.js';import{AIAdapter as _0x3f8488,AIRequestError as _0x3f877b}from'./aiadapter.js';import{getTranslation as _0x1e940f}from'../utils/common-translations.js';export class AITextAdapter extends _0xfdbaa4{[_0x5b1fb2(0x192)];static get[_0x5b1fb2(0x193)](){return[_0x3f8488];}constructor(_0xa6359a){const _0x75b001=_0x5b1fb2;super(_0xa6359a),this[_0x75b001(0x192)]=new AbortController();}[_0x5b1fb2(0x176)](){const _0x515768=_0x5b1fb2;this[_0x515768(0x187)][_0x515768(0x17d)][_0x515768(0x175)](_0x3f8488)[_0x515768(0x18a)]=this;}[_0x5b1fb2(0x18f)](){const _0x3aa0bd=_0x5b1fb2;this[_0x3aa0bd(0x192)][_0x3aa0bd(0x17a)][_0x3aa0bd(0x17c)]||(this[_0x3aa0bd(0x192)][_0x3aa0bd(0x18f)](),this[_0x3aa0bd(0x192)]=new AbortController());}async[_0x5b1fb2(0x184)](_0x5e502a){const _0x554f86=_0x5b1fb2;return this[_0x554f86(0x185)](_0x5e502a)[_0x554f86(0x16e)](_0x557466=>{const _0x512319=_0x554f86;if(_0x557466 instanceof _0x3f877b)return Promise[_0x512319(0x188)](_0x557466);if(_0x512319(0x18e)==_0x557466[_0x512319(0x189)])return Promise[_0x512319(0x178)]();throw console[_0x512319(0x17b)](_0x557466),new _0x1bd9a0(_0x512319(0x173),null);});}async[_0x5b1fb2(0x181)](_0x2e9725,_0x39ff2f){const _0x33b7ec=_0x5b1fb2,_0x87922e=this[_0x33b7ec(0x187)][_0x33b7ec(0x172)],_0x4caf00={'Content-Type':_0x33b7ec(0x182)};if(_0x33b7ec(0x17f)==typeof _0x2e9725)Object[_0x33b7ec(0x186)](_0x4caf00,_0x2e9725);else{if(_0x2e9725)try{const _0xf4ded0=await _0x2e9725(_0x39ff2f);Object[_0x33b7ec(0x186)](_0x4caf00,_0xf4ded0);}catch{return Promise[_0x33b7ec(0x188)](new _0x3f877b(_0x1e940f(_0x87922e,_0x33b7ec(0x171))));}}return _0x4caf00;}async[_0x5b1fb2(0x190)](_0x323815,_0x21480e){const _0x191d74=_0x5b1fb2,_0x211ec4=this[_0x191d74(0x187)][_0x191d74(0x172)];if(_0x191d74(0x17f)==typeof _0x323815)return _0x323815;try{return await _0x323815(_0x21480e);}catch{return Promise[_0x191d74(0x188)](new _0x3f877b(_0x1e940f(_0x211ec4,_0x191d74(0x18d))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1dbe(){const _0x5821d3=['_getGeneratedText','abortController','_readAsyncIterableResponse','json','Instruction:\x0a','AI_ERROR_UNSUPPORTED_MODEL','define','config','getReader','length','get','anthropic.claude-v2','_processAWSRequest','3186813GeEeRn','_requestParameters','\x0a[/INST]','_readStreamableResponse','text','748760OhIelX','_readStaticResponse','parse','decode','196VlIUrj','POST','join','completions','utf-8','pluginName','locale','read','bedrock-2023-05-31','ai.assistant.adapter.aws.requestParameters','completion','chunk','Human:\x0a','split','4gJNFEo','_prepareRequestParameters','\x0a\x0aAssistant:','ai.assistant.adapter.aws.bedrockClientConfig','generation','editor','resolve','stringify','_bedrockClientConfig','ai21.j2','generations','application/json','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.','AWSTextAdapter','map','sendRequest','getModelFamily','bytes','test','send','11iVgGfp','data','meta.llama','preparePrompt','<<SYS>>\x0a','_processProxyRequest','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','150863zxatuY','cohere.command','_prepareRequestHeaders','ai.assistant.adapter.aws.requestHeaders','181746gJoePF','_apiUrl','\x0a<</SYS>>\x0a[INST]\x0a','1444956BATMEM','6nLpYyu','220kpWFfv','3771amhnLE','signal','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.','filter','ai.assistant.adapter.aws.apiUrl','anthropic.claude','_requestHeaders','body','1225235wwCaZH'];_0x1dbe=function(){return _0x5821d3;};return _0x1dbe();}const _0x81c879=_0x4f55;(function(_0x4f29e2,_0x342b94){const _0x2fada9=_0x4f55,_0x1bc215=_0x4f29e2();while(!![]){try{const _0x193f22=parseInt(_0x2fada9(0x1c9))/0x1*(parseInt(_0x2fada9(0x1ae))/0x2)+-parseInt(_0x2fada9(0x181))/0x3*(-parseInt(_0x2fada9(0x1a0))/0x4)+parseInt(_0x2fada9(0x189))/0x5*(-parseInt(_0x2fada9(0x1d1))/0x6)+parseInt(_0x2fada9(0x197))/0x7+parseInt(_0x2fada9(0x19c))/0x8+-parseInt(_0x2fada9(0x1cd))/0x9*(parseInt(_0x2fada9(0x180))/0xa)+-parseInt(_0x2fada9(0x1c2))/0xb*(-parseInt(_0x2fada9(0x1d0))/0xc);if(_0x193f22===_0x342b94)break;else _0x1bc215['push'](_0x1bc215['shift']());}catch(_0x46442f){_0x1bc215['push'](_0x1bc215['shift']());}}}(_0x1dbe,0x53ce7));import{AITextAdapter as _0x3f47f8}from'./aitextadapter.js';import{AIRequestError as _0x2fa95c}from'./aiadapter.js';function _0x4f55(_0x46e7a6,_0x26db63){const _0x1dbe98=_0x1dbe();return _0x4f55=function(_0x4f552a,_0x5c6226){_0x4f552a=_0x4f552a-0x180;let _0x4a2962=_0x1dbe98[_0x4f552a];return _0x4a2962;},_0x4f55(_0x46e7a6,_0x26db63);}import{BedrockRuntimeClient as _0x48e7f5,InvokeModelCommand as _0x556a6e,InvokeModelWithResponseStreamCommand as _0x335247}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x51691c}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x3f47f8{[_0x81c879(0x1ce)];[_0x81c879(0x187)];[_0x81c879(0x1b6)];[_0x81c879(0x198)];static get[_0x81c879(0x1a5)](){const _0x4fa6bc=_0x81c879;return _0x4fa6bc(0x1bb);}constructor(_0x4b9ffd){const _0x34d123=_0x81c879;super(_0x4b9ffd),_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1a9))||_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x190)](_0x34d123(0x1a9),{'model':_0x34d123(0x195),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x34d123(0x1a8),'stream':!0x0}),this[_0x34d123(0x1ce)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x185)),this[_0x34d123(0x1b6)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1b1)),this[_0x34d123(0x187)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1cc)),this[_0x34d123(0x198)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1a9));}async[_0x81c879(0x1bd)]({query:_0x3ed8ff,context:_0x4ace18,onData:_0x46539e,actionId:_0x2608da}){const _0x335bbb=_0x81c879,{model:_0x44dad8,stream:_0x225dbd,..._0x5cb1c2}=await this[_0x335bbb(0x1af)](this[_0x335bbb(0x198)],_0x2608da),_0x28bfbb={'prompt':await this[_0x335bbb(0x1c5)](_0x3ed8ff,_0x4ace18,_0x44dad8,_0x2608da),..._0x5cb1c2};this[_0x335bbb(0x1ce)]?await this[_0x335bbb(0x1c7)](_0x28bfbb,_0x44dad8,_0x225dbd,_0x46539e,_0x2608da):await this[_0x335bbb(0x196)](_0x28bfbb,_0x44dad8,_0x225dbd,_0x46539e);}async[_0x81c879(0x1c5)](_0x1cc2e7,_0x357f52,_0x46a31b,_0xa1d155){const _0x4c309b=_0x81c879;let _0x1f0abc,_0x35ec30;return _0x357f52?(_0x1f0abc=_0x4c309b(0x1ba),_0x35ec30=_0x4c309b(0x18e)+_0x1cc2e7+_0x4c309b(0x1c8)+_0x357f52):(_0x1f0abc=_0x4c309b(0x183),_0x35ec30=_0x1cc2e7),_0x4c309b(0x1c4)==this[_0x4c309b(0x1be)](_0x46a31b)?_0x4c309b(0x1c6)+_0x1f0abc+_0x4c309b(0x1cf)+_0x35ec30+_0x4c309b(0x199):_0x4c309b(0x1ac)+_0x1f0abc+'\x0a'+_0x35ec30+_0x4c309b(0x1b0);}[_0x81c879(0x1be)](_0x1ef42b){const _0x467f10=_0x81c879;if(/^anthropic\.claude/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x186);if(/^ai21\.j2/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x1b7);if(/^cohere\.command/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x1ca);if(/^meta\.llama/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x1c4);throw new _0x2fa95c(_0x51691c(this[_0x467f10(0x1b3)][_0x467f10(0x1a6)],_0x467f10(0x18f),_0x1ef42b));}async[_0x81c879(0x1c7)](_0x1c0ea4,_0x732452,_0x460086,_0x2d4443,_0x1673aa){const _0x2aaeeb=_0x81c879,_0xeaa7fd={'method':_0x2aaeeb(0x1a1),'headers':await this[_0x2aaeeb(0x1cb)](this[_0x2aaeeb(0x187)],_0x1673aa),'body':JSON[_0x2aaeeb(0x1b5)]({..._0x1c0ea4,'model':_0x732452,'stream':_0x460086}),'signal':this[_0x2aaeeb(0x18b)][_0x2aaeeb(0x182)]},_0x32ea06=await fetch(this[_0x2aaeeb(0x1ce)],_0xeaa7fd);_0x460086?await this[_0x2aaeeb(0x19a)](_0x32ea06,_0x732452,_0x2d4443):await this[_0x2aaeeb(0x19d)](_0x32ea06,_0x732452,_0x2d4443);}async[_0x81c879(0x196)](_0x1d769a,_0xc07038,_0x161e52,_0x2f3574){const _0x4edf4a=_0x81c879,_0x3020a7=new _0x48e7f5(this[_0x4edf4a(0x1b6)]),_0x19272a={'body':JSON[_0x4edf4a(0x1b5)](_0x1d769a),'contentType':_0x4edf4a(0x1b9),'accept':_0x4edf4a(0x1b9),'modelId':_0xc07038};let _0x45ec99;if(_0x161e52){const _0x47188d=new _0x335247(_0x19272a);_0x45ec99=await _0x3020a7[_0x4edf4a(0x1c1)](_0x47188d,{'abortSignal':this[_0x4edf4a(0x18b)][_0x4edf4a(0x182)]}),await this[_0x4edf4a(0x18c)](_0x45ec99,_0xc07038,_0x2f3574);}else{const _0x4eea63=new _0x556a6e(_0x19272a);_0x45ec99=await _0x3020a7[_0x4edf4a(0x1c1)](_0x4eea63,{'abortSignal':this[_0x4edf4a(0x18b)][_0x4edf4a(0x182)]}),await this[_0x4edf4a(0x19d)](_0x45ec99,_0xc07038,_0x2f3574);}}async[_0x81c879(0x18c)](_0x1ec761,_0x5b2b05,_0x4dec7e){const _0x3fc3e5=_0x81c879,_0x39d541=_0x1ec761[_0x3fc3e5(0x188)],_0x5c9d83=new TextDecoder(_0x3fc3e5(0x1a4));let _0x51dda7='';for await(const _0x232d29 of _0x39d541)if(_0x232d29[_0x3fc3e5(0x1ab)]){const _0x1966e=_0x5c9d83[_0x3fc3e5(0x19f)](_0x232d29[_0x3fc3e5(0x1ab)][_0x3fc3e5(0x1bf)]),_0x481603=JSON[_0x3fc3e5(0x19e)](_0x1966e);_0x51dda7+=this[_0x3fc3e5(0x18a)](_0x481603,_0x5b2b05),_0x4dec7e(_0x51dda7);}return Promise[_0x3fc3e5(0x1b4)]();}async[_0x81c879(0x19a)](_0x11a50d,_0x436e72,_0x224ab8){const _0x223364=_0x81c879,_0x344717=_0x11a50d[_0x223364(0x188)],_0x5e680a=new TextDecoder(_0x223364(0x1a4)),_0xeb9388=_0x344717[_0x223364(0x192)]();let _0x4927f4='',_0x3e56b1='',_0x3c6364=!0x1;for(;!_0x3c6364;){const {done:_0x3f3a06,value:_0xe0652d}=await _0xeb9388[_0x223364(0x1a7)]();if(_0x3c6364=_0x3f3a06,_0x3c6364)break;const _0x37cbfc=(_0x4927f4+_0x5e680a[_0x223364(0x19f)](_0xe0652d))[_0x223364(0x1ad)]('\x0a')[_0x223364(0x1bc)](_0x44d152=>{const _0x19ffce=_0x223364;try{return _0x4927f4='',JSON[_0x19ffce(0x19e)](_0x44d152);}catch{return _0x4927f4=_0x44d152,null;}})[_0x223364(0x184)](_0x1a8bd1=>null!==_0x1a8bd1);_0x37cbfc[_0x223364(0x193)]&&(_0x3e56b1+=_0x37cbfc[_0x223364(0x1bc)](_0x3201d5=>this[_0x223364(0x18a)](_0x3201d5,_0x436e72))[_0x223364(0x1a2)](''),_0x224ab8(_0x3e56b1));}return Promise[_0x223364(0x1b4)]();}async[_0x81c879(0x19d)](_0x521509,_0x137c02,_0x5b2221){const _0x18287a=_0x81c879;let _0x2bdd21;return _0x2bdd21=_0x521509 instanceof Response?await _0x521509[_0x18287a(0x18d)]():JSON[_0x18287a(0x19e)](new TextDecoder(_0x18287a(0x1a4))[_0x18287a(0x19f)](_0x521509[_0x18287a(0x188)])),(_0x5b2221(this[_0x18287a(0x18a)](_0x2bdd21,_0x137c02)),Promise[_0x18287a(0x1b4)]());}[_0x81c879(0x18a)](_0x346cd5,_0x3fb1f8){const _0x286e89=_0x81c879;switch(this[_0x286e89(0x1be)](_0x3fb1f8)){case _0x286e89(0x186):return _0x346cd5[_0x286e89(0x1aa)];case _0x286e89(0x1b7):return _0x346cd5[_0x286e89(0x1a3)][0x0][_0x286e89(0x1c3)][_0x286e89(0x19b)];case _0x286e89(0x1ca):return _0x346cd5[_0x286e89(0x1b8)][0x0][_0x286e89(0x19b)];case _0x286e89(0x1c4):return _0x346cd5[_0x286e89(0x1b2)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d4386=_0x183e;(function(_0x4073ea,_0x5a02b6){const _0x2ab50f=_0x183e,_0x51e5c4=_0x4073ea();while(!![]){try{const _0x1873a8=parseInt(_0x2ab50f(0xfd))/0x1*(parseInt(_0x2ab50f(0xbb))/0x2)+parseInt(_0x2ab50f(0xde))/0x3*(parseInt(_0x2ab50f(0xca))/0x4)+parseInt(_0x2ab50f(0xee))/0x5+-parseInt(_0x2ab50f(0xf7))/0x6+parseInt(_0x2ab50f(0xc1))/0x7*(parseInt(_0x2ab50f(0xb7))/0x8)+parseInt(_0x2ab50f(0xe4))/0x9*(parseInt(_0x2ab50f(0xe5))/0xa)+-parseInt(_0x2ab50f(0xe9))/0xb*(parseInt(_0x2ab50f(0xd1))/0xc);if(_0x1873a8===_0x5a02b6)break;else _0x51e5c4['push'](_0x51e5c4['shift']());}catch(_0x6528aa){_0x51e5c4['push'](_0x51e5c4['shift']());}}}(_0xe75c,0x6aa81));import{AITextAdapter as _0x4c6bc6}from'./aitextadapter.js';function _0x183e(_0x5c45f9,_0x3269fe){const _0xe75c57=_0xe75c();return _0x183e=function(_0x183e52,_0x304d79){_0x183e52=_0x183e52-0xb6;let _0x5e5057=_0xe75c57[_0x183e52];return _0x5e5057;},_0x183e(_0x5c45f9,_0x3269fe);}import{AIRequestError as _0x58d34b}from'./aiadapter.js';import{getTranslation as _0x81356a}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x4c6bc6{[_0x5d4386(0xc6)];[_0x5d4386(0xd7)];[_0x5d4386(0xf8)];static get[_0x5d4386(0xd3)](){const _0x1740f1=_0x5d4386;return _0x1740f1(0xf6);}constructor(_0x133fb5){const _0x491382=_0x5d4386;super(_0x133fb5),_0x133fb5[_0x491382(0xd6)][_0x491382(0xc4)](_0x491382(0xc0),_0x491382(0xda)),_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xf5))||_0x133fb5[_0x491382(0xd6)][_0x491382(0xc4)](_0x491382(0xf5),{'model':_0x491382(0xe6),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x491382(0xc6)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xc0)),this[_0x491382(0xd7)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xdd))||{},this[_0x491382(0xf8)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xf5));}async[_0x5d4386(0xe3)]({query:_0x3a6c73,context:_0x50d88b,onData:_0x108849,actionId:_0x2a567b}){const _0x1192d9=_0x5d4386,_0x59eed2=this[_0x1192d9(0xc2)][_0x1192d9(0xcf)],_0x5b73bb=await this[_0x1192d9(0xdf)](_0x3a6c73,_0x50d88b,_0x2a567b),_0x6af956=await this[_0x1192d9(0xc3)](this[_0x1192d9(0xd7)],_0x2a567b),_0x46a9c8=await this[_0x1192d9(0xce)](this[_0x1192d9(0xf8)],_0x2a567b),_0xebfbe4={'messages':_0x5b73bb,..._0x46a9c8},_0x57da21={'method':_0x1192d9(0xdb),'headers':_0x6af956,'body':JSON[_0x1192d9(0xbe)](_0xebfbe4),'signal':this[_0x1192d9(0xf4)][_0x1192d9(0xec)]},_0x2d980e=await fetch(this[_0x1192d9(0xc6)],_0x57da21);if(_0x2d980e['ok'])return _0x46a9c8[_0x1192d9(0xfc)]?await this[_0x1192d9(0xd4)](_0x2d980e,_0x108849):await this[_0x1192d9(0xb9)](_0x2d980e,_0x108849),Promise[_0x1192d9(0xf0)]();{const _0x29ccaf=await _0x2d980e[_0x1192d9(0xe1)]();return _0x29ccaf[_0x1192d9(0xd8)](_0x1192d9(0xb6))?Promise[_0x1192d9(0xc7)](new _0x58d34b(_0x81356a(_0x59eed2,_0x1192d9(0xf1)))):_0x29ccaf[_0x1192d9(0xd8)](_0x1192d9(0xf9))?Promise[_0x1192d9(0xc7)](new _0x58d34b(_0x81356a(_0x59eed2,_0x1192d9(0xbf)))):Promise[_0x1192d9(0xc7)](new Error(_0x29ccaf));}}async[_0x5d4386(0xdf)](_0x457f0c,_0x6fbba,_0x2e360a){const _0x3b8342=_0x5d4386;let _0x44f722,_0x448d7d;return _0x6fbba?(_0x44f722=_0x3b8342(0xe2),_0x448d7d=_0x3b8342(0xbc)+_0x457f0c+_0x3b8342(0xc8)+_0x6fbba):(_0x44f722=_0x3b8342(0xdc),_0x448d7d=_0x457f0c),[{'role':_0x3b8342(0xcc),'content':_0x44f722},{'role':_0x3b8342(0xb8),'content':_0x448d7d}];}async[_0x5d4386(0xd4)](_0x5aa354,_0x53fd9a){const _0x40b080=_0x5d4386,_0x1d0ca9=_0x5aa354[_0x40b080(0xfa)][_0x40b080(0xed)](),_0x4f4aef=new TextDecoder();let _0x2e3675='',_0x772c64='',_0x4d929b='',_0x45c73e=!0x1;for(;!_0x45c73e;){const {done:_0x1f65aa,value:_0x2c6f44}=await _0x1d0ca9[_0x40b080(0xe8)](),_0x1c632e=_0x2e3675+_0x4f4aef[_0x40b080(0xeb)](_0x2c6f44);let _0x305693='';_0x45c73e=_0x1f65aa;try{_0x305693=this[_0x40b080(0xf3)](_0x1c632e),_0x2e3675='';}catch{_0x2e3675=_0x1c632e;continue;}_0x772c64+=_0x305693,!_0x45c73e&&this[_0x40b080(0xea)](_0x772c64)||_0x772c64&&(_0x4d929b+=_0x772c64,_0x772c64='',_0x53fd9a(_0x4d929b));}return Promise[_0x40b080(0xf0)]();}async[_0x5d4386(0xb9)](_0x4a5a0d,_0xafc189){const _0x32d93b=_0x5d4386;return _0xafc189((await _0x4a5a0d[_0x32d93b(0xcb)]())[_0x32d93b(0xc9)][0x0][_0x32d93b(0xd0)][_0x32d93b(0xe7)]),Promise[_0x32d93b(0xf0)]();}[_0x5d4386(0xea)](_0x4fe696){const _0x3e2ee3=_0x5d4386,_0x43c5e0=_0x4fe696[_0x3e2ee3(0xd9)]('<')[_0x3e2ee3(0xe0)]!==_0x4fe696[_0x3e2ee3(0xd9)]('>')[_0x3e2ee3(0xe0)],_0x2e2f17=_0x4fe696[_0x3e2ee3(0xe0)]<0x1e;return _0x43c5e0&&_0x2e2f17;}[_0x5d4386(0xf3)](_0x792d71){const _0xed0792=_0x5d4386;return _0x792d71[_0xed0792(0xd9)](/\n(?![^{]*\})/g)[_0xed0792(0xc5)](_0x4b8e93=>_0x4b8e93[_0xed0792(0xf2)](_0xed0792(0xcd),''))[_0xed0792(0xfb)](_0x101e63=>_0x101e63&&_0x101e63[_0xed0792(0xe0)]>0x0&&_0xed0792(0xd2)!==_0x101e63)[_0xed0792(0xc5)](_0x3b604c=>{const _0x557a6e=_0xed0792,{choices:_0x213348}=JSON[_0x557a6e(0xef)](_0x3b604c);if(_0x213348[0x0]?.[_0x557a6e(0xba)]?.[_0x557a6e(0xe7)])return _0x213348[0x0][_0x557a6e(0xba)][_0x557a6e(0xe7)];})[_0xed0792(0xfb)](_0x18121f=>_0x18121f)[_0xed0792(0xd5)]('');}}function _0xe75c(){const _0x5cf7db=['system','data:\x20','_prepareRequestParameters','locale','message','14328oXLQnE','[DONE]','pluginName','_readStreamableResponse','join','config','_requestHeaders','includes','split','https://api.openai.com/v1/chat/completions','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.openAI.requestHeaders','259866dnJnbo','prepareMessages','length','text','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.','sendRequest','9ODIvbQ','8195830FTouDw','gpt-4o','content','read','25806fAcuIr','_isBufferIncomplete','decode','signal','getReader','2315560BoOVYx','parse','resolve','AI_ERROR_CONTEXT_LENGTH','replace','_cleanUpData','abortController','ai.assistant.adapter.openAI.requestParameters','OpenAITextAdapter','915726kHkhfp','_requestParameters','Moderation','body','filter','stream','357wNmORW','context_length_exceeded','6362288DSgtZC','user','_readStaticResponse','delta','4442AmmbGY','Instruction:\x0a','get','stringify','AI_ERROR_MODERATION','ai.assistant.adapter.openAI.apiUrl','7pZUWhN','editor','_prepareRequestHeaders','define','map','_apiUrl','reject','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','choices','24DfFQgX','json'];_0xe75c=function(){return _0x5cf7db;};return _0xe75c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1421fe=_0x1e9a;(function(_0x39503d,_0x4fb57e){const _0x1c9bad=_0x1e9a,_0x5d1b06=_0x39503d();while(!![]){try{const _0x5246a9=parseInt(_0x1c9bad(0x218))/0x1+parseInt(_0x1c9bad(0x20d))/0x2*(-parseInt(_0x1c9bad(0x23d))/0x3)+parseInt(_0x1c9bad(0x237))/0x4*(parseInt(_0x1c9bad(0x21a))/0x5)+parseInt(_0x1c9bad(0x20f))/0x6+-parseInt(_0x1c9bad(0x21d))/0x7*(-parseInt(_0x1c9bad(0x25f))/0x8)+parseInt(_0x1c9bad(0x231))/0x9+-parseInt(_0x1c9bad(0x238))/0xa*(parseInt(_0x1c9bad(0x1f9))/0xb);if(_0x5246a9===_0x4fb57e)break;else _0x5d1b06['push'](_0x5d1b06['shift']());}catch(_0x460ecf){_0x5d1b06['push'](_0x5d1b06['shift']());}}}(_0x29f9,0x34199));import{Plugin as _0x59a176}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5632f1}from'./aiassistantui.js';import{AIAssistantEditing as _0x202a4}from'./aiassistantediting.js';import{getTranslation as _0x2494ab}from'./utils/common-translations.js';function _0x29f9(){const _0x171382=['filter','Translate\x20the\x20content\x20to\x20English\x20language.','Professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateArabic','pluginName','162107YzgpNu','Edit\x20or\x20review','groupId','Spanish','improveWriting','translateHindi','summarize','translateFrench','Make\x20shorter','Journalism','Translate\x20the\x20content\x20to\x20Arabic\x20language.','French','Make\x20longer','Simplified\x20Chinese','poetic','locale','Hindi','push','Generate\x20from\x20selection','Portuguese','65246qWdgzg','changeTone','311064mqnkpR','AIAssistant','Arabic','Continue','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','forEach','translateGerman','includes','184156BbNxRQ','makeShorter','5TJCRMQ','Legal','Summarize','315MbGjzs','ai.assistant.removeCommands','friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Change\x20tone','translateEnglish','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Business','professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','English','get','makeLonger','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','journalism','Casual','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','find','713745yxFmbS','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','changeStyle','define','390392tsuBcg','40JpABeX','Translate','ai.assistant.preserveComments','Direct','Friendly','39wlzSpJ','translate','simplifyLanguage','Translate\x20the\x20content\x20to\x20French\x20language.','legal','confident','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','direct','set','editOrReview','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Confident','isOfficialPlugin','requires','generate','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.commands','German','concat','isPremiumPlugin','commands','continue','Simplify\x20language','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateChinese','casual','translateSpanish','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','business','50408yigaTd','translatePortuguese','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Change\x20style'];_0x29f9=function(){return _0x171382;};return _0x29f9();}function _0x1e9a(_0x303255,_0x3bdbcb){const _0x29f901=_0x29f9();return _0x1e9a=function(_0x1e9a01,_0x52d8c1){_0x1e9a01=_0x1e9a01-0x1f3;let _0x1fda40=_0x29f901[_0x1e9a01];return _0x1fda40;},_0x1e9a(_0x303255,_0x3bdbcb);}import{normalizeCommandsConfig as _0x3e9c9f}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x59a176{static get[_0x1421fe(0x24b)](){return[_0x5632f1,_0x202a4];}static get[_0x1421fe(0x1f8)](){const _0x3fbf33=_0x1421fe;return _0x3fbf33(0x210);}static get[_0x1421fe(0x24a)](){return!0x0;}static get[_0x1421fe(0x251)](){return!0x0;}constructor(_0x46a1a5){const _0x19ee70=_0x1421fe;super(_0x46a1a5);const _0x18df9d=_0x46a1a5[_0x19ee70(0x213)],_0x567aad=_0x46a1a5[_0x19ee70(0x208)];_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x23a),!0x0),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x24e),getDefaultAICommands(_0x567aad)),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x234),[]),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x21e),[]);let _0x57601f=_0x3e9c9f(_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x24e)),_0x567aad);const _0x1cab79=_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x234)),_0x409827=_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x21e));_0x1cab79[_0x19ee70(0x215)](_0x5bef06=>{const _0x766c6f=_0x19ee70,_0x5b0cde=_0x57601f[_0x766c6f(0x230)](_0x28eb47=>_0x28eb47[_0x766c6f(0x1fb)]===_0x5bef06[_0x766c6f(0x1fb)]);_0x5b0cde?_0x5b0cde[_0x766c6f(0x252)]=_0x5b0cde[_0x766c6f(0x252)][_0x766c6f(0x250)](_0x5bef06[_0x766c6f(0x252)]):_0x57601f[_0x766c6f(0x20a)](_0x5bef06);}),_0x57601f=_0x57601f[_0x19ee70(0x1f3)](_0x3073b5=>!_0x409827[_0x19ee70(0x217)](_0x3073b5[_0x19ee70(0x1fb)])),_0x57601f[_0x19ee70(0x215)](_0x1e1c0d=>{const _0x374295=_0x19ee70;_0x1e1c0d[_0x374295(0x252)]=_0x1e1c0d[_0x374295(0x252)][_0x374295(0x1f3)](_0x3556f1=>!_0x409827[_0x374295(0x217)](_0x3556f1['id']));}),_0x18df9d[_0x19ee70(0x245)](_0x19ee70(0x24e),_0x57601f);}}export function getDefaultAICommands(_0x37066b){const _0x4cdc37=_0x1421fe;return[{'groupId':_0x4cdc37(0x246),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x1fa)),'commands':[{'id':_0x4cdc37(0x1fd),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x22e)),'prompt':_0x4cdc37(0x226)},{'id':_0x4cdc37(0x219),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x201)),'prompt':_0x4cdc37(0x220)},{'id':_0x4cdc37(0x229),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x205)),'prompt':_0x4cdc37(0x223)},{'id':_0x4cdc37(0x23f),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x254)),'prompt':_0x4cdc37(0x243)}]},{'groupId':_0x4cdc37(0x24c),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x20b)),'commands':[{'id':_0x4cdc37(0x1ff),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x21c)),'prompt':_0x4cdc37(0x248)},{'id':_0x4cdc37(0x253),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x212)),'prompt':_0x4cdc37(0x247)}]},{'groupId':_0x4cdc37(0x20e),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x221)),'commands':[{'id':_0x4cdc37(0x225),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x1f5)),'prompt':_0x4cdc37(0x1f6)},{'id':_0x4cdc37(0x25a),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x22d)),'prompt':_0x4cdc37(0x261)},{'id':_0x4cdc37(0x244),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x23b)),'prompt':_0x4cdc37(0x232)},{'id':_0x4cdc37(0x242),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x249)),'prompt':_0x4cdc37(0x255)},{'id':_0x4cdc37(0x21f),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x23c)),'prompt':_0x4cdc37(0x24d)}]},{'groupId':_0x4cdc37(0x235),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x262)),'commands':[{'id':_0x4cdc37(0x25e),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x224)),'prompt':_0x4cdc37(0x22b)},{'id':_0x4cdc37(0x241),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x21b)),'prompt':_0x4cdc37(0x258)},{'id':_0x4cdc37(0x22c),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x202)),'prompt':_0x4cdc37(0x214)},{'id':_0x4cdc37(0x207),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x257)),'prompt':_0x4cdc37(0x22f)}]},{'groupId':_0x4cdc37(0x23e),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x239)),'commands':[{'id':_0x4cdc37(0x222),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x227)),'prompt':_0x4cdc37(0x1f4)},{'id':_0x4cdc37(0x25b),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x1fc)),'prompt':_0x4cdc37(0x25d)},{'id':_0x4cdc37(0x260),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x20c)),'prompt':_0x4cdc37(0x256)},{'id':_0x4cdc37(0x216),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x24f)),'prompt':_0x4cdc37(0x25c)},{'id':_0x4cdc37(0x200),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x204)),'prompt':_0x4cdc37(0x240)},{'id':_0x4cdc37(0x259),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x206)),'prompt':_0x4cdc37(0x233)},{'id':_0x4cdc37(0x1fe),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x209)),'prompt':_0x4cdc37(0x22a)},{'id':_0x4cdc37(0x1f7),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x211)),'prompt':_0x4cdc37(0x203)}]}];}
|