@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.2.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/ai.js +2 -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/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 +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- 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.d.ts +5 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -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.d.ts +4 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -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.d.ts +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3a909e=_0x4f2a;(function(_0x34f7d3,_0x528281){const _0x2a4bbf=_0x4f2a,_0x4b8dde=_0x34f7d3();while(!![]){try{const _0x1f5c57=-parseInt(_0x2a4bbf(0x24f))/0x1*(-parseInt(_0x2a4bbf(0x242))/0x2)+-parseInt(_0x2a4bbf(0x1da))/0x3*(-parseInt(_0x2a4bbf(0x1ef))/0x4)+parseInt(_0x2a4bbf(0x1a5))/0x5+parseInt(_0x2a4bbf(0x178))/0x6+parseInt(_0x2a4bbf(0x24a))/0x7*(-parseInt(_0x2a4bbf(0x1b0))/0x8)+-parseInt(_0x2a4bbf(0x1ff))/0x9*(parseInt(_0x2a4bbf(0x1a8))/0xa)+-parseInt(_0x2a4bbf(0x236))/0xb*(parseInt(_0x2a4bbf(0x1e4))/0xc);if(_0x1f5c57===_0x528281)break;else _0x4b8dde['push'](_0x4b8dde['shift']());}catch(_0x4f015a){_0x4b8dde['push'](_0x4b8dde['shift']());}}}(_0x19c3,0x9f8eb));import{Plugin as _0x58d363}from'ckeditor5/src/core.js';import{AIConnector as _0x1754d4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x49e588}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x12a884,ButtonView as _0x26ef5d,ViewCollection as _0x1e648e,View as _0x24aac6}from'ckeditor5/src/ui.js';import{AIEditing as _0x3dfa29}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x52b667}from'./model/aiactionsinteraction.js';import{first as _0x5303f9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xee8a1d,IconRefresh as _0xd1bb03,IconNextArrow as _0x10dff5,IconPreviousArrow as _0x20c440,IconShowChangesOff as _0x5a8d0c}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x2f47a3}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3ede6b}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5391d0}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4a4566}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x38fbd8}from'@ckeditor/ckeditor5-collaboration-core';function _0x4f2a(_0x7ccee6,_0x16ae13){const _0x19c365=_0x19c3();return _0x4f2a=function(_0x4f2a89,_0x80269c){_0x4f2a89=_0x4f2a89-0x172;let _0x564b5a=_0x19c365[_0x4f2a89];return _0x564b5a;},_0x4f2a(_0x7ccee6,_0x16ae13);}function _0x19c3(){const _0x50d7bf=['remove','startsWith','_updateNavigationUI','_navigationCounter','2456OpmuIy','getLimitElement','operationsA','pending','isBusy','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_clearLoadingState','hasPendingParts','getDocumentContext','showLoader','stop','add','$graveyard','move','document','rootName','ck-ai-custom-action-button','start','insertSuggestion','_children','_clearInteractionHistory','insert','stopListening','merge','selection','createPositionBefore','actionName','_isNavigationCounterInView','showChangesButton','_anchorOperation','getOperations','_aiConnector','_displayInteractionAtIndex','_applyChanges','AIConnector','_isNavigationNextButtonInView','AI_ACTIONS_TRY_AGAIN','documentFragment','bind','span','interactionFinished','length','38559RCyEtI','areChangesVisible','upsertCustomAIActionRating','setSelection','split','replies','AIActions','AIBalloon','dialogClosed','_wrapWithCommonAncestors','662916bvDnLQ','modelToViewWithIds','updateContent','getFirstRange','balloonView','createPositionAfter','rename','replyCreated','_getExecuteDataInTable','message','_stopInteraction','28IaHSUc','rejected','catch','_balloonShowDiff','_interactions','applyOperation','stickiness','push','hideError','_applyOperationsAsSuggestions','parent','includes','element','clone','_filterOperationsOutsideRange','_interactionParams','18hMicQT','executeAction','AI_ACTIONS_GENERIC_ERROR','clearErrorState','ck-ai-navigation-button\x20ck-ai-previous-button','first','schema','getAncestors','locale','getChild','range','isOfficialPlugin','_promiseQueue','_currentInteractionIndex','_refreshInteraction','_navigateToPrevious','removeNavigationItem','streaming','_setErrorState','end','_executeAction','getRoot','addOperation','getSelectedBlocks','clearLoading','path','createPositionAt','filter','baseVersion','replyContentUpdated','_clone','type','ck-ai-interaction-counter','history','textContent','getChildAtOffset','hasError','Error\x20refreshing\x20interaction:','1/1','toggleSuggestionDisplayMode','slice','error','applySuggestion','setErrorState','actionCallId','isEnabled','bodyView','_createInteraction','getSelectedContent','batch','AI_ACTIONS_NEXT_INTERACTION','_customViews','upsertAIActionRating','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_navigateToNext','11kuBdYC','_interaction','ai-request-aborted','showError','toolbar','version','abort','_isNavigationPreviousButtonInView','setChangeGroupState','_setupCustomViews','getCommonAncestor','nodeAfter','2PYiYZd','_isAbortError','toData','sourcePosition','pluginName','signal','Error\x20updating\x20content\x20during\x20navigation:','listenTo','16793WajsOU','createRange','stopInteraction','execute','miniToolbarView','636577dtkQGr','editor','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_clearErrorState','_navigationPreviousButton','change','howMany','processor','getSelectedTableCells','has','4424784jRlEeq','_execute','addNavigationItem','nextSibling','enqueue','focus','close','Error\x20updating\x20content\x20in\x20replyCreated:','TrackChangesEditing','plugins','getSelectionAsFragment','_navigationNextButton','root','open','replyChangeGroupStateUpdated','aiBalloon','Attribute','TableSelection','isDocumentOperation','_appendChild','AI_ACTIONS_PREVIOUS_INTERACTION','map','isLoading','icon','setLoading','mainView','getRanges','requires','reinsert','queueEmptyPromise','_getExecuteDataRegular','accepted','model','isPremiumPlugin','hideLoader','indexOf','random','_setLoadingState','_clearSuggestionContent','state','data','ck-ai-navigation-button\x20ck-ai-next-button','isCollapsed','static','position','1527685olAAAk','changeGroups','documentContextContent','1621330EDCIiT','setTemplate','set','get'];_0x19c3=function(){return _0x50d7bf;};return _0x19c3();}import{getOperationsFromReply as _0x310700}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x493adb,ModelRange as _0x5027d3,ModelPosition as _0x3e6702,_DetachOperation as _0x4cf8a0,transformOperationSets as _0x18ba5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x58d363{static get[_0x3a909e(0x193)](){return[_0x1754d4,_0x12a884,_0x3dfa29,_0x2f47a3,_0x38fbd8];}static get[_0x3a909e(0x246)](){const _0x10ebb8=_0x3a909e;return _0x10ebb8(0x1e0);}static get[_0x3a909e(0x20a)](){return!0x0;}static get[_0x3a909e(0x199)](){return!0x0;}[_0x3a909e(0x1cf)];[_0x3a909e(0x1f3)]=[];[_0x3a909e(0x20c)]=0x0;[_0x3a909e(0x1fe)];[_0x3a909e(0x1f2)]=!0x1;[_0x3a909e(0x232)]=new _0x1e648e();[_0x3a909e(0x172)];[_0x3a909e(0x1af)];[_0x3a909e(0x1cb)]=!0x1;[_0x3a909e(0x183)];[_0x3a909e(0x23d)]=!0x1;[_0x3a909e(0x1d3)]=!0x1;[_0x3a909e(0x20b)];get[_0x3a909e(0x237)](){const _0x5b8203=_0x3a909e;return this[_0x5b8203(0x1f3)][this[_0x5b8203(0x1f3)][_0x5b8203(0x1d9)]-0x1];}constructor(_0x2f8bb9){const _0x50908e=_0x3a909e;super(_0x2f8bb9),this[_0x50908e(0x1cf)]=this[_0x50908e(0x250)][_0x50908e(0x181)][_0x50908e(0x1ab)](_0x50908e(0x1d2)),this[_0x50908e(0x1aa)](_0x50908e(0x1b4),!0x1),this[_0x50908e(0x20b)]=new _0x3ede6b(),this[_0x50908e(0x23f)]();}[_0x3a909e(0x24c)](){const _0x1dfa73=_0x3a909e;this[_0x1dfa73(0x1ee)]();}async[_0x3a909e(0x200)](_0x126d7a,_0x2bf9b4,_0x4b8d86){const _0x27193c=_0x3a909e;if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x177)](_0x27193c(0x189))){if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x1ab)](_0x27193c(0x189))[_0x27193c(0x176)]()){const {modelFragment:_0x387a85,anchorData:_0x5a94cd}=this[_0x27193c(0x1ec)]();return this[_0x27193c(0x213)](_0x126d7a,_0x387a85,_0x5a94cd,_0x2bf9b4,_0x4b8d86);}}const {modelFragment:_0x5d530b,anchorData:_0x5869a5}=this[_0x27193c(0x196)]();return this[_0x27193c(0x213)](_0x126d7a,_0x5d530b,_0x5869a5,_0x2bf9b4,_0x4b8d86);}[_0x3a909e(0x196)](){const _0x2ce3de=_0x3a909e,_0x363893=this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x1be)][_0x2ce3de(0x1c8)];if(_0x363893[_0x2ce3de(0x1a2)]){const _0x389799=_0x5303f9(_0x363893[_0x2ce3de(0x216)]())||this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x205)][_0x2ce3de(0x1b1)](_0x363893);this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x173)](_0x482462=>{const _0x4665a8=_0x2ce3de;_0x482462[_0x4665a8(0x1dd)](_0x389799,'in');});}const _0x21dfb5=_0x363893[_0x2ce3de(0x1e7)](),_0x440c0e=this[_0x2ce3de(0x1e3)](this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x22f)](_0x363893),_0x21dfb5[_0x2ce3de(0x1c1)],_0x21dfb5[_0x2ce3de(0x212)]),_0x1b9122=_0x363893[_0x2ce3de(0x1e7)]()[_0x2ce3de(0x1c1)],_0x17a230=new Map();let _0x5c1910=_0x440c0e;for(let _0x28f38d=0x0;_0x28f38d<_0x1b9122[_0x2ce3de(0x218)][_0x2ce3de(0x1d9)];_0x28f38d++)_0x17a230[_0x2ce3de(0x1aa)](_0x5c1910,_0x1b9122[_0x2ce3de(0x218)][_0x28f38d]),_0x5c1910=_0x5c1910[_0x2ce3de(0x208)](0x0);return{'modelFragment':_0x440c0e,'anchorData':_0x17a230};}[_0x3a909e(0x1ec)](){const _0x555f28=_0x3a909e,_0x5920c=this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1be)][_0x555f28(0x1c8)],_0x46db09=this[_0x555f28(0x250)][_0x555f28(0x181)][_0x555f28(0x1ab)](_0x555f28(0x189))[_0x555f28(0x182)](),_0x10165b=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)][_0x555f28(0x1f9)][_0x555f28(0x1f9)],_0x2923f4=this[_0x555f28(0x1e3)](_0x46db09,this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1c9)](_0x10165b),this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1e9)](_0x10165b)),_0x294dd6=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)],_0x4b957b=new Map();let _0x380212=_0x2923f4;for(let _0x4777c7=0x0;_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)];_0x4777c7++)if(_0x4b957b[_0x555f28(0x1aa)](_0x380212,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)]-0x1)_0x380212=_0x380212[_0x555f28(0x208)](0x0);else{let _0x9e6d79=_0x380212[_0x555f28(0x17b)];for(;_0x9e6d79;)_0x4b957b[_0x555f28(0x1aa)](_0x9e6d79,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x9e6d79=_0x9e6d79[_0x555f28(0x17b)];}return{'modelFragment':_0x2923f4,'anchorData':_0x4b957b};}[_0x3a909e(0x213)](_0x3deadf,_0xbcced0,_0x322203,_0x5244ce,_0xf40a5a){const _0x1d354f=_0x3a909e,_0x5186c4=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x3dfa29),_0x43f127=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x2f47a3),_0x5046d9=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x1c8)],_0x5bbdbc=_0x5186c4[_0x1d354f(0x1e5)](_0xbcced0),_0x13526a=this[_0x1d354f(0x250)][_0x1d354f(0x1a0)][_0x1d354f(0x175)][_0x1d354f(0x244)](_0x5bbdbc),_0x257782=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x23b)],_0x6912fc=[..._0x5046d9[_0x1d354f(0x192)]()],_0x142ea4=new _0x49e588(this[_0x1d354f(0x250)][_0x1d354f(0x207)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1d354f(0x18f),'customView':this[_0x1d354f(0x232)]},'showUnchangedParts':!0x0});return _0x43f127[_0x1d354f(0x185)]({'index':0x3e8*Math[_0x1d354f(0x19c)]()%0x3e8,'title':_0x5244ce,'icon':_0xf40a5a||_0xee8a1d,'mainView':_0x142ea4,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x6912fc}),this[_0x1d354f(0x19d)](_0x142ea4,_0x43f127),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x229),()=>{const _0x34c0e6=_0x1d354f;this[_0x34c0e6(0x1d1)](_0xbcced0,_0x322203,!0x1);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1c2),()=>{const _0x4eec06=_0x1d354f;this[_0x4eec06(0x1d1)](_0xbcced0,_0x322203,!0x0);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1e2),()=>{const _0x52ec66=_0x1d354f;if(this[_0x52ec66(0x237)]&&this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]>0x0){const _0x185d9c=this[_0x52ec66(0x237)][_0x52ec66(0x1df)][this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]-0x1],_0x14a81b=_0x185d9c[_0x52ec66(0x1a6)][0x0];_0x14a81b&&_0x52ec66(0x1b3)===_0x14a81b[_0x52ec66(0x19f)]&&_0x185d9c[_0x52ec66(0x23e)](0x0,_0x52ec66(0x1f0));}this[_0x52ec66(0x1ee)](),this[_0x52ec66(0x1c4)](),this[_0x52ec66(0x1c6)](_0x43f127);}),this[_0x1d354f(0x22e)](_0x13526a,_0x257782,_0x142ea4,_0x43f127,_0x3deadf);}[_0x3a909e(0x1e3)](_0x36017c,_0x31dc2c,_0x2771f1){const _0x3c2086=_0x3a909e,_0x420ba1=this[_0x3c2086(0x250)][_0x3c2086(0x198)][_0x3c2086(0x24b)](_0x31dc2c,_0x2771f1)[_0x3c2086(0x240)](),_0x3ba004=_0x420ba1['is'](_0x3c2086(0x1d5))?[]:_0x420ba1[_0x3c2086(0x206)]({'includeSelf':!0x0})[_0x3c2086(0x227)](0x1);if(_0x3ba004[_0x3c2086(0x1d9)]){const _0xc0a839=_0x3ba004[_0x3c2086(0x18d)](_0x909ffc=>_0x909ffc[_0x3c2086(0x21d)](!0x1));for(let _0x3b0f3a=0x1;_0x3b0f3a<_0xc0a839[_0x3c2086(0x1d9)];_0x3b0f3a++)_0xc0a839[_0x3b0f3a-0x1][_0x3c2086(0x18b)](_0xc0a839[_0x3b0f3a]);return _0xc0a839[_0xc0a839[_0x3c2086(0x1d9)]-0x1][_0x3c2086(0x18b)](_0x36017c),new _0x493adb(_0xc0a839[0x0]);}return _0x36017c;}async[_0x3a909e(0x22e)](_0xb43ce0,_0x129c3a,_0x1aefb8,_0x4a7b26,_0x49a410){const _0x27b7f6=_0x3a909e,_0x1f88b5=this[_0x27b7f6(0x250)];this[_0x27b7f6(0x1fe)]={'action':_0x49a410,'content':_0xb43ce0,'version':_0x129c3a,'mainView':_0x1aefb8,'aiBalloon':_0x4a7b26};const _0x32e45f=new _0x52b667({'connector':this[_0x27b7f6(0x1cf)],'editor':_0x1f88b5,'content':_0xb43ce0,'version':_0x129c3a,..._0x49a410});this[_0x27b7f6(0x1f3)][_0x27b7f6(0x1f6)](_0x32e45f),_0x1aefb8[_0x27b7f6(0x1f7)]();const _0x1afe8e=(_0x2362ee,_0x2e79cf,_0x2b9a87=!0x1,_0x423dc3=_0x27b7f6(0x210))=>this[_0x27b7f6(0x20b)][_0x27b7f6(0x17c)](async _0x2f81df=>{const _0x136f3d=_0x27b7f6;try{const _0x3be65f=_0x4a4566({'editor':_0x1f88b5,'changeGroups':_0x2362ee[_0x136f3d(0x1a6)],'documentContextContent':_0x2362ee[_0x136f3d(0x1a7)],'showDiff':_0x2b9a87,'trimUnchanged':!0x1});await _0x2e79cf[_0x136f3d(0x1e6)]({'parts':_0x3be65f,'renderingStrategy':_0x423dc3,'abortSignal':_0x2f81df});}catch(_0x588351){if(this[_0x136f3d(0x243)](_0x588351))return;throw _0x588351;}});this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1eb),(_0x4d6937,_0x30ef11)=>{const _0x53e4bc=_0x27b7f6;_0x1aefb8[_0x53e4bc(0x19a)](),_0x1afe8e(_0x30ef11,_0x1aefb8)[_0x53e4bc(0x1f1)](_0x3b466d=>{const _0x2c6143=_0x53e4bc;this[_0x2c6143(0x243)](_0x3b466d)||(console[_0x2c6143(0x228)](_0x2c6143(0x17f),_0x3b466d),this[_0x2c6143(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x21c),(_0x5e4fcd,_0x8d3e86)=>{const _0x156df0=_0x27b7f6;_0x1afe8e(_0x8d3e86,_0x1aefb8)[_0x156df0(0x1f1)](_0x1484b9=>{const _0x2002af=_0x156df0;this[_0x2002af(0x243)](_0x1484b9)||(console[_0x2002af(0x228)](_0x2002af(0x1b5),_0x1484b9),this[_0x2002af(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1d8),async()=>{const _0x29d420=_0x27b7f6;try{await this[_0x29d420(0x1b6)](_0x1aefb8,_0x4a7b26),this[_0x29d420(0x1ae)]();}catch(_0x3fe9b6){this[_0x29d420(0x243)](_0x3fe9b6)||(console[_0x29d420(0x228)](_0x29d420(0x234),_0x3fe9b6),this[_0x29d420(0x211)](_0x32e45f,_0x1aefb8));}}),this[_0x27b7f6(0x249)](_0x1aefb8,_0x27b7f6(0x226),(_0x2cf404,{showDiff:_0x196f76})=>{const _0x26d4e5=_0x27b7f6;this[_0x26d4e5(0x1f2)]=_0x196f76;const _0xee297a=this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][_0x26d4e5(0x1d9)]-0x1];_0xee297a&&_0x1afe8e(_0xee297a,_0x1aefb8,_0x196f76,_0x26d4e5(0x1a3))[_0x26d4e5(0x1f1)](_0x56116d=>{const _0x95a97d=_0x26d4e5;this[_0x95a97d(0x243)](_0x56116d)||(console[_0x95a97d(0x228)](_0x95a97d(0x251),_0x56116d),this[_0x95a97d(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x186),(_0x378f47,{reply:_0x7fcd93})=>{const _0x3056af=_0x27b7f6,_0x45bea8={'positiveCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x21a)](_0x12b3ed=>_0x3056af(0x197)===_0x12b3ed[_0x3056af(0x19f)])[_0x3056af(0x1d9)],'totalCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x1d9)]},_0x5a13f8=this[_0x3056af(0x237)][_0x3056af(0x22b)],_0xb1ddd7=this[_0x3056af(0x237)][_0x3056af(0x1ca)];_0xb1ddd7?this[_0x3056af(0x1cf)][_0x3056af(0x233)](_0xb1ddd7,_0x5a13f8,_0x45bea8):this[_0x3056af(0x1cf)][_0x3056af(0x1dc)](_0x5a13f8,_0x45bea8);}),this[_0x27b7f6(0x19d)](_0x1aefb8,_0x4a7b26);try{const _0x416c31=await this[_0x27b7f6(0x237)][_0x27b7f6(0x1c1)]();return this[_0x27b7f6(0x1ae)](),_0x416c31;}catch(_0x5ed646){if(this[_0x27b7f6(0x243)](_0x5ed646))return;_0x1aefb8[_0x27b7f6(0x19a)](),this[_0x27b7f6(0x211)](_0x32e45f,_0x1aefb8);}}[_0x3a909e(0x1d1)](_0x2fc8e9,_0x562844,_0xfff0ea){const _0x4bc873=_0x3a909e,_0xcdaa8=this[_0x4bc873(0x250)],_0x222923=this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x38fbd8),_0x58ecce=this[_0x4bc873(0x237)],_0x49dd0e=this[_0x4bc873(0x237)][_0x4bc873(0x1df)][this[_0x4bc873(0x237)][_0x4bc873(0x1df)][_0x4bc873(0x1d9)]-0x1],_0x3ba793=_0x49dd0e[_0x4bc873(0x1a6)];_0x49dd0e[_0x4bc873(0x23e)](0x0,_0x4bc873(0x197));let _0x56a2d3=_0x310700({'editor':_0xcdaa8,'reply':_0x49dd0e,'interaction':_0x58ecce,'groups':_0x3ba793,'transform':!0x1,'documentCompare':_0x222923,'documentCompareOptions':{'anchor':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x219)](_0x2fc8e9,0x0),'markDeletions':_0xfff0ea}});_0x56a2d3=this[_0x4bc873(0x1fd)](_0x56a2d3,_0x562844);for(const _0x24c217 of _0x56a2d3)this[_0x4bc873(0x1cd)](_0x562844,_0x24c217,_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x214)]());const _0x4128de=_0x58ecce[_0x4bc873(0x1b8)]()[_0x4bc873(0x23b)],_0x465452=_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x220)][_0x4bc873(0x1ce)](_0x4128de),_0x3456e8={'document':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2ebfd2=_0x18ba5f(_0x56a2d3,_0x465452,_0x3456e8)[_0x4bc873(0x1b2)];_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x173)](_0x3e5050=>{const _0x30025e=_0x4bc873;if(_0x3e5050[_0x30025e(0x1dd)](_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x1c8)][_0x30025e(0x17d)]),_0xfff0ea)_0xcdaa8[_0x30025e(0x181)][_0x30025e(0x1ab)](_0x30025e(0x180))[_0x30025e(0x1f8)](_0x2ebfd2);else{for(const _0x36bc8b of _0x2ebfd2)_0x36bc8b[_0x30025e(0x21b)]=_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x23b)],_0x3e5050[_0x30025e(0x230)][_0x30025e(0x215)](_0x36bc8b),_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1f4)](_0x36bc8b);}}),this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x4bc873(0x1e1))[_0x4bc873(0x17e)]();}[_0x3a909e(0x1fd)](_0x21ccc1,_0x7a5dc8){const _0x20f6d4=_0x3a909e;return _0x21ccc1[_0x20f6d4(0x21a)](_0x219fb5=>{const _0x28eb3d=_0x20f6d4;if(_0x28eb3d(0x1ea)==_0x219fb5[_0x28eb3d(0x21e)]){const _0x385165=_0x219fb5[_0x28eb3d(0x1a4)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x385165);}if(_0x219fb5[_0x28eb3d(0x21e)][_0x28eb3d(0x19b)](_0x28eb3d(0x188))>-0x1){const _0x1176db=_0x219fb5[_0x28eb3d(0x209)][_0x28eb3d(0x1c1)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x1176db);}return!0x0;});}[_0x3a909e(0x1cd)](_0x4e7da4,_0x44b595,_0x242925){const _0x42825a=_0x3a909e,_0x2aa9ea=_0x44b595[_0x42825a(0x1fc)]();for(const _0x3cb310 in _0x44b595){const _0x372d0b=_0x44b595[_0x3cb310];_0x372d0b instanceof _0x5027d3?_0x44b595[_0x3cb310]=new _0x5027d3(_0x3c9a78(_0x372d0b[_0x42825a(0x1c1)]),_0x3c9a78(_0x372d0b[_0x42825a(0x212)])):_0x372d0b instanceof _0x3e6702&&(_0x44b595[_0x3cb310]=_0x3c9a78(_0x372d0b));}if([_0x42825a(0x1c5),_0x42825a(0x1bd),_0x42825a(0x1ac),_0x42825a(0x194),_0x42825a(0x1de),_0x42825a(0x1c7)][_0x42825a(0x1fa)](_0x2aa9ea[_0x42825a(0x21e)])){if(_0x2aa9ea[_0x42825a(0x18a)]=!0x1,_0x2aa9ea[_0x42825a(0x21b)]=null,_0x42825a(0x1ac)==_0x2aa9ea[_0x42825a(0x21e)]){const _0x4a8d84=_0x2aa9ea[_0x42825a(0x245)],_0x330392=_0x2aa9ea[_0x42825a(0x174)];new _0x4cf8a0(_0x4a8d84,_0x330392)[_0x42825a(0x179)]();}else _0x2aa9ea[_0x42825a(0x179)]();}function _0x3c9a78(_0x33fb80){const _0x1f3a20=_0x42825a;if(_0x1f3a20(0x1bc)==_0x33fb80[_0x1f3a20(0x184)][_0x1f3a20(0x1bf)])return _0x33fb80;const _0x51564c=[];let _0x45444b=_0x33fb80[_0x1f3a20(0x184)];for(let _0x266174=0x0;_0x266174<_0x33fb80[_0x1f3a20(0x218)][_0x1f3a20(0x1d9)];_0x266174++){const _0x4a4275=_0x4e7da4[_0x1f3a20(0x1ab)](_0x45444b)||0x0;_0x51564c[_0x266174]=_0x33fb80[_0x1f3a20(0x218)][_0x266174]+_0x4a4275,_0x45444b=_0x45444b[_0x1f3a20(0x222)](_0x33fb80[_0x1f3a20(0x218)][_0x266174]);}return new _0x3e6702(_0x242925,_0x51564c,_0x33fb80[_0x1f3a20(0x1f5)]);}}[_0x3a909e(0x20d)](){const _0x1c13da=_0x3a909e;if(!this[_0x1c13da(0x1fe)])return;this[_0x1c13da(0x1f3)][_0x1c13da(0x1d9)]>0x0&&this[_0x1c13da(0x1ee)](),this[_0x1c13da(0x20c)]=0x0,this[_0x1c13da(0x1f2)]=!0x1;const {action:_0x316453,content:_0x104c64,version:_0x4a4bb1,mainView:_0x9156ca,aiBalloon:_0x100013}=this[_0x1c13da(0x1fe)];_0x9156ca[_0x1c13da(0x1db)]=!0x1,_0x9156ca[_0x1c13da(0x1f7)](),this[_0x1c13da(0x252)](_0x9156ca,_0x100013);const _0x3556cf=_0x9156ca;_0x3556cf[_0x1c13da(0x24e)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)][_0x1c13da(0x1aa)]({'isOn':!0x1,'icon':_0x5a8d0c}),this[_0x1c13da(0x19e)](_0x9156ca),_0x9156ca[_0x1c13da(0x1b9)](),this[_0x1c13da(0x1ae)](),this[_0x1c13da(0x22e)](_0x104c64,_0x4a4bb1,_0x9156ca,_0x100013,_0x316453)[_0x1c13da(0x1f1)](_0x349f72=>{const _0x66487c=_0x1c13da;this[_0x66487c(0x243)](_0x349f72)||console[_0x66487c(0x228)](_0x66487c(0x224),_0x349f72);});}[_0x3a909e(0x19e)](_0x1c2f06){const _0x474715=_0x3a909e,_0x32b4da=_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1c3)];for(;_0x32b4da[_0x474715(0x1d9)]>0x0;)_0x32b4da[_0x474715(0x1ac)](_0x32b4da[_0x474715(0x204)]);_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1b7)]=!0x1;}[_0x3a909e(0x243)](_0x13ac94){const _0x295ece=_0x3a909e;return!!_0x13ac94[_0x295ece(0x1ed)]&&_0x13ac94[_0x295ece(0x1ed)][_0x295ece(0x1ad)](_0x295ece(0x238));}[_0x3a909e(0x1c4)](){const _0x493da0=_0x3a909e;this[_0x493da0(0x1f3)]=[],this[_0x493da0(0x1fe)]=void 0x0,this[_0x493da0(0x20c)]=0x0,this[_0x493da0(0x1ae)]();}[_0x3a909e(0x1ee)](){const _0x1c971f=_0x3a909e;this[_0x1c971f(0x237)]&&this[_0x1c971f(0x237)][_0x1c971f(0x1ba)](),this[_0x1c971f(0x20b)][_0x1c971f(0x23c)](),this[_0x1c971f(0x1b4)]=!0x1;}[_0x3a909e(0x23f)](){const _0x24ac95=_0x3a909e,_0xd19ce1=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4e4e14=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x2b66e6=new _0x24aac6(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4d589d=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]);_0xd19ce1[_0x24ac95(0x1aa)]({'icon':_0xd1bb03,'label':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x1d4)),'tooltip':!0x0,'class':_0x24ac95(0x1c0)}),_0x4e4e14[_0x24ac95(0x1aa)]({'icon':_0x20c440,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x18c)),'class':_0x24ac95(0x203)}),_0x2b66e6[_0x24ac95(0x1a9)]({'tag':_0x24ac95(0x1d7),'attributes':{'class':[_0x24ac95(0x21f)]},'children':[_0x24ac95(0x225)]}),_0x4d589d[_0x24ac95(0x1aa)]({'icon':_0x10dff5,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x231)),'class':_0x24ac95(0x1a1)}),_0xd19ce1[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1de74c=>!_0x1de74c),_0xd19ce1['on'](_0x24ac95(0x24d),()=>{const _0x4d134c=_0x24ac95;this[_0x4d134c(0x20d)]();}),_0x4e4e14[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1e8890=>!_0x1e8890),_0x4e4e14['on'](_0x24ac95(0x24d),()=>{const _0xa02ca1=_0x24ac95;this[_0xa02ca1(0x20e)]();}),_0x4d589d[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x197458=>!_0x197458),_0x4d589d['on'](_0x24ac95(0x24d),()=>{const _0xd35184=_0x24ac95;this[_0xd35184(0x235)]();}),this[_0x24ac95(0x172)]=_0x4e4e14,this[_0x24ac95(0x1af)]=_0x2b66e6,this[_0x24ac95(0x183)]=_0x4d589d,this[_0x24ac95(0x232)][_0x24ac95(0x1bb)](_0xd19ce1);}[_0x3a909e(0x20e)](){const _0x352930=_0x3a909e,_0x43c15a=this[_0x352930(0x1f3)][_0x352930(0x1d9)];this[_0x352930(0x20c)]<_0x43c15a-0x1&&this[_0x352930(0x1d0)](this[_0x352930(0x20c)]+0x1);}[_0x3a909e(0x235)](){const _0x378fda=_0x3a909e;this[_0x378fda(0x20c)]>0x0&&this[_0x378fda(0x1d0)](this[_0x378fda(0x20c)]-0x1);}async[_0x3a909e(0x1d0)](_0x54e414){const _0x4d6d1a=_0x3a909e;if(!this[_0x4d6d1a(0x1fe)])return;this[_0x4d6d1a(0x20c)]=_0x54e414;const {mainView:_0x2215bc}=this[_0x4d6d1a(0x1fe)],_0x533e2b=this[_0x4d6d1a(0x1f3)][this[_0x4d6d1a(0x1f3)][_0x4d6d1a(0x1d9)]-0x1-this[_0x4d6d1a(0x20c)]];if(!_0x533e2b)return;if(_0x533e2b[_0x4d6d1a(0x223)])return this[_0x4d6d1a(0x211)](_0x533e2b,_0x2215bc),void this[_0x4d6d1a(0x1ae)]();if(!_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)])return;_0x2215bc[_0x4d6d1a(0x1f7)](),this[_0x4d6d1a(0x1fe)]&&this[_0x4d6d1a(0x252)](_0x2215bc,this[_0x4d6d1a(0x1fe)][_0x4d6d1a(0x187)]);const _0x3c3086=_0x533e2b[_0x4d6d1a(0x1df)][_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)]-0x1];if(_0x3c3086){const _0x34dba2=this[_0x4d6d1a(0x250)];this[_0x4d6d1a(0x19e)](_0x2215bc);try{const _0x3788f7=_0x4a4566({'editor':_0x34dba2,'changeGroups':_0x3c3086[_0x4d6d1a(0x1a6)],'documentContextContent':_0x3c3086[_0x4d6d1a(0x1a7)],'showDiff':this[_0x4d6d1a(0x1f2)],'trimUnchanged':!0x1});this[_0x4d6d1a(0x19e)](_0x2215bc),await new Promise(_0x19cceb=>setTimeout(_0x19cceb,0x32)),await _0x2215bc[_0x4d6d1a(0x1e6)]({'parts':_0x3788f7,'renderingStrategy':_0x4d6d1a(0x1a3),'abortSignal':new AbortController()[_0x4d6d1a(0x247)]});}catch(_0x1f9539){this[_0x4d6d1a(0x243)](_0x1f9539)||console[_0x4d6d1a(0x228)](_0x4d6d1a(0x248),_0x1f9539);}}this[_0x4d6d1a(0x1ae)]();}[_0x3a909e(0x1ae)](){const _0x1e90cb=_0x3a909e;if(!this[_0x1e90cb(0x172)]||!this[_0x1e90cb(0x1af)]||!this[_0x1e90cb(0x183)])return;const _0x149b4d=this[_0x1e90cb(0x1f3)][_0x1e90cb(0x1d9)],_0x26eff9=_0x149b4d>0x1,_0x4f968b=this[_0x1e90cb(0x1fe)]?.[_0x1e90cb(0x191)];if(_0x26eff9){this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)]||(this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x0);const _0xd07a4=_0x149b4d-this[_0x1e90cb(0x20c)];this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)]&&(this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)][_0x1e90cb(0x221)]=_0xd07a4+'/'+_0x149b4d),this[_0x1e90cb(0x172)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]<_0x149b4d-0x1,this[_0x1e90cb(0x183)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]>0x0;}else(this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)])&&(this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x1);}[_0x3a909e(0x19d)](_0x4ec828,_0x19890e){const _0x2ca933=_0x3a909e;_0x4ec828[_0x2ca933(0x190)](),_0x19890e[_0x2ca933(0x1e8)][_0x2ca933(0x190)](),this[_0x2ca933(0x1b4)]=!0x0;}async[_0x3a909e(0x211)](_0x16a976,_0x32f402){const _0x713117=_0x3a909e,_0x4a6520=_0x5391d0(this[_0x713117(0x250)][_0x713117(0x207)],_0x713117(0x201));_0x32f402[_0x713117(0x239)](_0x4a6520),_0x16a976[_0x713117(0x223)]=!0x0,await this[_0x713117(0x20b)][_0x713117(0x195)],_0x32f402[_0x713117(0x22a)](),this[_0x713117(0x1fe)]?.[_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)]&&(this[_0x713117(0x1fe)][_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)][_0x713117(0x18e)]=!0x0);}[_0x3a909e(0x252)](_0x476eec,_0x20bade){const _0x56eedc=_0x3a909e;_0x476eec[_0x56eedc(0x202)](),_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)]&&(_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)][_0x56eedc(0x18e)]=!0x1);}async[_0x3a909e(0x1b6)](_0x27864b,_0x5f5abf){const _0x51eb25=_0x3a909e;await this[_0x51eb25(0x20b)][_0x51eb25(0x195)],this[_0x51eb25(0x1b4)]=!0x1,_0x27864b[_0x51eb25(0x217)](),_0x5f5abf[_0x51eb25(0x1e8)][_0x51eb25(0x217)]();}}
|
|
23
|
+
const _0x5cf972=_0x3604;(function(_0x549a75,_0x22870c){const _0x4a1949=_0x3604,_0x307b9a=_0x549a75();while(!![]){try{const _0x522653=parseInt(_0x4a1949(0x278))/0x1*(parseInt(_0x4a1949(0x1c2))/0x2)+parseInt(_0x4a1949(0x19e))/0x3+-parseInt(_0x4a1949(0x20c))/0x4+-parseInt(_0x4a1949(0x207))/0x5+parseInt(_0x4a1949(0x1ae))/0x6+parseInt(_0x4a1949(0x237))/0x7+-parseInt(_0x4a1949(0x1cf))/0x8*(parseInt(_0x4a1949(0x260))/0x9);if(_0x522653===_0x22870c)break;else _0x307b9a['push'](_0x307b9a['shift']());}catch(_0x47e903){_0x307b9a['push'](_0x307b9a['shift']());}}}(_0x22cb,0x70c81));import{Plugin as _0x412a8b}from'ckeditor5/src/core.js';import{AIConnector as _0x43766b}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1f1267}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x3604(_0x53db53,_0x49b3a7){const _0x22cb5b=_0x22cb();return _0x3604=function(_0x36045e,_0x5e9900){_0x36045e=_0x36045e-0x196;let _0x191e39=_0x22cb5b[_0x36045e];return _0x191e39;},_0x3604(_0x53db53,_0x49b3a7);}import{Dialog as _0x38c893,ButtonView as _0x5213df,ViewCollection as _0x4d7a5c,View as _0x4a3ab3}from'ckeditor5/src/ui.js';function _0x22cb(){const _0x102317=['_promiseQueue','TrackChanges','end','applySuggestion','getAncestors','replies','upsertAIActionRating','error','createRange','TrackChangesEditing','_updateNavigationUI','indexOf','bind','hasError','reinsert','144hcNiVV','_clone','processor','message','_navigationNextButton','plugins','setLoading','filter','_isNavigationPreviousButtonInView','nextSibling','_getExecuteDataRegular','_interactions','static','selection','textContent','model','_clearLoadingState','isPremiumPlugin','nodeAfter','getOperations','abort','insert','stopInteraction','_filterOperationsOutsideRange','12230eprGWs','signal','_clearErrorState','_clearInteractionHistory','_stopInteraction','listenTo','open','isEnabled','getRanges','miniToolbarView','interactionFinished','1872009WKFdZW','requires','pending','streaming','replyCreated','ck-ai-custom-action-button','rename','getCommonAncestor','_executeAction','_execute','bodyView','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','sourcePosition','hideError','ai-no-track-changes','documentFragment','1990608VyLfna','_navigationPreviousButton','clone','_setLoadingState','aiBalloon','AI_ACTIONS_NEXT_INTERACTION','getSelectedBlocks','icon','document','path','toData','getSelectedContent','state','_interaction','setSelection','applyOperation','stopListening','replyChangeGroupStateUpdated','getChildAtOffset','Error\x20updating\x20content\x20in\x20replyContentUpdated:','20nJlcXa','documentContextContent','history','toolbar','_setupCustomViews','merge','config','baseVersion','ck-ai-interaction-counter','stickiness','replyContentUpdated','mainView','root','373328uzdTfj','get','_refreshInteraction','close','split','hasPendingParts','setTemplate','_isNavigationCounterInView','selectionRemoved','_applyChanges','AIActions','isBusy','AIConnector','enqueue','position','add','span','_isAbortError','setErrorState','catch','hideLoader','ck-ai-navigation-button\x20ck-ai-next-button','areChangesVisible','data','_currentInteractionIndex','rejected','showLoader','toggleSuggestionDisplayMode','_aiConnector','editor','Error\x20updating\x20content\x20in\x20replyCreated:','first','type','changeGroups','length','has','removeNavigationItem','_applyOperationsAsSuggestions','Attribute','dialogClosed','modelToViewWithIds','element','version','executeAction','clearLoading','getChild','parent','AI_ACTIONS_TRY_AGAIN','rootName','_navigateToPrevious','_getExecuteDataInTable','_setErrorState','change','execute','TableSelection','_navigationCounter','1324360dNufrA','AI_ACTIONS_PREVIOUS_INTERACTION','_displayInteractionAtIndex','slice','push','199932PqWWMK','clearErrorState','1/1','getFirstRange','createPositionAt','howMany','operationsA','upsertCustomAIActionRating','isLoading','includes','startsWith','set','createPositionAfter','AIBalloon','_wrapWithCommonAncestors','getDocumentContext','batch','queueEmptyPromise','actionCallId','_navigateToNext','focus','showError','insertSuggestion','getLimitElement','forEach','ai-request-aborted','random','pluginName','_customViews','isOfficialPlugin','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_clearSuggestionContent','move','remove','map','accepted','balloonView','addNavigationItem','AI_ACTIONS_GENERIC_ERROR','_disableCustomViews','getSelectedTableCells','showChangesButton','range','3117751CmkwjD','isDocumentOperation','setChangeGroupState','getSelectionAsFragment','start','Error\x20refreshing\x20interaction:','_appendChild','_anchorOperation','$graveyard','_children','addOperation','_isNavigationNextButtonInView','actionName','ai.availableReplyActions','getRoot','isCollapsed','Error\x20updating\x20content\x20during\x20navigation:','ck-ai-navigation-button\x20ck-ai-previous-button','_createInteraction','stop','_interactionParams','_balloonShowDiff','createPositionBefore','updateContent','locale','schema'];_0x22cb=function(){return _0x102317;};return _0x22cb();}import{AIEditing as _0x4246c8}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4391f7}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x38820e,first as _0x139a68}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4b8669,IconRefresh as _0x437d53,IconNextArrow as _0x634240,IconPreviousArrow as _0xac2fb4,IconShowChangesOff as _0x4bb54a}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0xf3b670}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x4a2457}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x52bc2a}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4b1e17}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1d1aa6}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x101709,getOperationsFromReply as _0x22e435}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5df78a,ModelRange as _0x5bd1db,ModelPosition as _0x53b3a5,_DetachOperation as _0x233278,transformOperationSets as _0x3d28bc}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4603e4}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x412a8b{static get[_0x5cf972(0x19f)](){return[_0x43766b,_0x38c893,_0x4246c8,_0xf3b670,_0x1d1aa6];}static get[_0x5cf972(0x227)](){const _0x5cf18e=_0x5cf972;return _0x5cf18e(0x1d9);}static get[_0x5cf972(0x229)](){return!0x0;}static get[_0x5cf972(0x271)](){return!0x0;}[_0x5cf972(0x1eb)];[_0x5cf972(0x26b)]=[];[_0x5cf972(0x1e7)]=0x0;[_0x5cf972(0x24b)];[_0x5cf972(0x24c)]=!0x1;[_0x5cf972(0x228)]=new _0x4d7a5c();[_0x5cf972(0x1af)];[_0x5cf972(0x206)];[_0x5cf972(0x1d6)]=!0x1;[_0x5cf972(0x264)];[_0x5cf972(0x268)]=!0x1;[_0x5cf972(0x242)]=!0x1;[_0x5cf972(0x251)];get[_0x5cf972(0x1bb)](){const _0x5a8a63=_0x5cf972;return this[_0x5a8a63(0x26b)][this[_0x5a8a63(0x26b)][_0x5a8a63(0x1f1)]-0x1];}constructor(_0x5d1bf4){const _0x843066=_0x5cf972;super(_0x5d1bf4),this[_0x843066(0x1eb)]=this[_0x843066(0x1ec)][_0x843066(0x265)][_0x843066(0x1d0)](_0x843066(0x1db)),this[_0x843066(0x217)](_0x843066(0x1da),!0x1),this[_0x843066(0x251)]=new _0x4a2457(),this[_0x843066(0x1c6)]();}[_0x5cf972(0x276)](){const _0x489bdd=_0x5cf972;this[_0x489bdd(0x197)]();}async[_0x5cf972(0x1fa)](_0x4a4fc1,_0x9d4530,_0x417f3c){const _0x1e5c05=_0x5cf972;if(this[_0x1e5c05(0x1ec)][_0x1e5c05(0x265)][_0x1e5c05(0x1f2)](_0x1e5c05(0x205))){if(this[_0x1e5c05(0x1ec)][_0x1e5c05(0x265)][_0x1e5c05(0x1d0)](_0x1e5c05(0x205))[_0x1e5c05(0x234)]()){const {modelFragment:_0x4c6f39,anchorData:_0x4d87d1}=this[_0x1e5c05(0x201)]();return this[_0x1e5c05(0x1a6)](_0x4a4fc1,_0x4c6f39,_0x4d87d1,_0x9d4530,_0x417f3c);}}const {modelFragment:_0x23f4c4,anchorData:_0x3c7c76}=this[_0x1e5c05(0x26a)]();return this[_0x1e5c05(0x1a6)](_0x4a4fc1,_0x23f4c4,_0x3c7c76,_0x9d4530,_0x417f3c);}[_0x5cf972(0x26a)](){const _0x1387a9=_0x5cf972,_0x45c421=this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x1b6)][_0x1387a9(0x26d)];if(_0x45c421[_0x1387a9(0x246)]){const _0x428ff7=_0x139a68(_0x45c421[_0x1387a9(0x1b4)]())||this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x250)][_0x1387a9(0x223)](_0x45c421);this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x203)](_0x3dd531=>{const _0x3b58fa=_0x1387a9;_0x3dd531[_0x3b58fa(0x1bc)](_0x428ff7,'in');});}const _0x41da6b=_0x45c421[_0x1387a9(0x20f)](),_0x488c94=this[_0x1387a9(0x21a)](this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x1b9)](_0x45c421),_0x41da6b[_0x1387a9(0x23b)],_0x41da6b[_0x1387a9(0x253)]),_0x2c9716=_0x45c421[_0x1387a9(0x20f)]()[_0x1387a9(0x23b)],_0x5ce7d5=new Map();let _0x390e08=_0x488c94;for(let _0x22e7ad=0x0;_0x22e7ad<_0x2c9716[_0x1387a9(0x1b7)][_0x1387a9(0x1f1)];_0x22e7ad++)_0x5ce7d5[_0x1387a9(0x217)](_0x390e08,_0x2c9716[_0x1387a9(0x1b7)][_0x22e7ad]),_0x390e08=_0x390e08[_0x1387a9(0x1fc)](0x0);return{'modelFragment':_0x488c94,'anchorData':_0x5ce7d5};}[_0x5cf972(0x201)](){const _0x5a529f=_0x5cf972,_0x5c9024=this[_0x5a529f(0x1ec)][_0x5a529f(0x26f)][_0x5a529f(0x1b6)][_0x5a529f(0x26d)],_0x3c44c5=this[_0x5a529f(0x1ec)][_0x5a529f(0x265)][_0x5a529f(0x1d0)](_0x5a529f(0x205))[_0x5a529f(0x23a)](),_0x184304=_0x5c9024[_0x5a529f(0x20f)]()[_0x5a529f(0x23b)][_0x5a529f(0x1fd)][_0x5a529f(0x1fd)],_0x4783fd=this[_0x5a529f(0x21a)](_0x3c44c5,this[_0x5a529f(0x1ec)][_0x5a529f(0x26f)][_0x5a529f(0x24d)](_0x184304),this[_0x5a529f(0x1ec)][_0x5a529f(0x26f)][_0x5a529f(0x218)](_0x184304)),_0x1cddba=_0x5c9024[_0x5a529f(0x20f)]()[_0x5a529f(0x23b)],_0x4e6df5=new Map();let _0x3ae351=_0x4783fd;for(let _0x23680e=0x0;_0x23680e<_0x1cddba[_0x5a529f(0x1b7)][_0x5a529f(0x1f1)];_0x23680e++)if(_0x4e6df5[_0x5a529f(0x217)](_0x3ae351,_0x1cddba[_0x5a529f(0x1b7)][_0x23680e]),_0x23680e<_0x1cddba[_0x5a529f(0x1b7)][_0x5a529f(0x1f1)]-0x1)_0x3ae351=_0x3ae351[_0x5a529f(0x1fc)](0x0);else{let _0x1be5f9=_0x3ae351[_0x5a529f(0x269)];for(;_0x1be5f9;)_0x4e6df5[_0x5a529f(0x217)](_0x1be5f9,_0x1cddba[_0x5a529f(0x1b7)][_0x23680e]),_0x1be5f9=_0x1be5f9[_0x5a529f(0x269)];}return{'modelFragment':_0x4783fd,'anchorData':_0x4e6df5};}[_0x5cf972(0x1a6)](_0x1c58c0,_0x4939a7,_0x3a295c,_0x51ec4b,_0x53498b){const _0x430ec4=_0x5cf972,_0x4276d6=this[_0x430ec4(0x1ec)][_0x430ec4(0x265)][_0x430ec4(0x1d0)](_0x4246c8),_0x56211e=this[_0x430ec4(0x1ec)][_0x430ec4(0x265)][_0x430ec4(0x1d0)](_0xf3b670),_0x1cf991=this[_0x430ec4(0x1ec)][_0x430ec4(0x26f)][_0x430ec4(0x1b6)][_0x430ec4(0x26d)],_0x24d4ef=_0x4276d6[_0x430ec4(0x1f7)](_0x4939a7),_0x3b8246=this[_0x430ec4(0x1ec)][_0x430ec4(0x1e6)][_0x430ec4(0x262)][_0x430ec4(0x1b8)](_0x24d4ef),_0x4900c1=this[_0x430ec4(0x1ec)][_0x430ec4(0x26f)][_0x430ec4(0x1b6)][_0x430ec4(0x1f9)],_0x3807e1=[..._0x1cf991[_0x430ec4(0x19b)]()];let _0x3b1fcb=this[_0x430ec4(0x1ec)][_0x430ec4(0x1c8)][_0x430ec4(0x1d0)](_0x430ec4(0x244))||[..._0x4603e4];this[_0x430ec4(0x1ec)][_0x430ec4(0x265)][_0x430ec4(0x1f2)](_0x430ec4(0x252))||(_0x3b1fcb=_0x3b1fcb[_0x430ec4(0x267)](_0x543661=>_0x430ec4(0x222)!=_0x543661));const _0x2f5531=new _0x1f1267(this[_0x430ec4(0x1ec)][_0x430ec4(0x24f)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x430ec4(0x1b5),'customView':this[_0x430ec4(0x228)]},'showUnchangedParts':!0x0,'availableActions':_0x3b1fcb});return _0x56211e[_0x430ec4(0x199)]({'index':0x3e8*Math[_0x430ec4(0x226)]()%0x3e8,'title':_0x51ec4b,'icon':_0x53498b||_0x4b8669,'mainView':_0x2f5531,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x3807e1}),this[_0x430ec4(0x1b1)](_0x2f5531,_0x56211e),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x254),()=>{const _0x304445=_0x430ec4;this[_0x304445(0x1d8)](_0x4939a7,_0x3a295c,!0x1);}),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x222),()=>{const _0x49f672=_0x430ec4;this[_0x49f672(0x1d8)](_0x4939a7,_0x3a295c,!0x0);}),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x1d7),()=>{const _0x17be11=_0x430ec4;this[_0x17be11(0x197)](),this[_0x17be11(0x233)]();}),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x1f6),()=>{const _0x1722a9=_0x430ec4;if(this[_0x1722a9(0x1bb)]&&this[_0x1722a9(0x1bb)][_0x1722a9(0x256)][_0x1722a9(0x1f1)]>0x0){const _0x1d1d64=this[_0x1722a9(0x1bb)][_0x1722a9(0x256)][this[_0x1722a9(0x1bb)][_0x1722a9(0x256)][_0x1722a9(0x1f1)]-0x1],_0x587941=_0x1d1d64[_0x1722a9(0x1f0)][0x0];_0x587941&&_0x1722a9(0x1a0)===_0x587941[_0x1722a9(0x1ba)]&&_0x1d1d64[_0x1722a9(0x239)](0x0,_0x1722a9(0x1e8));}this[_0x1722a9(0x197)](),this[_0x1722a9(0x196)](),this[_0x1722a9(0x1be)](_0x56211e);}),this[_0x430ec4(0x249)](_0x3b8246,_0x4900c1,_0x2f5531,_0x56211e,_0x1c58c0);}[_0x5cf972(0x21a)](_0x612e78,_0x2017b7,_0x5a2206){const _0x1a7a2f=_0x5cf972,_0x18080d=this[_0x1a7a2f(0x1ec)][_0x1a7a2f(0x26f)][_0x1a7a2f(0x259)](_0x2017b7,_0x5a2206)[_0x1a7a2f(0x1a5)](),_0x1e32e7=_0x18080d['is'](_0x1a7a2f(0x1ad))?[]:_0x18080d[_0x1a7a2f(0x255)]({'includeSelf':!0x0})[_0x1a7a2f(0x20a)](0x1);if(_0x1e32e7[_0x1a7a2f(0x1f1)]){const _0x43a399=_0x1e32e7[_0x1a7a2f(0x22e)](_0x271cb6=>_0x271cb6[_0x1a7a2f(0x261)](!0x1));for(let _0x4a41ce=0x1;_0x4a41ce<_0x43a399[_0x1a7a2f(0x1f1)];_0x4a41ce++)_0x43a399[_0x4a41ce-0x1][_0x1a7a2f(0x23d)](_0x43a399[_0x4a41ce]);return _0x43a399[_0x43a399[_0x1a7a2f(0x1f1)]-0x1][_0x1a7a2f(0x23d)](_0x612e78),new _0x5df78a(_0x43a399[0x0]);}return _0x612e78;}async[_0x5cf972(0x249)](_0x287239,_0x9fa473,_0x2374df,_0x29b860,_0x4ab750){const _0x1ab5ab=_0x5cf972,_0x431baa=this[_0x1ab5ab(0x1ec)];this[_0x1ab5ab(0x24b)]={'action':_0x4ab750,'content':_0x287239,'version':_0x9fa473,'mainView':_0x2374df,'aiBalloon':_0x29b860};const _0x26db0f=new _0x4391f7({'connector':this[_0x1ab5ab(0x1eb)],'editor':_0x431baa,'content':_0x287239,'version':_0x9fa473,..._0x4ab750});this[_0x1ab5ab(0x26b)][_0x1ab5ab(0x20b)](_0x26db0f),_0x2374df[_0x1ab5ab(0x1ab)]();const _0x1ae67f=(_0x12b6ad,_0x503708,_0x15fe1f=!0x1,_0x3c0e92=_0x1ab5ab(0x1a1))=>this[_0x1ab5ab(0x251)][_0x1ab5ab(0x1dc)](async _0xc7c483=>{const _0x3a85d9=_0x1ab5ab;try{const _0x54fda7=_0x4b1e17({'editor':_0x431baa,'changeGroups':_0x12b6ad[_0x3a85d9(0x1f0)],'documentContextContent':_0x12b6ad[_0x3a85d9(0x1c3)],'showDiff':_0x15fe1f,'trimUnchanged':!0x1});await _0x503708[_0x3a85d9(0x24e)]({'parts':_0x54fda7,'renderingStrategy':_0x3c0e92,'abortSignal':_0xc7c483});}catch(_0x33c0a7){if(this[_0x3a85d9(0x1e0)](_0x33c0a7))return;throw _0x33c0a7;}});this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x1a2),(_0x3979c7,_0x48ea59)=>{const _0x455244=_0x1ab5ab;_0x2374df[_0x455244(0x1e3)](),_0x1ae67f(_0x48ea59,_0x2374df)[_0x455244(0x1e2)](_0x3f9724=>{const _0x154e4d=_0x455244;this[_0x154e4d(0x1e0)](_0x3f9724)||(console[_0x154e4d(0x258)](_0x154e4d(0x1ed),_0x3f9724),this[_0x154e4d(0x202)](_0x26db0f,_0x2374df));});}),this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x1cc),(_0x2e4ac6,_0x32399f)=>{const _0x2bd889=_0x1ab5ab;_0x1ae67f(_0x32399f,_0x2374df)[_0x2bd889(0x1e2)](_0x1c4ec3=>{const _0x515ab5=_0x2bd889;this[_0x515ab5(0x1e0)](_0x1c4ec3)||(console[_0x515ab5(0x258)](_0x515ab5(0x1c1),_0x1c4ec3),this[_0x515ab5(0x202)](_0x26db0f,_0x2374df));});}),this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x19d),async()=>{const _0x2c1e49=_0x1ab5ab;try{await this[_0x2c1e49(0x270)](_0x2374df,_0x29b860),this[_0x2c1e49(0x25b)]();}catch(_0x2f442f){this[_0x2c1e49(0x1e0)](_0x2f442f)||(console[_0x2c1e49(0x258)](_0x2c1e49(0x22a),_0x2f442f),this[_0x2c1e49(0x202)](_0x26db0f,_0x2374df));}}),this[_0x1ab5ab(0x198)](_0x2374df,_0x1ab5ab(0x1ea),(_0x5a3320,{showDiff:_0x4df7fb})=>{const _0x1d9228=_0x1ab5ab;this[_0x1d9228(0x24c)]=_0x4df7fb;const _0x591abd=this[_0x1d9228(0x1bb)][_0x1d9228(0x256)][this[_0x1d9228(0x1bb)][_0x1d9228(0x256)][_0x1d9228(0x1f1)]-0x1];_0x591abd&&_0x1ae67f(_0x591abd,_0x2374df,_0x4df7fb,_0x1d9228(0x26c))[_0x1d9228(0x1e2)](_0x887233=>{const _0x425fe9=_0x1d9228;this[_0x425fe9(0x1e0)](_0x887233)||(console[_0x425fe9(0x258)](_0x425fe9(0x1a9),_0x887233),this[_0x425fe9(0x202)](_0x26db0f,_0x2374df));});}),this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x1bf),(_0x109bda,{reply:_0x2e0b17})=>{const _0xe4bc56=_0x1ab5ab,_0x2449c8={'positiveCount':_0x2e0b17[_0xe4bc56(0x1f0)][_0xe4bc56(0x267)](_0x1fe360=>_0xe4bc56(0x22f)===_0x1fe360[_0xe4bc56(0x1ba)])[_0xe4bc56(0x1f1)],'totalCount':_0x2e0b17[_0xe4bc56(0x1f0)][_0xe4bc56(0x1f1)]},_0x2b9d65=this[_0xe4bc56(0x1bb)][_0xe4bc56(0x21e)],_0x508f12=this[_0xe4bc56(0x1bb)][_0xe4bc56(0x243)];_0x508f12?this[_0xe4bc56(0x1eb)][_0xe4bc56(0x257)](_0x508f12,_0x2b9d65,_0x2449c8):this[_0xe4bc56(0x1eb)][_0xe4bc56(0x213)](_0x2b9d65,_0x2449c8);}),this[_0x1ab5ab(0x1b1)](_0x2374df,_0x29b860);try{const _0x5af8bc=await this[_0x1ab5ab(0x1bb)][_0x1ab5ab(0x23b)]();return this[_0x1ab5ab(0x25b)](),_0x5af8bc;}catch(_0x31c570){if(this[_0x1ab5ab(0x1e0)](_0x31c570))return;_0x2374df[_0x1ab5ab(0x1e3)](),this[_0x1ab5ab(0x202)](_0x26db0f,_0x2374df);}}[_0x5cf972(0x1d8)](_0x5cb574,_0x2588f5,_0xf9b9ba){const _0x4b5025=_0x5cf972,_0x17260a=this[_0x4b5025(0x1ec)];if(_0xf9b9ba&&!_0x17260a[_0x4b5025(0x265)][_0x4b5025(0x1f2)](_0x4b5025(0x252)))throw new _0x38820e(_0x4b5025(0x1ac),null);const _0x5a34fd=this[_0x4b5025(0x1ec)][_0x4b5025(0x265)][_0x4b5025(0x1d0)](_0x1d1aa6),_0x350da8=this[_0x4b5025(0x1bb)],_0x351e4b=this[_0x4b5025(0x1bb)][_0x4b5025(0x256)][this[_0x4b5025(0x1bb)][_0x4b5025(0x256)][_0x4b5025(0x1f1)]-0x1],_0x323755=_0x351e4b[_0x4b5025(0x1f0)];_0x351e4b[_0x4b5025(0x239)](0x0,_0x4b5025(0x22f));let _0x28d0be=_0x22e435({'editor':_0x17260a,'reply':_0x351e4b,'interaction':_0x350da8,'groups':_0x323755,'transform':!0x1,'documentCompare':_0x5a34fd,'documentCompareOptions':{'anchor':_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x210)](_0x5cb574,0x0),'markDeletions':_0xf9b9ba}});_0x28d0be=this[_0x4b5025(0x277)](_0x28d0be,_0x2588f5);for(const _0x32237b of _0x28d0be)this[_0x4b5025(0x23e)](_0x2588f5,_0x32237b,_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x1b6)][_0x4b5025(0x245)]());const _0x527f78=_0x350da8[_0x4b5025(0x21b)]()[_0x4b5025(0x1f9)],_0x17ee0d=_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x1b6)][_0x4b5025(0x1c4)][_0x4b5025(0x273)](_0x527f78),_0x27d883={'document':_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x1b6)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x512af2=_0x3d28bc(_0x28d0be,_0x17ee0d,_0x27d883)[_0x4b5025(0x212)];_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x203)](_0x34d204=>{const _0x17df58=_0x4b5025;if(_0x34d204[_0x17df58(0x1bc)](_0x17260a[_0x17df58(0x26f)][_0x17df58(0x1b6)][_0x17df58(0x26d)][_0x17df58(0x220)]),_0xf9b9ba)_0x17260a[_0x17df58(0x265)][_0x17df58(0x1d0)](_0x17df58(0x25a))[_0x17df58(0x1f4)](_0x512af2);else{for(const _0x5578a8 of _0x512af2)_0x5578a8[_0x17df58(0x1c9)]=_0x17260a[_0x17df58(0x26f)][_0x17df58(0x1b6)][_0x17df58(0x1f9)],_0x101709(_0x17260a,_0x5578a8),_0x34d204[_0x17df58(0x21c)][_0x17df58(0x241)](_0x5578a8),_0x17260a[_0x17df58(0x26f)][_0x17df58(0x1bd)](_0x5578a8);}}),this[_0x4b5025(0x1ec)][_0x4b5025(0x265)][_0x4b5025(0x1d0)](_0x4b5025(0x219))[_0x4b5025(0x1d2)]();}[_0x5cf972(0x277)](_0x46153b,_0x17638f){const _0x1d1be1=_0x5cf972;return _0x46153b[_0x1d1be1(0x267)](_0x19ee01=>{const _0x5ec423=_0x1d1be1;if(_0x5ec423(0x1a4)==_0x19ee01[_0x5ec423(0x1ef)]){const _0x5e2a79=_0x19ee01[_0x5ec423(0x1dd)][_0x5ec423(0x272)];return!_0x17638f[_0x5ec423(0x1f2)](_0x5e2a79);}if(_0x19ee01[_0x5ec423(0x1ef)][_0x5ec423(0x25c)](_0x5ec423(0x1f5))>-0x1){const _0x5239df=_0x19ee01[_0x5ec423(0x236)][_0x5ec423(0x23b)][_0x5ec423(0x272)];return!_0x17638f[_0x5ec423(0x1f2)](_0x5239df);}return!0x0;});}[_0x5cf972(0x23e)](_0xc1cca9,_0x55b1b4,_0x1a7ab4){const _0x1f75dc=_0x5cf972,_0x24ee8d=_0x55b1b4[_0x1f75dc(0x1b0)]();for(const _0x154157 in _0x55b1b4){const _0x9ef205=_0x55b1b4[_0x154157];_0x9ef205 instanceof _0x5bd1db?_0x55b1b4[_0x154157]=new _0x5bd1db(_0x422c19(_0x9ef205[_0x1f75dc(0x23b)]),_0x422c19(_0x9ef205[_0x1f75dc(0x253)])):_0x9ef205 instanceof _0x53b3a5&&(_0x55b1b4[_0x154157]=_0x422c19(_0x9ef205));}if([_0x1f75dc(0x275),_0x1f75dc(0x22c),_0x1f75dc(0x22d),_0x1f75dc(0x25f),_0x1f75dc(0x1d3),_0x1f75dc(0x1c7)][_0x1f75dc(0x215)](_0x24ee8d[_0x1f75dc(0x1ef)])){if(_0x24ee8d[_0x1f75dc(0x238)]=!0x1,_0x24ee8d[_0x1f75dc(0x1c9)]=null,_0x1f75dc(0x22d)==_0x24ee8d[_0x1f75dc(0x1ef)]){const _0xcafcea=_0x24ee8d[_0x1f75dc(0x1aa)],_0x31544e=_0x24ee8d[_0x1f75dc(0x211)];new _0x233278(_0xcafcea,_0x31544e)[_0x1f75dc(0x1a7)]();}else _0x24ee8d[_0x1f75dc(0x1a7)]();}function _0x422c19(_0x1aa39a){const _0x1f5ca4=_0x1f75dc;if(_0x1f5ca4(0x23f)==_0x1aa39a[_0x1f5ca4(0x1ce)][_0x1f5ca4(0x1ff)])return _0x1aa39a;const _0x2051e5=[];let _0x3c5535=_0x1aa39a[_0x1f5ca4(0x1ce)];for(let _0xdf61e7=0x0;_0xdf61e7<_0x1aa39a[_0x1f5ca4(0x1b7)][_0x1f5ca4(0x1f1)];_0xdf61e7++){const _0x5d8f6d=_0xc1cca9[_0x1f5ca4(0x1d0)](_0x3c5535)||0x0;_0x2051e5[_0xdf61e7]=_0x1aa39a[_0x1f5ca4(0x1b7)][_0xdf61e7]+_0x5d8f6d,_0x3c5535=_0x3c5535[_0x1f5ca4(0x1c0)](_0x1aa39a[_0x1f5ca4(0x1b7)][_0xdf61e7]);}return new _0x53b3a5(_0x1a7ab4,_0x2051e5,_0x1aa39a[_0x1f5ca4(0x1cb)]);}}[_0x5cf972(0x1d1)](){const _0x7d11b0=_0x5cf972;if(!this[_0x7d11b0(0x24b)])return;this[_0x7d11b0(0x26b)][_0x7d11b0(0x1f1)]>0x0&&this[_0x7d11b0(0x197)](),this[_0x7d11b0(0x1e7)]=0x0,this[_0x7d11b0(0x24c)]=!0x1;const {action:_0x4dfdcc,content:_0x4475f7,version:_0x174af0,mainView:_0x2f62d0,aiBalloon:_0x37315a}=this[_0x7d11b0(0x24b)];_0x2f62d0[_0x7d11b0(0x1e5)]=!0x1,_0x2f62d0[_0x7d11b0(0x1ab)](),this[_0x7d11b0(0x27a)](_0x2f62d0,_0x37315a);const _0x4c2243=_0x2f62d0;_0x4c2243[_0x7d11b0(0x19c)]&&_0x4c2243[_0x7d11b0(0x19c)][_0x7d11b0(0x235)]&&_0x4c2243[_0x7d11b0(0x19c)][_0x7d11b0(0x235)][_0x7d11b0(0x217)]({'isOn':!0x1,'icon':_0x4bb54a}),this[_0x7d11b0(0x22b)](_0x2f62d0),_0x2f62d0[_0x7d11b0(0x1e9)](),this[_0x7d11b0(0x25b)](),this[_0x7d11b0(0x249)](_0x4475f7,_0x174af0,_0x2f62d0,_0x37315a,_0x4dfdcc)[_0x7d11b0(0x1e2)](_0x49fc92=>{const _0x595925=_0x7d11b0;this[_0x595925(0x1e0)](_0x49fc92)||console[_0x595925(0x258)](_0x595925(0x23c),_0x49fc92);});}[_0x5cf972(0x22b)](_0x47ef15){const _0x244d53=_0x5cf972,_0x2b7dbc=_0x47ef15[_0x244d53(0x1a8)][_0x244d53(0x240)];for(;_0x2b7dbc[_0x244d53(0x1f1)]>0x0;)_0x2b7dbc[_0x244d53(0x22d)](_0x2b7dbc[_0x244d53(0x1ee)]);_0x47ef15[_0x244d53(0x1a8)][_0x244d53(0x1d4)]=!0x1;}[_0x5cf972(0x1e0)](_0x511962){const _0x2c76a7=_0x5cf972;return!!_0x511962[_0x2c76a7(0x263)]&&_0x511962[_0x2c76a7(0x263)][_0x2c76a7(0x216)](_0x2c76a7(0x225));}[_0x5cf972(0x196)](){const _0x1e6287=_0x5cf972;this[_0x1e6287(0x26b)]=[],this[_0x1e6287(0x24b)]=void 0x0,this[_0x1e6287(0x1e7)]=0x0,this[_0x1e6287(0x25b)]();}[_0x5cf972(0x197)](){const _0x51d9ed=_0x5cf972;this[_0x51d9ed(0x1bb)]&&this[_0x51d9ed(0x1bb)][_0x51d9ed(0x24a)](),this[_0x51d9ed(0x251)][_0x51d9ed(0x274)](),this[_0x51d9ed(0x1da)]=!0x1;}[_0x5cf972(0x1c6)](){const _0xe3f9d9=_0x5cf972,_0x3e5367=new _0x5213df(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]),_0x4727e1=new _0x5213df(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]),_0x5cc6b2=new _0x4a3ab3(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]),_0x4ba123=new _0x5213df(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]);_0x3e5367[_0xe3f9d9(0x217)]({'icon':_0x437d53,'label':_0x52bc2a(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)],_0xe3f9d9(0x1fe)),'tooltip':!0x0,'class':_0xe3f9d9(0x1a3)}),_0x4727e1[_0xe3f9d9(0x217)]({'icon':_0xac2fb4,'tooltip':_0x52bc2a(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)],_0xe3f9d9(0x208)),'class':_0xe3f9d9(0x248)}),_0x5cc6b2[_0xe3f9d9(0x1d5)]({'tag':_0xe3f9d9(0x1df),'attributes':{'class':[_0xe3f9d9(0x1ca)]},'children':[_0xe3f9d9(0x20e)]}),_0x4ba123[_0xe3f9d9(0x217)]({'icon':_0x634240,'tooltip':_0x52bc2a(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)],_0xe3f9d9(0x1b3)),'class':_0xe3f9d9(0x1e4)}),_0x3e5367[_0xe3f9d9(0x25d)](_0xe3f9d9(0x19a))['to'](this,_0xe3f9d9(0x1da),_0x2fa078=>!_0x2fa078),_0x3e5367['on'](_0xe3f9d9(0x204),()=>{const _0x617c5e=_0xe3f9d9;this[_0x617c5e(0x1d1)]();}),_0x4727e1[_0xe3f9d9(0x25d)](_0xe3f9d9(0x19a))['to'](this,_0xe3f9d9(0x1da),_0x4d1f69=>!_0x4d1f69),_0x4727e1['on'](_0xe3f9d9(0x204),()=>{const _0x29af86=_0xe3f9d9;this[_0x29af86(0x200)]();}),_0x4ba123[_0xe3f9d9(0x25d)](_0xe3f9d9(0x19a))['to'](this,_0xe3f9d9(0x1da),_0x57cce5=>!_0x57cce5),_0x4ba123['on'](_0xe3f9d9(0x204),()=>{const _0x395904=_0xe3f9d9;this[_0x395904(0x21f)]();}),this[_0xe3f9d9(0x1af)]=_0x4727e1,this[_0xe3f9d9(0x206)]=_0x5cc6b2,this[_0xe3f9d9(0x264)]=_0x4ba123,this[_0xe3f9d9(0x228)][_0xe3f9d9(0x1de)](_0x3e5367);}[_0x5cf972(0x200)](){const _0x10903c=_0x5cf972,_0x16d17c=this[_0x10903c(0x26b)][_0x10903c(0x1f1)];this[_0x10903c(0x1e7)]<_0x16d17c-0x1&&this[_0x10903c(0x209)](this[_0x10903c(0x1e7)]+0x1);}[_0x5cf972(0x21f)](){const _0x35b7ca=_0x5cf972;this[_0x35b7ca(0x1e7)]>0x0&&this[_0x35b7ca(0x209)](this[_0x35b7ca(0x1e7)]-0x1);}async[_0x5cf972(0x209)](_0x5bb3b3){const _0x50d10c=_0x5cf972;if(!this[_0x50d10c(0x24b)])return;this[_0x50d10c(0x1e7)]=_0x5bb3b3;const {mainView:_0x536930}=this[_0x50d10c(0x24b)],_0x19939a=this[_0x50d10c(0x26b)][this[_0x50d10c(0x26b)][_0x50d10c(0x1f1)]-0x1-this[_0x50d10c(0x1e7)]];if(!_0x19939a)return;if(_0x19939a[_0x50d10c(0x25e)])return this[_0x50d10c(0x202)](_0x19939a,_0x536930),void this[_0x50d10c(0x25b)]();if(!_0x19939a[_0x50d10c(0x256)][_0x50d10c(0x1f1)])return;_0x536930[_0x50d10c(0x1ab)](),this[_0x50d10c(0x24b)]&&this[_0x50d10c(0x27a)](_0x536930,this[_0x50d10c(0x24b)][_0x50d10c(0x1b2)]);const _0x2f2eca=_0x19939a[_0x50d10c(0x256)][_0x19939a[_0x50d10c(0x256)][_0x50d10c(0x1f1)]-0x1];if(_0x2f2eca){const _0x548327=this[_0x50d10c(0x1ec)];this[_0x50d10c(0x22b)](_0x536930);try{const _0x474230=_0x4b1e17({'editor':_0x548327,'changeGroups':_0x2f2eca[_0x50d10c(0x1f0)],'documentContextContent':_0x2f2eca[_0x50d10c(0x1c3)],'showDiff':this[_0x50d10c(0x24c)],'trimUnchanged':!0x1});this[_0x50d10c(0x22b)](_0x536930),await new Promise(_0x289784=>setTimeout(_0x289784,0x32)),await _0x536930[_0x50d10c(0x24e)]({'parts':_0x474230,'renderingStrategy':_0x50d10c(0x26c),'abortSignal':new AbortController()[_0x50d10c(0x279)]});}catch(_0x10106b){this[_0x50d10c(0x1e0)](_0x10106b)||console[_0x50d10c(0x258)](_0x50d10c(0x247),_0x10106b);}}this[_0x50d10c(0x25b)]();}[_0x5cf972(0x25b)](){const _0x2cc00e=_0x5cf972;if(!this[_0x2cc00e(0x1af)]||!this[_0x2cc00e(0x206)]||!this[_0x2cc00e(0x264)])return;const _0x36d6d2=this[_0x2cc00e(0x26b)][_0x2cc00e(0x1f1)],_0x5012ec=_0x36d6d2>0x1,_0x5cf2f3=this[_0x2cc00e(0x24b)]?.[_0x2cc00e(0x1cd)];if(_0x5012ec){this[_0x2cc00e(0x268)]||this[_0x2cc00e(0x1d6)]||this[_0x2cc00e(0x242)]||(this[_0x2cc00e(0x228)][_0x2cc00e(0x1de)](this[_0x2cc00e(0x1af)]),_0x5cf2f3?.[_0x2cc00e(0x231)](this[_0x2cc00e(0x1af)]),this[_0x2cc00e(0x268)]=!0x0,this[_0x2cc00e(0x228)][_0x2cc00e(0x1de)](this[_0x2cc00e(0x206)]),_0x5cf2f3?.[_0x2cc00e(0x231)](this[_0x2cc00e(0x206)]),this[_0x2cc00e(0x1d6)]=!0x0,this[_0x2cc00e(0x228)][_0x2cc00e(0x1de)](this[_0x2cc00e(0x264)]),_0x5cf2f3?.[_0x2cc00e(0x231)](this[_0x2cc00e(0x264)]),this[_0x2cc00e(0x242)]=!0x0);const _0x40c7c3=_0x36d6d2-this[_0x2cc00e(0x1e7)];this[_0x2cc00e(0x206)][_0x2cc00e(0x1f8)]&&(this[_0x2cc00e(0x206)][_0x2cc00e(0x1f8)][_0x2cc00e(0x26e)]=_0x40c7c3+'/'+_0x36d6d2),this[_0x2cc00e(0x1af)][_0x2cc00e(0x19a)]=this[_0x2cc00e(0x1e7)]<_0x36d6d2-0x1,this[_0x2cc00e(0x264)][_0x2cc00e(0x19a)]=this[_0x2cc00e(0x1e7)]>0x0;}else(this[_0x2cc00e(0x268)]||this[_0x2cc00e(0x1d6)]||this[_0x2cc00e(0x242)])&&(this[_0x2cc00e(0x228)][_0x2cc00e(0x22d)](this[_0x2cc00e(0x1af)]),_0x5cf2f3?.[_0x2cc00e(0x1f3)](this[_0x2cc00e(0x1af)]),this[_0x2cc00e(0x268)]=!0x1,this[_0x2cc00e(0x228)][_0x2cc00e(0x22d)](this[_0x2cc00e(0x206)]),_0x5cf2f3?.[_0x2cc00e(0x1f3)](this[_0x2cc00e(0x206)]),this[_0x2cc00e(0x1d6)]=!0x1,this[_0x2cc00e(0x228)][_0x2cc00e(0x22d)](this[_0x2cc00e(0x264)]),_0x5cf2f3?.[_0x2cc00e(0x1f3)](this[_0x2cc00e(0x264)]),this[_0x2cc00e(0x242)]=!0x1);}[_0x5cf972(0x1b1)](_0x150ea0,_0x2f598f){const _0x3ebb01=_0x5cf972;_0x150ea0[_0x3ebb01(0x266)](),_0x2f598f[_0x3ebb01(0x230)][_0x3ebb01(0x266)](),this[_0x3ebb01(0x1da)]=!0x0;}async[_0x5cf972(0x202)](_0x464e4a,_0x9e3217){const _0x4cb9a0=_0x5cf972,_0x58d71c=_0x52bc2a(this[_0x4cb9a0(0x1ec)][_0x4cb9a0(0x24f)],_0x4cb9a0(0x232));_0x9e3217[_0x4cb9a0(0x221)](_0x58d71c),_0x464e4a[_0x4cb9a0(0x25e)]=!0x0,await this[_0x4cb9a0(0x251)][_0x4cb9a0(0x21d)],_0x9e3217[_0x4cb9a0(0x1e1)](),this[_0x4cb9a0(0x24b)]?.[_0x4cb9a0(0x1b2)][_0x4cb9a0(0x230)][_0x4cb9a0(0x1c5)]&&(this[_0x4cb9a0(0x24b)][_0x4cb9a0(0x1b2)][_0x4cb9a0(0x230)][_0x4cb9a0(0x1c5)][_0x4cb9a0(0x214)]=!0x0);}[_0x5cf972(0x27a)](_0x3f18df,_0x294a96){const _0xeceb66=_0x5cf972;_0x3f18df[_0xeceb66(0x20d)](),_0x294a96[_0xeceb66(0x230)][_0xeceb66(0x1c5)]&&(_0x294a96[_0xeceb66(0x230)][_0xeceb66(0x1c5)][_0xeceb66(0x214)]=!0x1);}async[_0x5cf972(0x270)](_0x21b296,_0x5558a2){const _0x4e5556=_0x5cf972;await this[_0x4e5556(0x251)][_0x4e5556(0x21d)],this[_0x4e5556(0x1da)]=!0x1,_0x21b296[_0x4e5556(0x1fb)](),_0x5558a2[_0x4e5556(0x230)][_0x4e5556(0x1fb)]();}[_0x5cf972(0x233)](){const _0x5ac8df=_0x5cf972;this[_0x5ac8df(0x228)][_0x5ac8df(0x224)](_0xc08406=>{const _0x435c47=_0x5ac8df;_0x435c47(0x19a)in _0xc08406&&(_0xc08406[_0x435c47(0x19a)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3470(_0xbe0681,_0x55f52f){const _0xbad92=_0xbad9();return _0x3470=function(_0x347004,_0x11e991){_0x347004=_0x347004-0x11d;let _0x2a3ae1=_0xbad92[_0x347004];return _0x2a3ae1;},_0x3470(_0xbe0681,_0x55f52f);}function _0xbad9(){const _0x543160=['Current\x20document','version','204bVKqil','push','65ouzQPs','replyCreated','1957634CtGHyX','80802dHDFJi','editor','userMessage','fire','TEXT','html','model','361820Iucldw','executeCustomAction','hasError','current-document','155787TsakMv','delegate','141738dnWEqi','createReply','content','connector','12966fhWUln','executeAction','getDocumentContext','264VuvdMM','128928KdaYyr','actionName','replies','sendRequest','args'];_0xbad9=function(){return _0x543160;};return _0xbad9();}const _0x230046=_0x3470;(function(_0x13c048,_0x5a194a){const _0x148dce=_0x3470,_0x56598a=_0x13c048();while(!![]){try{const _0x1140d6=-parseInt(_0x148dce(0x11d))/0x1+-parseInt(_0x148dce(0x127))/0x2+parseInt(_0x148dce(0x123))/0x3*(parseInt(_0x148dce(0x12e))/0x4)+parseInt(_0x148dce(0x130))/0x5*(parseInt(_0x148dce(0x11f))/0x6)+parseInt(_0x148dce(0x132))/0x7+parseInt(_0x148dce(0x126))/0x8*(-parseInt(_0x148dce(0x133))/0x9)+-parseInt(_0x148dce(0x13a))/0xa;if(_0x1140d6===_0x5a194a)break;else _0x56598a['push'](_0x56598a['shift']());}catch(_0x90e441){_0x56598a['push'](_0x56598a['shift']());}}}(_0xbad9,0x3e20c));import{AIInteraction as _0x4b5754,AI_MODEL_EVENT_NAMES as _0x55fd35}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x5d94ce}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x342a6a}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x4b5754{[_0x230046(0x121)];[_0x230046(0x12d)];[_0x230046(0x128)];[_0x230046(0x12b)];[_0x230046(0x135)];[_0x230046(0x139)];[_0x230046(0x13c)]=!0x1;constructor(_0x4c259a){const _0x3e9b39=_0x230046;super(_0x4c259a),this[_0x3e9b39(0x121)]=_0x4c259a[_0x3e9b39(0x121)],this[_0x3e9b39(0x12d)]=_0x4c259a[_0x3e9b39(0x12d)],this[_0x3e9b39(0x128)]=_0x4c259a[_0x3e9b39(0x128)],this[_0x3e9b39(0x12b)]=_0x4c259a[_0x3e9b39(0x12b)],this[_0x3e9b39(0x135)]=_0x4c259a[_0x3e9b39(0x135)],this[_0x3e9b39(0x139)]=_0x4c259a[_0x3e9b39(0x139)];}async[_0x230046(0x12a)](){const _0x3cb1a8=_0x230046;return this[_0x3cb1a8(0x128)]?this[_0x3cb1a8(0x122)][_0x3cb1a8(0x124)]({'content':this[_0x3cb1a8(0x121)],'actionName':this[_0x3cb1a8(0x128)],'args':this[_0x3cb1a8(0x12b)]}):this[_0x3cb1a8(0x122)][_0x3cb1a8(0x13b)]({'content':this[_0x3cb1a8(0x121)],'message':this[_0x3cb1a8(0x135)],'model':this[_0x3cb1a8(0x139)],'outputFormat':_0x3cb1a8(0x138)});}[_0x230046(0x125)](){const _0x1b2271=_0x230046;return{'type':_0x5d94ce[_0x1b2271(0x137)],'content':this[_0x1b2271(0x121)],'version':this[_0x1b2271(0x12d)],'label':_0x1b2271(0x12c),'uiId':_0x1b2271(0x13d)};}[_0x230046(0x120)](_0x4e5424){const _0x49c635=_0x230046,_0x775ef2=new _0x342a6a({'editor':this[_0x49c635(0x134)],'documentContextContent':this[_0x49c635(0x121)],..._0x4e5424});return this[_0x49c635(0x129)][_0x49c635(0x12f)](_0x775ef2),_0x775ef2[_0x49c635(0x11e)](..._0x55fd35)['to'](this),this[_0x49c635(0x136)](_0x49c635(0x131),_0x775ef2),_0x775ef2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4300(_0xd636ae,_0x5c05ef){const _0x3f3f8e=_0x3f3f();return _0x4300=function(_0x430028,_0x3917fc){_0x430028=_0x430028-0x129;let _0x493e82=_0x3f3f8e[_0x430028];return _0x493e82;},_0x4300(_0xd636ae,_0x5c05ef);}const _0x38aa4b=_0x4300;(function(_0x1ed2be,_0x419a6f){const _0xecbf0d=_0x4300,_0x18675b=_0x1ed2be();while(!![]){try{const _0x48062e=parseInt(_0xecbf0d(0x13e))/0x1+-parseInt(_0xecbf0d(0x139))/0x2+-parseInt(_0xecbf0d(0x142))/0x3*(parseInt(_0xecbf0d(0x131))/0x4)+parseInt(_0xecbf0d(0x13d))/0x5*(parseInt(_0xecbf0d(0x132))/0x6)+-parseInt(_0xecbf0d(0x13c))/0x7+-parseInt(_0xecbf0d(0x13a))/0x8+-parseInt(_0xecbf0d(0x12b))/0x9*(-parseInt(_0xecbf0d(0x144))/0xa);if(_0x48062e===_0x419a6f)break;else _0x18675b['push'](_0x18675b['shift']());}catch(_0x383a66){_0x18675b['push'](_0x18675b['shift']());}}}(_0x3f3f,0x2d0ab));import{AIReply as _0x5963c7}from'../../aicore/model/aireply.js';function _0x3f3f(){const _0x4f23bd=['updateChangeGroups','_getDifferentChangeGroups','modified','1556415mcsuab','childNodes','new','isDone','length','map','168NfBpcx','147516GwTIDq','cloneNode','documentContextContent','removed','node','data-id','pending','516742NcMiyn','439168teegiG','children','1069348ojDKip','10iYCCHn','299349ILbWoH','pop','value','parsedMergedContent','15486dMVKML','parsedContent','30yjkcoj','added','changeGroups'];_0x3f3f=function(){return _0x4f23bd;};return _0x3f3f();}import{getAttribute as _0x3e805e}from'../../aicore/utils/htmlparser.js';import{uid as _0x2b5d82}from'ckeditor5/src/utils.js';import{diffArrays as _0x10781f}from'diff';export class AIActionsReply extends _0x5963c7{[_0x38aa4b(0x147)](){const _0x22fe63=_0x38aa4b;if(this[_0x22fe63(0x141)]=this[_0x22fe63(0x143)][_0x22fe63(0x133)](!0x0),0x0==this[_0x22fe63(0x141)][_0x22fe63(0x12c)][_0x22fe63(0x12f)])return void(this[_0x22fe63(0x146)]=[]);const _0x25fb38=this[_0x22fe63(0x134)][_0x22fe63(0x13b)][_0x22fe63(0x130)](_0x35b542=>({'node':_0x35b542,'id':_0x3e805e(_0x35b542,_0x22fe63(0x137))})),_0x5e8859=this[_0x22fe63(0x141)][_0x22fe63(0x13b)][_0x22fe63(0x130)](_0x5d7a39=>({'node':_0x5d7a39,'id':_0x3e805e(_0x5d7a39,_0x22fe63(0x137))||_0x2b5d82()})),_0x58db29=_0x10781f(_0x25fb38,_0x5e8859,{'comparator':(_0x248afd,_0xbb4793)=>_0x248afd['id']==_0xbb4793['id'],'oneChangePerToken':!0x0});if(!this[_0x22fe63(0x12e)]){for(;_0x58db29[_0x22fe63(0x12f)]&&_0x58db29[_0x58db29[_0x22fe63(0x12f)]-0x1][_0x22fe63(0x135)];)_0x58db29[_0x22fe63(0x13f)]();}const _0x3c416e=_0x58db29[_0x22fe63(0x130)](_0x4e6b18=>{const _0x19490d=_0x22fe63,_0x4f4173=_0x4e6b18[_0x19490d(0x145)]?_0x19490d(0x12d):_0x4e6b18[_0x19490d(0x135)]?_0x19490d(0x135):_0x19490d(0x12a);return{'node':_0x4e6b18[_0x19490d(0x140)][0x0][_0x19490d(0x136)],'type':_0x4f4173,'id':_0x4e6b18[_0x19490d(0x140)][0x0]['id']};});this[_0x22fe63(0x146)]=[{'changes':_0x3c416e,'state':_0x22fe63(0x138),'index':0x0}];}[_0x38aa4b(0x129)](_0x473b28,_0x8cddc9){return _0x8cddc9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22bf84=_0x154a;function _0xf4d0(){var _0x21bd6e=['1CPsVCH','622728kHoqOl','AIRequestError','afterInit','isOfficialPlugin','AIAdapter','50305qLFLnQ','aiadapter-text-adapter-not-set','name','20272JIybTW','646706HrSSwM','2773935uKYhtC','10937620FbGNIf','1024pJYwsV','pluginName','textAdapter','isPremiumPlugin','36ZONfoM','1457576YOCRvO'];_0xf4d0=function(){return _0x21bd6e;};return _0xf4d0();}(function(_0x267c47,_0x5d294d){var _0x2e8224=_0x154a,_0x505e5f=_0x267c47();while(!![]){try{var _0x5e40a6=-parseInt(_0x2e8224(0xd6))/0x1*(parseInt(_0x2e8224(0xcd))/0x2)+-parseInt(_0x2e8224(0xd7))/0x3+parseInt(_0x2e8224(0xd5))/0x4+parseInt(_0x2e8224(0xc9))/0x5*(-parseInt(_0x2e8224(0xd4))/0x6)+-parseInt(_0x2e8224(0xcc))/0x7*(parseInt(_0x2e8224(0xd0))/0x8)+-parseInt(_0x2e8224(0xce))/0x9+parseInt(_0x2e8224(0xcf))/0xa;if(_0x5e40a6===_0x5d294d)break;else _0x505e5f['push'](_0x505e5f['shift']());}catch(_0x2dccaa){_0x505e5f['push'](_0x505e5f['shift']());}}}(_0xf4d0,0x2de36));import{Plugin as _0x1e5ba3}from'ckeditor5/src/core.js';function _0x154a(_0x57c361,_0x366231){var _0xf4d07f=_0xf4d0();return _0x154a=function(_0x154a44,_0x5b3ac2){_0x154a44=_0x154a44-0xc9;var _0x27b082=_0xf4d07f[_0x154a44];return _0x27b082;},_0x154a(_0x57c361,_0x366231);}import{CKEditorError as _0x46a2c0}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x1e5ba3{static get[_0x22bf84(0xd1)](){var _0x440b43=_0x22bf84;return _0x440b43(0xdb);}static get[_0x22bf84(0xda)](){return!0x0;}static get[_0x22bf84(0xd3)](){return!0x0;}[_0x22bf84(0xd9)](){var _0x3969d6=_0x22bf84;if(!this[_0x3969d6(0xd2)])throw new _0x46a2c0(_0x3969d6(0xca),null);}}export class AIRequestError extends Error{constructor(_0x4aecf9){var _0x43245c=_0x22bf84;super(_0x4aecf9),this[_0x43245c(0xcb)]=_0x43245c(0xd8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xdce89b=_0x42e0;(function(_0x3bcb39,_0x5a148b){const _0x324200=_0x42e0,_0x430982=_0x3bcb39();while(!![]){try{const _0x435bd5=parseInt(_0x324200(0xac))/0x1+parseInt(_0x324200(0xa3))/0x2+parseInt(_0x324200(0xab))/0x3+parseInt(_0x324200(0xb4))/0x4+-parseInt(_0x324200(0xb8))/0x5*(parseInt(_0x324200(0xb7))/0x6)+-parseInt(_0x324200(0xbe))/0x7*(parseInt(_0x324200(0xad))/0x8)+-parseInt(_0x324200(0xb6))/0x9*(-parseInt(_0x324200(0xb0))/0xa);if(_0x435bd5===_0x5a148b)break;else _0x430982['push'](_0x430982['shift']());}catch(_0x5a5054){_0x430982['push'](_0x430982['shift']());}}}(_0x5a2c,0xe3ea2));function _0x5a2c(){const _0x2df20d=['18114mIEBds','10RKRINn','catch','aitextadapter-send-request-failed','makeRequest','name','error','123676bRjyVn','assign','AI_ERROR_GET_HEADERS','requires','object','_prepareRequestParameters','editor','sendRequest','abort','resolve','1051266jHjNjp','_prepareRequestHeaders','abortController','application/json','locale','aborted','textAdapter','plugins','857907CWyMDS','1051082xBbuCs','760gVwGBq','reject','AbortError','70vVsymA','signal','get','AI_ERROR_GET_PARAMETERS','2930744EfsTmk','init','29142FkEAWC'];_0x5a2c=function(){return _0x2df20d;};return _0x5a2c();}function _0x42e0(_0x593f97,_0xf89c17){const _0x5a2cb9=_0x5a2c();return _0x42e0=function(_0x42e0c6,_0x468828){_0x42e0c6=_0x42e0c6-0xa1;let _0x27734b=_0x5a2cb9[_0x42e0c6];return _0x27734b;},_0x42e0(_0x593f97,_0xf89c17);}import{Plugin as _0x57c6bc}from'ckeditor5/src/core.js';import{CKEditorError as _0x4c9378}from'ckeditor5/src/utils.js';import{AIAdapter as _0x59397a,AIRequestError as _0x322aac}from'./aiadapter.js';import{getTranslation as _0x2b3a3b}from'../utils/common-translations.js';export class AITextAdapter extends _0x57c6bc{[_0xdce89b(0xa5)];static get[_0xdce89b(0xc1)](){return[_0x59397a];}constructor(_0x2fadf0){const _0x21e83a=_0xdce89b;super(_0x2fadf0),this[_0x21e83a(0xa5)]=new AbortController();}[_0xdce89b(0xb5)](){const _0x1b2f08=_0xdce89b;this[_0x1b2f08(0xc4)][_0x1b2f08(0xaa)][_0x1b2f08(0xb2)](_0x59397a)[_0x1b2f08(0xa9)]=this;}[_0xdce89b(0xa1)](){const _0x487df8=_0xdce89b;this[_0x487df8(0xa5)][_0x487df8(0xb1)][_0x487df8(0xa8)]||(this[_0x487df8(0xa5)][_0x487df8(0xa1)](),this[_0x487df8(0xa5)]=new AbortController());}async[_0xdce89b(0xbb)](_0x5b8338){const _0x22dbc8=_0xdce89b;return this[_0x22dbc8(0xc5)](_0x5b8338)[_0x22dbc8(0xb9)](_0x3a49ea=>{const _0x673543=_0x22dbc8;if(_0x3a49ea instanceof _0x322aac)return Promise[_0x673543(0xae)](_0x3a49ea);if(_0x673543(0xaf)==_0x3a49ea[_0x673543(0xbc)])return Promise[_0x673543(0xa2)]();throw console[_0x673543(0xbd)](_0x3a49ea),new _0x4c9378(_0x673543(0xba),null);});}async[_0xdce89b(0xa4)](_0xb6221,_0x532654){const _0x3067b8=_0xdce89b,_0x2093a0=this[_0x3067b8(0xc4)][_0x3067b8(0xa7)],_0x15d93d={'Content-Type':_0x3067b8(0xa6)};if(_0x3067b8(0xc2)==typeof _0xb6221)Object[_0x3067b8(0xbf)](_0x15d93d,_0xb6221);else{if(_0xb6221)try{const _0x280671=await _0xb6221(_0x532654);Object[_0x3067b8(0xbf)](_0x15d93d,_0x280671);}catch{return Promise[_0x3067b8(0xae)](new _0x322aac(_0x2b3a3b(_0x2093a0,_0x3067b8(0xc0))));}}return _0x15d93d;}async[_0xdce89b(0xc3)](_0x5a6c13,_0x5099fb){const _0x13a6ec=_0xdce89b,_0x5bc6da=this[_0x13a6ec(0xc4)][_0x13a6ec(0xa7)];if(_0x13a6ec(0xc2)==typeof _0x5a6c13)return _0x5a6c13;try{return await _0x5a6c13(_0x5099fb);}catch{return Promise[_0x13a6ec(0xae)](new _0x322aac(_0x2b3a3b(_0x5bc6da,_0x13a6ec(0xb3))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5a48(_0x14a817,_0x3122c2){const _0x571689=_0x5716();return _0x5a48=function(_0x5a4804,_0x2c58b7){_0x5a4804=_0x5a4804-0x14a;let _0x48e386=_0x571689[_0x5a4804];return _0x48e386;},_0x5a48(_0x14a817,_0x3122c2);}const _0x19808b=_0x5a48;(function(_0x5e1304,_0x4ddcbe){const _0x4c613c=_0x5a48,_0x2d8a16=_0x5e1304();while(!![]){try{const _0x3936b5=-parseInt(_0x4c613c(0x150))/0x1*(parseInt(_0x4c613c(0x199))/0x2)+-parseInt(_0x4c613c(0x157))/0x3*(-parseInt(_0x4c613c(0x166))/0x4)+parseInt(_0x4c613c(0x18d))/0x5*(-parseInt(_0x4c613c(0x16d))/0x6)+-parseInt(_0x4c613c(0x153))/0x7*(parseInt(_0x4c613c(0x174))/0x8)+parseInt(_0x4c613c(0x15b))/0x9+-parseInt(_0x4c613c(0x17b))/0xa*(parseInt(_0x4c613c(0x178))/0xb)+parseInt(_0x4c613c(0x194))/0xc*(parseInt(_0x4c613c(0x158))/0xd);if(_0x3936b5===_0x4ddcbe)break;else _0x2d8a16['push'](_0x2d8a16['shift']());}catch(_0x288163){_0x2d8a16['push'](_0x2d8a16['shift']());}}}(_0x5716,0x98dd9));import{AITextAdapter as _0x2b04ce}from'./aitextadapter.js';import{AIRequestError as _0x423748}from'./aiadapter.js';import{BedrockRuntimeClient as _0x7b4f3c,InvokeModelCommand as _0x46079a,InvokeModelWithResponseStreamCommand as _0x21a28a}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x513620}from'../utils/common-translations.js';function _0x5716(){const _0x4ed0ba=['completions','generation','bytes','\x0a[/INST]','ai.assistant.adapter.aws.requestParameters','join','911118XZVwiB','decode','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.','data','filter','getReader','text','2709344BPBVce','signal','<<SYS>>\x0a','_apiUrl','1168486NvGrPy','anthropic.claude','chunk','10umPaVf','get','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.','_requestHeaders','bedrock-2023-05-31','ai.assistant.adapter.aws.bedrockClientConfig','anthropic.claude-v2','test','_getGeneratedText','_processProxyRequest','\x0a<</SYS>>\x0a[INST]\x0a','ai.assistant.adapter.aws.requestHeaders','ai21.j2','pluginName','utf-8','completion','length','abortController','10mRvyYj','editor','_readStaticResponse','resolve','preparePrompt','generations','meta.llama','204XUIFTP','\x0a\x0aAssistant:','_prepareRequestParameters','Human:\x0a','stringify','4OcLGTM','locale','AWSTextAdapter','_readStreamableResponse','getModelFamily','define','ai.assistant.adapter.aws.apiUrl','AI_ERROR_UNSUPPORTED_MODEL','read','map','383406iLOhqm','application/json','cohere.command','7FFMlbb','sendRequest','_processAWSRequest','_prepareRequestHeaders','1018341uLRnGv','1256372sKAyJg','POST','_readAsyncIterableResponse','1432386eQElLW','json','_requestParameters','split','parse','Instruction:\x0a','send','config','body','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_bedrockClientConfig','4JRdJTY'];_0x5716=function(){return _0x4ed0ba;};return _0x5716();}export class AWSTextAdapter extends _0x2b04ce{[_0x19808b(0x177)];[_0x19808b(0x17e)];[_0x19808b(0x165)];[_0x19808b(0x15d)];static get[_0x19808b(0x188)](){const _0x11ec68=_0x19808b;return _0x11ec68(0x19b);}constructor(_0x25d0db){const _0x129e35=_0x19808b;super(_0x25d0db),_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x16b))||_0x25d0db[_0x129e35(0x162)][_0x129e35(0x14b)](_0x129e35(0x16b),{'model':_0x129e35(0x181),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x129e35(0x17f),'stream':!0x0}),this[_0x129e35(0x177)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x14c)),this[_0x129e35(0x165)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x180)),this[_0x129e35(0x17e)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x186)),this[_0x129e35(0x15d)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x16b));}async[_0x19808b(0x154)]({query:_0x2036f1,context:_0x3eb9a6,onData:_0x1816fa,actionId:_0x4418b7}){const _0x420755=_0x19808b,{model:_0x3642db,stream:_0x2b0a52,..._0x57f7aa}=await this[_0x420755(0x196)](this[_0x420755(0x15d)],_0x4418b7),_0xe71335={'prompt':await this[_0x420755(0x191)](_0x2036f1,_0x3eb9a6,_0x3642db,_0x4418b7),..._0x57f7aa};this[_0x420755(0x177)]?await this[_0x420755(0x184)](_0xe71335,_0x3642db,_0x2b0a52,_0x1816fa,_0x4418b7):await this[_0x420755(0x155)](_0xe71335,_0x3642db,_0x2b0a52,_0x1816fa);}async[_0x19808b(0x191)](_0xeef00a,_0x4488f2,_0x4ba6e9,_0x42f477){const _0x159ca3=_0x19808b;let _0x6ef2ed,_0x94e5d3;return _0x4488f2?(_0x6ef2ed=_0x159ca3(0x17d),_0x94e5d3=_0x159ca3(0x160)+_0xeef00a+_0x159ca3(0x164)+_0x4488f2):(_0x6ef2ed=_0x159ca3(0x16f),_0x94e5d3=_0xeef00a),_0x159ca3(0x193)==this[_0x159ca3(0x14a)](_0x4ba6e9)?_0x159ca3(0x176)+_0x6ef2ed+_0x159ca3(0x185)+_0x94e5d3+_0x159ca3(0x16a):_0x159ca3(0x197)+_0x6ef2ed+'\x0a'+_0x94e5d3+_0x159ca3(0x195);}[_0x19808b(0x14a)](_0x5462e1){const _0x35cc90=_0x19808b;if(/^anthropic\.claude/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x179);if(/^ai21\.j2/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x187);if(/^cohere\.command/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x152);if(/^meta\.llama/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x193);throw new _0x423748(_0x513620(this[_0x35cc90(0x18e)][_0x35cc90(0x19a)],_0x35cc90(0x14d),_0x5462e1));}async[_0x19808b(0x184)](_0x3cf482,_0x68a245,_0x117182,_0x4be4ed,_0x1f9bc8){const _0x552b7b=_0x19808b,_0x3aee53={'method':_0x552b7b(0x159),'headers':await this[_0x552b7b(0x156)](this[_0x552b7b(0x17e)],_0x1f9bc8),'body':JSON[_0x552b7b(0x198)]({..._0x3cf482,'model':_0x68a245,'stream':_0x117182}),'signal':this[_0x552b7b(0x18c)][_0x552b7b(0x175)]},_0x497d70=await fetch(this[_0x552b7b(0x177)],_0x3aee53);_0x117182?await this[_0x552b7b(0x19c)](_0x497d70,_0x68a245,_0x4be4ed):await this[_0x552b7b(0x18f)](_0x497d70,_0x68a245,_0x4be4ed);}async[_0x19808b(0x155)](_0x350ce0,_0x16a6fd,_0x36139b,_0x552fbe){const _0xc51fd7=_0x19808b,_0x37e262=new _0x7b4f3c(this[_0xc51fd7(0x165)]),_0x155711={'body':JSON[_0xc51fd7(0x198)](_0x350ce0),'contentType':_0xc51fd7(0x151),'accept':_0xc51fd7(0x151),'modelId':_0x16a6fd};let _0x2ac2c5;if(_0x36139b){const _0x2d3764=new _0x21a28a(_0x155711);_0x2ac2c5=await _0x37e262[_0xc51fd7(0x161)](_0x2d3764,{'abortSignal':this[_0xc51fd7(0x18c)][_0xc51fd7(0x175)]}),await this[_0xc51fd7(0x15a)](_0x2ac2c5,_0x16a6fd,_0x552fbe);}else{const _0x324a80=new _0x46079a(_0x155711);_0x2ac2c5=await _0x37e262[_0xc51fd7(0x161)](_0x324a80,{'abortSignal':this[_0xc51fd7(0x18c)][_0xc51fd7(0x175)]}),await this[_0xc51fd7(0x18f)](_0x2ac2c5,_0x16a6fd,_0x552fbe);}}async[_0x19808b(0x15a)](_0x2cf546,_0x8b7e51,_0x2bb76a){const _0x2ee7a1=_0x19808b,_0x33582f=_0x2cf546[_0x2ee7a1(0x163)],_0x485449=new TextDecoder(_0x2ee7a1(0x189));let _0x1d2c53='';for await(const _0x4b3385 of _0x33582f)if(_0x4b3385[_0x2ee7a1(0x17a)]){const _0x5e8770=_0x485449[_0x2ee7a1(0x16e)](_0x4b3385[_0x2ee7a1(0x17a)][_0x2ee7a1(0x169)]),_0x3d3b7a=JSON[_0x2ee7a1(0x15f)](_0x5e8770);_0x1d2c53+=this[_0x2ee7a1(0x183)](_0x3d3b7a,_0x8b7e51),_0x2bb76a(_0x1d2c53);}return Promise[_0x2ee7a1(0x190)]();}async[_0x19808b(0x19c)](_0x4e3216,_0x4194f6,_0x365f7c){const _0x5237b0=_0x19808b,_0xa5916b=_0x4e3216[_0x5237b0(0x163)],_0xa104f4=new TextDecoder(_0x5237b0(0x189)),_0x307f96=_0xa5916b[_0x5237b0(0x172)]();let _0x2517aa='',_0x2a9017='',_0x420da0=!0x1;for(;!_0x420da0;){const {done:_0x2c77e1,value:_0x19017b}=await _0x307f96[_0x5237b0(0x14e)]();if(_0x420da0=_0x2c77e1,_0x420da0)break;const _0x3cd206=(_0x2517aa+_0xa104f4[_0x5237b0(0x16e)](_0x19017b))[_0x5237b0(0x15e)]('\x0a')[_0x5237b0(0x14f)](_0x419c41=>{const _0x5bbf3d=_0x5237b0;try{return _0x2517aa='',JSON[_0x5bbf3d(0x15f)](_0x419c41);}catch{return _0x2517aa=_0x419c41,null;}})[_0x5237b0(0x171)](_0x3ec811=>null!==_0x3ec811);_0x3cd206[_0x5237b0(0x18b)]&&(_0x2a9017+=_0x3cd206[_0x5237b0(0x14f)](_0x356bea=>this[_0x5237b0(0x183)](_0x356bea,_0x4194f6))[_0x5237b0(0x16c)](''),_0x365f7c(_0x2a9017));}return Promise[_0x5237b0(0x190)]();}async[_0x19808b(0x18f)](_0x35fed6,_0x11b798,_0x55a697){const _0x4c2a51=_0x19808b;let _0x4a80ed;return _0x4a80ed=_0x35fed6 instanceof Response?await _0x35fed6[_0x4c2a51(0x15c)]():JSON[_0x4c2a51(0x15f)](new TextDecoder(_0x4c2a51(0x189))[_0x4c2a51(0x16e)](_0x35fed6[_0x4c2a51(0x163)])),(_0x55a697(this[_0x4c2a51(0x183)](_0x4a80ed,_0x11b798)),Promise[_0x4c2a51(0x190)]());}[_0x19808b(0x183)](_0x47d048,_0x189cac){const _0x2de83c=_0x19808b;switch(this[_0x2de83c(0x14a)](_0x189cac)){case _0x2de83c(0x179):return _0x47d048[_0x2de83c(0x18a)];case _0x2de83c(0x187):return _0x47d048[_0x2de83c(0x167)][0x0][_0x2de83c(0x170)][_0x2de83c(0x173)];case _0x2de83c(0x152):return _0x47d048[_0x2de83c(0x192)][0x0][_0x2de83c(0x173)];case _0x2de83c(0x193):return _0x47d048[_0x2de83c(0x168)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5ac1(){const _0x3fb723=['47221cuFYKd','20PHpkcN','ai.assistant.adapter.openAI.requestHeaders','get','Moderation','map','AI_ERROR_CONTEXT_LENGTH','8553094VbTxLs','length','decode','context_length_exceeded','stream','signal','gpt-4o','AI_ERROR_MODERATION','_prepareRequestHeaders','36kobSpV','define','pluginName','_readStaticResponse','system','content','join','stringify','40IfGZqA','editor','read','ai.assistant.adapter.openAI.requestParameters','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.','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.','text','OpenAITextAdapter','367871OefoWL','12vbcvtH','replace','locale','_isBufferIncomplete','50682rExNvi','[DONE]','resolve','split','ai.assistant.adapter.openAI.apiUrl','sendRequest','message','filter','600290vpVtli','POST','_prepareRequestParameters','body','296748zqmTNW','user','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','1549450DImFZb','json','getReader','_requestHeaders','delta','data:\x20','abortController','Instruction:\x0a','_apiUrl','config','includes','reject','_readStreamableResponse','choices','_cleanUpData','parse','prepareMessages','_requestParameters','https://api.openai.com/v1/chat/completions'];_0x5ac1=function(){return _0x3fb723;};return _0x5ac1();}const _0x5694c3=_0x1b9c;(function(_0x533985,_0x4e3e6b){const _0x4de1cd=_0x1b9c,_0x5e6bb7=_0x533985();while(!![]){try{const _0x4c3a1b=-parseInt(_0x4de1cd(0x204))/0x1*(parseInt(_0x4de1cd(0x225))/0x2)+-parseInt(_0x4de1cd(0x1e2))/0x3*(parseInt(_0x4de1cd(0x205))/0x4)+parseInt(_0x4de1cd(0x1f1))/0x5+-parseInt(_0x4de1cd(0x1ee))/0x6+-parseInt(_0x4de1cd(0x224))/0x7*(parseInt(_0x4de1cd(0x21c))/0x8)+parseInt(_0x4de1cd(0x214))/0x9*(-parseInt(_0x4de1cd(0x1ea))/0xa)+parseInt(_0x4de1cd(0x20b))/0xb;if(_0x4c3a1b===_0x4e3e6b)break;else _0x5e6bb7['push'](_0x5e6bb7['shift']());}catch(_0x441092){_0x5e6bb7['push'](_0x5e6bb7['shift']());}}}(_0x5ac1,0x28d8d));import{AITextAdapter as _0x1fab09}from'./aitextadapter.js';import{AIRequestError as _0x3de559}from'./aiadapter.js';import{getTranslation as _0x4ab413}from'../utils/common-translations.js';function _0x1b9c(_0x47277c,_0x1649cf){const _0x5ac1fa=_0x5ac1();return _0x1b9c=function(_0x1b9c88,_0x318db3){_0x1b9c88=_0x1b9c88-0x1e2;let _0x5c7250=_0x5ac1fa[_0x1b9c88];return _0x5c7250;},_0x1b9c(_0x47277c,_0x1649cf);}export class OpenAITextAdapter extends _0x1fab09{[_0x5694c3(0x1f9)];[_0x5694c3(0x1f4)];[_0x5694c3(0x202)];static get[_0x5694c3(0x216)](){const _0x5303b4=_0x5694c3;return _0x5303b4(0x223);}constructor(_0x5da6a){const _0x34cde9=_0x5694c3;super(_0x5da6a),_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x215)](_0x34cde9(0x1e6),_0x34cde9(0x203)),_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x21f))||_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x215)](_0x34cde9(0x21f),{'model':_0x34cde9(0x211),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x34cde9(0x1f9)]=_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x1e6)),this[_0x34cde9(0x1f4)]=_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x206))||{},this[_0x34cde9(0x202)]=_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x21f));}async[_0x5694c3(0x1e7)]({query:_0x540cd7,context:_0x1b716c,onData:_0x2974a6,actionId:_0x32871d}){const _0x5acd6e=_0x5694c3,_0x550e53=this[_0x5acd6e(0x21d)][_0x5acd6e(0x227)],_0x2d6a82=await this[_0x5acd6e(0x201)](_0x540cd7,_0x1b716c,_0x32871d),_0x4d0755=await this[_0x5acd6e(0x213)](this[_0x5acd6e(0x1f4)],_0x32871d),_0x169cb4=await this[_0x5acd6e(0x1ec)](this[_0x5acd6e(0x202)],_0x32871d),_0x5501da={'messages':_0x2d6a82,..._0x169cb4},_0x2d01a7={'method':_0x5acd6e(0x1eb),'headers':_0x4d0755,'body':JSON[_0x5acd6e(0x21b)](_0x5501da),'signal':this[_0x5acd6e(0x1f7)][_0x5acd6e(0x210)]},_0x26e937=await fetch(this[_0x5acd6e(0x1f9)],_0x2d01a7);if(_0x26e937['ok'])return _0x169cb4[_0x5acd6e(0x20f)]?await this[_0x5acd6e(0x1fd)](_0x26e937,_0x2974a6):await this[_0x5acd6e(0x217)](_0x26e937,_0x2974a6),Promise[_0x5acd6e(0x1e4)]();{const _0x5c04d5=await _0x26e937[_0x5acd6e(0x222)]();return _0x5c04d5[_0x5acd6e(0x1fb)](_0x5acd6e(0x20e))?Promise[_0x5acd6e(0x1fc)](new _0x3de559(_0x4ab413(_0x550e53,_0x5acd6e(0x20a)))):_0x5c04d5[_0x5acd6e(0x1fb)](_0x5acd6e(0x208))?Promise[_0x5acd6e(0x1fc)](new _0x3de559(_0x4ab413(_0x550e53,_0x5acd6e(0x212)))):Promise[_0x5acd6e(0x1fc)](new Error(_0x5c04d5));}}async[_0x5694c3(0x201)](_0x5ea9a9,_0x428ea4,_0x4c24ea){const _0x3d6e9d=_0x5694c3;let _0x383261,_0x448a48;return _0x428ea4?(_0x383261=_0x3d6e9d(0x220),_0x448a48=_0x3d6e9d(0x1f8)+_0x5ea9a9+_0x3d6e9d(0x1f0)+_0x428ea4):(_0x383261=_0x3d6e9d(0x221),_0x448a48=_0x5ea9a9),[{'role':_0x3d6e9d(0x218),'content':_0x383261},{'role':_0x3d6e9d(0x1ef),'content':_0x448a48}];}async[_0x5694c3(0x1fd)](_0x36db1f,_0xb9d4f7){const _0x568ee2=_0x5694c3,_0x1ce7d5=_0x36db1f[_0x568ee2(0x1ed)][_0x568ee2(0x1f3)](),_0x36a5b0=new TextDecoder();let _0x37ff21='',_0x547a20='',_0x14f884='',_0x2c33fe=!0x1;for(;!_0x2c33fe;){const {done:_0x447d4a,value:_0x22902a}=await _0x1ce7d5[_0x568ee2(0x21e)](),_0x4ed866=_0x37ff21+_0x36a5b0[_0x568ee2(0x20d)](_0x22902a);let _0x49104d='';_0x2c33fe=_0x447d4a;try{_0x49104d=this[_0x568ee2(0x1ff)](_0x4ed866),_0x37ff21='';}catch{_0x37ff21=_0x4ed866;continue;}_0x547a20+=_0x49104d,!_0x2c33fe&&this[_0x568ee2(0x228)](_0x547a20)||_0x547a20&&(_0x14f884+=_0x547a20,_0x547a20='',_0xb9d4f7(_0x14f884));}return Promise[_0x568ee2(0x1e4)]();}async[_0x5694c3(0x217)](_0x1642c7,_0x36509b){const _0x26b2b1=_0x5694c3;return _0x36509b((await _0x1642c7[_0x26b2b1(0x1f2)]())[_0x26b2b1(0x1fe)][0x0][_0x26b2b1(0x1e8)][_0x26b2b1(0x219)]),Promise[_0x26b2b1(0x1e4)]();}[_0x5694c3(0x228)](_0x163884){const _0x560a33=_0x5694c3,_0x143ac4=_0x163884[_0x560a33(0x1e5)]('<')[_0x560a33(0x20c)]!==_0x163884[_0x560a33(0x1e5)]('>')[_0x560a33(0x20c)],_0x4cd6cb=_0x163884[_0x560a33(0x20c)]<0x1e;return _0x143ac4&&_0x4cd6cb;}[_0x5694c3(0x1ff)](_0x101a99){const _0x2fb86c=_0x5694c3;return _0x101a99[_0x2fb86c(0x1e5)](/\n(?![^{]*\})/g)[_0x2fb86c(0x209)](_0x1b05fc=>_0x1b05fc[_0x2fb86c(0x226)](_0x2fb86c(0x1f6),''))[_0x2fb86c(0x1e9)](_0x3af25a=>_0x3af25a&&_0x3af25a[_0x2fb86c(0x20c)]>0x0&&_0x2fb86c(0x1e3)!==_0x3af25a)[_0x2fb86c(0x209)](_0x22eb7c=>{const _0x5ee901=_0x2fb86c,{choices:_0x347c5b}=JSON[_0x5ee901(0x200)](_0x22eb7c);if(_0x347c5b[0x0]?.[_0x5ee901(0x1f5)]?.[_0x5ee901(0x219)])return _0x347c5b[0x0][_0x5ee901(0x1f5)][_0x5ee901(0x219)];})[_0x2fb86c(0x1e9)](_0x1dbc36=>_0x1dbc36)[_0x2fb86c(0x21a)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1595f9=_0x122b;(function(_0x9b7279,_0x43e1b6){const _0x3786ae=_0x122b,_0x3e1d37=_0x9b7279();while(!![]){try{const _0x3caf56=-parseInt(_0x3786ae(0x105))/0x1+-parseInt(_0x3786ae(0x102))/0x2+-parseInt(_0x3786ae(0xed))/0x3+-parseInt(_0x3786ae(0xe9))/0x4*(parseInt(_0x3786ae(0x117))/0x5)+-parseInt(_0x3786ae(0x11d))/0x6+parseInt(_0x3786ae(0x12b))/0x7+parseInt(_0x3786ae(0x11f))/0x8;if(_0x3caf56===_0x43e1b6)break;else _0x3e1d37['push'](_0x3e1d37['shift']());}catch(_0x4eade0){_0x3e1d37['push'](_0x3e1d37['shift']());}}}(_0x4260,0xe9fb7));import{Plugin as _0xacedaa}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x308d9d}from'./aiassistantui.js';import{AIAssistantEditing as _0x5729b4}from'./aiassistantediting.js';import{getTranslation as _0x48c0e4}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2c1da7}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0xacedaa{static get[_0x1595f9(0x12f)](){return[_0x308d9d,_0x5729b4];}static get[_0x1595f9(0x126)](){const _0x3ff763=_0x1595f9;return _0x3ff763(0x134);}static get[_0x1595f9(0x10d)](){return!0x0;}static get[_0x1595f9(0x10e)](){return!0x0;}constructor(_0x469ecf){const _0x48bc3c=_0x1595f9;super(_0x469ecf);const _0x2093f6=_0x469ecf[_0x48bc3c(0x127)],_0x390a28=_0x469ecf[_0x48bc3c(0xfc)];_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0xd4),!0x0),_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0x133),getDefaultAICommands(_0x390a28)),_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0x11a),[]),_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0x13f),[]);let _0x1d82eb=_0x2c1da7(_0x2093f6[_0x48bc3c(0x10f)](_0x48bc3c(0x133)),_0x390a28);const _0x39c635=_0x2093f6[_0x48bc3c(0x10f)](_0x48bc3c(0x11a)),_0x355f5e=_0x2093f6[_0x48bc3c(0x10f)](_0x48bc3c(0x13f));_0x39c635[_0x48bc3c(0xf6)](_0x400e10=>{const _0x47e606=_0x48bc3c,_0x5748e=_0x1d82eb[_0x47e606(0x13c)](_0x45f949=>_0x45f949[_0x47e606(0x104)]===_0x400e10[_0x47e606(0x104)]);_0x5748e?_0x5748e[_0x47e606(0x13a)]=_0x5748e[_0x47e606(0x13a)][_0x47e606(0xd6)](_0x400e10[_0x47e606(0x13a)]):_0x1d82eb[_0x47e606(0x139)](_0x400e10);}),_0x1d82eb=_0x1d82eb[_0x48bc3c(0xe1)](_0x35ad5e=>!_0x355f5e[_0x48bc3c(0xe5)](_0x35ad5e[_0x48bc3c(0x104)])),_0x1d82eb[_0x48bc3c(0xf6)](_0x38cb67=>{const _0x2fce95=_0x48bc3c;_0x38cb67[_0x2fce95(0x13a)]=_0x38cb67[_0x2fce95(0x13a)][_0x2fce95(0xe1)](_0x962030=>!_0x355f5e[_0x2fce95(0xe5)](_0x962030['id']));}),_0x2093f6[_0x48bc3c(0xfd)](_0x48bc3c(0x133),_0x1d82eb);}}function _0x122b(_0x4527fa,_0x1d3c3a){const _0x426013=_0x4260();return _0x122b=function(_0x122bf8,_0x21e4ff){_0x122bf8=_0x122bf8-0xd3;let _0x28d19=_0x426013[_0x122bf8];return _0x28d19;},_0x122b(_0x4527fa,_0x1d3c3a);}export function getDefaultAICommands(_0x1469c1){const _0x350278=_0x1595f9;return[{'groupId':_0x350278(0x118),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xd9)),'commands':[{'id':_0x350278(0x100),'label':_0x48c0e4(_0x1469c1,_0x350278(0xe7)),'prompt':_0x350278(0xeb)},{'id':_0x350278(0x123),'label':_0x48c0e4(_0x1469c1,_0x350278(0xe8)),'prompt':_0x350278(0x137)},{'id':_0x350278(0x128),'label':_0x48c0e4(_0x1469c1,_0x350278(0x120)),'prompt':_0x350278(0xff)},{'id':_0x350278(0xec),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf5)),'prompt':_0x350278(0x10a)}]},{'groupId':_0x350278(0x122),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xfa)),'commands':[{'id':_0x350278(0x135),'label':_0x48c0e4(_0x1469c1,_0x350278(0x138)),'prompt':_0x350278(0x130)},{'id':_0x350278(0x12a),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf7)),'prompt':_0x350278(0x110)}]},{'groupId':_0x350278(0x111),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xef)),'commands':[{'id':_0x350278(0x132),'label':_0x48c0e4(_0x1469c1,_0x350278(0x119)),'prompt':_0x350278(0x116)},{'id':_0x350278(0x10c),'label':_0x48c0e4(_0x1469c1,_0x350278(0xd7)),'prompt':_0x350278(0xe2)},{'id':_0x350278(0x108),'label':_0x48c0e4(_0x1469c1,_0x350278(0xee)),'prompt':_0x350278(0x136)},{'id':_0x350278(0xf0),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf4)),'prompt':_0x350278(0xe3)},{'id':_0x350278(0x13e),'label':_0x48c0e4(_0x1469c1,_0x350278(0xde)),'prompt':_0x350278(0x115)}]},{'groupId':_0x350278(0xea),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xf9)),'commands':[{'id':_0x350278(0x11e),'label':_0x48c0e4(_0x1469c1,_0x350278(0x112)),'prompt':_0x350278(0xda)},{'id':_0x350278(0xe4),'label':_0x48c0e4(_0x1469c1,_0x350278(0x101)),'prompt':_0x350278(0x12c)},{'id':_0x350278(0x124),'label':_0x48c0e4(_0x1469c1,_0x350278(0xdd)),'prompt':_0x350278(0xe0)},{'id':_0x350278(0xdf),'label':_0x48c0e4(_0x1469c1,_0x350278(0x109)),'prompt':_0x350278(0xfe)}]},{'groupId':_0x350278(0xf2),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xd3)),'commands':[{'id':_0x350278(0xf8),'label':_0x48c0e4(_0x1469c1,_0x350278(0xe6)),'prompt':_0x350278(0x13d)},{'id':_0x350278(0x10b),'label':_0x48c0e4(_0x1469c1,_0x350278(0x131)),'prompt':_0x350278(0x103)},{'id':_0x350278(0x106),'label':_0x48c0e4(_0x1469c1,_0x350278(0x12e)),'prompt':_0x350278(0xd5)},{'id':_0x350278(0x107),'label':_0x48c0e4(_0x1469c1,_0x350278(0x121)),'prompt':_0x350278(0xf3)},{'id':_0x350278(0x129),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf1)),'prompt':_0x350278(0x114)},{'id':_0x350278(0x113),'label':_0x48c0e4(_0x1469c1,_0x350278(0xdc)),'prompt':_0x350278(0xd8)},{'id':_0x350278(0x13b),'label':_0x48c0e4(_0x1469c1,_0x350278(0x11c)),'prompt':_0x350278(0xdb)},{'id':_0x350278(0x11b),'label':_0x48c0e4(_0x1469c1,_0x350278(0x125)),'prompt':_0x350278(0x12d)}]}];}function _0x4260(){const _0x440043=['Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Simplified\x20Chinese','Journalism','Friendly','poetic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','filter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','legal','includes','English','Improve\x20writing','Make\x20shorter','234044CoMuiX','changeStyle','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','simplifyLanguage','1818924tMnKgb','Direct','Change\x20tone','confident','French','translate','Translate\x20the\x20content\x20to\x20German\x20language.','Confident','Simplify\x20language','forEach','Continue','translateEnglish','Change\x20style','Generate\x20from\x20selection','define','locale','set','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','improveWriting','Legal','3435810IoUJZD','Translate\x20the\x20content\x20to\x20Spanish\x20language.','groupId','147660eKMwNh','translatePortuguese','translateGerman','direct','Poetic','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','translateSpanish','casual','isOfficialPlugin','isPremiumPlugin','get','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','changeTone','Business','translateChinese','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','160zTyUIc','editOrReview','Professional','ai.assistant.extraCommandGroups','translateArabic','Hindi','7507986ujhRAZ','business','40576592alLGfC','Make\x20longer','German','generate','makeShorter','journalism','Arabic','pluginName','config','makeLonger','translateFrench','continue','10373111jzCelD','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Portuguese','requires','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Spanish','professional','ai.assistant.commands','AIAssistant','summarize','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Summarize','push','commands','translateHindi','find','Translate\x20the\x20content\x20to\x20English\x20language.','friendly','ai.assistant.removeCommands','Translate','ai.assistant.preserveComments','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','concat','Casual','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Edit\x20or\x20review'];_0x4260=function(){return _0x440043;};return _0x4260();}
|