@ckeditor/ckeditor5-ai 47.0.0-alpha.8 → 47.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +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/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +197 -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.d.ts +30 -0
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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.d.ts +1 -0
- 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.d.ts +49 -0
- 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.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.d.ts +14 -0
- 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.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4238(){const _0x10cfc7=['_isAbortError','_navigateToPrevious','TableSelection','showChangesButton','bodyView','modelToViewWithIds','version','slice','random','push','rejected','addNavigationItem','isLoading','AI_ACTIONS_TRY_AGAIN','AIActions','pluginName','textContent','$graveyard','_isNavigationCounterInView','getChild','isOfficialPlugin','ck-ai-navigation-button\x20ck-ai-next-button','stopListening','setChangeGroupState','Error\x20updating\x20content\x20in\x20replyContentUpdated:','1/1','history','_children','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','sourcePosition','1924641VPrill','_refreshInteraction','filter','baseVersion','listenTo','ck-ai-custom-action-button','_createInteraction','stopInteraction','queueEmptyPromise','getSelectedBlocks','TrackChangesEditing','requires','documentContextContent','startsWith','_clearErrorState','Error\x20updating\x20content\x20in\x20replyCreated:','Error\x20updating\x20content\x20during\x20navigation:','rootName','replies','span','state','96DjuOoj','close','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','reinsert','_executeAction','indexOf','range','operationsA','_balloonShowDiff','getRoot','createRange','nextSibling','accepted','bind','_isNavigationPreviousButtonInView','_customViews','mainView','selection','getCommonAncestor','createPositionBefore','change','actionCallId','execute','remove','map','hasError','setErrorState','ck-ai-interaction-counter','isEnabled','enqueue','abort','1265588UYvVJE','insertSuggestion','plugins','locale','type','open','has','processor','Error\x20refreshing\x20interaction:','replyContentUpdated','focus','pending','_interaction','toData','includes','isBusy','_navigationPreviousButton','_applyChanges','nodeAfter','_promiseQueue','_setupCustomViews','AIBalloon','_clearSuggestionContent','_navigationNextButton','_setErrorState','removeNavigationItem','toggleSuggestionDisplayMode','toolbar','path','_applyOperationsAsSuggestions','actionName','showError','getFirstRange','_anchorOperation','_currentInteractionIndex','clearLoading','add','_execute','_stopInteraction','getSelectionAsFragment','AIConnector','editor','_aiConnector','miniToolbarView','_setLoadingState','hasPendingParts','length','element','start','root','batch','first','error','_displayInteractionAtIndex','getLimitElement','setLoading','802722FYLYYF','_appendChild','_filterOperationsOutsideRange','static','clearErrorState','move','getRanges','position','Attribute','_interactions','catch','clone','howMany','icon','hideLoader','AI_ACTIONS_PREVIOUS_INTERACTION','replyChangeGroupStateUpdated','split','ai-request-aborted','interactionFinished','message','applySuggestion','8155084LtbvMu','_isNavigationNextButtonInView','2156558NhVqUK','6AKxLIs','isPremiumPlugin','getSelectedTableCells','getOperations','upsertAIActionRating','applyOperation','document','AI_ACTIONS_NEXT_INTERACTION','_navigateToNext','changeGroups','stickiness','rename','areChangesVisible','balloonView','getSelectedContent','_interactionParams','isCollapsed','AI_ACTIONS_GENERIC_ERROR','dialogClosed','_wrapWithCommonAncestors','ck-ai-navigation-button\x20ck-ai-previous-button','createPositionAt','getChildAtOffset','addOperation','setSelection','_navigationCounter','_getExecuteDataRegular','streaming','schema','parent','replyCreated','getDocumentContext','documentFragment','_clearInteractionHistory','hideError','_getExecuteDataInTable','isDocumentOperation','_updateNavigationUI','get','createPositionAfter','aiBalloon','model','end','stop','data','signal','5181755ZtTyOd','executeAction','insert','_clone','showLoader','upsertCustomAIActionRating','_clearLoadingState','set','setTemplate','updateContent','896739VaHGtj','merge','getAncestors'];_0x4238=function(){return _0x10cfc7;};return _0x4238();}const _0x625421=_0x4b3d;(function(_0x4d269f,_0x4218ef){const _0x14f308=_0x4b3d,_0x5eb04a=_0x4d269f();while(!![]){try{const _0x504386=-parseInt(_0x14f308(0x1c8))/0x1+-parseInt(_0x14f308(0x1e0))/0x2+parseInt(_0x14f308(0x219))/0x3+-parseInt(_0x14f308(0x190))/0x4+-parseInt(_0x14f308(0x20f))/0x5+-parseInt(_0x14f308(0x1e1))/0x6*(-parseInt(_0x14f308(0x1de))/0x7)+parseInt(_0x14f308(0x171))/0x8*(parseInt(_0x14f308(0x23a))/0x9);if(_0x504386===_0x4218ef)break;else _0x5eb04a['push'](_0x5eb04a['shift']());}catch(_0x72101){_0x5eb04a['push'](_0x5eb04a['shift']());}}}(_0x4238,0xc26cc));import{Plugin as _0xc2388f}from'ckeditor5/src/core.js';import{AIConnector as _0x10372a}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x339382}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x201968,ButtonView as _0x1121e5,ViewCollection as _0x3138e9,View as _0x55ee2c}from'ckeditor5/src/ui.js';import{AIEditing as _0x5c551}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x40ccc4}from'./model/aiactionsinteraction.js';import{first as _0x55028}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x7f0aef,IconRefresh as _0x591a24,IconNextArrow as _0x44a549,IconPreviousArrow as _0x13e120,IconShowChangesOff as _0x2341b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x133e6e}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x2b1a66}from'../aichat/utils/promisequeue.js';function _0x4b3d(_0x13d505,_0x29868f){const _0x4238db=_0x4238();return _0x4b3d=function(_0x4b3d33,_0x5319ea){_0x4b3d33=_0x4b3d33-0x167;let _0x52c0cd=_0x4238db[_0x4b3d33];return _0x52c0cd;},_0x4b3d(_0x13d505,_0x29868f);}import{getTranslation as _0x1db4d8}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x37a51c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x540dca}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x29c754}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x203401,ModelRange as _0x4d713f,ModelPosition as _0x413028,_DetachOperation as _0x29c6bb,transformOperationSets as _0x3ff366}from'ckeditor5/src/engine.js';export class AIActions extends _0xc2388f{static get[_0x625421(0x167)](){return[_0x10372a,_0x201968,_0x5c551,_0x133e6e,_0x540dca];}static get[_0x625421(0x22b)](){const _0xb834ae=_0x625421;return _0xb834ae(0x22a);}static get[_0x625421(0x230)](){return!0x0;}static get[_0x625421(0x1e2)](){return!0x0;}[_0x625421(0x1ba)];[_0x625421(0x1d1)]=[];[_0x625421(0x1b2)]=0x0;[_0x625421(0x1f0)];[_0x625421(0x179)]=!0x1;[_0x625421(0x180)]=new _0x3138e9();[_0x625421(0x1a0)];[_0x625421(0x1fa)];[_0x625421(0x22e)]=!0x1;[_0x625421(0x1a7)];[_0x625421(0x17f)]=!0x1;[_0x625421(0x1df)]=!0x1;[_0x625421(0x1a3)];get[_0x625421(0x19c)](){const _0x3dcc21=_0x625421;return this[_0x3dcc21(0x1d1)][this[_0x3dcc21(0x1d1)][_0x3dcc21(0x1be)]-0x1];}constructor(_0x3eb16f){const _0x1b4510=_0x625421;super(_0x3eb16f),this[_0x1b4510(0x1ba)]=this[_0x1b4510(0x1b9)][_0x1b4510(0x192)][_0x1b4510(0x207)](_0x1b4510(0x1b8)),this[_0x1b4510(0x216)](_0x1b4510(0x19f),!0x1),this[_0x1b4510(0x1a3)]=new _0x2b1a66(),this[_0x1b4510(0x1a4)]();}[_0x625421(0x241)](){const _0x16234c=_0x625421;this[_0x16234c(0x1b6)]();}async[_0x625421(0x210)](_0x9fa800,_0x2ec7fc,_0x231096){const _0x47ae26=_0x625421;if(this[_0x47ae26(0x1b9)][_0x47ae26(0x192)][_0x47ae26(0x196)](_0x47ae26(0x21e))){if(this[_0x47ae26(0x1b9)][_0x47ae26(0x192)][_0x47ae26(0x207)](_0x47ae26(0x21e))[_0x47ae26(0x1e3)]()){const {modelFragment:_0x3ac018,anchorData:_0x1f6144}=this[_0x47ae26(0x204)]();return this[_0x47ae26(0x175)](_0x9fa800,_0x3ac018,_0x1f6144,_0x2ec7fc,_0x231096);}}const {modelFragment:_0xdc1c3a,anchorData:_0x33a271}=this[_0x47ae26(0x1fb)]();return this[_0x47ae26(0x175)](_0x9fa800,_0xdc1c3a,_0x33a271,_0x2ec7fc,_0x231096);}[_0x625421(0x1fb)](){const _0x376d20=_0x625421,_0xb59dac=this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x1e7)][_0x376d20(0x182)];if(_0xb59dac[_0x376d20(0x1f1)]){const _0x1506c1=_0x55028(_0xb59dac[_0x376d20(0x243)]())||this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x1fd)][_0x376d20(0x1c6)](_0xb59dac);this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x185)](_0x2bd04f=>{const _0x46f6b4=_0x376d20;_0x2bd04f[_0x46f6b4(0x1f9)](_0x1506c1,'in');});}const _0x36e5df=_0xb59dac[_0x376d20(0x1b0)](),_0x533328=this[_0x376d20(0x1f4)](this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x1ef)](_0xb59dac),_0x36e5df[_0x376d20(0x1c0)],_0x36e5df[_0x376d20(0x20b)]),_0xf66157=_0xb59dac[_0x376d20(0x1b0)]()[_0x376d20(0x1c0)],_0x428cdc=new Map();let _0xfd6884=_0x533328;for(let _0xa7d524=0x0;_0xa7d524<_0xf66157[_0x376d20(0x1ac)][_0x376d20(0x1be)];_0xa7d524++)_0x428cdc[_0x376d20(0x216)](_0xfd6884,_0xf66157[_0x376d20(0x1ac)][_0xa7d524]),_0xfd6884=_0xfd6884[_0x376d20(0x22f)](0x0);return{'modelFragment':_0x533328,'anchorData':_0x428cdc};}[_0x625421(0x204)](){const _0x28d7d3=_0x625421,_0x179292=this[_0x28d7d3(0x1b9)][_0x28d7d3(0x20a)][_0x28d7d3(0x1e7)][_0x28d7d3(0x182)],_0x387887=this[_0x28d7d3(0x1b9)][_0x28d7d3(0x192)][_0x28d7d3(0x207)](_0x28d7d3(0x21e))[_0x28d7d3(0x1b7)](),_0x3ae3ca=_0x179292[_0x28d7d3(0x1b0)]()[_0x28d7d3(0x1c0)][_0x28d7d3(0x1fe)][_0x28d7d3(0x1fe)],_0x4436d2=this[_0x28d7d3(0x1f4)](_0x387887,this[_0x28d7d3(0x1b9)][_0x28d7d3(0x20a)][_0x28d7d3(0x184)](_0x3ae3ca),this[_0x28d7d3(0x1b9)][_0x28d7d3(0x20a)][_0x28d7d3(0x208)](_0x3ae3ca)),_0xa74cdb=_0x179292[_0x28d7d3(0x1b0)]()[_0x28d7d3(0x1c0)],_0x553237=new Map();let _0x2c26b0=_0x4436d2;for(let _0x526db6=0x0;_0x526db6<_0xa74cdb[_0x28d7d3(0x1ac)][_0x28d7d3(0x1be)];_0x526db6++)if(_0x553237[_0x28d7d3(0x216)](_0x2c26b0,_0xa74cdb[_0x28d7d3(0x1ac)][_0x526db6]),_0x526db6<_0xa74cdb[_0x28d7d3(0x1ac)][_0x28d7d3(0x1be)]-0x1)_0x2c26b0=_0x2c26b0[_0x28d7d3(0x22f)](0x0);else{let _0x31e557=_0x2c26b0[_0x28d7d3(0x17c)];for(;_0x31e557;)_0x553237[_0x28d7d3(0x216)](_0x31e557,_0xa74cdb[_0x28d7d3(0x1ac)][_0x526db6]),_0x31e557=_0x31e557[_0x28d7d3(0x17c)];}return{'modelFragment':_0x4436d2,'anchorData':_0x553237};}[_0x625421(0x175)](_0x1ab6c8,_0xccdc3b,_0x30914c,_0x3999e2,_0x33a56c){const _0x298ccb=_0x625421,_0x405b49=this[_0x298ccb(0x1b9)][_0x298ccb(0x192)][_0x298ccb(0x207)](_0x5c551),_0x3c0b42=this[_0x298ccb(0x1b9)][_0x298ccb(0x192)][_0x298ccb(0x207)](_0x133e6e),_0x5ed08a=this[_0x298ccb(0x1b9)][_0x298ccb(0x20a)][_0x298ccb(0x1e7)][_0x298ccb(0x182)],_0x58625f=_0x405b49[_0x298ccb(0x221)](_0xccdc3b),_0x1393dd=this[_0x298ccb(0x1b9)][_0x298ccb(0x20d)][_0x298ccb(0x197)][_0x298ccb(0x19d)](_0x58625f),_0xa5a346=this[_0x298ccb(0x1b9)][_0x298ccb(0x20a)][_0x298ccb(0x1e7)][_0x298ccb(0x222)],_0x283ae0=[..._0x5ed08a[_0x298ccb(0x1ce)]()],_0x4a3318=new _0x339382(this[_0x298ccb(0x1b9)][_0x298ccb(0x193)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x298ccb(0x1d5),'customView':this[_0x298ccb(0x180)]},'showUnchangedParts':!0x0});return _0x3c0b42[_0x298ccb(0x195)]({'index':0x3e8*Math[_0x298ccb(0x224)]()%0x3e8,'title':_0x3999e2,'icon':_0x33a56c||_0x7f0aef,'mainView':_0x4a3318,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x283ae0}),this[_0x298ccb(0x1bc)](_0x4a3318,_0x3c0b42),this[_0x298ccb(0x23e)](_0x3c0b42,_0x298ccb(0x1dd),()=>{const _0x5ee827=_0x298ccb;this[_0x5ee827(0x1a1)](_0xccdc3b,_0x30914c,!0x1);}),this[_0x298ccb(0x23e)](_0x3c0b42,_0x298ccb(0x191),()=>{const _0x523e29=_0x298ccb;this[_0x523e29(0x1a1)](_0xccdc3b,_0x30914c,!0x0);}),this[_0x298ccb(0x23e)](_0x3c0b42,_0x298ccb(0x1f3),()=>{const _0x51aaa5=_0x298ccb;if(this[_0x51aaa5(0x19c)]&&this[_0x51aaa5(0x19c)][_0x51aaa5(0x16e)][_0x51aaa5(0x1be)]>0x0){const _0x23e135=this[_0x51aaa5(0x19c)][_0x51aaa5(0x16e)][this[_0x51aaa5(0x19c)][_0x51aaa5(0x16e)][_0x51aaa5(0x1be)]-0x1],_0x3d5e11=_0x23e135[_0x51aaa5(0x1ea)][0x0];_0x3d5e11&&_0x51aaa5(0x19b)===_0x3d5e11[_0x51aaa5(0x170)]&&_0x23e135[_0x51aaa5(0x233)](0x0,_0x51aaa5(0x226));}this[_0x51aaa5(0x1b6)](),this[_0x51aaa5(0x202)](),this[_0x51aaa5(0x232)](_0x3c0b42);}),this[_0x298ccb(0x240)](_0x1393dd,_0xa5a346,_0x4a3318,_0x3c0b42,_0x1ab6c8);}[_0x625421(0x1f4)](_0x4756f8,_0x20bd42,_0x994fc6){const _0x36222e=_0x625421,_0x59e416=this[_0x36222e(0x1b9)][_0x36222e(0x20a)][_0x36222e(0x17b)](_0x20bd42,_0x994fc6)[_0x36222e(0x183)](),_0x20a5df=_0x59e416['is'](_0x36222e(0x201))?[]:_0x59e416[_0x36222e(0x21b)]({'includeSelf':!0x0})[_0x36222e(0x223)](0x1);if(_0x20a5df[_0x36222e(0x1be)]){const _0x20bc55=_0x20a5df[_0x36222e(0x189)](_0x4c4dab=>_0x4c4dab[_0x36222e(0x212)](!0x1));for(let _0x804635=0x1;_0x804635<_0x20bc55[_0x36222e(0x1be)];_0x804635++)_0x20bc55[_0x804635-0x1][_0x36222e(0x1c9)](_0x20bc55[_0x804635]);return _0x20bc55[_0x20bc55[_0x36222e(0x1be)]-0x1][_0x36222e(0x1c9)](_0x4756f8),new _0x203401(_0x20bc55[0x0]);}return _0x4756f8;}async[_0x625421(0x240)](_0x3c9a80,_0x167d13,_0x186afc,_0x40dd97,_0x58de5e){const _0x1efdff=_0x625421,_0x4d2397=this[_0x1efdff(0x1b9)];this[_0x1efdff(0x1f0)]={'action':_0x58de5e,'content':_0x3c9a80,'version':_0x167d13,'mainView':_0x186afc,'aiBalloon':_0x40dd97};const _0xc7de9c=new _0x40ccc4({'connector':this[_0x1efdff(0x1ba)],'editor':_0x4d2397,'content':_0x3c9a80,'version':_0x167d13,..._0x58de5e});this[_0x1efdff(0x1d1)][_0x1efdff(0x225)](_0xc7de9c),_0x186afc[_0x1efdff(0x203)]();const _0x1faeb5=(_0x30cade,_0xb35068,_0x2149b6=!0x1,_0x3ebd9e=_0x1efdff(0x1fc))=>this[_0x1efdff(0x1a3)][_0x1efdff(0x18e)](async _0x556059=>{const _0x51233b=_0x1efdff;try{const _0x2f337d=_0x37a51c({'editor':_0x4d2397,'changeGroups':_0x30cade[_0x51233b(0x1ea)],'documentContextContent':_0x30cade[_0x51233b(0x168)],'showDiff':_0x2149b6,'trimUnchanged':!0x1});await _0xb35068[_0x51233b(0x218)]({'parts':_0x2f337d,'renderingStrategy':_0x3ebd9e,'abortSignal':_0x556059});}catch(_0x24ed71){if(this[_0x51233b(0x21c)](_0x24ed71))return;throw _0x24ed71;}});this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x1ff),(_0xf75f33,_0x188e7d)=>{const _0x1b37f2=_0x1efdff;_0x186afc[_0x1b37f2(0x1d6)](),_0x1faeb5(_0x188e7d,_0x186afc)[_0x1b37f2(0x1d2)](_0x35c5a3=>{const _0x27dfaf=_0x1b37f2;this[_0x27dfaf(0x21c)](_0x35c5a3)||(console[_0x27dfaf(0x1c4)](_0x27dfaf(0x16b),_0x35c5a3),this[_0x27dfaf(0x1a8)](_0xc7de9c,_0x186afc));});}),this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x199),(_0xbad685,_0x477e7d)=>{const _0x1999aa=_0x1efdff;_0x1faeb5(_0x477e7d,_0x186afc)[_0x1999aa(0x1d2)](_0x570c0e=>{const _0x33f4f7=_0x1999aa;this[_0x33f4f7(0x21c)](_0x570c0e)||(console[_0x33f4f7(0x1c4)](_0x33f4f7(0x234),_0x570c0e),this[_0x33f4f7(0x1a8)](_0xc7de9c,_0x186afc));});}),this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x1db),async()=>{const _0x32efcf=_0x1efdff;try{await this[_0x32efcf(0x215)](_0x186afc,_0x40dd97),this[_0x32efcf(0x206)]();}catch(_0x596b24){this[_0x32efcf(0x21c)](_0x596b24)||(console[_0x32efcf(0x1c4)](_0x32efcf(0x173),_0x596b24),this[_0x32efcf(0x1a8)](_0xc7de9c,_0x186afc));}}),this[_0x1efdff(0x23e)](_0x186afc,_0x1efdff(0x1aa),(_0x2ab463,{showDiff:_0x4ab481})=>{const _0x449185=_0x1efdff;this[_0x449185(0x179)]=_0x4ab481;const _0x29fe04=this[_0x449185(0x19c)][_0x449185(0x16e)][this[_0x449185(0x19c)][_0x449185(0x16e)][_0x449185(0x1be)]-0x1];_0x29fe04&&_0x1faeb5(_0x29fe04,_0x186afc,_0x4ab481,_0x449185(0x1cb))[_0x449185(0x1d2)](_0x131522=>{const _0x1f07b9=_0x449185;this[_0x1f07b9(0x21c)](_0x131522)||(console[_0x1f07b9(0x1c4)](_0x1f07b9(0x238),_0x131522),this[_0x1f07b9(0x1a8)](_0xc7de9c,_0x186afc));});}),this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x1d8),(_0x495d66,{reply:_0x446f1e})=>{const _0x4f9c10=_0x1efdff,_0x403c4d={'positiveCount':_0x446f1e[_0x4f9c10(0x1ea)][_0x4f9c10(0x23c)](_0x1d2b20=>_0x4f9c10(0x17d)===_0x1d2b20[_0x4f9c10(0x170)])[_0x4f9c10(0x1be)],'totalCount':_0x446f1e[_0x4f9c10(0x1ea)][_0x4f9c10(0x1be)]},_0x3bf047=this[_0x4f9c10(0x19c)][_0x4f9c10(0x186)],_0x2a442d=this[_0x4f9c10(0x19c)][_0x4f9c10(0x1ae)];_0x2a442d?this[_0x4f9c10(0x1ba)][_0x4f9c10(0x1e5)](_0x2a442d,_0x3bf047,_0x403c4d):this[_0x4f9c10(0x1ba)][_0x4f9c10(0x214)](_0x3bf047,_0x403c4d);}),this[_0x1efdff(0x1bc)](_0x186afc,_0x40dd97);try{const _0x14fa0c=await this[_0x1efdff(0x19c)][_0x1efdff(0x1c0)]();return this[_0x1efdff(0x206)](),_0x14fa0c;}catch(_0x438234){if(this[_0x1efdff(0x21c)](_0x438234))return;_0x186afc[_0x1efdff(0x1d6)](),this[_0x1efdff(0x1a8)](_0xc7de9c,_0x186afc);}}[_0x625421(0x1a1)](_0x22ba3e,_0x4b3b04,_0x3c22c5){const _0x511aa6=_0x625421,_0x5d85f2=this[_0x511aa6(0x1b9)],_0x5893d2=this[_0x511aa6(0x1b9)][_0x511aa6(0x192)][_0x511aa6(0x207)](_0x540dca),_0x30ca5d=this[_0x511aa6(0x19c)],_0x3371f3=this[_0x511aa6(0x19c)][_0x511aa6(0x16e)][this[_0x511aa6(0x19c)][_0x511aa6(0x16e)][_0x511aa6(0x1be)]-0x1],_0x749fe2=_0x3371f3[_0x511aa6(0x1ea)];_0x3371f3[_0x511aa6(0x233)](0x0,_0x511aa6(0x17d));let _0x558da7=_0x29c754({'editor':_0x5d85f2,'reply':_0x3371f3,'interaction':_0x30ca5d,'groups':_0x749fe2,'transform':!0x1,'documentCompare':_0x5893d2,'documentCompareOptions':{'anchor':_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1f6)](_0x22ba3e,0x0),'markDeletions':_0x3c22c5}});_0x558da7=this[_0x511aa6(0x1ca)](_0x558da7,_0x4b3b04);for(const _0x257ac9 of _0x558da7)this[_0x511aa6(0x1b1)](_0x4b3b04,_0x257ac9,_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1e7)][_0x511aa6(0x17a)]());const _0xe2a698=_0x30ca5d[_0x511aa6(0x200)]()[_0x511aa6(0x222)],_0x4070c3=_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1e7)][_0x511aa6(0x236)][_0x511aa6(0x1e4)](_0xe2a698),_0x44fe5={'document':_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1e7)],'useRelations':!0x1,'padWithNoOps':!0x1},_0xa7db68=_0x3ff366(_0x558da7,_0x4070c3,_0x44fe5)[_0x511aa6(0x178)];_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x185)](_0x48fc85=>{const _0x1f8ea3=_0x511aa6;if(_0x48fc85[_0x1f8ea3(0x1f9)](_0x5d85f2[_0x1f8ea3(0x20a)][_0x1f8ea3(0x1e7)][_0x1f8ea3(0x182)][_0x1f8ea3(0x19a)]),_0x3c22c5)_0x5d85f2[_0x1f8ea3(0x192)][_0x1f8ea3(0x207)](_0x1f8ea3(0x244))[_0x1f8ea3(0x1ad)](_0xa7db68);else{for(const _0x33d334 of _0xa7db68)_0x33d334[_0x1f8ea3(0x23d)]=_0x5d85f2[_0x1f8ea3(0x20a)][_0x1f8ea3(0x1e7)][_0x1f8ea3(0x222)],_0x48fc85[_0x1f8ea3(0x1c2)][_0x1f8ea3(0x1f8)](_0x33d334),_0x5d85f2[_0x1f8ea3(0x20a)][_0x1f8ea3(0x1e6)](_0x33d334);}}),this[_0x511aa6(0x1b9)][_0x511aa6(0x192)][_0x511aa6(0x207)](_0x511aa6(0x1a5))[_0x511aa6(0x172)]();}[_0x625421(0x1ca)](_0x1c9585,_0x4e3fc7){const _0x3dd78b=_0x625421;return _0x1c9585[_0x3dd78b(0x23c)](_0x4a6eda=>{const _0x54d060=_0x3dd78b;if(_0x54d060(0x1ec)==_0x4a6eda[_0x54d060(0x194)]){const _0x587021=_0x4a6eda[_0x54d060(0x1cf)][_0x54d060(0x1a2)];return!_0x4e3fc7[_0x54d060(0x196)](_0x587021);}if(_0x4a6eda[_0x54d060(0x194)][_0x54d060(0x176)](_0x54d060(0x1d0))>-0x1){const _0x191284=_0x4a6eda[_0x54d060(0x177)][_0x54d060(0x1c0)][_0x54d060(0x1a2)];return!_0x4e3fc7[_0x54d060(0x196)](_0x191284);}return!0x0;});}[_0x625421(0x1b1)](_0x352555,_0x5182aa,_0x1c296f){const _0x4b07b9=_0x625421,_0x577137=_0x5182aa[_0x4b07b9(0x1d3)]();for(const _0x155f3e in _0x5182aa){const _0x20fa1c=_0x5182aa[_0x155f3e];_0x20fa1c instanceof _0x4d713f?_0x5182aa[_0x155f3e]=new _0x4d713f(_0x23722b(_0x20fa1c[_0x4b07b9(0x1c0)]),_0x23722b(_0x20fa1c[_0x4b07b9(0x20b)])):_0x20fa1c instanceof _0x413028&&(_0x5182aa[_0x155f3e]=_0x23722b(_0x20fa1c));}if([_0x4b07b9(0x211),_0x4b07b9(0x1cd),_0x4b07b9(0x188),_0x4b07b9(0x174),_0x4b07b9(0x1d9),_0x4b07b9(0x21a)][_0x4b07b9(0x19e)](_0x577137[_0x4b07b9(0x194)])){if(_0x577137[_0x4b07b9(0x205)]=!0x1,_0x577137[_0x4b07b9(0x23d)]=null,_0x4b07b9(0x188)==_0x577137[_0x4b07b9(0x194)]){const _0x449d8e=_0x577137[_0x4b07b9(0x239)],_0x3cf65d=_0x577137[_0x4b07b9(0x1d4)];new _0x29c6bb(_0x449d8e,_0x3cf65d)[_0x4b07b9(0x1b5)]();}else _0x577137[_0x4b07b9(0x1b5)]();}function _0x23722b(_0x3d4c61){const _0x8aa76a=_0x4b07b9;if(_0x8aa76a(0x22d)==_0x3d4c61[_0x8aa76a(0x1c1)][_0x8aa76a(0x16d)])return _0x3d4c61;const _0x2a471f=[];let _0x40c30b=_0x3d4c61[_0x8aa76a(0x1c1)];for(let _0x4b5d98=0x0;_0x4b5d98<_0x3d4c61[_0x8aa76a(0x1ac)][_0x8aa76a(0x1be)];_0x4b5d98++){const _0x5d051b=_0x352555[_0x8aa76a(0x207)](_0x40c30b)||0x0;_0x2a471f[_0x4b5d98]=_0x3d4c61[_0x8aa76a(0x1ac)][_0x4b5d98]+_0x5d051b,_0x40c30b=_0x40c30b[_0x8aa76a(0x1f7)](_0x3d4c61[_0x8aa76a(0x1ac)][_0x4b5d98]);}return new _0x413028(_0x1c296f,_0x2a471f,_0x3d4c61[_0x8aa76a(0x1eb)]);}}[_0x625421(0x23b)](){const _0x1ceeca=_0x625421;if(!this[_0x1ceeca(0x1f0)])return;this[_0x1ceeca(0x1d1)][_0x1ceeca(0x1be)]>0x0&&this[_0x1ceeca(0x1b6)](),this[_0x1ceeca(0x1b2)]=0x0,this[_0x1ceeca(0x179)]=!0x1;const {action:_0x2e1b45,content:_0x43f7ec,version:_0x4a95bb,mainView:_0x2077a8,aiBalloon:_0x4b4bc1}=this[_0x1ceeca(0x1f0)];_0x2077a8[_0x1ceeca(0x1ed)]=!0x1,_0x2077a8[_0x1ceeca(0x203)](),this[_0x1ceeca(0x16a)](_0x2077a8,_0x4b4bc1);const _0x95961a=_0x2077a8;_0x95961a[_0x1ceeca(0x1bb)]&&_0x95961a[_0x1ceeca(0x1bb)][_0x1ceeca(0x21f)]&&_0x95961a[_0x1ceeca(0x1bb)][_0x1ceeca(0x21f)][_0x1ceeca(0x216)]({'isOn':!0x1,'icon':_0x2341b0}),this[_0x1ceeca(0x1a6)](_0x2077a8),_0x2077a8[_0x1ceeca(0x213)](),this[_0x1ceeca(0x206)](),this[_0x1ceeca(0x240)](_0x43f7ec,_0x4a95bb,_0x2077a8,_0x4b4bc1,_0x2e1b45)[_0x1ceeca(0x1d2)](_0x402e19=>{const _0xb669cf=_0x1ceeca;this[_0xb669cf(0x21c)](_0x402e19)||console[_0xb669cf(0x1c4)](_0xb669cf(0x198),_0x402e19);});}[_0x625421(0x1a6)](_0x402bcf){const _0xd9a5bf=_0x625421,_0x55b937=_0x402bcf[_0xd9a5bf(0x220)][_0xd9a5bf(0x237)];for(;_0x55b937[_0xd9a5bf(0x1be)]>0x0;)_0x55b937[_0xd9a5bf(0x188)](_0x55b937[_0xd9a5bf(0x1c3)]);_0x402bcf[_0xd9a5bf(0x220)][_0xd9a5bf(0x1bd)]=!0x1;}[_0x625421(0x21c)](_0x152d8d){const _0x2ac739=_0x625421;return!!_0x152d8d[_0x2ac739(0x1dc)]&&_0x152d8d[_0x2ac739(0x1dc)][_0x2ac739(0x169)](_0x2ac739(0x1da));}[_0x625421(0x202)](){const _0x49ea4e=_0x625421;this[_0x49ea4e(0x1d1)]=[],this[_0x49ea4e(0x1f0)]=void 0x0,this[_0x49ea4e(0x1b2)]=0x0,this[_0x49ea4e(0x206)]();}[_0x625421(0x1b6)](){const _0x3f12d9=_0x625421;this[_0x3f12d9(0x19c)]&&this[_0x3f12d9(0x19c)][_0x3f12d9(0x20c)](),this[_0x3f12d9(0x1a3)][_0x3f12d9(0x18f)](),this[_0x3f12d9(0x19f)]=!0x1;}[_0x625421(0x1a4)](){const _0x1d76ea=_0x625421,_0x5569f0=new _0x1121e5(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]),_0x3db12=new _0x1121e5(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]),_0x2bb18d=new _0x55ee2c(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]),_0x865a02=new _0x1121e5(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]);_0x5569f0[_0x1d76ea(0x216)]({'icon':_0x591a24,'label':_0x1db4d8(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)],_0x1d76ea(0x229)),'tooltip':!0x0,'class':_0x1d76ea(0x23f)}),_0x3db12[_0x1d76ea(0x216)]({'icon':_0x13e120,'tooltip':_0x1db4d8(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)],_0x1d76ea(0x1d7)),'class':_0x1d76ea(0x1f5)}),_0x2bb18d[_0x1d76ea(0x217)]({'tag':_0x1d76ea(0x16f),'attributes':{'class':[_0x1d76ea(0x18c)]},'children':[_0x1d76ea(0x235)]}),_0x865a02[_0x1d76ea(0x216)]({'icon':_0x44a549,'tooltip':_0x1db4d8(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)],_0x1d76ea(0x1e8)),'class':_0x1d76ea(0x231)}),_0x5569f0[_0x1d76ea(0x17e)](_0x1d76ea(0x18d))['to'](this,_0x1d76ea(0x19f),_0x3c3e33=>!_0x3c3e33),_0x5569f0['on'](_0x1d76ea(0x187),()=>{const _0x273f4c=_0x1d76ea;this[_0x273f4c(0x23b)]();}),_0x3db12[_0x1d76ea(0x17e)](_0x1d76ea(0x18d))['to'](this,_0x1d76ea(0x19f),_0x50a977=>!_0x50a977),_0x3db12['on'](_0x1d76ea(0x187),()=>{const _0x5a3d0c=_0x1d76ea;this[_0x5a3d0c(0x21d)]();}),_0x865a02[_0x1d76ea(0x17e)](_0x1d76ea(0x18d))['to'](this,_0x1d76ea(0x19f),_0x44bd2d=>!_0x44bd2d),_0x865a02['on'](_0x1d76ea(0x187),()=>{const _0x34a415=_0x1d76ea;this[_0x34a415(0x1e9)]();}),this[_0x1d76ea(0x1a0)]=_0x3db12,this[_0x1d76ea(0x1fa)]=_0x2bb18d,this[_0x1d76ea(0x1a7)]=_0x865a02,this[_0x1d76ea(0x180)][_0x1d76ea(0x1b4)](_0x5569f0);}[_0x625421(0x21d)](){const _0x5cc5ca=_0x625421,_0x4af19c=this[_0x5cc5ca(0x1d1)][_0x5cc5ca(0x1be)];this[_0x5cc5ca(0x1b2)]<_0x4af19c-0x1&&this[_0x5cc5ca(0x1c5)](this[_0x5cc5ca(0x1b2)]+0x1);}[_0x625421(0x1e9)](){const _0x125b2f=_0x625421;this[_0x125b2f(0x1b2)]>0x0&&this[_0x125b2f(0x1c5)](this[_0x125b2f(0x1b2)]-0x1);}async[_0x625421(0x1c5)](_0x54ae5f){const _0x56308e=_0x625421;if(!this[_0x56308e(0x1f0)])return;this[_0x56308e(0x1b2)]=_0x54ae5f;const {mainView:_0x30cf92}=this[_0x56308e(0x1f0)],_0x431f84=this[_0x56308e(0x1d1)][this[_0x56308e(0x1d1)][_0x56308e(0x1be)]-0x1-this[_0x56308e(0x1b2)]];if(!_0x431f84)return;if(_0x431f84[_0x56308e(0x18a)])return this[_0x56308e(0x1a8)](_0x431f84,_0x30cf92),void this[_0x56308e(0x206)]();if(!_0x431f84[_0x56308e(0x16e)][_0x56308e(0x1be)])return;_0x30cf92[_0x56308e(0x203)](),this[_0x56308e(0x1f0)]&&this[_0x56308e(0x16a)](_0x30cf92,this[_0x56308e(0x1f0)][_0x56308e(0x209)]);const _0xe1cc7e=_0x431f84[_0x56308e(0x16e)][_0x431f84[_0x56308e(0x16e)][_0x56308e(0x1be)]-0x1];if(_0xe1cc7e){const _0x46f94c=this[_0x56308e(0x1b9)];this[_0x56308e(0x1a6)](_0x30cf92);try{const _0x4d8c77=_0x37a51c({'editor':_0x46f94c,'changeGroups':_0xe1cc7e[_0x56308e(0x1ea)],'documentContextContent':_0xe1cc7e[_0x56308e(0x168)],'showDiff':this[_0x56308e(0x179)],'trimUnchanged':!0x1});this[_0x56308e(0x1a6)](_0x30cf92),await new Promise(_0x315b90=>setTimeout(_0x315b90,0x32)),await _0x30cf92[_0x56308e(0x218)]({'parts':_0x4d8c77,'renderingStrategy':_0x56308e(0x1cb),'abortSignal':new AbortController()[_0x56308e(0x20e)]});}catch(_0x1f3595){this[_0x56308e(0x21c)](_0x1f3595)||console[_0x56308e(0x1c4)](_0x56308e(0x16c),_0x1f3595);}}this[_0x56308e(0x206)]();}[_0x625421(0x206)](){const _0x33fbd9=_0x625421;if(!this[_0x33fbd9(0x1a0)]||!this[_0x33fbd9(0x1fa)]||!this[_0x33fbd9(0x1a7)])return;const _0x35c8bc=this[_0x33fbd9(0x1d1)][_0x33fbd9(0x1be)],_0x8bd66f=_0x35c8bc>0x1,_0x444399=this[_0x33fbd9(0x1f0)]?.[_0x33fbd9(0x181)];if(_0x8bd66f){this[_0x33fbd9(0x17f)]||this[_0x33fbd9(0x22e)]||this[_0x33fbd9(0x1df)]||(this[_0x33fbd9(0x180)][_0x33fbd9(0x1b4)](this[_0x33fbd9(0x1a0)]),_0x444399?.[_0x33fbd9(0x227)](this[_0x33fbd9(0x1a0)]),this[_0x33fbd9(0x17f)]=!0x0,this[_0x33fbd9(0x180)][_0x33fbd9(0x1b4)](this[_0x33fbd9(0x1fa)]),_0x444399?.[_0x33fbd9(0x227)](this[_0x33fbd9(0x1fa)]),this[_0x33fbd9(0x22e)]=!0x0,this[_0x33fbd9(0x180)][_0x33fbd9(0x1b4)](this[_0x33fbd9(0x1a7)]),_0x444399?.[_0x33fbd9(0x227)](this[_0x33fbd9(0x1a7)]),this[_0x33fbd9(0x1df)]=!0x0);const _0x404098=_0x35c8bc-this[_0x33fbd9(0x1b2)];this[_0x33fbd9(0x1fa)][_0x33fbd9(0x1bf)]&&(this[_0x33fbd9(0x1fa)][_0x33fbd9(0x1bf)][_0x33fbd9(0x22c)]=_0x404098+'/'+_0x35c8bc),this[_0x33fbd9(0x1a0)][_0x33fbd9(0x18d)]=this[_0x33fbd9(0x1b2)]<_0x35c8bc-0x1,this[_0x33fbd9(0x1a7)][_0x33fbd9(0x18d)]=this[_0x33fbd9(0x1b2)]>0x0;}else(this[_0x33fbd9(0x17f)]||this[_0x33fbd9(0x22e)]||this[_0x33fbd9(0x1df)])&&(this[_0x33fbd9(0x180)][_0x33fbd9(0x188)](this[_0x33fbd9(0x1a0)]),_0x444399?.[_0x33fbd9(0x1a9)](this[_0x33fbd9(0x1a0)]),this[_0x33fbd9(0x17f)]=!0x1,this[_0x33fbd9(0x180)][_0x33fbd9(0x188)](this[_0x33fbd9(0x1fa)]),_0x444399?.[_0x33fbd9(0x1a9)](this[_0x33fbd9(0x1fa)]),this[_0x33fbd9(0x22e)]=!0x1,this[_0x33fbd9(0x180)][_0x33fbd9(0x188)](this[_0x33fbd9(0x1a7)]),_0x444399?.[_0x33fbd9(0x1a9)](this[_0x33fbd9(0x1a7)]),this[_0x33fbd9(0x1df)]=!0x1);}[_0x625421(0x1bc)](_0x280fc7,_0x29f411){const _0x29cd22=_0x625421;_0x280fc7[_0x29cd22(0x1c7)](),_0x29f411[_0x29cd22(0x1ee)][_0x29cd22(0x1c7)](),this[_0x29cd22(0x19f)]=!0x0;}async[_0x625421(0x1a8)](_0x40b0c2,_0x446fe3){const _0x398250=_0x625421,_0xe0f9c6=_0x1db4d8(this[_0x398250(0x1b9)][_0x398250(0x193)],_0x398250(0x1f2));_0x446fe3[_0x398250(0x1af)](_0xe0f9c6),_0x40b0c2[_0x398250(0x18a)]=!0x0,await this[_0x398250(0x1a3)][_0x398250(0x242)],_0x446fe3[_0x398250(0x18b)](),this[_0x398250(0x1f0)]?.[_0x398250(0x209)][_0x398250(0x1ee)][_0x398250(0x1ab)]&&(this[_0x398250(0x1f0)][_0x398250(0x209)][_0x398250(0x1ee)][_0x398250(0x1ab)][_0x398250(0x228)]=!0x0);}[_0x625421(0x16a)](_0x235a5a,_0x3affa9){const _0x1eb528=_0x625421;_0x235a5a[_0x1eb528(0x1cc)](),_0x3affa9[_0x1eb528(0x1ee)][_0x1eb528(0x1ab)]&&(_0x3affa9[_0x1eb528(0x1ee)][_0x1eb528(0x1ab)][_0x1eb528(0x228)]=!0x1);}async[_0x625421(0x215)](_0x51ea10,_0x121af4){const _0x1d9724=_0x625421;await this[_0x1d9724(0x1a3)][_0x1d9724(0x242)],this[_0x1d9724(0x19f)]=!0x1,_0x51ea10[_0x1d9724(0x1b3)](),_0x121af4[_0x1d9724(0x1ee)][_0x1d9724(0x1b3)]();}}
|
|
23
|
+
const _0x4a36d1=_0x5215;(function(_0x4fe8b8,_0x594443){const _0x3f3c9d=_0x5215,_0x46b97a=_0x4fe8b8();while(!![]){try{const _0x1df80f=parseInt(_0x3f3c9d(0x256))/0x1+parseInt(_0x3f3c9d(0x24f))/0x2+-parseInt(_0x3f3c9d(0x21b))/0x3*(-parseInt(_0x3f3c9d(0x20d))/0x4)+-parseInt(_0x3f3c9d(0x26c))/0x5*(parseInt(_0x3f3c9d(0x202))/0x6)+parseInt(_0x3f3c9d(0x229))/0x7*(-parseInt(_0x3f3c9d(0x20a))/0x8)+parseInt(_0x3f3c9d(0x258))/0x9*(parseInt(_0x3f3c9d(0x27d))/0xa)+-parseInt(_0x3f3c9d(0x28a))/0xb;if(_0x1df80f===_0x594443)break;else _0x46b97a['push'](_0x46b97a['shift']());}catch(_0x1036a4){_0x46b97a['push'](_0x46b97a['shift']());}}}(_0x1f3e,0x2aa89));import{Plugin as _0x1a1e36}from'ckeditor5/src/core.js';import{AIConnector as _0x5d1b1e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x365b43}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5215(_0x4d0c29,_0x47fabd){const _0x1f3efc=_0x1f3e();return _0x5215=function(_0x5215da,_0x1ba3fc){_0x5215da=_0x5215da-0x1cd;let _0x5a1158=_0x1f3efc[_0x5215da];return _0x5a1158;},_0x5215(_0x4d0c29,_0x47fabd);}import{Dialog as _0x16092a,ButtonView as _0x44fa11,ViewCollection as _0x1c40ca,View as _0x235b3f}from'ckeditor5/src/ui.js';import{AIEditing as _0x2ab615}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x526c35}from'./model/aiactionsinteraction.js';import{first as _0x3d1f76}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xc8a02,IconRefresh as _0x2c56b6,IconNextArrow as _0x2763ac,IconPreviousArrow as _0x46b546,IconShowChangesOff as _0x231bd9}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1cf185}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x915ba1}from'../aichat/utils/promisequeue.js';function _0x1f3e(){const _0x4c63c9=['_anchorOperation','getSelectionAsFragment','schema','_isNavigationPreviousButtonInView','executeAction','data','mainView','Error\x20updating\x20content\x20during\x20navigation:','getSelectedBlocks','batch','isOfficialPlugin','_navigationNextButton','_displayInteractionAtIndex','root','_clearLoadingState','stopInteraction','replyContentUpdated','includes','hasPendingParts','getSelectedTableCells','actionName','_getExecuteDataInTable','getDocumentContext','TableSelection','getChild','AIConnector','areChangesVisible','addOperation','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getFirstRange','AIActions','open','_setupCustomViews','position','abort','_navigationPreviousButton','showChangesButton','end','ck-ai-custom-action-button','removeNavigationItem','_refreshInteraction','_currentInteractionIndex','createRange','error','listenTo','_promiseQueue','type','element','isPremiumPlugin','document','editor','span','execute','range','createPositionBefore','rename','AIBalloon','_applyChanges','_clone','rootName','sourcePosition','textContent','split','_appendChild','filter','has','changeGroups','documentContextContent','showError','_setErrorState','84324LrMHPA','getLimitElement','createPositionAt','push','_filterOperationsOutsideRange','aiBalloon','isEnabled','applyOperation','916120MbWUvO','parent','hideLoader','252EEcSBE','path','AI_ACTIONS_NEXT_INTERACTION','hideError','clone','Attribute','_createInteraction','_interactions','upsertAIActionRating','baseVersion','setLoading','AI_ACTIONS_GENERIC_ERROR','change','clearErrorState','11682aqiTzd','replyCreated','stop','_navigateToPrevious','bodyView','signal','Error\x20refreshing\x20interaction:','add','AI_ACTIONS_TRY_AGAIN','focus','Error\x20updating\x20content\x20in\x20replyContentUpdated:','toggleSuggestionDisplayMode','move','state','14KSYOiL','icon','enqueue','setChangeGroupState','merge','indexOf','getRoot','_execute','get','_clearInteractionHistory','_balloonShowDiff','actionCallId','isLoading','_applyOperationsAsSuggestions','setErrorState','set','upsertCustomAIActionRating','_customViews','_navigateToNext','_isNavigationNextButtonInView','replyChangeGroupStateUpdated','setTemplate','replies','getRanges','message','setSelection','_children','interactionFinished','createPositionAfter','pending','nextSibling','static','addNavigationItem','_updateNavigationUI','_stopInteraction','remove','startsWith','accepted','525494xaOYgM','howMany','length','isCollapsed','ck-ai-interaction-counter','showLoader','insert','157276hXLWCG','_wrapWithCommonAncestors','333JHAPak','ai-request-aborted','catch','Error\x20updating\x20content\x20in\x20replyCreated:','reinsert','processor','getOperations','pluginName','queueEmptyPromise','plugins','AI_ACTIONS_PREVIOUS_INTERACTION','locale','_setLoadingState','modelToViewWithIds','getAncestors','isDocumentOperation','isBusy','applySuggestion','operationsA','bind','40vXSXMp','ck-ai-navigation-button\x20ck-ai-next-button','insertSuggestion','getCommonAncestor','_executeAction','getSelectedContent','_clearSuggestionContent','_getExecuteDataRegular','ck-ai-navigation-button\x20ck-ai-previous-button','_interactionParams','_interaction','hasError','first','start','documentFragment','random','getChildAtOffset','47660zDnHPX','streaming','_isAbortError','slice','_isNavigationCounterInView','version','stopListening','_navigationCounter','map','requires','updateContent','_aiConnector','_clearErrorState','3580456PUvOvZ','toData','toolbar','clearLoading','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','nodeAfter','TrackChangesEditing','miniToolbarView','balloonView','selection','1/1','dialogClosed','history','close','rejected','$graveyard','model','stickiness'];_0x1f3e=function(){return _0x4c63c9;};return _0x1f3e();}import{getTranslation as _0x3d68fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4b9d8e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1d9cac}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x510f01}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x42b98b,ModelRange as _0x479a8e,ModelPosition as _0x4e58c2,_DetachOperation as _0x2ecba7,transformOperationSets as _0x2a80ed}from'ckeditor5/src/engine.js';export class AIActions extends _0x1a1e36{static get[_0x4a36d1(0x286)](){return[_0x5d1b1e,_0x16092a,_0x2ab615,_0x1cf185,_0x1d9cac];}static get[_0x4a36d1(0x25f)](){const _0x9e8361=_0x4a36d1;return _0x9e8361(0x1da);}static get[_0x4a36d1(0x2a6)](){return!0x0;}static get[_0x4a36d1(0x1ec)](){return!0x0;}[_0x4a36d1(0x288)];[_0x4a36d1(0x214)]=[];[_0x4a36d1(0x1e5)]=0x0;[_0x4a36d1(0x275)];[_0x4a36d1(0x233)]=!0x1;[_0x4a36d1(0x23a)]=new _0x1c40ca();[_0x4a36d1(0x1df)];[_0x4a36d1(0x284)];[_0x4a36d1(0x281)]=!0x1;[_0x4a36d1(0x2a7)];[_0x4a36d1(0x29f)]=!0x1;[_0x4a36d1(0x23c)]=!0x1;[_0x4a36d1(0x1e9)];get[_0x4a36d1(0x276)](){const _0x20de6f=_0x4a36d1;return this[_0x20de6f(0x214)][this[_0x20de6f(0x214)][_0x20de6f(0x251)]-0x1];}constructor(_0x1e3cde){const _0x501e7f=_0x4a36d1;super(_0x1e3cde),this[_0x501e7f(0x288)]=this[_0x501e7f(0x1ee)][_0x501e7f(0x261)][_0x501e7f(0x231)](_0x501e7f(0x1d5)),this[_0x501e7f(0x238)](_0x501e7f(0x268),!0x1),this[_0x501e7f(0x1e9)]=new _0x915ba1(),this[_0x501e7f(0x1dc)]();}[_0x4a36d1(0x2ab)](){const _0x4ce97a=_0x4a36d1;this[_0x4ce97a(0x24b)]();}async[_0x4a36d1(0x2a0)](_0x1d7f63,_0x4f4f5b,_0xa952b4){const _0x31c3a9=_0x4a36d1;if(this[_0x31c3a9(0x1ee)][_0x31c3a9(0x261)][_0x31c3a9(0x1fd)](_0x31c3a9(0x1d3))){if(this[_0x31c3a9(0x1ee)][_0x31c3a9(0x261)][_0x31c3a9(0x231)](_0x31c3a9(0x1d3))[_0x31c3a9(0x1cf)]()){const {modelFragment:_0x56dfe9,anchorData:_0x30cb41}=this[_0x31c3a9(0x1d1)]();return this[_0x31c3a9(0x270)](_0x1d7f63,_0x56dfe9,_0x30cb41,_0x4f4f5b,_0xa952b4);}}const {modelFragment:_0x241760,anchorData:_0x1b3a4b}=this[_0x31c3a9(0x273)]();return this[_0x31c3a9(0x270)](_0x1d7f63,_0x241760,_0x1b3a4b,_0x4f4f5b,_0xa952b4);}[_0x4a36d1(0x273)](){const _0x266bc9=_0x4a36d1,_0x26bd18=this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x1ed)][_0x266bc9(0x293)];if(_0x26bd18[_0x266bc9(0x252)]){const _0x48165b=_0x3d1f76(_0x26bd18[_0x266bc9(0x2a4)]())||this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x29e)][_0x266bc9(0x203)](_0x26bd18);this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x219)](_0x30ef9f=>{const _0x311db7=_0x266bc9;_0x30ef9f[_0x311db7(0x242)](_0x48165b,'in');});}const _0x55be23=_0x26bd18[_0x266bc9(0x1d9)](),_0x3b99bb=this[_0x266bc9(0x257)](this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x271)](_0x26bd18),_0x55be23[_0x266bc9(0x279)],_0x55be23[_0x266bc9(0x1e1)]),_0x33e014=_0x26bd18[_0x266bc9(0x1d9)]()[_0x266bc9(0x279)],_0x11339e=new Map();let _0x8ba7dd=_0x3b99bb;for(let _0x91aaa9=0x0;_0x91aaa9<_0x33e014[_0x266bc9(0x20e)][_0x266bc9(0x251)];_0x91aaa9++)_0x11339e[_0x266bc9(0x238)](_0x8ba7dd,_0x33e014[_0x266bc9(0x20e)][_0x91aaa9]),_0x8ba7dd=_0x8ba7dd[_0x266bc9(0x1d4)](0x0);return{'modelFragment':_0x3b99bb,'anchorData':_0x11339e};}[_0x4a36d1(0x1d1)](){const _0x8d0169=_0x4a36d1,_0x262553=this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x1ed)][_0x8d0169(0x293)],_0xe7808e=this[_0x8d0169(0x1ee)][_0x8d0169(0x261)][_0x8d0169(0x231)](_0x8d0169(0x1d3))[_0x8d0169(0x29d)](),_0x4731fb=_0x262553[_0x8d0169(0x1d9)]()[_0x8d0169(0x279)][_0x8d0169(0x20b)][_0x8d0169(0x20b)],_0x3a3c21=this[_0x8d0169(0x257)](_0xe7808e,this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x1f2)](_0x4731fb),this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x245)](_0x4731fb)),_0x26a2fb=_0x262553[_0x8d0169(0x1d9)]()[_0x8d0169(0x279)],_0xe51074=new Map();let _0x462b32=_0x3a3c21;for(let _0x4d9648=0x0;_0x4d9648<_0x26a2fb[_0x8d0169(0x20e)][_0x8d0169(0x251)];_0x4d9648++)if(_0xe51074[_0x8d0169(0x238)](_0x462b32,_0x26a2fb[_0x8d0169(0x20e)][_0x4d9648]),_0x4d9648<_0x26a2fb[_0x8d0169(0x20e)][_0x8d0169(0x251)]-0x1)_0x462b32=_0x462b32[_0x8d0169(0x1d4)](0x0);else{let _0x597644=_0x462b32[_0x8d0169(0x247)];for(;_0x597644;)_0xe51074[_0x8d0169(0x238)](_0x597644,_0x26a2fb[_0x8d0169(0x20e)][_0x4d9648]),_0x597644=_0x597644[_0x8d0169(0x247)];}return{'modelFragment':_0x3a3c21,'anchorData':_0xe51074};}[_0x4a36d1(0x270)](_0x353ea0,_0x4c1b7a,_0x511ccd,_0x159ac5,_0x4d3b4c){const _0x2c31cb=_0x4a36d1,_0xb9ac42=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x261)][_0x2c31cb(0x231)](_0x2ab615),_0x4c333d=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x261)][_0x2c31cb(0x231)](_0x1cf185),_0xe3c4f7=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x29a)][_0x2c31cb(0x1ed)][_0x2c31cb(0x293)],_0x2e8580=_0xb9ac42[_0x2c31cb(0x265)](_0x4c1b7a),_0xf76ec9=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x2a1)][_0x2c31cb(0x25d)][_0x2c31cb(0x28b)](_0x2e8580),_0x5d1f5c=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x29a)][_0x2c31cb(0x1ed)][_0x2c31cb(0x282)],_0x2f0e27=[..._0xe3c4f7[_0x2c31cb(0x240)]()],_0x38ed2d=new _0x365b43(this[_0x2c31cb(0x1ee)][_0x2c31cb(0x263)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2c31cb(0x22a),'customView':this[_0x2c31cb(0x23a)]},'showUnchangedParts':!0x0});return _0x4c333d[_0x2c31cb(0x1db)]({'index':0x3e8*Math[_0x2c31cb(0x27b)]()%0x3e8,'title':_0x159ac5,'icon':_0x4d3b4c||_0xc8a02,'mainView':_0x38ed2d,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2f0e27}),this[_0x2c31cb(0x264)](_0x38ed2d,_0x4c333d),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x269),()=>{const _0xf50ea0=_0x2c31cb;this[_0xf50ea0(0x1f5)](_0x4c1b7a,_0x511ccd,!0x1);}),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x26e),()=>{const _0x15bc14=_0x2c31cb;this[_0x15bc14(0x1f5)](_0x4c1b7a,_0x511ccd,!0x0);}),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x295),()=>{const _0x4d9344=_0x2c31cb;if(this[_0x4d9344(0x276)]&&this[_0x4d9344(0x276)][_0x4d9344(0x23f)][_0x4d9344(0x251)]>0x0){const _0xcd45f0=this[_0x4d9344(0x276)][_0x4d9344(0x23f)][this[_0x4d9344(0x276)][_0x4d9344(0x23f)][_0x4d9344(0x251)]-0x1],_0x1ea30e=_0xcd45f0[_0x4d9344(0x1fe)][0x0];_0x1ea30e&&_0x4d9344(0x246)===_0x1ea30e[_0x4d9344(0x228)]&&_0xcd45f0[_0x4d9344(0x22c)](0x0,_0x4d9344(0x298));}this[_0x4d9344(0x24b)](),this[_0x4d9344(0x232)](),this[_0x4d9344(0x283)](_0x4c333d);}),this[_0x2c31cb(0x213)](_0xf76ec9,_0x5d1f5c,_0x38ed2d,_0x4c333d,_0x353ea0);}[_0x4a36d1(0x257)](_0x5ec16c,_0x41fac1,_0x269038){const _0x5bb97a=_0x4a36d1,_0x32139c=this[_0x5bb97a(0x1ee)][_0x5bb97a(0x29a)][_0x5bb97a(0x1e6)](_0x41fac1,_0x269038)[_0x5bb97a(0x26f)](),_0x5533a6=_0x32139c['is'](_0x5bb97a(0x27a))?[]:_0x32139c[_0x5bb97a(0x266)]({'includeSelf':!0x0})[_0x5bb97a(0x280)](0x1);if(_0x5533a6[_0x5bb97a(0x251)]){const _0x174f3e=_0x5533a6[_0x5bb97a(0x285)](_0x58245c=>_0x58245c[_0x5bb97a(0x1f6)](!0x1));for(let _0x577466=0x1;_0x577466<_0x174f3e[_0x5bb97a(0x251)];_0x577466++)_0x174f3e[_0x577466-0x1][_0x5bb97a(0x1fb)](_0x174f3e[_0x577466]);return _0x174f3e[_0x174f3e[_0x5bb97a(0x251)]-0x1][_0x5bb97a(0x1fb)](_0x5ec16c),new _0x42b98b(_0x174f3e[0x0]);}return _0x5ec16c;}async[_0x4a36d1(0x213)](_0x7a03cf,_0x14c8c2,_0x4abedf,_0x62491f,_0x8b8760){const _0x667020=_0x4a36d1,_0x4ea0b8=this[_0x667020(0x1ee)];this[_0x667020(0x275)]={'action':_0x8b8760,'content':_0x7a03cf,'version':_0x14c8c2,'mainView':_0x4abedf,'aiBalloon':_0x62491f};const _0x46077f=new _0x526c35({'connector':this[_0x667020(0x288)],'editor':_0x4ea0b8,'content':_0x7a03cf,'version':_0x14c8c2,..._0x8b8760});this[_0x667020(0x214)][_0x667020(0x205)](_0x46077f),_0x4abedf[_0x667020(0x210)]();const _0x405bba=(_0x1ffdbb,_0x7cf30,_0xee7b07=!0x1,_0x324714=_0x667020(0x27e))=>this[_0x667020(0x1e9)][_0x667020(0x22b)](async _0x53236d=>{const _0xc2b2ab=_0x667020;try{const _0x145f53=_0x4b9d8e({'editor':_0x4ea0b8,'changeGroups':_0x1ffdbb[_0xc2b2ab(0x1fe)],'documentContextContent':_0x1ffdbb[_0xc2b2ab(0x1ff)],'showDiff':_0xee7b07,'trimUnchanged':!0x1});await _0x7cf30[_0xc2b2ab(0x287)]({'parts':_0x145f53,'renderingStrategy':_0x324714,'abortSignal':_0x53236d});}catch(_0x4803a1){if(this[_0xc2b2ab(0x27f)](_0x4803a1))return;throw _0x4803a1;}});this[_0x667020(0x276)]['on'](_0x667020(0x21c),(_0xcad3ef,_0xf29310)=>{const _0x31e9bb=_0x667020;_0x4abedf[_0x31e9bb(0x20c)](),_0x405bba(_0xf29310,_0x4abedf)[_0x31e9bb(0x25a)](_0x2df334=>{const _0x5568ac=_0x31e9bb;this[_0x5568ac(0x27f)](_0x2df334)||(console[_0x5568ac(0x1e7)](_0x5568ac(0x25b),_0x2df334),this[_0x5568ac(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x2ac),(_0x5b9bfb,_0x2875df)=>{const _0x271818=_0x667020;_0x405bba(_0x2875df,_0x4abedf)[_0x271818(0x25a)](_0x17bfff=>{const _0x1f6513=_0x271818;this[_0x1f6513(0x27f)](_0x17bfff)||(console[_0x1f6513(0x1e7)](_0x1f6513(0x225),_0x17bfff),this[_0x1f6513(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x244),async()=>{const _0x307755=_0x667020;try{await this[_0x307755(0x2aa)](_0x4abedf,_0x62491f),this[_0x307755(0x24a)]();}catch(_0x2ee83a){this[_0x307755(0x27f)](_0x2ee83a)||(console[_0x307755(0x1e7)](_0x307755(0x1d8),_0x2ee83a),this[_0x307755(0x201)](_0x46077f,_0x4abedf));}}),this[_0x667020(0x1e8)](_0x4abedf,_0x667020(0x226),(_0x8411dc,{showDiff:_0x338378})=>{const _0x3cc66b=_0x667020;this[_0x3cc66b(0x233)]=_0x338378;const _0x56d1d2=this[_0x3cc66b(0x276)][_0x3cc66b(0x23f)][this[_0x3cc66b(0x276)][_0x3cc66b(0x23f)][_0x3cc66b(0x251)]-0x1];_0x56d1d2&&_0x405bba(_0x56d1d2,_0x4abedf,_0x338378,_0x3cc66b(0x248))[_0x3cc66b(0x25a)](_0x2a39b7=>{const _0x453552=_0x3cc66b;this[_0x453552(0x27f)](_0x2a39b7)||(console[_0x453552(0x1e7)](_0x453552(0x28e),_0x2a39b7),this[_0x453552(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x23d),(_0x10dfc2,{reply:_0x42a903})=>{const _0x414165=_0x667020,_0x34a0b={'positiveCount':_0x42a903[_0x414165(0x1fe)][_0x414165(0x1fc)](_0x4a3ce5=>_0x414165(0x24e)===_0x4a3ce5[_0x414165(0x228)])[_0x414165(0x251)],'totalCount':_0x42a903[_0x414165(0x1fe)][_0x414165(0x251)]},_0x4f6e9d=this[_0x414165(0x276)][_0x414165(0x234)],_0x1aa3d4=this[_0x414165(0x276)][_0x414165(0x1d0)];_0x1aa3d4?this[_0x414165(0x288)][_0x414165(0x215)](_0x1aa3d4,_0x4f6e9d,_0x34a0b):this[_0x414165(0x288)][_0x414165(0x239)](_0x4f6e9d,_0x34a0b);}),this[_0x667020(0x264)](_0x4abedf,_0x62491f);try{const _0x19e03c=await this[_0x667020(0x276)][_0x667020(0x279)]();return this[_0x667020(0x24a)](),_0x19e03c;}catch(_0x307d8e){if(this[_0x667020(0x27f)](_0x307d8e))return;_0x4abedf[_0x667020(0x20c)](),this[_0x667020(0x201)](_0x46077f,_0x4abedf);}}[_0x4a36d1(0x1f5)](_0x4d4d36,_0x4e6493,_0x18e24c){const _0x39eeed=_0x4a36d1,_0xb438e5=this[_0x39eeed(0x1ee)],_0x2c19b9=this[_0x39eeed(0x1ee)][_0x39eeed(0x261)][_0x39eeed(0x231)](_0x1d9cac),_0x217771=this[_0x39eeed(0x276)],_0x3b7aa9=this[_0x39eeed(0x276)][_0x39eeed(0x23f)][this[_0x39eeed(0x276)][_0x39eeed(0x23f)][_0x39eeed(0x251)]-0x1],_0xbf4ca8=_0x3b7aa9[_0x39eeed(0x1fe)];_0x3b7aa9[_0x39eeed(0x22c)](0x0,_0x39eeed(0x24e));let _0x5b2b4e=_0x510f01({'editor':_0xb438e5,'reply':_0x3b7aa9,'interaction':_0x217771,'groups':_0xbf4ca8,'transform':!0x1,'documentCompare':_0x2c19b9,'documentCompareOptions':{'anchor':_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x204)](_0x4d4d36,0x0),'markDeletions':_0x18e24c}});_0x5b2b4e=this[_0x39eeed(0x206)](_0x5b2b4e,_0x4e6493);for(const _0x5ce855 of _0x5b2b4e)this[_0x39eeed(0x29c)](_0x4e6493,_0x5ce855,_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)][_0x39eeed(0x22f)]());const _0x356b72=_0x217771[_0x39eeed(0x1d2)]()[_0x39eeed(0x282)],_0x2933c7=_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)][_0x39eeed(0x296)][_0x39eeed(0x25e)](_0x356b72),_0x48d529={'document':_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x35d3cd=_0x2a80ed(_0x5b2b4e,_0x2933c7,_0x48d529)[_0x39eeed(0x26a)];_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x219)](_0x2c73f2=>{const _0x5d8a36=_0x39eeed;if(_0x2c73f2[_0x5d8a36(0x242)](_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x1ed)][_0x5d8a36(0x293)][_0x5d8a36(0x224)]),_0x18e24c)_0xb438e5[_0x5d8a36(0x261)][_0x5d8a36(0x231)](_0x5d8a36(0x290))[_0x5d8a36(0x236)](_0x35d3cd);else{for(const _0x5808ca of _0x35d3cd)_0x5808ca[_0x5d8a36(0x216)]=_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x1ed)][_0x5d8a36(0x282)],_0x2c73f2[_0x5d8a36(0x2a5)][_0x5d8a36(0x1d7)](_0x5808ca),_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x209)](_0x5808ca);}}),this[_0x39eeed(0x1ee)][_0x39eeed(0x261)][_0x39eeed(0x231)](_0x39eeed(0x1f4))[_0x39eeed(0x297)]();}[_0x4a36d1(0x206)](_0x20fb33,_0x11e671){const _0xd55ee9=_0x4a36d1;return _0x20fb33[_0xd55ee9(0x1fc)](_0x3122b5=>{const _0x5f227f=_0xd55ee9;if(_0x5f227f(0x1f3)==_0x3122b5[_0x5f227f(0x1ea)]){const _0x3ed30c=_0x3122b5[_0x5f227f(0x1dd)][_0x5f227f(0x28f)];return!_0x11e671[_0x5f227f(0x1fd)](_0x3ed30c);}if(_0x3122b5[_0x5f227f(0x1ea)][_0x5f227f(0x22e)](_0x5f227f(0x212))>-0x1){const _0x1e92d0=_0x3122b5[_0x5f227f(0x1f1)][_0x5f227f(0x279)][_0x5f227f(0x28f)];return!_0x11e671[_0x5f227f(0x1fd)](_0x1e92d0);}return!0x0;});}[_0x4a36d1(0x29c)](_0x8edbf5,_0x3ddc9e,_0x2d805e){const _0x12aa82=_0x4a36d1,_0x446db7=_0x3ddc9e[_0x12aa82(0x211)]();for(const _0x444278 in _0x3ddc9e){const _0x4dd099=_0x3ddc9e[_0x444278];_0x4dd099 instanceof _0x479a8e?_0x3ddc9e[_0x444278]=new _0x479a8e(_0x3992b9(_0x4dd099[_0x12aa82(0x279)]),_0x3992b9(_0x4dd099[_0x12aa82(0x1e1)])):_0x4dd099 instanceof _0x4e58c2&&(_0x3ddc9e[_0x444278]=_0x3992b9(_0x4dd099));}if([_0x12aa82(0x255),_0x12aa82(0x227),_0x12aa82(0x24c),_0x12aa82(0x25c),_0x12aa82(0x1fa),_0x12aa82(0x22d)][_0x12aa82(0x1cd)](_0x446db7[_0x12aa82(0x1ea)])){if(_0x446db7[_0x12aa82(0x267)]=!0x1,_0x446db7[_0x12aa82(0x216)]=null,_0x12aa82(0x24c)==_0x446db7[_0x12aa82(0x1ea)]){const _0x303204=_0x446db7[_0x12aa82(0x1f8)],_0x751edc=_0x446db7[_0x12aa82(0x250)];new _0x2ecba7(_0x303204,_0x751edc)[_0x12aa82(0x230)]();}else _0x446db7[_0x12aa82(0x230)]();}function _0x3992b9(_0x4f4dc6){const _0x8041f8=_0x12aa82;if(_0x8041f8(0x299)==_0x4f4dc6[_0x8041f8(0x2a9)][_0x8041f8(0x1f7)])return _0x4f4dc6;const _0x385aa3=[];let _0x2e3f63=_0x4f4dc6[_0x8041f8(0x2a9)];for(let _0x1a0936=0x0;_0x1a0936<_0x4f4dc6[_0x8041f8(0x20e)][_0x8041f8(0x251)];_0x1a0936++){const _0x1ca4e4=_0x8edbf5[_0x8041f8(0x231)](_0x2e3f63)||0x0;_0x385aa3[_0x1a0936]=_0x4f4dc6[_0x8041f8(0x20e)][_0x1a0936]+_0x1ca4e4,_0x2e3f63=_0x2e3f63[_0x8041f8(0x27c)](_0x4f4dc6[_0x8041f8(0x20e)][_0x1a0936]);}return new _0x4e58c2(_0x2d805e,_0x385aa3,_0x4f4dc6[_0x8041f8(0x29b)]);}}[_0x4a36d1(0x1e4)](){const _0x181d90=_0x4a36d1;if(!this[_0x181d90(0x275)])return;this[_0x181d90(0x214)][_0x181d90(0x251)]>0x0&&this[_0x181d90(0x24b)](),this[_0x181d90(0x1e5)]=0x0,this[_0x181d90(0x233)]=!0x1;const {action:_0xa29153,content:_0xa62f51,version:_0x35a9ba,mainView:_0x460851,aiBalloon:_0x26e4a0}=this[_0x181d90(0x275)];_0x460851[_0x181d90(0x1d6)]=!0x1,_0x460851[_0x181d90(0x210)](),this[_0x181d90(0x289)](_0x460851,_0x26e4a0);const _0x55263e=_0x460851;_0x55263e[_0x181d90(0x291)]&&_0x55263e[_0x181d90(0x291)][_0x181d90(0x1e0)]&&_0x55263e[_0x181d90(0x291)][_0x181d90(0x1e0)][_0x181d90(0x238)]({'isOn':!0x1,'icon':_0x231bd9}),this[_0x181d90(0x272)](_0x460851),_0x460851[_0x181d90(0x254)](),this[_0x181d90(0x24a)](),this[_0x181d90(0x213)](_0xa62f51,_0x35a9ba,_0x460851,_0x26e4a0,_0xa29153)[_0x181d90(0x25a)](_0x3990f9=>{const _0x4006b2=_0x181d90;this[_0x4006b2(0x27f)](_0x3990f9)||console[_0x4006b2(0x1e7)](_0x4006b2(0x221),_0x3990f9);});}[_0x4a36d1(0x272)](_0x1decfd){const _0x4d60e7=_0x4a36d1,_0x343ef2=_0x1decfd[_0x4d60e7(0x21f)][_0x4d60e7(0x243)];for(;_0x343ef2[_0x4d60e7(0x251)]>0x0;)_0x343ef2[_0x4d60e7(0x24c)](_0x343ef2[_0x4d60e7(0x278)]);_0x1decfd[_0x4d60e7(0x21f)][_0x4d60e7(0x1ce)]=!0x1;}[_0x4a36d1(0x27f)](_0x48e56f){const _0x10caf9=_0x4a36d1;return!!_0x48e56f[_0x10caf9(0x241)]&&_0x48e56f[_0x10caf9(0x241)][_0x10caf9(0x24d)](_0x10caf9(0x259));}[_0x4a36d1(0x232)](){const _0x3888e6=_0x4a36d1;this[_0x3888e6(0x214)]=[],this[_0x3888e6(0x275)]=void 0x0,this[_0x3888e6(0x1e5)]=0x0,this[_0x3888e6(0x24a)]();}[_0x4a36d1(0x24b)](){const _0x577cf3=_0x4a36d1;this[_0x577cf3(0x276)]&&this[_0x577cf3(0x276)][_0x577cf3(0x21d)](),this[_0x577cf3(0x1e9)][_0x577cf3(0x1de)](),this[_0x577cf3(0x268)]=!0x1;}[_0x4a36d1(0x1dc)](){const _0x345512=_0x4a36d1,_0x5414d5=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0x57a4c6=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0x489b6e=new _0x235b3f(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0xe213a8=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]);_0x5414d5[_0x345512(0x238)]({'icon':_0x2c56b6,'label':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x223)),'tooltip':!0x0,'class':_0x345512(0x1e2)}),_0x57a4c6[_0x345512(0x238)]({'icon':_0x46b546,'tooltip':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x262)),'class':_0x345512(0x274)}),_0x489b6e[_0x345512(0x23e)]({'tag':_0x345512(0x1ef),'attributes':{'class':[_0x345512(0x253)]},'children':[_0x345512(0x294)]}),_0xe213a8[_0x345512(0x238)]({'icon':_0x2763ac,'tooltip':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x20f)),'class':_0x345512(0x26d)}),_0x5414d5[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x12c28d=>!_0x12c28d),_0x5414d5['on'](_0x345512(0x1f0),()=>{const _0x1dc0ff=_0x345512;this[_0x1dc0ff(0x1e4)]();}),_0x57a4c6[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x5a96ab=>!_0x5a96ab),_0x57a4c6['on'](_0x345512(0x1f0),()=>{const _0x38f806=_0x345512;this[_0x38f806(0x21e)]();}),_0xe213a8[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x939821=>!_0x939821),_0xe213a8['on'](_0x345512(0x1f0),()=>{const _0x3bafc0=_0x345512;this[_0x3bafc0(0x23b)]();}),this[_0x345512(0x1df)]=_0x57a4c6,this[_0x345512(0x284)]=_0x489b6e,this[_0x345512(0x2a7)]=_0xe213a8,this[_0x345512(0x23a)][_0x345512(0x222)](_0x5414d5);}[_0x4a36d1(0x21e)](){const _0x49a378=_0x4a36d1,_0x5d088a=this[_0x49a378(0x214)][_0x49a378(0x251)];this[_0x49a378(0x1e5)]<_0x5d088a-0x1&&this[_0x49a378(0x2a8)](this[_0x49a378(0x1e5)]+0x1);}[_0x4a36d1(0x23b)](){const _0x5e4704=_0x4a36d1;this[_0x5e4704(0x1e5)]>0x0&&this[_0x5e4704(0x2a8)](this[_0x5e4704(0x1e5)]-0x1);}async[_0x4a36d1(0x2a8)](_0x374cb5){const _0x37ad9c=_0x4a36d1;if(!this[_0x37ad9c(0x275)])return;this[_0x37ad9c(0x1e5)]=_0x374cb5;const {mainView:_0x19b18a}=this[_0x37ad9c(0x275)],_0x5a1142=this[_0x37ad9c(0x214)][this[_0x37ad9c(0x214)][_0x37ad9c(0x251)]-0x1-this[_0x37ad9c(0x1e5)]];if(!_0x5a1142)return;if(_0x5a1142[_0x37ad9c(0x277)])return this[_0x37ad9c(0x201)](_0x5a1142,_0x19b18a),void this[_0x37ad9c(0x24a)]();if(!_0x5a1142[_0x37ad9c(0x23f)][_0x37ad9c(0x251)])return;_0x19b18a[_0x37ad9c(0x210)](),this[_0x37ad9c(0x275)]&&this[_0x37ad9c(0x289)](_0x19b18a,this[_0x37ad9c(0x275)][_0x37ad9c(0x207)]);const _0x5f2e60=_0x5a1142[_0x37ad9c(0x23f)][_0x5a1142[_0x37ad9c(0x23f)][_0x37ad9c(0x251)]-0x1];if(_0x5f2e60){const _0x5aac32=this[_0x37ad9c(0x1ee)];this[_0x37ad9c(0x272)](_0x19b18a);try{const _0x581c7f=_0x4b9d8e({'editor':_0x5aac32,'changeGroups':_0x5f2e60[_0x37ad9c(0x1fe)],'documentContextContent':_0x5f2e60[_0x37ad9c(0x1ff)],'showDiff':this[_0x37ad9c(0x233)],'trimUnchanged':!0x1});this[_0x37ad9c(0x272)](_0x19b18a),await new Promise(_0x2f07a1=>setTimeout(_0x2f07a1,0x32)),await _0x19b18a[_0x37ad9c(0x287)]({'parts':_0x581c7f,'renderingStrategy':_0x37ad9c(0x248),'abortSignal':new AbortController()[_0x37ad9c(0x220)]});}catch(_0x272da4){this[_0x37ad9c(0x27f)](_0x272da4)||console[_0x37ad9c(0x1e7)](_0x37ad9c(0x2a3),_0x272da4);}}this[_0x37ad9c(0x24a)]();}[_0x4a36d1(0x24a)](){const _0x38722e=_0x4a36d1;if(!this[_0x38722e(0x1df)]||!this[_0x38722e(0x284)]||!this[_0x38722e(0x2a7)])return;const _0x52bde6=this[_0x38722e(0x214)][_0x38722e(0x251)],_0x2ef91b=_0x52bde6>0x1,_0x51e812=this[_0x38722e(0x275)]?.[_0x38722e(0x2a2)];if(_0x2ef91b){this[_0x38722e(0x29f)]||this[_0x38722e(0x281)]||this[_0x38722e(0x23c)]||(this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x1df)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x1df)]),this[_0x38722e(0x29f)]=!0x0,this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x284)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x284)]),this[_0x38722e(0x281)]=!0x0,this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x2a7)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x2a7)]),this[_0x38722e(0x23c)]=!0x0);const _0x5d24bb=_0x52bde6-this[_0x38722e(0x1e5)];this[_0x38722e(0x284)][_0x38722e(0x1eb)]&&(this[_0x38722e(0x284)][_0x38722e(0x1eb)][_0x38722e(0x1f9)]=_0x5d24bb+'/'+_0x52bde6),this[_0x38722e(0x1df)][_0x38722e(0x208)]=this[_0x38722e(0x1e5)]<_0x52bde6-0x1,this[_0x38722e(0x2a7)][_0x38722e(0x208)]=this[_0x38722e(0x1e5)]>0x0;}else(this[_0x38722e(0x29f)]||this[_0x38722e(0x281)]||this[_0x38722e(0x23c)])&&(this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x1df)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x1df)]),this[_0x38722e(0x29f)]=!0x1,this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x284)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x284)]),this[_0x38722e(0x281)]=!0x1,this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x2a7)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x2a7)]),this[_0x38722e(0x23c)]=!0x1);}[_0x4a36d1(0x264)](_0x15826b,_0x3f9270){const _0x1d3e7f=_0x4a36d1;_0x15826b[_0x1d3e7f(0x217)](),_0x3f9270[_0x1d3e7f(0x292)][_0x1d3e7f(0x217)](),this[_0x1d3e7f(0x268)]=!0x0;}async[_0x4a36d1(0x201)](_0x589b6b,_0x5ecdfd){const _0x35a001=_0x4a36d1,_0x1038ce=_0x3d68fe(this[_0x35a001(0x1ee)][_0x35a001(0x263)],_0x35a001(0x218));_0x5ecdfd[_0x35a001(0x200)](_0x1038ce),_0x589b6b[_0x35a001(0x277)]=!0x0,await this[_0x35a001(0x1e9)][_0x35a001(0x260)],_0x5ecdfd[_0x35a001(0x237)](),this[_0x35a001(0x275)]?.[_0x35a001(0x207)][_0x35a001(0x292)][_0x35a001(0x28c)]&&(this[_0x35a001(0x275)][_0x35a001(0x207)][_0x35a001(0x292)][_0x35a001(0x28c)][_0x35a001(0x235)]=!0x0);}[_0x4a36d1(0x289)](_0x2b4b9f,_0x4747fb){const _0x5e21e5=_0x4a36d1;_0x2b4b9f[_0x5e21e5(0x21a)](),_0x4747fb[_0x5e21e5(0x292)][_0x5e21e5(0x28c)]&&(_0x4747fb[_0x5e21e5(0x292)][_0x5e21e5(0x28c)][_0x5e21e5(0x235)]=!0x1);}async[_0x4a36d1(0x2aa)](_0xfcedeb,_0x454387){const _0x25f1a6=_0x4a36d1;await this[_0x25f1a6(0x1e9)][_0x25f1a6(0x260)],this[_0x25f1a6(0x268)]=!0x1,_0xfcedeb[_0x25f1a6(0x28d)](),_0x454387[_0x25f1a6(0x292)][_0x25f1a6(0x28d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56f155=_0xe45d;(function(_0x1aeea7,_0x4450f7){const _0x5dfa7d=_0xe45d,_0x2e8465=_0x1aeea7();while(!![]){try{const _0x5aecf5=parseInt(_0x5dfa7d(0x158))/0x1+parseInt(_0x5dfa7d(0x152))/0x2+parseInt(_0x5dfa7d(0x14d))/0x3*(parseInt(_0x5dfa7d(0x154))/0x4)+parseInt(_0x5dfa7d(0x143))/0x5*(-parseInt(_0x5dfa7d(0x15d))/0x6)+-parseInt(_0x5dfa7d(0x146))/0x7+parseInt(_0x5dfa7d(0x14a))/0x8*(parseInt(_0x5dfa7d(0x15b))/0x9)+-parseInt(_0x5dfa7d(0x145))/0xa*(parseInt(_0x5dfa7d(0x14f))/0xb);if(_0x5aecf5===_0x4450f7)break;else _0x2e8465['push'](_0x2e8465['shift']());}catch(_0x43cda9){_0x2e8465['push'](_0x2e8465['shift']());}}}(_0xdab3,0x48904));import{AIInteraction as _0x43cdb5,AI_MODEL_EVENT_NAMES as _0x384e8c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x482ee5}from'../../aicore/model/aicontext.js';function _0xe45d(_0x4a85a4,_0x2b235e){const _0xdab3b3=_0xdab3();return _0xe45d=function(_0xe45dd2,_0x5369bc){_0xe45dd2=_0xe45dd2-0x13f;let _0x57a94a=_0xdab3b3[_0xe45dd2];return _0x57a94a;},_0xe45d(_0x4a85a4,_0x2b235e);}function _0xdab3(){const _0x1369ad=['replies','push','editor','384849HaActS','Current\x20document','hasError','9nbUAWK','version','6oYWqoc','delegate','actionName','model','getDocumentContext','content','executeAction','replyCreated','2323700fmzUdU','current-document','764090mHsFbj','3201170RbzaHr','fire','TEXT','userMessage','3620168OIkjHX','sendRequest','connector','36lFupRN','args','55GvXdaB','html','createReply','990122JarJZp','executeCustomAction','89628hwgKRR'];_0xdab3=function(){return _0x1369ad;};return _0xdab3();}import{AIActionsReply as _0x52d4e8}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x43cdb5{[_0x56f155(0x140)];[_0x56f155(0x15c)];[_0x56f155(0x15f)];[_0x56f155(0x14e)];[_0x56f155(0x149)];[_0x56f155(0x160)];[_0x56f155(0x15a)]=!0x1;constructor(_0x1a109f){const _0x1c2c89=_0x56f155;super(_0x1a109f),this[_0x1c2c89(0x140)]=_0x1a109f[_0x1c2c89(0x140)],this[_0x1c2c89(0x15c)]=_0x1a109f[_0x1c2c89(0x15c)],this[_0x1c2c89(0x15f)]=_0x1a109f[_0x1c2c89(0x15f)],this[_0x1c2c89(0x14e)]=_0x1a109f[_0x1c2c89(0x14e)],this[_0x1c2c89(0x149)]=_0x1a109f[_0x1c2c89(0x149)],this[_0x1c2c89(0x160)]=_0x1a109f[_0x1c2c89(0x160)];}async[_0x56f155(0x14b)](){const _0x4438ba=_0x56f155;return this[_0x4438ba(0x15f)]?this[_0x4438ba(0x14c)][_0x4438ba(0x141)]({'content':this[_0x4438ba(0x140)],'actionName':this[_0x4438ba(0x15f)],'args':this[_0x4438ba(0x14e)]}):this[_0x4438ba(0x14c)][_0x4438ba(0x153)]({'content':this[_0x4438ba(0x140)],'message':this[_0x4438ba(0x149)],'model':this[_0x4438ba(0x160)],'outputFormat':_0x4438ba(0x150)});}[_0x56f155(0x13f)](){const _0x2aa15a=_0x56f155;return{'type':_0x482ee5[_0x2aa15a(0x148)],'content':this[_0x2aa15a(0x140)],'version':this[_0x2aa15a(0x15c)],'label':_0x2aa15a(0x159),'uiId':_0x2aa15a(0x144)};}[_0x56f155(0x151)](_0x41793a){const _0x3a1ed5=_0x56f155,_0x2a69ef=new _0x52d4e8({'editor':this[_0x3a1ed5(0x157)],'documentContextContent':this[_0x3a1ed5(0x140)],..._0x41793a});return this[_0x3a1ed5(0x155)][_0x3a1ed5(0x156)](_0x2a69ef),_0x2a69ef[_0x3a1ed5(0x15e)](..._0x384e8c)['to'](this),this[_0x3a1ed5(0x147)](_0x3a1ed5(0x142),_0x2a69ef),_0x2a69ef;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x246a(){const _0x3f9af5=['287xqNNaG','20aOFSgA','66307jIygij','node','map','50168nDgZbm','2230488ieIxVh','2892756KamAtZ','added','children','removed','changeGroups','1377603ewKBzL','length','isDone','data-id','new','updateChangeGroups','6CuOzKr','childNodes','modified','_getDifferentChangeGroups','parsedMergedContent','pop','cloneNode','918720ZsteiH','documentContextContent','pending','parsedContent','value','312562KWoFhV'];_0x246a=function(){return _0x3f9af5;};return _0x246a();}function _0x5c45(_0x11c157,_0x5544c1){const _0x246a66=_0x246a();return _0x5c45=function(_0x5c45cc,_0x4fa4a3){_0x5c45cc=_0x5c45cc-0x12e;let _0x1fd82a=_0x246a66[_0x5c45cc];return _0x1fd82a;},_0x5c45(_0x11c157,_0x5544c1);}const _0x349575=_0x5c45;(function(_0x8e7708,_0x31de27){const _0x294db5=_0x5c45,_0x468656=_0x8e7708();while(!![]){try{const _0x468baa=-parseInt(_0x294db5(0x13c))/0x1+-parseInt(_0x294db5(0x139))/0x2*(parseInt(_0x294db5(0x14c))/0x3)+parseInt(_0x294db5(0x140))/0x4+parseInt(_0x294db5(0x134))/0x5+parseInt(_0x294db5(0x141))/0x6+parseInt(_0x294db5(0x13a))/0x7*(-parseInt(_0x294db5(0x13f))/0x8)+parseInt(_0x294db5(0x146))/0x9*(-parseInt(_0x294db5(0x13b))/0xa);if(_0x468baa===_0x31de27)break;else _0x468656['push'](_0x468656['shift']());}catch(_0xe3174a){_0x468656['push'](_0x468656['shift']());}}}(_0x246a,0x44b22));import{AIReply as _0xf0f971}from'../../aicore/model/aireply.js';import{getAttribute as _0x310a3e}from'../../aicore/utils/htmlparser.js';import{uid as _0x2462ca}from'ckeditor5/src/utils.js';import{diffArrays as _0x1f8445}from'diff';export class AIActionsReply extends _0xf0f971{[_0x349575(0x14b)](){const _0x40b9e6=_0x349575;if(this[_0x40b9e6(0x131)]=this[_0x40b9e6(0x137)][_0x40b9e6(0x133)](!0x0),0x0==this[_0x40b9e6(0x131)][_0x40b9e6(0x12e)][_0x40b9e6(0x147)])return void(this[_0x40b9e6(0x145)]=[]);const _0x37a1ff=this[_0x40b9e6(0x135)][_0x40b9e6(0x143)][_0x40b9e6(0x13e)](_0x3565ac=>({'node':_0x3565ac,'id':_0x310a3e(_0x3565ac,_0x40b9e6(0x149))})),_0xe0740d=this[_0x40b9e6(0x131)][_0x40b9e6(0x143)][_0x40b9e6(0x13e)](_0x47f8bc=>({'node':_0x47f8bc,'id':_0x310a3e(_0x47f8bc,_0x40b9e6(0x149))||_0x2462ca()})),_0x2b8a9c=_0x1f8445(_0x37a1ff,_0xe0740d,{'comparator':(_0xdd9a6c,_0x5eaf48)=>_0xdd9a6c['id']==_0x5eaf48['id'],'oneChangePerToken':!0x0});if(!this[_0x40b9e6(0x148)]){for(;_0x2b8a9c[_0x40b9e6(0x147)]&&_0x2b8a9c[_0x2b8a9c[_0x40b9e6(0x147)]-0x1][_0x40b9e6(0x144)];)_0x2b8a9c[_0x40b9e6(0x132)]();}const _0x2038d7=_0x2b8a9c[_0x40b9e6(0x13e)](_0x14816b=>{const _0x3f8429=_0x40b9e6,_0x3b668f=_0x14816b[_0x3f8429(0x142)]?_0x3f8429(0x14a):_0x14816b[_0x3f8429(0x144)]?_0x3f8429(0x144):_0x3f8429(0x12f);return{'node':_0x14816b[_0x3f8429(0x138)][0x0][_0x3f8429(0x13d)],'type':_0x3b668f,'id':_0x14816b[_0x3f8429(0x138)][0x0]['id']};});this[_0x40b9e6(0x145)]=[{'changes':_0x2038d7,'state':_0x40b9e6(0x136),'index':0x0}];}[_0x349575(0x130)](_0x1fe3d2,_0x3c0d6d){return _0x3c0d6d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3aacd6=_0x3e69;function _0x3e69(_0x10b6de,_0x5bc205){var _0x1be676=_0x1be6();return _0x3e69=function(_0x3e69d3,_0x18d585){_0x3e69d3=_0x3e69d3-0xe5;var _0x22baac=_0x1be676[_0x3e69d3];return _0x22baac;},_0x3e69(_0x10b6de,_0x5bc205);}(function(_0x2cf01a,_0x34f323){var _0x16ad52=_0x3e69,_0x33177f=_0x2cf01a();while(!![]){try{var _0x5df292=parseInt(_0x16ad52(0xe9))/0x1+-parseInt(_0x16ad52(0xe8))/0x2*(-parseInt(_0x16ad52(0xf7))/0x3)+-parseInt(_0x16ad52(0xf2))/0x4+parseInt(_0x16ad52(0xe6))/0x5*(parseInt(_0x16ad52(0xef))/0x6)+-parseInt(_0x16ad52(0xe7))/0x7+parseInt(_0x16ad52(0xe5))/0x8+-parseInt(_0x16ad52(0xf0))/0x9*(parseInt(_0x16ad52(0xed))/0xa);if(_0x5df292===_0x34f323)break;else _0x33177f['push'](_0x33177f['shift']());}catch(_0x19d105){_0x33177f['push'](_0x33177f['shift']());}}}(_0x1be6,0xef214));function _0x1be6(){var _0x133cef=['5994keejVC','18Axwadk','aiadapter-text-adapter-not-set','165412OvxSFk','name','AIRequestError','isOfficialPlugin','afterInit','11631pTdBqK','3582208rfiVXu','4255aFsRry','3136686CsOxld','386YttJNG','1660847wSRAAk','AIAdapter','pluginName','isPremiumPlugin','11190530ZRNxvc','textAdapter'];_0x1be6=function(){return _0x133cef;};return _0x1be6();}import{Plugin as _0x187f02}from'ckeditor5/src/core.js';import{CKEditorError as _0x13a63f}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x187f02{static get[_0x3aacd6(0xeb)](){var _0x1cbe31=_0x3aacd6;return _0x1cbe31(0xea);}static get[_0x3aacd6(0xf5)](){return!0x0;}static get[_0x3aacd6(0xec)](){return!0x0;}[_0x3aacd6(0xf6)](){var _0xe2adcd=_0x3aacd6;if(!this[_0xe2adcd(0xee)])throw new _0x13a63f(_0xe2adcd(0xf1),null);}}export class AIRequestError extends Error{constructor(_0x407091){var _0x2c2e1e=_0x3aacd6;super(_0x407091),this[_0x2c2e1e(0xf3)]=_0x2c2e1e(0xf4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x305593=_0x2406;function _0x58bb(){const _0x270367=['abort','28qgtyhZ','aborted','5875KJTIEQ','init','plugins','resolve','1617444hcCQsv','editor','signal','19655208KtcOJv','catch','_prepareRequestHeaders','AI_ERROR_GET_HEADERS','298YPvDDT','get','error','10SVfNaG','application/json','2598aVVYRW','AbortError','locale','assign','5678968xLgOmx','AI_ERROR_GET_PARAMETERS','name','object','184068JMUZdY','aitextadapter-send-request-failed','makeRequest','_prepareRequestParameters','321558NQsCeW','textAdapter','reject','requires','sendRequest','abortController'];_0x58bb=function(){return _0x270367;};return _0x58bb();}(function(_0xbf0a02,_0x3dc6c1){const _0x48b5ea=_0x2406,_0x3e1f58=_0xbf0a02();while(!![]){try{const _0x34120f=-parseInt(_0x48b5ea(0x1bb))/0x1*(parseInt(_0x48b5ea(0x1c0))/0x2)+-parseInt(_0x48b5ea(0x1b4))/0x3+parseInt(_0x48b5ea(0x1c8))/0x4+-parseInt(_0x48b5ea(0x1b0))/0x5+parseInt(_0x48b5ea(0x1cc))/0x6*(-parseInt(_0x48b5ea(0x1ae))/0x7)+-parseInt(_0x48b5ea(0x1c4))/0x8+-parseInt(_0x48b5ea(0x1b7))/0x9*(-parseInt(_0x48b5ea(0x1be))/0xa);if(_0x34120f===_0x3dc6c1)break;else _0x3e1f58['push'](_0x3e1f58['shift']());}catch(_0x414b47){_0x3e1f58['push'](_0x3e1f58['shift']());}}}(_0x58bb,0x5c595));function _0x2406(_0x428c5e,_0x1d4551){const _0x58bb34=_0x58bb();return _0x2406=function(_0x240666,_0x1130f6){_0x240666=_0x240666-0x1ae;let _0x19008c=_0x58bb34[_0x240666];return _0x19008c;},_0x2406(_0x428c5e,_0x1d4551);}import{Plugin as _0x21b8a0}from'ckeditor5/src/core.js';import{CKEditorError as _0x65ee10}from'ckeditor5/src/utils.js';import{AIAdapter as _0x10060b,AIRequestError as _0xfd9847}from'./aiadapter.js';import{getTranslation as _0x3886e6}from'../utils/common-translations.js';export class AITextAdapter extends _0x21b8a0{[_0x305593(0x1d1)];static get[_0x305593(0x1cf)](){return[_0x10060b];}constructor(_0x5afb1d){const _0x2b59a7=_0x305593;super(_0x5afb1d),this[_0x2b59a7(0x1d1)]=new AbortController();}[_0x305593(0x1b1)](){const _0xfba7c5=_0x305593;this[_0xfba7c5(0x1b5)][_0xfba7c5(0x1b2)][_0xfba7c5(0x1bc)](_0x10060b)[_0xfba7c5(0x1cd)]=this;}[_0x305593(0x1d2)](){const _0xb88f8a=_0x305593;this[_0xb88f8a(0x1d1)][_0xb88f8a(0x1b6)][_0xb88f8a(0x1af)]||(this[_0xb88f8a(0x1d1)][_0xb88f8a(0x1d2)](),this[_0xb88f8a(0x1d1)]=new AbortController());}async[_0x305593(0x1ca)](_0x3d291e){const _0x32602a=_0x305593;return this[_0x32602a(0x1d0)](_0x3d291e)[_0x32602a(0x1b8)](_0x57bfa3=>{const _0x42346f=_0x32602a;if(_0x57bfa3 instanceof _0xfd9847)return Promise[_0x42346f(0x1ce)](_0x57bfa3);if(_0x42346f(0x1c1)==_0x57bfa3[_0x42346f(0x1c6)])return Promise[_0x42346f(0x1b3)]();throw console[_0x42346f(0x1bd)](_0x57bfa3),new _0x65ee10(_0x42346f(0x1c9),null);});}async[_0x305593(0x1b9)](_0x511b6d,_0x37b3fd){const _0x598b16=_0x305593,_0x5bd860=this[_0x598b16(0x1b5)][_0x598b16(0x1c2)],_0x239dc2={'Content-Type':_0x598b16(0x1bf)};if(_0x598b16(0x1c7)==typeof _0x511b6d)Object[_0x598b16(0x1c3)](_0x239dc2,_0x511b6d);else{if(_0x511b6d)try{const _0x23fa6a=await _0x511b6d(_0x37b3fd);Object[_0x598b16(0x1c3)](_0x239dc2,_0x23fa6a);}catch{return Promise[_0x598b16(0x1ce)](new _0xfd9847(_0x3886e6(_0x5bd860,_0x598b16(0x1ba))));}}return _0x239dc2;}async[_0x305593(0x1cb)](_0x3ab9f4,_0x535f14){const _0x59b02c=_0x305593,_0x1e265a=this[_0x59b02c(0x1b5)][_0x59b02c(0x1c2)];if(_0x59b02c(0x1c7)==typeof _0x3ab9f4)return _0x3ab9f4;try{return await _0x3ab9f4(_0x535f14);}catch{return Promise[_0x59b02c(0x1ce)](new _0xfd9847(_0x3886e6(_0x1e265a,_0x59b02c(0x1c5))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3493b6=_0x2026;(function(_0x27a641,_0x491a58){const _0xb5494b=_0x2026,_0x2aeac2=_0x27a641();while(!![]){try{const _0x336e97=-parseInt(_0xb5494b(0x1e5))/0x1+-parseInt(_0xb5494b(0x1f8))/0x2+parseInt(_0xb5494b(0x1ea))/0x3*(parseInt(_0xb5494b(0x20d))/0x4)+-parseInt(_0xb5494b(0x21a))/0x5+parseInt(_0xb5494b(0x217))/0x6*(parseInt(_0xb5494b(0x1fe))/0x7)+parseInt(_0xb5494b(0x1dc))/0x8+-parseInt(_0xb5494b(0x212))/0x9*(-parseInt(_0xb5494b(0x21f))/0xa);if(_0x336e97===_0x491a58)break;else _0x2aeac2['push'](_0x2aeac2['shift']());}catch(_0x346083){_0x2aeac2['push'](_0x2aeac2['shift']());}}}(_0x5a50,0x5a33a));import{AITextAdapter as _0x2dd579}from'./aitextadapter.js';function _0x2026(_0xa936f0,_0x3cfa74){const _0x5a503d=_0x5a50();return _0x2026=function(_0x202674,_0x12370f){_0x202674=_0x202674-0x1d0;let _0x5541fe=_0x5a503d[_0x202674];return _0x5541fe;},_0x2026(_0xa936f0,_0x3cfa74);}import{AIRequestError as _0x4fff4b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x282689,InvokeModelCommand as _0x413e95,InvokeModelWithResponseStreamCommand as _0xc9c07d}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4f0482}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2dd579{[_0x3493b6(0x1f0)];[_0x3493b6(0x1d8)];[_0x3493b6(0x1e8)];[_0x3493b6(0x20b)];static get[_0x3493b6(0x1f9)](){const _0x3d35bb=_0x3493b6;return _0x3d35bb(0x1e9);}constructor(_0x270c24){const _0x1f2b27=_0x3493b6;super(_0x270c24),_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x206))||_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1ee)](_0x1f2b27(0x206),{'model':_0x1f2b27(0x1f6),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1f2b27(0x1f7),'stream':!0x0}),this[_0x1f2b27(0x1f0)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x1d0)),this[_0x1f2b27(0x1e8)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x20e)),this[_0x1f2b27(0x1d8)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x1d1)),this[_0x1f2b27(0x20b)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x206));}async[_0x3493b6(0x21c)]({query:_0xaec8b5,context:_0x29c9dc,onData:_0x4c4276,actionId:_0x8aa76d}){const _0x327dc1=_0x3493b6,{model:_0x2db88e,stream:_0x43e30c,..._0x2a8b74}=await this[_0x327dc1(0x1f5)](this[_0x327dc1(0x20b)],_0x8aa76d),_0x319452={'prompt':await this[_0x327dc1(0x1e4)](_0xaec8b5,_0x29c9dc,_0x2db88e,_0x8aa76d),..._0x2a8b74};this[_0x327dc1(0x1f0)]?await this[_0x327dc1(0x203)](_0x319452,_0x2db88e,_0x43e30c,_0x4c4276,_0x8aa76d):await this[_0x327dc1(0x20f)](_0x319452,_0x2db88e,_0x43e30c,_0x4c4276);}async[_0x3493b6(0x1e4)](_0x29078a,_0x48b832,_0x2967f4,_0x4ab13b){const _0x3845f3=_0x3493b6;let _0x17a6b0,_0x5ad067;return _0x48b832?(_0x17a6b0=_0x3845f3(0x1d6),_0x5ad067=_0x3845f3(0x214)+_0x29078a+_0x3845f3(0x216)+_0x48b832):(_0x17a6b0=_0x3845f3(0x1fd),_0x5ad067=_0x29078a),_0x3845f3(0x205)==this[_0x3845f3(0x21d)](_0x2967f4)?_0x3845f3(0x218)+_0x17a6b0+_0x3845f3(0x1d5)+_0x5ad067+_0x3845f3(0x1d9):_0x3845f3(0x1d3)+_0x17a6b0+'\x0a'+_0x5ad067+_0x3845f3(0x1f3);}[_0x3493b6(0x21d)](_0x5b857a){const _0x10c6ec=_0x3493b6;if(/^anthropic\.claude/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x21b);if(/^ai21\.j2/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x1da);if(/^cohere\.command/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x204);if(/^meta\.llama/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x205);throw new _0x4fff4b(_0x4f0482(this[_0x10c6ec(0x1f4)][_0x10c6ec(0x209)],_0x10c6ec(0x1fa),_0x5b857a));}async[_0x3493b6(0x203)](_0x4c9a81,_0x1d66c1,_0x2d5f72,_0x1c8a62,_0xfce06d){const _0x2882f8=_0x3493b6,_0x352c76={'method':_0x2882f8(0x1ed),'headers':await this[_0x2882f8(0x1e2)](this[_0x2882f8(0x1d8)],_0xfce06d),'body':JSON[_0x2882f8(0x1ef)]({..._0x4c9a81,'model':_0x1d66c1,'stream':_0x2d5f72}),'signal':this[_0x2882f8(0x1eb)][_0x2882f8(0x1f2)]},_0x493c65=await fetch(this[_0x2882f8(0x1f0)],_0x352c76);_0x2d5f72?await this[_0x2882f8(0x208)](_0x493c65,_0x1d66c1,_0x1c8a62):await this[_0x2882f8(0x201)](_0x493c65,_0x1d66c1,_0x1c8a62);}async[_0x3493b6(0x20f)](_0x5f445c,_0x1df46a,_0x1f2cef,_0x4827f2){const _0x4ad433=_0x3493b6,_0x35ddb6=new _0x282689(this[_0x4ad433(0x1e8)]),_0x41ec66={'body':JSON[_0x4ad433(0x1ef)](_0x5f445c),'contentType':_0x4ad433(0x1ff),'accept':_0x4ad433(0x1ff),'modelId':_0x1df46a};let _0xbf49f5;if(_0x1f2cef){const _0x50bfa4=new _0xc9c07d(_0x41ec66);_0xbf49f5=await _0x35ddb6[_0x4ad433(0x213)](_0x50bfa4,{'abortSignal':this[_0x4ad433(0x1eb)][_0x4ad433(0x1f2)]}),await this[_0x4ad433(0x1e0)](_0xbf49f5,_0x1df46a,_0x4827f2);}else{const _0x28191a=new _0x413e95(_0x41ec66);_0xbf49f5=await _0x35ddb6[_0x4ad433(0x213)](_0x28191a,{'abortSignal':this[_0x4ad433(0x1eb)][_0x4ad433(0x1f2)]}),await this[_0x4ad433(0x201)](_0xbf49f5,_0x1df46a,_0x4827f2);}}async[_0x3493b6(0x1e0)](_0x3d9d9a,_0x5df457,_0xd65e13){const _0x4b1994=_0x3493b6,_0x126101=_0x3d9d9a[_0x4b1994(0x215)],_0x3a7e86=new TextDecoder(_0x4b1994(0x1e6));let _0x482245='';for await(const _0x39c1e5 of _0x126101)if(_0x39c1e5[_0x4b1994(0x1d7)]){const _0x27739e=_0x3a7e86[_0x4b1994(0x202)](_0x39c1e5[_0x4b1994(0x1d7)][_0x4b1994(0x1e7)]),_0x1bf47b=JSON[_0x4b1994(0x210)](_0x27739e);_0x482245+=this[_0x4b1994(0x1fb)](_0x1bf47b,_0x5df457),_0xd65e13(_0x482245);}return Promise[_0x4b1994(0x211)]();}async[_0x3493b6(0x208)](_0x2f6b41,_0x504112,_0x4ff9fc){const _0x10a96d=_0x3493b6,_0x4730a8=_0x2f6b41[_0x10a96d(0x215)],_0x982fe0=new TextDecoder(_0x10a96d(0x1e6)),_0x908631=_0x4730a8[_0x10a96d(0x1df)]();let _0x3b4ff3='',_0x3bde49='',_0x28e04b=!0x1;for(;!_0x28e04b;){const {done:_0x4293df,value:_0x274dd1}=await _0x908631[_0x10a96d(0x1f1)]();if(_0x28e04b=_0x4293df,_0x28e04b)break;const _0x477e43=(_0x3b4ff3+_0x982fe0[_0x10a96d(0x202)](_0x274dd1))[_0x10a96d(0x20a)]('\x0a')[_0x10a96d(0x207)](_0x57faf9=>{const _0x121938=_0x10a96d;try{return _0x3b4ff3='',JSON[_0x121938(0x210)](_0x57faf9);}catch{return _0x3b4ff3=_0x57faf9,null;}})[_0x10a96d(0x21e)](_0x33c005=>null!==_0x33c005);_0x477e43[_0x10a96d(0x1db)]&&(_0x3bde49+=_0x477e43[_0x10a96d(0x207)](_0x2d99ce=>this[_0x10a96d(0x1fb)](_0x2d99ce,_0x504112))[_0x10a96d(0x1e1)](''),_0x4ff9fc(_0x3bde49));}return Promise[_0x10a96d(0x211)]();}async[_0x3493b6(0x201)](_0x4ee3d3,_0x29d2f8,_0x3f82c7){const _0x4e019f=_0x3493b6;let _0x133670;return _0x133670=_0x4ee3d3 instanceof Response?await _0x4ee3d3[_0x4e019f(0x1d4)]():JSON[_0x4e019f(0x210)](new TextDecoder(_0x4e019f(0x1e6))[_0x4e019f(0x202)](_0x4ee3d3[_0x4e019f(0x215)])),(_0x3f82c7(this[_0x4e019f(0x1fb)](_0x133670,_0x29d2f8)),Promise[_0x4e019f(0x211)]());}[_0x3493b6(0x1fb)](_0x7d9ff2,_0x279fe3){const _0xbd35fd=_0x3493b6;switch(this[_0xbd35fd(0x21d)](_0x279fe3)){case _0xbd35fd(0x21b):return _0x7d9ff2[_0xbd35fd(0x219)];case _0xbd35fd(0x1da):return _0x7d9ff2[_0xbd35fd(0x20c)][0x0][_0xbd35fd(0x1e3)][_0xbd35fd(0x200)];case _0xbd35fd(0x204):return _0x7d9ff2[_0xbd35fd(0x1ec)][0x0][_0xbd35fd(0x200)];case _0xbd35fd(0x205):return _0x7d9ff2[_0xbd35fd(0x1de)];}}}function _0x5a50(){const _0x2c8a85=['POST','define','stringify','_apiUrl','read','signal','\x0a\x0aAssistant:','editor','_prepareRequestParameters','anthropic.claude-v2','bedrock-2023-05-31','1305940kBxiHd','pluginName','AI_ERROR_UNSUPPORTED_MODEL','_getGeneratedText','get','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.','14wgsgQo','application/json','text','_readStaticResponse','decode','_processProxyRequest','cohere.command','meta.llama','ai.assistant.adapter.aws.requestParameters','map','_readStreamableResponse','locale','split','_requestParameters','completions','23824NnnXpR','ai.assistant.adapter.aws.bedrockClientConfig','_processAWSRequest','parse','resolve','17253owDWyc','send','Instruction:\x0a','body','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','634602AYYSWl','<<SYS>>\x0a','completion','326835AKboEl','anthropic.claude','sendRequest','getModelFamily','filter','560mfKgZI','ai.assistant.adapter.aws.apiUrl','ai.assistant.adapter.aws.requestHeaders','config','Human:\x0a','json','\x0a<</SYS>>\x0a[INST]\x0a','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.','chunk','_requestHeaders','\x0a[/INST]','ai21.j2','length','5305984UBfEyE','test','generation','getReader','_readAsyncIterableResponse','join','_prepareRequestHeaders','data','preparePrompt','186175bZIrFG','utf-8','bytes','_bedrockClientConfig','AWSTextAdapter','147wiZVjf','abortController','generations'];_0x5a50=function(){return _0x2c8a85;};return _0x5a50();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2cdf75=_0x2f0f;(function(_0x508124,_0x228fde){const _0x318b49=_0x2f0f,_0x3478fd=_0x508124();while(!![]){try{const _0x2ed064=parseInt(_0x318b49(0x1f7))/0x1+-parseInt(_0x318b49(0x203))/0x2+parseInt(_0x318b49(0x202))/0x3+parseInt(_0x318b49(0x1f2))/0x4*(-parseInt(_0x318b49(0x1d3))/0x5)+parseInt(_0x318b49(0x1fe))/0x6+-parseInt(_0x318b49(0x1de))/0x7+parseInt(_0x318b49(0x205))/0x8;if(_0x2ed064===_0x228fde)break;else _0x3478fd['push'](_0x3478fd['shift']());}catch(_0x59a59a){_0x3478fd['push'](_0x3478fd['shift']());}}}(_0x2b1d,0x44d58));function _0x2f0f(_0x5d2f75,_0x478c53){const _0x2b1d91=_0x2b1d();return _0x2f0f=function(_0x2f0fa0,_0x39c97d){_0x2f0fa0=_0x2f0fa0-0x1c7;let _0x24ac59=_0x2b1d91[_0x2f0fa0];return _0x24ac59;},_0x2f0f(_0x5d2f75,_0x478c53);}import{AITextAdapter as _0x3c96c7}from'./aitextadapter.js';function _0x2b1d(){const _0x141cd7=['length','parse','stream','join','AI_ERROR_CONTEXT_LENGTH','get','prepareMessages','_prepareRequestHeaders','ai.assistant.adapter.openAI.requestHeaders','includes','325820MwEMhC','getReader','read','OpenAITextAdapter','Instruction:\x0a','531039jVsPYv','[DONE]','json','POST','_requestHeaders','system','choices','476478VfBgcM','body','replace','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','59565fabkkd','93278qjOeKo','resolve','1828872VVZUxw','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_MODERATION','decode','_readStreamableResponse','define','signal','text','gpt-4o','delta','_prepareRequestParameters','config','abortController','_apiUrl','message','https://api.openai.com/v1/chat/completions','pluginName','content','5ENQKps','ai.assistant.adapter.openAI.apiUrl','stringify','sendRequest','reject','data:\x20','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.','ai.assistant.adapter.openAI.requestParameters','Moderation','editor','_cleanUpData','3142146dkrGaq','_isBufferIncomplete','map','_readStaticResponse','locale','user','_requestParameters','filter','context_length_exceeded','split'];_0x2b1d=function(){return _0x141cd7;};return _0x2b1d();}import{AIRequestError as _0x14384e}from'./aiadapter.js';import{getTranslation as _0x3aca08}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x3c96c7{[_0x2cdf75(0x1ce)];[_0x2cdf75(0x1fb)];[_0x2cdf75(0x1e4)];static get[_0x2cdf75(0x1d1)](){const _0x11ec67=_0x2cdf75;return _0x11ec67(0x1f5);}constructor(_0x4a9f24){const _0x558759=_0x2cdf75;super(_0x4a9f24),_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x20a)](_0x558759(0x1d4),_0x558759(0x1d0)),_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1da))||_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x20a)](_0x558759(0x1da),{'model':_0x558759(0x1c9),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x558759(0x1ce)]=_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1d4)),this[_0x558759(0x1fb)]=_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1f0))||{},this[_0x558759(0x1e4)]=_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1da));}async[_0x2cdf75(0x1d6)]({query:_0x23189d,context:_0x59b4ce,onData:_0x34df58,actionId:_0x112335}){const _0x5a47be=_0x2cdf75,_0x56ae79=this[_0x5a47be(0x1dc)][_0x5a47be(0x1e2)],_0x55174b=await this[_0x5a47be(0x1ee)](_0x23189d,_0x59b4ce,_0x112335),_0x414f6a=await this[_0x5a47be(0x1ef)](this[_0x5a47be(0x1fb)],_0x112335),_0x30981c=await this[_0x5a47be(0x1cb)](this[_0x5a47be(0x1e4)],_0x112335),_0x704a67={'messages':_0x55174b,..._0x30981c},_0x11ff82={'method':_0x5a47be(0x1fa),'headers':_0x414f6a,'body':JSON[_0x5a47be(0x1d5)](_0x704a67),'signal':this[_0x5a47be(0x1cd)][_0x5a47be(0x1c7)]},_0x3eb9a0=await fetch(this[_0x5a47be(0x1ce)],_0x11ff82);if(_0x3eb9a0['ok'])return _0x30981c[_0x5a47be(0x1ea)]?await this[_0x5a47be(0x209)](_0x3eb9a0,_0x34df58):await this[_0x5a47be(0x1e1)](_0x3eb9a0,_0x34df58),Promise[_0x5a47be(0x204)]();{const _0x50df90=await _0x3eb9a0[_0x5a47be(0x1c8)]();return _0x50df90[_0x5a47be(0x1f1)](_0x5a47be(0x1e6))?Promise[_0x5a47be(0x1d7)](new _0x14384e(_0x3aca08(_0x56ae79,_0x5a47be(0x1ec)))):_0x50df90[_0x5a47be(0x1f1)](_0x5a47be(0x1db))?Promise[_0x5a47be(0x1d7)](new _0x14384e(_0x3aca08(_0x56ae79,_0x5a47be(0x207)))):Promise[_0x5a47be(0x1d7)](new Error(_0x50df90));}}async[_0x2cdf75(0x1ee)](_0x1cd1fd,_0xf9c5c2,_0x2113d0){const _0x1beb08=_0x2cdf75;let _0x4590a9,_0x34c4ef;return _0xf9c5c2?(_0x4590a9=_0x1beb08(0x1d9),_0x34c4ef=_0x1beb08(0x1f6)+_0x1cd1fd+_0x1beb08(0x201)+_0xf9c5c2):(_0x4590a9=_0x1beb08(0x206),_0x34c4ef=_0x1cd1fd),[{'role':_0x1beb08(0x1fc),'content':_0x4590a9},{'role':_0x1beb08(0x1e3),'content':_0x34c4ef}];}async[_0x2cdf75(0x209)](_0x5ac033,_0x48b902){const _0x5529db=_0x2cdf75,_0x20dd03=_0x5ac033[_0x5529db(0x1ff)][_0x5529db(0x1f3)](),_0x369285=new TextDecoder();let _0x20a70f='',_0x17773b='',_0x20a022='',_0x475ec3=!0x1;for(;!_0x475ec3;){const {done:_0x40131d,value:_0x2c0b57}=await _0x20dd03[_0x5529db(0x1f4)](),_0x2e0015=_0x20a70f+_0x369285[_0x5529db(0x208)](_0x2c0b57);let _0x29cfc0='';_0x475ec3=_0x40131d;try{_0x29cfc0=this[_0x5529db(0x1dd)](_0x2e0015),_0x20a70f='';}catch{_0x20a70f=_0x2e0015;continue;}_0x17773b+=_0x29cfc0,!_0x475ec3&&this[_0x5529db(0x1df)](_0x17773b)||_0x17773b&&(_0x20a022+=_0x17773b,_0x17773b='',_0x48b902(_0x20a022));}return Promise[_0x5529db(0x204)]();}async[_0x2cdf75(0x1e1)](_0x4d1fcd,_0x25da46){const _0x544a30=_0x2cdf75;return _0x25da46((await _0x4d1fcd[_0x544a30(0x1f9)]())[_0x544a30(0x1fd)][0x0][_0x544a30(0x1cf)][_0x544a30(0x1d2)]),Promise[_0x544a30(0x204)]();}[_0x2cdf75(0x1df)](_0x28831a){const _0x2f729e=_0x2cdf75,_0x4d6476=_0x28831a[_0x2f729e(0x1e7)]('<')[_0x2f729e(0x1e8)]!==_0x28831a[_0x2f729e(0x1e7)]('>')[_0x2f729e(0x1e8)],_0x289995=_0x28831a[_0x2f729e(0x1e8)]<0x1e;return _0x4d6476&&_0x289995;}[_0x2cdf75(0x1dd)](_0x3d9e7b){const _0x206ed3=_0x2cdf75;return _0x3d9e7b[_0x206ed3(0x1e7)](/\n(?![^{]*\})/g)[_0x206ed3(0x1e0)](_0x6b1776=>_0x6b1776[_0x206ed3(0x200)](_0x206ed3(0x1d8),''))[_0x206ed3(0x1e5)](_0x56f27e=>_0x56f27e&&_0x56f27e[_0x206ed3(0x1e8)]>0x0&&_0x206ed3(0x1f8)!==_0x56f27e)[_0x206ed3(0x1e0)](_0xb5c3b8=>{const _0xa6f78e=_0x206ed3,{choices:_0x3de902}=JSON[_0xa6f78e(0x1e9)](_0xb5c3b8);if(_0x3de902[0x0]?.[_0xa6f78e(0x1ca)]?.[_0xa6f78e(0x1d2)])return _0x3de902[0x0][_0xa6f78e(0x1ca)][_0xa6f78e(0x1d2)];})[_0x206ed3(0x1e5)](_0x10ce5c=>_0x10ce5c)[_0x206ed3(0x1eb)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42d645=_0xe781;(function(_0x14d440,_0x206807){const _0x3440e1=_0xe781,_0x438069=_0x14d440();while(!![]){try{const _0x52b1d8=parseInt(_0x3440e1(0x126))/0x1*(-parseInt(_0x3440e1(0x140))/0x2)+-parseInt(_0x3440e1(0x134))/0x3*(-parseInt(_0x3440e1(0x13d))/0x4)+-parseInt(_0x3440e1(0x172))/0x5*(-parseInt(_0x3440e1(0x132))/0x6)+-parseInt(_0x3440e1(0x143))/0x7+parseInt(_0x3440e1(0x130))/0x8*(-parseInt(_0x3440e1(0x139))/0x9)+-parseInt(_0x3440e1(0x14c))/0xa*(parseInt(_0x3440e1(0x11f))/0xb)+parseInt(_0x3440e1(0x11c))/0xc;if(_0x52b1d8===_0x206807)break;else _0x438069['push'](_0x438069['shift']());}catch(_0x506bd6){_0x438069['push'](_0x438069['shift']());}}}(_0x126f,0x42dcf));function _0xe781(_0x207426,_0x3a515){const _0x126f99=_0x126f();return _0xe781=function(_0xe7819a,_0x3a11ab){_0xe7819a=_0xe7819a-0x118;let _0x57a6d5=_0x126f99[_0xe7819a];return _0x57a6d5;},_0xe781(_0x207426,_0x3a515);}function _0x126f(){const _0xa795c0=['AIAssistant','Professional','translatePortuguese','Make\x20longer','Legal','Continue','makeLonger','Simplify\x20language','Generate\x20from\x20selection','Improve\x20writing','business','9535140kJvRSb','improveWriting','translateArabic','22mtDDgl','filter','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Poetic','translateHindi','Edit\x20or\x20review','find','35nJMGVt','casual','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translateEnglish','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','config','1336ToJGeq','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','1764xfpIQH','direct','45SieEiY','Arabic','English','ai.assistant.commands','Business','28575abDivO','Translate\x20the\x20content\x20to\x20German\x20language.','friendly','generate','57012rVtSFk','isPremiumPlugin','professional','9718FfPaMS','Confident','poetic','2900639PMfVme','requires','set','ai.assistant.preserveComments','Translate\x20the\x20content\x20to\x20English\x20language.','Direct','legal','pluginName','changeTone','205770ztVSGu','editOrReview','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','define','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Change\x20style','Casual','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','makeShorter','Translate','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','simplifyLanguage','German','Make\x20shorter','get','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.assistant.removeCommands','locale','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','groupId','push','Translate\x20the\x20content\x20to\x20Hindi\x20language.','changeStyle','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateSpanish','forEach','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Hindi','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','journalism','Simplified\x20Chinese','Summarize','summarize','continue','confident','Spanish','Change\x20tone','7165YNpPRt','translateChinese','Portuguese','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateGerman','translateFrench','includes','concat','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translate','Journalism','French','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','commands','isOfficialPlugin'];_0x126f=function(){return _0xa795c0;};return _0x126f();}import{Plugin as _0x47ae44}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5f023b}from'./aiassistantui.js';import{AIAssistantEditing as _0x43247d}from'./aiassistantediting.js';import{getTranslation as _0x1ab4fa}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x56c07e}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x47ae44{static get[_0x42d645(0x144)](){return[_0x5f023b,_0x43247d];}static get[_0x42d645(0x14a)](){const _0x38d245=_0x42d645;return _0x38d245(0x182);}static get[_0x42d645(0x181)](){return!0x0;}static get[_0x42d645(0x13e)](){return!0x0;}constructor(_0x51103d){const _0x202479=_0x42d645;super(_0x51103d);const _0x214a0a=_0x51103d[_0x202479(0x12f)],_0x225dcb=_0x51103d[_0x202479(0x15d)];_0x214a0a[_0x202479(0x14f)](_0x202479(0x146),!0x0),_0x214a0a[_0x202479(0x14f)](_0x202479(0x137),getDefaultAICommands(_0x225dcb)),_0x214a0a[_0x202479(0x14f)](_0x202479(0x12d),[]),_0x214a0a[_0x202479(0x14f)](_0x202479(0x15c),[]);let _0xd61582=_0x56c07e(_0x214a0a[_0x202479(0x15a)](_0x202479(0x137)),_0x225dcb);const _0x487152=_0x214a0a[_0x202479(0x15a)](_0x202479(0x12d)),_0x59a8e3=_0x214a0a[_0x202479(0x15a)](_0x202479(0x15c));_0x487152[_0x202479(0x165)](_0x39b9cd=>{const _0x1dfc5d=_0x202479,_0x36c765=_0xd61582[_0x1dfc5d(0x125)](_0xee3a4c=>_0xee3a4c[_0x1dfc5d(0x15f)]===_0x39b9cd[_0x1dfc5d(0x15f)]);_0x36c765?_0x36c765[_0x1dfc5d(0x180)]=_0x36c765[_0x1dfc5d(0x180)][_0x1dfc5d(0x17a)](_0x39b9cd[_0x1dfc5d(0x180)]):_0xd61582[_0x1dfc5d(0x160)](_0x39b9cd);}),_0xd61582=_0xd61582[_0x202479(0x120)](_0x179a4f=>!_0x59a8e3[_0x202479(0x179)](_0x179a4f[_0x202479(0x15f)])),_0xd61582[_0x202479(0x165)](_0xe15fe2=>{const _0x21bcde=_0x202479;_0xe15fe2[_0x21bcde(0x180)]=_0xe15fe2[_0x21bcde(0x180)][_0x21bcde(0x120)](_0x2eeb3b=>!_0x59a8e3[_0x21bcde(0x179)](_0x2eeb3b['id']));}),_0x214a0a[_0x202479(0x145)](_0x202479(0x137),_0xd61582);}}export function getDefaultAICommands(_0x28efe2){const _0x257cb5=_0x42d645;return[{'groupId':_0x257cb5(0x14d),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x124)),'commands':[{'id':_0x257cb5(0x11d),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x11a)),'prompt':_0x257cb5(0x17f)},{'id':_0x257cb5(0x154),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x159)),'prompt':_0x257cb5(0x12a)},{'id':_0x257cb5(0x188),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x185)),'prompt':_0x257cb5(0x14e)},{'id':_0x257cb5(0x157),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x118)),'prompt':_0x257cb5(0x12e)}]},{'groupId':_0x257cb5(0x13c),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x119)),'commands':[{'id':_0x257cb5(0x16d),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x16c)),'prompt':_0x257cb5(0x166)},{'id':_0x257cb5(0x16e),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x187)),'prompt':_0x257cb5(0x17b)}]},{'groupId':_0x257cb5(0x14b),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x171)),'commands':[{'id':_0x257cb5(0x13f),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x183)),'prompt':_0x257cb5(0x176)},{'id':_0x257cb5(0x127),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x152)),'prompt':_0x257cb5(0x167)},{'id':_0x257cb5(0x133),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x148)),'prompt':_0x257cb5(0x153)},{'id':_0x257cb5(0x16f),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x141)),'prompt':_0x257cb5(0x156)},{'id':_0x257cb5(0x13b),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x129)),'prompt':_0x257cb5(0x163)}]},{'groupId':_0x257cb5(0x162),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x151)),'commands':[{'id':_0x257cb5(0x11b),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x138)),'prompt':_0x257cb5(0x150)},{'id':_0x257cb5(0x149),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x186)),'prompt':_0x257cb5(0x121)},{'id':_0x257cb5(0x16a),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x17d)),'prompt':_0x257cb5(0x131)},{'id':_0x257cb5(0x142),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x122)),'prompt':_0x257cb5(0x169)}]},{'groupId':_0x257cb5(0x17c),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x155)),'commands':[{'id':_0x257cb5(0x12b),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x136)),'prompt':_0x257cb5(0x147)},{'id':_0x257cb5(0x164),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x170)),'prompt':_0x257cb5(0x128)},{'id':_0x257cb5(0x184),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x174)),'prompt':_0x257cb5(0x15e)},{'id':_0x257cb5(0x177),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x158)),'prompt':_0x257cb5(0x13a)},{'id':_0x257cb5(0x178),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x17e)),'prompt':_0x257cb5(0x175)},{'id':_0x257cb5(0x173),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x16b)),'prompt':_0x257cb5(0x12c)},{'id':_0x257cb5(0x123),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x168)),'prompt':_0x257cb5(0x161)},{'id':_0x257cb5(0x11e),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x135)),'prompt':_0x257cb5(0x15b)}]}];}
|