@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/966.ai.js +5 -0
- package/build/ai.js +1 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.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-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/en.js +1 -0
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.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/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.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/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.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/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.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/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.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-editor.css +387 -403
- package/dist/index.css +441 -413
- 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/contexts.json +1 -0
- package/lang/translations/af.po +8 -4
- package/lang/translations/ar.po +8 -4
- package/lang/translations/ast.po +8 -4
- package/lang/translations/az.po +8 -4
- package/lang/translations/be.po +8 -4
- package/lang/translations/bg.po +8 -4
- package/lang/translations/bn.po +8 -4
- package/lang/translations/bs.po +8 -4
- package/lang/translations/ca.po +8 -4
- package/lang/translations/cs.po +8 -4
- package/lang/translations/da.po +8 -4
- package/lang/translations/de-ch.po +8 -4
- package/lang/translations/de.po +8 -4
- package/lang/translations/el.po +8 -4
- package/lang/translations/en-au.po +8 -4
- package/lang/translations/en-gb.po +8 -4
- package/lang/translations/en.po +8 -4
- package/lang/translations/eo.po +8 -4
- package/lang/translations/es-co.po +8 -4
- package/lang/translations/es.po +8 -4
- package/lang/translations/et.po +8 -4
- package/lang/translations/eu.po +8 -4
- package/lang/translations/fa.po +8 -4
- package/lang/translations/fi.po +8 -4
- package/lang/translations/fr.po +8 -4
- package/lang/translations/gl.po +8 -4
- package/lang/translations/gu.po +8 -4
- package/lang/translations/he.po +8 -4
- package/lang/translations/hi.po +8 -4
- package/lang/translations/hr.po +8 -4
- package/lang/translations/hu.po +8 -4
- package/lang/translations/hy.po +8 -4
- package/lang/translations/id.po +8 -4
- package/lang/translations/it.po +8 -4
- package/lang/translations/ja.po +8 -4
- package/lang/translations/jv.po +8 -4
- package/lang/translations/kk.po +8 -4
- package/lang/translations/km.po +8 -4
- package/lang/translations/kn.po +8 -4
- package/lang/translations/ko.po +8 -4
- package/lang/translations/ku.po +8 -4
- package/lang/translations/lt.po +8 -4
- package/lang/translations/lv.po +8 -4
- package/lang/translations/ms.po +8 -4
- package/lang/translations/nb.po +8 -4
- package/lang/translations/ne.po +8 -4
- package/lang/translations/nl.po +8 -4
- package/lang/translations/no.po +8 -4
- package/lang/translations/oc.po +8 -4
- package/lang/translations/pl.po +8 -4
- package/lang/translations/pt-br.po +8 -4
- package/lang/translations/pt.po +8 -4
- package/lang/translations/ro.po +8 -4
- package/lang/translations/ru.po +8 -4
- package/lang/translations/si.po +8 -4
- package/lang/translations/sk.po +8 -4
- package/lang/translations/sl.po +8 -4
- package/lang/translations/sq.po +8 -4
- package/lang/translations/sr-latn.po +8 -4
- package/lang/translations/sr.po +8 -4
- package/lang/translations/sv.po +8 -4
- package/lang/translations/th.po +8 -4
- package/lang/translations/ti.po +8 -4
- package/lang/translations/tk.po +8 -4
- package/lang/translations/tr.po +8 -4
- package/lang/translations/tt.po +8 -4
- package/lang/translations/ug.po +8 -4
- package/lang/translations/uk.po +8 -4
- package/lang/translations/ur.po +8 -4
- package/lang/translations/uz.po +8 -4
- package/lang/translations/vi.po +8 -4
- package/lang/translations/zh-cn.po +8 -4
- package/lang/translations/zh.po +8 -4
- package/package.json +21 -21
- 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/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -8
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +24 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +13 -0
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
- 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/aichatfeedcustomelementview.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.d.ts +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/aichatshortcuts/aichatshortcuts.d.ts +324 -0
- package/src/aichatshortcuts/aichatshortcuts.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
- package/src/aiconfig.d.ts +7 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.d.ts +8 -0
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.d.ts +7 -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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.d.ts +1 -0
- 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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/types.d.ts +11 -2
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +95 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
- package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
- package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/augmentation.d.ts +2 -0
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
- package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
- package/theme/aichat/aichat-controls/prompt-input.css +23 -0
- package/theme/aichat/aichat-controls.css +0 -19
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aiminitoolbar.css +0 -16
- package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
- package/theme/aieditorintegration/aitogglebutton.css +5 -11
- package/theme/aiquickactions/aiquickactions.css +6 -11
- package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
- package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
- package/theme/aireviewcore/aireviewcore.css +4 -4
- package/theme/aitabs/aitabsresizebutton.css +14 -0
- package/theme/aitranslate/aitranslate.css +4 -0
- package/theme/common/aibutton.css +56 -67
- package/theme/common/aiheader.css +1 -1
- package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
- package/theme/common/aisuggestionstreamablecontent.css +4 -1
package/lang/translations/ug.po
CHANGED
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr ""
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr ""
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr ""
|
|
@@ -1138,3 +1134,11 @@ msgstr ""
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr ""
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr "Згорнути"
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr "Привіт! Я ваш ШІ-помічник. Уявляйте мене своїм другом для написання текстів, рецензентом або партнером по дослідженнях. Я можу пропонувати зміни до вашого документа, допомагати генерувати ідеї, давати відгуки, обговорювати прикріплені файли та багато іншого!"
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr "Запит було перервано."
|
|
@@ -1138,3 +1134,11 @@ msgstr "Ця розмова завантажена з історії чату п
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr "Дії недоступні для змін із попередньої сесії."
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
package/lang/translations/ur.po
CHANGED
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr ""
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr ""
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr ""
|
|
@@ -1138,3 +1134,11 @@ msgstr ""
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr ""
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
package/lang/translations/uz.po
CHANGED
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr ""
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr ""
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr ""
|
|
@@ -1138,3 +1134,11 @@ msgstr ""
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr ""
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr "Thu nhỏ"
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr "Xin chào, tôi là trợ lý AI của bạn. Hãy xem tôi như người bạn đồng hành viết lách, người xét duyệt hoặc đối tác nghiên cứu của bạn. Tôi có thể đề xuất các thay đổi cho tài liệu của bạn, giúp bạn lên ý tưởng, đưa ra ý kiến phản hồi, thảo luận về các tệp đính kèm và nhiều hơn thế nữa!"
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr "Yêu cầu đã bị hủy."
|
|
@@ -1138,3 +1134,11 @@ msgstr "Cuộc trò chuyện này được tải từ lịch sử trò chuyện
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr "Không thể thực hiện hành động đối với các thay đổi từ phiên trước."
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr "最小化"
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr "嗨,我是你的 AI 助手。你可以把我当成你的写作伙伴、审稿人或者研究搭档。我可以为你的文档提供修改建议、帮助你构思思路、给出反馈、讨论附件内容等等!!"
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr "请求被中止。"
|
|
@@ -1138,3 +1134,11 @@ msgstr "此对话加载自先前会话的的聊天记录,因此您无法应用
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr "无法对先前会话中的更改执行操作。"
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
package/lang/translations/zh.po
CHANGED
|
@@ -259,10 +259,6 @@ msgctxt "The label of the button that switches the AI chat from maximized to nor
|
|
|
259
259
|
msgid "AI_TABS_LABEL_MINIMIZE"
|
|
260
260
|
msgstr "最小化"
|
|
261
261
|
|
|
262
|
-
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
263
|
-
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
264
|
-
msgstr "您好,我是您的 AI 助理。您可以把我當成寫作夥伴、校閱者或是研究合作夥伴。我能給予文件修改建議、協助激發構想、提供意見回饋、討論附加檔案,還能幫上更多忙!"
|
|
265
|
-
|
|
266
262
|
msgctxt "The message displayed when the AI chat query was aborted by the user."
|
|
267
263
|
msgid "AI_CHAT_ABORTED_MESSAGE"
|
|
268
264
|
msgstr "要求已中止。"
|
|
@@ -1138,3 +1134,11 @@ msgstr "此對話是從上一個工作階段的聊天記錄載入,因此無法
|
|
|
1138
1134
|
msgctxt "The message displayed in the chat feed when AI suggestions are disabled, due to being loaded from history."
|
|
1139
1135
|
msgid "AI_SUGGESTION_DISABLED_FEED_MESSAGE"
|
|
1140
1136
|
msgstr "無法對來自上一個工作階段的變更執行動作。"
|
|
1137
|
+
|
|
1138
|
+
msgctxt "The welcome message displayed in the AI chat panel at the start of a conversation."
|
|
1139
|
+
msgid "AI_CHAT_WELCOME_MESSAGE"
|
|
1140
|
+
msgstr ""
|
|
1141
|
+
|
|
1142
|
+
msgctxt "Label for context item displayed when a part of the document content is selected."
|
|
1143
|
+
msgid "AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL"
|
|
1144
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.
|
|
3
|
+
"version": "47.6.0-alpha.0",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -28,29 +28,29 @@
|
|
|
28
28
|
"dist/translations/*.umd.js"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/client-bedrock-runtime": "3.
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.
|
|
39
|
-
"@ckeditor/ckeditor5-
|
|
40
|
-
"@ckeditor/ckeditor5-
|
|
41
|
-
"@ckeditor/ckeditor5-
|
|
42
|
-
"@ckeditor/ckeditor5-
|
|
43
|
-
"@ckeditor/ckeditor5-
|
|
44
|
-
"ckeditor5": "47.
|
|
45
|
-
"ckeditor5-collaboration": "47.
|
|
46
|
-
"es-toolkit": "1.39.5",
|
|
47
|
-
"eventsource-parser": "3.0.2",
|
|
48
|
-
"htmlparser2": "10.0.0",
|
|
49
|
-
"morphdom": "2.7.7",
|
|
31
|
+
"@aws-sdk/client-bedrock-runtime": "3.994.0",
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.6.0-alpha.0",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.6.0-alpha.0",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.6.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.6.0-alpha.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.6.0-alpha.0",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.6.0-alpha.0",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.6.0-alpha.0",
|
|
39
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.6.0-alpha.0",
|
|
40
|
+
"@ckeditor/ckeditor5-table": "47.6.0-alpha.0",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.6.0-alpha.0",
|
|
42
|
+
"@ckeditor/ckeditor5-ui": "47.6.0-alpha.0",
|
|
43
|
+
"@ckeditor/ckeditor5-utils": "47.6.0-alpha.0",
|
|
44
|
+
"ckeditor5": "47.6.0-alpha.0",
|
|
45
|
+
"ckeditor5-collaboration": "47.6.0-alpha.0",
|
|
50
46
|
"diff": "8.0.3",
|
|
51
47
|
"dom-serializer": "2.0.0",
|
|
48
|
+
"domhandler": "5.0.3",
|
|
52
49
|
"domutils": "3.2.2",
|
|
53
|
-
"
|
|
50
|
+
"es-toolkit": "1.39.5",
|
|
51
|
+
"eventsource-parser": "3.0.2",
|
|
52
|
+
"htmlparser2": "10.0.0",
|
|
53
|
+
"morphdom": "2.7.7"
|
|
54
54
|
},
|
|
55
55
|
"type": "module",
|
|
56
56
|
"main": "src/index.js",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x55d0(){const _0x376786=['getSelectedBlocks','pluginName','operationsA','changeGroups','_balloonShowDiff','_interactions','startsWith','aiActionsBalloon','markers','icon','setIsLoading','accepted','requires','bind','11923696THryjR','isPremiumPlugin','set','stickiness','detachFromDom','signal','getSelectedContent','interactionFinished','_stopInteraction','_copyMarkersToFragment','Attribute','_clearErrorState','move','replyCreated','actionCallId','_filterOperationsOutsideRange','dialogClosed','range','version','getCommonAncestor','_wrapWithCommonAncestors','_isAbortError','isDocumentOperation','has','insert','containsRange','7sYtciU','root','filter','Error\x20refreshing\x20interaction:','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','20zeKVFk','getAncestors','error','tryAgain','start','951348wMfkDF','model','abort','_clearInteractionHistory','rootName','createPositionAfter','Error\x20updating\x20content\x20in\x20replyContentUpdated:','focus','schema','_createInteraction','selection','_execute','get','applySuggestion','selectionRemoved','remove','close','_setErrorState','isEqual','sourcePosition','upsertAIActionRating','length','isTableSelection','getFirstRange','setSelection','_clearLoadingState','listenTo','hideLoader','startAutoScroll','_promiseQueue','streaming','isCollapsed','updateContent','rename','from','updateMiniToolbarButtons','stopAutoScroll','setErrorState','stopInteraction','9640570iiJdpX','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_actionsBalloonView','name','_applyOperationsAsSuggestions','TrackChanges','nextSibling','getRange','getOperations','random','showPrevious','29106275iyfiPt','832982ECdCjO','_applyChanges','attachToDom','$graveyard','getLimitElement','editor','hideError','plugins','createPositionFromPath','batch','documentContextContent','getChild','_aiConnector','commands','isBusy','value','nodeAfter','_regularCalculateMarkerPath','ck-ai-actions-balloon','stopListening','replies','AI_ACTIONS_GENERIC_ERROR','applyOperation','queueEmptyPromise','insertSuggestion','history','3CiACgQ','some','includes','_getExecuteDataRegular','getDocumentContext','getRoot','push','config','change','position','_clone','Error\x20updating\x20content\x20in\x20replyCreated:','rejected','max','_interactionParams','clone','8294058CskAMU','map','toggleSuggestionDisplayMode','merge','open','end','createPositionBefore','_interaction','path','isTrackChangesOn','slice','howMany','resetShowChangesButton','_refreshInteraction','clearContent','_setupApplyListeners','setChangeGroupState','hasError','showNext','parent','static','_anchorOperation','_setLoadingState','ai-request-aborted','getSelectedTableCells','isOfficialPlugin','TrackChangesEditing','replyContentUpdated','TableSelection','_navigateToPrevious','createRange','stop','_displayInteractionAtIndex','modelToDataWithIds','baseVersion','showLoader','_appendChild','_currentInteractionIndex','9ANWXpE','getSelectionAsFragment','message','_createActionsBalloonView','documentFragment','AIActions','pending','AIBalloon','ai-no-track-changes','enqueue','split','actionName','indexOf','state','_executeAction','Error\x20updating\x20content\x20during\x20navigation:','upsertCustomAIActionRating','ai.availableReplyActions','document','executeAction','createPositionAt','type','toggleIsLoading','destroy','_navigateToNext','addOperation','_getExecuteDataInTable','disableMiniToolbarButtons','_bodyCollection','showError','catch','AIConnector','trackChanges','affectsData','locale','4093074SQRYfj','replyChangeGroupStateUpdated','getChildAtOffset','getRanges','reinsert'];_0x55d0=function(){return _0x376786;};return _0x55d0();}const _0x2dfba0=_0x5625;(function(_0x4d43d9,_0x18ffc8){const _0x10647=_0x5625,_0x28069a=_0x4d43d9();while(!![]){try{const _0x58b018=parseInt(_0x10647(0x100))/0x1*(parseInt(_0x10647(0x1c3))/0x2)+parseInt(_0x10647(0x159))/0x3+parseInt(_0x10647(0x190))/0x4*(-parseInt(_0x10647(0x18b))/0x5)+parseInt(_0x10647(0x110))/0x6+parseInt(_0x10647(0x186))/0x7*(parseInt(_0x10647(0x16c))/0x8)+-parseInt(_0x10647(0x136))/0x9*(parseInt(_0x10647(0x1b7))/0xa)+-parseInt(_0x10647(0x1c2))/0xb;if(_0x58b018===_0x18ffc8)break;else _0x28069a['push'](_0x28069a['shift']());}catch(_0x49738c){_0x28069a['push'](_0x28069a['shift']());}}}(_0x55d0,0xe1e16));import{Plugin as _0x564a9b}from'ckeditor5/src/core.js';import{AIConnector as _0x3af135}from'../aicore/aiconnector.js';import{Dialog as _0x1d9aae,BodyCollection as _0x18beab}from'ckeditor5/src/ui.js';import{AIEditing as _0x13cb48,AI_VISUAL_SELECTION_MARKER_NAME as _0x58e7a4}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x754405}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x43cbea,first as _0x126161}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3af214}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x3ebf47}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x22ddb2}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1de869}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xcbcf89}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x4bc657}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x22c063,getOperationsFromReply as _0x3f4105}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x262767,ModelRange as _0x533fdd,ModelPosition as _0x5da6dc,_DetachOperation as _0x2d0997,transformOperationSets as _0x400ec8}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x5c7d7b}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x5625(_0x3be267,_0x15e365){const _0x55d065=_0x55d0();return _0x5625=function(_0x5625d5,_0x4caae3){_0x5625d5=_0x5625d5-0xfd;let _0xc851d8=_0x55d065[_0x5625d5];return _0xc851d8;},_0x5625(_0x3be267,_0x15e365);}import{AIActionsBalloonView as _0xa2956d}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x564a9b{static get[_0x2dfba0(0x16a)](){return[_0x3af135,_0x1d9aae,_0x13cb48,_0x3ebf47,_0x4bc657];}static get[_0x2dfba0(0x15f)](){const _0x3f7b99=_0x2dfba0;return _0x3f7b99(0x13b);}static get[_0x2dfba0(0x129)](){return!0x0;}static get[_0x2dfba0(0x16d)](){return!0x0;}[_0x2dfba0(0x1cf)];[_0x2dfba0(0x163)]=[];[_0x2dfba0(0x135)]=0x0;[_0x2dfba0(0x10e)];[_0x2dfba0(0x162)]=!0x1;[_0x2dfba0(0x1ad)];[_0x2dfba0(0x152)];get[_0x2dfba0(0x117)](){const _0x556cfa=_0x2dfba0;return this[_0x556cfa(0x163)][this[_0x556cfa(0x163)][_0x556cfa(0x1a5)]-0x1];}[_0x2dfba0(0x1b9)];constructor(_0x9a8c39){const _0x1ad641=_0x2dfba0;super(_0x9a8c39),this[_0x1ad641(0x152)]=new _0x18beab(this[_0x1ad641(0x1c8)][_0x1ad641(0x158)]),this[_0x1ad641(0x152)][_0x1ad641(0x1c5)](),this[_0x1ad641(0x1cf)]=this[_0x1ad641(0x1c8)][_0x1ad641(0x1ca)][_0x1ad641(0x19c)](_0x1ad641(0x155)),this[_0x1ad641(0x16e)](_0x1ad641(0x1d1),!0x1),this[_0x1ad641(0x1ad)]=new _0x22ddb2();}[_0x2dfba0(0x1b6)](){const _0x181366=_0x2dfba0;this[_0x181366(0x174)]();}async[_0x2dfba0(0x149)](_0x26cd68,_0x3ae2d6,_0x36f8e4){const _0x590d7a=_0x2dfba0;if(this[_0x590d7a(0x174)](),this[_0x590d7a(0x1c8)][_0x590d7a(0x1ca)][_0x590d7a(0x183)](_0x590d7a(0x12c))){if(this[_0x590d7a(0x1c8)][_0x590d7a(0x1ca)][_0x590d7a(0x19c)](_0x590d7a(0x12c))[_0x590d7a(0x128)]()){const {modelFragment:_0x5a5d04,anchorData:_0x222ef1}=this[_0x590d7a(0x150)]();return this[_0x590d7a(0x144)](_0x26cd68,_0x5a5d04,_0x222ef1,_0x3ae2d6,_0x36f8e4);}}const {modelFragment:_0x437b5f,anchorData:_0x492d11}=this[_0x590d7a(0x103)]();return this[_0x590d7a(0x144)](_0x26cd68,_0x437b5f,_0x492d11,_0x3ae2d6,_0x36f8e4);}async[_0x2dfba0(0x14d)](){const _0x5d32bf=_0x2dfba0;return this[_0x5d32bf(0x174)](),this[_0x5d32bf(0x152)][_0x5d32bf(0x170)](),super[_0x5d32bf(0x14d)]();}[_0x2dfba0(0x139)](){const _0x1a0ee5=_0x2dfba0,_0x3d7776=this[_0x1a0ee5(0x1c8)][_0x1a0ee5(0x1ca)][_0x1a0ee5(0x183)](_0x1a0ee5(0x1bc));let _0x2d5f00=this[_0x1a0ee5(0x1c8)][_0x1a0ee5(0x107)][_0x1a0ee5(0x19c)](_0x1a0ee5(0x147))||[..._0x5c7d7b];_0x3d7776||(_0x2d5f00=_0x2d5f00[_0x1a0ee5(0x188)](_0x38937d=>_0x1a0ee5(0xfe)!=_0x38937d));const _0x58fa3b=this[_0x1a0ee5(0x1c8)][_0x1a0ee5(0x1d0)][_0x1a0ee5(0x19c)](_0x1a0ee5(0x156)),_0x2d1339=new _0xa2956d(this[_0x1a0ee5(0x1c8)][_0x1a0ee5(0x158)],{'showApplyButton':!0x0,'showSuggestButton':_0x3d7776,'miniToolbarConfig':{'showChanges':_0x1a0ee5(0x167)},'availableActions':_0x2d5f00});return _0x2d1339[_0x1a0ee5(0x16b)](_0x1a0ee5(0x1d1))['to'](this),_0x58fa3b&&_0x2d1339[_0x1a0ee5(0x16b)](_0x1a0ee5(0x119))['to'](_0x58fa3b,_0x1a0ee5(0x1d2)),_0x2d1339['on'](_0x1a0ee5(0x18e),()=>{const _0x332707=_0x1a0ee5;this[_0x332707(0x11d)]();}),_0x2d1339['on'](_0x1a0ee5(0x1c1),()=>{const _0x1b68a8=_0x1a0ee5;this[_0x1b68a8(0x12d)]();}),_0x2d1339['on'](_0x1a0ee5(0x122),()=>{const _0x5a00e4=_0x1a0ee5;this[_0x5a00e4(0x14e)]();}),_0x2d1339;}[_0x2dfba0(0x103)](){const _0x7c01df=_0x2dfba0,_0xf57c39=this[_0x7c01df(0x1c8)][_0x7c01df(0x191)][_0x7c01df(0x148)][_0x7c01df(0x19a)];if(_0xf57c39[_0x7c01df(0x1af)]){const _0x12a82c=_0x126161(_0xf57c39[_0x7c01df(0x15e)]())||this[_0x7c01df(0x1c8)][_0x7c01df(0x191)][_0x7c01df(0x198)][_0x7c01df(0x1c7)](_0xf57c39);this[_0x7c01df(0x1c8)][_0x7c01df(0x191)][_0x7c01df(0x108)](_0x23aa88=>{const _0x11d4ca=_0x7c01df;_0x23aa88[_0x11d4ca(0x1a8)](_0x12a82c,'in');});}const _0x6ace04=_0xf57c39[_0x7c01df(0x1a7)](),_0x45573f=this[_0x7c01df(0x180)](this[_0x7c01df(0x1c8)][_0x7c01df(0x191)][_0x7c01df(0x172)](_0xf57c39),_0x6ace04[_0x7c01df(0x18f)],_0x6ace04[_0x7c01df(0x115)]);this[_0x7c01df(0x175)](_0x45573f,_0xf57c39,{'isTableSelection':!0x1});const _0x32eed3=_0xf57c39[_0x7c01df(0x1a7)]()[_0x7c01df(0x18f)],_0x36f820=new Map();let _0x22c77f=_0x45573f;for(let _0x3f6128=0x0;_0x3f6128<_0x32eed3[_0x7c01df(0x118)][_0x7c01df(0x1a5)];_0x3f6128++)_0x36f820[_0x7c01df(0x16e)](_0x22c77f,_0x32eed3[_0x7c01df(0x118)][_0x3f6128]),_0x22c77f=_0x22c77f[_0x7c01df(0x1ce)](0x0);return{'modelFragment':_0x45573f,'anchorData':_0x36f820};}[_0x2dfba0(0x150)](){const _0x4e93b8=_0x2dfba0,_0x5be525=this[_0x4e93b8(0x1c8)][_0x4e93b8(0x191)][_0x4e93b8(0x148)][_0x4e93b8(0x19a)],_0x3d474e=this[_0x4e93b8(0x1c8)][_0x4e93b8(0x1ca)][_0x4e93b8(0x19c)](_0x4e93b8(0x12c))[_0x4e93b8(0x137)](),_0x495fd8=_0x5be525[_0x4e93b8(0x1a7)]()[_0x4e93b8(0x18f)][_0x4e93b8(0x123)][_0x4e93b8(0x123)],_0x322e90=this[_0x4e93b8(0x1c8)][_0x4e93b8(0x191)][_0x4e93b8(0x12e)](this[_0x4e93b8(0x1c8)][_0x4e93b8(0x191)][_0x4e93b8(0x116)](_0x495fd8),this[_0x4e93b8(0x1c8)][_0x4e93b8(0x191)][_0x4e93b8(0x195)](_0x495fd8)),_0x1737f2=this[_0x4e93b8(0x180)](_0x3d474e,_0x322e90[_0x4e93b8(0x18f)],_0x322e90[_0x4e93b8(0x115)]);this[_0x4e93b8(0x175)](_0x1737f2,_0x5be525,{'isTableSelection':!0x0});const _0x4496ed=_0x5be525[_0x4e93b8(0x1a7)]()[_0x4e93b8(0x18f)],_0x5badc2=new Map();let _0x519308=_0x1737f2;for(let _0x3ae268=0x0;_0x3ae268<_0x4496ed[_0x4e93b8(0x118)][_0x4e93b8(0x1a5)];_0x3ae268++)if(_0x5badc2[_0x4e93b8(0x16e)](_0x519308,_0x4496ed[_0x4e93b8(0x118)][_0x3ae268]),_0x3ae268<_0x4496ed[_0x4e93b8(0x118)][_0x4e93b8(0x1a5)]-0x1)_0x519308=_0x519308[_0x4e93b8(0x1ce)](0x0);else{let _0x887099=_0x519308[_0x4e93b8(0x1bd)];for(;_0x887099;)_0x5badc2[_0x4e93b8(0x16e)](_0x887099,_0x4496ed[_0x4e93b8(0x118)][_0x3ae268]),_0x887099=_0x887099[_0x4e93b8(0x1bd)];}return{'modelFragment':_0x1737f2,'anchorData':_0x5badc2};}async[_0x2dfba0(0x144)](_0x5d02af,_0x1ab459,_0x246c9b,_0x2a9615,_0x34f960){const _0x32200a=_0x2dfba0,_0x299636=this[_0x32200a(0x1c8)][_0x32200a(0x1ca)][_0x32200a(0x19c)](_0x13cb48),_0x2c6bd9=this[_0x32200a(0x1c8)][_0x32200a(0x1ca)][_0x32200a(0x19c)](_0x3ebf47),_0x533e66=this[_0x32200a(0x1c8)][_0x32200a(0x191)][_0x32200a(0x148)][_0x32200a(0x19a)],_0x2683ce=await _0x299636[_0x32200a(0x131)](_0x1ab459),_0x4f50c5=this[_0x32200a(0x1c8)][_0x32200a(0x191)][_0x32200a(0x148)][_0x32200a(0x17e)],_0x282ea3=[..._0x533e66[_0x32200a(0x15c)]()];return this[_0x32200a(0x1b9)]||(this[_0x32200a(0x1b9)]=this[_0x32200a(0x139)]()),this[_0x32200a(0x193)](),this[_0x32200a(0x177)](),this[_0x32200a(0x1b9)][_0x32200a(0x11e)](),_0x2c6bd9[_0x32200a(0x114)]({'index':0x3e8*Math[_0x32200a(0x1c0)]()%0x3e8,'title':_0x2a9615,'icon':_0x34f960||_0x3af214,'mainView':this[_0x32200a(0x1b9)],'class':_0x32200a(0x1d5),'ranges':_0x282ea3,'id':_0x32200a(0x165)}),this[_0x32200a(0x126)](),this[_0x32200a(0x1d6)](this[_0x32200a(0x1b9)]),this[_0x32200a(0x1d6)](_0x2c6bd9),this[_0x32200a(0x10e)]={'action':_0x5d02af,'content':_0x2683ce,'version':_0x4f50c5,'aiBalloon':_0x2c6bd9,'modelFragment':_0x1ab459,'anchorData':_0x246c9b},this[_0x32200a(0x11f)](),this[_0x32200a(0x1aa)](_0x2c6bd9,_0x32200a(0x19e),()=>{const _0xc316eb=_0x32200a;this[_0xc316eb(0x174)](),this[_0xc316eb(0x1b9)][_0xc316eb(0x151)]();}),this[_0x32200a(0x1aa)](_0x2c6bd9,_0x32200a(0x17c),(_0x53fcfd,{id:_0xed24e2})=>{const _0x591413=_0x32200a;if(_0x591413(0x165)===_0xed24e2){if(this[_0x591413(0x117)]&&this[_0x591413(0x117)][_0x591413(0x1d7)][_0x591413(0x1a5)]>0x0){const _0x25fd76=this[_0x591413(0x117)][_0x591413(0x1d7)][this[_0x591413(0x117)][_0x591413(0x1d7)][_0x591413(0x1a5)]-0x1],_0x3f08a6=_0x25fd76[_0x591413(0x161)][0x0];_0x3f08a6&&_0x591413(0x13c)===_0x3f08a6[_0x591413(0x143)]&&_0x25fd76[_0x591413(0x120)](0x0,_0x591413(0x10c));}this[_0x591413(0x174)](),this[_0x591413(0x193)](),this[_0x591413(0x1d6)](this[_0x591413(0x1b9)]),this[_0x591413(0x1d6)](_0x2c6bd9);}}),this[_0x32200a(0x199)](_0x2683ce,_0x4f50c5,_0x2c6bd9,_0x5d02af);}[_0x2dfba0(0x11f)](){const _0x10f706=_0x2dfba0;if(!this[_0x10f706(0x10e)])return;const {modelFragment:_0x2cdbf3,anchorData:_0xd0e0b3}=this[_0x10f706(0x10e)];this[_0x10f706(0x1aa)](this[_0x10f706(0x1b9)],_0x10f706(0x19d),()=>{const _0x1caa7d=_0x10f706;this[_0x1caa7d(0x1c4)](_0x2cdbf3,_0xd0e0b3,!0x1);}),this[_0x10f706(0x1aa)](this[_0x10f706(0x1b9)],_0x10f706(0xfe),()=>{const _0x4f3e6c=_0x10f706;this[_0x4f3e6c(0x1c4)](_0x2cdbf3,_0xd0e0b3,!0x0);});}[_0x2dfba0(0x180)](_0x30e05b,_0x23d1d5,_0x399548){const _0xbf7249=_0x2dfba0,_0xc2a41=this[_0xbf7249(0x1c8)][_0xbf7249(0x191)][_0xbf7249(0x12e)](_0x23d1d5,_0x399548)[_0xbf7249(0x17f)](),_0x5efe93=_0xc2a41['is'](_0xbf7249(0x13a))?[]:_0xc2a41[_0xbf7249(0x18c)]({'includeSelf':!0x0})[_0xbf7249(0x11a)](0x1);if(_0x5efe93[_0xbf7249(0x1a5)]){const _0x2e1ad0=_0x5efe93[_0xbf7249(0x111)](_0x59fc40=>_0x59fc40[_0xbf7249(0x10a)](!0x1));for(let _0x42ca95=0x1;_0x42ca95<_0x2e1ad0[_0xbf7249(0x1a5)];_0x42ca95++)_0x2e1ad0[_0x42ca95-0x1][_0xbf7249(0x134)](_0x2e1ad0[_0x42ca95]);return _0x2e1ad0[_0x2e1ad0[_0xbf7249(0x1a5)]-0x1][_0xbf7249(0x134)](_0x30e05b),new _0x262767(_0x2e1ad0[0x0]);}return _0x30e05b;}[_0x2dfba0(0x175)](_0x2fa0b3,_0x570171,_0x2da9b0={'isTableSelection':!0x1}){const _0x313bb0=_0x2dfba0,_0x339203=this[_0x313bb0(0x1c8)][_0x313bb0(0x191)],_0x396000=Array[_0x313bb0(0x1b2)](_0x570171[_0x313bb0(0x15c)]()),_0x8ee354=_0x570171[_0x313bb0(0x1a7)]()[_0x313bb0(0x18f)];for(const _0x10732b of _0x339203[_0x313bb0(0x166)]){if(_0x10732b[_0x313bb0(0x1ba)][_0x313bb0(0x164)](_0x58e7a4)||!_0x10732b[_0x313bb0(0x157)])continue;const _0x3c0f08=_0x10732b[_0x313bb0(0x1be)]();if(!_0x396000[_0x313bb0(0x101)](_0x3409e7=>_0x3409e7[_0x313bb0(0x185)](_0x3c0f08,!0x0)))continue;const _0x4f9bac=this[_0x313bb0(0x1d4)](_0x3c0f08[_0x313bb0(0x18f)],_0x8ee354,_0x2da9b0[_0x313bb0(0x1a6)]),_0x498dd9=this[_0x313bb0(0x1d4)](_0x3c0f08[_0x313bb0(0x115)],_0x8ee354,_0x2da9b0[_0x313bb0(0x1a6)]),_0x23703b=_0x339203[_0x313bb0(0x1cb)](_0x2fa0b3,_0x4f9bac),_0x5d6668=_0x339203[_0x313bb0(0x1cb)](_0x2fa0b3,_0x498dd9);if(!_0x23703b[_0x313bb0(0x1a2)](_0x5d6668)){const _0x30b080=_0x339203[_0x313bb0(0x12e)](_0x23703b,_0x5d6668);_0x2fa0b3[_0x313bb0(0x166)][_0x313bb0(0x16e)](_0x10732b[_0x313bb0(0x1ba)],_0x30b080);}}}[_0x2dfba0(0x1d4)](_0x1752aa,_0x22177b,_0xe9c92e=!0x1){const _0x11e7e9=_0x2dfba0,_0xee1a0a=[..._0x1752aa[_0x11e7e9(0x118)][_0x11e7e9(0x11a)]()];for(let _0x10e769=0x0;_0x10e769<Math[_0x11e7e9(0x10d)](_0x22177b[_0x11e7e9(0x118)][_0x11e7e9(0x1a5)],_0x1752aa[_0x11e7e9(0x118)][_0x11e7e9(0x1a5)]);_0x10e769++){const _0x3ba77e=_0x22177b[_0x11e7e9(0x118)][_0x10e769]||0x0,_0x1758e3=(_0x1752aa[_0x11e7e9(0x118)][_0x10e769]||0x0)-_0x3ba77e;if(_0xee1a0a[_0x10e769]=_0x1758e3,0x0!==_0x1758e3&&!_0xe9c92e)break;}return _0xee1a0a;}async[_0x2dfba0(0x199)](_0x4dc67c,_0x257e4c,_0x11a380,_0x4b590b){const _0x2ae0ab=_0x2dfba0,_0x3589a3=this[_0x2ae0ab(0x1c8)];this[_0x2ae0ab(0x10e)]||(this[_0x2ae0ab(0x10e)]={'action':_0x4b590b,'content':_0x4dc67c,'version':_0x257e4c,'aiBalloon':_0x11a380,'modelFragment':this[_0x2ae0ab(0x1c8)][_0x2ae0ab(0x191)][_0x2ae0ab(0x172)](this[_0x2ae0ab(0x1c8)][_0x2ae0ab(0x191)][_0x2ae0ab(0x148)][_0x2ae0ab(0x19a)]),'anchorData':new Map()});const _0x587116=new _0x754405({'connector':this[_0x2ae0ab(0x1cf)],'editor':_0x3589a3,'content':_0x4dc67c,'version':_0x257e4c,..._0x4b590b});this[_0x2ae0ab(0x163)][_0x2ae0ab(0x106)](_0x587116);const _0x5a677d=(_0x4fabb6,_0x18cca2=!0x1,_0x14130b=_0x2ae0ab(0x1ae))=>this[_0x2ae0ab(0x1ad)][_0x2ae0ab(0x13f)](async _0x4bd1de=>{const _0x38a92e=_0x2ae0ab;try{const _0x1a6f22=_0xcbcf89({'editor':_0x3589a3,'changeGroups':_0x4fabb6[_0x38a92e(0x161)],'documentContextContent':_0x4fabb6[_0x38a92e(0x1cd)],'showDiff':_0x18cca2,'trimUnchanged':!0x1});_0x1a6f22[_0x38a92e(0x1a5)]&&await this[_0x38a92e(0x1b9)][_0x38a92e(0x1b0)]({'part':_0x1a6f22[0x0],'renderingStrategy':_0x14130b,'abortSignal':_0x4bd1de});}catch(_0x2b1858){if(this[_0x38a92e(0x181)](_0x2b1858))return;throw _0x2b1858;}});this[_0x2ae0ab(0x117)]['on'](_0x2ae0ab(0x179),(_0x525867,_0x517f63)=>{const _0x30579f=_0x2ae0ab;this[_0x30579f(0x1b9)][_0x30579f(0x1ab)](),this[_0x30579f(0x1b9)][_0x30579f(0x1ac)](),_0x5a677d(_0x517f63)[_0x30579f(0x154)](_0x6b0ad7=>{const _0x2e746b=_0x30579f;this[_0x2e746b(0x181)](_0x6b0ad7)||(console[_0x2e746b(0x18d)](_0x2e746b(0x10b),_0x6b0ad7),this[_0x2e746b(0x1a1)](_0x587116));});}),this[_0x2ae0ab(0x117)]['on'](_0x2ae0ab(0x12b),(_0xfa067b,_0x307b3e)=>{const _0x5a9c97=_0x2ae0ab;_0x5a677d(_0x307b3e)[_0x5a9c97(0x154)](_0x4098d5=>{const _0x59393b=_0x5a9c97;this[_0x59393b(0x181)](_0x4098d5)||(console[_0x59393b(0x18d)](_0x59393b(0x196),_0x4098d5),this[_0x59393b(0x1a1)](_0x587116));});}),this[_0x2ae0ab(0x117)]['on'](_0x2ae0ab(0x173),async()=>{const _0x1df93d=_0x2ae0ab;try{await this[_0x1df93d(0x1a9)](),this[_0x1df93d(0x1b9)][_0x1df93d(0x1b3)](this[_0x1df93d(0x163)][_0x1df93d(0x1a5)],this[_0x1df93d(0x135)]),await this[_0x1df93d(0x1ad)][_0x1df93d(0xfd)];}catch(_0x46a4dc){this[_0x1df93d(0x181)](_0x46a4dc)||(console[_0x1df93d(0x18d)](_0x1df93d(0x18a),_0x46a4dc),this[_0x1df93d(0x1a1)](_0x587116));}finally{this[_0x1df93d(0x1b9)][_0x1df93d(0x1b4)]();}}),this[_0x2ae0ab(0x1aa)](this[_0x2ae0ab(0x1b9)],_0x2ae0ab(0x112),async(_0xa8dced,{showDiff:_0x4e8a8a})=>{const _0x54286d=_0x2ae0ab;try{this[_0x54286d(0x162)]=_0x4e8a8a;const _0x4669a5=this[_0x54286d(0x117)][_0x54286d(0x1d7)][this[_0x54286d(0x117)][_0x54286d(0x1d7)][_0x54286d(0x1a5)]-0x1];_0x4669a5&&await _0x5a677d(_0x4669a5,_0x4e8a8a,_0x54286d(0x124));}catch(_0x5c5f73){this[_0x54286d(0x181)](_0x5c5f73)||(console[_0x54286d(0x18d)](_0x54286d(0x1b8),_0x5c5f73),this[_0x54286d(0x1a1)](_0x587116));}}),this[_0x2ae0ab(0x117)]['on'](_0x2ae0ab(0x15a),(_0x41c6d0,{reply:_0x220542})=>{const _0x14ef3b=_0x2ae0ab,_0x336684={'positiveCount':_0x220542[_0x14ef3b(0x161)][_0x14ef3b(0x188)](_0x4c56a6=>_0x14ef3b(0x169)===_0x4c56a6[_0x14ef3b(0x143)])[_0x14ef3b(0x1a5)],'totalCount':_0x220542[_0x14ef3b(0x161)][_0x14ef3b(0x1a5)]},_0x17d4c9=this[_0x14ef3b(0x117)][_0x14ef3b(0x17a)],_0x4ce31e=this[_0x14ef3b(0x117)][_0x14ef3b(0x141)];_0x4ce31e?this[_0x14ef3b(0x1cf)][_0x14ef3b(0x1a4)](_0x4ce31e,_0x17d4c9,_0x336684):this[_0x14ef3b(0x1cf)][_0x14ef3b(0x146)](_0x17d4c9,_0x336684);}),this[_0x2ae0ab(0x126)]();try{const _0x46ff70=await this[_0x2ae0ab(0x117)][_0x2ae0ab(0x18f)]();return this[_0x2ae0ab(0x1b9)][_0x2ae0ab(0x1b3)](this[_0x2ae0ab(0x163)][_0x2ae0ab(0x1a5)],this[_0x2ae0ab(0x135)]),_0x46ff70;}catch(_0x110854){if(this[_0x2ae0ab(0x181)](_0x110854))return;this[_0x2ae0ab(0x1b9)][_0x2ae0ab(0x1ab)](),this[_0x2ae0ab(0x1a1)](_0x587116);}}[_0x2dfba0(0x1c4)](_0x4acd1f,_0x1eeda2,_0x32c6e7){const _0x5e056d=_0x2dfba0,_0x183663=this[_0x5e056d(0x1c8)];if(_0x32c6e7&&!_0x183663[_0x5e056d(0x1ca)][_0x5e056d(0x183)](_0x5e056d(0x1bc)))throw new _0x43cbea(_0x5e056d(0x13e),null);const _0x566483=this[_0x5e056d(0x1c8)][_0x5e056d(0x1ca)][_0x5e056d(0x19c)](_0x4bc657),_0x214ee0=this[_0x5e056d(0x163)][this[_0x5e056d(0x163)][_0x5e056d(0x1a5)]-0x1-this[_0x5e056d(0x135)]];if(!_0x214ee0||!_0x214ee0[_0x5e056d(0x1d7)][_0x5e056d(0x1a5)])return;const _0xa5664f=_0x214ee0[_0x5e056d(0x1d7)][_0x214ee0[_0x5e056d(0x1d7)][_0x5e056d(0x1a5)]-0x1],_0x4c9537=_0xa5664f[_0x5e056d(0x161)];_0xa5664f[_0x5e056d(0x120)](0x0,_0x5e056d(0x169));let _0x12a7d7=_0x3f4105({'editor':_0x183663,'reply':_0xa5664f,'interaction':_0x214ee0,'groups':_0x4c9537,'transform':!0x1,'documentCompare':_0x566483,'documentCompareOptions':{'anchor':_0x183663[_0x5e056d(0x191)][_0x5e056d(0x14a)](_0x4acd1f,0x0),'markDeletions':_0x32c6e7}});_0x12a7d7=this[_0x5e056d(0x17b)](_0x12a7d7,_0x1eeda2);for(const _0x41dadf of _0x12a7d7)this[_0x5e056d(0x125)](_0x1eeda2,_0x41dadf,_0x183663[_0x5e056d(0x191)][_0x5e056d(0x148)][_0x5e056d(0x105)]());const _0x57c3c0=_0x214ee0[_0x5e056d(0x104)]()[_0x5e056d(0x17e)],_0x36f500=_0x183663[_0x5e056d(0x191)][_0x5e056d(0x148)][_0x5e056d(0xff)][_0x5e056d(0x1bf)](_0x57c3c0),_0x5dccc5={'document':_0x183663[_0x5e056d(0x191)][_0x5e056d(0x148)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x316a48=_0x400ec8(_0x12a7d7,_0x36f500,_0x5dccc5)[_0x5e056d(0x160)];_0x183663[_0x5e056d(0x191)][_0x5e056d(0x108)](_0x2a6ad2=>{const _0x3779c6=_0x5e056d;if(_0x2a6ad2[_0x3779c6(0x1a8)](_0x183663[_0x3779c6(0x191)][_0x3779c6(0x148)][_0x3779c6(0x19a)][_0x3779c6(0x197)]),_0x32c6e7)_0x183663[_0x3779c6(0x1ca)][_0x3779c6(0x19c)](_0x3779c6(0x12a))[_0x3779c6(0x1bb)](_0x316a48);else{for(const _0x410242 of _0x316a48)_0x410242[_0x3779c6(0x132)]=_0x183663[_0x3779c6(0x191)][_0x3779c6(0x148)][_0x3779c6(0x17e)],_0x22c063(_0x183663,_0x410242),_0x2a6ad2[_0x3779c6(0x1cc)][_0x3779c6(0x14f)](_0x410242),_0x183663[_0x3779c6(0x191)][_0x3779c6(0x1d9)](_0x410242);}}),this[_0x5e056d(0x1c8)][_0x5e056d(0x1ca)][_0x5e056d(0x19c)](_0x5e056d(0x13d))[_0x5e056d(0x1a0)]();}[_0x2dfba0(0x17b)](_0x58237a,_0x12eb8e){const _0x29cb3a=_0x2dfba0;return _0x58237a[_0x29cb3a(0x188)](_0x8fee49=>{const _0x8e1650=_0x29cb3a;if(_0x8e1650(0x1b1)==_0x8fee49[_0x8e1650(0x14b)]){const _0x437c8d=_0x8fee49[_0x8e1650(0x109)][_0x8e1650(0x1d3)];return!_0x12eb8e[_0x8e1650(0x183)](_0x437c8d);}if(_0x8fee49[_0x8e1650(0x14b)][_0x8e1650(0x142)](_0x8e1650(0x176))>-0x1){const _0x1bc6a5=_0x8fee49[_0x8e1650(0x17d)][_0x8e1650(0x18f)][_0x8e1650(0x1d3)];return!_0x12eb8e[_0x8e1650(0x183)](_0x1bc6a5);}return!0x0;});}[_0x2dfba0(0x125)](_0x268216,_0x4164e4,_0x1a4774){const _0x4bc447=_0x2dfba0,_0x4d004b=_0x4164e4[_0x4bc447(0x10f)]();for(const _0x17d0db in _0x4164e4){const _0x38dad1=_0x4164e4[_0x17d0db];_0x38dad1 instanceof _0x533fdd?_0x4164e4[_0x17d0db]=new _0x533fdd(_0x483e94(_0x38dad1[_0x4bc447(0x18f)]),_0x483e94(_0x38dad1[_0x4bc447(0x115)])):_0x38dad1 instanceof _0x5da6dc&&(_0x4164e4[_0x17d0db]=_0x483e94(_0x38dad1));}if([_0x4bc447(0x184),_0x4bc447(0x178),_0x4bc447(0x19f),_0x4bc447(0x15d),_0x4bc447(0x140),_0x4bc447(0x113)][_0x4bc447(0x102)](_0x4d004b[_0x4bc447(0x14b)])){if(_0x4d004b[_0x4bc447(0x182)]=!0x1,_0x4d004b[_0x4bc447(0x132)]=null,_0x4bc447(0x19f)==_0x4d004b[_0x4bc447(0x14b)]){const _0x1c9ee1=_0x4d004b[_0x4bc447(0x1a3)],_0x135c59=_0x4d004b[_0x4bc447(0x11b)];new _0x2d0997(_0x1c9ee1,_0x135c59)[_0x4bc447(0x19b)]();}else _0x4d004b[_0x4bc447(0x19b)]();}function _0x483e94(_0xfaed97){const _0x586c8a=_0x4bc447;if(_0x586c8a(0x1c6)==_0xfaed97[_0x586c8a(0x187)][_0x586c8a(0x194)])return _0xfaed97;const _0x5106c1=[];let _0x593883=_0xfaed97[_0x586c8a(0x187)];for(let _0x3f9843=0x0;_0x3f9843<_0xfaed97[_0x586c8a(0x118)][_0x586c8a(0x1a5)];_0x3f9843++){const _0x653ca8=_0x268216[_0x586c8a(0x19c)](_0x593883)||0x0;_0x5106c1[_0x3f9843]=_0xfaed97[_0x586c8a(0x118)][_0x3f9843]+_0x653ca8,_0x593883=_0x593883[_0x586c8a(0x15b)](_0xfaed97[_0x586c8a(0x118)][_0x3f9843]);}return new _0x5da6dc(_0x1a4774,_0x5106c1,_0xfaed97[_0x586c8a(0x16f)]);}}[_0x2dfba0(0x11d)](){const _0x1fa1d6=_0x2dfba0;if(!this[_0x1fa1d6(0x10e)])return;this[_0x1fa1d6(0x163)][_0x1fa1d6(0x1a5)]>0x0&&this[_0x1fa1d6(0x174)](),this[_0x1fa1d6(0x135)]=0x0,this[_0x1fa1d6(0x162)]=!0x1;const {action:_0xd02257,content:_0x1e0fd1,version:_0x4c0f34,aiBalloon:_0xb64555}=this[_0x1fa1d6(0x10e)];this[_0x1fa1d6(0x177)](),this[_0x1fa1d6(0x1b9)][_0x1fa1d6(0x11e)](),this[_0x1fa1d6(0x1b9)][_0x1fa1d6(0x133)](),this[_0x1fa1d6(0x1b9)][_0x1fa1d6(0x11c)](),this[_0x1fa1d6(0x1b9)][_0x1fa1d6(0x1b3)](this[_0x1fa1d6(0x163)][_0x1fa1d6(0x1a5)],this[_0x1fa1d6(0x135)]),this[_0x1fa1d6(0x1d6)](this[_0x1fa1d6(0x1b9)]),this[_0x1fa1d6(0x11f)](),this[_0x1fa1d6(0x199)](_0x1e0fd1,_0x4c0f34,_0xb64555,_0xd02257)[_0x1fa1d6(0x154)](_0x3ac970=>{const _0x3a8aea=_0x1fa1d6;this[_0x3a8aea(0x181)](_0x3ac970)||console[_0x3a8aea(0x18d)](_0x3a8aea(0x189),_0x3ac970);});}[_0x2dfba0(0x181)](_0x1d8916){const _0x3f8151=_0x2dfba0;return!!_0x1d8916[_0x3f8151(0x138)]&&_0x1d8916[_0x3f8151(0x138)][_0x3f8151(0x164)](_0x3f8151(0x127));}[_0x2dfba0(0x193)](){const _0x3728e0=_0x2dfba0;this[_0x3728e0(0x163)]=[],this[_0x3728e0(0x10e)]=void 0x0,this[_0x3728e0(0x135)]=0x0,this[_0x3728e0(0x1b9)][_0x3728e0(0x1b3)](this[_0x3728e0(0x163)][_0x3728e0(0x1a5)],this[_0x3728e0(0x135)]);}[_0x2dfba0(0x174)](){const _0x1ca9d3=_0x2dfba0;this[_0x1ca9d3(0x117)]&&this[_0x1ca9d3(0x117)][_0x1ca9d3(0x12f)](),this[_0x1ca9d3(0x1ad)][_0x1ca9d3(0x192)](),this[_0x1ca9d3(0x1d1)]=!0x1,this[_0x1ca9d3(0x10e)]&&this[_0x1ca9d3(0x1b9)][_0x1ca9d3(0x1b4)]();}[_0x2dfba0(0x12d)](){const _0x3257b0=_0x2dfba0,_0x2dd1fc=this[_0x3257b0(0x163)][_0x3257b0(0x1a5)];this[_0x3257b0(0x135)]<_0x2dd1fc-0x1&&this[_0x3257b0(0x130)](this[_0x3257b0(0x135)]+0x1);}[_0x2dfba0(0x14e)](){const _0x576a9e=_0x2dfba0;this[_0x576a9e(0x135)]>0x0&&this[_0x576a9e(0x130)](this[_0x576a9e(0x135)]-0x1);}async[_0x2dfba0(0x130)](_0x2b886e){const _0x575661=_0x2dfba0;if(!this[_0x575661(0x10e)])return;this[_0x575661(0x135)]=_0x2b886e;const _0x3b2d4d=this[_0x575661(0x163)][this[_0x575661(0x163)][_0x575661(0x1a5)]-0x1-this[_0x575661(0x135)]];if(!_0x3b2d4d)return;if(_0x3b2d4d[_0x575661(0x121)])return this[_0x575661(0x1a1)](_0x3b2d4d),void this[_0x575661(0x1b9)][_0x575661(0x1b3)](this[_0x575661(0x163)][_0x575661(0x1a5)],this[_0x575661(0x135)]);if(!_0x3b2d4d[_0x575661(0x1d7)][_0x575661(0x1a5)])return;this[_0x575661(0x1b9)][_0x575661(0x1c9)](),this[_0x575661(0x10e)]&&this[_0x575661(0x177)]();const _0xb00ce=_0x3b2d4d[_0x575661(0x1d7)][_0x3b2d4d[_0x575661(0x1d7)][_0x575661(0x1a5)]-0x1];if(_0xb00ce){const _0x5da032=this[_0x575661(0x1c8)];try{const _0x584144=_0xcbcf89({'editor':_0x5da032,'changeGroups':_0xb00ce[_0x575661(0x161)],'documentContextContent':_0xb00ce[_0x575661(0x1cd)],'showDiff':this[_0x575661(0x162)],'trimUnchanged':!0x1});await new Promise(_0x55c2b4=>setTimeout(_0x55c2b4,0x32)),await this[_0x575661(0x1b9)][_0x575661(0x1b0)]({'part':_0x584144[0x0],'renderingStrategy':_0x575661(0x124),'abortSignal':new AbortController()[_0x575661(0x171)]});}catch(_0x40e64c){this[_0x575661(0x181)](_0x40e64c)||console[_0x575661(0x18d)](_0x575661(0x145),_0x40e64c);}}this[_0x575661(0x1b9)][_0x575661(0x1b3)](this[_0x575661(0x163)][_0x575661(0x1a5)],this[_0x575661(0x135)]);}[_0x2dfba0(0x126)](){const _0x52c0de=_0x2dfba0;this[_0x52c0de(0x1b9)][_0x52c0de(0x168)](!0x0),this[_0x52c0de(0x1d1)]=!0x0;}async[_0x2dfba0(0x1a1)](_0x2eef33){const _0x41dac3=_0x2dfba0,_0x115354=_0x1de869(this[_0x41dac3(0x1c8)][_0x41dac3(0x158)],_0x41dac3(0x1d8));this[_0x41dac3(0x1b9)][_0x41dac3(0x153)](_0x115354),_0x2eef33[_0x41dac3(0x121)]=!0x0,await this[_0x41dac3(0x1ad)][_0x41dac3(0xfd)],this[_0x41dac3(0x1b9)][_0x41dac3(0x1b5)](),this[_0x41dac3(0x1b9)][_0x41dac3(0x14c)](!0x0);}[_0x2dfba0(0x177)](){const _0x5df1f1=_0x2dfba0;this[_0x5df1f1(0x1b9)][_0x5df1f1(0x1c9)](),this[_0x5df1f1(0x1b9)][_0x5df1f1(0x14c)](!0x1);}async[_0x2dfba0(0x1a9)](){const _0x1a1964=_0x2dfba0;await this[_0x1a1964(0x1ad)][_0x1a1964(0xfd)],this[_0x1a1964(0x1d1)]=!0x1,this[_0x1a1964(0x1b9)][_0x1a1964(0x168)](!0x1);}}
|
|
23
|
+
const _0x410f0f=_0x4a7a;function _0x3fa6(){const _0x51eecd=['showError','documentContextContent','TrackChanges','remove','nodeAfter','getChild','Attribute','modelToDataWithIds','$graveyard','getLimitElement','static','43763247ucOhHK','root','TableSelection','applySuggestion','push','get','getRanges','from','changeGroups','rename','_clone','documentFragment','pending','_aiConnector','replyContentUpdated','ai-no-track-changes','_clearInteractionHistory','_anchorOperation','locale','requires','accepted','map','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_displayInteractionAtIndex','isTrackChangesOn','_balloonShowDiff','404075YESNzb','createPositionFromPath','toggleIsLoading','baseVersion','attachToDom','start','containsRange','schema','getChildAtOffset','_copyMarkersToFragment','applyOperation','upsertCustomAIActionRating','replyCreated','range','reinsert','isTableSelection','Error\x20refreshing\x20interaction:','AI_ACTIONS_GENERIC_ERROR','showNext','aiActionsBalloon','editor','set','4RavkWZ','replyChangeGroupStateUpdated','showPrevious','458QtpYYY','sourcePosition','_applyChanges','_actionsBalloonView','position','length','_filterOperationsOutsideRange','affectsData','close','interactionFinished','move','bind','createPositionAfter','_setLoadingState','end','7370991BHOcUU','addOperation','signal','_createActionsBalloonView','markers','_createInteraction','icon','enqueue','Error\x20updating\x20content\x20in\x20replyContentUpdated:','3572785OMgfOD','split','startAutoScroll','commands','catch','parent','type','_navigateToPrevious','error','_interactions','abort','setSelection','max','setErrorState','dialogClosed','model','showLoader','filter','AIActions','stickiness','includes','version','TrackChangesEditing','AIConnector','getDocumentContext','setChangeGroupState','actionCallId','_wrapWithCommonAncestors','value','document','5243910RVkMqJ','ai-request-aborted','_clearLoadingState','Error\x20updating\x20content\x20during\x20navigation:','_setErrorState','56OVUiDe','message','some','name','isBusy','tryAgain','state','rootName','isDocumentOperation','stop','replies','_isAbortError','trackChanges','has','getSelectedContent','isEqual','updateMiniToolbarButtons','listenTo','_clearErrorState','_regularCalculateMarkerPath','indexOf','isPremiumPlugin','AIBalloon','2701GsBuUu','selection','_appendChild','upsertAIActionRating','open','_currentInteractionIndex','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','insert','_stopInteraction','_promiseQueue','config','executeAction','_execute','_executeAction','startsWith','clearContent','focus','detachFromDom','getSelectedTableCells','merge','batch','getCommonAncestor','random','history','slice','toggleSuggestionDisplayMode','change','Error\x20updating\x20content\x20in\x20replyCreated:','_setupApplyListeners','nextSibling','stopListening','hideError','getRange','_applyOperationsAsSuggestions','isOfficialPlugin','getAncestors','_interactionParams','getOperations','howMany','getRoot','getSelectedBlocks','selectionRemoved','setIsLoading','stopInteraction','_getExecuteDataInTable','_refreshInteraction','queueEmptyPromise','rejected','ck-ai-actions-balloon','clone','actionName','path','resetShowChangesButton','_navigateToNext','updateContent','stopAutoScroll','2878410isClPf','getSelectionAsFragment','operationsA','disableMiniToolbarButtons','createRange','_getExecuteDataRegular','plugins','getFirstRange','streaming','createPositionAt','createPositionBefore','10luoZUb','hideLoader','ai.availableReplyActions','pluginName','isCollapsed','insertSuggestion','_interaction','hasError','_bodyCollection','destroy'];_0x3fa6=function(){return _0x51eecd;};return _0x3fa6();}(function(_0x976d26,_0x5a4586){const _0x549ca5=_0x4a7a,_0x91253d=_0x976d26();while(!![]){try{const _0x510bec=parseInt(_0x549ca5(0x16e))/0x1*(parseInt(_0x549ca5(0x1f9))/0x2)+-parseInt(_0x549ca5(0x1a6))/0x3*(parseInt(_0x549ca5(0x1f6))/0x4)+-parseInt(_0x549ca5(0x211))/0x5+-parseInt(_0x549ca5(0x22f))/0x6+parseInt(_0x549ca5(0x1e0))/0x7*(-parseInt(_0x549ca5(0x234))/0x8)+-parseInt(_0x549ca5(0x208))/0x9*(parseInt(_0x549ca5(0x1b1))/0xa)+parseInt(_0x549ca5(0x1c6))/0xb;if(_0x510bec===_0x5a4586)break;else _0x91253d['push'](_0x91253d['shift']());}catch(_0x4b7a60){_0x91253d['push'](_0x91253d['shift']());}}}(_0x3fa6,0xc9a40));import{Plugin as _0x5ac102}from'ckeditor5/src/core.js';import{AIConnector as _0x3e3b26}from'../aicore/aiconnector.js';import{Dialog as _0x59b1aa,BodyCollection as _0x70cc2e}from'ckeditor5/src/ui.js';import{AIEditing as _0x3edf84,AI_VISUAL_SELECTION_MARKER_NAME as _0x59273e}from'../aicore/aiediting.js';function _0x4a7a(_0x4bc24c,_0x38c948){const _0x3fa6c5=_0x3fa6();return _0x4a7a=function(_0x4a7a58,_0x57f03b){_0x4a7a58=_0x4a7a58-0x16b;let _0xaec992=_0x3fa6c5[_0x4a7a58];return _0xaec992;},_0x4a7a(_0x4bc24c,_0x38c948);}import{AIActionsInteraction as _0x16e158}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4ce4dc,first as _0x2d8493}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4187d1}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x40d4f7}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x55f8f7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1b1703}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xc91979}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x5ab472}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x185d59,getOperationsFromReply as _0x45d587}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x36d049,ModelRange as _0x249e2a,ModelPosition as _0x306b70,_DetachOperation as _0x4be5f1,transformOperationSets as _0x3992b2}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x5657ad}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x5a2cd3}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x5ac102{static get[_0x410f0f(0x1d9)](){return[_0x3e3b26,_0x59b1aa,_0x3edf84,_0x40d4f7,_0x5ab472];}static get[_0x410f0f(0x1b4)](){const _0xe4d11=_0x410f0f;return _0xe4d11(0x223);}static get[_0x410f0f(0x190)](){return!0x0;}static get[_0x410f0f(0x16c)](){return!0x0;}[_0x410f0f(0x1d3)];[_0x410f0f(0x21a)]=[];[_0x410f0f(0x173)]=0x0;[_0x410f0f(0x192)];[_0x410f0f(0x1df)]=!0x1;[_0x410f0f(0x177)];[_0x410f0f(0x1b9)];get[_0x410f0f(0x1b7)](){const _0x354ae=_0x410f0f;return this[_0x354ae(0x21a)][this[_0x354ae(0x21a)][_0x354ae(0x1fe)]-0x1];}[_0x410f0f(0x1fc)];constructor(_0x165148){const _0x19387f=_0x410f0f;super(_0x165148),this[_0x19387f(0x1b9)]=new _0x70cc2e(this[_0x19387f(0x1f4)][_0x19387f(0x1d8)]),this[_0x19387f(0x1b9)][_0x19387f(0x1e4)](),this[_0x19387f(0x1d3)]=this[_0x19387f(0x1f4)][_0x19387f(0x1ac)][_0x19387f(0x1cb)](_0x19387f(0x228)),this[_0x19387f(0x1f5)](_0x19387f(0x238),!0x1),this[_0x19387f(0x177)]=new _0x55f8f7();}[_0x410f0f(0x199)](){const _0x3eaa88=_0x410f0f;this[_0x3eaa88(0x176)]();}async[_0x410f0f(0x179)](_0x4c2db7,_0xd9512f,_0x20f5ee){const _0x4b4511=_0x410f0f;if(this[_0x4b4511(0x176)](),this[_0x4b4511(0x1f4)][_0x4b4511(0x1ac)][_0x4b4511(0x241)](_0x4b4511(0x1c8))){if(this[_0x4b4511(0x1f4)][_0x4b4511(0x1ac)][_0x4b4511(0x1cb)](_0x4b4511(0x1c8))[_0x4b4511(0x180)]()){const {modelFragment:_0x334b76,anchorData:_0x47ad2d}=this[_0x4b4511(0x19a)]();return this[_0x4b4511(0x17b)](_0x4c2db7,_0x334b76,_0x47ad2d,_0xd9512f,_0x20f5ee);}}const {modelFragment:_0x370080,anchorData:_0x4e78e9}=this[_0x4b4511(0x1ab)]();return this[_0x4b4511(0x17b)](_0x4c2db7,_0x370080,_0x4e78e9,_0xd9512f,_0x20f5ee);}async[_0x410f0f(0x1ba)](){const _0x470d46=_0x410f0f;return this[_0x470d46(0x176)](),this[_0x470d46(0x1b9)][_0x470d46(0x17f)](),super[_0x470d46(0x1ba)]();}[_0x410f0f(0x20b)](){const _0x925c23=_0x410f0f,_0x600199=this[_0x925c23(0x1f4)][_0x925c23(0x1ac)][_0x925c23(0x241)](_0x925c23(0x1bd));let _0x1db338=this[_0x925c23(0x1f4)][_0x925c23(0x178)][_0x925c23(0x1cb)](_0x925c23(0x1b3))||[..._0x5657ad];_0x600199||(_0x1db338=_0x1db338[_0x925c23(0x222)](_0x4b8238=>_0x925c23(0x1b6)!=_0x4b8238));const _0x3960d7=this[_0x925c23(0x1f4)][_0x925c23(0x214)][_0x925c23(0x1cb)](_0x925c23(0x240)),_0x47a29d=new _0x5a2cd3(this[_0x925c23(0x1f4)][_0x925c23(0x1d8)],{'showApplyButton':!0x0,'showSuggestButton':_0x600199,'miniToolbarConfig':{'showChanges':_0x925c23(0x20e)},'availableActions':_0x1db338});return _0x47a29d[_0x925c23(0x204)](_0x925c23(0x238))['to'](this),_0x3960d7&&_0x47a29d[_0x925c23(0x204)](_0x925c23(0x1de))['to'](_0x3960d7,_0x925c23(0x22d)),_0x47a29d['on'](_0x925c23(0x239),()=>{const _0x5e4687=_0x925c23;this[_0x5e4687(0x19b)]();}),_0x47a29d['on'](_0x925c23(0x1f8),()=>{const _0x59950c=_0x925c23;this[_0x59950c(0x218)]();}),_0x47a29d['on'](_0x925c23(0x1f2),()=>{const _0x16fc20=_0x925c23;this[_0x16fc20(0x1a3)]();}),_0x47a29d;}[_0x410f0f(0x1ab)](){const _0x1047b0=_0x410f0f,_0x2695d4=this[_0x1047b0(0x1f4)][_0x1047b0(0x220)][_0x1047b0(0x22e)][_0x1047b0(0x16f)];if(_0x2695d4[_0x1047b0(0x1b5)]){const _0xef46bf=_0x2d8493(_0x2695d4[_0x1047b0(0x196)]())||this[_0x1047b0(0x1f4)][_0x1047b0(0x220)][_0x1047b0(0x1e7)][_0x1047b0(0x1c4)](_0x2695d4);this[_0x1047b0(0x1f4)][_0x1047b0(0x220)][_0x1047b0(0x188)](_0x13ffc8=>{const _0x127a9f=_0x1047b0;_0x13ffc8[_0x127a9f(0x21c)](_0xef46bf,'in');});}const _0x2f72b9=_0x2695d4[_0x1047b0(0x1ad)](),_0xedf3fb=this[_0x1047b0(0x22c)](this[_0x1047b0(0x1f4)][_0x1047b0(0x220)][_0x1047b0(0x242)](_0x2695d4),_0x2f72b9[_0x1047b0(0x1e5)],_0x2f72b9[_0x1047b0(0x207)]);this[_0x1047b0(0x1e9)](_0xedf3fb,_0x2695d4,{'isTableSelection':!0x1});const _0x4b869b=_0x2695d4[_0x1047b0(0x1ad)]()[_0x1047b0(0x1e5)],_0x233585=new Map();let _0x1254be=_0xedf3fb;for(let _0x3a6860=0x0;_0x3a6860<_0x4b869b[_0x1047b0(0x1a1)][_0x1047b0(0x1fe)];_0x3a6860++)_0x233585[_0x1047b0(0x1f5)](_0x1254be,_0x4b869b[_0x1047b0(0x1a1)][_0x3a6860]),_0x1254be=_0x1254be[_0x1047b0(0x1c0)](0x0);return{'modelFragment':_0xedf3fb,'anchorData':_0x233585};}[_0x410f0f(0x19a)](){const _0x40daa4=_0x410f0f,_0xf6377c=this[_0x40daa4(0x1f4)][_0x40daa4(0x220)][_0x40daa4(0x22e)][_0x40daa4(0x16f)],_0x230bdd=this[_0x40daa4(0x1f4)][_0x40daa4(0x1ac)][_0x40daa4(0x1cb)](_0x40daa4(0x1c8))[_0x40daa4(0x1a7)](),_0x3bbfef=_0xf6377c[_0x40daa4(0x1ad)]()[_0x40daa4(0x1e5)][_0x40daa4(0x216)][_0x40daa4(0x216)],_0x4aae3f=this[_0x40daa4(0x1f4)][_0x40daa4(0x220)][_0x40daa4(0x1aa)](this[_0x40daa4(0x1f4)][_0x40daa4(0x220)][_0x40daa4(0x1b0)](_0x3bbfef),this[_0x40daa4(0x1f4)][_0x40daa4(0x220)][_0x40daa4(0x205)](_0x3bbfef)),_0x5ca982=this[_0x40daa4(0x22c)](_0x230bdd,_0x4aae3f[_0x40daa4(0x1e5)],_0x4aae3f[_0x40daa4(0x207)]);this[_0x40daa4(0x1e9)](_0x5ca982,_0xf6377c,{'isTableSelection':!0x0});const _0x628084=_0xf6377c[_0x40daa4(0x1ad)]()[_0x40daa4(0x1e5)],_0x4e7f0e=new Map();let _0x12ddb4=_0x5ca982;for(let _0xc0752a=0x0;_0xc0752a<_0x628084[_0x40daa4(0x1a1)][_0x40daa4(0x1fe)];_0xc0752a++)if(_0x4e7f0e[_0x40daa4(0x1f5)](_0x12ddb4,_0x628084[_0x40daa4(0x1a1)][_0xc0752a]),_0xc0752a<_0x628084[_0x40daa4(0x1a1)][_0x40daa4(0x1fe)]-0x1)_0x12ddb4=_0x12ddb4[_0x40daa4(0x1c0)](0x0);else{let _0x5310a3=_0x12ddb4[_0x40daa4(0x18b)];for(;_0x5310a3;)_0x4e7f0e[_0x40daa4(0x1f5)](_0x5310a3,_0x628084[_0x40daa4(0x1a1)][_0xc0752a]),_0x5310a3=_0x5310a3[_0x40daa4(0x18b)];}return{'modelFragment':_0x5ca982,'anchorData':_0x4e7f0e};}async[_0x410f0f(0x17b)](_0x34a30f,_0x762f8b,_0x4152a3,_0x42e255,_0x59616d){const _0x33828e=_0x410f0f,_0x325a1c=this[_0x33828e(0x1f4)][_0x33828e(0x1ac)][_0x33828e(0x1cb)](_0x3edf84),_0x596b0d=this[_0x33828e(0x1f4)][_0x33828e(0x1ac)][_0x33828e(0x1cb)](_0x40d4f7),_0x33e426=this[_0x33828e(0x1f4)][_0x33828e(0x220)][_0x33828e(0x22e)][_0x33828e(0x16f)],_0x20dca4=await _0x325a1c[_0x33828e(0x1c2)](_0x762f8b),_0x9a2635=this[_0x33828e(0x1f4)][_0x33828e(0x220)][_0x33828e(0x22e)][_0x33828e(0x226)],_0x53cc6b=[..._0x33e426[_0x33828e(0x1cc)]()];return this[_0x33828e(0x1fc)]||(this[_0x33828e(0x1fc)]=this[_0x33828e(0x20b)]()),this[_0x33828e(0x1d6)](),this[_0x33828e(0x246)](),this[_0x33828e(0x1fc)][_0x33828e(0x17d)](),_0x596b0d[_0x33828e(0x172)]({'index':0x3e8*Math[_0x33828e(0x184)]()%0x3e8,'title':_0x42e255,'icon':_0x59616d||_0x4187d1,'mainView':this[_0x33828e(0x1fc)],'class':_0x33828e(0x19e),'ranges':_0x53cc6b,'id':_0x33828e(0x1f3)}),this[_0x33828e(0x206)](),this[_0x33828e(0x18c)](this[_0x33828e(0x1fc)]),this[_0x33828e(0x18c)](_0x596b0d),this[_0x33828e(0x192)]={'action':_0x34a30f,'content':_0x20dca4,'version':_0x9a2635,'aiBalloon':_0x596b0d,'modelFragment':_0x762f8b,'anchorData':_0x4152a3},this[_0x33828e(0x18a)](),this[_0x33828e(0x245)](_0x596b0d,_0x33828e(0x197),()=>{const _0x171d4e=_0x33828e;this[_0x171d4e(0x176)](),this[_0x171d4e(0x1fc)][_0x171d4e(0x1a9)]();}),this[_0x33828e(0x245)](_0x596b0d,_0x33828e(0x21f),(_0x2ca616,{id:_0x45c108})=>{const _0x233f93=_0x33828e;if(_0x233f93(0x1f3)===_0x45c108){if(this[_0x233f93(0x1b7)]&&this[_0x233f93(0x1b7)][_0x233f93(0x23e)][_0x233f93(0x1fe)]>0x0){const _0x17f1c8=this[_0x233f93(0x1b7)][_0x233f93(0x23e)][this[_0x233f93(0x1b7)][_0x233f93(0x23e)][_0x233f93(0x1fe)]-0x1],_0x3644ef=_0x17f1c8[_0x233f93(0x1ce)][0x0];_0x3644ef&&_0x233f93(0x1d2)===_0x3644ef[_0x233f93(0x23a)]&&_0x17f1c8[_0x233f93(0x22a)](0x0,_0x233f93(0x19d));}this[_0x233f93(0x176)](),this[_0x233f93(0x1d6)](),this[_0x233f93(0x18c)](this[_0x233f93(0x1fc)]),this[_0x233f93(0x18c)](_0x596b0d);}}),this[_0x33828e(0x20d)](_0x20dca4,_0x9a2635,_0x596b0d,_0x34a30f);}[_0x410f0f(0x18a)](){const _0x32d3da=_0x410f0f;if(!this[_0x32d3da(0x192)])return;const {modelFragment:_0x34abc6,anchorData:_0x100360}=this[_0x32d3da(0x192)];this[_0x32d3da(0x245)](this[_0x32d3da(0x1fc)],_0x32d3da(0x1c9),()=>{const _0xf7abc6=_0x32d3da;this[_0xf7abc6(0x1fb)](_0x34abc6,_0x100360,!0x1);}),this[_0x32d3da(0x245)](this[_0x32d3da(0x1fc)],_0x32d3da(0x1b6),()=>{const _0x5ac75d=_0x32d3da;this[_0x5ac75d(0x1fb)](_0x34abc6,_0x100360,!0x0);});}[_0x410f0f(0x22c)](_0x25254e,_0x59ca48,_0x112f5c){const _0x14b69d=_0x410f0f,_0x29af81=this[_0x14b69d(0x1f4)][_0x14b69d(0x220)][_0x14b69d(0x1aa)](_0x59ca48,_0x112f5c)[_0x14b69d(0x183)](),_0x1080d7=_0x29af81['is'](_0x14b69d(0x1d1))?[]:_0x29af81[_0x14b69d(0x191)]({'includeSelf':!0x0})[_0x14b69d(0x186)](0x1);if(_0x1080d7[_0x14b69d(0x1fe)]){const _0x48bf54=_0x1080d7[_0x14b69d(0x1db)](_0x33c1dc=>_0x33c1dc[_0x14b69d(0x1d0)](!0x1));for(let _0x87abe9=0x1;_0x87abe9<_0x48bf54[_0x14b69d(0x1fe)];_0x87abe9++)_0x48bf54[_0x87abe9-0x1][_0x14b69d(0x170)](_0x48bf54[_0x87abe9]);return _0x48bf54[_0x48bf54[_0x14b69d(0x1fe)]-0x1][_0x14b69d(0x170)](_0x25254e),new _0x36d049(_0x48bf54[0x0]);}return _0x25254e;}[_0x410f0f(0x1e9)](_0x3392fd,_0x18807a,_0x1c4c4a={'isTableSelection':!0x1}){const _0x469ba8=_0x410f0f,_0x3fe6ad=this[_0x469ba8(0x1f4)][_0x469ba8(0x220)],_0x164d08=Array[_0x469ba8(0x1cd)](_0x18807a[_0x469ba8(0x1cc)]()),_0x382361=_0x18807a[_0x469ba8(0x1ad)]()[_0x469ba8(0x1e5)];for(const _0x2f6e3e of _0x3fe6ad[_0x469ba8(0x20c)]){if(_0x2f6e3e[_0x469ba8(0x237)][_0x469ba8(0x17c)](_0x59273e)||!_0x2f6e3e[_0x469ba8(0x200)])continue;const _0x4ec826=_0x2f6e3e[_0x469ba8(0x18e)]();if(!_0x164d08[_0x469ba8(0x236)](_0x204ff2=>_0x204ff2[_0x469ba8(0x1e6)](_0x4ec826,!0x0)))continue;const _0x3a375e=this[_0x469ba8(0x247)](_0x4ec826[_0x469ba8(0x1e5)],_0x382361,_0x1c4c4a[_0x469ba8(0x1ef)]),_0x51104e=this[_0x469ba8(0x247)](_0x4ec826[_0x469ba8(0x207)],_0x382361,_0x1c4c4a[_0x469ba8(0x1ef)]),_0x31ff1f=_0x3fe6ad[_0x469ba8(0x1e1)](_0x3392fd,_0x3a375e),_0x467537=_0x3fe6ad[_0x469ba8(0x1e1)](_0x3392fd,_0x51104e);if(!_0x31ff1f[_0x469ba8(0x243)](_0x467537)){const _0x768a15=_0x3fe6ad[_0x469ba8(0x1aa)](_0x31ff1f,_0x467537);_0x3392fd[_0x469ba8(0x20c)][_0x469ba8(0x1f5)](_0x2f6e3e[_0x469ba8(0x237)],_0x768a15);}}}[_0x410f0f(0x247)](_0x3bf730,_0x4bdb43,_0x66e571=!0x1){const _0x53987d=_0x410f0f,_0xa0e36=[..._0x3bf730[_0x53987d(0x1a1)][_0x53987d(0x186)]()];for(let _0x554b4d=0x0;_0x554b4d<Math[_0x53987d(0x21d)](_0x4bdb43[_0x53987d(0x1a1)][_0x53987d(0x1fe)],_0x3bf730[_0x53987d(0x1a1)][_0x53987d(0x1fe)]);_0x554b4d++){const _0x47ad94=_0x4bdb43[_0x53987d(0x1a1)][_0x554b4d]||0x0,_0x1a195c=(_0x3bf730[_0x53987d(0x1a1)][_0x554b4d]||0x0)-_0x47ad94;if(_0xa0e36[_0x554b4d]=_0x1a195c,0x0!==_0x1a195c&&!_0x66e571)break;}return _0xa0e36;}async[_0x410f0f(0x20d)](_0x16c35a,_0x1a4923,_0x3e75ed,_0x833930){const _0x1a2e3b=_0x410f0f,_0x3d1a36=this[_0x1a2e3b(0x1f4)];this[_0x1a2e3b(0x192)]||(this[_0x1a2e3b(0x192)]={'action':_0x833930,'content':_0x16c35a,'version':_0x1a4923,'aiBalloon':_0x3e75ed,'modelFragment':this[_0x1a2e3b(0x1f4)][_0x1a2e3b(0x220)][_0x1a2e3b(0x242)](this[_0x1a2e3b(0x1f4)][_0x1a2e3b(0x220)][_0x1a2e3b(0x22e)][_0x1a2e3b(0x16f)]),'anchorData':new Map()});const _0x5d77d1=new _0x16e158({'connector':this[_0x1a2e3b(0x1d3)],'editor':_0x3d1a36,'content':_0x16c35a,'version':_0x1a4923,..._0x833930});this[_0x1a2e3b(0x21a)][_0x1a2e3b(0x1ca)](_0x5d77d1);const _0x3e9054=(_0x6d612f,_0x3f727f=!0x1,_0x104047=_0x1a2e3b(0x1ae))=>this[_0x1a2e3b(0x177)][_0x1a2e3b(0x20f)](async _0x42d7ef=>{const _0x1890ca=_0x1a2e3b;try{const _0x5a84fa=_0xc91979({'editor':_0x3d1a36,'changeGroups':_0x6d612f[_0x1890ca(0x1ce)],'documentContextContent':_0x6d612f[_0x1890ca(0x1bc)],'showDiff':_0x3f727f,'trimUnchanged':!0x1});_0x5a84fa[_0x1890ca(0x1fe)]&&await this[_0x1890ca(0x1fc)][_0x1890ca(0x1a4)]({'part':_0x5a84fa[0x0],'renderingStrategy':_0x104047,'abortSignal':_0x42d7ef});}catch(_0x202799){if(this[_0x1890ca(0x23f)](_0x202799))return;throw _0x202799;}});this[_0x1a2e3b(0x1b7)]['on'](_0x1a2e3b(0x1ec),(_0x440f99,_0x5201af)=>{const _0x345bca=_0x1a2e3b;this[_0x345bca(0x1fc)][_0x345bca(0x1b2)](),this[_0x345bca(0x1fc)][_0x345bca(0x213)](),_0x3e9054(_0x5201af)[_0x345bca(0x215)](_0x39d427=>{const _0x4c39c2=_0x345bca;this[_0x4c39c2(0x23f)](_0x39d427)||(console[_0x4c39c2(0x219)](_0x4c39c2(0x189),_0x39d427),this[_0x4c39c2(0x233)](_0x5d77d1));});}),this[_0x1a2e3b(0x1b7)]['on'](_0x1a2e3b(0x1d4),(_0x2b14a8,_0x192eae)=>{const _0x2df5f8=_0x1a2e3b;_0x3e9054(_0x192eae)[_0x2df5f8(0x215)](_0x5779c3=>{const _0x42d16f=_0x2df5f8;this[_0x42d16f(0x23f)](_0x5779c3)||(console[_0x42d16f(0x219)](_0x42d16f(0x210),_0x5779c3),this[_0x42d16f(0x233)](_0x5d77d1));});}),this[_0x1a2e3b(0x1b7)]['on'](_0x1a2e3b(0x202),async()=>{const _0x16eaf7=_0x1a2e3b;try{await this[_0x16eaf7(0x231)](),this[_0x16eaf7(0x1fc)][_0x16eaf7(0x244)](this[_0x16eaf7(0x21a)][_0x16eaf7(0x1fe)],this[_0x16eaf7(0x173)]),await this[_0x16eaf7(0x177)][_0x16eaf7(0x19c)];}catch(_0x3134a8){this[_0x16eaf7(0x23f)](_0x3134a8)||(console[_0x16eaf7(0x219)](_0x16eaf7(0x1dc),_0x3134a8),this[_0x16eaf7(0x233)](_0x5d77d1));}finally{this[_0x16eaf7(0x1fc)][_0x16eaf7(0x1a5)]();}}),this[_0x1a2e3b(0x245)](this[_0x1a2e3b(0x1fc)],_0x1a2e3b(0x187),async(_0x93b2e2,{showDiff:_0x4167a1})=>{const _0x10a0ed=_0x1a2e3b;try{this[_0x10a0ed(0x1df)]=_0x4167a1;const _0x309631=this[_0x10a0ed(0x1b7)][_0x10a0ed(0x23e)][this[_0x10a0ed(0x1b7)][_0x10a0ed(0x23e)][_0x10a0ed(0x1fe)]-0x1];_0x309631&&await _0x3e9054(_0x309631,_0x4167a1,_0x10a0ed(0x1c5));}catch(_0x8379e4){this[_0x10a0ed(0x23f)](_0x8379e4)||(console[_0x10a0ed(0x219)](_0x10a0ed(0x174),_0x8379e4),this[_0x10a0ed(0x233)](_0x5d77d1));}}),this[_0x1a2e3b(0x1b7)]['on'](_0x1a2e3b(0x1f7),(_0x4ff49f,{reply:_0x549f9e})=>{const _0x21e3ef=_0x1a2e3b,_0x3c22b3={'positiveCount':_0x549f9e[_0x21e3ef(0x1ce)][_0x21e3ef(0x222)](_0xf9d75=>_0x21e3ef(0x1da)===_0xf9d75[_0x21e3ef(0x23a)])[_0x21e3ef(0x1fe)],'totalCount':_0x549f9e[_0x21e3ef(0x1ce)][_0x21e3ef(0x1fe)]},_0x36403b=this[_0x21e3ef(0x1b7)][_0x21e3ef(0x22b)],_0x5a03c3=this[_0x21e3ef(0x1b7)][_0x21e3ef(0x1a0)];_0x5a03c3?this[_0x21e3ef(0x1d3)][_0x21e3ef(0x171)](_0x5a03c3,_0x36403b,_0x3c22b3):this[_0x21e3ef(0x1d3)][_0x21e3ef(0x1eb)](_0x36403b,_0x3c22b3);}),this[_0x1a2e3b(0x206)]();try{const _0x45bffe=await this[_0x1a2e3b(0x1b7)][_0x1a2e3b(0x1e5)]();return this[_0x1a2e3b(0x1fc)][_0x1a2e3b(0x244)](this[_0x1a2e3b(0x21a)][_0x1a2e3b(0x1fe)],this[_0x1a2e3b(0x173)]),_0x45bffe;}catch(_0x17a058){if(this[_0x1a2e3b(0x23f)](_0x17a058))return;this[_0x1a2e3b(0x1fc)][_0x1a2e3b(0x1b2)](),this[_0x1a2e3b(0x233)](_0x5d77d1);}}[_0x410f0f(0x1fb)](_0x2baddf,_0x53827c,_0x2ec318){const _0x4cd543=_0x410f0f,_0x1276f3=this[_0x4cd543(0x1f4)];if(_0x2ec318&&!_0x1276f3[_0x4cd543(0x1ac)][_0x4cd543(0x241)](_0x4cd543(0x1bd)))throw new _0x4ce4dc(_0x4cd543(0x1d5),null);const _0x3f2455=this[_0x4cd543(0x1f4)][_0x4cd543(0x1ac)][_0x4cd543(0x1cb)](_0x5ab472),_0x1b7685=this[_0x4cd543(0x21a)][this[_0x4cd543(0x21a)][_0x4cd543(0x1fe)]-0x1-this[_0x4cd543(0x173)]];if(!_0x1b7685||!_0x1b7685[_0x4cd543(0x23e)][_0x4cd543(0x1fe)])return;const _0xa35087=_0x1b7685[_0x4cd543(0x23e)][_0x1b7685[_0x4cd543(0x23e)][_0x4cd543(0x1fe)]-0x1],_0x51053d=_0xa35087[_0x4cd543(0x1ce)];_0xa35087[_0x4cd543(0x22a)](0x0,_0x4cd543(0x1da));let _0x5adbc2=_0x45d587({'editor':_0x1276f3,'reply':_0xa35087,'interaction':_0x1b7685,'groups':_0x51053d,'transform':!0x1,'documentCompare':_0x3f2455,'documentCompareOptions':{'anchor':_0x1276f3[_0x4cd543(0x220)][_0x4cd543(0x1af)](_0x2baddf,0x0),'markDeletions':_0x2ec318}});_0x5adbc2=this[_0x4cd543(0x1ff)](_0x5adbc2,_0x53827c);for(const _0x1d7426 of _0x5adbc2)this[_0x4cd543(0x1d7)](_0x53827c,_0x1d7426,_0x1276f3[_0x4cd543(0x220)][_0x4cd543(0x22e)][_0x4cd543(0x195)]());const _0x18b6b2=_0x1b7685[_0x4cd543(0x229)]()[_0x4cd543(0x226)],_0x10391f=_0x1276f3[_0x4cd543(0x220)][_0x4cd543(0x22e)][_0x4cd543(0x185)][_0x4cd543(0x193)](_0x18b6b2),_0x4d7632={'document':_0x1276f3[_0x4cd543(0x220)][_0x4cd543(0x22e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2bd1e7=_0x3992b2(_0x5adbc2,_0x10391f,_0x4d7632)[_0x4cd543(0x1a8)];_0x1276f3[_0x4cd543(0x220)][_0x4cd543(0x188)](_0x5ccb5c=>{const _0x2726d1=_0x4cd543;if(_0x5ccb5c[_0x2726d1(0x21c)](_0x1276f3[_0x2726d1(0x220)][_0x2726d1(0x22e)][_0x2726d1(0x16f)][_0x2726d1(0x17e)]),_0x2ec318)_0x1276f3[_0x2726d1(0x1ac)][_0x2726d1(0x1cb)](_0x2726d1(0x227))[_0x2726d1(0x18f)](_0x2bd1e7);else{for(const _0xad3163 of _0x2bd1e7)_0xad3163[_0x2726d1(0x1e3)]=_0x1276f3[_0x2726d1(0x220)][_0x2726d1(0x22e)][_0x2726d1(0x226)],_0x185d59(_0x1276f3,_0xad3163),_0x5ccb5c[_0x2726d1(0x182)][_0x2726d1(0x209)](_0xad3163),_0x1276f3[_0x2726d1(0x220)][_0x2726d1(0x1ea)](_0xad3163);}}),this[_0x4cd543(0x1f4)][_0x4cd543(0x1ac)][_0x4cd543(0x1cb)](_0x4cd543(0x16d))[_0x4cd543(0x201)]();}[_0x410f0f(0x1ff)](_0x2787c1,_0x167b1f){const _0xbce28a=_0x410f0f;return _0x2787c1[_0xbce28a(0x222)](_0x1d2389=>{const _0x5303ad=_0xbce28a;if(_0x5303ad(0x1cf)==_0x1d2389[_0x5303ad(0x217)]){const _0x596875=_0x1d2389[_0x5303ad(0x1fd)][_0x5303ad(0x1bf)];return!_0x167b1f[_0x5303ad(0x241)](_0x596875);}if(_0x1d2389[_0x5303ad(0x217)][_0x5303ad(0x16b)](_0x5303ad(0x1c1))>-0x1){const _0x4d71ea=_0x1d2389[_0x5303ad(0x1ed)][_0x5303ad(0x1e5)][_0x5303ad(0x1bf)];return!_0x167b1f[_0x5303ad(0x241)](_0x4d71ea);}return!0x0;});}[_0x410f0f(0x1d7)](_0x1c3824,_0x4c50e1,_0x47e9b4){const _0x27db81=_0x410f0f,_0x239abf=_0x4c50e1[_0x27db81(0x19f)]();for(const _0x16db17 in _0x4c50e1){const _0xf4b19a=_0x4c50e1[_0x16db17];_0xf4b19a instanceof _0x249e2a?_0x4c50e1[_0x16db17]=new _0x249e2a(_0x1c4435(_0xf4b19a[_0x27db81(0x1e5)]),_0x1c4435(_0xf4b19a[_0x27db81(0x207)])):_0xf4b19a instanceof _0x306b70&&(_0x4c50e1[_0x16db17]=_0x1c4435(_0xf4b19a));}if([_0x27db81(0x175),_0x27db81(0x203),_0x27db81(0x1be),_0x27db81(0x1ee),_0x27db81(0x212),_0x27db81(0x181)][_0x27db81(0x225)](_0x239abf[_0x27db81(0x217)])){if(_0x239abf[_0x27db81(0x23c)]=!0x1,_0x239abf[_0x27db81(0x1e3)]=null,_0x27db81(0x1be)==_0x239abf[_0x27db81(0x217)]){const _0x275ab8=_0x239abf[_0x27db81(0x1fa)],_0x413e0e=_0x239abf[_0x27db81(0x194)];new _0x4be5f1(_0x275ab8,_0x413e0e)[_0x27db81(0x17a)]();}else _0x239abf[_0x27db81(0x17a)]();}function _0x1c4435(_0x64177f){const _0x2bad1d=_0x27db81;if(_0x2bad1d(0x1c3)==_0x64177f[_0x2bad1d(0x1c7)][_0x2bad1d(0x23b)])return _0x64177f;const _0x1b9994=[];let _0x3a847a=_0x64177f[_0x2bad1d(0x1c7)];for(let _0x3fa442=0x0;_0x3fa442<_0x64177f[_0x2bad1d(0x1a1)][_0x2bad1d(0x1fe)];_0x3fa442++){const _0x1d99bc=_0x1c3824[_0x2bad1d(0x1cb)](_0x3a847a)||0x0;_0x1b9994[_0x3fa442]=_0x64177f[_0x2bad1d(0x1a1)][_0x3fa442]+_0x1d99bc,_0x3a847a=_0x3a847a[_0x2bad1d(0x1e8)](_0x64177f[_0x2bad1d(0x1a1)][_0x3fa442]);}return new _0x306b70(_0x47e9b4,_0x1b9994,_0x64177f[_0x2bad1d(0x224)]);}}[_0x410f0f(0x19b)](){const _0x40920f=_0x410f0f;if(!this[_0x40920f(0x192)])return;this[_0x40920f(0x21a)][_0x40920f(0x1fe)]>0x0&&this[_0x40920f(0x176)](),this[_0x40920f(0x173)]=0x0,this[_0x40920f(0x1df)]=!0x1;const {action:_0x513c75,content:_0x4b06fe,version:_0x347c7a,aiBalloon:_0x49ca23}=this[_0x40920f(0x192)];this[_0x40920f(0x246)](),this[_0x40920f(0x1fc)][_0x40920f(0x17d)](),this[_0x40920f(0x1fc)][_0x40920f(0x221)](),this[_0x40920f(0x1fc)][_0x40920f(0x1a2)](),this[_0x40920f(0x1fc)][_0x40920f(0x244)](this[_0x40920f(0x21a)][_0x40920f(0x1fe)],this[_0x40920f(0x173)]),this[_0x40920f(0x18c)](this[_0x40920f(0x1fc)]),this[_0x40920f(0x18a)](),this[_0x40920f(0x20d)](_0x4b06fe,_0x347c7a,_0x49ca23,_0x513c75)[_0x40920f(0x215)](_0x866c32=>{const _0x562ee8=_0x40920f;this[_0x562ee8(0x23f)](_0x866c32)||console[_0x562ee8(0x219)](_0x562ee8(0x1f0),_0x866c32);});}[_0x410f0f(0x23f)](_0x18c30c){const _0x59eaad=_0x410f0f;return!!_0x18c30c[_0x59eaad(0x235)]&&_0x18c30c[_0x59eaad(0x235)][_0x59eaad(0x17c)](_0x59eaad(0x230));}[_0x410f0f(0x1d6)](){const _0x4b4c89=_0x410f0f;this[_0x4b4c89(0x21a)]=[],this[_0x4b4c89(0x192)]=void 0x0,this[_0x4b4c89(0x173)]=0x0,this[_0x4b4c89(0x1fc)][_0x4b4c89(0x244)](this[_0x4b4c89(0x21a)][_0x4b4c89(0x1fe)],this[_0x4b4c89(0x173)]);}[_0x410f0f(0x176)](){const _0x37c672=_0x410f0f;this[_0x37c672(0x1b7)]&&this[_0x37c672(0x1b7)][_0x37c672(0x23d)](),this[_0x37c672(0x177)][_0x37c672(0x21b)](),this[_0x37c672(0x238)]=!0x1,this[_0x37c672(0x192)]&&this[_0x37c672(0x1fc)][_0x37c672(0x1a5)]();}[_0x410f0f(0x218)](){const _0x1c7417=_0x410f0f,_0x4e480c=this[_0x1c7417(0x21a)][_0x1c7417(0x1fe)];this[_0x1c7417(0x173)]<_0x4e480c-0x1&&this[_0x1c7417(0x1dd)](this[_0x1c7417(0x173)]+0x1);}[_0x410f0f(0x1a3)](){const _0x4004a0=_0x410f0f;this[_0x4004a0(0x173)]>0x0&&this[_0x4004a0(0x1dd)](this[_0x4004a0(0x173)]-0x1);}async[_0x410f0f(0x1dd)](_0x14cf41){const _0x2e9faa=_0x410f0f;if(!this[_0x2e9faa(0x192)])return;this[_0x2e9faa(0x173)]=_0x14cf41;const _0x4b5ca9=this[_0x2e9faa(0x21a)][this[_0x2e9faa(0x21a)][_0x2e9faa(0x1fe)]-0x1-this[_0x2e9faa(0x173)]];if(!_0x4b5ca9)return;if(_0x4b5ca9[_0x2e9faa(0x1b8)])return this[_0x2e9faa(0x233)](_0x4b5ca9),void this[_0x2e9faa(0x1fc)][_0x2e9faa(0x244)](this[_0x2e9faa(0x21a)][_0x2e9faa(0x1fe)],this[_0x2e9faa(0x173)]);if(!_0x4b5ca9[_0x2e9faa(0x23e)][_0x2e9faa(0x1fe)])return;this[_0x2e9faa(0x1fc)][_0x2e9faa(0x18d)](),this[_0x2e9faa(0x192)]&&this[_0x2e9faa(0x246)]();const _0x5be76c=_0x4b5ca9[_0x2e9faa(0x23e)][_0x4b5ca9[_0x2e9faa(0x23e)][_0x2e9faa(0x1fe)]-0x1];if(_0x5be76c){const _0x4b8f1d=this[_0x2e9faa(0x1f4)];try{const _0x5d42b6=_0xc91979({'editor':_0x4b8f1d,'changeGroups':_0x5be76c[_0x2e9faa(0x1ce)],'documentContextContent':_0x5be76c[_0x2e9faa(0x1bc)],'showDiff':this[_0x2e9faa(0x1df)],'trimUnchanged':!0x1});await new Promise(_0xcdf787=>setTimeout(_0xcdf787,0x32)),await this[_0x2e9faa(0x1fc)][_0x2e9faa(0x1a4)]({'part':_0x5d42b6[0x0],'renderingStrategy':_0x2e9faa(0x1c5),'abortSignal':new AbortController()[_0x2e9faa(0x20a)]});}catch(_0x422c46){this[_0x2e9faa(0x23f)](_0x422c46)||console[_0x2e9faa(0x219)](_0x2e9faa(0x232),_0x422c46);}}this[_0x2e9faa(0x1fc)][_0x2e9faa(0x244)](this[_0x2e9faa(0x21a)][_0x2e9faa(0x1fe)],this[_0x2e9faa(0x173)]);}[_0x410f0f(0x206)](){const _0x4f22a5=_0x410f0f;this[_0x4f22a5(0x1fc)][_0x4f22a5(0x198)](!0x0),this[_0x4f22a5(0x238)]=!0x0;}async[_0x410f0f(0x233)](_0x48874e){const _0x1d3008=_0x410f0f,_0x3843dd=_0x1b1703(this[_0x1d3008(0x1f4)][_0x1d3008(0x1d8)],_0x1d3008(0x1f1));this[_0x1d3008(0x1fc)][_0x1d3008(0x1bb)](_0x3843dd),_0x48874e[_0x1d3008(0x1b8)]=!0x0,await this[_0x1d3008(0x177)][_0x1d3008(0x19c)],this[_0x1d3008(0x1fc)][_0x1d3008(0x21e)](),this[_0x1d3008(0x1fc)][_0x1d3008(0x1e2)](!0x0);}[_0x410f0f(0x246)](){const _0x3a617d=_0x410f0f;this[_0x3a617d(0x1fc)][_0x3a617d(0x18d)](),this[_0x3a617d(0x1fc)][_0x3a617d(0x1e2)](!0x1);}async[_0x410f0f(0x231)](){const _0x2666b1=_0x410f0f;await this[_0x2666b1(0x177)][_0x2666b1(0x19c)],this[_0x2666b1(0x238)]=!0x1,this[_0x2666b1(0x1fc)][_0x2666b1(0x198)](!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d6d4e=_0x854e;(function(_0x487303,_0x5d5fb7){const _0x1727d6=_0x854e,_0x172205=_0x487303();while(!![]){try{const _0x132bd0=-parseInt(_0x1727d6(0x164))/0x1+parseInt(_0x1727d6(0x170))/0x2*(parseInt(_0x1727d6(0x16c))/0x3)+-parseInt(_0x1727d6(0x172))/0x4*(parseInt(_0x1727d6(0x173))/0x5)+-parseInt(_0x1727d6(0x162))/0x6*(parseInt(_0x1727d6(0x163))/0x7)+parseInt(_0x1727d6(0x165))/0x8+-parseInt(_0x1727d6(0x171))/0x9*(-parseInt(_0x1727d6(0x160))/0xa)+parseInt(_0x1727d6(0x166))/0xb;if(_0x132bd0===_0x5d5fb7)break;else _0x172205['push'](_0x172205['shift']());}catch(_0x48e12d){_0x172205['push'](_0x172205['shift']());}}}(_0xbb19,0xbec77));import{AIInteraction as _0x14802d,AI_MODEL_EVENT_NAMES as _0x9310cb}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x505241}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x119d11}from'./aiactionsreply.js';function _0xbb19(){const _0x1a4135=['html','25458RQrQiQ','content','model','current-document','66LLYDOG','381897JzcCzE','4kRbayM','5286605nTbJdw','createReply','args','Current\x20document','connector','sendRequest','fire','userMessage','push','editor','TEXT','executeAction','replyCreated','delegate','actionName','60mIuJRQ','getDocumentContext','38364yHyhpL','7dGLofk','1548054AWeAnw','11591072AQMZRW','15506480QumgPz','hasError','replies','version','executeCustomAction'];_0xbb19=function(){return _0x1a4135;};return _0xbb19();}function _0x854e(_0x12a3b7,_0x374420){const _0xbb1927=_0xbb19();return _0x854e=function(_0x854e10,_0x28319b){_0x854e10=_0x854e10-0x15a;let _0x96288a=_0xbb1927[_0x854e10];return _0x96288a;},_0x854e(_0x12a3b7,_0x374420);}export class AIActionsInteraction extends _0x14802d{[_0x2d6d4e(0x16d)];[_0x2d6d4e(0x169)];[_0x2d6d4e(0x15f)];[_0x2d6d4e(0x175)];[_0x2d6d4e(0x17a)];[_0x2d6d4e(0x16e)];[_0x2d6d4e(0x167)]=!0x1;constructor(_0x436e4b){const _0xa0283c=_0x2d6d4e;super(_0x436e4b),this[_0xa0283c(0x16d)]=_0x436e4b[_0xa0283c(0x16d)],this[_0xa0283c(0x169)]=_0x436e4b[_0xa0283c(0x169)],this[_0xa0283c(0x15f)]=_0x436e4b[_0xa0283c(0x15f)],this[_0xa0283c(0x175)]=_0x436e4b[_0xa0283c(0x175)],this[_0xa0283c(0x17a)]=_0x436e4b[_0xa0283c(0x17a)],this[_0xa0283c(0x16e)]=_0x436e4b[_0xa0283c(0x16e)];}async[_0x2d6d4e(0x178)](){const _0x27f688=_0x2d6d4e;return this[_0x27f688(0x15f)]?this[_0x27f688(0x177)][_0x27f688(0x15c)]({'content':this[_0x27f688(0x16d)],'actionName':this[_0x27f688(0x15f)],'args':this[_0x27f688(0x175)]}):this[_0x27f688(0x177)][_0x27f688(0x16a)]({'content':this[_0x27f688(0x16d)],'message':this[_0x27f688(0x17a)],'model':this[_0x27f688(0x16e)],'outputFormat':_0x27f688(0x16b)});}[_0x2d6d4e(0x161)](){const _0x18219f=_0x2d6d4e;return{'type':_0x505241[_0x18219f(0x15b)],'content':this[_0x18219f(0x16d)],'version':this[_0x18219f(0x169)],'label':_0x18219f(0x176),'uiId':_0x18219f(0x16f)};}[_0x2d6d4e(0x174)](_0xfac635){const _0x178e1e=_0x2d6d4e,_0x1abc9b=new _0x119d11({'editor':this[_0x178e1e(0x15a)],'documentContextContent':this[_0x178e1e(0x16d)],..._0xfac635});return this[_0x178e1e(0x168)][_0x178e1e(0x17b)](_0x1abc9b),_0x1abc9b[_0x178e1e(0x15e)](..._0x9310cb)['to'](this),this[_0x178e1e(0x179)](_0x178e1e(0x15d),_0x1abc9b),_0x1abc9b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d6f9f=_0xe906;(function(_0x3bb1a4,_0x36dfa9){const _0x20184d=_0xe906,_0xcb32f0=_0x3bb1a4();while(!![]){try{const _0x3ae525=-parseInt(_0x20184d(0x9a))/0x1*(parseInt(_0x20184d(0x92))/0x2)+-parseInt(_0x20184d(0x95))/0x3+-parseInt(_0x20184d(0x7d))/0x4*(-parseInt(_0x20184d(0x8f))/0x5)+-parseInt(_0x20184d(0x82))/0x6+-parseInt(_0x20184d(0x8c))/0x7*(-parseInt(_0x20184d(0x7f))/0x8)+parseInt(_0x20184d(0x8a))/0x9*(parseInt(_0x20184d(0x99))/0xa)+parseInt(_0x20184d(0x84))/0xb*(-parseInt(_0x20184d(0x91))/0xc);if(_0x3ae525===_0x36dfa9)break;else _0xcb32f0['push'](_0xcb32f0['shift']());}catch(_0x98be9a){_0xcb32f0['push'](_0xcb32f0['shift']());}}}(_0x2167,0xe1567));import{AIReply as _0x26c65e}from'../../aicore/model/aireply.js';function _0xe906(_0x165688,_0x16d5d5){const _0x21676d=_0x2167();return _0xe906=function(_0xe90631,_0xc94d0b){_0xe90631=_0xe90631-0x7c;let _0x2b85ac=_0x21676d[_0xe90631];return _0x2b85ac;},_0xe906(_0x165688,_0x16d5d5);}function _0x2167(){const _0x362d54=['pop','pending','parsedContent','312330qQOKav','1226608kxPOVX','isDone','added','new','3565108bGEzfo','length','24Yojuia','children','map','926088kknGIl','removed','297zKocPz','_getDifferentChangeGroups','node','data-id','updateChangeGroups','parsedMergedContent','270bWmjGg','childNodes','630658sfrxMh','documentContextContent','cloneNode','10ZvtJsJ','value','145608HwwbVK','2aoJJci','changeGroups','modified','1074807SpYQWV'];_0x2167=function(){return _0x362d54;};return _0x2167();}import{getAttribute as _0x16fa50}from'../../aicore/utils/htmlparser.js';import{uid as _0xf77d43}from'ckeditor5/src/utils.js';import{diffArrays as _0x3398ad}from'diff';export class AIActionsReply extends _0x26c65e{[_0x3d6f9f(0x88)](){const _0x7c472b=_0x3d6f9f;if(this[_0x7c472b(0x89)]=this[_0x7c472b(0x98)][_0x7c472b(0x8e)](!0x0),0x0==this[_0x7c472b(0x89)][_0x7c472b(0x8b)][_0x7c472b(0x7e)])return void(this[_0x7c472b(0x93)]=[]);const _0x369368=this[_0x7c472b(0x8d)][_0x7c472b(0x80)][_0x7c472b(0x81)](_0x1f70ca=>({'node':_0x1f70ca,'id':_0x16fa50(_0x1f70ca,_0x7c472b(0x87))})),_0x423fe6=this[_0x7c472b(0x89)][_0x7c472b(0x80)][_0x7c472b(0x81)](_0x1328e2=>({'node':_0x1328e2,'id':_0x16fa50(_0x1328e2,_0x7c472b(0x87))||_0xf77d43()})),_0x557de4=_0x3398ad(_0x369368,_0x423fe6,{'comparator':(_0x3544d5,_0x1f0cf9)=>_0x3544d5['id']==_0x1f0cf9['id'],'oneChangePerToken':!0x0});if(!this[_0x7c472b(0x9b)]){for(;_0x557de4[_0x7c472b(0x7e)]&&_0x557de4[_0x557de4[_0x7c472b(0x7e)]-0x1][_0x7c472b(0x83)];)_0x557de4[_0x7c472b(0x96)]();}const _0x145f5b=_0x557de4[_0x7c472b(0x81)](_0x7a9469=>{const _0x40d319=_0x7c472b,_0x3895ae=_0x7a9469[_0x40d319(0x9c)]?_0x40d319(0x7c):_0x7a9469[_0x40d319(0x83)]?_0x40d319(0x83):_0x40d319(0x94);return{'node':_0x7a9469[_0x40d319(0x90)][0x0][_0x40d319(0x86)],'type':_0x3895ae,'id':_0x7a9469[_0x40d319(0x90)][0x0]['id']};});this[_0x7c472b(0x93)]=[{'changes':_0x145f5b,'state':_0x7c472b(0x97),'index':0x0}];}[_0x3d6f9f(0x85)](_0x3b7ecd,_0x309b00){return _0x309b00;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x300443=_0x2d57;(function(_0x3d1039,_0x28a81e){var _0x5b7345=_0x2d57,_0x43e895=_0x3d1039();while(!![]){try{var _0x3e9360=parseInt(_0x5b7345(0x1d5))/0x1*(parseInt(_0x5b7345(0x1d4))/0x2)+-parseInt(_0x5b7345(0x1d7))/0x3+parseInt(_0x5b7345(0x1cf))/0x4+parseInt(_0x5b7345(0x1cc))/0x5*(parseInt(_0x5b7345(0x1ca))/0x6)+-parseInt(_0x5b7345(0x1d6))/0x7*(-parseInt(_0x5b7345(0x1ce))/0x8)+parseInt(_0x5b7345(0x1d9))/0x9+-parseInt(_0x5b7345(0x1da))/0xa;if(_0x3e9360===_0x28a81e)break;else _0x43e895['push'](_0x43e895['shift']());}catch(_0x2c1b1e){_0x43e895['push'](_0x43e895['shift']());}}}(_0x2546,0x2b42f));import{Plugin as _0x176a79}from'ckeditor5/src/core.js';function _0x2546(){var _0x466379=['14jPPrJe','440895fonisc','isPremiumPlugin','2466072dzfjDE','4501510YtaTlS','textAdapter','AIRequestError','6bPIsZT','aiadapter-text-adapter-not-set','1543045GwVePP','pluginName','254872VfVGQa','391812McwmCk','name','AIAdapter','afterInit','isOfficialPlugin','2OGIyYf','30027WnLJBT'];_0x2546=function(){return _0x466379;};return _0x2546();}import{CKEditorError as _0x252b0a}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x176a79{static get[_0x300443(0x1cd)](){var _0x578116=_0x300443;return _0x578116(0x1d1);}static get[_0x300443(0x1d3)](){return!0x0;}static get[_0x300443(0x1d8)](){return!0x0;}[_0x300443(0x1d2)](){var _0x2ca37a=_0x300443;if(!this[_0x2ca37a(0x1db)])throw new _0x252b0a(_0x2ca37a(0x1cb),null);}}function _0x2d57(_0x3796ff,_0x4b4dbb){var _0x254680=_0x2546();return _0x2d57=function(_0x2d57af,_0x5151b8){_0x2d57af=_0x2d57af-0x1c9;var _0x5ac6b4=_0x254680[_0x2d57af];return _0x5ac6b4;},_0x2d57(_0x3796ff,_0x4b4dbb);}export class AIRequestError extends Error{constructor(_0x2beb77){var _0x4b0efa=_0x300443;super(_0x2beb77),this[_0x4b0efa(0x1d0)]=_0x4b0efa(0x1c9);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c513a=_0x2b20;function _0x2b20(_0x194f4d,_0x3b8015){const _0x5b16f3=_0x5b16();return _0x2b20=function(_0x2b2062,_0x43b0d6){_0x2b2062=_0x2b2062-0xc1;let _0x152f99=_0x5b16f3[_0x2b2062];return _0x152f99;},_0x2b20(_0x194f4d,_0x3b8015);}(function(_0x35b1b7,_0x1971f6){const _0x3691a5=_0x2b20,_0x56eafb=_0x35b1b7();while(!![]){try{const _0x481903=-parseInt(_0x3691a5(0xd6))/0x1*(parseInt(_0x3691a5(0xd0))/0x2)+parseInt(_0x3691a5(0xcc))/0x3*(-parseInt(_0x3691a5(0xc5))/0x4)+-parseInt(_0x3691a5(0xcf))/0x5+-parseInt(_0x3691a5(0xe4))/0x6+-parseInt(_0x3691a5(0xc3))/0x7+parseInt(_0x3691a5(0xd5))/0x8+parseInt(_0x3691a5(0xc8))/0x9*(parseInt(_0x3691a5(0xd9))/0xa);if(_0x481903===_0x1971f6)break;else _0x56eafb['push'](_0x56eafb['shift']());}catch(_0x2dbc03){_0x56eafb['push'](_0x56eafb['shift']());}}}(_0x5b16,0x4823c));import{Plugin as _0x32386f}from'ckeditor5/src/core.js';import{CKEditorError as _0x5ac322}from'ckeditor5/src/utils.js';import{AIAdapter as _0x428e30,AIRequestError as _0x27d74d}from'./aiadapter.js';import{getTranslation as _0x1dd3cb}from'../utils/common-translations.js';export class AITextAdapter extends _0x32386f{[_0x5c513a(0xd2)];static get[_0x5c513a(0xe0)](){return[_0x428e30];}constructor(_0x183f8e){const _0x2fb763=_0x5c513a;super(_0x183f8e),this[_0x2fb763(0xd2)]=new AbortController();}[_0x5c513a(0xe2)](){const _0x29082b=_0x5c513a;this[_0x29082b(0xd1)][_0x29082b(0xc1)][_0x29082b(0xdc)](_0x428e30)[_0x29082b(0xdb)]=this;}[_0x5c513a(0xe3)](){const _0x1a9664=_0x5c513a;this[_0x1a9664(0xd2)][_0x1a9664(0xc2)][_0x1a9664(0xd4)]||(this[_0x1a9664(0xd2)][_0x1a9664(0xe3)](),this[_0x1a9664(0xd2)]=new AbortController());}async[_0x5c513a(0xc6)](_0xc219f){const _0x306f92=_0x5c513a;return this[_0x306f92(0xc9)](_0xc219f)[_0x306f92(0xcb)](_0x14f332=>{const _0x2be934=_0x306f92;if(_0x14f332 instanceof _0x27d74d)return Promise[_0x2be934(0xe5)](_0x14f332);if(_0x2be934(0xd3)==_0x14f332[_0x2be934(0xde)])return Promise[_0x2be934(0xd7)]();throw console[_0x2be934(0xc4)](_0x14f332),new _0x5ac322(_0x2be934(0xd8),null);});}async[_0x5c513a(0xe1)](_0x535167,_0xfbc87b){const _0x4c77ce=_0x5c513a,_0x78098d=this[_0x4c77ce(0xd1)][_0x4c77ce(0xdd)],_0x4a91b0={'Content-Type':_0x4c77ce(0xca)};if(_0x4c77ce(0xce)==typeof _0x535167)Object[_0x4c77ce(0xcd)](_0x4a91b0,_0x535167);else{if(_0x535167)try{const _0x4a9d87=await _0x535167(_0xfbc87b);Object[_0x4c77ce(0xcd)](_0x4a91b0,_0x4a9d87);}catch{return Promise[_0x4c77ce(0xe5)](new _0x27d74d(_0x1dd3cb(_0x78098d,_0x4c77ce(0xda))));}}return _0x4a91b0;}async[_0x5c513a(0xdf)](_0x2c46ae,_0x4aba1c){const _0x2f9beb=_0x5c513a,_0x5ba1f7=this[_0x2f9beb(0xd1)][_0x2f9beb(0xdd)];if(_0x2f9beb(0xce)==typeof _0x2c46ae)return _0x2c46ae;try{return await _0x2c46ae(_0x4aba1c);}catch{return Promise[_0x2f9beb(0xe5)](new _0x27d74d(_0x1dd3cb(_0x5ba1f7,_0x2f9beb(0xc7))));}}}function _0x5b16(){const _0x2d88ea=['AI_ERROR_GET_HEADERS','textAdapter','get','locale','name','_prepareRequestParameters','requires','_prepareRequestHeaders','init','abort','445428xJmkBS','reject','plugins','signal','3782002rippbq','error','185044tEZMdf','makeRequest','AI_ERROR_GET_PARAMETERS','126BoBfml','sendRequest','application/json','catch','15JOBLlU','assign','object','1255690DmmBhd','2tVYxrn','editor','abortController','AbortError','aborted','1150976owPVVh','178357rALryP','resolve','aitextadapter-send-request-failed','1019240XFhLYs'];_0x5b16=function(){return _0x2d88ea;};return _0x5b16();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x875f50=_0x35f7;(function(_0x1d6158,_0x14ca8e){const _0x3498b0=_0x35f7,_0x3c691c=_0x1d6158();while(!![]){try{const _0x320d57=parseInt(_0x3498b0(0x142))/0x1+parseInt(_0x3498b0(0xff))/0x2*(parseInt(_0x3498b0(0x12a))/0x3)+parseInt(_0x3498b0(0x13d))/0x4+parseInt(_0x3498b0(0x10e))/0x5+-parseInt(_0x3498b0(0x12c))/0x6*(parseInt(_0x3498b0(0xfd))/0x7)+-parseInt(_0x3498b0(0x13f))/0x8*(parseInt(_0x3498b0(0x125))/0x9)+-parseInt(_0x3498b0(0x101))/0xa*(parseInt(_0x3498b0(0x126))/0xb);if(_0x320d57===_0x14ca8e)break;else _0x3c691c['push'](_0x3c691c['shift']());}catch(_0x4640d9){_0x3c691c['push'](_0x3c691c['shift']());}}}(_0x5704,0x3a56c));import{AITextAdapter as _0x361f65}from'./aitextadapter.js';import{AIRequestError as _0xf78432}from'./aiadapter.js';function _0x35f7(_0x372cc0,_0x3f544d){const _0x570443=_0x5704();return _0x35f7=function(_0x35f7df,_0x1a68a3){_0x35f7df=_0x35f7df-0xf5;let _0x21ad18=_0x570443[_0x35f7df];return _0x21ad18;},_0x35f7(_0x372cc0,_0x3f544d);}import{BedrockRuntimeClient as _0x41433e,InvokeModelCommand as _0x2ef286,InvokeModelWithResponseStreamCommand as _0x131db5}from'@aws-sdk/client-bedrock-runtime';function _0x5704(){const _0x45bda1=['\x0a<</SYS>>\x0a[INST]\x0a','8dovgQB','Human:\x0a','10xKwvLt','text','abortController','utf-8','POST','completion','json','_processProxyRequest','locale','parse','_readAsyncIterableResponse','map','generations','976170IruxwX','getReader','_readStreamableResponse','ai.assistant.adapter.aws.requestHeaders','_requestParameters','getModelFamily','chunk','_prepareRequestHeaders','bytes','ai21.j2','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.aws.bedrockClientConfig','read','generation','completions','_bedrockClientConfig','_prepareRequestParameters','ai.assistant.adapter.aws.apiUrl','\x0a[/INST]','define','anthropic.claude-v2','AI_ERROR_UNSUPPORTED_MODEL','application/json','17109lvaEXm','17897yBRwxF','\x0a\x0aAssistant:','get','<<SYS>>\x0a','21741AUGvUb','split','6xtXTfr','resolve','config','filter','_requestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','editor','data','signal','length','AWSTextAdapter','stringify','preparePrompt','_processAWSRequest','anthropic.claude','bedrock-2023-05-31','ai.assistant.adapter.aws.requestParameters','935944yZdEIs','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','1640qmgzHm','_apiUrl','_getGeneratedText','177053rsXJvx','Instruction:\x0a','pluginName','meta.llama','test','sendRequest','cohere.command','_readStaticResponse','body','decode','join','send','34811pVEoWm'];_0x5704=function(){return _0x45bda1;};return _0x5704();}import{getTranslation as _0x22125c}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x361f65{[_0x875f50(0x140)];[_0x875f50(0x130)];[_0x875f50(0x11d)];[_0x875f50(0x112)];static get[_0x875f50(0x144)](){const _0x20731a=_0x875f50;return _0x20731a(0x136);}constructor(_0x1ca595){const _0x239ca1=_0x875f50;super(_0x1ca595),_0x1ca595[_0x239ca1(0x12e)][_0x239ca1(0x128)](_0x239ca1(0x13c))||_0x1ca595[_0x239ca1(0x12e)][_0x239ca1(0x121)](_0x239ca1(0x13c),{'model':_0x239ca1(0x122),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x239ca1(0x13b),'stream':!0x0}),this[_0x239ca1(0x140)]=_0x1ca595[_0x239ca1(0x12e)][_0x239ca1(0x128)](_0x239ca1(0x11f)),this[_0x239ca1(0x11d)]=_0x1ca595[_0x239ca1(0x12e)][_0x239ca1(0x128)](_0x239ca1(0x119)),this[_0x239ca1(0x130)]=_0x1ca595[_0x239ca1(0x12e)][_0x239ca1(0x128)](_0x239ca1(0x111)),this[_0x239ca1(0x112)]=_0x1ca595[_0x239ca1(0x12e)][_0x239ca1(0x128)](_0x239ca1(0x13c));}async[_0x875f50(0xf6)]({query:_0x23ff8d,context:_0x5861ec,onData:_0x2fc3c4,actionId:_0x447e44}){const _0x51548a=_0x875f50,{model:_0x3c33c9,stream:_0x478d3d,..._0x4a5c2d}=await this[_0x51548a(0x11e)](this[_0x51548a(0x112)],_0x447e44),_0x1b0bb3={'prompt':await this[_0x51548a(0x138)](_0x23ff8d,_0x5861ec,_0x3c33c9,_0x447e44),..._0x4a5c2d};this[_0x51548a(0x140)]?await this[_0x51548a(0x108)](_0x1b0bb3,_0x3c33c9,_0x478d3d,_0x2fc3c4,_0x447e44):await this[_0x51548a(0x139)](_0x1b0bb3,_0x3c33c9,_0x478d3d,_0x2fc3c4);}async[_0x875f50(0x138)](_0x159f40,_0x452b8f,_0x54b801,_0x4a3050){const _0x528dc6=_0x875f50;let _0x36c48b,_0x4cc32f;return _0x452b8f?(_0x36c48b=_0x528dc6(0x131),_0x4cc32f=_0x528dc6(0x143)+_0x159f40+_0x528dc6(0x13e)+_0x452b8f):(_0x36c48b=_0x528dc6(0x118),_0x4cc32f=_0x159f40),_0x528dc6(0x145)==this[_0x528dc6(0x113)](_0x54b801)?_0x528dc6(0x129)+_0x36c48b+_0x528dc6(0xfe)+_0x4cc32f+_0x528dc6(0x120):_0x528dc6(0x100)+_0x36c48b+'\x0a'+_0x4cc32f+_0x528dc6(0x127);}[_0x875f50(0x113)](_0x1bc1e1){const _0x7ab077=_0x875f50;if(/^anthropic\.claude/[_0x7ab077(0xf5)](_0x1bc1e1))return _0x7ab077(0x13a);if(/^ai21\.j2/[_0x7ab077(0xf5)](_0x1bc1e1))return _0x7ab077(0x117);if(/^cohere\.command/[_0x7ab077(0xf5)](_0x1bc1e1))return _0x7ab077(0xf7);if(/^meta\.llama/[_0x7ab077(0xf5)](_0x1bc1e1))return _0x7ab077(0x145);throw new _0xf78432(_0x22125c(this[_0x7ab077(0x132)][_0x7ab077(0x109)],_0x7ab077(0x123),_0x1bc1e1));}async[_0x875f50(0x108)](_0x4fe787,_0x17a17a,_0x3a9632,_0x5d41c7,_0xbd00d){const _0x1d9975=_0x875f50,_0x3a3faa={'method':_0x1d9975(0x105),'headers':await this[_0x1d9975(0x115)](this[_0x1d9975(0x130)],_0xbd00d),'body':JSON[_0x1d9975(0x137)]({..._0x4fe787,'model':_0x17a17a,'stream':_0x3a9632}),'signal':this[_0x1d9975(0x103)][_0x1d9975(0x134)]},_0x41ae9b=await fetch(this[_0x1d9975(0x140)],_0x3a3faa);_0x3a9632?await this[_0x1d9975(0x110)](_0x41ae9b,_0x17a17a,_0x5d41c7):await this[_0x1d9975(0xf8)](_0x41ae9b,_0x17a17a,_0x5d41c7);}async[_0x875f50(0x139)](_0x4c768d,_0xc7b671,_0x4e0d14,_0x55febc){const _0x16f935=_0x875f50,_0x266109=new _0x41433e(this[_0x16f935(0x11d)]),_0x5424e0={'body':JSON[_0x16f935(0x137)](_0x4c768d),'contentType':_0x16f935(0x124),'accept':_0x16f935(0x124),'modelId':_0xc7b671};let _0x32daaa;if(_0x4e0d14){const _0x113d58=new _0x131db5(_0x5424e0);_0x32daaa=await _0x266109[_0x16f935(0xfc)](_0x113d58,{'abortSignal':this[_0x16f935(0x103)][_0x16f935(0x134)]}),await this[_0x16f935(0x10b)](_0x32daaa,_0xc7b671,_0x55febc);}else{const _0x492388=new _0x2ef286(_0x5424e0);_0x32daaa=await _0x266109[_0x16f935(0xfc)](_0x492388,{'abortSignal':this[_0x16f935(0x103)][_0x16f935(0x134)]}),await this[_0x16f935(0xf8)](_0x32daaa,_0xc7b671,_0x55febc);}}async[_0x875f50(0x10b)](_0x3c5a6c,_0x1a0cae,_0x39fe37){const _0x2f6fd5=_0x875f50,_0x5deb8d=_0x3c5a6c[_0x2f6fd5(0xf9)],_0x58ef0d=new TextDecoder(_0x2f6fd5(0x104));let _0x4a3667='';for await(const _0xc9ae50 of _0x5deb8d)if(_0xc9ae50[_0x2f6fd5(0x114)]){const _0x4dfc0c=_0x58ef0d[_0x2f6fd5(0xfa)](_0xc9ae50[_0x2f6fd5(0x114)][_0x2f6fd5(0x116)]),_0x41ea80=JSON[_0x2f6fd5(0x10a)](_0x4dfc0c);_0x4a3667+=this[_0x2f6fd5(0x141)](_0x41ea80,_0x1a0cae),_0x39fe37(_0x4a3667);}return Promise[_0x2f6fd5(0x12d)]();}async[_0x875f50(0x110)](_0x18e048,_0x313d87,_0x38ddee){const _0x7021bc=_0x875f50,_0x5b7a98=_0x18e048[_0x7021bc(0xf9)],_0x505135=new TextDecoder(_0x7021bc(0x104)),_0x3a3562=_0x5b7a98[_0x7021bc(0x10f)]();let _0x140e9e='',_0x1d8f37='',_0x5dd4f3=!0x1;for(;!_0x5dd4f3;){const {done:_0x32d6bb,value:_0x6ade76}=await _0x3a3562[_0x7021bc(0x11a)]();if(_0x5dd4f3=_0x32d6bb,_0x5dd4f3)break;const _0x3304e4=(_0x140e9e+_0x505135[_0x7021bc(0xfa)](_0x6ade76))[_0x7021bc(0x12b)]('\x0a')[_0x7021bc(0x10c)](_0x9422bb=>{const _0x54339a=_0x7021bc;try{return _0x140e9e='',JSON[_0x54339a(0x10a)](_0x9422bb);}catch{return _0x140e9e=_0x9422bb,null;}})[_0x7021bc(0x12f)](_0x5e769d=>null!==_0x5e769d);_0x3304e4[_0x7021bc(0x135)]&&(_0x1d8f37+=_0x3304e4[_0x7021bc(0x10c)](_0x38e3ab=>this[_0x7021bc(0x141)](_0x38e3ab,_0x313d87))[_0x7021bc(0xfb)](''),_0x38ddee(_0x1d8f37));}return Promise[_0x7021bc(0x12d)]();}async[_0x875f50(0xf8)](_0x1b944,_0x212e4d,_0x26bd0f){const _0xdbaf6c=_0x875f50;let _0x1cc096;return _0x1cc096=_0x1b944 instanceof Response?await _0x1b944[_0xdbaf6c(0x107)]():JSON[_0xdbaf6c(0x10a)](new TextDecoder(_0xdbaf6c(0x104))[_0xdbaf6c(0xfa)](_0x1b944[_0xdbaf6c(0xf9)])),(_0x26bd0f(this[_0xdbaf6c(0x141)](_0x1cc096,_0x212e4d)),Promise[_0xdbaf6c(0x12d)]());}[_0x875f50(0x141)](_0xf11bec,_0x1dea5c){const _0x24016c=_0x875f50;switch(this[_0x24016c(0x113)](_0x1dea5c)){case _0x24016c(0x13a):return _0xf11bec[_0x24016c(0x106)];case _0x24016c(0x117):return _0xf11bec[_0x24016c(0x11c)][0x0][_0x24016c(0x133)][_0x24016c(0x102)];case _0x24016c(0xf7):return _0xf11bec[_0x24016c(0x10d)][0x0][_0x24016c(0x102)];case _0x24016c(0x145):return _0xf11bec[_0x24016c(0x11b)];}}}
|