@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +9 -9
- package/lang/translations/bg.po +9 -9
- package/lang/translations/bn.po +9 -9
- package/lang/translations/ca.po +9 -9
- package/lang/translations/cs.po +9 -9
- package/lang/translations/da.po +9 -9
- package/lang/translations/de.po +9 -9
- package/lang/translations/el.po +9 -9
- package/lang/translations/es.po +9 -9
- package/lang/translations/et.po +9 -9
- package/lang/translations/fi.po +9 -9
- package/lang/translations/fr.po +9 -9
- package/lang/translations/he.po +9 -9
- package/lang/translations/hi.po +9 -9
- package/lang/translations/hu.po +9 -9
- package/lang/translations/id.po +9 -9
- package/lang/translations/it.po +9 -9
- package/lang/translations/ja.po +9 -9
- package/lang/translations/ko.po +9 -9
- package/lang/translations/lt.po +9 -9
- package/lang/translations/lv.po +9 -9
- package/lang/translations/ms.po +9 -9
- package/lang/translations/nl.po +9 -9
- package/lang/translations/no.po +9 -9
- package/lang/translations/pl.po +9 -9
- package/lang/translations/pt-br.po +9 -9
- package/lang/translations/pt.po +9 -9
- package/lang/translations/ro.po +9 -9
- package/lang/translations/ru.po +9 -9
- package/lang/translations/sk.po +9 -9
- package/lang/translations/sr.po +9 -9
- package/lang/translations/sv.po +9 -9
- package/lang/translations/th.po +9 -9
- package/lang/translations/tr.po +9 -9
- package/lang/translations/uk.po +9 -9
- package/lang/translations/vi.po +9 -9
- package/lang/translations/zh-cn.po +9 -9
- package/lang/translations/zh.po +9 -9
- 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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/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/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/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/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x24b0f1=_0xe913;(function(_0x51c5ff,_0xf0ba45){const _0x247018=_0xe913,_0x5ac5ce=_0x51c5ff();while(!![]){try{const _0x34e46e=-parseInt(_0x247018(0xe8))/0x1*(-parseInt(_0x247018(0x187))/0x2)+parseInt(_0x247018(0xba))/0x3+-parseInt(_0x247018(0xdb))/0x4*(-parseInt(_0x247018(0x119))/0x5)+-parseInt(_0x247018(0x153))/0x6+parseInt(_0x247018(0x18c))/0x7*(-parseInt(_0x247018(0xf0))/0x8)+parseInt(_0x247018(0x16d))/0x9+parseInt(_0x247018(0x11f))/0xa*(-parseInt(_0x247018(0x101))/0xb);if(_0x34e46e===_0xf0ba45)break;else _0x5ac5ce['push'](_0x5ac5ce['shift']());}catch(_0x5cce7a){_0x5ac5ce['push'](_0x5ac5ce['shift']());}}}(_0x237b,0xc173c));import{Plugin as _0x2108b3}from'ckeditor5/src/core.js';import{AIConnector as _0x59ee33}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x2a84e1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x19d674,ButtonView as _0x3fe558,ViewCollection as _0x196063,View as _0x24acc4}from'ckeditor5/src/ui.js';import{AIEditing as _0x4f41de}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x10fd41}from'./model/aiactionsinteraction.js';function _0x237b(){const _0x5bb461=['executeAction','setErrorState','_navigationNextButton','applySuggestion','static','_interaction','1064742VXWRLE','ai-request-aborted','isDocumentOperation','model','stopAutoScroll','toggleSuggestionDisplayMode','clone','stop','has','getSelectedContent','remove','_isNavigationPreviousButtonInView','_wrapWithCommonAncestors','areChangesVisible','clearLoading','pluginName','accepted','bodyView','addOperation','streaming','hideLoader','interactionFinished','getAncestors','Error\x20refreshing\x20interaction:','selectionRemoved','_setErrorState','actionName','get','Attribute','version','includes','listenTo','getDocumentContext','68awvnGa','updateContent','setChangeGroupState','TrackChanges','_isNavigationNextButtonInView','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','processor','TableSelection','modelToViewWithIds','_applyOperationsAsSuggestions','rootName','toolbar','4CVzxol','change','_navigateToPrevious','_createInteraction','catch','TrackChangesEditing','clearErrorState','isLoading','8FmjoQk','push','merge','editor','getLimitElement','stopListening','_interactions','mainView','balloonView','start','_customViews','setSelection','addNavigationItem','changeGroups','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_filterOperationsOutsideRange','operationsA','11piDwkZ','message','textContent','_navigationPreviousButton','getSelectedBlocks','ck-ai-interaction-counter','nodeAfter','stopInteraction','_execute','howMany','_aiConnector','icon','selection','createPositionAfter','getFirstRange','AIBalloon','batch','_disableCustomViews','queueEmptyPromise','createPositionBefore','AIActions','sourcePosition','documentContextContent','_clearLoadingState','133345LBMLQQ','_interactionParams','random','getChild','indexOf','insertSuggestion','10923970CbsZHY','bind','isPremiumPlugin','_setupCustomViews','span','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','dialogClosed','ai-no-track-changes','stickiness','_children','parent','root','_displayInteractionAtIndex','setLoading','hasPendingParts','replies','_clearInteractionHistory','close','getSelectionAsFragment','showChangesButton','range','insert','position','AI_ACTIONS_GENERIC_ERROR','getChildAtOffset','_clone','execute','applyOperation','_navigateToNext','path','replyChangeGroupStateUpdated','createRange','_stopInteraction','upsertAIActionRating','enqueue','getCommonAncestor','nextSibling','AI_ACTIONS_NEXT_INTERACTION','startsWith','setTemplate','_clearSuggestionContent','toData','add','_isAbortError','type','startAutoScroll','_appendChild','rename','_currentInteractionIndex','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','hideError','232746yodltx','pending','upsertCustomAIActionRating','showError','getRoot','getSelectedTableCells','abort','documentFragment','_applyChanges','schema','rejected','forEach','reinsert','plugins','$graveyard','_updateNavigationUI','open','_executeAction','aiBalloon','createPositionAt','_clearErrorState','slice','move','getOperations','requires','getRanges','11882178aNZLkH','actionCallId','map','end','focus','element','_promiseQueue','_refreshInteraction','AI_ACTIONS_TRY_AGAIN','data','replyCreated','signal','ai.availableReplyActions','state','_getExecuteDataRegular','AI_ACTIONS_PREVIOUS_INTERACTION','filter','replyContentUpdated','locale','hasError','set','length','Error\x20updating\x20content\x20in\x20replyCreated:','removeNavigationItem','_setLoadingState','ck-ai-navigation-button\x20ck-ai-previous-button','162878DKNisP','split','history','_navigationCounter','document','3715019brezvB','first','AIConnector','error','_balloonShowDiff','showLoader','_anchorOperation','isEnabled','1/1','baseVersion','config','ck-ai-custom-action-button','isCollapsed','miniToolbarView','_isNavigationCounterInView','isBusy','ck-ai-navigation-button\x20ck-ai-next-button'];_0x237b=function(){return _0x5bb461;};return _0x237b();}import{CKEditorError as _0x5ab4f3,first as _0x37700b}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x53bc7c,IconRefresh as _0x374f46,IconNextArrow as _0x4c8ff4,IconPreviousArrow as _0x58c583,IconShowChangesOff as _0x449584}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x494c9c}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xa1e71}from'../aichat/utils/promisequeue.js';function _0xe913(_0x55a22f,_0x2d3a02){const _0x237b97=_0x237b();return _0xe913=function(_0xe91331,_0xdbe108){_0xe91331=_0xe91331-0xaa;let _0x233ae7=_0x237b97[_0xe91331];return _0x233ae7;},_0xe913(_0x55a22f,_0x2d3a02);}import{getTranslation as _0x55c48a}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2dcd28}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x8ba5bb}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4e8746,getOperationsFromReply as _0x5a461d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0xdc8e31,ModelRange as _0x382a96,ModelPosition as _0x4c1c9d,_DetachOperation as _0x5e2f41,transformOperationSets as _0x3af8c9}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x2d5e38}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x2108b3{static get[_0x24b0f1(0x16b)](){return[_0x59ee33,_0x19d674,_0x4f41de,_0x494c9c,_0x8ba5bb];}static get[_0x24b0f1(0xc9)](){const _0x330c45=_0x24b0f1;return _0x330c45(0x115);}static get[_0x24b0f1(0xe0)](){return!0x0;}static get[_0x24b0f1(0x121)](){return!0x0;}[_0x24b0f1(0x10b)];[_0x24b0f1(0xf6)]=[];[_0x24b0f1(0x14f)]=0x0;[_0x24b0f1(0x11a)];[_0x24b0f1(0x190)]=!0x1;[_0x24b0f1(0xfa)]=new _0x196063();[_0x24b0f1(0x104)];[_0x24b0f1(0x18a)];[_0x24b0f1(0xb1)]=!0x1;[_0x24b0f1(0xb6)];[_0x24b0f1(0xc5)]=!0x1;[_0x24b0f1(0xdf)]=!0x1;[_0x24b0f1(0x173)];get[_0x24b0f1(0xb9)](){const _0x204211=_0x24b0f1;return this[_0x204211(0xf6)][this[_0x204211(0xf6)][_0x204211(0x182)]-0x1];}constructor(_0x43e26a){const _0x5b8e6c=_0x24b0f1;super(_0x43e26a),this[_0x5b8e6c(0x10b)]=this[_0x5b8e6c(0xf3)][_0x5b8e6c(0x160)][_0x5b8e6c(0xd5)](_0x5b8e6c(0x18e)),this[_0x5b8e6c(0x181)](_0x5b8e6c(0xb2),!0x1),this[_0x5b8e6c(0x173)]=new _0xa1e71(),this[_0x5b8e6c(0x122)]();}[_0x24b0f1(0x108)](){const _0x9e2f2=_0x24b0f1;this[_0x9e2f2(0x13f)]();}async[_0x24b0f1(0xb4)](_0x20a4c7,_0x3cdffe,_0x4e9e1c){const _0x1ead2f=_0x24b0f1;if(this[_0x1ead2f(0xf3)][_0x1ead2f(0x160)][_0x1ead2f(0xc2)](_0x1ead2f(0xe3))){if(this[_0x1ead2f(0xf3)][_0x1ead2f(0x160)][_0x1ead2f(0xd5)](_0x1ead2f(0xe3))[_0x1ead2f(0x158)]()){const {modelFragment:_0x5a7cf8,anchorData:_0x16b6d7}=this[_0x1ead2f(0x150)]();return this[_0x1ead2f(0x164)](_0x20a4c7,_0x5a7cf8,_0x16b6d7,_0x3cdffe,_0x4e9e1c);}}const {modelFragment:_0xfe523f,anchorData:_0x49c5be}=this[_0x1ead2f(0x17b)]();return this[_0x1ead2f(0x164)](_0x20a4c7,_0xfe523f,_0x49c5be,_0x3cdffe,_0x4e9e1c);}[_0x24b0f1(0x17b)](){const _0xaf347f=_0x24b0f1,_0x207f69=this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0x18b)][_0xaf347f(0x10d)];if(_0x207f69[_0xaf347f(0xaf)]){const _0x459109=_0x37700b(_0x207f69[_0xaf347f(0x105)]())||this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0x15c)][_0xaf347f(0xf4)](_0x207f69);this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0xe9)](_0x54dfd9=>{const _0x1c41db=_0xaf347f;_0x54dfd9[_0x1c41db(0xfb)](_0x459109,'in');});}const _0x4cff07=_0x207f69[_0xaf347f(0x10f)](),_0x6843c9=this[_0xaf347f(0xc6)](this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0xc3)](_0x207f69),_0x4cff07[_0xaf347f(0xf9)],_0x4cff07[_0xaf347f(0x170)]),_0x7027f3=_0x207f69[_0xaf347f(0x10f)]()[_0xaf347f(0xf9)],_0x4f788c=new Map();let _0x1fcd52=_0x6843c9;for(let _0x3a431d=0x0;_0x3a431d<_0x7027f3[_0xaf347f(0x13c)][_0xaf347f(0x182)];_0x3a431d++)_0x4f788c[_0xaf347f(0x181)](_0x1fcd52,_0x7027f3[_0xaf347f(0x13c)][_0x3a431d]),_0x1fcd52=_0x1fcd52[_0xaf347f(0x11c)](0x0);return{'modelFragment':_0x6843c9,'anchorData':_0x4f788c};}[_0x24b0f1(0x150)](){const _0xc3d409=_0x24b0f1,_0x1df86e=this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x18b)][_0xc3d409(0x10d)],_0x24e52f=this[_0xc3d409(0xf3)][_0xc3d409(0x160)][_0xc3d409(0xd5)](_0xc3d409(0xe3))[_0xc3d409(0x131)](),_0x19ee26=_0x1df86e[_0xc3d409(0x10f)]()[_0xc3d409(0xf9)][_0xc3d409(0x129)][_0xc3d409(0x129)],_0xfee8c4=this[_0xc3d409(0xc6)](_0x24e52f,this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x114)](_0x19ee26),this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x10e)](_0x19ee26)),_0x215f1d=_0x1df86e[_0xc3d409(0x10f)]()[_0xc3d409(0xf9)],_0x5024a0=new Map();let _0x3c3e51=_0xfee8c4;for(let _0x38f02c=0x0;_0x38f02c<_0x215f1d[_0xc3d409(0x13c)][_0xc3d409(0x182)];_0x38f02c++)if(_0x5024a0[_0xc3d409(0x181)](_0x3c3e51,_0x215f1d[_0xc3d409(0x13c)][_0x38f02c]),_0x38f02c<_0x215f1d[_0xc3d409(0x13c)][_0xc3d409(0x182)]-0x1)_0x3c3e51=_0x3c3e51[_0xc3d409(0x11c)](0x0);else{let _0xd90fee=_0x3c3e51[_0xc3d409(0x143)];for(;_0xd90fee;)_0x5024a0[_0xc3d409(0x181)](_0xd90fee,_0x215f1d[_0xc3d409(0x13c)][_0x38f02c]),_0xd90fee=_0xd90fee[_0xc3d409(0x143)];}return{'modelFragment':_0xfee8c4,'anchorData':_0x5024a0};}[_0x24b0f1(0x164)](_0x5720ba,_0x298598,_0x10a898,_0x114635,_0x19ec70){const _0x476a43=_0x24b0f1,_0x42b3c1=this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xd5)](_0x4f41de),_0x4371d2=this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xd5)](_0x494c9c),_0x319acd=this[_0x476a43(0xf3)][_0x476a43(0xbd)][_0x476a43(0x18b)][_0x476a43(0x10d)],_0x5906d0=_0x42b3c1[_0x476a43(0xe4)](_0x298598),_0x4d5c1d=this[_0x476a43(0xf3)][_0x476a43(0x176)][_0x476a43(0xe2)][_0x476a43(0x148)](_0x5906d0),_0x548257=this[_0x476a43(0xf3)][_0x476a43(0xbd)][_0x476a43(0x18b)][_0x476a43(0xd7)],_0x275195=[..._0x319acd[_0x476a43(0x16c)]()];let _0x1da99e=this[_0x476a43(0xf3)][_0x476a43(0xad)][_0x476a43(0xd5)](_0x476a43(0x179))||[..._0x2d5e38];this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xc2)](_0x476a43(0xde))||(_0x1da99e=_0x1da99e[_0x476a43(0x17d)](_0x160607=>_0x476a43(0x11e)!=_0x160607));const _0xd5fcd7=new _0x2a84e1(this[_0x476a43(0xf3)][_0x476a43(0x17f)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x476a43(0x10c),'customView':this[_0x476a43(0xfa)]},'showUnchangedParts':!0x0,'availableActions':_0x1da99e});return _0x4371d2[_0x476a43(0x163)]({'index':0x3e8*Math[_0x476a43(0x11b)]()%0x3e8,'title':_0x114635,'icon':_0x19ec70||_0x53bc7c,'mainView':_0xd5fcd7,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xc2)](_0x476a43(0xde)),'ranges':_0x275195}),this[_0x476a43(0x185)](_0xd5fcd7,_0x4371d2),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0xb7),()=>{const _0x384316=_0x476a43;this[_0x384316(0x15b)](_0x298598,_0x10a898,!0x1);}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0x11e),()=>{const _0x161700=_0x476a43;this[_0x161700(0x15b)](_0x298598,_0x10a898,!0x0);}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0xd2),()=>{const _0x3967a8=_0x476a43;this[_0x3967a8(0x13f)](),this[_0x3967a8(0x112)]();}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0x125),()=>{const _0x2c821e=_0x476a43;if(this[_0x2c821e(0xb9)]&&this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][_0x2c821e(0x182)]>0x0){const _0x514a1c=this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][_0x2c821e(0x182)]-0x1],_0x4e3d15=_0x514a1c[_0x2c821e(0xfd)][0x0];_0x4e3d15&&_0x2c821e(0x154)===_0x4e3d15[_0x2c821e(0x17a)]&&_0x514a1c[_0x2c821e(0xdd)](0x0,_0x2c821e(0x15d));}this[_0x2c821e(0x13f)](),this[_0x2c821e(0x12f)](),this[_0x2c821e(0xf5)](_0x4371d2);}),this[_0x476a43(0xeb)](_0x4d5c1d,_0x548257,_0xd5fcd7,_0x4371d2,_0x5720ba);}[_0x24b0f1(0xc6)](_0x180058,_0x382d2b,_0x1dff9a){const _0x5d18b2=_0x24b0f1,_0x41abb0=this[_0x5d18b2(0xf3)][_0x5d18b2(0xbd)][_0x5d18b2(0x13e)](_0x382d2b,_0x1dff9a)[_0x5d18b2(0x142)](),_0x856c15=_0x41abb0['is'](_0x5d18b2(0x15a))?[]:_0x41abb0[_0x5d18b2(0xd0)]({'includeSelf':!0x0})[_0x5d18b2(0x168)](0x1);if(_0x856c15[_0x5d18b2(0x182)]){const _0x4477b6=_0x856c15[_0x5d18b2(0x16f)](_0x58168a=>_0x58168a[_0x5d18b2(0x138)](!0x1));for(let _0x201b74=0x1;_0x201b74<_0x4477b6[_0x5d18b2(0x182)];_0x201b74++)_0x4477b6[_0x201b74-0x1][_0x5d18b2(0x14d)](_0x4477b6[_0x201b74]);return _0x4477b6[_0x4477b6[_0x5d18b2(0x182)]-0x1][_0x5d18b2(0x14d)](_0x180058),new _0xdc8e31(_0x4477b6[0x0]);}return _0x180058;}async[_0x24b0f1(0xeb)](_0x24a26e,_0x4b1087,_0xc25110,_0x413cb2,_0x3eed27){const _0x708b02=_0x24b0f1,_0x1483a0=this[_0x708b02(0xf3)];this[_0x708b02(0x11a)]={'action':_0x3eed27,'content':_0x24a26e,'version':_0x4b1087,'mainView':_0xc25110,'aiBalloon':_0x413cb2};const _0xa748bd=new _0x10fd41({'connector':this[_0x708b02(0x10b)],'editor':_0x1483a0,'content':_0x24a26e,'version':_0x4b1087,..._0x3eed27});this[_0x708b02(0xf6)][_0x708b02(0xf1)](_0xa748bd),_0xc25110[_0x708b02(0x152)]();const _0x54967e=(_0x2a1fe5,_0xf89ded,_0x5b1b52=!0x1,_0xa392a2=_0x708b02(0xcd))=>this[_0x708b02(0x173)][_0x708b02(0x141)](async _0x5c5663=>{const _0x3cdaf3=_0x708b02;try{const _0x478ce9=_0x2dcd28({'editor':_0x1483a0,'changeGroups':_0x2a1fe5[_0x3cdaf3(0xfd)],'documentContextContent':_0x2a1fe5[_0x3cdaf3(0x117)],'showDiff':_0x5b1b52,'trimUnchanged':!0x1});await _0xf89ded[_0x3cdaf3(0xdc)]({'parts':_0x478ce9,'renderingStrategy':_0xa392a2,'abortSignal':_0x5c5663});}catch(_0x36b028){if(this[_0x3cdaf3(0x14a)](_0x36b028))return;throw _0x36b028;}});this[_0x708b02(0xb9)]['on'](_0x708b02(0x177),(_0xeb88b7,_0x33137d)=>{const _0x328912=_0x708b02;_0xc25110[_0x328912(0xce)](),_0x413cb2[_0x328912(0x14c)](),_0x54967e(_0x33137d,_0xc25110)[_0x328912(0xec)](_0x1bdee8=>{const _0x444013=_0x328912;this[_0x444013(0x14a)](_0x1bdee8)||(console[_0x444013(0x18f)](_0x444013(0x183),_0x1bdee8),this[_0x444013(0xd3)](_0xa748bd,_0xc25110));});}),this[_0x708b02(0xb9)]['on'](_0x708b02(0x17e),(_0x3ac153,_0x50c15d)=>{const _0x58f49e=_0x708b02;_0x54967e(_0x50c15d,_0xc25110)[_0x58f49e(0xec)](_0x2b6897=>{const _0x2be997=_0x58f49e;this[_0x2be997(0x14a)](_0x2b6897)||(console[_0x2be997(0x18f)](_0x2be997(0xfe),_0x2b6897),this[_0x2be997(0xd3)](_0xa748bd,_0xc25110));});}),this[_0x708b02(0xb9)]['on'](_0x708b02(0xcf),async()=>{const _0x54fd91=_0x708b02;try{await this[_0x54fd91(0x118)](_0xc25110,_0x413cb2),this[_0x54fd91(0x162)](),await this[_0x54fd91(0x173)][_0x54fd91(0x113)];}catch(_0x33dae7){this[_0x54fd91(0x14a)](_0x33dae7)||(console[_0x54fd91(0x18f)](_0x54fd91(0x124),_0x33dae7),this[_0x54fd91(0xd3)](_0xa748bd,_0xc25110));}finally{_0x413cb2[_0x54fd91(0xbe)]();}}),this[_0x708b02(0xd9)](_0xc25110,_0x708b02(0xbf),async(_0x572ac6,{showDiff:_0x211619})=>{const _0x2036b6=_0x708b02;try{this[_0x2036b6(0x190)]=_0x211619;const _0xb667d4=this[_0x2036b6(0xb9)][_0x2036b6(0x12e)][this[_0x2036b6(0xb9)][_0x2036b6(0x12e)][_0x2036b6(0x182)]-0x1];_0xb667d4&&await _0x54967e(_0xb667d4,_0xc25110,_0x211619,_0x2036b6(0xb8));}catch(_0x573cae){this[_0x2036b6(0x14a)](_0x573cae)||(console[_0x2036b6(0x18f)](_0x2036b6(0x151),_0x573cae),this[_0x2036b6(0xd3)](_0xa748bd,_0xc25110));}}),this[_0x708b02(0xb9)]['on'](_0x708b02(0x13d),(_0x22db26,{reply:_0x1f1c05})=>{const _0x5bae13=_0x708b02,_0x1b4b5f={'positiveCount':_0x1f1c05[_0x5bae13(0xfd)][_0x5bae13(0x17d)](_0x349913=>_0x5bae13(0xca)===_0x349913[_0x5bae13(0x17a)])[_0x5bae13(0x182)],'totalCount':_0x1f1c05[_0x5bae13(0xfd)][_0x5bae13(0x182)]},_0x4c71c8=this[_0x5bae13(0xb9)][_0x5bae13(0x16e)],_0x775d91=this[_0x5bae13(0xb9)][_0x5bae13(0xd4)];_0x775d91?this[_0x5bae13(0x10b)][_0x5bae13(0x140)](_0x775d91,_0x4c71c8,_0x1b4b5f):this[_0x5bae13(0x10b)][_0x5bae13(0x155)](_0x4c71c8,_0x1b4b5f);}),this[_0x708b02(0x185)](_0xc25110,_0x413cb2);try{const _0xe350b2=await this[_0x708b02(0xb9)][_0x708b02(0xf9)]();return this[_0x708b02(0x162)](),_0xe350b2;}catch(_0xeff0e3){if(this[_0x708b02(0x14a)](_0xeff0e3))return;_0xc25110[_0x708b02(0xce)](),this[_0x708b02(0xd3)](_0xa748bd,_0xc25110);}}[_0x24b0f1(0x15b)](_0x27c7bd,_0x133287,_0x595bea){const _0x43747c=_0x24b0f1,_0x1091d3=this[_0x43747c(0xf3)];if(_0x595bea&&!_0x1091d3[_0x43747c(0x160)][_0x43747c(0xc2)](_0x43747c(0xde)))throw new _0x5ab4f3(_0x43747c(0x126),null);const _0x4ac047=this[_0x43747c(0xf3)][_0x43747c(0x160)][_0x43747c(0xd5)](_0x8ba5bb),_0x14cac6=this[_0x43747c(0xb9)],_0x3b156d=this[_0x43747c(0xb9)][_0x43747c(0x12e)][this[_0x43747c(0xb9)][_0x43747c(0x12e)][_0x43747c(0x182)]-0x1],_0x30af1b=_0x3b156d[_0x43747c(0xfd)];_0x3b156d[_0x43747c(0xdd)](0x0,_0x43747c(0xca));let _0x40f17a=_0x5a461d({'editor':_0x1091d3,'reply':_0x3b156d,'interaction':_0x14cac6,'groups':_0x30af1b,'transform':!0x1,'documentCompare':_0x4ac047,'documentCompareOptions':{'anchor':_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x166)](_0x27c7bd,0x0),'markDeletions':_0x595bea}});_0x40f17a=this[_0x43747c(0xff)](_0x40f17a,_0x133287);for(const _0x41b663 of _0x40f17a)this[_0x43747c(0x192)](_0x133287,_0x41b663,_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)][_0x43747c(0x157)]());const _0x4d2adc=_0x14cac6[_0x43747c(0xda)]()[_0x43747c(0xd7)],_0x12239f=_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)][_0x43747c(0x189)][_0x43747c(0x16a)](_0x4d2adc),_0x3ff74b={'document':_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3d4c00=_0x3af8c9(_0x40f17a,_0x12239f,_0x3ff74b)[_0x43747c(0x100)];_0x1091d3[_0x43747c(0xbd)][_0x43747c(0xe9)](_0x5f4089=>{const _0x4d98f6=_0x43747c;if(_0x5f4089[_0x4d98f6(0xfb)](_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x18b)][_0x4d98f6(0x10d)][_0x4d98f6(0x171)]),_0x595bea)_0x1091d3[_0x4d98f6(0x160)][_0x4d98f6(0xd5)](_0x4d98f6(0xed))[_0x4d98f6(0xe5)](_0x3d4c00);else{for(const _0x1b1665 of _0x3d4c00)_0x1b1665[_0x4d98f6(0xac)]=_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x18b)][_0x4d98f6(0xd7)],_0x4e8746(_0x1091d3,_0x1b1665),_0x5f4089[_0x4d98f6(0x111)][_0x4d98f6(0xcc)](_0x1b1665),_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x13a)](_0x1b1665);}}),this[_0x43747c(0xf3)][_0x43747c(0x160)][_0x43747c(0xd5)](_0x43747c(0x110))[_0x43747c(0x130)]();}[_0x24b0f1(0xff)](_0x3186bc,_0x5eb97a){const _0x46428a=_0x24b0f1;return _0x3186bc[_0x46428a(0x17d)](_0x246f43=>{const _0x128d87=_0x46428a;if(_0x128d87(0x14e)==_0x246f43[_0x128d87(0x14b)]){const _0x2d15b1=_0x246f43[_0x128d87(0x135)][_0x128d87(0x107)];return!_0x5eb97a[_0x128d87(0xc2)](_0x2d15b1);}if(_0x246f43[_0x128d87(0x14b)][_0x128d87(0x11d)](_0x128d87(0xd6))>-0x1){const _0x3ef77e=_0x246f43[_0x128d87(0x133)][_0x128d87(0xf9)][_0x128d87(0x107)];return!_0x5eb97a[_0x128d87(0xc2)](_0x3ef77e);}return!0x0;});}[_0x24b0f1(0x192)](_0x25a19d,_0x12d2cb,_0x86675a){const _0x299034=_0x24b0f1,_0x5e3713=_0x12d2cb[_0x299034(0xc0)]();for(const _0x2dbfe3 in _0x12d2cb){const _0x1d4509=_0x12d2cb[_0x2dbfe3];_0x1d4509 instanceof _0x382a96?_0x12d2cb[_0x2dbfe3]=new _0x382a96(_0x4623aa(_0x1d4509[_0x299034(0xf9)]),_0x4623aa(_0x1d4509[_0x299034(0x170)])):_0x1d4509 instanceof _0x4c1c9d&&(_0x12d2cb[_0x2dbfe3]=_0x4623aa(_0x1d4509));}if([_0x299034(0x134),_0x299034(0x169),_0x299034(0xc4),_0x299034(0x15f),_0x299034(0x188),_0x299034(0xf2)][_0x299034(0xd8)](_0x5e3713[_0x299034(0x14b)])){if(_0x5e3713[_0x299034(0xbc)]=!0x1,_0x5e3713[_0x299034(0xac)]=null,_0x299034(0xc4)==_0x5e3713[_0x299034(0x14b)]){const _0xd1dc5b=_0x5e3713[_0x299034(0x116)],_0x1513e2=_0x5e3713[_0x299034(0x10a)];new _0x5e2f41(_0xd1dc5b,_0x1513e2)[_0x299034(0x109)]();}else _0x5e3713[_0x299034(0x109)]();}function _0x4623aa(_0x5742be){const _0xd3fa42=_0x299034;if(_0xd3fa42(0x161)==_0x5742be[_0xd3fa42(0x12a)][_0xd3fa42(0xe6)])return _0x5742be;const _0x5f2cbb=[];let _0x41b78d=_0x5742be[_0xd3fa42(0x12a)];for(let _0x5ba6fb=0x0;_0x5ba6fb<_0x5742be[_0xd3fa42(0x13c)][_0xd3fa42(0x182)];_0x5ba6fb++){const _0x5094af=_0x25a19d[_0xd3fa42(0xd5)](_0x41b78d)||0x0;_0x5f2cbb[_0x5ba6fb]=_0x5742be[_0xd3fa42(0x13c)][_0x5ba6fb]+_0x5094af,_0x41b78d=_0x41b78d[_0xd3fa42(0x137)](_0x5742be[_0xd3fa42(0x13c)][_0x5ba6fb]);}return new _0x4c1c9d(_0x86675a,_0x5f2cbb,_0x5742be[_0xd3fa42(0x127)]);}}[_0x24b0f1(0x174)](){const _0xd93e9f=_0x24b0f1;if(!this[_0xd93e9f(0x11a)])return;this[_0xd93e9f(0xf6)][_0xd93e9f(0x182)]>0x0&&this[_0xd93e9f(0x13f)](),this[_0xd93e9f(0x14f)]=0x0,this[_0xd93e9f(0x190)]=!0x1;const {action:_0x1fb437,content:_0x271b80,version:_0x4eb9e3,mainView:_0x14dc51,aiBalloon:_0x2cb149}=this[_0xd93e9f(0x11a)];_0x14dc51[_0xd93e9f(0xc7)]=!0x1,_0x14dc51[_0xd93e9f(0x152)](),this[_0xd93e9f(0x167)](_0x14dc51,_0x2cb149);const _0x2f3870=_0x14dc51;_0x2f3870[_0xd93e9f(0xb0)]&&_0x2f3870[_0xd93e9f(0xb0)][_0xd93e9f(0x132)]&&_0x2f3870[_0xd93e9f(0xb0)][_0xd93e9f(0x132)][_0xd93e9f(0x181)]({'isOn':!0x1,'icon':_0x449584}),this[_0xd93e9f(0x147)](_0x14dc51),_0x14dc51[_0xd93e9f(0x191)](),this[_0xd93e9f(0x162)](),this[_0xd93e9f(0xf5)](_0x14dc51),this[_0xd93e9f(0xeb)](_0x271b80,_0x4eb9e3,_0x14dc51,_0x2cb149,_0x1fb437)[_0xd93e9f(0xec)](_0x525c62=>{const _0x2e2e6a=_0xd93e9f;this[_0x2e2e6a(0x14a)](_0x525c62)||console[_0x2e2e6a(0x18f)](_0x2e2e6a(0xd1),_0x525c62);});}[_0x24b0f1(0x147)](_0x2c6827){const _0x26350a=_0x24b0f1,_0x5bf867=_0x2c6827[_0x26350a(0xcb)][_0x26350a(0x128)];for(;_0x5bf867[_0x26350a(0x182)]>0x0;)_0x5bf867[_0x26350a(0xc4)](_0x5bf867[_0x26350a(0x18d)]);_0x2c6827[_0x26350a(0xcb)][_0x26350a(0x12d)]=!0x1;}[_0x24b0f1(0x14a)](_0x5db627){const _0x98383=_0x24b0f1;return!!_0x5db627[_0x98383(0x102)]&&_0x5db627[_0x98383(0x102)][_0x98383(0x145)](_0x98383(0xbb));}[_0x24b0f1(0x12f)](){const _0x258001=_0x24b0f1;this[_0x258001(0xf6)]=[],this[_0x258001(0x11a)]=void 0x0,this[_0x258001(0x14f)]=0x0,this[_0x258001(0x162)]();}[_0x24b0f1(0x13f)](){const _0x39dde3=_0x24b0f1;this[_0x39dde3(0xb9)]&&this[_0x39dde3(0xb9)][_0x39dde3(0xc1)](),this[_0x39dde3(0x173)][_0x39dde3(0x159)](),this[_0x39dde3(0xb2)]=!0x1,this[_0x39dde3(0x11a)]&&this[_0x39dde3(0x11a)][_0x39dde3(0x165)][_0x39dde3(0xbe)]();}[_0x24b0f1(0x122)](){const _0x14ed58=_0x24b0f1,_0x19f32c=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x20dc3e=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x3cdbf2=new _0x24acc4(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x290921=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]);_0x19f32c[_0x14ed58(0x181)]({'icon':_0x374f46,'label':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x175)),'tooltip':!0x0,'class':_0x14ed58(0xae)}),_0x20dc3e[_0x14ed58(0x181)]({'icon':_0x58c583,'tooltip':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x17c)),'class':_0x14ed58(0x186)}),_0x3cdbf2[_0x14ed58(0x146)]({'tag':_0x14ed58(0x123),'attributes':{'class':[_0x14ed58(0x106)]},'children':[_0x14ed58(0xab)]}),_0x290921[_0x14ed58(0x181)]({'icon':_0x4c8ff4,'tooltip':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x144)),'class':_0x14ed58(0xb3)}),_0x19f32c[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x447f49=>!_0x447f49),_0x19f32c['on'](_0x14ed58(0x139),()=>{const _0xbdb0c0=_0x14ed58;this[_0xbdb0c0(0x174)]();}),_0x20dc3e[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x1c0ffe=>!_0x1c0ffe),_0x20dc3e['on'](_0x14ed58(0x139),()=>{const _0x5701a4=_0x14ed58;this[_0x5701a4(0xea)]();}),_0x290921[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x293448=>!_0x293448),_0x290921['on'](_0x14ed58(0x139),()=>{const _0x44bef3=_0x14ed58;this[_0x44bef3(0x13b)]();}),this[_0x14ed58(0x104)]=_0x20dc3e,this[_0x14ed58(0x18a)]=_0x3cdbf2,this[_0x14ed58(0xb6)]=_0x290921,this[_0x14ed58(0xfa)][_0x14ed58(0x149)](_0x19f32c);}[_0x24b0f1(0xea)](){const _0xdfe6e6=_0x24b0f1,_0x596ae1=this[_0xdfe6e6(0xf6)][_0xdfe6e6(0x182)];this[_0xdfe6e6(0x14f)]<_0x596ae1-0x1&&this[_0xdfe6e6(0x12b)](this[_0xdfe6e6(0x14f)]+0x1);}[_0x24b0f1(0x13b)](){const _0x501448=_0x24b0f1;this[_0x501448(0x14f)]>0x0&&this[_0x501448(0x12b)](this[_0x501448(0x14f)]-0x1);}async[_0x24b0f1(0x12b)](_0x1440f5){const _0x351484=_0x24b0f1;if(!this[_0x351484(0x11a)])return;this[_0x351484(0x14f)]=_0x1440f5;const {mainView:_0x3fce09}=this[_0x351484(0x11a)],_0x25c84f=this[_0x351484(0xf6)][this[_0x351484(0xf6)][_0x351484(0x182)]-0x1-this[_0x351484(0x14f)]];if(!_0x25c84f)return;if(_0x25c84f[_0x351484(0x180)])return this[_0x351484(0xd3)](_0x25c84f,_0x3fce09),void this[_0x351484(0x162)]();if(!_0x25c84f[_0x351484(0x12e)][_0x351484(0x182)])return;_0x3fce09[_0x351484(0x152)](),this[_0x351484(0x11a)]&&this[_0x351484(0x167)](_0x3fce09,this[_0x351484(0x11a)][_0x351484(0x165)]);const _0x1f91da=_0x25c84f[_0x351484(0x12e)][_0x25c84f[_0x351484(0x12e)][_0x351484(0x182)]-0x1];if(_0x1f91da){const _0x3637be=this[_0x351484(0xf3)];this[_0x351484(0x147)](_0x3fce09);try{const _0x2f30a6=_0x2dcd28({'editor':_0x3637be,'changeGroups':_0x1f91da[_0x351484(0xfd)],'documentContextContent':_0x1f91da[_0x351484(0x117)],'showDiff':this[_0x351484(0x190)],'trimUnchanged':!0x1});this[_0x351484(0x147)](_0x3fce09),await new Promise(_0x43a6d3=>setTimeout(_0x43a6d3,0x32)),await _0x3fce09[_0x351484(0xdc)]({'parts':_0x2f30a6,'renderingStrategy':_0x351484(0xb8),'abortSignal':new AbortController()[_0x351484(0x178)]});}catch(_0x255d4d){this[_0x351484(0x14a)](_0x255d4d)||console[_0x351484(0x18f)](_0x351484(0xe1),_0x255d4d);}}this[_0x351484(0x162)]();}[_0x24b0f1(0x162)](){const _0x413ec6=_0x24b0f1;if(!this[_0x413ec6(0x104)]||!this[_0x413ec6(0x18a)]||!this[_0x413ec6(0xb6)])return;const _0x1ff6d7=this[_0x413ec6(0xf6)][_0x413ec6(0x182)],_0x391ce2=_0x1ff6d7>0x1,_0x29fe97=this[_0x413ec6(0x11a)]?.[_0x413ec6(0xf7)];if(_0x391ce2){this[_0x413ec6(0xc5)]||this[_0x413ec6(0xb1)]||this[_0x413ec6(0xdf)]||(this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0x104)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0x104)]),this[_0x413ec6(0xc5)]=!0x0,this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0x18a)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0x18a)]),this[_0x413ec6(0xb1)]=!0x0,this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0xb6)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0xb6)]),this[_0x413ec6(0xdf)]=!0x0);const _0x20f842=_0x1ff6d7-this[_0x413ec6(0x14f)];this[_0x413ec6(0x18a)][_0x413ec6(0x172)]&&(this[_0x413ec6(0x18a)][_0x413ec6(0x172)][_0x413ec6(0x103)]=_0x20f842+'/'+_0x1ff6d7),this[_0x413ec6(0x104)][_0x413ec6(0xaa)]=this[_0x413ec6(0x14f)]<_0x1ff6d7-0x1,this[_0x413ec6(0xb6)][_0x413ec6(0xaa)]=this[_0x413ec6(0x14f)]>0x0;}else(this[_0x413ec6(0xc5)]||this[_0x413ec6(0xb1)]||this[_0x413ec6(0xdf)])&&(this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0x104)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0x104)]),this[_0x413ec6(0xc5)]=!0x1,this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0x18a)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0x18a)]),this[_0x413ec6(0xb1)]=!0x1,this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0xb6)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0xb6)]),this[_0x413ec6(0xdf)]=!0x1);}[_0x24b0f1(0x185)](_0x4d1d0e,_0x535964){const _0x449b95=_0x24b0f1;_0x4d1d0e[_0x449b95(0x12c)](),_0x535964[_0x449b95(0xf8)][_0x449b95(0x12c)](),this[_0x449b95(0xb2)]=!0x0;}async[_0x24b0f1(0xd3)](_0x2b6f0c,_0x53405a){const _0x2c7fa3=_0x24b0f1,_0x2a859b=_0x55c48a(this[_0x2c7fa3(0xf3)][_0x2c7fa3(0x17f)],_0x2c7fa3(0x136));_0x53405a[_0x2c7fa3(0x156)](_0x2a859b),_0x2b6f0c[_0x2c7fa3(0x180)]=!0x0,await this[_0x2c7fa3(0x173)][_0x2c7fa3(0x113)],_0x53405a[_0x2c7fa3(0xb5)](),this[_0x2c7fa3(0x11a)]?.[_0x2c7fa3(0x165)][_0x2c7fa3(0xf8)][_0x2c7fa3(0xe7)]&&(this[_0x2c7fa3(0x11a)][_0x2c7fa3(0x165)][_0x2c7fa3(0xf8)][_0x2c7fa3(0xe7)][_0x2c7fa3(0xef)]=!0x0);}[_0x24b0f1(0x167)](_0x318be0,_0x526557){const _0x4191ab=_0x24b0f1;_0x318be0[_0x4191ab(0xee)](),_0x526557[_0x4191ab(0xf8)][_0x4191ab(0xe7)]&&(_0x526557[_0x4191ab(0xf8)][_0x4191ab(0xe7)][_0x4191ab(0xef)]=!0x1);}async[_0x24b0f1(0x118)](_0xd54f8,_0x1623c9){const _0x59dfbd=_0x24b0f1;await this[_0x59dfbd(0x173)][_0x59dfbd(0x113)],this[_0x59dfbd(0xb2)]=!0x1,_0xd54f8[_0x59dfbd(0xc8)](),_0x1623c9[_0x59dfbd(0xf8)][_0x59dfbd(0xc8)]();}[_0x24b0f1(0x112)](){const _0x2bf084=_0x24b0f1;this[_0x2bf084(0xfa)][_0x2bf084(0x15e)](_0x22c9d3=>{const _0x53714b=_0x2bf084;_0x53714b(0xaa)in _0x22c9d3&&(_0x22c9d3[_0x53714b(0xaa)]=!0x1);});}}
|
|
23
|
+
const _0x2a209d=_0x17ca;(function(_0x18fcdd,_0x393334){const _0xef2be0=_0x17ca,_0x4aef93=_0x18fcdd();while(!![]){try{const _0x231a03=-parseInt(_0xef2be0(0x229))/0x1+parseInt(_0xef2be0(0x1e6))/0x2*(parseInt(_0xef2be0(0x1e1))/0x3)+parseInt(_0xef2be0(0x218))/0x4*(-parseInt(_0xef2be0(0x281))/0x5)+-parseInt(_0xef2be0(0x1c7))/0x6*(-parseInt(_0xef2be0(0x1e2))/0x7)+parseInt(_0xef2be0(0x1d6))/0x8+parseInt(_0xef2be0(0x25c))/0x9*(parseInt(_0xef2be0(0x271))/0xa)+parseInt(_0xef2be0(0x269))/0xb*(-parseInt(_0xef2be0(0x237))/0xc);if(_0x231a03===_0x393334)break;else _0x4aef93['push'](_0x4aef93['shift']());}catch(_0x10dbd4){_0x4aef93['push'](_0x4aef93['shift']());}}}(_0x3ca7,0xbc559));import{Plugin as _0x51cf54}from'ckeditor5/src/core.js';import{AIConnector as _0x149cb9}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xd26322}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1da137,ButtonView as _0x5a9a3a,ViewCollection as _0x3235b0,View as _0x25f6d3}from'ckeditor5/src/ui.js';import{AIEditing as _0x36edd8}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x365cb0}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1d5010,first as _0xedbfa0}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x55b9c9,IconRefresh as _0x59f292,IconNextArrow as _0x1b9335,IconPreviousArrow as _0x131696,IconShowChangesOff as _0x1150fd}from'@ckeditor/ckeditor5-icons';function _0x17ca(_0x4d30a9,_0x45d0a6){const _0x3ca7e7=_0x3ca7();return _0x17ca=function(_0x17ca72,_0x4de65c){_0x17ca72=_0x17ca72-0x1c5;let _0x17dcac=_0x3ca7e7[_0x17ca72];return _0x17dcac;},_0x17ca(_0x4d30a9,_0x45d0a6);}import{AIBalloon as _0x3b3ca9}from'../aiballoon/aiballoon.js';function _0x3ca7(){const _0x2fdc44=['close','actionName','TrackChanges','_navigateToNext','documentFragment','type','hasError','getFirstRange','getChild','6668552FDKInL','rename','rootName','_disableCustomViews','showChangesButton','_setErrorState','execute','AIActions','_navigateToPrevious','isBusy','clone','9XfXfem','19362tsJJtV','clearErrorState','pluginName','_displayInteractionAtIndex','775780qnbmUQ','createPositionBefore','clearLoading','startsWith','hideError','includes','replyContentUpdated','_aiConnector','streaming','toggleSuggestionDisplayMode','setLoading','upsertCustomAIActionRating','TrackChangesEditing','selectionRemoved','hideLoader','_updateNavigationUI','removeNavigationItem','AIConnector','actionCallId','isOfficialPlugin','$graveyard','documentContextContent','enqueue','root','modelToViewWithIds','insertSuggestion','add','getSelectedBlocks','ck-ai-interaction-counter','error','sourcePosition','_navigationCounter','_applyOperationsAsSuggestions','TableSelection','_clearErrorState','_clearSuggestionContent','get','_interactionParams','processor','ck-ai-navigation-button\x20ck-ai-previous-button','nodeAfter','set','ai-request-aborted','toData','focus','changeGroups','_interactions','_filterOperationsOutsideRange','_isNavigationPreviousButtonInView','AI_ACTIONS_NEXT_INTERACTION','630156emlJQO','config','isLoading','_customViews','reinsert','queueEmptyPromise','document','aiBalloon','AI_ACTIONS_GENERIC_ERROR','getSelectedContent','isEnabled','plugins','signal','state','1/1','areChangesVisible','open','802662ZJTXOS','icon','stop','ck-ai-custom-action-button','move','getSelectionAsFragment','createRange','nextSibling','_stopInteraction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_appendChild','hasPendingParts','toolbar','forEach','168bTwaPO','howMany','insert','map','getRanges','getChildAtOffset','model','updateContent','_getExecuteDataInTable','version','path','_isNavigationNextButtonInView','start','selection','merge','schema','_navigationPreviousButton','stickiness','dialogClosed','split','_isNavigationCounterInView','_balloonShowDiff','requires','getSelectedTableCells','Error\x20updating\x20content\x20in\x20replyCreated:','first','_setupCustomViews','_navigationNextButton','message','_refreshInteraction','createPositionAt','slice','Error\x20refreshing\x20interaction:','ck-ai-navigation-button\x20ck-ai-next-button','getAncestors','stopInteraction','rejected','42849yIKOSO','ai.availableReplyActions','getOperations','data','miniToolbarView','getDocumentContext','length','locale','setChangeGroupState','interactionFinished','accepted','history','getRoot','834460SYQNpA','remove','_interaction','bind','showLoader','_children','startAutoScroll','replies','2670SBpqGa','end','balloonView','AI_ACTIONS_TRY_AGAIN','editor','getLimitElement','_applyChanges','applySuggestion','_currentInteractionIndex','addNavigationItem','Error\x20updating\x20content\x20during\x20navigation:','operationsA','catch','static','baseVersion','has','45psNgCV','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','indexOf','setSelection','showError','range','_clone','stopListening','abort','replyCreated','_getExecuteDataRegular','isCollapsed','getCommonAncestor','textContent','stopAutoScroll','createPositionAfter','applyOperation','_setLoadingState','Attribute','pending','upsertAIActionRating','_execute','_executeAction','_clearInteractionHistory','setTemplate','push','executeAction','_anchorOperation','_isAbortError','isDocumentOperation','_wrapWithCommonAncestors','isPremiumPlugin','element','_clearLoadingState','replyChangeGroupStateUpdated','AIBalloon','listenTo','setErrorState','ai-no-track-changes','bodyView','position','batch','random','parent','AI_ACTIONS_PREVIOUS_INTERACTION','span','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','filter','1704TEweEW','_createInteraction','change','addOperation','_promiseQueue','mainView'];_0x3ca7=function(){return _0x2fdc44;};return _0x3ca7();}import{PromiseQueue as _0x2e117e}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1a21a1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x415c42}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x465adf}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x36ff6b,getOperationsFromReply as _0x4debfb}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x2b039f,ModelRange as _0x148c2e,ModelPosition as _0x524415,_DetachOperation as _0x254c03,transformOperationSets as _0x156fa3}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x193822}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x51cf54{static get[_0x2a209d(0x24d)](){return[_0x149cb9,_0x1da137,_0x36edd8,_0x3b3ca9,_0x465adf];}static get[_0x2a209d(0x1e4)](){const _0xf20278=_0x2a209d;return _0xf20278(0x1dd);}static get[_0x2a209d(0x1f9)](){return!0x0;}static get[_0x2a209d(0x2a0)](){return!0x0;}[_0x2a209d(0x1ed)];[_0x2a209d(0x214)]=[];[_0x2a209d(0x279)]=0x0;[_0x2a209d(0x20b)];[_0x2a209d(0x24c)]=!0x1;[_0x2a209d(0x21b)]=new _0x3235b0();[_0x2a209d(0x247)];[_0x2a209d(0x205)];[_0x2a209d(0x24b)]=!0x1;[_0x2a209d(0x252)];[_0x2a209d(0x216)]=!0x1;[_0x2a209d(0x242)]=!0x1;[_0x2a209d(0x1cb)];get[_0x2a209d(0x26b)](){const _0x2d393c=_0x2a209d;return this[_0x2d393c(0x214)][this[_0x2d393c(0x214)][_0x2d393c(0x262)]-0x1];}constructor(_0x5a188d){const _0x3564f8=_0x2a209d;super(_0x5a188d),this[_0x3564f8(0x1ed)]=this[_0x3564f8(0x275)][_0x3564f8(0x223)][_0x3564f8(0x20a)](_0x3564f8(0x1f7)),this[_0x3564f8(0x20f)](_0x3564f8(0x1df),!0x1),this[_0x3564f8(0x1cb)]=new _0x2e117e(),this[_0x3564f8(0x251)]();}[_0x2a209d(0x25a)](){const _0x45babd=_0x2a209d;this[_0x45babd(0x231)]();}async[_0x2a209d(0x29b)](_0x3c2701,_0xb54a14,_0x15b2b6){const _0x4ad8f9=_0x2a209d;if(this[_0x4ad8f9(0x275)][_0x4ad8f9(0x223)][_0x4ad8f9(0x280)](_0x4ad8f9(0x207))){if(this[_0x4ad8f9(0x275)][_0x4ad8f9(0x223)][_0x4ad8f9(0x20a)](_0x4ad8f9(0x207))[_0x4ad8f9(0x24e)]()){const {modelFragment:_0x5b6608,anchorData:_0x15f36f}=this[_0x4ad8f9(0x23f)]();return this[_0x4ad8f9(0x297)](_0x3c2701,_0x5b6608,_0x15f36f,_0xb54a14,_0x15b2b6);}}const {modelFragment:_0x3c9240,anchorData:_0x509a98}=this[_0x4ad8f9(0x28b)]();return this[_0x4ad8f9(0x297)](_0x3c2701,_0x3c9240,_0x509a98,_0xb54a14,_0x15b2b6);}[_0x2a209d(0x28b)](){const _0x126828=_0x2a209d,_0x3de10f=this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x21e)][_0x126828(0x244)];if(_0x3de10f[_0x126828(0x28c)]){const _0x556273=_0xedbfa0(_0x3de10f[_0x126828(0x201)]())||this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x246)][_0x126828(0x276)](_0x3de10f);this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x1c9)](_0x5a3866=>{const _0x36554c=_0x126828;_0x5a3866[_0x36554c(0x284)](_0x556273,'in');});}const _0x192b4b=_0x3de10f[_0x126828(0x1d4)](),_0x459d42=this[_0x126828(0x29f)](this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x221)](_0x3de10f),_0x192b4b[_0x126828(0x243)],_0x192b4b[_0x126828(0x272)]),_0x16ba5e=_0x3de10f[_0x126828(0x1d4)]()[_0x126828(0x243)],_0x1e4231=new Map();let _0x54de7c=_0x459d42;for(let _0xcbf909=0x0;_0xcbf909<_0x16ba5e[_0x126828(0x241)][_0x126828(0x262)];_0xcbf909++)_0x1e4231[_0x126828(0x20f)](_0x54de7c,_0x16ba5e[_0x126828(0x241)][_0xcbf909]),_0x54de7c=_0x54de7c[_0x126828(0x1d5)](0x0);return{'modelFragment':_0x459d42,'anchorData':_0x1e4231};}[_0x2a209d(0x23f)](){const _0x504655=_0x2a209d,_0x4a16ed=this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x21e)][_0x504655(0x244)],_0x2ae7d5=this[_0x504655(0x275)][_0x504655(0x223)][_0x504655(0x20a)](_0x504655(0x207))[_0x504655(0x22e)](),_0x12fb0c=_0x4a16ed[_0x504655(0x1d4)]()[_0x504655(0x243)][_0x504655(0x2ac)][_0x504655(0x2ac)],_0x23dc19=this[_0x504655(0x29f)](_0x2ae7d5,this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x1e7)](_0x12fb0c),this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x290)](_0x12fb0c)),_0x239023=_0x4a16ed[_0x504655(0x1d4)]()[_0x504655(0x243)],_0x15b793=new Map();let _0x486550=_0x23dc19;for(let _0x15b2e8=0x0;_0x15b2e8<_0x239023[_0x504655(0x241)][_0x504655(0x262)];_0x15b2e8++)if(_0x15b793[_0x504655(0x20f)](_0x486550,_0x239023[_0x504655(0x241)][_0x15b2e8]),_0x15b2e8<_0x239023[_0x504655(0x241)][_0x504655(0x262)]-0x1)_0x486550=_0x486550[_0x504655(0x1d5)](0x0);else{let _0x24c8b0=_0x486550[_0x504655(0x230)];for(;_0x24c8b0;)_0x15b793[_0x504655(0x20f)](_0x24c8b0,_0x239023[_0x504655(0x241)][_0x15b2e8]),_0x24c8b0=_0x24c8b0[_0x504655(0x230)];}return{'modelFragment':_0x23dc19,'anchorData':_0x15b793};}[_0x2a209d(0x297)](_0x36d699,_0x3a16e7,_0x3b7d76,_0x5e21db,_0x26cd4e){const _0x440c46=_0x2a209d,_0x4f1b99=this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x20a)](_0x36edd8),_0x2b54b6=this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x20a)](_0x3b3ca9),_0x1d7311=this[_0x440c46(0x275)][_0x440c46(0x23d)][_0x440c46(0x21e)][_0x440c46(0x244)],_0x18e333=_0x4f1b99[_0x440c46(0x1fe)](_0x3a16e7),_0x170637=this[_0x440c46(0x275)][_0x440c46(0x25f)][_0x440c46(0x20c)][_0x440c46(0x211)](_0x18e333),_0x588552=this[_0x440c46(0x275)][_0x440c46(0x23d)][_0x440c46(0x21e)][_0x440c46(0x240)],_0x3a1f8d=[..._0x1d7311[_0x440c46(0x23b)]()];let _0x4f5274=this[_0x440c46(0x275)][_0x440c46(0x219)][_0x440c46(0x20a)](_0x440c46(0x25d))||[..._0x193822];this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x280)](_0x440c46(0x1cf))||(_0x4f5274=_0x4f5274[_0x440c46(0x1c6)](_0x56c59d=>_0x440c46(0x1ff)!=_0x56c59d));const _0x55539e=new _0xd26322(this[_0x440c46(0x275)][_0x440c46(0x263)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x440c46(0x22a),'customView':this[_0x440c46(0x21b)]},'showUnchangedParts':!0x0,'availableActions':_0x4f5274});return _0x2b54b6[_0x440c46(0x228)]({'index':0x3e8*Math[_0x440c46(0x2ab)]()%0x3e8,'title':_0x5e21db,'icon':_0x26cd4e||_0x55b9c9,'mainView':_0x55539e,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x280)](_0x440c46(0x1cf)),'ranges':_0x3a1f8d}),this[_0x440c46(0x292)](_0x55539e,_0x2b54b6),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x278),()=>{const _0x4e7d64=_0x440c46;this[_0x4e7d64(0x277)](_0x3a16e7,_0x3b7d76,!0x1);}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x1ff),()=>{const _0xba0a7d=_0x440c46;this[_0xba0a7d(0x277)](_0x3a16e7,_0x3b7d76,!0x0);}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x1f3),()=>{const _0x197a4e=_0x440c46;this[_0x197a4e(0x231)](),this[_0x197a4e(0x1d9)]();}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x249),()=>{const _0x5cc771=_0x440c46;if(this[_0x5cc771(0x26b)]&&this[_0x5cc771(0x26b)][_0x5cc771(0x270)][_0x5cc771(0x262)]>0x0){const _0x526671=this[_0x5cc771(0x26b)][_0x5cc771(0x270)][this[_0x5cc771(0x26b)][_0x5cc771(0x270)][_0x5cc771(0x262)]-0x1],_0x1e3f86=_0x526671[_0x5cc771(0x213)][0x0];_0x1e3f86&&_0x5cc771(0x294)===_0x1e3f86[_0x5cc771(0x225)]&&_0x526671[_0x5cc771(0x264)](0x0,_0x5cc771(0x25b));}this[_0x5cc771(0x231)](),this[_0x5cc771(0x298)](),this[_0x5cc771(0x288)](_0x2b54b6);}),this[_0x440c46(0x1c8)](_0x170637,_0x588552,_0x55539e,_0x2b54b6,_0x36d699);}[_0x2a209d(0x29f)](_0x4ff33c,_0x5af60d,_0x523a37){const _0x50fb47=_0x2a209d,_0x4cdbb0=this[_0x50fb47(0x275)][_0x50fb47(0x23d)][_0x50fb47(0x22f)](_0x5af60d,_0x523a37)[_0x50fb47(0x28d)](),_0x2d700c=_0x4cdbb0['is'](_0x50fb47(0x1d1))?[]:_0x4cdbb0[_0x50fb47(0x259)]({'includeSelf':!0x0})[_0x50fb47(0x256)](0x1);if(_0x2d700c[_0x50fb47(0x262)]){const _0x1ad121=_0x2d700c[_0x50fb47(0x23a)](_0x2cc23a=>_0x2cc23a[_0x50fb47(0x287)](!0x1));for(let _0x27ee91=0x1;_0x27ee91<_0x1ad121[_0x50fb47(0x262)];_0x27ee91++)_0x1ad121[_0x27ee91-0x1][_0x50fb47(0x233)](_0x1ad121[_0x27ee91]);return _0x1ad121[_0x1ad121[_0x50fb47(0x262)]-0x1][_0x50fb47(0x233)](_0x4ff33c),new _0x2b039f(_0x1ad121[0x0]);}return _0x4ff33c;}async[_0x2a209d(0x1c8)](_0x38e1bd,_0x10ddb7,_0x124e25,_0x10097a,_0x5c8b3f){const _0x226244=_0x2a209d,_0x456292=this[_0x226244(0x275)];this[_0x226244(0x20b)]={'action':_0x5c8b3f,'content':_0x38e1bd,'version':_0x10ddb7,'mainView':_0x124e25,'aiBalloon':_0x10097a};const _0x434616=new _0x365cb0({'connector':this[_0x226244(0x1ed)],'editor':_0x456292,'content':_0x38e1bd,'version':_0x10ddb7,..._0x5c8b3f});this[_0x226244(0x214)][_0x226244(0x29a)](_0x434616),_0x124e25[_0x226244(0x1ea)]();const _0x9de237=(_0x32791e,_0x1f3ea1,_0x95c4bb=!0x1,_0x342c62=_0x226244(0x1ee))=>this[_0x226244(0x1cb)][_0x226244(0x1fc)](async _0x5e795f=>{const _0x5dc33d=_0x226244;try{const _0x3ec493=_0x415c42({'editor':_0x456292,'changeGroups':_0x32791e[_0x5dc33d(0x213)],'documentContextContent':_0x32791e[_0x5dc33d(0x1fb)],'showDiff':_0x95c4bb,'trimUnchanged':!0x1});await _0x1f3ea1[_0x5dc33d(0x23e)]({'parts':_0x3ec493,'renderingStrategy':_0x342c62,'abortSignal':_0x5e795f});}catch(_0x1bff40){if(this[_0x5dc33d(0x29d)](_0x1bff40))return;throw _0x1bff40;}});this[_0x226244(0x26b)]['on'](_0x226244(0x28a),(_0x4ffb2f,_0x8b27f9)=>{const _0x1375d6=_0x226244;_0x124e25[_0x1375d6(0x1f4)](),_0x10097a[_0x1375d6(0x26f)](),_0x9de237(_0x8b27f9,_0x124e25)[_0x1375d6(0x27d)](_0x552c58=>{const _0x3e5f03=_0x1375d6;this[_0x3e5f03(0x29d)](_0x552c58)||(console[_0x3e5f03(0x203)](_0x3e5f03(0x24f),_0x552c58),this[_0x3e5f03(0x1db)](_0x434616,_0x124e25));});}),this[_0x226244(0x26b)]['on'](_0x226244(0x1ec),(_0x3f00d6,_0x8ee415)=>{const _0x4f7f04=_0x226244;_0x9de237(_0x8ee415,_0x124e25)[_0x4f7f04(0x27d)](_0x3cf764=>{const _0x2dfaae=_0x4f7f04;this[_0x2dfaae(0x29d)](_0x3cf764)||(console[_0x2dfaae(0x203)](_0x2dfaae(0x232),_0x3cf764),this[_0x2dfaae(0x1db)](_0x434616,_0x124e25));});}),this[_0x226244(0x26b)]['on'](_0x226244(0x265),async()=>{const _0xd0ba34=_0x226244;try{await this[_0xd0ba34(0x2a2)](_0x124e25,_0x10097a),this[_0xd0ba34(0x1f5)](),await this[_0xd0ba34(0x1cb)][_0xd0ba34(0x21d)];}catch(_0x3f4194){this[_0xd0ba34(0x29d)](_0x3f4194)||(console[_0xd0ba34(0x203)](_0xd0ba34(0x1c5),_0x3f4194),this[_0xd0ba34(0x1db)](_0x434616,_0x124e25));}finally{_0x10097a[_0xd0ba34(0x28f)]();}}),this[_0x226244(0x2a5)](_0x124e25,_0x226244(0x1ef),async(_0x556984,{showDiff:_0x226c63})=>{const _0x4ab293=_0x226244;try{this[_0x4ab293(0x24c)]=_0x226c63;const _0xa3549b=this[_0x4ab293(0x26b)][_0x4ab293(0x270)][this[_0x4ab293(0x26b)][_0x4ab293(0x270)][_0x4ab293(0x262)]-0x1];_0xa3549b&&await _0x9de237(_0xa3549b,_0x124e25,_0x226c63,_0x4ab293(0x27e));}catch(_0x2bd602){this[_0x4ab293(0x29d)](_0x2bd602)||(console[_0x4ab293(0x203)](_0x4ab293(0x282),_0x2bd602),this[_0x4ab293(0x1db)](_0x434616,_0x124e25));}}),this[_0x226244(0x26b)]['on'](_0x226244(0x2a3),(_0x4d4f4e,{reply:_0x2b3036})=>{const _0x5a160b=_0x226244,_0x2efa37={'positiveCount':_0x2b3036[_0x5a160b(0x213)][_0x5a160b(0x1c6)](_0x58856d=>_0x5a160b(0x266)===_0x58856d[_0x5a160b(0x225)])[_0x5a160b(0x262)],'totalCount':_0x2b3036[_0x5a160b(0x213)][_0x5a160b(0x262)]},_0x3f64f4=this[_0x5a160b(0x26b)][_0x5a160b(0x1f8)],_0x33cc91=this[_0x5a160b(0x26b)][_0x5a160b(0x1ce)];_0x33cc91?this[_0x5a160b(0x1ed)][_0x5a160b(0x295)](_0x33cc91,_0x3f64f4,_0x2efa37):this[_0x5a160b(0x1ed)][_0x5a160b(0x1f1)](_0x3f64f4,_0x2efa37);}),this[_0x226244(0x292)](_0x124e25,_0x10097a);try{const _0x46454b=await this[_0x226244(0x26b)][_0x226244(0x243)]();return this[_0x226244(0x1f5)](),_0x46454b;}catch(_0x6abd45){if(this[_0x226244(0x29d)](_0x6abd45))return;_0x124e25[_0x226244(0x1f4)](),this[_0x226244(0x1db)](_0x434616,_0x124e25);}}[_0x2a209d(0x277)](_0xba4bee,_0x50d12a,_0x42d1ca){const _0x3bbb71=_0x2a209d,_0x49d24e=this[_0x3bbb71(0x275)];if(_0x42d1ca&&!_0x49d24e[_0x3bbb71(0x223)][_0x3bbb71(0x280)](_0x3bbb71(0x1cf)))throw new _0x1d5010(_0x3bbb71(0x2a7),null);const _0x3fcd28=this[_0x3bbb71(0x275)][_0x3bbb71(0x223)][_0x3bbb71(0x20a)](_0x465adf),_0x2b615c=this[_0x3bbb71(0x26b)],_0x4375b7=this[_0x3bbb71(0x26b)][_0x3bbb71(0x270)][this[_0x3bbb71(0x26b)][_0x3bbb71(0x270)][_0x3bbb71(0x262)]-0x1],_0x1695a7=_0x4375b7[_0x3bbb71(0x213)];_0x4375b7[_0x3bbb71(0x264)](0x0,_0x3bbb71(0x266));let _0x21f09f=_0x4debfb({'editor':_0x49d24e,'reply':_0x4375b7,'interaction':_0x2b615c,'groups':_0x1695a7,'transform':!0x1,'documentCompare':_0x3fcd28,'documentCompareOptions':{'anchor':_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x255)](_0xba4bee,0x0),'markDeletions':_0x42d1ca}});_0x21f09f=this[_0x3bbb71(0x215)](_0x21f09f,_0x50d12a);for(const _0x5c116c of _0x21f09f)this[_0x3bbb71(0x29c)](_0x50d12a,_0x5c116c,_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)][_0x3bbb71(0x268)]());const _0x414c96=_0x2b615c[_0x3bbb71(0x261)]()[_0x3bbb71(0x240)],_0x456963=_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)][_0x3bbb71(0x267)][_0x3bbb71(0x25e)](_0x414c96),_0x106b33={'document':_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x12e8a4=_0x156fa3(_0x21f09f,_0x456963,_0x106b33)[_0x3bbb71(0x27c)];_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x1c9)](_0x247ef9=>{const _0x419288=_0x3bbb71;if(_0x247ef9[_0x419288(0x284)](_0x49d24e[_0x419288(0x23d)][_0x419288(0x21e)][_0x419288(0x244)][_0x419288(0x212)]),_0x42d1ca)_0x49d24e[_0x419288(0x223)][_0x419288(0x20a)](_0x419288(0x1f2))[_0x419288(0x206)](_0x12e8a4);else{for(const _0x2bf20e of _0x12e8a4)_0x2bf20e[_0x419288(0x27f)]=_0x49d24e[_0x419288(0x23d)][_0x419288(0x21e)][_0x419288(0x240)],_0x36ff6b(_0x49d24e,_0x2bf20e),_0x247ef9[_0x419288(0x2aa)][_0x419288(0x1ca)](_0x2bf20e),_0x49d24e[_0x419288(0x23d)][_0x419288(0x291)](_0x2bf20e);}}),this[_0x3bbb71(0x275)][_0x3bbb71(0x223)][_0x3bbb71(0x20a)](_0x3bbb71(0x2a4))[_0x3bbb71(0x1cd)]();}[_0x2a209d(0x215)](_0x58d783,_0x42bce0){const _0x1b4579=_0x2a209d;return _0x58d783[_0x1b4579(0x1c6)](_0x4cdcc1=>{const _0x5dc8db=_0x1b4579;if(_0x5dc8db(0x1d7)==_0x4cdcc1[_0x5dc8db(0x1d2)]){const _0x243476=_0x4cdcc1[_0x5dc8db(0x2a9)][_0x5dc8db(0x20e)];return!_0x42bce0[_0x5dc8db(0x280)](_0x243476);}if(_0x4cdcc1[_0x5dc8db(0x1d2)][_0x5dc8db(0x283)](_0x5dc8db(0x293))>-0x1){const _0x202a68=_0x4cdcc1[_0x5dc8db(0x286)][_0x5dc8db(0x243)][_0x5dc8db(0x20e)];return!_0x42bce0[_0x5dc8db(0x280)](_0x202a68);}return!0x0;});}[_0x2a209d(0x29c)](_0x692a07,_0x50ebf3,_0x5b1bb8){const _0x11ded9=_0x2a209d,_0x2333d6=_0x50ebf3[_0x11ded9(0x1e0)]();for(const _0x3b5641 in _0x50ebf3){const _0x28e2fa=_0x50ebf3[_0x3b5641];_0x28e2fa instanceof _0x148c2e?_0x50ebf3[_0x3b5641]=new _0x148c2e(_0x69f16a(_0x28e2fa[_0x11ded9(0x243)]),_0x69f16a(_0x28e2fa[_0x11ded9(0x272)])):_0x28e2fa instanceof _0x524415&&(_0x50ebf3[_0x3b5641]=_0x69f16a(_0x28e2fa));}if([_0x11ded9(0x239),_0x11ded9(0x22d),_0x11ded9(0x26a),_0x11ded9(0x21c),_0x11ded9(0x24a),_0x11ded9(0x245)][_0x11ded9(0x1eb)](_0x2333d6[_0x11ded9(0x1d2)])){if(_0x2333d6[_0x11ded9(0x29e)]=!0x1,_0x2333d6[_0x11ded9(0x27f)]=null,_0x11ded9(0x26a)==_0x2333d6[_0x11ded9(0x1d2)]){const _0x8d68e4=_0x2333d6[_0x11ded9(0x204)],_0x5f2f03=_0x2333d6[_0x11ded9(0x238)];new _0x254c03(_0x8d68e4,_0x5f2f03)[_0x11ded9(0x296)]();}else _0x2333d6[_0x11ded9(0x296)]();}function _0x69f16a(_0xa13713){const _0x584ed6=_0x11ded9;if(_0x584ed6(0x1fa)==_0xa13713[_0x584ed6(0x1fd)][_0x584ed6(0x1d8)])return _0xa13713;const _0x43f7ea=[];let _0x3ba7ec=_0xa13713[_0x584ed6(0x1fd)];for(let _0x3da3c5=0x0;_0x3da3c5<_0xa13713[_0x584ed6(0x241)][_0x584ed6(0x262)];_0x3da3c5++){const _0x368ca4=_0x692a07[_0x584ed6(0x20a)](_0x3ba7ec)||0x0;_0x43f7ea[_0x3da3c5]=_0xa13713[_0x584ed6(0x241)][_0x3da3c5]+_0x368ca4,_0x3ba7ec=_0x3ba7ec[_0x584ed6(0x23c)](_0xa13713[_0x584ed6(0x241)][_0x3da3c5]);}return new _0x524415(_0x5b1bb8,_0x43f7ea,_0xa13713[_0x584ed6(0x248)]);}}[_0x2a209d(0x254)](){const _0xe56924=_0x2a209d;if(!this[_0xe56924(0x20b)])return;this[_0xe56924(0x214)][_0xe56924(0x262)]>0x0&&this[_0xe56924(0x231)](),this[_0xe56924(0x279)]=0x0,this[_0xe56924(0x24c)]=!0x1;const {action:_0x300a4e,content:_0x3b4a88,version:_0x26968e,mainView:_0x271f3e,aiBalloon:_0x316f6d}=this[_0xe56924(0x20b)];_0x271f3e[_0xe56924(0x227)]=!0x1,_0x271f3e[_0xe56924(0x1ea)](),this[_0xe56924(0x208)](_0x271f3e,_0x316f6d);const _0x31f5bb=_0x271f3e;_0x31f5bb[_0xe56924(0x260)]&&_0x31f5bb[_0xe56924(0x260)][_0xe56924(0x1da)]&&_0x31f5bb[_0xe56924(0x260)][_0xe56924(0x1da)][_0xe56924(0x20f)]({'isOn':!0x1,'icon':_0x1150fd}),this[_0xe56924(0x209)](_0x271f3e),_0x271f3e[_0xe56924(0x26d)](),this[_0xe56924(0x1f5)](),this[_0xe56924(0x288)](_0x271f3e),this[_0xe56924(0x1c8)](_0x3b4a88,_0x26968e,_0x271f3e,_0x316f6d,_0x300a4e)[_0xe56924(0x27d)](_0x3367be=>{const _0x28ab7b=_0xe56924;this[_0x28ab7b(0x29d)](_0x3367be)||console[_0x28ab7b(0x203)](_0x28ab7b(0x257),_0x3367be);});}[_0x2a209d(0x209)](_0x2c26e4){const _0x1407b3=_0x2a209d,_0x127174=_0x2c26e4[_0x1407b3(0x2a8)][_0x1407b3(0x26e)];for(;_0x127174[_0x1407b3(0x262)]>0x0;)_0x127174[_0x1407b3(0x26a)](_0x127174[_0x1407b3(0x250)]);_0x2c26e4[_0x1407b3(0x2a8)][_0x1407b3(0x234)]=!0x1;}[_0x2a209d(0x29d)](_0x30b651){const _0x5f3138=_0x2a209d;return!!_0x30b651[_0x5f3138(0x253)]&&_0x30b651[_0x5f3138(0x253)][_0x5f3138(0x1e9)](_0x5f3138(0x210));}[_0x2a209d(0x298)](){const _0x16d4ba=_0x2a209d;this[_0x16d4ba(0x214)]=[],this[_0x16d4ba(0x20b)]=void 0x0,this[_0x16d4ba(0x279)]=0x0,this[_0x16d4ba(0x1f5)]();}[_0x2a209d(0x231)](){const _0x38a48e=_0x2a209d;this[_0x38a48e(0x26b)]&&this[_0x38a48e(0x26b)][_0x38a48e(0x22b)](),this[_0x38a48e(0x1cb)][_0x38a48e(0x289)](),this[_0x38a48e(0x1df)]=!0x1,this[_0x38a48e(0x20b)]&&this[_0x38a48e(0x20b)][_0x38a48e(0x21f)][_0x38a48e(0x28f)]();}[_0x2a209d(0x251)](){const _0x1f6b0b=_0x2a209d,_0x4276cc=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x15a74e=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x310231=new _0x25f6d3(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x3f1b56=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]);_0x4276cc[_0x1f6b0b(0x20f)]({'icon':_0x59f292,'label':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x274)),'tooltip':!0x0,'class':_0x1f6b0b(0x22c)}),_0x15a74e[_0x1f6b0b(0x20f)]({'icon':_0x131696,'tooltip':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x2ad)),'class':_0x1f6b0b(0x20d)}),_0x310231[_0x1f6b0b(0x299)]({'tag':_0x1f6b0b(0x2ae),'attributes':{'class':[_0x1f6b0b(0x202)]},'children':[_0x1f6b0b(0x226)]}),_0x3f1b56[_0x1f6b0b(0x20f)]({'icon':_0x1b9335,'tooltip':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x217)),'class':_0x1f6b0b(0x258)}),_0x4276cc[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x13da17=>!_0x13da17),_0x4276cc['on'](_0x1f6b0b(0x1dc),()=>{const _0x3c0a0a=_0x1f6b0b;this[_0x3c0a0a(0x254)]();}),_0x15a74e[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x2ff2b4=>!_0x2ff2b4),_0x15a74e['on'](_0x1f6b0b(0x1dc),()=>{const _0x117323=_0x1f6b0b;this[_0x117323(0x1de)]();}),_0x3f1b56[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x67b0d6=>!_0x67b0d6),_0x3f1b56['on'](_0x1f6b0b(0x1dc),()=>{const _0x2b2c35=_0x1f6b0b;this[_0x2b2c35(0x1d0)]();}),this[_0x1f6b0b(0x247)]=_0x15a74e,this[_0x1f6b0b(0x205)]=_0x310231,this[_0x1f6b0b(0x252)]=_0x3f1b56,this[_0x1f6b0b(0x21b)][_0x1f6b0b(0x200)](_0x4276cc);}[_0x2a209d(0x1de)](){const _0x4487ad=_0x2a209d,_0x3fb777=this[_0x4487ad(0x214)][_0x4487ad(0x262)];this[_0x4487ad(0x279)]<_0x3fb777-0x1&&this[_0x4487ad(0x1e5)](this[_0x4487ad(0x279)]+0x1);}[_0x2a209d(0x1d0)](){const _0x382b84=_0x2a209d;this[_0x382b84(0x279)]>0x0&&this[_0x382b84(0x1e5)](this[_0x382b84(0x279)]-0x1);}async[_0x2a209d(0x1e5)](_0xdf60ac){const _0x575aa5=_0x2a209d;if(!this[_0x575aa5(0x20b)])return;this[_0x575aa5(0x279)]=_0xdf60ac;const {mainView:_0x282f6c}=this[_0x575aa5(0x20b)],_0xa64582=this[_0x575aa5(0x214)][this[_0x575aa5(0x214)][_0x575aa5(0x262)]-0x1-this[_0x575aa5(0x279)]];if(!_0xa64582)return;if(_0xa64582[_0x575aa5(0x1d3)])return this[_0x575aa5(0x1db)](_0xa64582,_0x282f6c),void this[_0x575aa5(0x1f5)]();if(!_0xa64582[_0x575aa5(0x270)][_0x575aa5(0x262)])return;_0x282f6c[_0x575aa5(0x1ea)](),this[_0x575aa5(0x20b)]&&this[_0x575aa5(0x208)](_0x282f6c,this[_0x575aa5(0x20b)][_0x575aa5(0x21f)]);const _0x25943e=_0xa64582[_0x575aa5(0x270)][_0xa64582[_0x575aa5(0x270)][_0x575aa5(0x262)]-0x1];if(_0x25943e){const _0x52fa48=this[_0x575aa5(0x275)];this[_0x575aa5(0x209)](_0x282f6c);try{const _0x2ebacf=_0x415c42({'editor':_0x52fa48,'changeGroups':_0x25943e[_0x575aa5(0x213)],'documentContextContent':_0x25943e[_0x575aa5(0x1fb)],'showDiff':this[_0x575aa5(0x24c)],'trimUnchanged':!0x1});this[_0x575aa5(0x209)](_0x282f6c),await new Promise(_0x10b726=>setTimeout(_0x10b726,0x32)),await _0x282f6c[_0x575aa5(0x23e)]({'parts':_0x2ebacf,'renderingStrategy':_0x575aa5(0x27e),'abortSignal':new AbortController()[_0x575aa5(0x224)]});}catch(_0x4a41ab){this[_0x575aa5(0x29d)](_0x4a41ab)||console[_0x575aa5(0x203)](_0x575aa5(0x27b),_0x4a41ab);}}this[_0x575aa5(0x1f5)]();}[_0x2a209d(0x1f5)](){const _0x1d7f4f=_0x2a209d;if(!this[_0x1d7f4f(0x247)]||!this[_0x1d7f4f(0x205)]||!this[_0x1d7f4f(0x252)])return;const _0x57ac8e=this[_0x1d7f4f(0x214)][_0x1d7f4f(0x262)],_0x2c6b19=_0x57ac8e>0x1,_0x3a77f4=this[_0x1d7f4f(0x20b)]?.[_0x1d7f4f(0x1cc)];if(_0x2c6b19){this[_0x1d7f4f(0x216)]||this[_0x1d7f4f(0x24b)]||this[_0x1d7f4f(0x242)]||(this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x247)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x247)]),this[_0x1d7f4f(0x216)]=!0x0,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x205)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x205)]),this[_0x1d7f4f(0x24b)]=!0x0,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x252)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x252)]),this[_0x1d7f4f(0x242)]=!0x0);const _0x626b7b=_0x57ac8e-this[_0x1d7f4f(0x279)];this[_0x1d7f4f(0x205)][_0x1d7f4f(0x2a1)]&&(this[_0x1d7f4f(0x205)][_0x1d7f4f(0x2a1)][_0x1d7f4f(0x28e)]=_0x626b7b+'/'+_0x57ac8e),this[_0x1d7f4f(0x247)][_0x1d7f4f(0x222)]=this[_0x1d7f4f(0x279)]<_0x57ac8e-0x1,this[_0x1d7f4f(0x252)][_0x1d7f4f(0x222)]=this[_0x1d7f4f(0x279)]>0x0;}else(this[_0x1d7f4f(0x216)]||this[_0x1d7f4f(0x24b)]||this[_0x1d7f4f(0x242)])&&(this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x247)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x247)]),this[_0x1d7f4f(0x216)]=!0x1,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x205)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x205)]),this[_0x1d7f4f(0x24b)]=!0x1,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x252)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x252)]),this[_0x1d7f4f(0x242)]=!0x1);}[_0x2a209d(0x292)](_0x31f088,_0x9046e5){const _0x4bb309=_0x2a209d;_0x31f088[_0x4bb309(0x1f0)](),_0x9046e5[_0x4bb309(0x273)][_0x4bb309(0x1f0)](),this[_0x4bb309(0x1df)]=!0x0;}async[_0x2a209d(0x1db)](_0x2aaca0,_0x4d55ee){const _0xf21ead=_0x2a209d,_0x326cf5=_0x1a21a1(this[_0xf21ead(0x275)][_0xf21ead(0x263)],_0xf21ead(0x220));_0x4d55ee[_0xf21ead(0x285)](_0x326cf5),_0x2aaca0[_0xf21ead(0x1d3)]=!0x0,await this[_0xf21ead(0x1cb)][_0xf21ead(0x21d)],_0x4d55ee[_0xf21ead(0x2a6)](),this[_0xf21ead(0x20b)]?.[_0xf21ead(0x21f)][_0xf21ead(0x273)][_0xf21ead(0x235)]&&(this[_0xf21ead(0x20b)][_0xf21ead(0x21f)][_0xf21ead(0x273)][_0xf21ead(0x235)][_0xf21ead(0x21a)]=!0x0);}[_0x2a209d(0x208)](_0x3d4864,_0x3e38b3){const _0x4e2cba=_0x2a209d;_0x3d4864[_0x4e2cba(0x1e3)](),_0x3e38b3[_0x4e2cba(0x273)][_0x4e2cba(0x235)]&&(_0x3e38b3[_0x4e2cba(0x273)][_0x4e2cba(0x235)][_0x4e2cba(0x21a)]=!0x1);}async[_0x2a209d(0x2a2)](_0x16749d,_0x5a8e76){const _0x491611=_0x2a209d;await this[_0x491611(0x1cb)][_0x491611(0x21d)],this[_0x491611(0x1df)]=!0x1,_0x16749d[_0x491611(0x1e8)](),_0x5a8e76[_0x491611(0x273)][_0x491611(0x1e8)]();}[_0x2a209d(0x1d9)](){const _0x23aabd=_0x2a209d;this[_0x23aabd(0x21b)][_0x23aabd(0x236)](_0x3d00f0=>{const _0x58378a=_0x23aabd;_0x58378a(0x222)in _0x3d00f0&&(_0x3d00f0[_0x58378a(0x222)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x598f55=_0x4074;function _0x4074(_0x1b93ca,_0x852f85){const _0x493c58=_0x493c();return _0x4074=function(_0x407463,_0x4d0746){_0x407463=_0x407463-0x150;let _0x4dbbae=_0x493c58[_0x407463];return _0x4dbbae;},_0x4074(_0x1b93ca,_0x852f85);}(function(_0x25c30a,_0xa0333d){const _0x4431cd=_0x4074,_0x1d2b93=_0x25c30a();while(!![]){try{const _0x5e37c8=-parseInt(_0x4431cd(0x16a))/0x1*(-parseInt(_0x4431cd(0x169))/0x2)+-parseInt(_0x4431cd(0x158))/0x3*(-parseInt(_0x4431cd(0x16f))/0x4)+parseInt(_0x4431cd(0x156))/0x5+-parseInt(_0x4431cd(0x157))/0x6+parseInt(_0x4431cd(0x15a))/0x7+parseInt(_0x4431cd(0x161))/0x8*(-parseInt(_0x4431cd(0x16c))/0x9)+-parseInt(_0x4431cd(0x165))/0xa;if(_0x5e37c8===_0xa0333d)break;else _0x1d2b93['push'](_0x1d2b93['shift']());}catch(_0x36f70c){_0x1d2b93['push'](_0x1d2b93['shift']());}}}(_0x493c,0x2baab));import{AIInteraction as _0x12c9b8,AI_MODEL_EVENT_NAMES as _0x15b6c7}from'../../aicore/model/aiinteraction.js';function _0x493c(){const _0x50cbf3=['html','30AqYqJn','8332NzHhfz','hasError','171LoXJyf','replyCreated','fire','236uhFeOj','current-document','args','Current\x20document','push','delegate','getDocumentContext','userMessage','1697560mQrStw','1807968cdPANi','597swUGpD','content','656698lcaQWW','version','editor','replies','actionName','createReply','executeAction','22552rwLPbE','sendRequest','connector','TEXT','362990nSFGjC','executeCustomAction','model'];_0x493c=function(){return _0x50cbf3;};return _0x493c();}import{AIContextItemType as _0x16d737}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x55b4a3}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x12c9b8{[_0x598f55(0x159)];[_0x598f55(0x15b)];[_0x598f55(0x15e)];[_0x598f55(0x150)];[_0x598f55(0x155)];[_0x598f55(0x167)];[_0x598f55(0x16b)]=!0x1;constructor(_0x1481fb){const _0x2f9d23=_0x598f55;super(_0x1481fb),this[_0x2f9d23(0x159)]=_0x1481fb[_0x2f9d23(0x159)],this[_0x2f9d23(0x15b)]=_0x1481fb[_0x2f9d23(0x15b)],this[_0x2f9d23(0x15e)]=_0x1481fb[_0x2f9d23(0x15e)],this[_0x2f9d23(0x150)]=_0x1481fb[_0x2f9d23(0x150)],this[_0x2f9d23(0x155)]=_0x1481fb[_0x2f9d23(0x155)],this[_0x2f9d23(0x167)]=_0x1481fb[_0x2f9d23(0x167)];}async[_0x598f55(0x162)](){const _0x7fa786=_0x598f55;return this[_0x7fa786(0x15e)]?this[_0x7fa786(0x163)][_0x7fa786(0x160)]({'content':this[_0x7fa786(0x159)],'actionName':this[_0x7fa786(0x15e)],'args':this[_0x7fa786(0x150)]}):this[_0x7fa786(0x163)][_0x7fa786(0x166)]({'content':this[_0x7fa786(0x159)],'message':this[_0x7fa786(0x155)],'model':this[_0x7fa786(0x167)],'outputFormat':_0x7fa786(0x168)});}[_0x598f55(0x154)](){const _0x59c389=_0x598f55;return{'type':_0x16d737[_0x59c389(0x164)],'content':this[_0x59c389(0x159)],'version':this[_0x59c389(0x15b)],'label':_0x59c389(0x151),'uiId':_0x59c389(0x170)};}[_0x598f55(0x15f)](_0x137ebb){const _0x30b506=_0x598f55,_0x3e3d5a=new _0x55b4a3({'editor':this[_0x30b506(0x15c)],'documentContextContent':this[_0x30b506(0x159)],..._0x137ebb});return this[_0x30b506(0x15d)][_0x30b506(0x152)](_0x3e3d5a),_0x3e3d5a[_0x30b506(0x153)](..._0x15b6c7)['to'](this),this[_0x30b506(0x16e)](_0x30b506(0x16d),_0x3e3d5a),_0x3e3d5a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f3855=_0x4c48;(function(_0x5279e1,_0x177c31){const _0x18c032=_0x4c48,_0x36986d=_0x5279e1();while(!![]){try{const _0x5185fa=parseInt(_0x18c032(0x86))/0x1*(parseInt(_0x18c032(0x88))/0x2)+parseInt(_0x18c032(0x8f))/0x3*(parseInt(_0x18c032(0x9e))/0x4)+parseInt(_0x18c032(0x9b))/0x5+-parseInt(_0x18c032(0x9d))/0x6+parseInt(_0x18c032(0x89))/0x7+parseInt(_0x18c032(0x95))/0x8+-parseInt(_0x18c032(0x8a))/0x9;if(_0x5185fa===_0x177c31)break;else _0x36986d['push'](_0x36986d['shift']());}catch(_0x5c7ea1){_0x36986d['push'](_0x36986d['shift']());}}}(_0xba74,0x91794));import{AIReply as _0x360255}from'../../aicore/model/aireply.js';import{getAttribute as _0x362b1b}from'../../aicore/utils/htmlparser.js';function _0xba74(){const _0xa8e96=['added','_getDifferentChangeGroups','childNodes','removed','cloneNode','4198725vQHAEH','pop','4335474WYrknm','1994628TIpkBp','changeGroups','pending','updateChangeGroups','parsedMergedContent','documentContextContent','7saOgAV','value','292426DtNWKe','3985394EgZZtw','14846580wGnUDf','parsedContent','isDone','node','data-id','3PcdBre','map','new','children','modified','length','294592csIAxH'];_0xba74=function(){return _0xa8e96;};return _0xba74();}import{uid as _0x45dd37}from'ckeditor5/src/utils.js';function _0x4c48(_0xaceff0,_0x268509){const _0xba741c=_0xba74();return _0x4c48=function(_0x4c48a5,_0xcf103a){_0x4c48a5=_0x4c48a5-0x85;let _0xc9fddd=_0xba741c[_0x4c48a5];return _0xc9fddd;},_0x4c48(_0xaceff0,_0x268509);}import{diffArrays as _0x33405a}from'diff';export class AIActionsReply extends _0x360255{[_0x2f3855(0xa1)](){const _0xeec4f3=_0x2f3855;if(this[_0xeec4f3(0xa2)]=this[_0xeec4f3(0x8b)][_0xeec4f3(0x9a)](!0x0),0x0==this[_0xeec4f3(0xa2)][_0xeec4f3(0x98)][_0xeec4f3(0x94)])return void(this[_0xeec4f3(0x9f)]=[]);const _0x251459=this[_0xeec4f3(0x85)][_0xeec4f3(0x92)][_0xeec4f3(0x90)](_0x4c2eeb=>({'node':_0x4c2eeb,'id':_0x362b1b(_0x4c2eeb,_0xeec4f3(0x8e))})),_0xca5ccf=this[_0xeec4f3(0xa2)][_0xeec4f3(0x92)][_0xeec4f3(0x90)](_0xf9bf30=>({'node':_0xf9bf30,'id':_0x362b1b(_0xf9bf30,_0xeec4f3(0x8e))||_0x45dd37()})),_0x4c5a8a=_0x33405a(_0x251459,_0xca5ccf,{'comparator':(_0x4bb760,_0x148b52)=>_0x4bb760['id']==_0x148b52['id'],'oneChangePerToken':!0x0});if(!this[_0xeec4f3(0x8c)]){for(;_0x4c5a8a[_0xeec4f3(0x94)]&&_0x4c5a8a[_0x4c5a8a[_0xeec4f3(0x94)]-0x1][_0xeec4f3(0x99)];)_0x4c5a8a[_0xeec4f3(0x9c)]();}const _0x33f59f=_0x4c5a8a[_0xeec4f3(0x90)](_0x40a506=>{const _0x394bff=_0xeec4f3,_0x3e585d=_0x40a506[_0x394bff(0x96)]?_0x394bff(0x91):_0x40a506[_0x394bff(0x99)]?_0x394bff(0x99):_0x394bff(0x93);return{'node':_0x40a506[_0x394bff(0x87)][0x0][_0x394bff(0x8d)],'type':_0x3e585d,'id':_0x40a506[_0x394bff(0x87)][0x0]['id']};});this[_0xeec4f3(0x9f)]=[{'changes':_0x33f59f,'state':_0xeec4f3(0xa0),'index':0x0}];}[_0x2f3855(0x97)](_0x328596,_0x1c81bd){return _0x1c81bd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x70c23b=_0x23e0;(function(_0x25f1e9,_0x18dbd6){var _0xdbd6d4=_0x23e0,_0x12d4a1=_0x25f1e9();while(!![]){try{var _0x5aafe1=parseInt(_0xdbd6d4(0x149))/0x1+parseInt(_0xdbd6d4(0x143))/0x2*(-parseInt(_0xdbd6d4(0x14d))/0x3)+-parseInt(_0xdbd6d4(0x144))/0x4*(parseInt(_0xdbd6d4(0x147))/0x5)+parseInt(_0xdbd6d4(0x14b))/0x6+parseInt(_0xdbd6d4(0x153))/0x7*(parseInt(_0xdbd6d4(0x146))/0x8)+-parseInt(_0xdbd6d4(0x14f))/0x9*(parseInt(_0xdbd6d4(0x14a))/0xa)+-parseInt(_0xdbd6d4(0x152))/0xb;if(_0x5aafe1===_0x18dbd6)break;else _0x12d4a1['push'](_0x12d4a1['shift']());}catch(_0x967b30){_0x12d4a1['push'](_0x12d4a1['shift']());}}}(_0x5085,0xf1035));function _0x5085(){var _0x2aa858=['AIAdapter','17291457VfiJks','textAdapter','AIRequestError','2155626DhqivC','42CSKDlG','name','aiadapter-text-adapter-not-set','afterInit','1514nxdnyS','4pEkjhz','pluginName','2505040Vschwm','2247980JpAWFp','isOfficialPlugin','372057DZhaQZ','10gRdpKT','8100726tNzRwb','isPremiumPlugin','186McWMUw'];_0x5085=function(){return _0x2aa858;};return _0x5085();}import{Plugin as _0x187c2d}from'ckeditor5/src/core.js';function _0x23e0(_0x24698c,_0x2196a2){var _0x5085a9=_0x5085();return _0x23e0=function(_0x23e031,_0x56dc1c){_0x23e031=_0x23e031-0x140;var _0x3e6f16=_0x5085a9[_0x23e031];return _0x3e6f16;},_0x23e0(_0x24698c,_0x2196a2);}import{CKEditorError as _0x2be7b5}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x187c2d{static get[_0x70c23b(0x145)](){var _0x550ee3=_0x70c23b;return _0x550ee3(0x14e);}static get[_0x70c23b(0x148)](){return!0x0;}static get[_0x70c23b(0x14c)](){return!0x0;}[_0x70c23b(0x142)](){var _0x160a79=_0x70c23b;if(!this[_0x160a79(0x150)])throw new _0x2be7b5(_0x160a79(0x141),null);}}export class AIRequestError extends Error{constructor(_0x3259a9){var _0x28b96e=_0x70c23b;super(_0x3259a9),this[_0x28b96e(0x140)]=_0x28b96e(0x151);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dc098=_0x1c08;(function(_0x5417c0,_0x2c215b){const _0x38c38c=_0x1c08,_0x38cc4b=_0x5417c0();while(!![]){try{const _0x1f0de6=parseInt(_0x38c38c(0xf6))/0x1+parseInt(_0x38c38c(0x10b))/0x2*(-parseInt(_0x38c38c(0xf7))/0x3)+parseInt(_0x38c38c(0x10c))/0x4*(-parseInt(_0x38c38c(0xef))/0x5)+parseInt(_0x38c38c(0xec))/0x6+parseInt(_0x38c38c(0xf9))/0x7*(parseInt(_0x38c38c(0xed))/0x8)+-parseInt(_0x38c38c(0x107))/0x9*(-parseInt(_0x38c38c(0x104))/0xa)+parseInt(_0x38c38c(0xf1))/0xb;if(_0x1f0de6===_0x2c215b)break;else _0x38cc4b['push'](_0x38cc4b['shift']());}catch(_0x16f22f){_0x38cc4b['push'](_0x38cc4b['shift']());}}}(_0x2917,0xc8148));function _0x2917(){const _0x1d4ea6=['303060jXlCsg','error','AI_ERROR_GET_HEADERS','9KsjLib','application/json','get','aborted','2558oyPGCg','2227828haNUDj','abort','object','_prepareRequestHeaders','init','makeRequest','6398466jVICOw','592AZPvDh','sendRequest','10qQxNnG','catch','13202739eTEmAR','aitextadapter-send-request-failed','signal','assign','resolve','143108YpCUVM','1410jivVgE','reject','8939qNKMJU','name','plugins','AI_ERROR_GET_PARAMETERS','_prepareRequestParameters','locale','requires','editor','abortController','textAdapter','AbortError'];_0x2917=function(){return _0x1d4ea6;};return _0x2917();}import{Plugin as _0x3003ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x162746}from'ckeditor5/src/utils.js';import{AIAdapter as _0x2427cd,AIRequestError as _0x25d4c6}from'./aiadapter.js';import{getTranslation as _0x1ca566}from'../utils/common-translations.js';function _0x1c08(_0x1611c0,_0x296cec){const _0x2917b8=_0x2917();return _0x1c08=function(_0x1c081b,_0x292f31){_0x1c081b=_0x1c081b-0xe7;let _0x162a5e=_0x2917b8[_0x1c081b];return _0x162a5e;},_0x1c08(_0x1611c0,_0x296cec);}export class AITextAdapter extends _0x3003ad{[_0x3dc098(0x101)];static get[_0x3dc098(0xff)](){return[_0x2427cd];}constructor(_0x5c5854){const _0xdd79de=_0x3dc098;super(_0x5c5854),this[_0xdd79de(0x101)]=new AbortController();}[_0x3dc098(0xea)](){const _0x496126=_0x3dc098;this[_0x496126(0x100)][_0x496126(0xfb)][_0x496126(0x109)](_0x2427cd)[_0x496126(0x102)]=this;}[_0x3dc098(0xe7)](){const _0x2dbdba=_0x3dc098;this[_0x2dbdba(0x101)][_0x2dbdba(0xf3)][_0x2dbdba(0x10a)]||(this[_0x2dbdba(0x101)][_0x2dbdba(0xe7)](),this[_0x2dbdba(0x101)]=new AbortController());}async[_0x3dc098(0xeb)](_0x32dc74){const _0x1cff46=_0x3dc098;return this[_0x1cff46(0xee)](_0x32dc74)[_0x1cff46(0xf0)](_0x44eb59=>{const _0x3653e5=_0x1cff46;if(_0x44eb59 instanceof _0x25d4c6)return Promise[_0x3653e5(0xf8)](_0x44eb59);if(_0x3653e5(0x103)==_0x44eb59[_0x3653e5(0xfa)])return Promise[_0x3653e5(0xf5)]();throw console[_0x3653e5(0x105)](_0x44eb59),new _0x162746(_0x3653e5(0xf2),null);});}async[_0x3dc098(0xe9)](_0x4bfd09,_0x454a45){const _0xf2e48d=_0x3dc098,_0x405440=this[_0xf2e48d(0x100)][_0xf2e48d(0xfe)],_0x5dac72={'Content-Type':_0xf2e48d(0x108)};if(_0xf2e48d(0xe8)==typeof _0x4bfd09)Object[_0xf2e48d(0xf4)](_0x5dac72,_0x4bfd09);else{if(_0x4bfd09)try{const _0x479117=await _0x4bfd09(_0x454a45);Object[_0xf2e48d(0xf4)](_0x5dac72,_0x479117);}catch{return Promise[_0xf2e48d(0xf8)](new _0x25d4c6(_0x1ca566(_0x405440,_0xf2e48d(0x106))));}}return _0x5dac72;}async[_0x3dc098(0xfd)](_0x4b3fba,_0x20b199){const _0x3de5ca=_0x3dc098,_0x2f125f=this[_0x3de5ca(0x100)][_0x3de5ca(0xfe)];if(_0x3de5ca(0xe8)==typeof _0x4b3fba)return _0x4b3fba;try{return await _0x4b3fba(_0x20b199);}catch{return Promise[_0x3de5ca(0xf8)](new _0x25d4c6(_0x1ca566(_0x2f125f,_0x3de5ca(0xfc))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c934c=_0x1373;function _0x1373(_0x309d3e,_0x30de58){const _0x5d42b2=_0x5d42();return _0x1373=function(_0x137317,_0x3a3c35){_0x137317=_0x137317-0x10c;let _0x4be7e6=_0x5d42b2[_0x137317];return _0x4be7e6;},_0x1373(_0x309d3e,_0x30de58);}(function(_0x2177bc,_0x1b7b1b){const _0x4fc29a=_0x1373,_0x396c7f=_0x2177bc();while(!![]){try{const _0x27142b=-parseInt(_0x4fc29a(0x14a))/0x1+parseInt(_0x4fc29a(0x10d))/0x2+parseInt(_0x4fc29a(0x12a))/0x3+-parseInt(_0x4fc29a(0x124))/0x4*(parseInt(_0x4fc29a(0x158))/0x5)+parseInt(_0x4fc29a(0x110))/0x6*(-parseInt(_0x4fc29a(0x15a))/0x7)+-parseInt(_0x4fc29a(0x10e))/0x8*(-parseInt(_0x4fc29a(0x117))/0x9)+parseInt(_0x4fc29a(0x135))/0xa*(-parseInt(_0x4fc29a(0x12c))/0xb);if(_0x27142b===_0x1b7b1b)break;else _0x396c7f['push'](_0x396c7f['shift']());}catch(_0x342d9a){_0x396c7f['push'](_0x396c7f['shift']());}}}(_0x5d42,0x8026d));function _0x5d42(){const _0x544ddf=['body','length','_getGeneratedText','_requestParameters','cohere.command','filter','application/json','_processAWSRequest','editor','split','AWSTextAdapter','ai.assistant.adapter.aws.requestHeaders','meta.llama','<<SYS>>\x0a','generations','_requestHeaders','ai21.j2','anthropic.claude','\x0a<</SYS>>\x0a[INST]\x0a','415434xksWHj','\x0a\x0aAssistant:','get','pluginName','resolve','map','ai.assistant.adapter.aws.requestParameters','define','sendRequest','signal','chunk','abortController','read','bytes','772130ZEDzFa','_processProxyRequest','35PKgCex','getModelFamily','_readAsyncIterableResponse','_readStreamableResponse','1767524gCzRqL','3370568nKbHYm','generation','174678gaWJov','preparePrompt','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','_apiUrl','json','parse','18DjkEkg','Human:\x0a','test','ai.assistant.adapter.aws.apiUrl','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.','utf-8','anthropic.claude-v2','text','getReader','completion','Instruction:\x0a','locale','data','12AURWyD','bedrock-2023-05-31','AI_ERROR_UNSUPPORTED_MODEL','ai.assistant.adapter.aws.bedrockClientConfig','stringify','send','3123183PQDNFd','_readStaticResponse','11aOahGt','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.','_prepareRequestHeaders','_bedrockClientConfig','config','completions','_prepareRequestParameters','decode','join','12182790pgVVCQ','\x0a[/INST]'];_0x5d42=function(){return _0x544ddf;};return _0x5d42();}import{AITextAdapter as _0x1e0381}from'./aitextadapter.js';import{AIRequestError as _0x13ca1f}from'./aiadapter.js';import{BedrockRuntimeClient as _0x332816,InvokeModelCommand as _0x4b651e,InvokeModelWithResponseStreamCommand as _0x1d078f}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x537e09}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x1e0381{[_0x2c934c(0x114)];[_0x2c934c(0x146)];[_0x2c934c(0x12f)];[_0x2c934c(0x13a)];static get[_0x2c934c(0x14d)](){const _0x3a2434=_0x2c934c;return _0x3a2434(0x141);}constructor(_0x520236){const _0x2fa5ff=_0x2c934c;super(_0x520236),_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x150))||_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x151)](_0x2fa5ff(0x150),{'model':_0x2fa5ff(0x11d),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x2fa5ff(0x125),'stream':!0x0}),this[_0x2fa5ff(0x114)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x11a)),this[_0x2fa5ff(0x12f)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x127)),this[_0x2fa5ff(0x146)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x142)),this[_0x2fa5ff(0x13a)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x150));}async[_0x2c934c(0x152)]({query:_0x23807b,context:_0x17d635,onData:_0x2093bc,actionId:_0x2f7954}){const _0x114e38=_0x2c934c,{model:_0xf31bd2,stream:_0x876596,..._0x5d00e4}=await this[_0x114e38(0x132)](this[_0x114e38(0x13a)],_0x2f7954),_0x2c2f7f={'prompt':await this[_0x114e38(0x111)](_0x23807b,_0x17d635,_0xf31bd2,_0x2f7954),..._0x5d00e4};this[_0x114e38(0x114)]?await this[_0x114e38(0x159)](_0x2c2f7f,_0xf31bd2,_0x876596,_0x2093bc,_0x2f7954):await this[_0x114e38(0x13e)](_0x2c2f7f,_0xf31bd2,_0x876596,_0x2093bc);}async[_0x2c934c(0x111)](_0x4244cc,_0x21156e,_0x1bff98,_0x5460a5){const _0x397e74=_0x2c934c;let _0x5a77d4,_0x2b00fb;return _0x21156e?(_0x5a77d4=_0x397e74(0x11b),_0x2b00fb=_0x397e74(0x121)+_0x4244cc+_0x397e74(0x112)+_0x21156e):(_0x5a77d4=_0x397e74(0x12d),_0x2b00fb=_0x4244cc),_0x397e74(0x143)==this[_0x397e74(0x15b)](_0x1bff98)?_0x397e74(0x144)+_0x5a77d4+_0x397e74(0x149)+_0x2b00fb+_0x397e74(0x136):_0x397e74(0x118)+_0x5a77d4+'\x0a'+_0x2b00fb+_0x397e74(0x14b);}[_0x2c934c(0x15b)](_0x46ccbe){const _0x5438c8=_0x2c934c;if(/^anthropic\.claude/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x148);if(/^ai21\.j2/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x147);if(/^cohere\.command/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x13b);if(/^meta\.llama/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x143);throw new _0x13ca1f(_0x537e09(this[_0x5438c8(0x13f)][_0x5438c8(0x122)],_0x5438c8(0x126),_0x46ccbe));}async[_0x2c934c(0x159)](_0x43f4a8,_0x4bfb84,_0x307a24,_0x1279e3,_0x1ebb7f){const _0x53e407=_0x2c934c,_0x4c8fcf={'method':_0x53e407(0x113),'headers':await this[_0x53e407(0x12e)](this[_0x53e407(0x146)],_0x1ebb7f),'body':JSON[_0x53e407(0x128)]({..._0x43f4a8,'model':_0x4bfb84,'stream':_0x307a24}),'signal':this[_0x53e407(0x155)][_0x53e407(0x153)]},_0x3449c0=await fetch(this[_0x53e407(0x114)],_0x4c8fcf);_0x307a24?await this[_0x53e407(0x10c)](_0x3449c0,_0x4bfb84,_0x1279e3):await this[_0x53e407(0x12b)](_0x3449c0,_0x4bfb84,_0x1279e3);}async[_0x2c934c(0x13e)](_0x156432,_0x3ddd02,_0xab2c0a,_0x1b91ae){const _0x3c494a=_0x2c934c,_0x3cbc7b=new _0x332816(this[_0x3c494a(0x12f)]),_0x159c92={'body':JSON[_0x3c494a(0x128)](_0x156432),'contentType':_0x3c494a(0x13d),'accept':_0x3c494a(0x13d),'modelId':_0x3ddd02};let _0x2b017f;if(_0xab2c0a){const _0x22710a=new _0x1d078f(_0x159c92);_0x2b017f=await _0x3cbc7b[_0x3c494a(0x129)](_0x22710a,{'abortSignal':this[_0x3c494a(0x155)][_0x3c494a(0x153)]}),await this[_0x3c494a(0x15c)](_0x2b017f,_0x3ddd02,_0x1b91ae);}else{const _0x1e9c8d=new _0x4b651e(_0x159c92);_0x2b017f=await _0x3cbc7b[_0x3c494a(0x129)](_0x1e9c8d,{'abortSignal':this[_0x3c494a(0x155)][_0x3c494a(0x153)]}),await this[_0x3c494a(0x12b)](_0x2b017f,_0x3ddd02,_0x1b91ae);}}async[_0x2c934c(0x15c)](_0x219647,_0x5d33a7,_0x11ea33){const _0x91d55b=_0x2c934c,_0x31a5ee=_0x219647[_0x91d55b(0x137)],_0x5d071e=new TextDecoder(_0x91d55b(0x11c));let _0x3c3d8d='';for await(const _0x129d6e of _0x31a5ee)if(_0x129d6e[_0x91d55b(0x154)]){const _0x41b086=_0x5d071e[_0x91d55b(0x133)](_0x129d6e[_0x91d55b(0x154)][_0x91d55b(0x157)]),_0x3f2488=JSON[_0x91d55b(0x116)](_0x41b086);_0x3c3d8d+=this[_0x91d55b(0x139)](_0x3f2488,_0x5d33a7),_0x11ea33(_0x3c3d8d);}return Promise[_0x91d55b(0x14e)]();}async[_0x2c934c(0x10c)](_0x195c44,_0x335538,_0x260c1a){const _0x3d9ee4=_0x2c934c,_0x4b981a=_0x195c44[_0x3d9ee4(0x137)],_0x324ccd=new TextDecoder(_0x3d9ee4(0x11c)),_0x2cfb71=_0x4b981a[_0x3d9ee4(0x11f)]();let _0x3b3c25='',_0x208e5c='',_0x33fbae=!0x1;for(;!_0x33fbae;){const {done:_0x2370a3,value:_0xaca846}=await _0x2cfb71[_0x3d9ee4(0x156)]();if(_0x33fbae=_0x2370a3,_0x33fbae)break;const _0x4986ed=(_0x3b3c25+_0x324ccd[_0x3d9ee4(0x133)](_0xaca846))[_0x3d9ee4(0x140)]('\x0a')[_0x3d9ee4(0x14f)](_0x305cf3=>{const _0x4d4ff6=_0x3d9ee4;try{return _0x3b3c25='',JSON[_0x4d4ff6(0x116)](_0x305cf3);}catch{return _0x3b3c25=_0x305cf3,null;}})[_0x3d9ee4(0x13c)](_0x3574a1=>null!==_0x3574a1);_0x4986ed[_0x3d9ee4(0x138)]&&(_0x208e5c+=_0x4986ed[_0x3d9ee4(0x14f)](_0x2ff533=>this[_0x3d9ee4(0x139)](_0x2ff533,_0x335538))[_0x3d9ee4(0x134)](''),_0x260c1a(_0x208e5c));}return Promise[_0x3d9ee4(0x14e)]();}async[_0x2c934c(0x12b)](_0x48bfe0,_0x453d39,_0x48ca14){const _0x17485c=_0x2c934c;let _0x4a5a24;return _0x4a5a24=_0x48bfe0 instanceof Response?await _0x48bfe0[_0x17485c(0x115)]():JSON[_0x17485c(0x116)](new TextDecoder(_0x17485c(0x11c))[_0x17485c(0x133)](_0x48bfe0[_0x17485c(0x137)])),(_0x48ca14(this[_0x17485c(0x139)](_0x4a5a24,_0x453d39)),Promise[_0x17485c(0x14e)]());}[_0x2c934c(0x139)](_0x551e2d,_0x1901d8){const _0x121edc=_0x2c934c;switch(this[_0x121edc(0x15b)](_0x1901d8)){case _0x121edc(0x148):return _0x551e2d[_0x121edc(0x120)];case _0x121edc(0x147):return _0x551e2d[_0x121edc(0x131)][0x0][_0x121edc(0x123)][_0x121edc(0x11e)];case _0x121edc(0x13b):return _0x551e2d[_0x121edc(0x145)][0x0][_0x121edc(0x11e)];case _0x121edc(0x143):return _0x551e2d[_0x121edc(0x10f)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2819cf=_0x33ac;function _0xad4a(){const _0x5116fb=['OpenAITextAdapter','3879495fFmAQK','read','_apiUrl','reject','1630wigzli','system','delta','includes','gpt-4o','content','[DONE]','abortController','length','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.','message','Instruction:\x0a','getReader','ai.assistant.adapter.openAI.requestHeaders','_readStaticResponse','ai.assistant.adapter.openAI.requestParameters','filter','_isBufferIncomplete','join','937026NETtKU','split','_requestHeaders','get','user','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_CONTEXT_LENGTH','map','Moderation','8uHkxwV','prepareMessages','1723upYsbt','decode','json','signal','37032uCQhTl','_cleanUpData','text','ai.assistant.adapter.openAI.apiUrl','6875MJgjyl','define','2212FSDWNV','body','sendRequest','https://api.openai.com/v1/chat/completions','2820587bdlhii','parse','1238hChVES','locale','resolve','config','_prepareRequestHeaders','AI_ERROR_MODERATION','choices','replace','_readStreamableResponse','_requestParameters','stream','49310Bqymsw','_prepareRequestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','editor','context_length_exceeded','1341OqIxqN','data:\x20','pluginName','stringify'];_0xad4a=function(){return _0x5116fb;};return _0xad4a();}(function(_0x4a12cf,_0x2acabd){const _0x3a8c7e=_0x33ac,_0x4012e4=_0x4a12cf();while(!![]){try{const _0x1253e3=-parseInt(_0x3a8c7e(0x1cb))/0x1*(parseInt(_0x3a8c7e(0x1db))/0x2)+parseInt(_0x3a8c7e(0x1f1))/0x3+-parseInt(_0x3a8c7e(0x1d5))/0x4*(parseInt(_0x3a8c7e(0x1f5))/0x5)+-parseInt(_0x3a8c7e(0x208))/0x6+parseInt(_0x3a8c7e(0x1d9))/0x7*(-parseInt(_0x3a8c7e(0x1c9))/0x8)+-parseInt(_0x3a8c7e(0x1ec))/0x9*(parseInt(_0x3a8c7e(0x1e6))/0xa)+-parseInt(_0x3a8c7e(0x1d3))/0xb*(-parseInt(_0x3a8c7e(0x1cf))/0xc);if(_0x1253e3===_0x2acabd)break;else _0x4012e4['push'](_0x4012e4['shift']());}catch(_0x1b09c0){_0x4012e4['push'](_0x4012e4['shift']());}}}(_0xad4a,0xa6535));function _0x33ac(_0x140554,_0x6108da){const _0xad4a9d=_0xad4a();return _0x33ac=function(_0x33aca8,_0x1c9c25){_0x33aca8=_0x33aca8-0x1c6;let _0x598833=_0xad4a9d[_0x33aca8];return _0x598833;},_0x33ac(_0x140554,_0x6108da);}import{AITextAdapter as _0x2f838f}from'./aitextadapter.js';import{AIRequestError as _0x2e93a7}from'./aiadapter.js';import{getTranslation as _0xf92091}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2f838f{[_0x2819cf(0x1f3)];[_0x2819cf(0x20a)];[_0x2819cf(0x1e4)];static get[_0x2819cf(0x1ee)](){const _0x320cd2=_0x2819cf;return _0x320cd2(0x1f0);}constructor(_0x1c30c2){const _0x5d1bf5=_0x2819cf;super(_0x1c30c2),_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x1d4)](_0x5d1bf5(0x1d2),_0x5d1bf5(0x1d8)),_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x204))||_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x1d4)](_0x5d1bf5(0x204),{'model':_0x5d1bf5(0x1f9),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5d1bf5(0x1f3)]=_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x1d2)),this[_0x5d1bf5(0x20a)]=_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x202))||{},this[_0x5d1bf5(0x1e4)]=_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x204));}async[_0x2819cf(0x1d7)]({query:_0x225c69,context:_0x2fab68,onData:_0x29ad85,actionId:_0x1bfe72}){const _0x1e0304=_0x2819cf,_0x279e79=this[_0x1e0304(0x1ea)][_0x1e0304(0x1dc)],_0x1e591d=await this[_0x1e0304(0x1ca)](_0x225c69,_0x2fab68,_0x1bfe72),_0x14dde5=await this[_0x1e0304(0x1df)](this[_0x1e0304(0x20a)],_0x1bfe72),_0xb1a8a0=await this[_0x1e0304(0x1e7)](this[_0x1e0304(0x1e4)],_0x1bfe72),_0x1f3bfc={'messages':_0x1e591d,..._0xb1a8a0},_0x11e541={'method':_0x1e0304(0x1e9),'headers':_0x14dde5,'body':JSON[_0x1e0304(0x1ef)](_0x1f3bfc),'signal':this[_0x1e0304(0x1fc)][_0x1e0304(0x1ce)]},_0xc925e8=await fetch(this[_0x1e0304(0x1f3)],_0x11e541);if(_0xc925e8['ok'])return _0xb1a8a0[_0x1e0304(0x1e5)]?await this[_0x1e0304(0x1e3)](_0xc925e8,_0x29ad85):await this[_0x1e0304(0x203)](_0xc925e8,_0x29ad85),Promise[_0x1e0304(0x1dd)]();{const _0xe0c964=await _0xc925e8[_0x1e0304(0x1d1)]();return _0xe0c964[_0x1e0304(0x1f8)](_0x1e0304(0x1eb))?Promise[_0x1e0304(0x1f4)](new _0x2e93a7(_0xf92091(_0x279e79,_0x1e0304(0x1c6)))):_0xe0c964[_0x1e0304(0x1f8)](_0x1e0304(0x1c8))?Promise[_0x1e0304(0x1f4)](new _0x2e93a7(_0xf92091(_0x279e79,_0x1e0304(0x1e0)))):Promise[_0x1e0304(0x1f4)](new Error(_0xe0c964));}}async[_0x2819cf(0x1ca)](_0x444cae,_0x25ef11,_0x53c2f3){const _0x30586d=_0x2819cf;let _0x5bbbbf,_0x278994;return _0x25ef11?(_0x5bbbbf=_0x30586d(0x1fe),_0x278994=_0x30586d(0x200)+_0x444cae+_0x30586d(0x1e8)+_0x25ef11):(_0x5bbbbf=_0x30586d(0x20d),_0x278994=_0x444cae),[{'role':_0x30586d(0x1f6),'content':_0x5bbbbf},{'role':_0x30586d(0x20c),'content':_0x278994}];}async[_0x2819cf(0x1e3)](_0x48ea14,_0x3fd328){const _0x19a9b3=_0x2819cf,_0x2720ba=_0x48ea14[_0x19a9b3(0x1d6)][_0x19a9b3(0x201)](),_0x241ca4=new TextDecoder();let _0x40327f='',_0x50e467='',_0xbd696c='',_0x58d429=!0x1;for(;!_0x58d429;){const {done:_0x470b97,value:_0x1cdb21}=await _0x2720ba[_0x19a9b3(0x1f2)](),_0x285d37=_0x40327f+_0x241ca4[_0x19a9b3(0x1cc)](_0x1cdb21);let _0x191b95='';_0x58d429=_0x470b97;try{_0x191b95=this[_0x19a9b3(0x1d0)](_0x285d37),_0x40327f='';}catch{_0x40327f=_0x285d37;continue;}_0x50e467+=_0x191b95,!_0x58d429&&this[_0x19a9b3(0x206)](_0x50e467)||_0x50e467&&(_0xbd696c+=_0x50e467,_0x50e467='',_0x3fd328(_0xbd696c));}return Promise[_0x19a9b3(0x1dd)]();}async[_0x2819cf(0x203)](_0x42968c,_0x5b9fbe){const _0x400717=_0x2819cf;return _0x5b9fbe((await _0x42968c[_0x400717(0x1cd)]())[_0x400717(0x1e1)][0x0][_0x400717(0x1ff)][_0x400717(0x1fa)]),Promise[_0x400717(0x1dd)]();}[_0x2819cf(0x206)](_0x580c5a){const _0x4e82fb=_0x2819cf,_0x1bf108=_0x580c5a[_0x4e82fb(0x209)]('<')[_0x4e82fb(0x1fd)]!==_0x580c5a[_0x4e82fb(0x209)]('>')[_0x4e82fb(0x1fd)],_0x54dedc=_0x580c5a[_0x4e82fb(0x1fd)]<0x1e;return _0x1bf108&&_0x54dedc;}[_0x2819cf(0x1d0)](_0x276dba){const _0x2a691f=_0x2819cf;return _0x276dba[_0x2a691f(0x209)](/\n(?![^{]*\})/g)[_0x2a691f(0x1c7)](_0x1ed915=>_0x1ed915[_0x2a691f(0x1e2)](_0x2a691f(0x1ed),''))[_0x2a691f(0x205)](_0x2b404d=>_0x2b404d&&_0x2b404d[_0x2a691f(0x1fd)]>0x0&&_0x2a691f(0x1fb)!==_0x2b404d)[_0x2a691f(0x1c7)](_0x5e4baa=>{const _0x23e7ce=_0x2a691f,{choices:_0x335cd7}=JSON[_0x23e7ce(0x1da)](_0x5e4baa);if(_0x335cd7[0x0]?.[_0x23e7ce(0x1f7)]?.[_0x23e7ce(0x1fa)])return _0x335cd7[0x0][_0x23e7ce(0x1f7)][_0x23e7ce(0x1fa)];})[_0x2a691f(0x205)](_0x4df4af=>_0x4df4af)[_0x2a691f(0x207)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x332855=_0x3e71;(function(_0x39d977,_0x238644){const _0x2ae712=_0x3e71,_0x2b2c84=_0x39d977();while(!![]){try{const _0x4399db=parseInt(_0x2ae712(0x12e))/0x1+parseInt(_0x2ae712(0x10d))/0x2*(-parseInt(_0x2ae712(0xfa))/0x3)+-parseInt(_0x2ae712(0x140))/0x4+parseInt(_0x2ae712(0x129))/0x5*(parseInt(_0x2ae712(0x108))/0x6)+-parseInt(_0x2ae712(0xfb))/0x7+-parseInt(_0x2ae712(0xeb))/0x8+parseInt(_0x2ae712(0x125))/0x9;if(_0x4399db===_0x238644)break;else _0x2b2c84['push'](_0x2b2c84['shift']());}catch(_0x263395){_0x2b2c84['push'](_0x2b2c84['shift']());}}}(_0x4c81,0x99cc4));import{Plugin as _0x31c8f0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3b01b1}from'./aiassistantui.js';import{AIAssistantEditing as _0x32e1a6}from'./aiassistantediting.js';import{getTranslation as _0x2b53e8}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x26bb96}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x31c8f0{static get[_0x332855(0x127)](){return[_0x3b01b1,_0x32e1a6];}static get[_0x332855(0x106)](){const _0x1573ea=_0x332855;return _0x1573ea(0x139);}static get[_0x332855(0x111)](){return!0x0;}static get[_0x332855(0xf3)](){return!0x0;}constructor(_0x162ac7){const _0xdbfe1c=_0x332855;super(_0x162ac7);const _0x8e7c87=_0x162ac7[_0xdbfe1c(0x141)],_0x15b228=_0x162ac7[_0xdbfe1c(0xf9)];_0x8e7c87[_0xdbfe1c(0x134)](_0xdbfe1c(0xf4),!0x0),_0x8e7c87[_0xdbfe1c(0x134)](_0xdbfe1c(0x12a),getDefaultAICommands(_0x15b228)),_0x8e7c87[_0xdbfe1c(0x134)](_0xdbfe1c(0x104),[]),_0x8e7c87[_0xdbfe1c(0x134)](_0xdbfe1c(0x146),[]);let _0x232b16=_0x26bb96(_0x8e7c87[_0xdbfe1c(0x116)](_0xdbfe1c(0x12a)),_0x15b228);const _0x2de0fc=_0x8e7c87[_0xdbfe1c(0x116)](_0xdbfe1c(0x104)),_0x2bdd0b=_0x8e7c87[_0xdbfe1c(0x116)](_0xdbfe1c(0x146));_0x2de0fc[_0xdbfe1c(0xfd)](_0x2a9695=>{const _0xa1a6e3=_0xdbfe1c,_0x3f17fe=_0x232b16[_0xa1a6e3(0x138)](_0x2e4bf6=>_0x2e4bf6[_0xa1a6e3(0x14d)]===_0x2a9695[_0xa1a6e3(0x14d)]);_0x3f17fe?_0x3f17fe[_0xa1a6e3(0x10c)]=_0x3f17fe[_0xa1a6e3(0x10c)][_0xa1a6e3(0x124)](_0x2a9695[_0xa1a6e3(0x10c)]):_0x232b16[_0xa1a6e3(0x115)](_0x2a9695);}),_0x232b16=_0x232b16[_0xdbfe1c(0x145)](_0x3e58b4=>!_0x2bdd0b[_0xdbfe1c(0x114)](_0x3e58b4[_0xdbfe1c(0x14d)])),_0x232b16[_0xdbfe1c(0xfd)](_0x1d880a=>{const _0x34da40=_0xdbfe1c;_0x1d880a[_0x34da40(0x10c)]=_0x1d880a[_0x34da40(0x10c)][_0x34da40(0x145)](_0x2f68c2=>!_0x2bdd0b[_0x34da40(0x114)](_0x2f68c2['id']));}),_0x8e7c87[_0xdbfe1c(0x128)](_0xdbfe1c(0x12a),_0x232b16);}}export function getDefaultAICommands(_0x1a56c1){const _0x400af4=_0x332855;return[{'groupId':_0x400af4(0x126),'groupLabel':_0x2b53e8(_0x1a56c1,_0x400af4(0x119)),'commands':[{'id':_0x400af4(0x13c),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x142)),'prompt':_0x400af4(0x117)},{'id':_0x400af4(0x150),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xe6)),'prompt':_0x400af4(0x120)},{'id':_0x400af4(0xfc),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x132)),'prompt':_0x400af4(0x147)},{'id':_0x400af4(0xf2),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xe8)),'prompt':_0x400af4(0x130)}]},{'groupId':_0x400af4(0x149),'groupLabel':_0x2b53e8(_0x1a56c1,_0x400af4(0x148)),'commands':[{'id':_0x400af4(0xff),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xf6)),'prompt':_0x400af4(0x11a)},{'id':_0x400af4(0xe7),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x14b)),'prompt':_0x400af4(0x12f)}]},{'groupId':_0x400af4(0x13b),'groupLabel':_0x2b53e8(_0x1a56c1,_0x400af4(0x10e)),'commands':[{'id':_0x400af4(0x11b),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x135)),'prompt':_0x400af4(0x100)},{'id':_0x400af4(0x11c),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xe9)),'prompt':_0x400af4(0xed)},{'id':_0x400af4(0xe3),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x144)),'prompt':_0x400af4(0x14e)},{'id':_0x400af4(0x14a),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xf7)),'prompt':_0x400af4(0x13a)},{'id':_0x400af4(0x12d),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x109)),'prompt':_0x400af4(0x13d)}]},{'groupId':_0x400af4(0xef),'groupLabel':_0x2b53e8(_0x1a56c1,_0x400af4(0x103)),'commands':[{'id':_0x400af4(0xe4),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x137)),'prompt':_0x400af4(0x14c)},{'id':_0x400af4(0x13f),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x12c)),'prompt':_0x400af4(0x13e)},{'id':_0x400af4(0x11d),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x122)),'prompt':_0x400af4(0x113)},{'id':_0x400af4(0x11f),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xe5)),'prompt':_0x400af4(0x102)}]},{'groupId':_0x400af4(0x121),'groupLabel':_0x2b53e8(_0x1a56c1,_0x400af4(0x10a)),'commands':[{'id':_0x400af4(0x123),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x12b)),'prompt':_0x400af4(0x10f)},{'id':_0x400af4(0xf8),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x112)),'prompt':_0x400af4(0xea)},{'id':_0x400af4(0xf0),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x131)),'prompt':_0x400af4(0x14f)},{'id':_0x400af4(0xee),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xf5)),'prompt':_0x400af4(0x133)},{'id':_0x400af4(0xf1),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x10b)),'prompt':_0x400af4(0x107)},{'id':_0x400af4(0x105),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x101)),'prompt':_0x400af4(0xfe)},{'id':_0x400af4(0x11e),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0xec)),'prompt':_0x400af4(0x110)},{'id':_0x400af4(0x118),'label':_0x2b53e8(_0x1a56c1,_0x400af4(0x143)),'prompt':_0x400af4(0x136)}]}];}function _0x3e71(_0xeba8b,_0x2d27e0){const _0x4c812=_0x4c81();return _0x3e71=function(_0x3e713f,_0x20e24){_0x3e713f=_0x3e713f-0xe3;let _0x216926=_0x4c812[_0x3e713f];return _0x216926;},_0x3e71(_0xeba8b,_0x2d27e0);}function _0x4c81(){const _0x115698=['translatePortuguese','translateFrench','simplifyLanguage','isPremiumPlugin','ai.assistant.preserveComments','German','Summarize','Confident','translateSpanish','locale','6nLuWlj','7295407mAejJy','makeLonger','forEach','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','summarize','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Simplified\x20Chinese','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Change\x20style','ai.assistant.extraCommandGroups','translateChinese','pluginName','Translate\x20the\x20content\x20to\x20French\x20language.','325326xxPlcs','Friendly','Translate','French','commands','1153836ujmhCW','Change\x20tone','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','isOfficialPlugin','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','includes','push','get','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','translateArabic','Edit\x20or\x20review','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','professional','casual','journalism','translateHindi','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translate','Journalism','translateEnglish','concat','24931890eYKLnY','editOrReview','requires','set','5IeHJTV','ai.assistant.commands','English','Legal','friendly','441419MrPjTv','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Portuguese','Make\x20longer','Translate\x20the\x20content\x20to\x20German\x20language.','define','Professional','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Business','find','AIAssistant','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','changeTone','improveWriting','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','legal','324400qgEIof','config','Improve\x20writing','Arabic','Direct','filter','ai.assistant.removeCommands','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Generate\x20from\x20selection','generate','confident','Continue','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','groupId','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','makeShorter','direct','business','Poetic','Make\x20shorter','continue','Simplify\x20language','Casual','Translate\x20the\x20content\x20to\x20Spanish\x20language.','2870056WLFBUB','Hindi','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateGerman','changeStyle'];_0x4c81=function(){return _0x115698;};return _0x4c81();}
|