@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0-alpha.2
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.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/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.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.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/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x410544=_0x6d10;(function(_0x37f2d4,_0x25d5ff){const _0x59ec0b=_0x6d10,_0x128f80=_0x37f2d4();while(!![]){try{const _0x40721c=-parseInt(_0x59ec0b(0x23d))/0x1*(-parseInt(_0x59ec0b(0x1c5))/0x2)+-parseInt(_0x59ec0b(0x1dc))/0x3*(-parseInt(_0x59ec0b(0x258))/0x4)+-parseInt(_0x59ec0b(0x24e))/0x5*(parseInt(_0x59ec0b(0x1e1))/0x6)+-parseInt(_0x59ec0b(0x1bc))/0x7+parseInt(_0x59ec0b(0x1c7))/0x8+parseInt(_0x59ec0b(0x249))/0x9+-parseInt(_0x59ec0b(0x1c2))/0xa;if(_0x40721c===_0x25d5ff)break;else _0x128f80['push'](_0x128f80['shift']());}catch(_0xca6a7e){_0x128f80['push'](_0x128f80['shift']());}}}(_0x2f80,0xe0b60));import{Plugin as _0x51632c}from'ckeditor5/src/core.js';import{AIConnector as _0x5d3ec2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x343e78}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x4fd0bc,ButtonView as _0x27534c,ViewCollection as _0x5b82a8,View as _0x5b2a42}from'ckeditor5/src/ui.js';import{AIEditing as _0x25f74e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4f0ffc}from'./model/aiactionsinteraction.js';import{first as _0x520196}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1959ee,IconRefresh as _0x5cd54c,IconNextArrow as _0x357da0,IconPreviousArrow as _0x5e5e45,IconShowChangesOff as _0x4283d4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x461234}from'../aiballoon/aiballoon.js';function _0x2f80(){const _0x1bd81d=['isPremiumPlugin','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20during\x20navigation:','insert','ck-ai-custom-action-button','abort','AIActions','13065534fACLeu','rejected','_appendChild','startsWith','getSelectionAsFragment','7842025mVNnbD','clearLoading','document','Error\x20updating\x20content\x20in\x20replyCreated:','documentFragment','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_getExecuteDataInTable','length','toData','hideLoader','3236TqfFwi','_setLoadingState','setLoading','sourcePosition','setChangeGroupState','addOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getSelectedContent','nextSibling','indexOf','_customViews','random','getOperations','get','isLoading','replyCreated','replyContentUpdated','element','history','bind','bodyView','reinsert','AIBalloon','execute','queueEmptyPromise','_execute','AI_ACTIONS_TRY_AGAIN','_currentInteractionIndex','processor','clone','_navigateToNext','_setErrorState','static','_navigationCounter','accepted','mainView','change','_clearSuggestionContent','isCollapsed','actionName','nodeAfter','_aiConnector','setErrorState','start','getDocumentContext','isEnabled','AI_ACTIONS_NEXT_INTERACTION','_clearLoadingState','set','createPositionAt','selection','first','position','applyOperation','pending','_navigateToPrevious','includes','parent','modelToViewWithIds','applySuggestion','AI_ACTIONS_PREVIOUS_INTERACTION','Attribute','batch','showChangesButton','_refreshInteraction','stickiness','createPositionBefore','2360253SVceaJ','hasError','areChangesVisible','add','operationsA','isOfficialPlugin','32933070TcRplM','has','_navigationPreviousButton','862ZSUxGR','filter','11812648zZTazR','move','setSelection','setTemplate','upsertAIActionRating','Error\x20refreshing\x20interaction:','getCommonAncestor','replyChangeGroupStateUpdated','catch','interactionFinished','merge','signal','_anchorOperation','root','path','miniToolbarView','_isNavigationPreviousButtonInView','_interactionParams','dialogClosed','_children','span','5301gCoOBd','showError','_stopInteraction','_wrapWithCommonAncestors','getChild','6CtBXvJ','_applyChanges','getChildAtOffset','stopListening','editor','model','type','pluginName','rootName','actionCallId','TableSelection','TrackChangesEditing','_createInteraction','_executeAction','1/1','message','data','rename','ck-ai-interaction-counter','streaming','_interaction','hasPendingParts','map','changeGroups','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','removeNavigationItem','_clone','error','_promiseQueue','toolbar','updateContent','_navigationNextButton','isBusy','slice','open','listenTo','split','ai-request-aborted','_clearInteractionHistory','_isNavigationNextButtonInView','ck-ai-navigation-button\x20ck-ai-next-button','getRanges','balloonView','getSelectedBlocks','_interactions','enqueue','_isNavigationCounterInView','insertSuggestion','AIConnector','getLimitElement','getRoot','_displayInteractionAtIndex','aiBalloon','_balloonShowDiff','_setupCustomViews','end','schema','hideError','_applyOperationsAsSuggestions','isDocumentOperation','remove','createRange','locale','_filterOperationsOutsideRange','push','getAncestors','replies','focus','ck-ai-navigation-button\x20ck-ai-previous-button','createPositionAfter','AI_ACTIONS_GENERIC_ERROR','showLoader','range','_isAbortError','textContent','_getExecuteDataRegular','close','state','baseVersion','howMany','documentContextContent','_updateNavigationUI','version','requires','stopInteraction','addNavigationItem','stop','_clearErrorState','getFirstRange','clearErrorState','plugins','4087yKRzxE','icon','executeAction','$graveyard','getSelectedTableCells'];_0x2f80=function(){return _0x1bd81d;};return _0x2f80();}import{PromiseQueue as _0x3710f6}from'../aichat/utils/promisequeue.js';function _0x6d10(_0x3b9e95,_0x4490bb){const _0x2f8043=_0x2f80();return _0x6d10=function(_0x6d10dd,_0x5e7c4b){_0x6d10dd=_0x6d10dd-0x1af;let _0x49fb74=_0x2f8043[_0x6d10dd];return _0x49fb74;},_0x6d10(_0x3b9e95,_0x4490bb);}import{getTranslation as _0x1933ba}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x37135b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x195bd6}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0xf3c669}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x413ac3,ModelRange as _0x50f276,ModelPosition as _0x51cfb4,_DetachOperation as _0x18765a,transformOperationSets as _0x157373}from'ckeditor5/src/engine.js';export class AIActions extends _0x51632c{static get[_0x410544(0x235)](){return[_0x5d3ec2,_0x4fd0bc,_0x25f74e,_0x461234,_0x195bd6];}static get[_0x410544(0x1e8)](){const _0xd93c88=_0x410544;return _0xd93c88(0x248);}static get[_0x410544(0x1c1)](){return!0x0;}static get[_0x410544(0x242)](){return!0x0;}[_0x410544(0x281)];[_0x410544(0x20e)]=[];[_0x410544(0x273)]=0x0;[_0x410544(0x1d8)];[_0x410544(0x217)]=!0x1;[_0x410544(0x262)]=new _0x5b82a8();[_0x410544(0x1c4)];[_0x410544(0x279)];[_0x410544(0x210)]=!0x1;[_0x410544(0x201)];[_0x410544(0x1d7)]=!0x1;[_0x410544(0x209)]=!0x1;[_0x410544(0x1fe)];get[_0x410544(0x1f5)](){const _0x9186b=_0x410544;return this[_0x9186b(0x20e)][this[_0x9186b(0x20e)][_0x9186b(0x255)]-0x1];}constructor(_0x58291f){const _0x402a4f=_0x410544;super(_0x58291f),this[_0x402a4f(0x281)]=this[_0x402a4f(0x1e5)][_0x402a4f(0x23c)][_0x402a4f(0x265)](_0x402a4f(0x212)),this[_0x402a4f(0x288)](_0x402a4f(0x202),!0x1),this[_0x402a4f(0x1fe)]=new _0x3710f6(),this[_0x402a4f(0x218)]();}[_0x410544(0x236)](){const _0x359ab1=_0x410544;this[_0x359ab1(0x1de)]();}async[_0x410544(0x23f)](_0x12fa92,_0xe65920,_0x59b323){const _0x43ce35=_0x410544;if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x1c3)](_0x43ce35(0x1eb))){if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x265)](_0x43ce35(0x1eb))[_0x43ce35(0x241)]()){const {modelFragment:_0x1e2797,anchorData:_0x2e5471}=this[_0x43ce35(0x254)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x1e2797,_0x2e5471,_0xe65920,_0x59b323);}}const {modelFragment:_0x34e5bd,anchorData:_0x4f84b5}=this[_0x43ce35(0x22d)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x34e5bd,_0x4f84b5,_0xe65920,_0x59b323);}[_0x410544(0x22d)](){const _0x3d569c=_0x410544,_0x34e567=this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x250)][_0x3d569c(0x28a)];if(_0x34e567[_0x3d569c(0x27e)]){const _0x62560a=_0x520196(_0x34e567[_0x3d569c(0x20d)]())||this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x21a)][_0x3d569c(0x213)](_0x34e567);this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x27c)](_0x213303=>{const _0xc8ad5d=_0x3d569c;_0x213303[_0xc8ad5d(0x1c9)](_0x62560a,'in');});}const _0xcc499d=_0x34e567[_0x3d569c(0x23a)](),_0x2989a6=this[_0x3d569c(0x1df)](this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x25f)](_0x34e567),_0xcc499d[_0x3d569c(0x283)],_0xcc499d[_0x3d569c(0x219)]),_0x284462=_0x34e567[_0x3d569c(0x23a)]()[_0x3d569c(0x283)],_0x2061aa=new Map();let _0x2a175a=_0x2989a6;for(let _0x549b31=0x0;_0x549b31<_0x284462[_0x3d569c(0x1d5)][_0x3d569c(0x255)];_0x549b31++)_0x2061aa[_0x3d569c(0x288)](_0x2a175a,_0x284462[_0x3d569c(0x1d5)][_0x549b31]),_0x2a175a=_0x2a175a[_0x3d569c(0x1e0)](0x0);return{'modelFragment':_0x2989a6,'anchorData':_0x2061aa};}[_0x410544(0x254)](){const _0x1ca93e=_0x410544,_0x2201ed=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x250)][_0x1ca93e(0x28a)],_0x2af650=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x23c)][_0x1ca93e(0x265)](_0x1ca93e(0x1eb))[_0x1ca93e(0x24d)](),_0x2bfcaf=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)][_0x1ca93e(0x1b2)][_0x1ca93e(0x1b2)],_0x6a0ca4=this[_0x1ca93e(0x1df)](_0x2af650,this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x1bb)](_0x2bfcaf),this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x227)](_0x2bfcaf)),_0x478247=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)],_0x308a7d=new Map();let _0xba8748=_0x6a0ca4;for(let _0x42c246=0x0;_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)];_0x42c246++)if(_0x308a7d[_0x1ca93e(0x288)](_0xba8748,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)]-0x1)_0xba8748=_0xba8748[_0x1ca93e(0x1e0)](0x0);else{let _0x36896e=_0xba8748[_0x1ca93e(0x260)];for(;_0x36896e;)_0x308a7d[_0x1ca93e(0x288)](_0x36896e,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x36896e=_0x36896e[_0x1ca93e(0x260)];}return{'modelFragment':_0x6a0ca4,'anchorData':_0x308a7d};}[_0x410544(0x1ee)](_0x4ca9c1,_0x139cbe,_0x3a0226,_0x48ab60,_0x5dcb3f){const _0x23dfea=_0x410544,_0x38fd28=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x25f74e),_0x18773b=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x461234),_0x1747f6=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x28a)],_0x186dec=_0x38fd28[_0x23dfea(0x1b3)](_0x139cbe),_0x2cf112=this[_0x23dfea(0x1e5)][_0x23dfea(0x1f1)][_0x23dfea(0x274)][_0x23dfea(0x256)](_0x186dec),_0x4ecb4c=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x234)],_0x1c4f98=[..._0x1747f6[_0x23dfea(0x20b)]()],_0x187ac8=new _0x343e78(this[_0x23dfea(0x1e5)][_0x23dfea(0x220)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x23dfea(0x23e),'customView':this[_0x23dfea(0x262)]},'showUnchangedParts':!0x0});return _0x18773b[_0x23dfea(0x204)]({'index':0x3e8*Math[_0x23dfea(0x263)]()%0x3e8,'title':_0x48ab60,'icon':_0x5dcb3f||_0x1959ee,'mainView':_0x187ac8,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1c4f98}),this[_0x23dfea(0x259)](_0x187ac8,_0x18773b),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1b4),()=>{const _0x1a54f4=_0x23dfea;this[_0x1a54f4(0x1e2)](_0x139cbe,_0x3a0226,!0x1);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x211),()=>{const _0x3164a4=_0x23dfea;this[_0x3164a4(0x1e2)](_0x139cbe,_0x3a0226,!0x0);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1d9),()=>{const _0xb2a046=_0x23dfea;if(this[_0xb2a046(0x1f5)]&&this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]>0x0){const _0x54d18e=this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]-0x1],_0xb04b48=_0x54d18e[_0xb2a046(0x1f8)][0x0];_0xb04b48&&_0xb2a046(0x1af)===_0xb04b48[_0xb2a046(0x22f)]&&_0x54d18e[_0xb2a046(0x25c)](0x0,_0xb2a046(0x24a));}this[_0xb2a046(0x1de)](),this[_0xb2a046(0x208)](),this[_0xb2a046(0x1e4)](_0x18773b);}),this[_0x23dfea(0x1ed)](_0x2cf112,_0x4ecb4c,_0x187ac8,_0x18773b,_0x4ca9c1);}[_0x410544(0x1df)](_0x47da69,_0x2b5673,_0x357fc6){const _0x4d14bd=_0x410544,_0x2e06d0=this[_0x4d14bd(0x1e5)][_0x4d14bd(0x1e6)][_0x4d14bd(0x21f)](_0x2b5673,_0x357fc6)[_0x4d14bd(0x1cd)](),_0x267347=_0x2e06d0['is'](_0x4d14bd(0x252))?[]:_0x2e06d0[_0x4d14bd(0x223)]({'includeSelf':!0x0})[_0x4d14bd(0x203)](0x1);if(_0x267347[_0x4d14bd(0x255)]){const _0x34bf1b=_0x267347[_0x4d14bd(0x1f7)](_0x1e0040=>_0x1e0040[_0x4d14bd(0x1fc)](!0x1));for(let _0x27efe4=0x1;_0x27efe4<_0x34bf1b[_0x4d14bd(0x255)];_0x27efe4++)_0x34bf1b[_0x27efe4-0x1][_0x4d14bd(0x24b)](_0x34bf1b[_0x27efe4]);return _0x34bf1b[_0x34bf1b[_0x4d14bd(0x255)]-0x1][_0x4d14bd(0x24b)](_0x47da69),new _0x413ac3(_0x34bf1b[0x0]);}return _0x47da69;}async[_0x410544(0x1ed)](_0x4cc174,_0x3eae39,_0x588589,_0x38d19a,_0x3cf167){const _0xb20bdc=_0x410544,_0xad0c25=this[_0xb20bdc(0x1e5)];this[_0xb20bdc(0x1d8)]={'action':_0x3cf167,'content':_0x4cc174,'version':_0x3eae39,'mainView':_0x588589,'aiBalloon':_0x38d19a};const _0x152674=new _0x4f0ffc({'connector':this[_0xb20bdc(0x281)],'editor':_0xad0c25,'content':_0x4cc174,'version':_0x3eae39,..._0x3cf167});this[_0xb20bdc(0x20e)][_0xb20bdc(0x222)](_0x152674),_0x588589[_0xb20bdc(0x21b)]();const _0x1a2fe0=(_0x53c181,_0x197aa0,_0x3dad7d=!0x1,_0x19ea05=_0xb20bdc(0x1f4))=>this[_0xb20bdc(0x1fe)][_0xb20bdc(0x20f)](async _0x304942=>{const _0x15d4fd=_0xb20bdc;try{const _0x372ac9=_0x37135b({'editor':_0xad0c25,'changeGroups':_0x53c181[_0x15d4fd(0x1f8)],'documentContextContent':_0x53c181[_0x15d4fd(0x232)],'showDiff':_0x3dad7d,'trimUnchanged':!0x1});await _0x197aa0[_0x15d4fd(0x200)]({'parts':_0x372ac9,'renderingStrategy':_0x19ea05,'abortSignal':_0x304942});}catch(_0x410c49){if(this[_0x15d4fd(0x22b)](_0x410c49))return;throw _0x410c49;}});this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x267),(_0x2c5e14,_0x46d5ce)=>{const _0x23c2fe=_0xb20bdc;_0x588589[_0x23c2fe(0x257)](),_0x1a2fe0(_0x46d5ce,_0x588589)[_0x23c2fe(0x1cf)](_0x346b1f=>{const _0x4efea1=_0x23c2fe;this[_0x4efea1(0x22b)](_0x346b1f)||(console[_0x4efea1(0x1fd)](_0x4efea1(0x251),_0x346b1f),this[_0x4efea1(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x268),(_0x311bdd,_0x23ba09)=>{const _0xefc9f=_0xb20bdc;_0x1a2fe0(_0x23ba09,_0x588589)[_0xefc9f(0x1cf)](_0x528575=>{const _0x2a7b7c=_0xefc9f;this[_0x2a7b7c(0x22b)](_0x528575)||(console[_0x2a7b7c(0x1fd)](_0x2a7b7c(0x1fa),_0x528575),this[_0x2a7b7c(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1d0),async()=>{const _0x41e6e3=_0xb20bdc;try{await this[_0x41e6e3(0x287)](_0x588589,_0x38d19a),this[_0x41e6e3(0x233)]();}catch(_0x466849){this[_0x41e6e3(0x22b)](_0x466849)||(console[_0x41e6e3(0x1fd)](_0x41e6e3(0x253),_0x466849),this[_0x41e6e3(0x277)](_0x152674,_0x588589));}}),this[_0xb20bdc(0x205)](_0x588589,_0xb20bdc(0x243),(_0x4182a1,{showDiff:_0x488ca8})=>{const _0x3776ff=_0xb20bdc;this[_0x3776ff(0x217)]=_0x488ca8;const _0x5e6de4=this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][_0x3776ff(0x255)]-0x1];_0x5e6de4&&_0x1a2fe0(_0x5e6de4,_0x588589,_0x488ca8,_0x3776ff(0x278))[_0x3776ff(0x1cf)](_0x35ba7b=>{const _0x2e9586=_0x3776ff;this[_0x2e9586(0x22b)](_0x35ba7b)||(console[_0x2e9586(0x1fd)](_0x2e9586(0x25e),_0x35ba7b),this[_0x2e9586(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1ce),(_0x48b825,{reply:_0x5dc3d6})=>{const _0x58479d=_0xb20bdc,_0x24b709={'positiveCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x1c6)](_0x582ba0=>_0x58479d(0x27a)===_0x582ba0[_0x58479d(0x22f)])[_0x58479d(0x255)],'totalCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x255)]},_0x3a3f1a=this[_0x58479d(0x1f5)][_0x58479d(0x1ea)],_0x52ec98=this[_0x58479d(0x1f5)][_0x58479d(0x27f)];_0x52ec98?this[_0x58479d(0x281)][_0x58479d(0x1cb)](_0x52ec98,_0x3a3f1a,_0x24b709):this[_0x58479d(0x281)][_0x58479d(0x1f9)](_0x3a3f1a,_0x24b709);}),this[_0xb20bdc(0x259)](_0x588589,_0x38d19a);try{const _0x7d65a1=await this[_0xb20bdc(0x1f5)][_0xb20bdc(0x283)]();return this[_0xb20bdc(0x233)](),_0x7d65a1;}catch(_0x921ef1){if(this[_0xb20bdc(0x22b)](_0x921ef1))return;_0x588589[_0xb20bdc(0x257)](),this[_0xb20bdc(0x277)](_0x152674,_0x588589);}}[_0x410544(0x1e2)](_0x25b7a2,_0x59f186,_0x4b053c){const _0x4f3840=_0x410544,_0x38ffd8=this[_0x4f3840(0x1e5)],_0x3fcbf1=this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x195bd6),_0x3b6ce9=this[_0x4f3840(0x1f5)],_0x58b92f=this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][_0x4f3840(0x255)]-0x1],_0x4f9072=_0x58b92f[_0x4f3840(0x1f8)];_0x58b92f[_0x4f3840(0x25c)](0x0,_0x4f3840(0x27a));let _0x4fed40=_0xf3c669({'editor':_0x38ffd8,'reply':_0x58b92f,'interaction':_0x3b6ce9,'groups':_0x4f9072,'transform':!0x1,'documentCompare':_0x3fcbf1,'documentCompareOptions':{'anchor':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x289)](_0x25b7a2,0x0),'markDeletions':_0x4b053c}});_0x4fed40=this[_0x4f3840(0x221)](_0x4fed40,_0x59f186);for(const _0x1f5915 of _0x4fed40)this[_0x4f3840(0x1d3)](_0x59f186,_0x1f5915,_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x214)]());const _0x3e0975=_0x3b6ce9[_0x4f3840(0x284)]()[_0x4f3840(0x234)],_0x3d9d4c=_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x26a)][_0x4f3840(0x264)](_0x3e0975),_0x156384={'document':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2daeec=_0x157373(_0x4fed40,_0x3d9d4c,_0x156384)[_0x4f3840(0x1c0)];_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x27c)](_0x5212bf=>{const _0x316d82=_0x4f3840;if(_0x5212bf[_0x316d82(0x1c9)](_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x28a)][_0x316d82(0x225)]),_0x4b053c)_0x38ffd8[_0x316d82(0x23c)][_0x316d82(0x265)](_0x316d82(0x1ec))[_0x316d82(0x21c)](_0x2daeec);else{for(const _0x383a36 of _0x2daeec)_0x383a36[_0x316d82(0x230)]=_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x234)],_0x5212bf[_0x316d82(0x1b7)][_0x316d82(0x25d)](_0x383a36),_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x28d)](_0x383a36);}}),this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x4f3840(0x26e))[_0x4f3840(0x22e)]();}[_0x410544(0x221)](_0x4c0d85,_0x4a9a8b){const _0x514a2f=_0x410544;return _0x4c0d85[_0x514a2f(0x1c6)](_0x569456=>{const _0x3af971=_0x514a2f;if(_0x3af971(0x1f2)==_0x569456[_0x3af971(0x1e7)]){const _0x55c8a9=_0x569456[_0x3af971(0x28c)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x55c8a9);}if(_0x569456[_0x3af971(0x1e7)][_0x3af971(0x261)](_0x3af971(0x1b6))>-0x1){const _0x1a8eac=_0x569456[_0x3af971(0x22a)][_0x3af971(0x283)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x1a8eac);}return!0x0;});}[_0x410544(0x1d3)](_0x2e70d9,_0x48a445,_0x277b38){const _0x429831=_0x410544,_0x4afcbf=_0x48a445[_0x429831(0x275)]();for(const _0x3507bf in _0x48a445){const _0xde5f58=_0x48a445[_0x3507bf];_0xde5f58 instanceof _0x50f276?_0x48a445[_0x3507bf]=new _0x50f276(_0x5a2766(_0xde5f58[_0x429831(0x283)]),_0x5a2766(_0xde5f58[_0x429831(0x219)])):_0xde5f58 instanceof _0x51cfb4&&(_0x48a445[_0x3507bf]=_0x5a2766(_0xde5f58));}if([_0x429831(0x245),_0x429831(0x1c8),_0x429831(0x21e),_0x429831(0x26d),_0x429831(0x206),_0x429831(0x1d1)][_0x429831(0x1b1)](_0x4afcbf[_0x429831(0x1e7)])){if(_0x4afcbf[_0x429831(0x21d)]=!0x1,_0x4afcbf[_0x429831(0x230)]=null,_0x429831(0x21e)==_0x4afcbf[_0x429831(0x1e7)]){const _0x1b6224=_0x4afcbf[_0x429831(0x25b)],_0x4fbe15=_0x4afcbf[_0x429831(0x231)];new _0x18765a(_0x1b6224,_0x4fbe15)[_0x429831(0x271)]();}else _0x4afcbf[_0x429831(0x271)]();}function _0x5a2766(_0x1a8782){const _0x2ede8a=_0x429831;if(_0x2ede8a(0x240)==_0x1a8782[_0x2ede8a(0x1d4)][_0x2ede8a(0x1e9)])return _0x1a8782;const _0x1ba70e=[];let _0x24d46a=_0x1a8782[_0x2ede8a(0x1d4)];for(let _0x46aa20=0x0;_0x46aa20<_0x1a8782[_0x2ede8a(0x1d5)][_0x2ede8a(0x255)];_0x46aa20++){const _0xc38a55=_0x2e70d9[_0x2ede8a(0x265)](_0x24d46a)||0x0;_0x1ba70e[_0x46aa20]=_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]+_0xc38a55,_0x24d46a=_0x24d46a[_0x2ede8a(0x1e3)](_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]);}return new _0x51cfb4(_0x277b38,_0x1ba70e,_0x1a8782[_0x2ede8a(0x1ba)]);}}[_0x410544(0x1b9)](){const _0x4c3f1a=_0x410544;if(!this[_0x4c3f1a(0x1d8)])return;this[_0x4c3f1a(0x20e)][_0x4c3f1a(0x255)]>0x0&&this[_0x4c3f1a(0x1de)](),this[_0x4c3f1a(0x273)]=0x0,this[_0x4c3f1a(0x217)]=!0x1;const {action:_0x4f4c36,content:_0xb20a06,version:_0x86ab85,mainView:_0x75ee74,aiBalloon:_0x98803d}=this[_0x4c3f1a(0x1d8)];_0x75ee74[_0x4c3f1a(0x1be)]=!0x1,_0x75ee74[_0x4c3f1a(0x21b)](),this[_0x4c3f1a(0x239)](_0x75ee74,_0x98803d);const _0x3a504e=_0x75ee74;_0x3a504e[_0x4c3f1a(0x1d6)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)][_0x4c3f1a(0x288)]({'isOn':!0x1,'icon':_0x4283d4}),this[_0x4c3f1a(0x27d)](_0x75ee74),_0x75ee74[_0x4c3f1a(0x229)](),this[_0x4c3f1a(0x233)](),this[_0x4c3f1a(0x1ed)](_0xb20a06,_0x86ab85,_0x75ee74,_0x98803d,_0x4f4c36)[_0x4c3f1a(0x1cf)](_0x1820ec=>{const _0x4dacf8=_0x4c3f1a;this[_0x4dacf8(0x22b)](_0x1820ec)||console[_0x4dacf8(0x1fd)](_0x4dacf8(0x1cc),_0x1820ec);});}[_0x410544(0x27d)](_0x55f43f){const _0x424410=_0x410544,_0x4e7d15=_0x55f43f[_0x424410(0x26c)][_0x424410(0x1da)];for(;_0x4e7d15[_0x424410(0x255)]>0x0;)_0x4e7d15[_0x424410(0x21e)](_0x4e7d15[_0x424410(0x28b)]);_0x55f43f[_0x424410(0x26c)][_0x424410(0x1f6)]=!0x1;}[_0x410544(0x22b)](_0x36434f){const _0x22bacd=_0x410544;return!!_0x36434f[_0x22bacd(0x1f0)]&&_0x36434f[_0x22bacd(0x1f0)][_0x22bacd(0x24c)](_0x22bacd(0x207));}[_0x410544(0x208)](){const _0x46eeb2=_0x410544;this[_0x46eeb2(0x20e)]=[],this[_0x46eeb2(0x1d8)]=void 0x0,this[_0x46eeb2(0x273)]=0x0,this[_0x46eeb2(0x233)]();}[_0x410544(0x1de)](){const _0x41909a=_0x410544;this[_0x41909a(0x1f5)]&&this[_0x41909a(0x1f5)][_0x41909a(0x238)](),this[_0x41909a(0x1fe)][_0x41909a(0x247)](),this[_0x41909a(0x202)]=!0x1;}[_0x410544(0x218)](){const _0x16dcc2=_0x410544,_0x27a20=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x204668=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x4b5fe4=new _0x5b2a42(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x5a3cb2=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]);_0x27a20[_0x16dcc2(0x288)]({'icon':_0x5cd54c,'label':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x272)),'tooltip':!0x0,'class':_0x16dcc2(0x246)}),_0x204668[_0x16dcc2(0x288)]({'icon':_0x5e5e45,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x1b5)),'class':_0x16dcc2(0x226)}),_0x4b5fe4[_0x16dcc2(0x1ca)]({'tag':_0x16dcc2(0x1db),'attributes':{'class':[_0x16dcc2(0x1f3)]},'children':[_0x16dcc2(0x1ef)]}),_0x5a3cb2[_0x16dcc2(0x288)]({'icon':_0x357da0,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x286)),'class':_0x16dcc2(0x20a)}),_0x27a20[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x345c0c=>!_0x345c0c),_0x27a20['on'](_0x16dcc2(0x26f),()=>{const _0x4af22c=_0x16dcc2;this[_0x4af22c(0x1b9)]();}),_0x204668[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x2fb754=>!_0x2fb754),_0x204668['on'](_0x16dcc2(0x26f),()=>{const _0x25c0d2=_0x16dcc2;this[_0x25c0d2(0x1b0)]();}),_0x5a3cb2[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x393d1f=>!_0x393d1f),_0x5a3cb2['on'](_0x16dcc2(0x26f),()=>{const _0x60a7c9=_0x16dcc2;this[_0x60a7c9(0x276)]();}),this[_0x16dcc2(0x1c4)]=_0x204668,this[_0x16dcc2(0x279)]=_0x4b5fe4,this[_0x16dcc2(0x201)]=_0x5a3cb2,this[_0x16dcc2(0x262)][_0x16dcc2(0x1bf)](_0x27a20);}[_0x410544(0x1b0)](){const _0x33ca77=_0x410544,_0x547c8e=this[_0x33ca77(0x20e)][_0x33ca77(0x255)];this[_0x33ca77(0x273)]<_0x547c8e-0x1&&this[_0x33ca77(0x215)](this[_0x33ca77(0x273)]+0x1);}[_0x410544(0x276)](){const _0x51810e=_0x410544;this[_0x51810e(0x273)]>0x0&&this[_0x51810e(0x215)](this[_0x51810e(0x273)]-0x1);}async[_0x410544(0x215)](_0x2adc14){const _0xbcc471=_0x410544;if(!this[_0xbcc471(0x1d8)])return;this[_0xbcc471(0x273)]=_0x2adc14;const {mainView:_0x4b120e}=this[_0xbcc471(0x1d8)],_0x2c1547=this[_0xbcc471(0x20e)][this[_0xbcc471(0x20e)][_0xbcc471(0x255)]-0x1-this[_0xbcc471(0x273)]];if(!_0x2c1547)return;if(_0x2c1547[_0xbcc471(0x1bd)])return this[_0xbcc471(0x277)](_0x2c1547,_0x4b120e),void this[_0xbcc471(0x233)]();if(!_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)])return;_0x4b120e[_0xbcc471(0x21b)](),this[_0xbcc471(0x1d8)]&&this[_0xbcc471(0x239)](_0x4b120e,this[_0xbcc471(0x1d8)][_0xbcc471(0x216)]);const _0x54489e=_0x2c1547[_0xbcc471(0x224)][_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)]-0x1];if(_0x54489e){const _0x61d889=this[_0xbcc471(0x1e5)];this[_0xbcc471(0x27d)](_0x4b120e);try{const _0x2e5f7b=_0x37135b({'editor':_0x61d889,'changeGroups':_0x54489e[_0xbcc471(0x1f8)],'documentContextContent':_0x54489e[_0xbcc471(0x232)],'showDiff':this[_0xbcc471(0x217)],'trimUnchanged':!0x1});this[_0xbcc471(0x27d)](_0x4b120e),await new Promise(_0x58c58d=>setTimeout(_0x58c58d,0x32)),await _0x4b120e[_0xbcc471(0x200)]({'parts':_0x2e5f7b,'renderingStrategy':_0xbcc471(0x278),'abortSignal':new AbortController()[_0xbcc471(0x1d2)]});}catch(_0x4350ff){this[_0xbcc471(0x22b)](_0x4350ff)||console[_0xbcc471(0x1fd)](_0xbcc471(0x244),_0x4350ff);}}this[_0xbcc471(0x233)]();}[_0x410544(0x233)](){const _0x134f83=_0x410544;if(!this[_0x134f83(0x1c4)]||!this[_0x134f83(0x279)]||!this[_0x134f83(0x201)])return;const _0x185cd5=this[_0x134f83(0x20e)][_0x134f83(0x255)],_0x51422e=_0x185cd5>0x1,_0x25052f=this[_0x134f83(0x1d8)]?.[_0x134f83(0x27b)];if(_0x51422e){this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)]||(this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x0);const _0x45dc37=_0x185cd5-this[_0x134f83(0x273)];this[_0x134f83(0x279)][_0x134f83(0x269)]&&(this[_0x134f83(0x279)][_0x134f83(0x269)][_0x134f83(0x22c)]=_0x45dc37+'/'+_0x185cd5),this[_0x134f83(0x1c4)][_0x134f83(0x285)]=this[_0x134f83(0x273)]<_0x185cd5-0x1,this[_0x134f83(0x201)][_0x134f83(0x285)]=this[_0x134f83(0x273)]>0x0;}else(this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)])&&(this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x1);}[_0x410544(0x259)](_0x4ca1a9,_0x36f1fd){const _0x647178=_0x410544;_0x4ca1a9[_0x647178(0x25a)](),_0x36f1fd[_0x647178(0x20c)][_0x647178(0x25a)](),this[_0x647178(0x202)]=!0x0;}async[_0x410544(0x277)](_0x3ca01d,_0xc0214e){const _0x3a676c=_0x410544,_0x2fa2ea=_0x1933ba(this[_0x3a676c(0x1e5)][_0x3a676c(0x220)],_0x3a676c(0x228));_0xc0214e[_0x3a676c(0x1dd)](_0x2fa2ea),_0x3ca01d[_0x3a676c(0x1bd)]=!0x0,await this[_0x3a676c(0x1fe)][_0x3a676c(0x270)],_0xc0214e[_0x3a676c(0x282)](),this[_0x3a676c(0x1d8)]?.[_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)]&&(this[_0x3a676c(0x1d8)][_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)][_0x3a676c(0x266)]=!0x0);}[_0x410544(0x239)](_0x15acd9,_0x300ce5){const _0x3afcf4=_0x410544;_0x15acd9[_0x3afcf4(0x23b)](),_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)]&&(_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)][_0x3afcf4(0x266)]=!0x1);}async[_0x410544(0x287)](_0x443fc4,_0x31c875){const _0x473d2a=_0x410544;await this[_0x473d2a(0x1fe)][_0x473d2a(0x270)],this[_0x473d2a(0x202)]=!0x1,_0x443fc4[_0x473d2a(0x24f)](),_0x31c875[_0x473d2a(0x20c)][_0x473d2a(0x24f)]();}}
|
|
23
|
+
const _0x3a909e=_0x4f2a;(function(_0x34f7d3,_0x528281){const _0x2a4bbf=_0x4f2a,_0x4b8dde=_0x34f7d3();while(!![]){try{const _0x1f5c57=-parseInt(_0x2a4bbf(0x24f))/0x1*(-parseInt(_0x2a4bbf(0x242))/0x2)+-parseInt(_0x2a4bbf(0x1da))/0x3*(-parseInt(_0x2a4bbf(0x1ef))/0x4)+parseInt(_0x2a4bbf(0x1a5))/0x5+parseInt(_0x2a4bbf(0x178))/0x6+parseInt(_0x2a4bbf(0x24a))/0x7*(-parseInt(_0x2a4bbf(0x1b0))/0x8)+-parseInt(_0x2a4bbf(0x1ff))/0x9*(parseInt(_0x2a4bbf(0x1a8))/0xa)+-parseInt(_0x2a4bbf(0x236))/0xb*(parseInt(_0x2a4bbf(0x1e4))/0xc);if(_0x1f5c57===_0x528281)break;else _0x4b8dde['push'](_0x4b8dde['shift']());}catch(_0x4f015a){_0x4b8dde['push'](_0x4b8dde['shift']());}}}(_0x19c3,0x9f8eb));import{Plugin as _0x58d363}from'ckeditor5/src/core.js';import{AIConnector as _0x1754d4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x49e588}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x12a884,ButtonView as _0x26ef5d,ViewCollection as _0x1e648e,View as _0x24aac6}from'ckeditor5/src/ui.js';import{AIEditing as _0x3dfa29}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x52b667}from'./model/aiactionsinteraction.js';import{first as _0x5303f9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xee8a1d,IconRefresh as _0xd1bb03,IconNextArrow as _0x10dff5,IconPreviousArrow as _0x20c440,IconShowChangesOff as _0x5a8d0c}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x2f47a3}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3ede6b}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5391d0}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4a4566}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x38fbd8}from'@ckeditor/ckeditor5-collaboration-core';function _0x4f2a(_0x7ccee6,_0x16ae13){const _0x19c365=_0x19c3();return _0x4f2a=function(_0x4f2a89,_0x80269c){_0x4f2a89=_0x4f2a89-0x172;let _0x564b5a=_0x19c365[_0x4f2a89];return _0x564b5a;},_0x4f2a(_0x7ccee6,_0x16ae13);}function _0x19c3(){const _0x50d7bf=['remove','startsWith','_updateNavigationUI','_navigationCounter','2456OpmuIy','getLimitElement','operationsA','pending','isBusy','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_clearLoadingState','hasPendingParts','getDocumentContext','showLoader','stop','add','$graveyard','move','document','rootName','ck-ai-custom-action-button','start','insertSuggestion','_children','_clearInteractionHistory','insert','stopListening','merge','selection','createPositionBefore','actionName','_isNavigationCounterInView','showChangesButton','_anchorOperation','getOperations','_aiConnector','_displayInteractionAtIndex','_applyChanges','AIConnector','_isNavigationNextButtonInView','AI_ACTIONS_TRY_AGAIN','documentFragment','bind','span','interactionFinished','length','38559RCyEtI','areChangesVisible','upsertCustomAIActionRating','setSelection','split','replies','AIActions','AIBalloon','dialogClosed','_wrapWithCommonAncestors','662916bvDnLQ','modelToViewWithIds','updateContent','getFirstRange','balloonView','createPositionAfter','rename','replyCreated','_getExecuteDataInTable','message','_stopInteraction','28IaHSUc','rejected','catch','_balloonShowDiff','_interactions','applyOperation','stickiness','push','hideError','_applyOperationsAsSuggestions','parent','includes','element','clone','_filterOperationsOutsideRange','_interactionParams','18hMicQT','executeAction','AI_ACTIONS_GENERIC_ERROR','clearErrorState','ck-ai-navigation-button\x20ck-ai-previous-button','first','schema','getAncestors','locale','getChild','range','isOfficialPlugin','_promiseQueue','_currentInteractionIndex','_refreshInteraction','_navigateToPrevious','removeNavigationItem','streaming','_setErrorState','end','_executeAction','getRoot','addOperation','getSelectedBlocks','clearLoading','path','createPositionAt','filter','baseVersion','replyContentUpdated','_clone','type','ck-ai-interaction-counter','history','textContent','getChildAtOffset','hasError','Error\x20refreshing\x20interaction:','1/1','toggleSuggestionDisplayMode','slice','error','applySuggestion','setErrorState','actionCallId','isEnabled','bodyView','_createInteraction','getSelectedContent','batch','AI_ACTIONS_NEXT_INTERACTION','_customViews','upsertAIActionRating','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_navigateToNext','11kuBdYC','_interaction','ai-request-aborted','showError','toolbar','version','abort','_isNavigationPreviousButtonInView','setChangeGroupState','_setupCustomViews','getCommonAncestor','nodeAfter','2PYiYZd','_isAbortError','toData','sourcePosition','pluginName','signal','Error\x20updating\x20content\x20during\x20navigation:','listenTo','16793WajsOU','createRange','stopInteraction','execute','miniToolbarView','636577dtkQGr','editor','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_clearErrorState','_navigationPreviousButton','change','howMany','processor','getSelectedTableCells','has','4424784jRlEeq','_execute','addNavigationItem','nextSibling','enqueue','focus','close','Error\x20updating\x20content\x20in\x20replyCreated:','TrackChangesEditing','plugins','getSelectionAsFragment','_navigationNextButton','root','open','replyChangeGroupStateUpdated','aiBalloon','Attribute','TableSelection','isDocumentOperation','_appendChild','AI_ACTIONS_PREVIOUS_INTERACTION','map','isLoading','icon','setLoading','mainView','getRanges','requires','reinsert','queueEmptyPromise','_getExecuteDataRegular','accepted','model','isPremiumPlugin','hideLoader','indexOf','random','_setLoadingState','_clearSuggestionContent','state','data','ck-ai-navigation-button\x20ck-ai-next-button','isCollapsed','static','position','1527685olAAAk','changeGroups','documentContextContent','1621330EDCIiT','setTemplate','set','get'];_0x19c3=function(){return _0x50d7bf;};return _0x19c3();}import{getOperationsFromReply as _0x310700}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x493adb,ModelRange as _0x5027d3,ModelPosition as _0x3e6702,_DetachOperation as _0x4cf8a0,transformOperationSets as _0x18ba5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x58d363{static get[_0x3a909e(0x193)](){return[_0x1754d4,_0x12a884,_0x3dfa29,_0x2f47a3,_0x38fbd8];}static get[_0x3a909e(0x246)](){const _0x10ebb8=_0x3a909e;return _0x10ebb8(0x1e0);}static get[_0x3a909e(0x20a)](){return!0x0;}static get[_0x3a909e(0x199)](){return!0x0;}[_0x3a909e(0x1cf)];[_0x3a909e(0x1f3)]=[];[_0x3a909e(0x20c)]=0x0;[_0x3a909e(0x1fe)];[_0x3a909e(0x1f2)]=!0x1;[_0x3a909e(0x232)]=new _0x1e648e();[_0x3a909e(0x172)];[_0x3a909e(0x1af)];[_0x3a909e(0x1cb)]=!0x1;[_0x3a909e(0x183)];[_0x3a909e(0x23d)]=!0x1;[_0x3a909e(0x1d3)]=!0x1;[_0x3a909e(0x20b)];get[_0x3a909e(0x237)](){const _0x5b8203=_0x3a909e;return this[_0x5b8203(0x1f3)][this[_0x5b8203(0x1f3)][_0x5b8203(0x1d9)]-0x1];}constructor(_0x2f8bb9){const _0x50908e=_0x3a909e;super(_0x2f8bb9),this[_0x50908e(0x1cf)]=this[_0x50908e(0x250)][_0x50908e(0x181)][_0x50908e(0x1ab)](_0x50908e(0x1d2)),this[_0x50908e(0x1aa)](_0x50908e(0x1b4),!0x1),this[_0x50908e(0x20b)]=new _0x3ede6b(),this[_0x50908e(0x23f)]();}[_0x3a909e(0x24c)](){const _0x1dfa73=_0x3a909e;this[_0x1dfa73(0x1ee)]();}async[_0x3a909e(0x200)](_0x126d7a,_0x2bf9b4,_0x4b8d86){const _0x27193c=_0x3a909e;if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x177)](_0x27193c(0x189))){if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x1ab)](_0x27193c(0x189))[_0x27193c(0x176)]()){const {modelFragment:_0x387a85,anchorData:_0x5a94cd}=this[_0x27193c(0x1ec)]();return this[_0x27193c(0x213)](_0x126d7a,_0x387a85,_0x5a94cd,_0x2bf9b4,_0x4b8d86);}}const {modelFragment:_0x5d530b,anchorData:_0x5869a5}=this[_0x27193c(0x196)]();return this[_0x27193c(0x213)](_0x126d7a,_0x5d530b,_0x5869a5,_0x2bf9b4,_0x4b8d86);}[_0x3a909e(0x196)](){const _0x2ce3de=_0x3a909e,_0x363893=this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x1be)][_0x2ce3de(0x1c8)];if(_0x363893[_0x2ce3de(0x1a2)]){const _0x389799=_0x5303f9(_0x363893[_0x2ce3de(0x216)]())||this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x205)][_0x2ce3de(0x1b1)](_0x363893);this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x173)](_0x482462=>{const _0x4665a8=_0x2ce3de;_0x482462[_0x4665a8(0x1dd)](_0x389799,'in');});}const _0x21dfb5=_0x363893[_0x2ce3de(0x1e7)](),_0x440c0e=this[_0x2ce3de(0x1e3)](this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x22f)](_0x363893),_0x21dfb5[_0x2ce3de(0x1c1)],_0x21dfb5[_0x2ce3de(0x212)]),_0x1b9122=_0x363893[_0x2ce3de(0x1e7)]()[_0x2ce3de(0x1c1)],_0x17a230=new Map();let _0x5c1910=_0x440c0e;for(let _0x28f38d=0x0;_0x28f38d<_0x1b9122[_0x2ce3de(0x218)][_0x2ce3de(0x1d9)];_0x28f38d++)_0x17a230[_0x2ce3de(0x1aa)](_0x5c1910,_0x1b9122[_0x2ce3de(0x218)][_0x28f38d]),_0x5c1910=_0x5c1910[_0x2ce3de(0x208)](0x0);return{'modelFragment':_0x440c0e,'anchorData':_0x17a230};}[_0x3a909e(0x1ec)](){const _0x555f28=_0x3a909e,_0x5920c=this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1be)][_0x555f28(0x1c8)],_0x46db09=this[_0x555f28(0x250)][_0x555f28(0x181)][_0x555f28(0x1ab)](_0x555f28(0x189))[_0x555f28(0x182)](),_0x10165b=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)][_0x555f28(0x1f9)][_0x555f28(0x1f9)],_0x2923f4=this[_0x555f28(0x1e3)](_0x46db09,this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1c9)](_0x10165b),this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1e9)](_0x10165b)),_0x294dd6=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)],_0x4b957b=new Map();let _0x380212=_0x2923f4;for(let _0x4777c7=0x0;_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)];_0x4777c7++)if(_0x4b957b[_0x555f28(0x1aa)](_0x380212,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)]-0x1)_0x380212=_0x380212[_0x555f28(0x208)](0x0);else{let _0x9e6d79=_0x380212[_0x555f28(0x17b)];for(;_0x9e6d79;)_0x4b957b[_0x555f28(0x1aa)](_0x9e6d79,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x9e6d79=_0x9e6d79[_0x555f28(0x17b)];}return{'modelFragment':_0x2923f4,'anchorData':_0x4b957b};}[_0x3a909e(0x213)](_0x3deadf,_0xbcced0,_0x322203,_0x5244ce,_0xf40a5a){const _0x1d354f=_0x3a909e,_0x5186c4=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x3dfa29),_0x43f127=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x2f47a3),_0x5046d9=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x1c8)],_0x5bbdbc=_0x5186c4[_0x1d354f(0x1e5)](_0xbcced0),_0x13526a=this[_0x1d354f(0x250)][_0x1d354f(0x1a0)][_0x1d354f(0x175)][_0x1d354f(0x244)](_0x5bbdbc),_0x257782=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x23b)],_0x6912fc=[..._0x5046d9[_0x1d354f(0x192)]()],_0x142ea4=new _0x49e588(this[_0x1d354f(0x250)][_0x1d354f(0x207)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1d354f(0x18f),'customView':this[_0x1d354f(0x232)]},'showUnchangedParts':!0x0});return _0x43f127[_0x1d354f(0x185)]({'index':0x3e8*Math[_0x1d354f(0x19c)]()%0x3e8,'title':_0x5244ce,'icon':_0xf40a5a||_0xee8a1d,'mainView':_0x142ea4,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x6912fc}),this[_0x1d354f(0x19d)](_0x142ea4,_0x43f127),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x229),()=>{const _0x34c0e6=_0x1d354f;this[_0x34c0e6(0x1d1)](_0xbcced0,_0x322203,!0x1);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1c2),()=>{const _0x4eec06=_0x1d354f;this[_0x4eec06(0x1d1)](_0xbcced0,_0x322203,!0x0);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1e2),()=>{const _0x52ec66=_0x1d354f;if(this[_0x52ec66(0x237)]&&this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]>0x0){const _0x185d9c=this[_0x52ec66(0x237)][_0x52ec66(0x1df)][this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]-0x1],_0x14a81b=_0x185d9c[_0x52ec66(0x1a6)][0x0];_0x14a81b&&_0x52ec66(0x1b3)===_0x14a81b[_0x52ec66(0x19f)]&&_0x185d9c[_0x52ec66(0x23e)](0x0,_0x52ec66(0x1f0));}this[_0x52ec66(0x1ee)](),this[_0x52ec66(0x1c4)](),this[_0x52ec66(0x1c6)](_0x43f127);}),this[_0x1d354f(0x22e)](_0x13526a,_0x257782,_0x142ea4,_0x43f127,_0x3deadf);}[_0x3a909e(0x1e3)](_0x36017c,_0x31dc2c,_0x2771f1){const _0x3c2086=_0x3a909e,_0x420ba1=this[_0x3c2086(0x250)][_0x3c2086(0x198)][_0x3c2086(0x24b)](_0x31dc2c,_0x2771f1)[_0x3c2086(0x240)](),_0x3ba004=_0x420ba1['is'](_0x3c2086(0x1d5))?[]:_0x420ba1[_0x3c2086(0x206)]({'includeSelf':!0x0})[_0x3c2086(0x227)](0x1);if(_0x3ba004[_0x3c2086(0x1d9)]){const _0xc0a839=_0x3ba004[_0x3c2086(0x18d)](_0x909ffc=>_0x909ffc[_0x3c2086(0x21d)](!0x1));for(let _0x3b0f3a=0x1;_0x3b0f3a<_0xc0a839[_0x3c2086(0x1d9)];_0x3b0f3a++)_0xc0a839[_0x3b0f3a-0x1][_0x3c2086(0x18b)](_0xc0a839[_0x3b0f3a]);return _0xc0a839[_0xc0a839[_0x3c2086(0x1d9)]-0x1][_0x3c2086(0x18b)](_0x36017c),new _0x493adb(_0xc0a839[0x0]);}return _0x36017c;}async[_0x3a909e(0x22e)](_0xb43ce0,_0x129c3a,_0x1aefb8,_0x4a7b26,_0x49a410){const _0x27b7f6=_0x3a909e,_0x1f88b5=this[_0x27b7f6(0x250)];this[_0x27b7f6(0x1fe)]={'action':_0x49a410,'content':_0xb43ce0,'version':_0x129c3a,'mainView':_0x1aefb8,'aiBalloon':_0x4a7b26};const _0x32e45f=new _0x52b667({'connector':this[_0x27b7f6(0x1cf)],'editor':_0x1f88b5,'content':_0xb43ce0,'version':_0x129c3a,..._0x49a410});this[_0x27b7f6(0x1f3)][_0x27b7f6(0x1f6)](_0x32e45f),_0x1aefb8[_0x27b7f6(0x1f7)]();const _0x1afe8e=(_0x2362ee,_0x2e79cf,_0x2b9a87=!0x1,_0x423dc3=_0x27b7f6(0x210))=>this[_0x27b7f6(0x20b)][_0x27b7f6(0x17c)](async _0x2f81df=>{const _0x136f3d=_0x27b7f6;try{const _0x3be65f=_0x4a4566({'editor':_0x1f88b5,'changeGroups':_0x2362ee[_0x136f3d(0x1a6)],'documentContextContent':_0x2362ee[_0x136f3d(0x1a7)],'showDiff':_0x2b9a87,'trimUnchanged':!0x1});await _0x2e79cf[_0x136f3d(0x1e6)]({'parts':_0x3be65f,'renderingStrategy':_0x423dc3,'abortSignal':_0x2f81df});}catch(_0x588351){if(this[_0x136f3d(0x243)](_0x588351))return;throw _0x588351;}});this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1eb),(_0x4d6937,_0x30ef11)=>{const _0x53e4bc=_0x27b7f6;_0x1aefb8[_0x53e4bc(0x19a)](),_0x1afe8e(_0x30ef11,_0x1aefb8)[_0x53e4bc(0x1f1)](_0x3b466d=>{const _0x2c6143=_0x53e4bc;this[_0x2c6143(0x243)](_0x3b466d)||(console[_0x2c6143(0x228)](_0x2c6143(0x17f),_0x3b466d),this[_0x2c6143(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x21c),(_0x5e4fcd,_0x8d3e86)=>{const _0x156df0=_0x27b7f6;_0x1afe8e(_0x8d3e86,_0x1aefb8)[_0x156df0(0x1f1)](_0x1484b9=>{const _0x2002af=_0x156df0;this[_0x2002af(0x243)](_0x1484b9)||(console[_0x2002af(0x228)](_0x2002af(0x1b5),_0x1484b9),this[_0x2002af(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1d8),async()=>{const _0x29d420=_0x27b7f6;try{await this[_0x29d420(0x1b6)](_0x1aefb8,_0x4a7b26),this[_0x29d420(0x1ae)]();}catch(_0x3fe9b6){this[_0x29d420(0x243)](_0x3fe9b6)||(console[_0x29d420(0x228)](_0x29d420(0x234),_0x3fe9b6),this[_0x29d420(0x211)](_0x32e45f,_0x1aefb8));}}),this[_0x27b7f6(0x249)](_0x1aefb8,_0x27b7f6(0x226),(_0x2cf404,{showDiff:_0x196f76})=>{const _0x26d4e5=_0x27b7f6;this[_0x26d4e5(0x1f2)]=_0x196f76;const _0xee297a=this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][_0x26d4e5(0x1d9)]-0x1];_0xee297a&&_0x1afe8e(_0xee297a,_0x1aefb8,_0x196f76,_0x26d4e5(0x1a3))[_0x26d4e5(0x1f1)](_0x56116d=>{const _0x95a97d=_0x26d4e5;this[_0x95a97d(0x243)](_0x56116d)||(console[_0x95a97d(0x228)](_0x95a97d(0x251),_0x56116d),this[_0x95a97d(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x186),(_0x378f47,{reply:_0x7fcd93})=>{const _0x3056af=_0x27b7f6,_0x45bea8={'positiveCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x21a)](_0x12b3ed=>_0x3056af(0x197)===_0x12b3ed[_0x3056af(0x19f)])[_0x3056af(0x1d9)],'totalCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x1d9)]},_0x5a13f8=this[_0x3056af(0x237)][_0x3056af(0x22b)],_0xb1ddd7=this[_0x3056af(0x237)][_0x3056af(0x1ca)];_0xb1ddd7?this[_0x3056af(0x1cf)][_0x3056af(0x233)](_0xb1ddd7,_0x5a13f8,_0x45bea8):this[_0x3056af(0x1cf)][_0x3056af(0x1dc)](_0x5a13f8,_0x45bea8);}),this[_0x27b7f6(0x19d)](_0x1aefb8,_0x4a7b26);try{const _0x416c31=await this[_0x27b7f6(0x237)][_0x27b7f6(0x1c1)]();return this[_0x27b7f6(0x1ae)](),_0x416c31;}catch(_0x5ed646){if(this[_0x27b7f6(0x243)](_0x5ed646))return;_0x1aefb8[_0x27b7f6(0x19a)](),this[_0x27b7f6(0x211)](_0x32e45f,_0x1aefb8);}}[_0x3a909e(0x1d1)](_0x2fc8e9,_0x562844,_0xfff0ea){const _0x4bc873=_0x3a909e,_0xcdaa8=this[_0x4bc873(0x250)],_0x222923=this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x38fbd8),_0x58ecce=this[_0x4bc873(0x237)],_0x49dd0e=this[_0x4bc873(0x237)][_0x4bc873(0x1df)][this[_0x4bc873(0x237)][_0x4bc873(0x1df)][_0x4bc873(0x1d9)]-0x1],_0x3ba793=_0x49dd0e[_0x4bc873(0x1a6)];_0x49dd0e[_0x4bc873(0x23e)](0x0,_0x4bc873(0x197));let _0x56a2d3=_0x310700({'editor':_0xcdaa8,'reply':_0x49dd0e,'interaction':_0x58ecce,'groups':_0x3ba793,'transform':!0x1,'documentCompare':_0x222923,'documentCompareOptions':{'anchor':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x219)](_0x2fc8e9,0x0),'markDeletions':_0xfff0ea}});_0x56a2d3=this[_0x4bc873(0x1fd)](_0x56a2d3,_0x562844);for(const _0x24c217 of _0x56a2d3)this[_0x4bc873(0x1cd)](_0x562844,_0x24c217,_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x214)]());const _0x4128de=_0x58ecce[_0x4bc873(0x1b8)]()[_0x4bc873(0x23b)],_0x465452=_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x220)][_0x4bc873(0x1ce)](_0x4128de),_0x3456e8={'document':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2ebfd2=_0x18ba5f(_0x56a2d3,_0x465452,_0x3456e8)[_0x4bc873(0x1b2)];_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x173)](_0x3e5050=>{const _0x30025e=_0x4bc873;if(_0x3e5050[_0x30025e(0x1dd)](_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x1c8)][_0x30025e(0x17d)]),_0xfff0ea)_0xcdaa8[_0x30025e(0x181)][_0x30025e(0x1ab)](_0x30025e(0x180))[_0x30025e(0x1f8)](_0x2ebfd2);else{for(const _0x36bc8b of _0x2ebfd2)_0x36bc8b[_0x30025e(0x21b)]=_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x23b)],_0x3e5050[_0x30025e(0x230)][_0x30025e(0x215)](_0x36bc8b),_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1f4)](_0x36bc8b);}}),this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x4bc873(0x1e1))[_0x4bc873(0x17e)]();}[_0x3a909e(0x1fd)](_0x21ccc1,_0x7a5dc8){const _0x20f6d4=_0x3a909e;return _0x21ccc1[_0x20f6d4(0x21a)](_0x219fb5=>{const _0x28eb3d=_0x20f6d4;if(_0x28eb3d(0x1ea)==_0x219fb5[_0x28eb3d(0x21e)]){const _0x385165=_0x219fb5[_0x28eb3d(0x1a4)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x385165);}if(_0x219fb5[_0x28eb3d(0x21e)][_0x28eb3d(0x19b)](_0x28eb3d(0x188))>-0x1){const _0x1176db=_0x219fb5[_0x28eb3d(0x209)][_0x28eb3d(0x1c1)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x1176db);}return!0x0;});}[_0x3a909e(0x1cd)](_0x4e7da4,_0x44b595,_0x242925){const _0x42825a=_0x3a909e,_0x2aa9ea=_0x44b595[_0x42825a(0x1fc)]();for(const _0x3cb310 in _0x44b595){const _0x372d0b=_0x44b595[_0x3cb310];_0x372d0b instanceof _0x5027d3?_0x44b595[_0x3cb310]=new _0x5027d3(_0x3c9a78(_0x372d0b[_0x42825a(0x1c1)]),_0x3c9a78(_0x372d0b[_0x42825a(0x212)])):_0x372d0b instanceof _0x3e6702&&(_0x44b595[_0x3cb310]=_0x3c9a78(_0x372d0b));}if([_0x42825a(0x1c5),_0x42825a(0x1bd),_0x42825a(0x1ac),_0x42825a(0x194),_0x42825a(0x1de),_0x42825a(0x1c7)][_0x42825a(0x1fa)](_0x2aa9ea[_0x42825a(0x21e)])){if(_0x2aa9ea[_0x42825a(0x18a)]=!0x1,_0x2aa9ea[_0x42825a(0x21b)]=null,_0x42825a(0x1ac)==_0x2aa9ea[_0x42825a(0x21e)]){const _0x4a8d84=_0x2aa9ea[_0x42825a(0x245)],_0x330392=_0x2aa9ea[_0x42825a(0x174)];new _0x4cf8a0(_0x4a8d84,_0x330392)[_0x42825a(0x179)]();}else _0x2aa9ea[_0x42825a(0x179)]();}function _0x3c9a78(_0x33fb80){const _0x1f3a20=_0x42825a;if(_0x1f3a20(0x1bc)==_0x33fb80[_0x1f3a20(0x184)][_0x1f3a20(0x1bf)])return _0x33fb80;const _0x51564c=[];let _0x45444b=_0x33fb80[_0x1f3a20(0x184)];for(let _0x266174=0x0;_0x266174<_0x33fb80[_0x1f3a20(0x218)][_0x1f3a20(0x1d9)];_0x266174++){const _0x4a4275=_0x4e7da4[_0x1f3a20(0x1ab)](_0x45444b)||0x0;_0x51564c[_0x266174]=_0x33fb80[_0x1f3a20(0x218)][_0x266174]+_0x4a4275,_0x45444b=_0x45444b[_0x1f3a20(0x222)](_0x33fb80[_0x1f3a20(0x218)][_0x266174]);}return new _0x3e6702(_0x242925,_0x51564c,_0x33fb80[_0x1f3a20(0x1f5)]);}}[_0x3a909e(0x20d)](){const _0x1c13da=_0x3a909e;if(!this[_0x1c13da(0x1fe)])return;this[_0x1c13da(0x1f3)][_0x1c13da(0x1d9)]>0x0&&this[_0x1c13da(0x1ee)](),this[_0x1c13da(0x20c)]=0x0,this[_0x1c13da(0x1f2)]=!0x1;const {action:_0x316453,content:_0x104c64,version:_0x4a4bb1,mainView:_0x9156ca,aiBalloon:_0x100013}=this[_0x1c13da(0x1fe)];_0x9156ca[_0x1c13da(0x1db)]=!0x1,_0x9156ca[_0x1c13da(0x1f7)](),this[_0x1c13da(0x252)](_0x9156ca,_0x100013);const _0x3556cf=_0x9156ca;_0x3556cf[_0x1c13da(0x24e)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)][_0x1c13da(0x1aa)]({'isOn':!0x1,'icon':_0x5a8d0c}),this[_0x1c13da(0x19e)](_0x9156ca),_0x9156ca[_0x1c13da(0x1b9)](),this[_0x1c13da(0x1ae)](),this[_0x1c13da(0x22e)](_0x104c64,_0x4a4bb1,_0x9156ca,_0x100013,_0x316453)[_0x1c13da(0x1f1)](_0x349f72=>{const _0x66487c=_0x1c13da;this[_0x66487c(0x243)](_0x349f72)||console[_0x66487c(0x228)](_0x66487c(0x224),_0x349f72);});}[_0x3a909e(0x19e)](_0x1c2f06){const _0x474715=_0x3a909e,_0x32b4da=_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1c3)];for(;_0x32b4da[_0x474715(0x1d9)]>0x0;)_0x32b4da[_0x474715(0x1ac)](_0x32b4da[_0x474715(0x204)]);_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1b7)]=!0x1;}[_0x3a909e(0x243)](_0x13ac94){const _0x295ece=_0x3a909e;return!!_0x13ac94[_0x295ece(0x1ed)]&&_0x13ac94[_0x295ece(0x1ed)][_0x295ece(0x1ad)](_0x295ece(0x238));}[_0x3a909e(0x1c4)](){const _0x493da0=_0x3a909e;this[_0x493da0(0x1f3)]=[],this[_0x493da0(0x1fe)]=void 0x0,this[_0x493da0(0x20c)]=0x0,this[_0x493da0(0x1ae)]();}[_0x3a909e(0x1ee)](){const _0x1c971f=_0x3a909e;this[_0x1c971f(0x237)]&&this[_0x1c971f(0x237)][_0x1c971f(0x1ba)](),this[_0x1c971f(0x20b)][_0x1c971f(0x23c)](),this[_0x1c971f(0x1b4)]=!0x1;}[_0x3a909e(0x23f)](){const _0x24ac95=_0x3a909e,_0xd19ce1=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4e4e14=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x2b66e6=new _0x24aac6(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4d589d=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]);_0xd19ce1[_0x24ac95(0x1aa)]({'icon':_0xd1bb03,'label':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x1d4)),'tooltip':!0x0,'class':_0x24ac95(0x1c0)}),_0x4e4e14[_0x24ac95(0x1aa)]({'icon':_0x20c440,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x18c)),'class':_0x24ac95(0x203)}),_0x2b66e6[_0x24ac95(0x1a9)]({'tag':_0x24ac95(0x1d7),'attributes':{'class':[_0x24ac95(0x21f)]},'children':[_0x24ac95(0x225)]}),_0x4d589d[_0x24ac95(0x1aa)]({'icon':_0x10dff5,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x231)),'class':_0x24ac95(0x1a1)}),_0xd19ce1[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1de74c=>!_0x1de74c),_0xd19ce1['on'](_0x24ac95(0x24d),()=>{const _0x4d134c=_0x24ac95;this[_0x4d134c(0x20d)]();}),_0x4e4e14[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1e8890=>!_0x1e8890),_0x4e4e14['on'](_0x24ac95(0x24d),()=>{const _0xa02ca1=_0x24ac95;this[_0xa02ca1(0x20e)]();}),_0x4d589d[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x197458=>!_0x197458),_0x4d589d['on'](_0x24ac95(0x24d),()=>{const _0xd35184=_0x24ac95;this[_0xd35184(0x235)]();}),this[_0x24ac95(0x172)]=_0x4e4e14,this[_0x24ac95(0x1af)]=_0x2b66e6,this[_0x24ac95(0x183)]=_0x4d589d,this[_0x24ac95(0x232)][_0x24ac95(0x1bb)](_0xd19ce1);}[_0x3a909e(0x20e)](){const _0x352930=_0x3a909e,_0x43c15a=this[_0x352930(0x1f3)][_0x352930(0x1d9)];this[_0x352930(0x20c)]<_0x43c15a-0x1&&this[_0x352930(0x1d0)](this[_0x352930(0x20c)]+0x1);}[_0x3a909e(0x235)](){const _0x378fda=_0x3a909e;this[_0x378fda(0x20c)]>0x0&&this[_0x378fda(0x1d0)](this[_0x378fda(0x20c)]-0x1);}async[_0x3a909e(0x1d0)](_0x54e414){const _0x4d6d1a=_0x3a909e;if(!this[_0x4d6d1a(0x1fe)])return;this[_0x4d6d1a(0x20c)]=_0x54e414;const {mainView:_0x2215bc}=this[_0x4d6d1a(0x1fe)],_0x533e2b=this[_0x4d6d1a(0x1f3)][this[_0x4d6d1a(0x1f3)][_0x4d6d1a(0x1d9)]-0x1-this[_0x4d6d1a(0x20c)]];if(!_0x533e2b)return;if(_0x533e2b[_0x4d6d1a(0x223)])return this[_0x4d6d1a(0x211)](_0x533e2b,_0x2215bc),void this[_0x4d6d1a(0x1ae)]();if(!_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)])return;_0x2215bc[_0x4d6d1a(0x1f7)](),this[_0x4d6d1a(0x1fe)]&&this[_0x4d6d1a(0x252)](_0x2215bc,this[_0x4d6d1a(0x1fe)][_0x4d6d1a(0x187)]);const _0x3c3086=_0x533e2b[_0x4d6d1a(0x1df)][_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)]-0x1];if(_0x3c3086){const _0x34dba2=this[_0x4d6d1a(0x250)];this[_0x4d6d1a(0x19e)](_0x2215bc);try{const _0x3788f7=_0x4a4566({'editor':_0x34dba2,'changeGroups':_0x3c3086[_0x4d6d1a(0x1a6)],'documentContextContent':_0x3c3086[_0x4d6d1a(0x1a7)],'showDiff':this[_0x4d6d1a(0x1f2)],'trimUnchanged':!0x1});this[_0x4d6d1a(0x19e)](_0x2215bc),await new Promise(_0x19cceb=>setTimeout(_0x19cceb,0x32)),await _0x2215bc[_0x4d6d1a(0x1e6)]({'parts':_0x3788f7,'renderingStrategy':_0x4d6d1a(0x1a3),'abortSignal':new AbortController()[_0x4d6d1a(0x247)]});}catch(_0x1f9539){this[_0x4d6d1a(0x243)](_0x1f9539)||console[_0x4d6d1a(0x228)](_0x4d6d1a(0x248),_0x1f9539);}}this[_0x4d6d1a(0x1ae)]();}[_0x3a909e(0x1ae)](){const _0x1e90cb=_0x3a909e;if(!this[_0x1e90cb(0x172)]||!this[_0x1e90cb(0x1af)]||!this[_0x1e90cb(0x183)])return;const _0x149b4d=this[_0x1e90cb(0x1f3)][_0x1e90cb(0x1d9)],_0x26eff9=_0x149b4d>0x1,_0x4f968b=this[_0x1e90cb(0x1fe)]?.[_0x1e90cb(0x191)];if(_0x26eff9){this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)]||(this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x0);const _0xd07a4=_0x149b4d-this[_0x1e90cb(0x20c)];this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)]&&(this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)][_0x1e90cb(0x221)]=_0xd07a4+'/'+_0x149b4d),this[_0x1e90cb(0x172)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]<_0x149b4d-0x1,this[_0x1e90cb(0x183)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]>0x0;}else(this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)])&&(this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x1);}[_0x3a909e(0x19d)](_0x4ec828,_0x19890e){const _0x2ca933=_0x3a909e;_0x4ec828[_0x2ca933(0x190)](),_0x19890e[_0x2ca933(0x1e8)][_0x2ca933(0x190)](),this[_0x2ca933(0x1b4)]=!0x0;}async[_0x3a909e(0x211)](_0x16a976,_0x32f402){const _0x713117=_0x3a909e,_0x4a6520=_0x5391d0(this[_0x713117(0x250)][_0x713117(0x207)],_0x713117(0x201));_0x32f402[_0x713117(0x239)](_0x4a6520),_0x16a976[_0x713117(0x223)]=!0x0,await this[_0x713117(0x20b)][_0x713117(0x195)],_0x32f402[_0x713117(0x22a)](),this[_0x713117(0x1fe)]?.[_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)]&&(this[_0x713117(0x1fe)][_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)][_0x713117(0x18e)]=!0x0);}[_0x3a909e(0x252)](_0x476eec,_0x20bade){const _0x56eedc=_0x3a909e;_0x476eec[_0x56eedc(0x202)](),_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)]&&(_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)][_0x56eedc(0x18e)]=!0x1);}async[_0x3a909e(0x1b6)](_0x27864b,_0x5f5abf){const _0x51eb25=_0x3a909e;await this[_0x51eb25(0x20b)][_0x51eb25(0x195)],this[_0x51eb25(0x1b4)]=!0x1,_0x27864b[_0x51eb25(0x217)](),_0x5f5abf[_0x51eb25(0x1e8)][_0x51eb25(0x217)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3e09(){const _0x5b62d7=['sendRequest','91yMBCWR','args','911565WidNoE','editor','createReply','content','actionName','delegate','47108LQNxZL','model','10652736hZVEXj','813802kvlOsI','html','90OcmmYN','executeCustomAction','Current\x20document','version','replies','813732odCWJF','163638SmrXuN','314205DqoLgX','getDocumentContext','userMessage','current-document','hasError','connector','push','255cQkiNZ','fire','executeAction','replyCreated','TEXT'];_0x3e09=function(){return _0x5b62d7;};return _0x3e09();}const _0x1860bc=_0x3864;function _0x3864(_0x2dc227,_0x15a66a){const _0x3e09f3=_0x3e09();return _0x3864=function(_0x3864c0,_0x5d0b55){_0x3864c0=_0x3864c0-0x131;let _0x2b6d03=_0x3e09f3[_0x3864c0];return _0x2b6d03;},_0x3864(_0x2dc227,_0x15a66a);}(function(_0x2dba75,_0x399acc){const _0x1515ce=_0x3864,_0x5f25ac=_0x2dba75();while(!![]){try{const _0x45cfb5=-parseInt(_0x1515ce(0x145))/0x1+parseInt(_0x1515ce(0x13e))/0x2+-parseInt(_0x1515ce(0x14e))/0x3*(-parseInt(_0x1515ce(0x13b))/0x4)+parseInt(_0x1515ce(0x147))/0x5+parseInt(_0x1515ce(0x146))/0x6*(-parseInt(_0x1515ce(0x133))/0x7)+parseInt(_0x1515ce(0x13d))/0x8+-parseInt(_0x1515ce(0x135))/0x9*(parseInt(_0x1515ce(0x140))/0xa);if(_0x45cfb5===_0x399acc)break;else _0x5f25ac['push'](_0x5f25ac['shift']());}catch(_0x1af782){_0x5f25ac['push'](_0x5f25ac['shift']());}}}(_0x3e09,0xb0665));import{AIInteraction as _0x11e5b8,AI_MODEL_EVENT_NAMES as _0x5edad3}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x17a5ef}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x1934e2}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x11e5b8{[_0x1860bc(0x138)];[_0x1860bc(0x143)];[_0x1860bc(0x139)];[_0x1860bc(0x134)];[_0x1860bc(0x149)];[_0x1860bc(0x13c)];[_0x1860bc(0x14b)]=!0x1;constructor(_0x25dbcd){const _0x3ee2c5=_0x1860bc;super(_0x25dbcd),this[_0x3ee2c5(0x138)]=_0x25dbcd[_0x3ee2c5(0x138)],this[_0x3ee2c5(0x143)]=_0x25dbcd[_0x3ee2c5(0x143)],this[_0x3ee2c5(0x139)]=_0x25dbcd[_0x3ee2c5(0x139)],this[_0x3ee2c5(0x134)]=_0x25dbcd[_0x3ee2c5(0x134)],this[_0x3ee2c5(0x149)]=_0x25dbcd[_0x3ee2c5(0x149)],this[_0x3ee2c5(0x13c)]=_0x25dbcd[_0x3ee2c5(0x13c)];}async[_0x1860bc(0x132)](){const _0xf410ae=_0x1860bc;return this[_0xf410ae(0x139)]?this[_0xf410ae(0x14c)][_0xf410ae(0x150)]({'content':this[_0xf410ae(0x138)],'actionName':this[_0xf410ae(0x139)],'args':this[_0xf410ae(0x134)]}):this[_0xf410ae(0x14c)][_0xf410ae(0x141)]({'content':this[_0xf410ae(0x138)],'message':this[_0xf410ae(0x149)],'model':this[_0xf410ae(0x13c)],'outputFormat':_0xf410ae(0x13f)});}[_0x1860bc(0x148)](){const _0x3b1b8a=_0x1860bc;return{'type':_0x17a5ef[_0x3b1b8a(0x131)],'content':this[_0x3b1b8a(0x138)],'version':this[_0x3b1b8a(0x143)],'label':_0x3b1b8a(0x142),'uiId':_0x3b1b8a(0x14a)};}[_0x1860bc(0x137)](_0x156600){const _0x4b7c57=_0x1860bc,_0x15975b=new _0x1934e2({'editor':this[_0x4b7c57(0x136)],'documentContextContent':this[_0x4b7c57(0x138)],..._0x156600});return this[_0x4b7c57(0x144)][_0x4b7c57(0x14d)](_0x15975b),_0x15975b[_0x4b7c57(0x13a)](..._0x5edad3)['to'](this),this[_0x4b7c57(0x14f)](_0x4b7c57(0x151),_0x15975b),_0x15975b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bcca7=_0x3fb6;(function(_0x151d61,_0x2c2b12){const _0x4855d0=_0x3fb6,_0x4d2cb4=_0x151d61();while(!![]){try{const _0x236c41=parseInt(_0x4855d0(0x106))/0x1*(-parseInt(_0x4855d0(0xfb))/0x2)+-parseInt(_0x4855d0(0xfe))/0x3+-parseInt(_0x4855d0(0x108))/0x4*(-parseInt(_0x4855d0(0x111))/0x5)+parseInt(_0x4855d0(0xfd))/0x6+parseInt(_0x4855d0(0x109))/0x7+parseInt(_0x4855d0(0xff))/0x8*(-parseInt(_0x4855d0(0x115))/0x9)+-parseInt(_0x4855d0(0x103))/0xa;if(_0x236c41===_0x2c2b12)break;else _0x4d2cb4['push'](_0x4d2cb4['shift']());}catch(_0x1dbdc3){_0x4d2cb4['push'](_0x4d2cb4['shift']());}}}(_0x21c6,0x8416f));import{AIReply as _0x175e09}from'../../aicore/model/aireply.js';import{getAttribute as _0x171036}from'../../aicore/utils/htmlparser.js';import{uid as _0x28d2a1}from'ckeditor5/src/utils.js';function _0x21c6(){const _0x3d1e46=['132854Gzgqgy','added','4808olSMbc','7207375jpZsDB','childNodes','_getDifferentChangeGroups','node','modified','updateChangeGroups','children','changeGroups','3650JVdHJN','data-id','cloneNode','removed','63549qTCuUZ','pop','value','parsedContent','parsedMergedContent','4Yqffbb','pending','2904000AaaRAk','1322694WNzIDK','656DkWROX','new','documentContextContent','map','5644380BEvHUP','isDone','length'];_0x21c6=function(){return _0x3d1e46;};return _0x21c6();}function _0x3fb6(_0x321fef,_0x1b0b49){const _0x21c683=_0x21c6();return _0x3fb6=function(_0x3fb657,_0x3298da){_0x3fb657=_0x3fb657-0xfb;let _0x4328d7=_0x21c683[_0x3fb657];return _0x4328d7;},_0x3fb6(_0x321fef,_0x1b0b49);}import{diffArrays as _0x328512}from'diff';export class AIActionsReply extends _0x175e09{[_0x1bcca7(0x10e)](){const _0x72af5a=_0x1bcca7;if(this[_0x72af5a(0x119)]=this[_0x72af5a(0x118)][_0x72af5a(0x113)](!0x0),0x0==this[_0x72af5a(0x119)][_0x72af5a(0x10a)][_0x72af5a(0x105)])return void(this[_0x72af5a(0x110)]=[]);const _0x5f3dbd=this[_0x72af5a(0x101)][_0x72af5a(0x10f)][_0x72af5a(0x102)](_0x230d01=>({'node':_0x230d01,'id':_0x171036(_0x230d01,_0x72af5a(0x112))})),_0x415edf=this[_0x72af5a(0x119)][_0x72af5a(0x10f)][_0x72af5a(0x102)](_0x441e37=>({'node':_0x441e37,'id':_0x171036(_0x441e37,_0x72af5a(0x112))||_0x28d2a1()})),_0x2ccfe1=_0x328512(_0x5f3dbd,_0x415edf,{'comparator':(_0x3580e5,_0xc6496c)=>_0x3580e5['id']==_0xc6496c['id'],'oneChangePerToken':!0x0});if(!this[_0x72af5a(0x104)]){for(;_0x2ccfe1[_0x72af5a(0x105)]&&_0x2ccfe1[_0x2ccfe1[_0x72af5a(0x105)]-0x1][_0x72af5a(0x114)];)_0x2ccfe1[_0x72af5a(0x116)]();}const _0x5d5c44=_0x2ccfe1[_0x72af5a(0x102)](_0x42d8c7=>{const _0x21489c=_0x72af5a,_0x3e8b4c=_0x42d8c7[_0x21489c(0x107)]?_0x21489c(0x100):_0x42d8c7[_0x21489c(0x114)]?_0x21489c(0x114):_0x21489c(0x10d);return{'node':_0x42d8c7[_0x21489c(0x117)][0x0][_0x21489c(0x10c)],'type':_0x3e8b4c,'id':_0x42d8c7[_0x21489c(0x117)][0x0]['id']};});this[_0x72af5a(0x110)]=[{'changes':_0x5d5c44,'state':_0x72af5a(0xfc),'index':0x0}];}[_0x1bcca7(0x10b)](_0x164344,_0x2c08d6){return _0x2c08d6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x49b8bd=_0x1003;function _0x2f2c(){var _0x1aa638=['aiadapter-text-adapter-not-set','textAdapter','911785rasUio','isOfficialPlugin','name','AIAdapter','AIRequestError','4oFYQDN','707435noxGlg','1082679YxTQyC','1088Pvgvto','10068etjidG','32283sOHVTh','1068jlCKQS','isPremiumPlugin','20kgkubF','49GLgTQU','2649713HnLuOu','afterInit','322972fDFdPz','10XaSRnd','pluginName'];_0x2f2c=function(){return _0x1aa638;};return _0x2f2c();}(function(_0x184d1c,_0x16cded){var _0x358a4a=_0x1003,_0x29cd1c=_0x184d1c();while(!![]){try{var _0x424ba2=-parseInt(_0x358a4a(0x141))/0x1+parseInt(_0x358a4a(0x146))/0x2*(-parseInt(_0x358a4a(0x148))/0x3)+-parseInt(_0x358a4a(0x14e))/0x4*(parseInt(_0x358a4a(0x147))/0x5)+parseInt(_0x358a4a(0x14a))/0x6*(-parseInt(_0x358a4a(0x14f))/0x7)+parseInt(_0x358a4a(0x149))/0x8*(parseInt(_0x358a4a(0x14b))/0x9)+-parseInt(_0x358a4a(0x13d))/0xa*(-parseInt(_0x358a4a(0x150))/0xb)+parseInt(_0x358a4a(0x14c))/0xc*(parseInt(_0x358a4a(0x13c))/0xd);if(_0x424ba2===_0x16cded)break;else _0x29cd1c['push'](_0x29cd1c['shift']());}catch(_0x7e22de){_0x29cd1c['push'](_0x29cd1c['shift']());}}}(_0x2f2c,0x8f547));import{Plugin as _0x58578f}from'ckeditor5/src/core.js';import{CKEditorError as _0x5f2660}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x58578f{static get[_0x49b8bd(0x13e)](){var _0x3c5482=_0x49b8bd;return _0x3c5482(0x144);}static get[_0x49b8bd(0x142)](){return!0x0;}static get[_0x49b8bd(0x14d)](){return!0x0;}[_0x49b8bd(0x151)](){var _0x41537c=_0x49b8bd;if(!this[_0x41537c(0x140)])throw new _0x5f2660(_0x41537c(0x13f),null);}}function _0x1003(_0x1ad133,_0x1697f4){var _0x2f2cd0=_0x2f2c();return _0x1003=function(_0x100362,_0x1ca1d8){_0x100362=_0x100362-0x13c;var _0x52fd08=_0x2f2cd0[_0x100362];return _0x52fd08;},_0x1003(_0x1ad133,_0x1697f4);}export class AIRequestError extends Error{constructor(_0x1657f7){var _0x803880=_0x49b8bd;super(_0x1657f7),this[_0x803880(0x143)]=_0x803880(0x145);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1835(_0x318fce,_0x28ae91){const _0x380b33=_0x380b();return _0x1835=function(_0x183552,_0x1d6861){_0x183552=_0x183552-0x13d;let _0x1b8a56=_0x380b33[_0x183552];return _0x1b8a56;},_0x1835(_0x318fce,_0x28ae91);}const _0x269abf=_0x1835;(function(_0x3a2800,_0x302722){const _0x50a3bf=_0x1835,_0x50a918=_0x3a2800();while(!![]){try{const _0x1e1358=parseInt(_0x50a3bf(0x14d))/0x1*(parseInt(_0x50a3bf(0x144))/0x2)+parseInt(_0x50a3bf(0x15f))/0x3+parseInt(_0x50a3bf(0x15e))/0x4*(-parseInt(_0x50a3bf(0x14c))/0x5)+-parseInt(_0x50a3bf(0x140))/0x6+parseInt(_0x50a3bf(0x161))/0x7*(-parseInt(_0x50a3bf(0x153))/0x8)+parseInt(_0x50a3bf(0x146))/0x9+parseInt(_0x50a3bf(0x151))/0xa*(parseInt(_0x50a3bf(0x159))/0xb);if(_0x1e1358===_0x302722)break;else _0x50a918['push'](_0x50a918['shift']());}catch(_0x14dcce){_0x50a918['push'](_0x50a918['shift']());}}}(_0x380b,0x8d517));import{Plugin as _0x5b8c81}from'ckeditor5/src/core.js';function _0x380b(){const _0xed19e8=['textAdapter','reject','signal','requires','_prepareRequestHeaders','37605cteUPT','1lSzsiK','abortController','error','resolve','35590KATHkB','assign','4179920mNUWfd','AbortError','locale','catch','application/json','AI_ERROR_GET_HEADERS','2519gfQJOb','sendRequest','abort','init','object','60kVRqrR','2815659aLQahg','makeRequest','14jSnRmB','_prepareRequestParameters','aborted','aitextadapter-send-request-failed','name','4670796NrZmHO','editor','get','AI_ERROR_GET_PARAMETERS','1203080sWPNYc','plugins','1439964zZjxCo'];_0x380b=function(){return _0xed19e8;};return _0x380b();}import{CKEditorError as _0x51cf37}from'ckeditor5/src/utils.js';import{AIAdapter as _0x32a673,AIRequestError as _0x5a117a}from'./aiadapter.js';import{getTranslation as _0x381932}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b8c81{[_0x269abf(0x14e)];static get[_0x269abf(0x14a)](){return[_0x32a673];}constructor(_0x4e1d7e){const _0x5b0705=_0x269abf;super(_0x4e1d7e),this[_0x5b0705(0x14e)]=new AbortController();}[_0x269abf(0x15c)](){const _0x4144f0=_0x269abf;this[_0x4144f0(0x141)][_0x4144f0(0x145)][_0x4144f0(0x142)](_0x32a673)[_0x4144f0(0x147)]=this;}[_0x269abf(0x15b)](){const _0x127eae=_0x269abf;this[_0x127eae(0x14e)][_0x127eae(0x149)][_0x127eae(0x13d)]||(this[_0x127eae(0x14e)][_0x127eae(0x15b)](),this[_0x127eae(0x14e)]=new AbortController());}async[_0x269abf(0x160)](_0x2dbcd0){const _0x283397=_0x269abf;return this[_0x283397(0x15a)](_0x2dbcd0)[_0x283397(0x156)](_0x242eef=>{const _0xb5ae6b=_0x283397;if(_0x242eef instanceof _0x5a117a)return Promise[_0xb5ae6b(0x148)](_0x242eef);if(_0xb5ae6b(0x154)==_0x242eef[_0xb5ae6b(0x13f)])return Promise[_0xb5ae6b(0x150)]();throw console[_0xb5ae6b(0x14f)](_0x242eef),new _0x51cf37(_0xb5ae6b(0x13e),null);});}async[_0x269abf(0x14b)](_0x2259dc,_0x117d9b){const _0x43711a=_0x269abf,_0xaa5452=this[_0x43711a(0x141)][_0x43711a(0x155)],_0x482106={'Content-Type':_0x43711a(0x157)};if(_0x43711a(0x15d)==typeof _0x2259dc)Object[_0x43711a(0x152)](_0x482106,_0x2259dc);else{if(_0x2259dc)try{const _0x28d9a6=await _0x2259dc(_0x117d9b);Object[_0x43711a(0x152)](_0x482106,_0x28d9a6);}catch{return Promise[_0x43711a(0x148)](new _0x5a117a(_0x381932(_0xaa5452,_0x43711a(0x158))));}}return _0x482106;}async[_0x269abf(0x162)](_0x189bed,_0x32c928){const _0x5bf037=_0x269abf,_0x48e64b=this[_0x5bf037(0x141)][_0x5bf037(0x155)];if(_0x5bf037(0x15d)==typeof _0x189bed)return _0x189bed;try{return await _0x189bed(_0x32c928);}catch{return Promise[_0x5bf037(0x148)](new _0x5a117a(_0x381932(_0x48e64b,_0x5bf037(0x143))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b5360=_0x1399;(function(_0x70b34b,_0x3442b2){const _0x490cb6=_0x1399,_0x4cc5bb=_0x70b34b();while(!![]){try{const _0x270616=-parseInt(_0x490cb6(0x1aa))/0x1+parseInt(_0x490cb6(0x1af))/0x2+parseInt(_0x490cb6(0x1d3))/0x3+-parseInt(_0x490cb6(0x1f0))/0x4*(-parseInt(_0x490cb6(0x1bb))/0x5)+parseInt(_0x490cb6(0x1c2))/0x6*(parseInt(_0x490cb6(0x1e0))/0x7)+-parseInt(_0x490cb6(0x1f8))/0x8*(parseInt(_0x490cb6(0x1ad))/0x9)+parseInt(_0x490cb6(0x1bf))/0xa*(-parseInt(_0x490cb6(0x1de))/0xb);if(_0x270616===_0x3442b2)break;else _0x4cc5bb['push'](_0x4cc5bb['shift']());}catch(_0x24f04e){_0x4cc5bb['push'](_0x4cc5bb['shift']());}}}(_0x28e4,0xe9a81));import{AITextAdapter as _0x2ad0e1}from'./aitextadapter.js';import{AIRequestError as _0xd3a10b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x3fba1b,InvokeModelCommand as _0x5dde4c,InvokeModelWithResponseStreamCommand as _0x5d70f0}from'@aws-sdk/client-bedrock-runtime';function _0x28e4(){const _0x3b07d1=['ai21.j2','\x0a[/INST]','join','_bedrockClientConfig','_processAWSRequest','read','ai.assistant.adapter.aws.requestHeaders','cohere.command','data','parse','chunk','4JNWxXS','editor','resolve','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.','generation','locale','body','config','32zYeYDi','anthropic.claude','getReader','91420dniWHx','_readStreamableResponse','_prepareRequestParameters','3411603ixWwSb','meta.llama','2364528hWCizw','completion','abortController','Instruction:\x0a','\x0a\x0aAssistant:','map','_readStaticResponse','bedrock-2023-05-31','json','signal','_apiUrl','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','4261595BSonfn','length','_getGeneratedText','_processProxyRequest','1820vJVdnC','_prepareRequestHeaders','anthropic.claude-v2','9426IBylIg','pluginName','AI_ERROR_UNSUPPORTED_MODEL','preparePrompt','sendRequest','_readAsyncIterableResponse','test','application/json','<<SYS>>\x0a','ai.assistant.adapter.aws.requestParameters','ai.assistant.adapter.aws.bedrockClientConfig','generations','text','getModelFamily','ai.assistant.adapter.aws.apiUrl','get','_requestParameters','1372209MsDthI','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.','_requestHeaders','utf-8','\x0a<</SYS>>\x0a[INST]\x0a','decode','Human:\x0a','define','filter','stringify','send','8041Huisqb','AWSTextAdapter','917PhbnSO','POST','bytes','completions','split'];_0x28e4=function(){return _0x3b07d1;};return _0x28e4();}function _0x1399(_0x43faf1,_0x5068f8){const _0x28e488=_0x28e4();return _0x1399=function(_0x1399b7,_0x3a6d84){_0x1399b7=_0x1399b7-0x1a8;let _0x1266a6=_0x28e488[_0x1399b7];return _0x1266a6;},_0x1399(_0x43faf1,_0x5068f8);}import{getTranslation as _0x1bf126}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2ad0e1{[_0x2b5360(0x1b9)];[_0x2b5360(0x1d5)];[_0x2b5360(0x1e8)];[_0x2b5360(0x1d2)];static get[_0x2b5360(0x1c3)](){const _0x5e0fd9=_0x2b5360;return _0x5e0fd9(0x1df);}constructor(_0x40a530){const _0x3a98eb=_0x2b5360;super(_0x40a530),_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cb))||_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1da)](_0x3a98eb(0x1cb),{'model':_0x3a98eb(0x1c1),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3a98eb(0x1b6),'stream':!0x0}),this[_0x3a98eb(0x1b9)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1d0)),this[_0x3a98eb(0x1e8)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cc)),this[_0x3a98eb(0x1d5)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1eb)),this[_0x3a98eb(0x1d2)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cb));}async[_0x2b5360(0x1c6)]({query:_0x5e08c2,context:_0x36d4e1,onData:_0x507711,actionId:_0x15bce7}){const _0x3a045c=_0x2b5360,{model:_0x59613c,stream:_0xa09393,..._0x50f79f}=await this[_0x3a045c(0x1ac)](this[_0x3a045c(0x1d2)],_0x15bce7),_0x58308f={'prompt':await this[_0x3a045c(0x1c5)](_0x5e08c2,_0x36d4e1,_0x59613c,_0x15bce7),..._0x50f79f};this[_0x3a045c(0x1b9)]?await this[_0x3a045c(0x1be)](_0x58308f,_0x59613c,_0xa09393,_0x507711,_0x15bce7):await this[_0x3a045c(0x1e9)](_0x58308f,_0x59613c,_0xa09393,_0x507711);}async[_0x2b5360(0x1c5)](_0x197606,_0x3b9749,_0x38b621,_0x3e4c73){const _0x5ee80d=_0x2b5360;let _0x4b4e79,_0x487f8d;return _0x3b9749?(_0x4b4e79=_0x5ee80d(0x1f3),_0x487f8d=_0x5ee80d(0x1b2)+_0x197606+_0x5ee80d(0x1ba)+_0x3b9749):(_0x4b4e79=_0x5ee80d(0x1d4),_0x487f8d=_0x197606),_0x5ee80d(0x1ae)==this[_0x5ee80d(0x1cf)](_0x38b621)?_0x5ee80d(0x1ca)+_0x4b4e79+_0x5ee80d(0x1d7)+_0x487f8d+_0x5ee80d(0x1e6):_0x5ee80d(0x1d9)+_0x4b4e79+'\x0a'+_0x487f8d+_0x5ee80d(0x1b3);}[_0x2b5360(0x1cf)](_0x456206){const _0x595411=_0x2b5360;if(/^anthropic\.claude/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1a8);if(/^ai21\.j2/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1e5);if(/^cohere\.command/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1ec);if(/^meta\.llama/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1ae);throw new _0xd3a10b(_0x1bf126(this[_0x595411(0x1f1)][_0x595411(0x1f5)],_0x595411(0x1c4),_0x456206));}async[_0x2b5360(0x1be)](_0x216dde,_0x215b6d,_0x980ef0,_0x57a741,_0x2d688d){const _0x37353a=_0x2b5360,_0x2ca1b3={'method':_0x37353a(0x1e1),'headers':await this[_0x37353a(0x1c0)](this[_0x37353a(0x1d5)],_0x2d688d),'body':JSON[_0x37353a(0x1dc)]({..._0x216dde,'model':_0x215b6d,'stream':_0x980ef0}),'signal':this[_0x37353a(0x1b1)][_0x37353a(0x1b8)]},_0x299ae2=await fetch(this[_0x37353a(0x1b9)],_0x2ca1b3);_0x980ef0?await this[_0x37353a(0x1ab)](_0x299ae2,_0x215b6d,_0x57a741):await this[_0x37353a(0x1b5)](_0x299ae2,_0x215b6d,_0x57a741);}async[_0x2b5360(0x1e9)](_0x3c9cc6,_0x38478f,_0x453603,_0x142b6b){const _0x4c7a81=_0x2b5360,_0x9d0cdb=new _0x3fba1b(this[_0x4c7a81(0x1e8)]),_0x44fcaa={'body':JSON[_0x4c7a81(0x1dc)](_0x3c9cc6),'contentType':_0x4c7a81(0x1c9),'accept':_0x4c7a81(0x1c9),'modelId':_0x38478f};let _0x458011;if(_0x453603){const _0x1ee020=new _0x5d70f0(_0x44fcaa);_0x458011=await _0x9d0cdb[_0x4c7a81(0x1dd)](_0x1ee020,{'abortSignal':this[_0x4c7a81(0x1b1)][_0x4c7a81(0x1b8)]}),await this[_0x4c7a81(0x1c7)](_0x458011,_0x38478f,_0x142b6b);}else{const _0x4e3f85=new _0x5dde4c(_0x44fcaa);_0x458011=await _0x9d0cdb[_0x4c7a81(0x1dd)](_0x4e3f85,{'abortSignal':this[_0x4c7a81(0x1b1)][_0x4c7a81(0x1b8)]}),await this[_0x4c7a81(0x1b5)](_0x458011,_0x38478f,_0x142b6b);}}async[_0x2b5360(0x1c7)](_0x47d08d,_0x26f557,_0x9ac2f4){const _0x5f12be=_0x2b5360,_0x4edf32=_0x47d08d[_0x5f12be(0x1f6)],_0x43043f=new TextDecoder(_0x5f12be(0x1d6));let _0x47cf79='';for await(const _0x3901fc of _0x4edf32)if(_0x3901fc[_0x5f12be(0x1ef)]){const _0xb9f4b5=_0x43043f[_0x5f12be(0x1d8)](_0x3901fc[_0x5f12be(0x1ef)][_0x5f12be(0x1e2)]),_0x48278d=JSON[_0x5f12be(0x1ee)](_0xb9f4b5);_0x47cf79+=this[_0x5f12be(0x1bd)](_0x48278d,_0x26f557),_0x9ac2f4(_0x47cf79);}return Promise[_0x5f12be(0x1f2)]();}async[_0x2b5360(0x1ab)](_0x2887cd,_0x22582c,_0x584308){const _0xfffd04=_0x2b5360,_0x6c2192=_0x2887cd[_0xfffd04(0x1f6)],_0x563517=new TextDecoder(_0xfffd04(0x1d6)),_0x17ee67=_0x6c2192[_0xfffd04(0x1a9)]();let _0x22eb45='',_0x6d8c2='',_0x199817=!0x1;for(;!_0x199817;){const {done:_0x484d1e,value:_0x4ac2b2}=await _0x17ee67[_0xfffd04(0x1ea)]();if(_0x199817=_0x484d1e,_0x199817)break;const _0x4789d4=(_0x22eb45+_0x563517[_0xfffd04(0x1d8)](_0x4ac2b2))[_0xfffd04(0x1e4)]('\x0a')[_0xfffd04(0x1b4)](_0x49e987=>{const _0x3e077a=_0xfffd04;try{return _0x22eb45='',JSON[_0x3e077a(0x1ee)](_0x49e987);}catch{return _0x22eb45=_0x49e987,null;}})[_0xfffd04(0x1db)](_0x2b3f75=>null!==_0x2b3f75);_0x4789d4[_0xfffd04(0x1bc)]&&(_0x6d8c2+=_0x4789d4[_0xfffd04(0x1b4)](_0x36ddb7=>this[_0xfffd04(0x1bd)](_0x36ddb7,_0x22582c))[_0xfffd04(0x1e7)](''),_0x584308(_0x6d8c2));}return Promise[_0xfffd04(0x1f2)]();}async[_0x2b5360(0x1b5)](_0x2838bc,_0x17d393,_0x5b4c93){const _0x239fa8=_0x2b5360;let _0x6bc92a;return _0x6bc92a=_0x2838bc instanceof Response?await _0x2838bc[_0x239fa8(0x1b7)]():JSON[_0x239fa8(0x1ee)](new TextDecoder(_0x239fa8(0x1d6))[_0x239fa8(0x1d8)](_0x2838bc[_0x239fa8(0x1f6)])),(_0x5b4c93(this[_0x239fa8(0x1bd)](_0x6bc92a,_0x17d393)),Promise[_0x239fa8(0x1f2)]());}[_0x2b5360(0x1bd)](_0xc78f0f,_0xfc30ca){const _0x5d8246=_0x2b5360;switch(this[_0x5d8246(0x1cf)](_0xfc30ca)){case _0x5d8246(0x1a8):return _0xc78f0f[_0x5d8246(0x1b0)];case _0x5d8246(0x1e5):return _0xc78f0f[_0x5d8246(0x1e3)][0x0][_0x5d8246(0x1ed)][_0x5d8246(0x1ce)];case _0x5d8246(0x1ec):return _0xc78f0f[_0x5d8246(0x1cd)][0x0][_0x5d8246(0x1ce)];case _0x5d8246(0x1ae):return _0xc78f0f[_0x5d8246(0x1f4)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5a8e(_0x33cc69,_0x2bf739){const _0x4d3df2=_0x4d3d();return _0x5a8e=function(_0x5a8e94,_0x558449){_0x5a8e94=_0x5a8e94-0x10f;let _0x3a36f6=_0x4d3df2[_0x5a8e94];return _0x3a36f6;},_0x5a8e(_0x33cc69,_0x2bf739);}function _0x4d3d(){const _0x14419f=['parse','define','json','AI_ERROR_MODERATION','Instruction:\x0a','getReader','9309162apXSmc','read','choices','decode','[DONE]','1089033gUwUnu','content','editor','user','reject','ai.assistant.adapter.openAI.requestHeaders','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.','split','3481180eQvkqS','sendRequest','POST','5sinVri','delta','_cleanUpData','map','gpt-4o','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_prepareRequestHeaders','_requestParameters','join','456GkqJWh','257IoGtgn','103202fVcXZT','pluginName','AI_ERROR_CONTEXT_LENGTH','Moderation','message','abortController','locale','https://api.openai.com/v1/chat/completions','length','system','ai.assistant.adapter.openAI.apiUrl','context_length_exceeded','_readStaticResponse','stream','stringify','63081rKIcVf','body','_apiUrl','filter','text','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_readStreamableResponse','OpenAITextAdapter','data:\x20','prepareMessages','resolve','_requestHeaders','get','890MZbFur','2667eNCPxa','replace','signal','config','10874GtaZEp','includes','1644Arldny','_isBufferIncomplete','ai.assistant.adapter.openAI.requestParameters','_prepareRequestParameters'];_0x4d3d=function(){return _0x14419f;};return _0x4d3d();}const _0x3609eb=_0x5a8e;(function(_0x1870f8,_0x1369b9){const _0x149a02=_0x5a8e,_0x4ce8e0=_0x1870f8();while(!![]){try{const _0xe17ef5=parseInt(_0x149a02(0x13a))/0x1*(-parseInt(_0x149a02(0x114))/0x2)+-parseInt(_0x149a02(0x125))/0x3+-parseInt(_0x149a02(0x12d))/0x4*(parseInt(_0x149a02(0x130))/0x5)+parseInt(_0x149a02(0x120))/0x6+-parseInt(_0x149a02(0x110))/0x7*(parseInt(_0x149a02(0x139))/0x8)+parseInt(_0x149a02(0x14a))/0x9*(parseInt(_0x149a02(0x10f))/0xa)+-parseInt(_0x149a02(0x13b))/0xb*(-parseInt(_0x149a02(0x116))/0xc);if(_0xe17ef5===_0x1369b9)break;else _0x4ce8e0['push'](_0x4ce8e0['shift']());}catch(_0x2961ae){_0x4ce8e0['push'](_0x4ce8e0['shift']());}}}(_0x4d3d,0xc558a));import{AITextAdapter as _0x38eff1}from'./aitextadapter.js';import{AIRequestError as _0x8cab23}from'./aiadapter.js';import{getTranslation as _0x5d3fec}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x38eff1{[_0x3609eb(0x14c)];[_0x3609eb(0x155)];[_0x3609eb(0x137)];static get[_0x3609eb(0x13c)](){const _0xd1e7f=_0x3609eb;return _0xd1e7f(0x151);}constructor(_0x5cd1ab){const _0x1c3c5d=_0x3609eb;super(_0x5cd1ab),_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x11b)](_0x1c3c5d(0x145),_0x1c3c5d(0x142)),_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x118))||_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x11b)](_0x1c3c5d(0x118),{'model':_0x1c3c5d(0x134),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1c3c5d(0x14c)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x145)),this[_0x1c3c5d(0x155)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x12a))||{},this[_0x1c3c5d(0x137)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x118));}async[_0x3609eb(0x12e)]({query:_0xe5f788,context:_0xbbffd1,onData:_0x345116,actionId:_0x2e3b09}){const _0x5aa23e=_0x3609eb,_0x5114fc=this[_0x5aa23e(0x127)][_0x5aa23e(0x141)],_0x4c28fc=await this[_0x5aa23e(0x153)](_0xe5f788,_0xbbffd1,_0x2e3b09),_0x3aa2b4=await this[_0x5aa23e(0x136)](this[_0x5aa23e(0x155)],_0x2e3b09),_0x5198b4=await this[_0x5aa23e(0x119)](this[_0x5aa23e(0x137)],_0x2e3b09),_0x159b8b={'messages':_0x4c28fc,..._0x5198b4},_0x476654={'method':_0x5aa23e(0x12f),'headers':_0x3aa2b4,'body':JSON[_0x5aa23e(0x149)](_0x159b8b),'signal':this[_0x5aa23e(0x140)][_0x5aa23e(0x112)]},_0x295381=await fetch(this[_0x5aa23e(0x14c)],_0x476654);if(_0x295381['ok'])return _0x5198b4[_0x5aa23e(0x148)]?await this[_0x5aa23e(0x150)](_0x295381,_0x345116):await this[_0x5aa23e(0x147)](_0x295381,_0x345116),Promise[_0x5aa23e(0x154)]();{const _0x51266a=await _0x295381[_0x5aa23e(0x14e)]();return _0x51266a[_0x5aa23e(0x115)](_0x5aa23e(0x146))?Promise[_0x5aa23e(0x129)](new _0x8cab23(_0x5d3fec(_0x5114fc,_0x5aa23e(0x13d)))):_0x51266a[_0x5aa23e(0x115)](_0x5aa23e(0x13e))?Promise[_0x5aa23e(0x129)](new _0x8cab23(_0x5d3fec(_0x5114fc,_0x5aa23e(0x11d)))):Promise[_0x5aa23e(0x129)](new Error(_0x51266a));}}async[_0x3609eb(0x153)](_0xf38d32,_0x5a86f6,_0x465b7){const _0x3ce928=_0x3609eb;let _0x114d30,_0x457935;return _0x5a86f6?(_0x114d30=_0x3ce928(0x12b),_0x457935=_0x3ce928(0x11e)+_0xf38d32+_0x3ce928(0x135)+_0x5a86f6):(_0x114d30=_0x3ce928(0x14f),_0x457935=_0xf38d32),[{'role':_0x3ce928(0x144),'content':_0x114d30},{'role':_0x3ce928(0x128),'content':_0x457935}];}async[_0x3609eb(0x150)](_0x1804da,_0x3ad26e){const _0x2fb02d=_0x3609eb,_0x18f289=_0x1804da[_0x2fb02d(0x14b)][_0x2fb02d(0x11f)](),_0x5b9929=new TextDecoder();let _0x232fc2='',_0x54f76f='',_0x5629bf='',_0x40c7c5=!0x1;for(;!_0x40c7c5;){const {done:_0x5a9c07,value:_0x33d6d2}=await _0x18f289[_0x2fb02d(0x121)](),_0x10f8e2=_0x232fc2+_0x5b9929[_0x2fb02d(0x123)](_0x33d6d2);let _0x274fa2='';_0x40c7c5=_0x5a9c07;try{_0x274fa2=this[_0x2fb02d(0x132)](_0x10f8e2),_0x232fc2='';}catch{_0x232fc2=_0x10f8e2;continue;}_0x54f76f+=_0x274fa2,!_0x40c7c5&&this[_0x2fb02d(0x117)](_0x54f76f)||_0x54f76f&&(_0x5629bf+=_0x54f76f,_0x54f76f='',_0x3ad26e(_0x5629bf));}return Promise[_0x2fb02d(0x154)]();}async[_0x3609eb(0x147)](_0x2f77b9,_0x2cb31a){const _0x35c0f3=_0x3609eb;return _0x2cb31a((await _0x2f77b9[_0x35c0f3(0x11c)]())[_0x35c0f3(0x122)][0x0][_0x35c0f3(0x13f)][_0x35c0f3(0x126)]),Promise[_0x35c0f3(0x154)]();}[_0x3609eb(0x117)](_0x48ed8a){const _0x587291=_0x3609eb,_0x185bca=_0x48ed8a[_0x587291(0x12c)]('<')[_0x587291(0x143)]!==_0x48ed8a[_0x587291(0x12c)]('>')[_0x587291(0x143)],_0x19ec46=_0x48ed8a[_0x587291(0x143)]<0x1e;return _0x185bca&&_0x19ec46;}[_0x3609eb(0x132)](_0x1fde64){const _0x3bedf9=_0x3609eb;return _0x1fde64[_0x3bedf9(0x12c)](/\n(?![^{]*\})/g)[_0x3bedf9(0x133)](_0x457144=>_0x457144[_0x3bedf9(0x111)](_0x3bedf9(0x152),''))[_0x3bedf9(0x14d)](_0x59a024=>_0x59a024&&_0x59a024[_0x3bedf9(0x143)]>0x0&&_0x3bedf9(0x124)!==_0x59a024)[_0x3bedf9(0x133)](_0x2948b6=>{const _0x115bd0=_0x3bedf9,{choices:_0x4fb3ea}=JSON[_0x115bd0(0x11a)](_0x2948b6);if(_0x4fb3ea[0x0]?.[_0x115bd0(0x131)]?.[_0x115bd0(0x126)])return _0x4fb3ea[0x0][_0x115bd0(0x131)][_0x115bd0(0x126)];})[_0x3bedf9(0x14d)](_0x35428c=>_0x35428c)[_0x3bedf9(0x138)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x28869f=_0x31fc;(function(_0x5283ba,_0x5b02c2){const _0x43baa9=_0x31fc,_0x46b4f8=_0x5283ba();while(!![]){try{const _0x3e910b=-parseInt(_0x43baa9(0x14d))/0x1*(-parseInt(_0x43baa9(0x16e))/0x2)+parseInt(_0x43baa9(0x18e))/0x3+parseInt(_0x43baa9(0x18b))/0x4*(parseInt(_0x43baa9(0x17d))/0x5)+-parseInt(_0x43baa9(0x14f))/0x6*(parseInt(_0x43baa9(0x143))/0x7)+parseInt(_0x43baa9(0x15f))/0x8*(-parseInt(_0x43baa9(0x17c))/0x9)+parseInt(_0x43baa9(0x15a))/0xa+parseInt(_0x43baa9(0x193))/0xb*(-parseInt(_0x43baa9(0x186))/0xc);if(_0x3e910b===_0x5b02c2)break;else _0x46b4f8['push'](_0x46b4f8['shift']());}catch(_0x32c09f){_0x46b4f8['push'](_0x46b4f8['shift']());}}}(_0x219b,0x8505a));import{Plugin as _0x481307}from'ckeditor5/src/core.js';function _0x31fc(_0xada52e,_0x32b267){const _0x219b65=_0x219b();return _0x31fc=function(_0x31fc8f,_0x1ff4d7){_0x31fc8f=_0x31fc8f-0x12a;let _0x4ebd94=_0x219b65[_0x31fc8f];return _0x4ebd94;},_0x31fc(_0xada52e,_0x32b267);}import{AIAssistantUI as _0x416f73}from'./aiassistantui.js';import{AIAssistantEditing as _0x9b57f}from'./aiassistantediting.js';import{getTranslation as _0x3f7e31}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x54a2c3}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x481307{static get[_0x28869f(0x158)](){return[_0x416f73,_0x9b57f];}static get[_0x28869f(0x140)](){const _0x431ce0=_0x28869f;return _0x431ce0(0x14e);}static get[_0x28869f(0x185)](){return!0x0;}static get[_0x28869f(0x175)](){return!0x0;}constructor(_0x3c0042){const _0x3a42d1=_0x28869f;super(_0x3c0042);const _0xe1b17a=_0x3c0042[_0x3a42d1(0x177)],_0x3398f7=_0x3c0042[_0x3a42d1(0x147)];_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x180),!0x0),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x16b),getDefaultAICommands(_0x3398f7)),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x165),[]),_0xe1b17a[_0x3a42d1(0x161)](_0x3a42d1(0x132),[]);let _0x4fd0bd=_0x54a2c3(_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x16b)),_0x3398f7);const _0x4e40e8=_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x165)),_0x4dbb6e=_0xe1b17a[_0x3a42d1(0x12a)](_0x3a42d1(0x132));_0x4e40e8[_0x3a42d1(0x13b)](_0x2ae76a=>{const _0x51b3d6=_0x3a42d1,_0x5d52f8=_0x4fd0bd[_0x51b3d6(0x153)](_0x31e5b9=>_0x31e5b9[_0x51b3d6(0x196)]===_0x2ae76a[_0x51b3d6(0x196)]);_0x5d52f8?_0x5d52f8[_0x51b3d6(0x163)]=_0x5d52f8[_0x51b3d6(0x163)][_0x51b3d6(0x16c)](_0x2ae76a[_0x51b3d6(0x163)]):_0x4fd0bd[_0x51b3d6(0x173)](_0x2ae76a);}),_0x4fd0bd=_0x4fd0bd[_0x3a42d1(0x13e)](_0x3e172c=>!_0x4dbb6e[_0x3a42d1(0x135)](_0x3e172c[_0x3a42d1(0x196)])),_0x4fd0bd[_0x3a42d1(0x13b)](_0x43702=>{const _0x52f042=_0x3a42d1;_0x43702[_0x52f042(0x163)]=_0x43702[_0x52f042(0x163)][_0x52f042(0x13e)](_0x51ddb3=>!_0x4dbb6e[_0x52f042(0x135)](_0x51ddb3['id']));}),_0xe1b17a[_0x3a42d1(0x159)](_0x3a42d1(0x16b),_0x4fd0bd);}}function _0x219b(){const _0x397fab=['ai.assistant.removeCommands','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\x20writing','includes','Hindi','Legal','translateHindi','Friendly','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','forEach','friendly','Continue','filter','Translate','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','translatePortuguese','15491DgpbRQ','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','English','translate','locale','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Portuguese','continue','Make\x20shorter','854893BdyEOB','AIAssistant','156LVPevR','Summarize','Change\x20tone','changeTone','find','Spanish','Generate\x20from\x20selection','Make\x20longer','Business','requires','set','7489900FiWZZM','translateSpanish','summarize','translateEnglish','Casual','2848LaKlRV','Simplified\x20Chinese','define','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','commands','makeLonger','ai.assistant.extraCommandGroups','confident','journalism','French','Edit\x20or\x20review','editOrReview','ai.assistant.commands','concat','generate','2MslaxB','changeStyle','Journalism','simplifyLanguage','German','push','Translate\x20the\x20content\x20to\x20Spanish\x20language.','isPremiumPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','config','Arabic','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Poetic','8892mtxuIK','485JnExim','Professional','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.preserveComments','Direct','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','isOfficialPlugin','3242628TiwNTx','poetic','business','casual','translateChinese','32520ZvrmNX','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','2980806FXiKID','Confident','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','professional','99NKVmEY','translateFrench','Translate\x20the\x20content\x20to\x20English\x20language.','groupId','legal','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','get','direct','Simplify\x20language','translateGerman','translateArabic','improveWriting','Change\x20style','Translate\x20the\x20content\x20to\x20Portuguese\x20language.'];_0x219b=function(){return _0x397fab;};return _0x219b();}export function getDefaultAICommands(_0x404033){const _0x571fce=_0x28869f;return[{'groupId':_0x571fce(0x16a),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x169)),'commands':[{'id':_0x571fce(0x12f),'label':_0x3f7e31(_0x404033,_0x571fce(0x134)),'prompt':_0x571fce(0x141)},{'id':_0x571fce(0x190),'label':_0x3f7e31(_0x404033,_0x571fce(0x14c)),'prompt':_0x571fce(0x162)},{'id':_0x571fce(0x164),'label':_0x3f7e31(_0x404033,_0x571fce(0x156)),'prompt':_0x571fce(0x13a)},{'id':_0x571fce(0x171),'label':_0x3f7e31(_0x404033,_0x571fce(0x12c)),'prompt':_0x571fce(0x144)}]},{'groupId':_0x571fce(0x16d),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x155)),'commands':[{'id':_0x571fce(0x15c),'label':_0x3f7e31(_0x404033,_0x571fce(0x150)),'prompt':_0x571fce(0x133)},{'id':_0x571fce(0x14b),'label':_0x3f7e31(_0x404033,_0x571fce(0x13d)),'prompt':_0x571fce(0x176)}]},{'groupId':_0x571fce(0x152),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x151)),'commands':[{'id':_0x571fce(0x192),'label':_0x3f7e31(_0x404033,_0x571fce(0x17e)),'prompt':_0x571fce(0x179)},{'id':_0x571fce(0x189),'label':_0x3f7e31(_0x404033,_0x571fce(0x15e)),'prompt':_0x571fce(0x149)},{'id':_0x571fce(0x12b),'label':_0x3f7e31(_0x404033,_0x571fce(0x181)),'prompt':_0x571fce(0x18c)},{'id':_0x571fce(0x166),'label':_0x3f7e31(_0x404033,_0x571fce(0x18f)),'prompt':_0x571fce(0x184)},{'id':_0x571fce(0x13c),'label':_0x3f7e31(_0x404033,_0x571fce(0x139)),'prompt':_0x571fce(0x17f)}]},{'groupId':_0x571fce(0x16f),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x130)),'commands':[{'id':_0x571fce(0x188),'label':_0x3f7e31(_0x404033,_0x571fce(0x157)),'prompt':_0x571fce(0x191)},{'id':_0x571fce(0x197),'label':_0x3f7e31(_0x404033,_0x571fce(0x137)),'prompt':_0x571fce(0x182)},{'id':_0x571fce(0x167),'label':_0x3f7e31(_0x404033,_0x571fce(0x170)),'prompt':_0x571fce(0x198)},{'id':_0x571fce(0x187),'label':_0x3f7e31(_0x404033,_0x571fce(0x17b)),'prompt':_0x571fce(0x18d)}]},{'groupId':_0x571fce(0x146),'groupLabel':_0x3f7e31(_0x404033,_0x571fce(0x13f)),'commands':[{'id':_0x571fce(0x15d),'label':_0x3f7e31(_0x404033,_0x571fce(0x145)),'prompt':_0x571fce(0x195)},{'id':_0x571fce(0x15b),'label':_0x3f7e31(_0x404033,_0x571fce(0x154)),'prompt':_0x571fce(0x174)},{'id':_0x571fce(0x142),'label':_0x3f7e31(_0x404033,_0x571fce(0x14a)),'prompt':_0x571fce(0x131)},{'id':_0x571fce(0x12d),'label':_0x3f7e31(_0x404033,_0x571fce(0x172)),'prompt':_0x571fce(0x148)},{'id':_0x571fce(0x194),'label':_0x3f7e31(_0x404033,_0x571fce(0x168)),'prompt':_0x571fce(0x199)},{'id':_0x571fce(0x18a),'label':_0x3f7e31(_0x404033,_0x571fce(0x160)),'prompt':_0x571fce(0x19a)},{'id':_0x571fce(0x138),'label':_0x3f7e31(_0x404033,_0x571fce(0x136)),'prompt':_0x571fce(0x183)},{'id':_0x571fce(0x12e),'label':_0x3f7e31(_0x404033,_0x571fce(0x178)),'prompt':_0x571fce(0x17a)}]}];}
|