@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.4.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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/ai.js +3 -3
- 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-content.css +1 -1
- package/dist/index-editor.css +67 -4
- package/dist/index.css +117 -54
- package/dist/index.js +6 -6
- package/dist/translations/af.d.ts +1 -1
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +1 -1
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +1 -1
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +1 -1
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/be.d.ts +1 -1
- package/dist/translations/be.js +2 -2
- package/dist/translations/be.umd.js +2 -2
- package/dist/translations/bg.d.ts +1 -1
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +1 -1
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +1 -1
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +1 -1
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +1 -1
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +1 -1
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +1 -1
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +1 -1
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +1 -1
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +1 -1
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +1 -1
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +1 -1
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +1 -1
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +1 -1
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +1 -1
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +1 -1
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +1 -1
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +1 -1
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +1 -1
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +1 -1
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +1 -1
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +1 -1
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +1 -1
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +1 -1
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +1 -1
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +1 -1
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +1 -1
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +1 -1
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +1 -1
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +1 -1
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +1 -1
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +1 -1
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +1 -1
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +1 -1
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +1 -1
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +1 -1
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +1 -1
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +1 -1
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +1 -1
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +1 -1
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +1 -1
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +1 -1
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +1 -1
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +1 -1
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +1 -1
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +1 -1
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +1 -1
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +1 -1
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +1 -1
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +1 -1
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +1 -1
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +1 -1
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +1 -1
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +1 -1
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +1 -1
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +1 -1
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +1 -1
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +1 -1
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +1 -1
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +1 -1
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +1 -1
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +1 -1
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +1 -1
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +1 -1
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +1 -1
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +1 -1
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +1 -1
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/contexts.json +0 -11
- package/lang/translations/af.po +1 -45
- package/lang/translations/ar.po +1 -45
- package/lang/translations/ast.po +1 -45
- package/lang/translations/az.po +1 -45
- package/lang/translations/be.po +1 -45
- package/lang/translations/bg.po +1 -45
- package/lang/translations/bn.po +1 -45
- package/lang/translations/bs.po +1 -45
- package/lang/translations/ca.po +1 -45
- package/lang/translations/cs.po +1 -45
- package/lang/translations/da.po +1 -45
- package/lang/translations/de-ch.po +1 -45
- package/lang/translations/de.po +1 -45
- package/lang/translations/el.po +1 -45
- package/lang/translations/en-au.po +1 -45
- package/lang/translations/en-gb.po +1 -45
- package/lang/translations/en.po +1 -45
- package/lang/translations/eo.po +1 -45
- package/lang/translations/es-co.po +1 -45
- package/lang/translations/es.po +1 -45
- package/lang/translations/et.po +1 -45
- package/lang/translations/eu.po +1 -45
- package/lang/translations/fa.po +1 -45
- package/lang/translations/fi.po +1 -45
- package/lang/translations/fr.po +1 -45
- package/lang/translations/gl.po +1 -45
- package/lang/translations/gu.po +1 -45
- package/lang/translations/he.po +1 -45
- package/lang/translations/hi.po +1 -45
- package/lang/translations/hr.po +1 -45
- package/lang/translations/hu.po +1 -45
- package/lang/translations/hy.po +1 -45
- package/lang/translations/id.po +1 -45
- package/lang/translations/it.po +1 -45
- package/lang/translations/ja.po +1 -45
- package/lang/translations/jv.po +1 -45
- package/lang/translations/kk.po +1 -45
- package/lang/translations/km.po +1 -45
- package/lang/translations/kn.po +1 -45
- package/lang/translations/ko.po +1 -45
- package/lang/translations/ku.po +1 -45
- package/lang/translations/lt.po +1 -45
- package/lang/translations/lv.po +1 -45
- package/lang/translations/ms.po +1 -45
- package/lang/translations/nb.po +1 -45
- package/lang/translations/ne.po +1 -45
- package/lang/translations/nl.po +1 -45
- package/lang/translations/no.po +1 -45
- package/lang/translations/oc.po +1 -45
- package/lang/translations/pl.po +1 -45
- package/lang/translations/pt-br.po +1 -45
- package/lang/translations/pt.po +1 -45
- package/lang/translations/ro.po +1 -45
- package/lang/translations/ru.po +1 -45
- package/lang/translations/si.po +1 -45
- package/lang/translations/sk.po +1 -45
- package/lang/translations/sl.po +1 -45
- package/lang/translations/sq.po +1 -45
- package/lang/translations/sr-latn.po +1 -45
- package/lang/translations/sr.po +1 -45
- package/lang/translations/sv.po +1 -45
- package/lang/translations/th.po +1 -45
- package/lang/translations/ti.po +1 -45
- package/lang/translations/tk.po +1 -45
- package/lang/translations/tr.po +1 -45
- package/lang/translations/tt.po +1 -45
- package/lang/translations/ug.po +1 -45
- package/lang/translations/uk.po +1 -45
- package/lang/translations/ur.po +1 -45
- package/lang/translations/uz.po +1 -45
- package/lang/translations/vi.po +1 -45
- package/lang/translations/zh-cn.po +1 -45
- package/lang/translations/zh.po +1 -45
- package/package.json +16 -16
- package/src/aiactions/aiactions.d.ts +5 -1
- package/src/aiactions/aiactions.js +2 -2
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +2 -2
- package/src/aiactions/model/aiactionsreply.d.ts +1 -1
- package/src/aiactions/model/aiactionsreply.js +2 -2
- package/src/aiassistant/adapters/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +2 -2
- package/src/aiassistant/adapters/aitextadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +2 -2
- package/src/aiassistant/adapters/awstextadapter.d.ts +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +2 -2
- package/src/aiassistant/adapters/openaitextadapter.d.ts +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +2 -2
- package/src/aiassistant/aiassistant.d.ts +1 -1
- package/src/aiassistant/aiassistant.js +2 -2
- package/src/aiassistant/aiassistantediting.d.ts +1 -1
- package/src/aiassistant/aiassistantediting.js +2 -2
- package/src/aiassistant/aiassistantui.d.ts +1 -1
- package/src/aiassistant/aiassistantui.js +2 -2
- package/src/aiassistant/legacyerrors.d.ts +1 -1
- package/src/aiassistant/legacyerrors.js +2 -2
- package/src/aiassistant/ui/aiassistantcontroller.d.ts +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +3 -3
- package/src/aiassistant/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +2 -2
- package/src/aiassistant/ui/form/aiformerrorview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +2 -2
- package/src/aiassistant/ui/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +2 -2
- package/src/aiassistant/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +2 -2
- package/src/aiassistant/ui/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +2 -2
- package/src/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +2 -2
- package/src/aiassistant/ui/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +2 -2
- package/src/aiassistant/ui/form/prompthistory.d.ts +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +2 -2
- package/src/aiassistant/utils/common-translations.d.ts +1 -1
- package/src/aiassistant/utils/common-translations.js +2 -2
- package/src/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +2 -2
- package/src/aiballoon/aiballoon.d.ts +1 -1
- package/src/aiballoon/aiballoon.js +2 -2
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +2 -2
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +2 -2
- package/src/aiballoon/ui/aiballoonview.d.ts +1 -1
- package/src/aiballoon/ui/aiballoonview.js +2 -2
- package/src/aichat/aichat.d.ts +38 -4
- package/src/aichat/aichat.js +2 -2
- package/src/aichat/aichatcontroller.d.ts +5 -1
- package/src/aichat/aichatcontroller.js +2 -2
- package/src/aichat/aichatui.d.ts +3 -3
- package/src/aichat/aichatui.js +2 -2
- package/src/aichat/model/aichatcontext.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +2 -2
- package/src/aichat/model/aichatconversation.d.ts +10 -10
- package/src/aichat/model/aichatconversation.js +2 -2
- package/src/aichat/model/aichatinteraction.d.ts +1 -1
- package/src/aichat/model/aichatinteraction.js +2 -2
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -4
- package/src/aichat/ui/aichatcontrolsview.js +2 -2
- package/src/aichat/ui/aichatfeedview.d.ts +1 -1
- package/src/aichat/ui/aichatfeedview.js +2 -2
- package/src/aichat/ui/aichatheaderview.d.ts +1 -1
- package/src/aichat/ui/aichatheaderview.js +2 -2
- package/src/aichat/ui/aichatview.d.ts +1 -1
- package/src/aichat/ui/aichatview.js +2 -2
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +2 -2
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +2 -2
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +2 -2
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +2 -2
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +2 -2
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +5 -5
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +2 -2
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +2 -2
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +2 -2
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +2 -2
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +3 -2
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +2 -2
- package/src/aichat/utils/eventnames.d.ts +1 -1
- package/src/aichat/utils/eventnames.js +2 -2
- package/src/aichat/utils/promisequeue.d.ts +1 -1
- package/src/aichat/utils/promisequeue.js +2 -2
- package/src/aichathistory/aichathistory.d.ts +1 -1
- package/src/aichathistory/aichathistory.js +2 -2
- package/src/aichathistory/aichathistorycontroller.d.ts +1 -1
- package/src/aichathistory/aichathistorycontroller.js +2 -2
- package/src/aichathistory/aichathistoryui.d.ts +1 -1
- package/src/aichathistory/aichathistoryui.js +2 -2
- package/src/aichathistory/model/aichathistoryconversations.d.ts +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +2 -2
- package/src/aichathistory/model/aichathistoryitem.d.ts +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +2 -2
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +3 -3
- package/src/aichathistory/ui/aichathistorylistview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +2 -2
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +2 -2
- package/src/aiconfig.d.ts +1 -1
- package/src/aiconfig.js +1 -1
- package/src/aicore/aiconnector.d.ts +4 -2
- package/src/aicore/aiconnector.js +2 -2
- package/src/aicore/aiediting.d.ts +1 -1
- package/src/aicore/aiediting.js +2 -2
- package/src/aicore/model/aicapabilities.d.ts +1 -1
- package/src/aicore/model/aicapabilities.js +2 -2
- package/src/aicore/model/aicontext.d.ts +1 -1
- package/src/aicore/model/aicontext.js +2 -2
- package/src/aicore/model/aiinteraction.d.ts +1 -1
- package/src/aicore/model/aiinteraction.js +2 -2
- package/src/aicore/model/aimodels.d.ts +3 -12
- package/src/aicore/model/aimodels.js +2 -2
- package/src/aicore/model/aireply.d.ts +1 -1
- package/src/aicore/model/aireply.js +2 -2
- package/src/aicore/pipeline/airesponseapplier.d.ts +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +3 -3
- package/src/aicore/pipeline/airesponseparser.d.ts +1 -1
- package/src/aicore/pipeline/airesponseparser.js +3 -3
- package/src/aicore/ui/aidisclaimerview.d.ts +1 -1
- package/src/aicore/ui/aidisclaimerview.js +2 -2
- package/src/aicore/ui/aiskeleton.d.ts +1 -1
- package/src/aicore/ui/aiskeleton.js +2 -2
- package/src/aicore/ui/aispinner.d.ts +1 -1
- package/src/aicore/ui/aispinner.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +5 -5
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +2 -2
- package/src/aicore/utils/common-translations.d.ts +1 -1
- package/src/aicore/utils/common-translations.js +2 -2
- package/src/aicore/utils/createresizebutton.d.ts +1 -1
- package/src/aicore/utils/createresizebutton.js +2 -2
- package/src/aicore/utils/documentposition.d.ts +1 -1
- package/src/aicore/utils/documentposition.js +2 -2
- package/src/aicore/utils/documentrange.d.ts +1 -1
- package/src/aicore/utils/documentrange.js +2 -2
- package/src/aicore/utils/eventnames.d.ts +1 -1
- package/src/aicore/utils/eventnames.js +2 -2
- package/src/aicore/utils/geteditorfromcontext.d.ts +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +2 -2
- package/src/aicore/utils/getoperationsfromreply.d.ts +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +2 -2
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +2 -2
- package/src/aicore/utils/htmlparser.d.ts +1 -1
- package/src/aicore/utils/htmlparser.js +2 -2
- package/src/aicore/utils/htmlstreamer.d.ts +1 -1
- package/src/aicore/utils/htmlstreamer.js +2 -2
- package/src/aicore/utils/scrollmanager.d.ts +1 -1
- package/src/aicore/utils/scrollmanager.js +2 -2
- package/src/aieditorintegration/aieditorintegration.d.ts +1 -1
- package/src/aieditorintegration/aieditorintegration.js +2 -2
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +2 -2
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +2 -2
- package/src/aiquickactions/aiquickactions.d.ts +1 -1
- package/src/aiquickactions/aiquickactions.js +2 -2
- package/src/aiquickactions/aiquickactionscommand.d.ts +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +2 -2
- package/src/aiquickactions/aiquickactionsediting.d.ts +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +2 -2
- package/src/aiquickactions/aiquickactionsui.d.ts +1 -1
- package/src/aiquickactions/aiquickactionsui.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +2 -2
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +2 -2
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +2 -2
- package/src/aireviewmode/aireviewmode.d.ts +1 -1
- package/src/aireviewmode/aireviewmode.js +2 -2
- package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +2 -2
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +2 -2
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +2 -2
- package/src/aireviewmode/model/aireviewcheck.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +2 -2
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +2 -2
- package/src/aireviewmode/model/aireviewchecklist.d.ts +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +2 -2
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +2 -2
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +2 -2
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +2 -2
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +2 -2
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +2 -2
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +2 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +2 -2
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +2 -2
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +2 -2
- package/src/aitabs/aitabs.d.ts +1 -1
- package/src/aitabs/aitabs.js +2 -2
- package/src/aitabs/aitabsmainview.d.ts +1 -1
- package/src/aitabs/aitabsmainview.js +2 -2
- package/src/aitabs/tabs/aitabsview.d.ts +1 -1
- package/src/aitabs/tabs/aitabsview.js +2 -2
- package/src/aitabs/tabs/tabbuttonview.d.ts +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +2 -2
- package/src/aitabs/tabs/tabpanelview.d.ts +1 -1
- package/src/aitabs/tabs/tabpanelview.js +2 -2
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/errors.d.ts +1 -1
- package/src/errors.js +2 -2
- package/src/errorsmap.d.ts +1 -1
- package/src/errorsmap.js +2 -2
- package/src/index.d.ts +1 -2
- package/src/index.js +2 -2
- package/theme/aiassistant/ai-dropdown.css +1 -1
- package/theme/aiassistant/ai-form.css +1 -1
- package/theme/aiassistant/ai.css +1 -1
- package/theme/aiballoon/aiballoon.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls.css +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-button.css +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls/model-unavailable-message.css +1 -1
- package/theme/aichat/aichat-controls/prompt-capabilities.css +1 -1
- package/theme/aichat/aichat-controls/prompt-input.css +1 -1
- package/theme/aichat/aichat-controls.css +1 -1
- package/theme/aichat/aichat.css +1 -1
- package/theme/aichat/aichatfeed.css +55 -1
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aiminitoolbar.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aieditorintegration/aitogglebutton.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +1 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +1 -1
- package/theme/aireviewmode/aireviewmode-check-run-result.css +1 -1
- package/theme/aireviewmode/aireviewmode-check-run.css +1 -1
- package/theme/aireviewmode/aireviewmode-review-completed.css +1 -1
- package/theme/aireviewmode/aireviewmode.css +9 -4
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -1
- package/theme/aitabs/tabs/tabsview.css +1 -1
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aidisclaimer.css +1 -1
- package/theme/common/aiheader.css +1 -1
- package/theme/common/ainotification.css +1 -1
- package/theme/common/aiskeleton.css +1 -1
- package/theme/common/aispinner.css +1 -1
- package/theme/common/aitrackchanges.css +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -63
- package/src/aichat/model/aichatmodels.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x29b850=_0x12ff;(function(_0x4a895e,_0x16c879){const _0x2b1e3b=_0x12ff,_0x56905a=_0x4a895e();while(!![]){try{const _0x5a1860=-parseInt(_0x2b1e3b(0x234))/0x1*(-parseInt(_0x2b1e3b(0x1d6))/0x2)+parseInt(_0x2b1e3b(0x1e7))/0x3*(parseInt(_0x2b1e3b(0x22a))/0x4)+parseInt(_0x2b1e3b(0x262))/0x5*(-parseInt(_0x2b1e3b(0x223))/0x6)+parseInt(_0x2b1e3b(0x1c4))/0x7*(parseInt(_0x2b1e3b(0x275))/0x8)+-parseInt(_0x2b1e3b(0x1e2))/0x9+parseInt(_0x2b1e3b(0x1b4))/0xa*(-parseInt(_0x2b1e3b(0x1f0))/0xb)+parseInt(_0x2b1e3b(0x27c))/0xc;if(_0x5a1860===_0x16c879)break;else _0x56905a['push'](_0x56905a['shift']());}catch(_0x45766f){_0x56905a['push'](_0x56905a['shift']());}}}(_0x36e3,0xb93ef));import{Plugin as _0x809aed}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8941}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3fcdb2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x36e3(){const _0x613cd8=['hideLoader','message','ai.availableReplyActions','error','slice','replies','1/1','_navigateToPrevious','startsWith','howMany','removeNavigationItem','_currentInteractionIndex','insert','Error\x20updating\x20content\x20during\x20navigation:','path','length','forEach','_clearLoadingState','pending','set','upsertAIActionRating','showLoader','interactionFinished','AI_ACTIONS_NEXT_INTERACTION','model','documentFragment','static','_customViews','_interactions','_interaction','stopInteraction','_createInteraction','nextSibling','has','locale','root','Attribute','_displayInteractionAtIndex','AI_ACTIONS_PREVIOUS_INTERACTION','isPremiumPlugin','ck-ai-interaction-counter','showChangesButton','getSelectedContent','isOfficialPlugin','position','getRanges','_getExecuteDataInTable','addNavigationItem','19692MFDtJz','getOperations','hasError','aiBalloon','applyOperation','end','operationsA','47524gGQKdS','getRoot','TrackChanges','parent','executeAction','balloonView','listenTo','$graveyard','getLimitElement','stopAutoScroll','15659EEQcrQ','_disableCustomViews','clone','includes','_interactionParams','close','getFirstRange','_refreshInteraction','map','Error\x20refreshing\x20interaction:','first','isEnabled','_children','random','_clearInteractionHistory','createPositionAt','setLoading','isDocumentOperation','element','createPositionBefore','_aiConnector','processor','abort','textContent','setTemplate','hasPendingParts','isBusy','getDocumentContext','_isNavigationPreviousButtonInView','_navigationPreviousButton','isCollapsed','_anchorOperation','history','stopListening','reinsert','getAncestors','_execute','split','TableSelection','_getExecuteDataRegular','span','mainView','Error\x20updating\x20content\x20in\x20replyContentUpdated:','requires','move','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','1005GolYKG','streaming','replyChangeGroupStateUpdated','nodeAfter','Error\x20updating\x20content\x20in\x20replyCreated:','filter','accepted','add','AIConnector','replyContentUpdated','getCommonAncestor','baseVersion','_appendChild','replyCreated','clearErrorState','showError','ck-ai-navigation-button\x20ck-ai-next-button','_isAbortError','_stopInteraction','8nBqxSL','selectionRemoved','getSelectionAsFragment','updateContent','stop','ck-ai-custom-action-button','toolbar','16320312DFXbZR','enqueue','range','plugins','_setErrorState','_clone','_applyChanges','_navigationCounter','rename','AIBalloon','get','indexOf','setErrorState','remove','_applyOperationsAsSuggestions','_executeAction','actionName','execute','AI_ACTIONS_GENERIC_ERROR','_clearSuggestionContent','type','editor','TrackChangesEditing','setSelection','queueEmptyPromise','data','change','rootName','_promiseQueue','start','merge','AIActions','_balloonShowDiff','selection','4510WPnzyY','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_isNavigationCounterInView','open','miniToolbarView','_navigationNextButton','config','setChangeGroupState','sourcePosition','hideError','clearLoading','createPositionAfter','areChangesVisible','createRange','ai-request-aborted','icon','1701021mpxiGV','stickiness','state','changeGroups','applySuggestion','batch','_clearErrorState','getSelectedTableCells','isLoading','modelToViewWithIds','insertSuggestion','toData','bind','getChild','getChildAtOffset','_setLoadingState','_filterOperationsOutsideRange','toggleSuggestionDisplayMode','58YYfMVp','_wrapWithCommonAncestors','signal','bodyView','focus','catch','AI_ACTIONS_TRY_AGAIN','startAutoScroll','_isNavigationNextButtonInView','documentContextContent','_updateNavigationUI','_setupCustomViews','3475809GskqEj','version','upsertCustomAIActionRating','dialogClosed','ai-no-track-changes','45YqBBGN','push','actionCallId','ck-ai-navigation-button\x20ck-ai-previous-button','schema','getSelectedBlocks','_navigateToNext','rejected','pluginName','10505tCuwHi','addOperation','document'];_0x36e3=function(){return _0x613cd8;};return _0x36e3();}import{Dialog as _0x407cb2,ButtonView as _0x197995,ViewCollection as _0x11ec9e,View as _0x36dd8f}from'ckeditor5/src/ui.js';import{AIEditing as _0x4b4090}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5df450}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x25704a,first as _0x251ea3}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4eb835,IconRefresh as _0x45f56f,IconNextArrow as _0x58f9c4,IconPreviousArrow as _0x5ddb6b,IconShowChangesOff as _0x4013b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x270f06}from'../aiballoon/aiballoon.js';function _0x12ff(_0xb56307,_0x2c788d){const _0x36e383=_0x36e3();return _0x12ff=function(_0x12ff4a,_0x2d12cc){_0x12ff4a=_0x12ff4a-0x1b3;let _0x23d7b9=_0x36e383[_0x12ff4a];return _0x23d7b9;},_0x12ff(_0xb56307,_0x2c788d);}import{PromiseQueue as _0x4f17b7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4f89fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x49ea10}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3233b4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xf95b18,getOperationsFromReply as _0x3de8a7}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5a7505,ModelRange as _0x19a245,ModelPosition as _0x41f1b2,_DetachOperation as _0x1e8805,transformOperationSets as _0x359e8b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x83a4ce}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x809aed{static get[_0x29b850(0x25f)](){return[_0x4b8941,_0x407cb2,_0x4b4090,_0x270f06,_0x3233b4];}static get[_0x29b850(0x1ef)](){const _0x385e3e=_0x29b850;return _0x385e3e(0x29b);}static get[_0x29b850(0x21e)](){return!0x0;}static get[_0x29b850(0x21a)](){return!0x0;}[_0x29b850(0x248)];[_0x29b850(0x20f)]=[];[_0x29b850(0x1fe)]=0x0;[_0x29b850(0x238)];[_0x29b850(0x29c)]=!0x1;[_0x29b850(0x20e)]=new _0x11ec9e();[_0x29b850(0x251)];[_0x29b850(0x283)];[_0x29b850(0x1b6)]=!0x1;[_0x29b850(0x1b9)];[_0x29b850(0x250)]=!0x1;[_0x29b850(0x1de)]=!0x1;[_0x29b850(0x298)];get[_0x29b850(0x210)](){const _0x5775ad=_0x29b850;return this[_0x5775ad(0x20f)][this[_0x5775ad(0x20f)][_0x5775ad(0x202)]-0x1];}constructor(_0x37a3a1){const _0x530ece=_0x29b850;super(_0x37a3a1),this[_0x530ece(0x248)]=this[_0x530ece(0x291)][_0x530ece(0x27f)][_0x530ece(0x286)](_0x530ece(0x26a)),this[_0x530ece(0x206)](_0x530ece(0x24e),!0x1),this[_0x530ece(0x298)]=new _0x4f17b7(),this[_0x530ece(0x1e1)]();}[_0x29b850(0x211)](){const _0x19641f=_0x29b850;this[_0x19641f(0x274)]();}async[_0x29b850(0x22e)](_0xffb427,_0x538e4e,_0x2ea5ba){const _0x1fc1be=_0x29b850;if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x214)](_0x1fc1be(0x25a))){if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x286)](_0x1fc1be(0x25a))[_0x1fc1be(0x1cb)]()){const {modelFragment:_0x2ca8bc,anchorData:_0x3033bb}=this[_0x1fc1be(0x221)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x2ca8bc,_0x3033bb,_0x538e4e,_0x2ea5ba);}}const {modelFragment:_0x4e9ab3,anchorData:_0x14be92}=this[_0x1fc1be(0x25b)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x4e9ab3,_0x14be92,_0x538e4e,_0x2ea5ba);}[_0x29b850(0x25b)](){const _0x100ecd=_0x29b850,_0x180763=this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1f2)][_0x100ecd(0x1b3)];if(_0x180763[_0x100ecd(0x252)]){const _0x54af8b=_0x251ea3(_0x180763[_0x100ecd(0x1ec)]())||this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1eb)][_0x100ecd(0x232)](_0x180763);this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x296)](_0x490f38=>{const _0x20b71f=_0x100ecd;_0x490f38[_0x20b71f(0x293)](_0x54af8b,'in');});}const _0x5a2044=_0x180763[_0x100ecd(0x23a)](),_0x38e721=this[_0x100ecd(0x1d7)](this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x21d)](_0x180763),_0x5a2044[_0x100ecd(0x299)],_0x5a2044[_0x100ecd(0x228)]),_0x16bbd4=_0x180763[_0x100ecd(0x23a)]()[_0x100ecd(0x299)],_0x16ea93=new Map();let _0x3bc6d9=_0x38e721;for(let _0x2d9241=0x0;_0x2d9241<_0x16bbd4[_0x100ecd(0x201)][_0x100ecd(0x202)];_0x2d9241++)_0x16ea93[_0x100ecd(0x206)](_0x3bc6d9,_0x16bbd4[_0x100ecd(0x201)][_0x2d9241]),_0x3bc6d9=_0x3bc6d9[_0x100ecd(0x1d1)](0x0);return{'modelFragment':_0x38e721,'anchorData':_0x16ea93};}[_0x29b850(0x221)](){const _0x385ed5=_0x29b850,_0xd46029=this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1f2)][_0x385ed5(0x1b3)],_0x321ab1=this[_0x385ed5(0x291)][_0x385ed5(0x27f)][_0x385ed5(0x286)](_0x385ed5(0x25a))[_0x385ed5(0x277)](),_0x593b99=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)][_0x385ed5(0x22d)][_0x385ed5(0x22d)],_0x210b9d=this[_0x385ed5(0x1d7)](_0x321ab1,this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x247)](_0x593b99),this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1bf)](_0x593b99)),_0x4a403f=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)],_0x470843=new Map();let _0x1ccb02=_0x210b9d;for(let _0xc48f9a=0x0;_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)];_0xc48f9a++)if(_0x470843[_0x385ed5(0x206)](_0x1ccb02,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)]-0x1)_0x1ccb02=_0x1ccb02[_0x385ed5(0x1d1)](0x0);else{let _0x2ad6a5=_0x1ccb02[_0x385ed5(0x213)];for(;_0x2ad6a5;)_0x470843[_0x385ed5(0x206)](_0x2ad6a5,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0x2ad6a5=_0x2ad6a5[_0x385ed5(0x213)];}return{'modelFragment':_0x210b9d,'anchorData':_0x470843};}[_0x29b850(0x28b)](_0x3807e0,_0x542872,_0x93869,_0x169e61,_0x4d71ac){const _0x50eac5=_0x29b850,_0x575a31=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x4b4090),_0x5b7ed0=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x270f06),_0x17847f=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1b3)],_0x5a49e1=_0x575a31[_0x50eac5(0x1cd)](_0x542872),_0x3c9834=this[_0x50eac5(0x291)][_0x50eac5(0x295)][_0x50eac5(0x249)][_0x50eac5(0x1cf)](_0x5a49e1),_0x20b7c6=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1e3)],_0x1daf56=[..._0x17847f[_0x50eac5(0x220)]()];let _0x54d2b3=this[_0x50eac5(0x291)][_0x50eac5(0x1ba)][_0x50eac5(0x286)](_0x50eac5(0x1f5))||[..._0x83a4ce];this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c))||(_0x54d2b3=_0x54d2b3[_0x50eac5(0x267)](_0x55f159=>_0x50eac5(0x1ce)!=_0x55f159));const _0x51acda=new _0x3fcdb2(this[_0x50eac5(0x291)][_0x50eac5(0x215)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x50eac5(0x1c3),'customView':this[_0x50eac5(0x20e)]},'showUnchangedParts':!0x0,'availableActions':_0x54d2b3});return _0x5b7ed0[_0x50eac5(0x1b7)]({'index':0x3e8*Math[_0x50eac5(0x241)]()%0x3e8,'title':_0x169e61,'icon':_0x4d71ac||_0x4eb835,'mainView':_0x51acda,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c)),'ranges':_0x1daf56}),this[_0x50eac5(0x1d3)](_0x51acda,_0x5b7ed0),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1c8),()=>{const _0x236a56=_0x50eac5;this[_0x236a56(0x282)](_0x542872,_0x93869,!0x1);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1ce),()=>{const _0x3608d2=_0x50eac5;this[_0x3608d2(0x282)](_0x542872,_0x93869,!0x0);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x276),()=>{const _0x58e13e=_0x50eac5;this[_0x58e13e(0x274)](),this[_0x58e13e(0x235)]();}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1e5),()=>{const _0xe41055=_0x50eac5;if(this[_0xe41055(0x210)]&&this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]>0x0){const _0xd2ca37=this[_0xe41055(0x210)][_0xe41055(0x1f8)][this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]-0x1],_0x3e7af1=_0xd2ca37[_0xe41055(0x1c7)][0x0];_0x3e7af1&&_0xe41055(0x205)===_0x3e7af1[_0xe41055(0x1c6)]&&_0xd2ca37[_0xe41055(0x1bb)](0x0,_0xe41055(0x1ee));}this[_0xe41055(0x274)](),this[_0xe41055(0x242)](),this[_0xe41055(0x255)](_0x5b7ed0);}),this[_0x50eac5(0x212)](_0x3c9834,_0x20b7c6,_0x51acda,_0x5b7ed0,_0x3807e0);}[_0x29b850(0x1d7)](_0x4d5560,_0x1cdb52,_0x4483d3){const _0x281304=_0x29b850,_0x2e701b=this[_0x281304(0x291)][_0x281304(0x20b)][_0x281304(0x1c1)](_0x1cdb52,_0x4483d3)[_0x281304(0x26c)](),_0x39bbdd=_0x2e701b['is'](_0x281304(0x20c))?[]:_0x2e701b[_0x281304(0x257)]({'includeSelf':!0x0})[_0x281304(0x1f7)](0x1);if(_0x39bbdd[_0x281304(0x202)]){const _0x1b9528=_0x39bbdd[_0x281304(0x23c)](_0x5e84d1=>_0x5e84d1[_0x281304(0x281)](!0x1));for(let _0x51553c=0x1;_0x51553c<_0x1b9528[_0x281304(0x202)];_0x51553c++)_0x1b9528[_0x51553c-0x1][_0x281304(0x26e)](_0x1b9528[_0x51553c]);return _0x1b9528[_0x1b9528[_0x281304(0x202)]-0x1][_0x281304(0x26e)](_0x4d5560),new _0x5a7505(_0x1b9528[0x0]);}return _0x4d5560;}async[_0x29b850(0x212)](_0x518538,_0x3a41a7,_0x32f9b5,_0x58b832,_0x1bcc90){const _0x4a29f6=_0x29b850,_0x436b70=this[_0x4a29f6(0x291)];this[_0x4a29f6(0x238)]={'action':_0x1bcc90,'content':_0x518538,'version':_0x3a41a7,'mainView':_0x32f9b5,'aiBalloon':_0x58b832};const _0x3c1617=new _0x5df450({'connector':this[_0x4a29f6(0x248)],'editor':_0x436b70,'content':_0x518538,'version':_0x3a41a7,..._0x1bcc90});this[_0x4a29f6(0x20f)][_0x4a29f6(0x1e8)](_0x3c1617),_0x32f9b5[_0x4a29f6(0x1bd)]();const _0x4e11b0=(_0xcd263b,_0x445a49,_0x16c90f=!0x1,_0x250569=_0x4a29f6(0x263))=>this[_0x4a29f6(0x298)][_0x4a29f6(0x27d)](async _0x2d153e=>{const _0x2735a3=_0x4a29f6;try{const _0x1dab75=_0x49ea10({'editor':_0x436b70,'changeGroups':_0xcd263b[_0x2735a3(0x1c7)],'documentContextContent':_0xcd263b[_0x2735a3(0x1df)],'showDiff':_0x16c90f,'trimUnchanged':!0x1});await _0x445a49[_0x2735a3(0x278)]({'parts':_0x1dab75,'renderingStrategy':_0x250569,'abortSignal':_0x2d153e});}catch(_0x59a2f8){if(this[_0x2735a3(0x273)](_0x59a2f8))return;throw _0x59a2f8;}});this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26f),(_0x3cdf8c,_0x38ece3)=>{const _0x374719=_0x4a29f6;_0x32f9b5[_0x374719(0x1f3)](),_0x58b832[_0x374719(0x1dd)](),_0x4e11b0(_0x38ece3,_0x32f9b5)[_0x374719(0x1db)](_0x437d8c=>{const _0x25fb22=_0x374719;this[_0x25fb22(0x273)](_0x437d8c)||(console[_0x25fb22(0x1f6)](_0x25fb22(0x266),_0x437d8c),this[_0x25fb22(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26b),(_0x58955b,_0x5e2b75)=>{const _0x48b0bd=_0x4a29f6;_0x4e11b0(_0x5e2b75,_0x32f9b5)[_0x48b0bd(0x1db)](_0x603999=>{const _0x47941e=_0x48b0bd;this[_0x47941e(0x273)](_0x603999)||(console[_0x47941e(0x1f6)](_0x47941e(0x25e),_0x603999),this[_0x47941e(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x209),async()=>{const _0x1d9eba=_0x4a29f6;try{await this[_0x1d9eba(0x204)](_0x32f9b5,_0x58b832),this[_0x1d9eba(0x1e0)](),await this[_0x1d9eba(0x298)][_0x1d9eba(0x294)];}catch(_0x416242){this[_0x1d9eba(0x273)](_0x416242)||(console[_0x1d9eba(0x1f6)](_0x1d9eba(0x1b5),_0x416242),this[_0x1d9eba(0x280)](_0x3c1617,_0x32f9b5));}finally{_0x58b832[_0x1d9eba(0x233)]();}}),this[_0x4a29f6(0x230)](_0x32f9b5,_0x4a29f6(0x1d5),async(_0x3ebbe9,{showDiff:_0xdb7ac3})=>{const _0x9898=_0x4a29f6;try{this[_0x9898(0x29c)]=_0xdb7ac3;const _0x422e50=this[_0x9898(0x210)][_0x9898(0x1f8)][this[_0x9898(0x210)][_0x9898(0x1f8)][_0x9898(0x202)]-0x1];_0x422e50&&await _0x4e11b0(_0x422e50,_0x32f9b5,_0xdb7ac3,_0x9898(0x20d));}catch(_0x5ebae){this[_0x9898(0x273)](_0x5ebae)||(console[_0x9898(0x1f6)](_0x9898(0x261),_0x5ebae),this[_0x9898(0x280)](_0x3c1617,_0x32f9b5));}}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x264),(_0x13e6de,{reply:_0x377275})=>{const _0x18b871=_0x4a29f6,_0x1d35e7={'positiveCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x267)](_0xaeb5b4=>_0x18b871(0x268)===_0xaeb5b4[_0x18b871(0x1c6)])[_0x18b871(0x202)],'totalCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x202)]},_0x669699=this[_0x18b871(0x210)][_0x18b871(0x1e9)],_0x5af7a8=this[_0x18b871(0x210)][_0x18b871(0x28c)];_0x5af7a8?this[_0x18b871(0x248)][_0x18b871(0x207)](_0x5af7a8,_0x669699,_0x1d35e7):this[_0x18b871(0x248)][_0x18b871(0x1e4)](_0x669699,_0x1d35e7);}),this[_0x4a29f6(0x1d3)](_0x32f9b5,_0x58b832);try{const _0x42ef6b=await this[_0x4a29f6(0x210)][_0x4a29f6(0x299)]();return this[_0x4a29f6(0x1e0)](),_0x42ef6b;}catch(_0x573ec4){if(this[_0x4a29f6(0x273)](_0x573ec4))return;_0x32f9b5[_0x4a29f6(0x1f3)](),this[_0x4a29f6(0x280)](_0x3c1617,_0x32f9b5);}}[_0x29b850(0x282)](_0x597d8e,_0x1b77ba,_0x4d60d9){const _0x559725=_0x29b850,_0x2fc8fe=this[_0x559725(0x291)];if(_0x4d60d9&&!_0x2fc8fe[_0x559725(0x27f)][_0x559725(0x214)](_0x559725(0x22c)))throw new _0x25704a(_0x559725(0x1e6),null);const _0xc7b72f=this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x3233b4),_0x38de5f=this[_0x559725(0x210)],_0x53eb20=this[_0x559725(0x210)][_0x559725(0x1f8)][this[_0x559725(0x210)][_0x559725(0x1f8)][_0x559725(0x202)]-0x1],_0x33e033=_0x53eb20[_0x559725(0x1c7)];_0x53eb20[_0x559725(0x1bb)](0x0,_0x559725(0x268));let _0x4f6242=_0x3de8a7({'editor':_0x2fc8fe,'reply':_0x53eb20,'interaction':_0x38de5f,'groups':_0x33e033,'transform':!0x1,'documentCompare':_0xc7b72f,'documentCompareOptions':{'anchor':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x243)](_0x597d8e,0x0),'markDeletions':_0x4d60d9}});_0x4f6242=this[_0x559725(0x1d4)](_0x4f6242,_0x1b77ba);for(const _0x34bcad of _0x4f6242)this[_0x559725(0x253)](_0x1b77ba,_0x34bcad,_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x22b)]());const _0x5ed7db=_0x38de5f[_0x559725(0x24f)]()[_0x559725(0x1e3)],_0x4a7b9a=_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x254)][_0x559725(0x224)](_0x5ed7db),_0x2dceff={'document':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x23a8b0=_0x359e8b(_0x4f6242,_0x4a7b9a,_0x2dceff)[_0x559725(0x229)];_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x296)](_0x5815ae=>{const _0xa8162f=_0x559725;if(_0x5815ae[_0xa8162f(0x293)](_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1b3)][_0xa8162f(0x1da)]),_0x4d60d9)_0x2fc8fe[_0xa8162f(0x27f)][_0xa8162f(0x286)](_0xa8162f(0x292))[_0xa8162f(0x28a)](_0x23a8b0);else{for(const _0x32d40f of _0x23a8b0)_0x32d40f[_0xa8162f(0x26d)]=_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1e3)],_0xf95b18(_0x2fc8fe,_0x32d40f),_0x5815ae[_0xa8162f(0x1c9)][_0xa8162f(0x1f1)](_0x32d40f),_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x227)](_0x32d40f);}}),this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x559725(0x285))[_0x559725(0x239)]();}[_0x29b850(0x1d4)](_0x17c3be,_0x12df39){const _0x57433e=_0x29b850;return _0x17c3be[_0x57433e(0x267)](_0x27c4ae=>{const _0x11d4b3=_0x57433e;if(_0x11d4b3(0x284)==_0x27c4ae[_0x11d4b3(0x290)]){const _0x3db492=_0x27c4ae[_0x11d4b3(0x21f)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x3db492);}if(_0x27c4ae[_0x11d4b3(0x290)][_0x11d4b3(0x287)](_0x11d4b3(0x217))>-0x1){const _0x4ac251=_0x27c4ae[_0x11d4b3(0x27e)][_0x11d4b3(0x299)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x4ac251);}return!0x0;});}[_0x29b850(0x253)](_0x3923e0,_0xd3cc9b,_0x505928){const _0x3268c9=_0x29b850,_0xfab994=_0xd3cc9b[_0x3268c9(0x236)]();for(const _0x44c0c6 in _0xd3cc9b){const _0x1d968f=_0xd3cc9b[_0x44c0c6];_0x1d968f instanceof _0x19a245?_0xd3cc9b[_0x44c0c6]=new _0x19a245(_0xaa654d(_0x1d968f[_0x3268c9(0x299)]),_0xaa654d(_0x1d968f[_0x3268c9(0x228)])):_0x1d968f instanceof _0x41f1b2&&(_0xd3cc9b[_0x44c0c6]=_0xaa654d(_0x1d968f));}if([_0x3268c9(0x1ff),_0x3268c9(0x260),_0x3268c9(0x289),_0x3268c9(0x256),_0x3268c9(0x259),_0x3268c9(0x29a)][_0x3268c9(0x237)](_0xfab994[_0x3268c9(0x290)])){if(_0xfab994[_0x3268c9(0x245)]=!0x1,_0xfab994[_0x3268c9(0x26d)]=null,_0x3268c9(0x289)==_0xfab994[_0x3268c9(0x290)]){const _0x400fed=_0xfab994[_0x3268c9(0x1bc)],_0x56116e=_0xfab994[_0x3268c9(0x1fc)];new _0x1e8805(_0x400fed,_0x56116e)[_0x3268c9(0x258)]();}else _0xfab994[_0x3268c9(0x258)]();}function _0xaa654d(_0x245b2b){const _0xfa37b1=_0x3268c9;if(_0xfa37b1(0x231)==_0x245b2b[_0xfa37b1(0x216)][_0xfa37b1(0x297)])return _0x245b2b;const _0x30efd6=[];let _0x1a4850=_0x245b2b[_0xfa37b1(0x216)];for(let _0x2b1643=0x0;_0x2b1643<_0x245b2b[_0xfa37b1(0x201)][_0xfa37b1(0x202)];_0x2b1643++){const _0x26e53f=_0x3923e0[_0xfa37b1(0x286)](_0x1a4850)||0x0;_0x30efd6[_0x2b1643]=_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]+_0x26e53f,_0x1a4850=_0x1a4850[_0xfa37b1(0x1d2)](_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]);}return new _0x41f1b2(_0x505928,_0x30efd6,_0x245b2b[_0xfa37b1(0x1c5)]);}}[_0x29b850(0x23b)](){const _0x1b6cba=_0x29b850;if(!this[_0x1b6cba(0x238)])return;this[_0x1b6cba(0x20f)][_0x1b6cba(0x202)]>0x0&&this[_0x1b6cba(0x274)](),this[_0x1b6cba(0x1fe)]=0x0,this[_0x1b6cba(0x29c)]=!0x1;const {action:_0x449efd,content:_0x1580ef,version:_0x2c7820,mainView:_0x1f3229,aiBalloon:_0x22b3d5}=this[_0x1b6cba(0x238)];_0x1f3229[_0x1b6cba(0x1c0)]=!0x1,_0x1f3229[_0x1b6cba(0x1bd)](),this[_0x1b6cba(0x1ca)](_0x1f3229,_0x22b3d5);const _0x568b7d=_0x1f3229;_0x568b7d[_0x1b6cba(0x1b8)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)][_0x1b6cba(0x206)]({'isOn':!0x1,'icon':_0x4013b0}),this[_0x1b6cba(0x28f)](_0x1f3229),_0x1f3229[_0x1b6cba(0x208)](),this[_0x1b6cba(0x1e0)](),this[_0x1b6cba(0x255)](_0x1f3229),this[_0x1b6cba(0x212)](_0x1580ef,_0x2c7820,_0x1f3229,_0x22b3d5,_0x449efd)[_0x1b6cba(0x1db)](_0x49b423=>{const _0x1df3a1=_0x1b6cba;this[_0x1df3a1(0x273)](_0x49b423)||console[_0x1df3a1(0x1f6)](_0x1df3a1(0x23d),_0x49b423);});}[_0x29b850(0x28f)](_0x2a2180){const _0x21bbf0=_0x29b850,_0xd99c3d=_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x240)];for(;_0xd99c3d[_0x21bbf0(0x202)]>0x0;)_0xd99c3d[_0x21bbf0(0x289)](_0xd99c3d[_0x21bbf0(0x23e)]);_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x24d)]=!0x1;}[_0x29b850(0x273)](_0x5515a8){const _0x4b1afc=_0x29b850;return!!_0x5515a8[_0x4b1afc(0x1f4)]&&_0x5515a8[_0x4b1afc(0x1f4)][_0x4b1afc(0x1fb)](_0x4b1afc(0x1c2));}[_0x29b850(0x242)](){const _0x5439f0=_0x29b850;this[_0x5439f0(0x20f)]=[],this[_0x5439f0(0x238)]=void 0x0,this[_0x5439f0(0x1fe)]=0x0,this[_0x5439f0(0x1e0)]();}[_0x29b850(0x274)](){const _0x29bd98=_0x29b850;this[_0x29bd98(0x210)]&&this[_0x29bd98(0x210)][_0x29bd98(0x279)](),this[_0x29bd98(0x298)][_0x29bd98(0x24a)](),this[_0x29bd98(0x24e)]=!0x1,this[_0x29bd98(0x238)]&&this[_0x29bd98(0x238)][_0x29bd98(0x226)][_0x29bd98(0x233)]();}[_0x29b850(0x1e1)](){const _0x58e232=_0x29b850,_0x42336c=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x299494=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x21210c=new _0x36dd8f(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x27ad4a=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]);_0x42336c[_0x58e232(0x206)]({'icon':_0x45f56f,'label':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x1dc)),'tooltip':!0x0,'class':_0x58e232(0x27a)}),_0x299494[_0x58e232(0x206)]({'icon':_0x5ddb6b,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x219)),'class':_0x58e232(0x1ea)}),_0x21210c[_0x58e232(0x24c)]({'tag':_0x58e232(0x25c),'attributes':{'class':[_0x58e232(0x21b)]},'children':[_0x58e232(0x1f9)]}),_0x27ad4a[_0x58e232(0x206)]({'icon':_0x58f9c4,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x20a)),'class':_0x58e232(0x272)}),_0x42336c[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x267083=>!_0x267083),_0x42336c['on'](_0x58e232(0x28d),()=>{const _0x5c359b=_0x58e232;this[_0x5c359b(0x23b)]();}),_0x299494[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x57fbd9=>!_0x57fbd9),_0x299494['on'](_0x58e232(0x28d),()=>{const _0x419881=_0x58e232;this[_0x419881(0x1fa)]();}),_0x27ad4a[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x2dd2b2=>!_0x2dd2b2),_0x27ad4a['on'](_0x58e232(0x28d),()=>{const _0x37b698=_0x58e232;this[_0x37b698(0x1ed)]();}),this[_0x58e232(0x251)]=_0x299494,this[_0x58e232(0x283)]=_0x21210c,this[_0x58e232(0x1b9)]=_0x27ad4a,this[_0x58e232(0x20e)][_0x58e232(0x269)](_0x42336c);}[_0x29b850(0x1fa)](){const _0x185ca6=_0x29b850,_0x34a1e3=this[_0x185ca6(0x20f)][_0x185ca6(0x202)];this[_0x185ca6(0x1fe)]<_0x34a1e3-0x1&&this[_0x185ca6(0x218)](this[_0x185ca6(0x1fe)]+0x1);}[_0x29b850(0x1ed)](){const _0x6878f6=_0x29b850;this[_0x6878f6(0x1fe)]>0x0&&this[_0x6878f6(0x218)](this[_0x6878f6(0x1fe)]-0x1);}async[_0x29b850(0x218)](_0x1bc63e){const _0x202800=_0x29b850;if(!this[_0x202800(0x238)])return;this[_0x202800(0x1fe)]=_0x1bc63e;const {mainView:_0x39f57f}=this[_0x202800(0x238)],_0xfb1144=this[_0x202800(0x20f)][this[_0x202800(0x20f)][_0x202800(0x202)]-0x1-this[_0x202800(0x1fe)]];if(!_0xfb1144)return;if(_0xfb1144[_0x202800(0x225)])return this[_0x202800(0x280)](_0xfb1144,_0x39f57f),void this[_0x202800(0x1e0)]();if(!_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)])return;_0x39f57f[_0x202800(0x1bd)](),this[_0x202800(0x238)]&&this[_0x202800(0x1ca)](_0x39f57f,this[_0x202800(0x238)][_0x202800(0x226)]);const _0x328522=_0xfb1144[_0x202800(0x1f8)][_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)]-0x1];if(_0x328522){const _0x2b94ad=this[_0x202800(0x291)];this[_0x202800(0x28f)](_0x39f57f);try{const _0x27cc36=_0x49ea10({'editor':_0x2b94ad,'changeGroups':_0x328522[_0x202800(0x1c7)],'documentContextContent':_0x328522[_0x202800(0x1df)],'showDiff':this[_0x202800(0x29c)],'trimUnchanged':!0x1});this[_0x202800(0x28f)](_0x39f57f),await new Promise(_0x5b1994=>setTimeout(_0x5b1994,0x32)),await _0x39f57f[_0x202800(0x278)]({'parts':_0x27cc36,'renderingStrategy':_0x202800(0x20d),'abortSignal':new AbortController()[_0x202800(0x1d8)]});}catch(_0x3403c6){this[_0x202800(0x273)](_0x3403c6)||console[_0x202800(0x1f6)](_0x202800(0x200),_0x3403c6);}}this[_0x202800(0x1e0)]();}[_0x29b850(0x1e0)](){const _0x26d2e9=_0x29b850;if(!this[_0x26d2e9(0x251)]||!this[_0x26d2e9(0x283)]||!this[_0x26d2e9(0x1b9)])return;const _0x4b4037=this[_0x26d2e9(0x20f)][_0x26d2e9(0x202)],_0x387fc2=_0x4b4037>0x1,_0x3d701f=this[_0x26d2e9(0x238)]?.[_0x26d2e9(0x25d)];if(_0x387fc2){this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)]||(this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x0);const _0x3eab40=_0x4b4037-this[_0x26d2e9(0x1fe)];this[_0x26d2e9(0x283)][_0x26d2e9(0x246)]&&(this[_0x26d2e9(0x283)][_0x26d2e9(0x246)][_0x26d2e9(0x24b)]=_0x3eab40+'/'+_0x4b4037),this[_0x26d2e9(0x251)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]<_0x4b4037-0x1,this[_0x26d2e9(0x1b9)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]>0x0;}else(this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)])&&(this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x1);}[_0x29b850(0x1d3)](_0x2e899d,_0x1ddfe4){const _0x551779=_0x29b850;_0x2e899d[_0x551779(0x244)](),_0x1ddfe4[_0x551779(0x22f)][_0x551779(0x244)](),this[_0x551779(0x24e)]=!0x0;}async[_0x29b850(0x280)](_0x4dd27c,_0x4742e2){const _0x45d80d=_0x29b850,_0x5f2686=_0x4f89fe(this[_0x45d80d(0x291)][_0x45d80d(0x215)],_0x45d80d(0x28e));_0x4742e2[_0x45d80d(0x271)](_0x5f2686),_0x4dd27c[_0x45d80d(0x225)]=!0x0,await this[_0x45d80d(0x298)][_0x45d80d(0x294)],_0x4742e2[_0x45d80d(0x288)](),this[_0x45d80d(0x238)]?.[_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)]&&(this[_0x45d80d(0x238)][_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)][_0x45d80d(0x1cc)]=!0x0);}[_0x29b850(0x1ca)](_0x4639b7,_0x4d3262){const _0x2f538e=_0x29b850;_0x4639b7[_0x2f538e(0x270)](),_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)]&&(_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)][_0x2f538e(0x1cc)]=!0x1);}async[_0x29b850(0x204)](_0x5a11e6,_0x4e4900){const _0x25e240=_0x29b850;await this[_0x25e240(0x298)][_0x25e240(0x294)],this[_0x25e240(0x24e)]=!0x1,_0x5a11e6[_0x25e240(0x1be)](),_0x4e4900[_0x25e240(0x22f)][_0x25e240(0x1be)]();}[_0x29b850(0x235)](){const _0x122843=_0x29b850;this[_0x122843(0x20e)][_0x122843(0x203)](_0x5b06b3=>{const _0x2b794e=_0x122843;_0x2b794e(0x23f)in _0x5b06b3&&(_0x5b06b3[_0x2b794e(0x23f)]=!0x1);});}}
|
|
23
|
+
const _0x15699c=_0x3545;function _0x439d(){const _0x55faa5=['$graveyard','1783953hnJuKY','rejected','_getExecuteDataRegular','_isNavigationNextButtonInView','_children','dialogClosed','stopAutoScroll','span','listenTo','createPositionBefore','hasPendingParts','type','batch','getSelectionAsFragment','clearErrorState','getRanges','slice','selection','actionCallId','getDocumentContext','getSelectedTableCells','stopListening','1/1','setChangeGroupState','changeGroups','getSelectedBlocks','_isAbortError','setLoading','7776076qIrrec','catch','state','showLoader','execute','replyCreated','bodyView','updateContent','first','nextSibling','setErrorState','close','static','getSelectedContent','clone','icon','_clone','_currentInteractionIndex','AI_ACTIONS_TRY_AGAIN','remove','parent','toggleSuggestionDisplayMode','change','applyOperation','getChild','Attribute','requires','insertSuggestion','_displayInteractionAtIndex','_isNavigationPreviousButtonInView','ck-ai-interaction-counter','_navigationCounter','removeNavigationItem','_setupCustomViews','processor','_balloonShowDiff','AIBalloon','_interactions','ck-ai-custom-action-button','7FXSYJM','nodeAfter','_stopInteraction','addNavigationItem','toolbar','start','config','editor','AIConnector','rootName','indexOf','92XYqPwQ','_clearInteractionHistory','getChildAtOffset','mainView','range','stickiness','addOperation','streaming','random','error','signal','createRange','startsWith','detachFromDom','schema','upsertCustomAIActionRating','18954552Rlqblv','interactionFinished','filter','documentFragment','miniToolbarView','push','map','_refreshInteraction','getAncestors','sourcePosition','isOfficialPlugin','getCommonAncestor','path','attachToDom','reinsert','_navigateToNext','AI_ACTIONS_NEXT_INTERACTION','setSelection','version','replyChangeGroupStateUpdated','Error\x20updating\x20content\x20during\x20navigation:','has','setTemplate','_wrapWithCommonAncestors','createPositionAfter','length','AIActions','isCollapsed','pending','AI_ACTIONS_PREVIOUS_INTERACTION','createPositionAt','howMany','ai-no-track-changes','element','areChangesVisible','plugins','344190rcczbR','root','rename','_aiConnector','ai-request-aborted','stopInteraction','stop','toData','locale','TrackChanges','balloonView','merge','_setLoadingState','hideLoader','_navigationNextButton','_interactionParams','includes','documentContextContent','Error\x20updating\x20content\x20in\x20replyContentUpdated:','model','modelToViewWithIds','actionName','document','set','applySuggestion','_clearLoadingState','bind','1248141qRaCxV','hasError','_applyOperationsAsSuggestions','message','replyContentUpdated','split','move','_disableCustomViews','isEnabled','_clearErrorState','clearLoading','getRoot','pluginName','executeAction','data','focus','replies','abort','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','AI_ACTIONS_GENERIC_ERROR','isDocumentOperation','showError','end','forEach','TrackChangesEditing','ai.availableReplyActions','16LUcsVv','get','getLimitElement','_updateNavigationUI','10lZEdFH','hideError','Error\x20updating\x20content\x20in\x20replyCreated:','baseVersion','queueEmptyPromise','enqueue','_executeAction','showChangesButton','_setErrorState','history','getFirstRange','ck-ai-navigation-button\x20ck-ai-previous-button','_bodyCollection','selectionRemoved','add','_appendChild','_navigationPreviousButton','_promiseQueue','_anchorOperation','_applyChanges','accepted','6199476ZIfLxP','isLoading','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_interaction','aiBalloon','TableSelection','upsertAIActionRating','_createInteraction','isPremiumPlugin','isBusy','_getExecuteDataInTable','operationsA','_execute','2aWyotB','destroy','243712dOKdKe','_isNavigationCounterInView','ck-ai-navigation-button\x20ck-ai-next-button','startAutoScroll','getOperations','position','open','insert','_customViews','Error\x20refreshing\x20interaction:','_filterOperationsOutsideRange','_navigateToPrevious','_clearSuggestionContent','textContent'];_0x439d=function(){return _0x55faa5;};return _0x439d();}(function(_0x14354b,_0x53ea67){const _0xed63a6=_0x3545,_0xef80ca=_0x14354b();while(!![]){try{const _0x220cd8=-parseInt(_0xed63a6(0x15a))/0x1+parseInt(_0xed63a6(0x158))/0x2*(parseInt(_0xed63a6(0x118))/0x3)+parseInt(_0xed63a6(0xc9))/0x4*(parseInt(_0xed63a6(0xfd))/0x5)+parseInt(_0xed63a6(0x14b))/0x6*(parseInt(_0xed63a6(0xbe))/0x7)+parseInt(_0xed63a6(0x132))/0x8*(parseInt(_0xed63a6(0x7b))/0x9)+parseInt(_0xed63a6(0x136))/0xa*(-parseInt(_0xed63a6(0x97))/0xb)+-parseInt(_0xed63a6(0xd9))/0xc;if(_0x220cd8===_0x53ea67)break;else _0xef80ca['push'](_0xef80ca['shift']());}catch(_0x4999cb){_0xef80ca['push'](_0xef80ca['shift']());}}}(_0x439d,0xdb70b));import{Plugin as _0x1faf9e}from'ckeditor5/src/core.js';import{AIConnector as _0x588ba4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x2012c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x29e859,ButtonView as _0x59578d,ViewCollection as _0x182af7,View as _0x521294,BodyCollection as _0x46d756}from'ckeditor5/src/ui.js';import{AIEditing as _0x117ebb}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x24b997}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4d887a,first as _0x33166d}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x497d99,IconRefresh as _0x373bb4,IconNextArrow as _0x4a4848,IconPreviousArrow as _0x4ee518,IconShowChangesOff as _0x176190}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1eb6ca}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x65afea}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5467a6}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1a3a0a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x435b1a}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x29862d,getOperationsFromReply as _0x26bc6f}from'../aicore/utils/getoperationsfromreply.js';function _0x3545(_0x4ca6af,_0x1a3a08){const _0x439d89=_0x439d();return _0x3545=function(_0x354556,_0x5b27e7){_0x354556=_0x354556-0x6f;let _0x1370ed=_0x439d89[_0x354556];return _0x1370ed;},_0x3545(_0x4ca6af,_0x1a3a08);}import{ModelDocumentFragment as _0xfff49a,ModelRange as _0x2c2dcc,ModelPosition as _0x5f0b22,_DetachOperation as _0x5e5347,transformOperationSets as _0x166bbc}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4cd77e}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x1faf9e{static get[_0x15699c(0xb1)](){return[_0x588ba4,_0x29e859,_0x117ebb,_0x1eb6ca,_0x435b1a];}static get[_0x15699c(0x124)](){const _0x2bc24b=_0x15699c;return _0x2bc24b(0xf3);}static get[_0x15699c(0xe3)](){return!0x0;}static get[_0x15699c(0x153)](){return!0x0;}[_0x15699c(0x100)];[_0x15699c(0xbc)]=[];[_0x15699c(0xa8)]=0x0;[_0x15699c(0x10c)];[_0x15699c(0xba)]=!0x1;[_0x15699c(0x74)]=new _0x182af7();[_0x15699c(0x146)];[_0x15699c(0xb6)];[_0x15699c(0x15b)]=!0x1;[_0x15699c(0x10b)];[_0x15699c(0xb4)]=!0x1;[_0x15699c(0x7e)]=!0x1;[_0x15699c(0x147)];[_0x15699c(0x142)];get[_0x15699c(0x14e)](){const _0xcfb603=_0x15699c;return this[_0xcfb603(0xbc)][this[_0xcfb603(0xbc)][_0xcfb603(0xf2)]-0x1];}constructor(_0x544f26){const _0x4c6e57=_0x15699c;super(_0x544f26),this[_0x4c6e57(0x142)]=new _0x46d756(this[_0x4c6e57(0xc5)][_0x4c6e57(0x105)]),this[_0x4c6e57(0x142)][_0x4c6e57(0xe6)](),this[_0x4c6e57(0x100)]=this[_0x4c6e57(0xc5)][_0x4c6e57(0xfc)][_0x4c6e57(0x133)](_0x4c6e57(0xc6)),this[_0x4c6e57(0x114)](_0x4c6e57(0x154),!0x1),this[_0x4c6e57(0x147)]=new _0x65afea(),this[_0x4c6e57(0xb8)]();}[_0x15699c(0x102)](){const _0x38a9e6=_0x15699c;this[_0x38a9e6(0xc0)]();}async[_0x15699c(0x125)](_0x1ec962,_0x1723eb,_0x4fb295){const _0xac7e5b=_0x15699c;if(this[_0xac7e5b(0xc5)][_0xac7e5b(0xfc)][_0xac7e5b(0xee)](_0xac7e5b(0x150))){if(this[_0xac7e5b(0xc5)][_0xac7e5b(0xfc)][_0xac7e5b(0x133)](_0xac7e5b(0x150))[_0xac7e5b(0x8f)]()){const {modelFragment:_0x59511b,anchorData:_0x423373}=this[_0xac7e5b(0x155)]();return this[_0xac7e5b(0x13c)](_0x1ec962,_0x59511b,_0x423373,_0x1723eb,_0x4fb295);}}const {modelFragment:_0x2560c2,anchorData:_0x4d233e}=this[_0xac7e5b(0x7d)]();return this[_0xac7e5b(0x13c)](_0x1ec962,_0x2560c2,_0x4d233e,_0x1723eb,_0x4fb295);}[_0x15699c(0x159)](){const _0x23029b=_0x15699c;this[_0x23029b(0x142)][_0x23029b(0xd6)](),super[_0x23029b(0x159)]();}[_0x15699c(0x7d)](){const _0x1e1815=_0x15699c,_0xc7ca2b=this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0x113)][_0x1e1815(0x8c)];if(_0xc7ca2b[_0x1e1815(0xf4)]){const _0x491c85=_0x33166d(_0xc7ca2b[_0x1e1815(0x94)]())||this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xd7)][_0x1e1815(0x134)](_0xc7ca2b);this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xad)](_0x5771e9=>{const _0x18a099=_0x1e1815;_0x5771e9[_0x18a099(0xea)](_0x491c85,'in');});}const _0xadff03=_0xc7ca2b[_0x1e1815(0x140)](),_0x1db9aa=this[_0x1e1815(0xf0)](this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xa4)](_0xc7ca2b),_0xadff03[_0x1e1815(0xc3)],_0xadff03[_0x1e1815(0x12e)]),_0x55a2e0=_0xc7ca2b[_0x1e1815(0x140)]()[_0x1e1815(0xc3)],_0x55d189=new Map();let _0x2ba8a0=_0x1db9aa;for(let _0x405f60=0x0;_0x405f60<_0x55a2e0[_0x1e1815(0xe5)][_0x1e1815(0xf2)];_0x405f60++)_0x55d189[_0x1e1815(0x114)](_0x2ba8a0,_0x55a2e0[_0x1e1815(0xe5)][_0x405f60]),_0x2ba8a0=_0x2ba8a0[_0x1e1815(0xaf)](0x0);return{'modelFragment':_0x1db9aa,'anchorData':_0x55d189};}[_0x15699c(0x155)](){const _0x32a091=_0x15699c,_0x5ebd48=this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0x113)][_0x32a091(0x8c)],_0x4885c0=this[_0x32a091(0xc5)][_0x32a091(0xfc)][_0x32a091(0x133)](_0x32a091(0x150))[_0x32a091(0x88)](),_0x184d1e=_0x5ebd48[_0x32a091(0x140)]()[_0x32a091(0xc3)][_0x32a091(0xab)][_0x32a091(0xab)],_0x5a513b=this[_0x32a091(0xf0)](_0x4885c0,this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0x84)](_0x184d1e),this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0xf1)](_0x184d1e)),_0x30c7de=_0x5ebd48[_0x32a091(0x140)]()[_0x32a091(0xc3)],_0x107ba9=new Map();let _0x4e3ef6=_0x5a513b;for(let _0x1ad85c=0x0;_0x1ad85c<_0x30c7de[_0x32a091(0xe5)][_0x32a091(0xf2)];_0x1ad85c++)if(_0x107ba9[_0x32a091(0x114)](_0x4e3ef6,_0x30c7de[_0x32a091(0xe5)][_0x1ad85c]),_0x1ad85c<_0x30c7de[_0x32a091(0xe5)][_0x32a091(0xf2)]-0x1)_0x4e3ef6=_0x4e3ef6[_0x32a091(0xaf)](0x0);else{let _0x45723e=_0x4e3ef6[_0x32a091(0xa0)];for(;_0x45723e;)_0x107ba9[_0x32a091(0x114)](_0x45723e,_0x30c7de[_0x32a091(0xe5)][_0x1ad85c]),_0x45723e=_0x45723e[_0x32a091(0xa0)];}return{'modelFragment':_0x5a513b,'anchorData':_0x107ba9};}[_0x15699c(0x13c)](_0xdf3361,_0x30b406,_0x1909cd,_0x43b9fa,_0x1c89b8){const _0x3c7dd2=_0x15699c,_0x5576a8=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0x133)](_0x117ebb),_0x13a952=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0x133)](_0x1eb6ca),_0x1480e8=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x110)][_0x3c7dd2(0x113)][_0x3c7dd2(0x8c)],_0x1d6048=_0x5576a8[_0x3c7dd2(0x111)](_0x30b406),_0x7290d0=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x126)][_0x3c7dd2(0xb9)][_0x3c7dd2(0x104)](_0x1d6048),_0x5d3177=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x110)][_0x3c7dd2(0x113)][_0x3c7dd2(0xeb)],_0x33d0fc=[..._0x1480e8[_0x3c7dd2(0x8a)]()];let _0x3fd234=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xc4)][_0x3c7dd2(0x133)](_0x3c7dd2(0x131))||[..._0x4cd77e];this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0xee)](_0x3c7dd2(0x106))||(_0x3fd234=_0x3fd234[_0x3c7dd2(0xdb)](_0x31ddb2=>_0x3c7dd2(0xb2)!=_0x31ddb2));const _0x29d55c=new _0x2012c1(this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x105)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x3c7dd2(0xa6),'customView':this[_0x3c7dd2(0x74)]},'showUnchangedParts':!0x0,'availableActions':_0x3fd234},this[_0x3c7dd2(0x142)]);return _0x13a952[_0x3c7dd2(0x72)]({'index':0x3e8*Math[_0x3c7dd2(0xd1)]()%0x3e8,'title':_0x43b9fa,'icon':_0x1c89b8||_0x497d99,'mainView':_0x29d55c,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0xee)](_0x3c7dd2(0x106)),'ranges':_0x33d0fc}),this[_0x3c7dd2(0x109)](_0x29d55c,_0x13a952),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x115),()=>{const _0x2c8a03=_0x3c7dd2;this[_0x2c8a03(0x149)](_0x30b406,_0x1909cd,!0x1);}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0xb2),()=>{const _0x1ae6b7=_0x3c7dd2;this[_0x1ae6b7(0x149)](_0x30b406,_0x1909cd,!0x0);}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x143),()=>{const _0x506747=_0x3c7dd2;this[_0x506747(0xc0)](),this[_0x506747(0x11f)]();}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x80),()=>{const _0xcd6aa2=_0x3c7dd2;if(this[_0xcd6aa2(0x14e)]&&this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][_0xcd6aa2(0xf2)]>0x0){const _0x3eeb0f=this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][_0xcd6aa2(0xf2)]-0x1],_0xc202e2=_0x3eeb0f[_0xcd6aa2(0x93)][0x0];_0xc202e2&&_0xcd6aa2(0xf5)===_0xc202e2[_0xcd6aa2(0x99)]&&_0x3eeb0f[_0xcd6aa2(0x92)](0x0,_0xcd6aa2(0x7c));}this[_0xcd6aa2(0xc0)](),this[_0xcd6aa2(0xca)](),this[_0xcd6aa2(0x90)](_0x13a952);}),this[_0x3c7dd2(0x152)](_0x7290d0,_0x5d3177,_0x29d55c,_0x13a952,_0xdf3361);}[_0x15699c(0xf0)](_0x25f737,_0x4b5e1b,_0xf6a2a3){const _0x113458=_0x15699c,_0x55ffb9=this[_0x113458(0xc5)][_0x113458(0x110)][_0x113458(0xd4)](_0x4b5e1b,_0xf6a2a3)[_0x113458(0xe4)](),_0x512889=_0x55ffb9['is'](_0x113458(0xdc))?[]:_0x55ffb9[_0x113458(0xe1)]({'includeSelf':!0x0})[_0x113458(0x8b)](0x1);if(_0x512889[_0x113458(0xf2)]){const _0x1e52a3=_0x512889[_0x113458(0xdf)](_0x4a7a83=>_0x4a7a83[_0x113458(0xa7)](!0x1));for(let _0x59d511=0x1;_0x59d511<_0x1e52a3[_0x113458(0xf2)];_0x59d511++)_0x1e52a3[_0x59d511-0x1][_0x113458(0x145)](_0x1e52a3[_0x59d511]);return _0x1e52a3[_0x1e52a3[_0x113458(0xf2)]-0x1][_0x113458(0x145)](_0x25f737),new _0xfff49a(_0x1e52a3[0x0]);}return _0x25f737;}async[_0x15699c(0x152)](_0x184c3e,_0x37226e,_0x3a4495,_0x13990b,_0x4a5cb6){const _0x14d08a=_0x15699c,_0xa7350f=this[_0x14d08a(0xc5)];this[_0x14d08a(0x10c)]={'action':_0x4a5cb6,'content':_0x184c3e,'version':_0x37226e,'mainView':_0x3a4495,'aiBalloon':_0x13990b};const _0x127853=new _0x24b997({'connector':this[_0x14d08a(0x100)],'editor':_0xa7350f,'content':_0x184c3e,'version':_0x37226e,..._0x4a5cb6});this[_0x14d08a(0xbc)][_0x14d08a(0xde)](_0x127853),_0x3a4495[_0x14d08a(0x137)]();const _0x1b7488=(_0x6a20f,_0x265e00,_0x30c0e1=!0x1,_0x219740=_0x14d08a(0xd0))=>this[_0x14d08a(0x147)][_0x14d08a(0x13b)](async _0x4733cd=>{const _0x56a7fa=_0x14d08a;try{const _0x33fbb2=_0x1a3a0a({'editor':_0xa7350f,'changeGroups':_0x6a20f[_0x56a7fa(0x93)],'documentContextContent':_0x6a20f[_0x56a7fa(0x10e)],'showDiff':_0x30c0e1,'trimUnchanged':!0x1});await _0x265e00[_0x56a7fa(0x9e)]({'parts':_0x33fbb2,'renderingStrategy':_0x219740,'abortSignal':_0x4733cd});}catch(_0x47f914){if(this[_0x56a7fa(0x95)](_0x47f914))return;throw _0x47f914;}});this[_0x14d08a(0x14e)]['on'](_0x14d08a(0x9c),(_0x23e842,_0x3279d0)=>{const _0x31a5b0=_0x14d08a;_0x3a4495[_0x31a5b0(0x10a)](),_0x13990b[_0x31a5b0(0x6f)](),_0x1b7488(_0x3279d0,_0x3a4495)[_0x31a5b0(0x98)](_0x5eeae8=>{const _0x2e360b=_0x31a5b0;this[_0x2e360b(0x95)](_0x5eeae8)||(console[_0x2e360b(0xd2)](_0x2e360b(0x138),_0x5eeae8),this[_0x2e360b(0x13e)](_0x127853,_0x3a4495));});}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0x11c),(_0x5beea3,_0x251136)=>{const _0x2f00c6=_0x14d08a;_0x1b7488(_0x251136,_0x3a4495)[_0x2f00c6(0x98)](_0x3c940e=>{const _0x528e99=_0x2f00c6;this[_0x528e99(0x95)](_0x3c940e)||(console[_0x528e99(0xd2)](_0x528e99(0x10f),_0x3c940e),this[_0x528e99(0x13e)](_0x127853,_0x3a4495));});}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0xda),async()=>{const _0x1a0eaf=_0x14d08a;try{await this[_0x1a0eaf(0x116)](_0x3a4495,_0x13990b),this[_0x1a0eaf(0x135)](),await this[_0x1a0eaf(0x147)][_0x1a0eaf(0x13a)];}catch(_0x1e5bd9){this[_0x1a0eaf(0x95)](_0x1e5bd9)||(console[_0x1a0eaf(0xd2)](_0x1a0eaf(0x12a),_0x1e5bd9),this[_0x1a0eaf(0x13e)](_0x127853,_0x3a4495));}finally{_0x13990b[_0x1a0eaf(0x81)]();}}),this[_0x14d08a(0x83)](_0x3a4495,_0x14d08a(0xac),async(_0x6ed8f1,{showDiff:_0x20e440})=>{const _0x472b8b=_0x14d08a;try{this[_0x472b8b(0xba)]=_0x20e440;const _0x9a7266=this[_0x472b8b(0x14e)][_0x472b8b(0x128)][this[_0x472b8b(0x14e)][_0x472b8b(0x128)][_0x472b8b(0xf2)]-0x1];_0x9a7266&&await _0x1b7488(_0x9a7266,_0x3a4495,_0x20e440,_0x472b8b(0xa3));}catch(_0x4e669c){this[_0x472b8b(0x95)](_0x4e669c)||(console[_0x472b8b(0xd2)](_0x472b8b(0x14d),_0x4e669c),this[_0x472b8b(0x13e)](_0x127853,_0x3a4495));}}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0xec),(_0xedfec1,{reply:_0x366569})=>{const _0x11cb93=_0x14d08a,_0x45de41={'positiveCount':_0x366569[_0x11cb93(0x93)][_0x11cb93(0xdb)](_0x449f02=>_0x11cb93(0x14a)===_0x449f02[_0x11cb93(0x99)])[_0x11cb93(0xf2)],'totalCount':_0x366569[_0x11cb93(0x93)][_0x11cb93(0xf2)]},_0x574168=this[_0x11cb93(0x14e)][_0x11cb93(0x8d)],_0x355eae=this[_0x11cb93(0x14e)][_0x11cb93(0x112)];_0x355eae?this[_0x11cb93(0x100)][_0x11cb93(0x151)](_0x355eae,_0x574168,_0x45de41):this[_0x11cb93(0x100)][_0x11cb93(0xd8)](_0x574168,_0x45de41);}),this[_0x14d08a(0x109)](_0x3a4495,_0x13990b);try{const _0x5bf241=await this[_0x14d08a(0x14e)][_0x14d08a(0xc3)]();return this[_0x14d08a(0x135)](),_0x5bf241;}catch(_0x1ddd2b){if(this[_0x14d08a(0x95)](_0x1ddd2b))return;_0x3a4495[_0x14d08a(0x10a)](),this[_0x14d08a(0x13e)](_0x127853,_0x3a4495);}}[_0x15699c(0x149)](_0x186082,_0x2871e7,_0xcb42f6){const _0x586651=_0x15699c,_0x11a01e=this[_0x586651(0xc5)];if(_0xcb42f6&&!_0x11a01e[_0x586651(0xfc)][_0x586651(0xee)](_0x586651(0x106)))throw new _0x4d887a(_0x586651(0xf9),null);const _0x25b038=this[_0x586651(0xc5)][_0x586651(0xfc)][_0x586651(0x133)](_0x435b1a),_0x4dd592=this[_0x586651(0x14e)],_0xa0cff4=this[_0x586651(0x14e)][_0x586651(0x128)][this[_0x586651(0x14e)][_0x586651(0x128)][_0x586651(0xf2)]-0x1],_0x2b29cd=_0xa0cff4[_0x586651(0x93)];_0xa0cff4[_0x586651(0x92)](0x0,_0x586651(0x14a));let _0x967939=_0x26bc6f({'editor':_0x11a01e,'reply':_0xa0cff4,'interaction':_0x4dd592,'groups':_0x2b29cd,'transform':!0x1,'documentCompare':_0x25b038,'documentCompareOptions':{'anchor':_0x11a01e[_0x586651(0x110)][_0x586651(0xf7)](_0x186082,0x0),'markDeletions':_0xcb42f6}});_0x967939=this[_0x586651(0x76)](_0x967939,_0x2871e7);for(const _0x56b406 of _0x967939)this[_0x586651(0x148)](_0x2871e7,_0x56b406,_0x11a01e[_0x586651(0x110)][_0x586651(0x113)][_0x586651(0x123)]());const _0x83803c=_0x4dd592[_0x586651(0x8e)]()[_0x586651(0xeb)],_0x5114ef=_0x11a01e[_0x586651(0x110)][_0x586651(0x113)][_0x586651(0x13f)][_0x586651(0x70)](_0x83803c),_0x1026be={'document':_0x11a01e[_0x586651(0x110)][_0x586651(0x113)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5e3e2e=_0x166bbc(_0x967939,_0x5114ef,_0x1026be)[_0x586651(0x156)];_0x11a01e[_0x586651(0x110)][_0x586651(0xad)](_0x2bacc1=>{const _0x2f37c0=_0x586651;if(_0x2bacc1[_0x2f37c0(0xea)](_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0x113)][_0x2f37c0(0x8c)][_0x2f37c0(0x127)]),_0xcb42f6)_0x11a01e[_0x2f37c0(0xfc)][_0x2f37c0(0x133)](_0x2f37c0(0x130))[_0x2f37c0(0x11a)](_0x5e3e2e);else{for(const _0x4b48a9 of _0x5e3e2e)_0x4b48a9[_0x2f37c0(0x139)]=_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0x113)][_0x2f37c0(0xeb)],_0x29862d(_0x11a01e,_0x4b48a9),_0x2bacc1[_0x2f37c0(0x87)][_0x2f37c0(0xcf)](_0x4b48a9),_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0xae)](_0x4b48a9);}}),this[_0x586651(0xc5)][_0x586651(0xfc)][_0x586651(0x133)](_0x586651(0xbb))[_0x586651(0xa2)]();}[_0x15699c(0x76)](_0x109e30,_0x57bea5){const _0x4ca8fd=_0x15699c;return _0x109e30[_0x4ca8fd(0xdb)](_0x1e100f=>{const _0x1a9c4=_0x4ca8fd;if(_0x1a9c4(0xff)==_0x1e100f[_0x1a9c4(0x86)]){const _0x149b68=_0x1e100f[_0x1a9c4(0x71)][_0x1a9c4(0xbf)];return!_0x57bea5[_0x1a9c4(0xee)](_0x149b68);}if(_0x1e100f[_0x1a9c4(0x86)][_0x1a9c4(0xc8)](_0x1a9c4(0xb0))>-0x1){const _0x245f5d=_0x1e100f[_0x1a9c4(0xcd)][_0x1a9c4(0xc3)][_0x1a9c4(0xbf)];return!_0x57bea5[_0x1a9c4(0xee)](_0x245f5d);}return!0x0;});}[_0x15699c(0x148)](_0x2e7d70,_0x20a9d3,_0x1a012a){const _0xe0b7e0=_0x15699c,_0x2532f6=_0x20a9d3[_0xe0b7e0(0xa5)]();for(const _0x4b5987 in _0x20a9d3){const _0x919b4c=_0x20a9d3[_0x4b5987];_0x919b4c instanceof _0x2c2dcc?_0x20a9d3[_0x4b5987]=new _0x2c2dcc(_0x408812(_0x919b4c[_0xe0b7e0(0xc3)]),_0x408812(_0x919b4c[_0xe0b7e0(0x12e)])):_0x919b4c instanceof _0x5f0b22&&(_0x20a9d3[_0x4b5987]=_0x408812(_0x919b4c));}if([_0xe0b7e0(0x73),_0xe0b7e0(0x11e),_0xe0b7e0(0xaa),_0xe0b7e0(0xe7),_0xe0b7e0(0x11d),_0xe0b7e0(0x108)][_0xe0b7e0(0x10d)](_0x2532f6[_0xe0b7e0(0x86)])){if(_0x2532f6[_0xe0b7e0(0x12c)]=!0x1,_0x2532f6[_0xe0b7e0(0x139)]=null,_0xe0b7e0(0xaa)==_0x2532f6[_0xe0b7e0(0x86)]){const _0x3ea1ff=_0x2532f6[_0xe0b7e0(0xe2)],_0x3cdb30=_0x2532f6[_0xe0b7e0(0xf8)];new _0x5e5347(_0x3ea1ff,_0x3cdb30)[_0xe0b7e0(0x157)]();}else _0x2532f6[_0xe0b7e0(0x157)]();}function _0x408812(_0xc0f936){const _0x1927ec=_0xe0b7e0;if(_0x1927ec(0x7a)==_0xc0f936[_0x1927ec(0xfe)][_0x1927ec(0xc7)])return _0xc0f936;const _0x2310c6=[];let _0x36e519=_0xc0f936[_0x1927ec(0xfe)];for(let _0x25f98b=0x0;_0x25f98b<_0xc0f936[_0x1927ec(0xe5)][_0x1927ec(0xf2)];_0x25f98b++){const _0x51ed44=_0x2e7d70[_0x1927ec(0x133)](_0x36e519)||0x0;_0x2310c6[_0x25f98b]=_0xc0f936[_0x1927ec(0xe5)][_0x25f98b]+_0x51ed44,_0x36e519=_0x36e519[_0x1927ec(0xcb)](_0xc0f936[_0x1927ec(0xe5)][_0x25f98b]);}return new _0x5f0b22(_0x1a012a,_0x2310c6,_0xc0f936[_0x1927ec(0xce)]);}}[_0x15699c(0xe0)](){const _0x584631=_0x15699c;if(!this[_0x584631(0x10c)])return;this[_0x584631(0xbc)][_0x584631(0xf2)]>0x0&&this[_0x584631(0xc0)](),this[_0x584631(0xa8)]=0x0,this[_0x584631(0xba)]=!0x1;const {action:_0x12b2a0,content:_0x472045,version:_0x2dc08e,mainView:_0x592290,aiBalloon:_0x2934e5}=this[_0x584631(0x10c)];_0x592290[_0x584631(0xfb)]=!0x1,_0x592290[_0x584631(0x137)](),this[_0x584631(0x121)](_0x592290,_0x2934e5);const _0x4a5ec2=_0x592290;_0x4a5ec2[_0x584631(0xdd)]&&_0x4a5ec2[_0x584631(0xdd)][_0x584631(0x13d)]&&_0x4a5ec2[_0x584631(0xdd)][_0x584631(0x13d)][_0x584631(0x114)]({'isOn':!0x1,'icon':_0x176190}),this[_0x584631(0x78)](_0x592290),_0x592290[_0x584631(0x9a)](),this[_0x584631(0x135)](),this[_0x584631(0x90)](_0x592290),this[_0x584631(0x152)](_0x472045,_0x2dc08e,_0x592290,_0x2934e5,_0x12b2a0)[_0x584631(0x98)](_0x4003e8=>{const _0x316baf=_0x584631;this[_0x316baf(0x95)](_0x4003e8)||console[_0x316baf(0xd2)](_0x316baf(0x75),_0x4003e8);});}[_0x15699c(0x78)](_0x2669f9){const _0xbd48c8=_0x15699c,_0x504a17=_0x2669f9[_0xbd48c8(0x9d)][_0xbd48c8(0x7f)];for(;_0x504a17[_0xbd48c8(0xf2)]>0x0;)_0x504a17[_0xbd48c8(0xaa)](_0x504a17[_0xbd48c8(0x9f)]);_0x2669f9[_0xbd48c8(0x9d)][_0xbd48c8(0x85)]=!0x1;}[_0x15699c(0x95)](_0x39df35){const _0x7dd49f=_0x15699c;return!!_0x39df35[_0x7dd49f(0x11b)]&&_0x39df35[_0x7dd49f(0x11b)][_0x7dd49f(0xd5)](_0x7dd49f(0x101));}[_0x15699c(0xca)](){const _0x2b3a3d=_0x15699c;this[_0x2b3a3d(0xbc)]=[],this[_0x2b3a3d(0x10c)]=void 0x0,this[_0x2b3a3d(0xa8)]=0x0,this[_0x2b3a3d(0x135)]();}[_0x15699c(0xc0)](){const _0x2beac4=_0x15699c;this[_0x2beac4(0x14e)]&&this[_0x2beac4(0x14e)][_0x2beac4(0x103)](),this[_0x2beac4(0x147)][_0x2beac4(0x129)](),this[_0x2beac4(0x154)]=!0x1,this[_0x2beac4(0x10c)]&&this[_0x2beac4(0x10c)][_0x2beac4(0x14f)][_0x2beac4(0x81)]();}[_0x15699c(0xb8)](){const _0xe9df56=_0x15699c,_0x19623e=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x2a4def=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x5ea1bf=new _0x521294(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x4a2308=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]);_0x19623e[_0xe9df56(0x114)]({'icon':_0x373bb4,'label':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xa9)),'tooltip':!0x0,'class':_0xe9df56(0xbd)}),_0x2a4def[_0xe9df56(0x114)]({'icon':_0x4ee518,'tooltip':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xf6)),'class':_0xe9df56(0x141)}),_0x5ea1bf[_0xe9df56(0xef)]({'tag':_0xe9df56(0x82),'attributes':{'class':[_0xe9df56(0xb5)]},'children':[_0xe9df56(0x91)]}),_0x4a2308[_0xe9df56(0x114)]({'icon':_0x4a4848,'tooltip':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xe9)),'class':_0xe9df56(0x15c)}),_0x19623e[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x2bb25e=>!_0x2bb25e),_0x19623e['on'](_0xe9df56(0x9b),()=>{const _0x1e25f6=_0xe9df56;this[_0x1e25f6(0xe0)]();}),_0x2a4def[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x25c7d1=>!_0x25c7d1),_0x2a4def['on'](_0xe9df56(0x9b),()=>{const _0x49cefb=_0xe9df56;this[_0x49cefb(0x77)]();}),_0x4a2308[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x49af4e=>!_0x49af4e),_0x4a2308['on'](_0xe9df56(0x9b),()=>{const _0x192cfe=_0xe9df56;this[_0x192cfe(0xe8)]();}),this[_0xe9df56(0x146)]=_0x2a4def,this[_0xe9df56(0xb6)]=_0x5ea1bf,this[_0xe9df56(0x10b)]=_0x4a2308,this[_0xe9df56(0x74)][_0xe9df56(0x144)](_0x19623e);}[_0x15699c(0x77)](){const _0xd757d5=_0x15699c,_0x5d0bce=this[_0xd757d5(0xbc)][_0xd757d5(0xf2)];this[_0xd757d5(0xa8)]<_0x5d0bce-0x1&&this[_0xd757d5(0xb3)](this[_0xd757d5(0xa8)]+0x1);}[_0x15699c(0xe8)](){const _0x1cdb87=_0x15699c;this[_0x1cdb87(0xa8)]>0x0&&this[_0x1cdb87(0xb3)](this[_0x1cdb87(0xa8)]-0x1);}async[_0x15699c(0xb3)](_0x28938a){const _0x16817a=_0x15699c;if(!this[_0x16817a(0x10c)])return;this[_0x16817a(0xa8)]=_0x28938a;const {mainView:_0x5279b1}=this[_0x16817a(0x10c)],_0x28da9b=this[_0x16817a(0xbc)][this[_0x16817a(0xbc)][_0x16817a(0xf2)]-0x1-this[_0x16817a(0xa8)]];if(!_0x28da9b)return;if(_0x28da9b[_0x16817a(0x119)])return this[_0x16817a(0x13e)](_0x28da9b,_0x5279b1),void this[_0x16817a(0x135)]();if(!_0x28da9b[_0x16817a(0x128)][_0x16817a(0xf2)])return;_0x5279b1[_0x16817a(0x137)](),this[_0x16817a(0x10c)]&&this[_0x16817a(0x121)](_0x5279b1,this[_0x16817a(0x10c)][_0x16817a(0x14f)]);const _0x201152=_0x28da9b[_0x16817a(0x128)][_0x28da9b[_0x16817a(0x128)][_0x16817a(0xf2)]-0x1];if(_0x201152){const _0x568cf2=this[_0x16817a(0xc5)];this[_0x16817a(0x78)](_0x5279b1);try{const _0x776a21=_0x1a3a0a({'editor':_0x568cf2,'changeGroups':_0x201152[_0x16817a(0x93)],'documentContextContent':_0x201152[_0x16817a(0x10e)],'showDiff':this[_0x16817a(0xba)],'trimUnchanged':!0x1});this[_0x16817a(0x78)](_0x5279b1),await new Promise(_0x58bdcd=>setTimeout(_0x58bdcd,0x32)),await _0x5279b1[_0x16817a(0x9e)]({'parts':_0x776a21,'renderingStrategy':_0x16817a(0xa3),'abortSignal':new AbortController()[_0x16817a(0xd3)]});}catch(_0x146f62){this[_0x16817a(0x95)](_0x146f62)||console[_0x16817a(0xd2)](_0x16817a(0xed),_0x146f62);}}this[_0x16817a(0x135)]();}[_0x15699c(0x135)](){const _0x40a260=_0x15699c;if(!this[_0x40a260(0x146)]||!this[_0x40a260(0xb6)]||!this[_0x40a260(0x10b)])return;const _0x10098c=this[_0x40a260(0xbc)][_0x40a260(0xf2)],_0x47058b=_0x10098c>0x1,_0xbc8bc3=this[_0x40a260(0x10c)]?.[_0x40a260(0xcc)];if(_0x47058b){this[_0x40a260(0xb4)]||this[_0x40a260(0x15b)]||this[_0x40a260(0x7e)]||(this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0x146)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0x146)]),this[_0x40a260(0xb4)]=!0x0,this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0xb6)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0xb6)]),this[_0x40a260(0x15b)]=!0x0,this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0x10b)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0x10b)]),this[_0x40a260(0x7e)]=!0x0);const _0x4a48be=_0x10098c-this[_0x40a260(0xa8)];this[_0x40a260(0xb6)][_0x40a260(0xfa)]&&(this[_0x40a260(0xb6)][_0x40a260(0xfa)][_0x40a260(0x79)]=_0x4a48be+'/'+_0x10098c),this[_0x40a260(0x146)][_0x40a260(0x120)]=this[_0x40a260(0xa8)]<_0x10098c-0x1,this[_0x40a260(0x10b)][_0x40a260(0x120)]=this[_0x40a260(0xa8)]>0x0;}else(this[_0x40a260(0xb4)]||this[_0x40a260(0x15b)]||this[_0x40a260(0x7e)])&&(this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0x146)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0x146)]),this[_0x40a260(0xb4)]=!0x1,this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0xb6)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0xb6)]),this[_0x40a260(0x15b)]=!0x1,this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0x10b)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0x10b)]),this[_0x40a260(0x7e)]=!0x1);}[_0x15699c(0x109)](_0x58e81d,_0x4764bd){const _0x438ad8=_0x15699c;_0x58e81d[_0x438ad8(0x96)](),_0x4764bd[_0x438ad8(0x107)][_0x438ad8(0x96)](),this[_0x438ad8(0x154)]=!0x0;}async[_0x15699c(0x13e)](_0x2d9eb8,_0xce8c1a){const _0x5b7cb8=_0x15699c,_0x3e36c2=_0x5467a6(this[_0x5b7cb8(0xc5)][_0x5b7cb8(0x105)],_0x5b7cb8(0x12b));_0xce8c1a[_0x5b7cb8(0x12d)](_0x3e36c2),_0x2d9eb8[_0x5b7cb8(0x119)]=!0x0,await this[_0x5b7cb8(0x147)][_0x5b7cb8(0x13a)],_0xce8c1a[_0x5b7cb8(0xa1)](),this[_0x5b7cb8(0x10c)]?.[_0x5b7cb8(0x14f)][_0x5b7cb8(0x107)][_0x5b7cb8(0xc2)]&&(this[_0x5b7cb8(0x10c)][_0x5b7cb8(0x14f)][_0x5b7cb8(0x107)][_0x5b7cb8(0xc2)][_0x5b7cb8(0x14c)]=!0x0);}[_0x15699c(0x121)](_0x2a89cb,_0x235161){const _0x3c4163=_0x15699c;_0x2a89cb[_0x3c4163(0x89)](),_0x235161[_0x3c4163(0x107)][_0x3c4163(0xc2)]&&(_0x235161[_0x3c4163(0x107)][_0x3c4163(0xc2)][_0x3c4163(0x14c)]=!0x1);}async[_0x15699c(0x116)](_0x243354,_0x28cc23){const _0x4ac9c6=_0x15699c;await this[_0x4ac9c6(0x147)][_0x4ac9c6(0x13a)],this[_0x4ac9c6(0x154)]=!0x1,_0x243354[_0x4ac9c6(0x122)](),_0x28cc23[_0x4ac9c6(0x107)][_0x4ac9c6(0x122)]();}[_0x15699c(0x11f)](){const _0x4d437f=_0x15699c;this[_0x4d437f(0x74)][_0x4d437f(0x12f)](_0xd4a0b6=>{const _0x536474=_0x4d437f;_0x536474(0x120)in _0xd4a0b6&&(_0xd4a0b6[_0x536474(0x120)]=!0x1);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x336a7f=_0x287b;function _0x2d87(){const _0xced1d1=['sendRequest','editor','2BdjDcL','html','replies','actionName','19530JqtPCh','connector','executeAction','1555wZlLYz','replyCreated','createReply','55ihSAyz','getDocumentContext','content','184dznmFR','model','3299604MmDEdV','1642814PFWtZj','executeCustomAction','4892592dMDcJo','TEXT','delegate','push','userMessage','2302840CqBlIu','version','8538vaVBfv','Current\x20document','hasError','current-document','fire','10734230JHdtay','args','45CbGgIs'];_0x2d87=function(){return _0xced1d1;};return _0x2d87();}(function(_0x53e7f1,_0x5bd185){const _0x265df3=_0x287b,_0x1e1403=_0x53e7f1();while(!![]){try{const _0x57847b=parseInt(_0x265df3(0x135))/0x1*(parseInt(_0x265df3(0x145))/0x2)+parseInt(_0x265df3(0x139))/0x3*(-parseInt(_0x265df3(0x142))/0x4)+parseInt(_0x265df3(0x13c))/0x5*(-parseInt(_0x265df3(0x14e))/0x6)+parseInt(_0x265df3(0x144))/0x7+parseInt(_0x265df3(0x14c))/0x8*(-parseInt(_0x265df3(0x132))/0x9)+-parseInt(_0x265df3(0x130))/0xa+-parseInt(_0x265df3(0x13f))/0xb*(-parseInt(_0x265df3(0x147))/0xc);if(_0x57847b===_0x5bd185)break;else _0x1e1403['push'](_0x1e1403['shift']());}catch(_0x57ffa1){_0x1e1403['push'](_0x1e1403['shift']());}}}(_0x2d87,0xdb407));function _0x287b(_0x2a6e9d,_0x5df0f3){const _0x2d871b=_0x2d87();return _0x287b=function(_0x287bb5,_0x2c0bfb){_0x287bb5=_0x287bb5-0x12e;let _0x51eee3=_0x2d871b[_0x287bb5];return _0x51eee3;},_0x287b(_0x2a6e9d,_0x5df0f3);}import{AIInteraction as _0x42f648,AI_MODEL_EVENT_NAMES as _0x23bfd9}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xf774de}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2f6a94}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x42f648{[_0x336a7f(0x141)];[_0x336a7f(0x14d)];[_0x336a7f(0x138)];[_0x336a7f(0x131)];[_0x336a7f(0x14b)];[_0x336a7f(0x143)];[_0x336a7f(0x150)]=!0x1;constructor(_0x5a1ad5){const _0x52b7fa=_0x336a7f;super(_0x5a1ad5),this[_0x52b7fa(0x141)]=_0x5a1ad5[_0x52b7fa(0x141)],this[_0x52b7fa(0x14d)]=_0x5a1ad5[_0x52b7fa(0x14d)],this[_0x52b7fa(0x138)]=_0x5a1ad5[_0x52b7fa(0x138)],this[_0x52b7fa(0x131)]=_0x5a1ad5[_0x52b7fa(0x131)],this[_0x52b7fa(0x14b)]=_0x5a1ad5[_0x52b7fa(0x14b)],this[_0x52b7fa(0x143)]=_0x5a1ad5[_0x52b7fa(0x143)];}async[_0x336a7f(0x133)](){const _0x843358=_0x336a7f;return this[_0x843358(0x138)]?this[_0x843358(0x13a)][_0x843358(0x13b)]({'content':this[_0x843358(0x141)],'actionName':this[_0x843358(0x138)],'args':this[_0x843358(0x131)]}):this[_0x843358(0x13a)][_0x843358(0x146)]({'content':this[_0x843358(0x141)],'message':this[_0x843358(0x14b)],'model':this[_0x843358(0x143)],'outputFormat':_0x843358(0x136)});}[_0x336a7f(0x140)](){const _0x26b521=_0x336a7f;return{'type':_0xf774de[_0x26b521(0x148)],'content':this[_0x26b521(0x141)],'version':this[_0x26b521(0x14d)],'label':_0x26b521(0x14f),'uiId':_0x26b521(0x12e)};}[_0x336a7f(0x13e)](_0x59809a){const _0x2a6521=_0x336a7f,_0x4272ee=new _0x2f6a94({'editor':this[_0x2a6521(0x134)],'documentContextContent':this[_0x2a6521(0x141)],..._0x59809a});return this[_0x2a6521(0x137)][_0x2a6521(0x14a)](_0x4272ee),_0x4272ee[_0x2a6521(0x149)](..._0x23bfd9)['to'](this),this[_0x2a6521(0x12f)](_0x2a6521(0x13d),_0x4272ee),_0x4272ee;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f0389=_0xc2c2;(function(_0x113c52,_0x1958e6){const _0x595d80=_0xc2c2,_0x817fa0=_0x113c52();while(!![]){try{const _0x13b9ac=-parseInt(_0x595d80(0x12b))/0x1+parseInt(_0x595d80(0x121))/0x2+parseInt(_0x595d80(0x115))/0x3*(-parseInt(_0x595d80(0x11d))/0x4)+parseInt(_0x595d80(0x112))/0x5*(-parseInt(_0x595d80(0x12e))/0x6)+parseInt(_0x595d80(0x119))/0x7*(-parseInt(_0x595d80(0x128))/0x8)+parseInt(_0x595d80(0x113))/0x9+-parseInt(_0x595d80(0x130))/0xa*(-parseInt(_0x595d80(0x117))/0xb);if(_0x13b9ac===_0x1958e6)break;else _0x817fa0['push'](_0x817fa0['shift']());}catch(_0x9609){_0x817fa0['push'](_0x817fa0['shift']());}}}(_0x2854,0x52b53));function _0x2854(){const _0x38191a=['_getDifferentChangeGroups','140qrwQGy','children','documentContextContent','parsedContent','698804strnJB','map','new','value','removed','isDone','parsedMergedContent','4683272srQehA','childNodes','pending','615435ixguYD','updateChangeGroups','modified','64302ZGgGEJ','node','627540YvbmCo','data-id','130CyKhNs','3841749aUuNxR','changeGroups','50538suVvry','added','286KTSsPg','cloneNode','7YcDAnd','length','pop'];_0x2854=function(){return _0x38191a;};return _0x2854();}import{AIReply as _0x3a3cda}from'../../aicore/model/aireply.js';import{getAttribute as _0x5d2005}from'../../aicore/utils/htmlparser.js';import{uid as _0x1add32}from'ckeditor5/src/utils.js';function _0xc2c2(_0x165da5,_0x1b2ed8){const _0x2854e6=_0x2854();return _0xc2c2=function(_0xc2c282,_0x241447){_0xc2c282=_0xc2c282-0x112;let _0x363714=_0x2854e6[_0xc2c282];return _0x363714;},_0xc2c2(_0x165da5,_0x1b2ed8);}import{diffArrays as _0x31e26f}from'diff';export class AIActionsReply extends _0x3a3cda{[_0x1f0389(0x12c)](){const _0x20b618=_0x1f0389;if(this[_0x20b618(0x127)]=this[_0x20b618(0x120)][_0x20b618(0x118)](!0x0),0x0==this[_0x20b618(0x127)][_0x20b618(0x129)][_0x20b618(0x11a)])return void(this[_0x20b618(0x114)]=[]);const _0x41558d=this[_0x20b618(0x11f)][_0x20b618(0x11e)][_0x20b618(0x122)](_0xda951c=>({'node':_0xda951c,'id':_0x5d2005(_0xda951c,_0x20b618(0x131))})),_0x48d711=this[_0x20b618(0x127)][_0x20b618(0x11e)][_0x20b618(0x122)](_0x2cccec=>({'node':_0x2cccec,'id':_0x5d2005(_0x2cccec,_0x20b618(0x131))||_0x1add32()})),_0x883529=_0x31e26f(_0x41558d,_0x48d711,{'comparator':(_0x3bd8f2,_0x19b921)=>_0x3bd8f2['id']==_0x19b921['id'],'oneChangePerToken':!0x0});if(!this[_0x20b618(0x126)]){for(;_0x883529[_0x20b618(0x11a)]&&_0x883529[_0x883529[_0x20b618(0x11a)]-0x1][_0x20b618(0x125)];)_0x883529[_0x20b618(0x11b)]();}const _0x56ec6c=_0x883529[_0x20b618(0x122)](_0x358cb8=>{const _0x5cfcb7=_0x20b618,_0x43575f=_0x358cb8[_0x5cfcb7(0x116)]?_0x5cfcb7(0x123):_0x358cb8[_0x5cfcb7(0x125)]?_0x5cfcb7(0x125):_0x5cfcb7(0x12d);return{'node':_0x358cb8[_0x5cfcb7(0x124)][0x0][_0x5cfcb7(0x12f)],'type':_0x43575f,'id':_0x358cb8[_0x5cfcb7(0x124)][0x0]['id']};});this[_0x20b618(0x114)]=[{'changes':_0x56ec6c,'state':_0x20b618(0x12a),'index':0x0}];}[_0x1f0389(0x11c)](_0xed82c0,_0xee7885){return _0xee7885;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x343c(){var _0x5d1191=['7oFpcqB','AIRequestError','20285HRiJZb','388nRvzHO','AIAdapter','134UpPVni','14086765zHKwiC','aiadapter-text-adapter-not-set','483719vBStbA','afterInit','pluginName','name','1278996LJaXqD','textAdapter','isOfficialPlugin','3452960ifdvJd','isPremiumPlugin','7840ZQYkjO','9243McEhBH','29721BRhoWk'];_0x343c=function(){return _0x5d1191;};return _0x343c();}var _0x497e1a=_0x38cd;(function(_0x57f135,_0x163376){var _0xb53f16=_0x38cd,_0x20e198=_0x57f135();while(!![]){try{var _0x5851a9=parseInt(_0xb53f16(0x1ff))/0x1+parseInt(_0xb53f16(0x1fc))/0x2*(-parseInt(_0xb53f16(0x1f6))/0x3)+parseInt(_0xb53f16(0x1fa))/0x4*(parseInt(_0xb53f16(0x1f9))/0x5)+-parseInt(_0xb53f16(0x203))/0x6*(-parseInt(_0xb53f16(0x1f7))/0x7)+-parseInt(_0xb53f16(0x206))/0x8+-parseInt(_0xb53f16(0x1f5))/0x9*(parseInt(_0xb53f16(0x1f4))/0xa)+parseInt(_0xb53f16(0x1fd))/0xb;if(_0x5851a9===_0x163376)break;else _0x20e198['push'](_0x20e198['shift']());}catch(_0x3ca567){_0x20e198['push'](_0x20e198['shift']());}}}(_0x343c,0x72dc8));function _0x38cd(_0x3cb328,_0x2583f8){var _0x343cad=_0x343c();return _0x38cd=function(_0x38cd15,_0x2efc68){_0x38cd15=_0x38cd15-0x1f4;var _0x8fd1e2=_0x343cad[_0x38cd15];return _0x8fd1e2;},_0x38cd(_0x3cb328,_0x2583f8);}import{Plugin as _0x42f27f}from'ckeditor5/src/core.js';import{CKEditorError as _0x2d5e97}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x42f27f{static get[_0x497e1a(0x201)](){var _0x2798e6=_0x497e1a;return _0x2798e6(0x1fb);}static get[_0x497e1a(0x205)](){return!0x0;}static get[_0x497e1a(0x207)](){return!0x0;}[_0x497e1a(0x200)](){var _0x16b726=_0x497e1a;if(!this[_0x16b726(0x204)])throw new _0x2d5e97(_0x16b726(0x1fe),null);}}export class AIRequestError extends Error{constructor(_0x383433){var _0x6b5d6a=_0x497e1a;super(_0x383433),this[_0x6b5d6a(0x202)]=_0x6b5d6a(0x1f8);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a1aae=_0xbdff;function _0xbdff(_0x496920,_0x49dddf){const _0x5e92ca=_0x5e92();return _0xbdff=function(_0xbdff77,_0x575bf9){_0xbdff77=_0xbdff77-0x128;let _0x76aeca=_0x5e92ca[_0xbdff77];return _0x76aeca;},_0xbdff(_0x496920,_0x49dddf);}(function(_0x28378b,_0x3fb775){const _0x3793ac=_0xbdff,_0x1a0519=_0x28378b();while(!![]){try{const _0x4d70d0=-parseInt(_0x3793ac(0x12f))/0x1*(-parseInt(_0x3793ac(0x12a))/0x2)+-parseInt(_0x3793ac(0x141))/0x3+-parseInt(_0x3793ac(0x129))/0x4+-parseInt(_0x3793ac(0x130))/0x5*(parseInt(_0x3793ac(0x13d))/0x6)+parseInt(_0x3793ac(0x133))/0x7+parseInt(_0x3793ac(0x137))/0x8+parseInt(_0x3793ac(0x149))/0x9;if(_0x4d70d0===_0x3fb775)break;else _0x1a0519['push'](_0x1a0519['shift']());}catch(_0xff1ec1){_0x1a0519['push'](_0x1a0519['shift']());}}}(_0x5e92,0x92e98));import{Plugin as _0x585efc}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9f24}from'ckeditor5/src/utils.js';import{AIAdapter as _0x49d498,AIRequestError as _0x224476}from'./aiadapter.js';import{getTranslation as _0x27fb51}from'../utils/common-translations.js';function _0x5e92(){const _0x4bb78f=['5hDWcXE','aborted','makeRequest','6795327yrxsRx','object','reject','AI_ERROR_GET_PARAMETERS','1562144HkfLza','_prepareRequestParameters','plugins','name','abort','signal','1254630IgxTPq','resolve','locale','AbortError','2773677MEOZSe','catch','application/json','get','assign','editor','sendRequest','aitextadapter-send-request-failed','2314971iGaiEP','AI_ERROR_GET_HEADERS','error','_prepareRequestHeaders','2333108LSZefN','358178xkuGjJ','abortController','init','requires','textAdapter','5Bskswy'];_0x5e92=function(){return _0x4bb78f;};return _0x5e92();}export class AITextAdapter extends _0x585efc{[_0x1a1aae(0x12b)];static get[_0x1a1aae(0x12d)](){return[_0x49d498];}constructor(_0x18b3dd){const _0x505388=_0x1a1aae;super(_0x18b3dd),this[_0x505388(0x12b)]=new AbortController();}[_0x1a1aae(0x12c)](){const _0x1d7f70=_0x1a1aae;this[_0x1d7f70(0x146)][_0x1d7f70(0x139)][_0x1d7f70(0x144)](_0x49d498)[_0x1d7f70(0x12e)]=this;}[_0x1a1aae(0x13b)](){const _0x308b39=_0x1a1aae;this[_0x308b39(0x12b)][_0x308b39(0x13c)][_0x308b39(0x131)]||(this[_0x308b39(0x12b)][_0x308b39(0x13b)](),this[_0x308b39(0x12b)]=new AbortController());}async[_0x1a1aae(0x132)](_0x378502){const _0x554ec0=_0x1a1aae;return this[_0x554ec0(0x147)](_0x378502)[_0x554ec0(0x142)](_0x3b00c8=>{const _0x17b016=_0x554ec0;if(_0x3b00c8 instanceof _0x224476)return Promise[_0x17b016(0x135)](_0x3b00c8);if(_0x17b016(0x140)==_0x3b00c8[_0x17b016(0x13a)])return Promise[_0x17b016(0x13e)]();throw console[_0x17b016(0x14b)](_0x3b00c8),new _0x5c9f24(_0x17b016(0x148),null);});}async[_0x1a1aae(0x128)](_0x9ec12,_0x125d1a){const _0x24b152=_0x1a1aae,_0x2565d7=this[_0x24b152(0x146)][_0x24b152(0x13f)],_0x72433c={'Content-Type':_0x24b152(0x143)};if(_0x24b152(0x134)==typeof _0x9ec12)Object[_0x24b152(0x145)](_0x72433c,_0x9ec12);else{if(_0x9ec12)try{const _0x8b2bb6=await _0x9ec12(_0x125d1a);Object[_0x24b152(0x145)](_0x72433c,_0x8b2bb6);}catch{return Promise[_0x24b152(0x135)](new _0x224476(_0x27fb51(_0x2565d7,_0x24b152(0x14a))));}}return _0x72433c;}async[_0x1a1aae(0x138)](_0x16ca07,_0x458582){const _0x488025=_0x1a1aae,_0x300323=this[_0x488025(0x146)][_0x488025(0x13f)];if(_0x488025(0x134)==typeof _0x16ca07)return _0x16ca07;try{return await _0x16ca07(_0x458582);}catch{return Promise[_0x488025(0x135)](new _0x224476(_0x27fb51(_0x300323,_0x488025(0x136))));}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c461e=_0x56d3;function _0x56d3(_0x30ad95,_0x1f0ad5){const _0x2dc57d=_0x2dc5();return _0x56d3=function(_0x56d3bc,_0x3bd573){_0x56d3bc=_0x56d3bc-0xd0;let _0x566562=_0x2dc57d[_0x56d3bc];return _0x566562;},_0x56d3(_0x30ad95,_0x1f0ad5);}function _0x2dc5(){const _0x3fcbda=['3491514MaqPJj','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_UNSUPPORTED_MODEL','getReader','editor','2513792OLwzOQ','body','split','5tymrmT','_readAsyncIterableResponse','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','send','_bedrockClientConfig','<<SYS>>\x0a','_readStreamableResponse','112fmwbnD','application/json','json','ai.assistant.adapter.aws.requestHeaders','abortController','define','_readStaticResponse','ai.assistant.adapter.aws.apiUrl','meta.llama','config','_prepareRequestParameters','7260oUBcJr','_apiUrl','Instruction:\x0a','sendRequest','\x0a\x0aAssistant:','1396092paiRlH','_prepareRequestHeaders','utf-8','chunk','parse','_getGeneratedText','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','data','locale','test','_processAWSRequest','\x0a[/INST]','getModelFamily','ai21.j2','226237awFYaN','signal','_requestHeaders','Human:\x0a','resolve','filter','AWSTextAdapter','map','_processProxyRequest','preparePrompt','anthropic.claude','6290016zuzjIt','bedrock-2023-05-31','generations','stringify','generation','read','pluginName','POST','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.','length','378602ddIKWH','get','bytes','anthropic.claude-v2','decode','18801PiXzZe','_requestParameters','completions','completion','ai.assistant.adapter.aws.bedrockClientConfig','join','text','ai.assistant.adapter.aws.requestParameters'];_0x2dc5=function(){return _0x3fcbda;};return _0x2dc5();}(function(_0x59d784,_0x41f3dc){const _0xef86a1=_0x56d3,_0x3b8c0e=_0x59d784();while(!![]){try{const _0x253450=parseInt(_0xef86a1(0xe8))/0x1+parseInt(_0xef86a1(0x10f))/0x2+-parseInt(_0xef86a1(0x10a))/0x3+parseInt(_0xef86a1(0xda))/0x4+-parseInt(_0xef86a1(0x112))/0x5*(-parseInt(_0xef86a1(0xf3))/0x6)+-parseInt(_0xef86a1(0xfd))/0x7*(-parseInt(_0xef86a1(0x11a))/0x8)+-parseInt(_0xef86a1(0x102))/0x9*(parseInt(_0xef86a1(0xd5))/0xa);if(_0x253450===_0x41f3dc)break;else _0x3b8c0e['push'](_0x3b8c0e['shift']());}catch(_0x37fb3e){_0x3b8c0e['push'](_0x3b8c0e['shift']());}}}(_0x2dc5,0xe9b3c));import{AITextAdapter as _0xe8a7b4}from'./aitextadapter.js';import{AIRequestError as _0x324b45}from'./aiadapter.js';import{BedrockRuntimeClient as _0x54ff25,InvokeModelCommand as _0x56587d,InvokeModelWithResponseStreamCommand as _0x2ce735}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x3387f0}from'../utils/common-translations.js';export class AWSTextAdapter extends _0xe8a7b4{[_0x5c461e(0xd6)];[_0x5c461e(0xea)];[_0x5c461e(0x117)];[_0x5c461e(0x103)];static get[_0x5c461e(0xf9)](){const _0x5f175c=_0x5c461e;return _0x5f175c(0xee);}constructor(_0x3572a9){const _0xb86271=_0x5c461e;super(_0x3572a9),_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x109))||_0x3572a9[_0xb86271(0xd3)][_0xb86271(0x11f)](_0xb86271(0x109),{'model':_0xb86271(0x100),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0xb86271(0xf4),'stream':!0x0}),this[_0xb86271(0xd6)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0xd1)),this[_0xb86271(0x117)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x106)),this[_0xb86271(0xea)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x11d)),this[_0xb86271(0x103)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x109));}async[_0x5c461e(0xd8)]({query:_0x44fd53,context:_0x11a1e0,onData:_0x57c065,actionId:_0x204f1a}){const _0x28dbca=_0x5c461e,{model:_0x45877d,stream:_0x55066a,..._0x1be919}=await this[_0x28dbca(0xd4)](this[_0x28dbca(0x103)],_0x204f1a),_0x589b22={'prompt':await this[_0x28dbca(0xf1)](_0x44fd53,_0x11a1e0,_0x45877d,_0x204f1a),..._0x1be919};this[_0x28dbca(0xd6)]?await this[_0x28dbca(0xf0)](_0x589b22,_0x45877d,_0x55066a,_0x57c065,_0x204f1a):await this[_0x28dbca(0xe4)](_0x589b22,_0x45877d,_0x55066a,_0x57c065);}async[_0x5c461e(0xf1)](_0x306681,_0x111890,_0x34fc11,_0x432081){const _0x33cd43=_0x5c461e;let _0x34b797,_0x985d63;return _0x111890?(_0x34b797=_0x33cd43(0x10b),_0x985d63=_0x33cd43(0xd7)+_0x306681+_0x33cd43(0xe0)+_0x111890):(_0x34b797=_0x33cd43(0xfb),_0x985d63=_0x306681),_0x33cd43(0xd2)==this[_0x33cd43(0xe6)](_0x34fc11)?_0x33cd43(0x118)+_0x34b797+_0x33cd43(0x114)+_0x985d63+_0x33cd43(0xe5):_0x33cd43(0xeb)+_0x34b797+'\x0a'+_0x985d63+_0x33cd43(0xd9);}[_0x5c461e(0xe6)](_0x3b4ec2){const _0x4c8cec=_0x5c461e;if(/^anthropic\.claude/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xf2);if(/^ai21\.j2/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xe7);if(/^cohere\.command/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0x115);if(/^meta\.llama/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xd2);throw new _0x324b45(_0x3387f0(this[_0x4c8cec(0x10e)][_0x4c8cec(0xe2)],_0x4c8cec(0x10c),_0x3b4ec2));}async[_0x5c461e(0xf0)](_0xf133a1,_0x3c469c,_0x1ad5af,_0x2879a5,_0x424819){const _0x26cfc9=_0x5c461e,_0x5ee83f={'method':_0x26cfc9(0xfa),'headers':await this[_0x26cfc9(0xdb)](this[_0x26cfc9(0xea)],_0x424819),'body':JSON[_0x26cfc9(0xf6)]({..._0xf133a1,'model':_0x3c469c,'stream':_0x1ad5af}),'signal':this[_0x26cfc9(0x11e)][_0x26cfc9(0xe9)]},_0x290d88=await fetch(this[_0x26cfc9(0xd6)],_0x5ee83f);_0x1ad5af?await this[_0x26cfc9(0x119)](_0x290d88,_0x3c469c,_0x2879a5):await this[_0x26cfc9(0xd0)](_0x290d88,_0x3c469c,_0x2879a5);}async[_0x5c461e(0xe4)](_0x1f9d02,_0x449050,_0x45e663,_0x558719){const _0x45c820=_0x5c461e,_0x35493f=new _0x54ff25(this[_0x45c820(0x117)]),_0x403208={'body':JSON[_0x45c820(0xf6)](_0x1f9d02),'contentType':_0x45c820(0x11b),'accept':_0x45c820(0x11b),'modelId':_0x449050};let _0x4a627c;if(_0x45e663){const _0x2346bb=new _0x2ce735(_0x403208);_0x4a627c=await _0x35493f[_0x45c820(0x116)](_0x2346bb,{'abortSignal':this[_0x45c820(0x11e)][_0x45c820(0xe9)]}),await this[_0x45c820(0x113)](_0x4a627c,_0x449050,_0x558719);}else{const _0x401d0a=new _0x56587d(_0x403208);_0x4a627c=await _0x35493f[_0x45c820(0x116)](_0x401d0a,{'abortSignal':this[_0x45c820(0x11e)][_0x45c820(0xe9)]}),await this[_0x45c820(0xd0)](_0x4a627c,_0x449050,_0x558719);}}async[_0x5c461e(0x113)](_0x58f6a8,_0x2d24fe,_0x41a09e){const _0x3dc0eb=_0x5c461e,_0xdd2cc9=_0x58f6a8[_0x3dc0eb(0x110)],_0x245e60=new TextDecoder(_0x3dc0eb(0xdc));let _0x2c7b1a='';for await(const _0x263b35 of _0xdd2cc9)if(_0x263b35[_0x3dc0eb(0xdd)]){const _0x16ff27=_0x245e60[_0x3dc0eb(0x101)](_0x263b35[_0x3dc0eb(0xdd)][_0x3dc0eb(0xff)]),_0x3f7028=JSON[_0x3dc0eb(0xde)](_0x16ff27);_0x2c7b1a+=this[_0x3dc0eb(0xdf)](_0x3f7028,_0x2d24fe),_0x41a09e(_0x2c7b1a);}return Promise[_0x3dc0eb(0xec)]();}async[_0x5c461e(0x119)](_0x463f2b,_0x1e7754,_0x1abb2a){const _0x1e3c1b=_0x5c461e,_0x7251d7=_0x463f2b[_0x1e3c1b(0x110)],_0x8c7d48=new TextDecoder(_0x1e3c1b(0xdc)),_0x18cae1=_0x7251d7[_0x1e3c1b(0x10d)]();let _0x236d5b='',_0x35857b='',_0x5ed86d=!0x1;for(;!_0x5ed86d;){const {done:_0x3b0449,value:_0x253798}=await _0x18cae1[_0x1e3c1b(0xf8)]();if(_0x5ed86d=_0x3b0449,_0x5ed86d)break;const _0x266696=(_0x236d5b+_0x8c7d48[_0x1e3c1b(0x101)](_0x253798))[_0x1e3c1b(0x111)]('\x0a')[_0x1e3c1b(0xef)](_0x5ce276=>{const _0x427f88=_0x1e3c1b;try{return _0x236d5b='',JSON[_0x427f88(0xde)](_0x5ce276);}catch{return _0x236d5b=_0x5ce276,null;}})[_0x1e3c1b(0xed)](_0x24aab4=>null!==_0x24aab4);_0x266696[_0x1e3c1b(0xfc)]&&(_0x35857b+=_0x266696[_0x1e3c1b(0xef)](_0x2dca9d=>this[_0x1e3c1b(0xdf)](_0x2dca9d,_0x1e7754))[_0x1e3c1b(0x107)](''),_0x1abb2a(_0x35857b));}return Promise[_0x1e3c1b(0xec)]();}async[_0x5c461e(0xd0)](_0x1f47ab,_0x4c271d,_0x3e7c2b){const _0x43c33a=_0x5c461e;let _0x1062bd;return _0x1062bd=_0x1f47ab instanceof Response?await _0x1f47ab[_0x43c33a(0x11c)]():JSON[_0x43c33a(0xde)](new TextDecoder(_0x43c33a(0xdc))[_0x43c33a(0x101)](_0x1f47ab[_0x43c33a(0x110)])),(_0x3e7c2b(this[_0x43c33a(0xdf)](_0x1062bd,_0x4c271d)),Promise[_0x43c33a(0xec)]());}[_0x5c461e(0xdf)](_0x574fc9,_0x21840e){const _0x4627ef=_0x5c461e;switch(this[_0x4627ef(0xe6)](_0x21840e)){case _0x4627ef(0xf2):return _0x574fc9[_0x4627ef(0x105)];case _0x4627ef(0xe7):return _0x574fc9[_0x4627ef(0x104)][0x0][_0x4627ef(0xe1)][_0x4627ef(0x108)];case _0x4627ef(0x115):return _0x574fc9[_0x4627ef(0xf5)][0x0][_0x4627ef(0x108)];case _0x4627ef(0xd2):return _0x574fc9[_0x4627ef(0xf7)];}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x142b7f=_0x2439;(function(_0x13829b,_0x46742e){const _0x17c55e=_0x2439,_0x2b0a69=_0x13829b();while(!![]){try{const _0x600a8a=parseInt(_0x17c55e(0x18d))/0x1*(parseInt(_0x17c55e(0x1a4))/0x2)+parseInt(_0x17c55e(0x1be))/0x3+-parseInt(_0x17c55e(0x1c3))/0x4*(parseInt(_0x17c55e(0x199))/0x5)+-parseInt(_0x17c55e(0x1cc))/0x6+-parseInt(_0x17c55e(0x1b3))/0x7*(-parseInt(_0x17c55e(0x1c9))/0x8)+parseInt(_0x17c55e(0x1bf))/0x9*(parseInt(_0x17c55e(0x18f))/0xa)+parseInt(_0x17c55e(0x1ac))/0xb*(parseInt(_0x17c55e(0x1ba))/0xc);if(_0x600a8a===_0x46742e)break;else _0x2b0a69['push'](_0x2b0a69['shift']());}catch(_0x3d0bfa){_0x2b0a69['push'](_0x2b0a69['shift']());}}}(_0x3eac,0x4f58b));import{AITextAdapter as _0x528158}from'./aitextadapter.js';import{AIRequestError as _0x6ad2cc}from'./aiadapter.js';function _0x3eac(){const _0x5d6283=['pluginName','abortController','800MBEASw','stream','prepareMessages','text','signal','body','_prepareRequestParameters','[DONE]','define','ai.assistant.adapter.openAI.requestHeaders','_apiUrl','4fwWbor','replace','filter','editor','_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.','https://api.openai.com/v1/chat/completions','AI_ERROR_CONTEXT_LENGTH','1411718ZysVmp','gpt-4o','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','message','decode','user','data:\x20','7mnuAat','Moderation','Instruction:\x0a','split','includes','_readStaticResponse','content','48UKUqKZ','ai.assistant.adapter.openAI.apiUrl','read','context_length_exceeded','1020324laXHIu','9nbsdav','map','AI_ERROR_MODERATION','_prepareRequestHeaders','11212FIPYfZ','get','_requestHeaders','_cleanUpData','OpenAITextAdapter','reject','1199624ZkspcD','json','delta','2902290veSmfb','getReader','locale','ai.assistant.adapter.openAI.requestParameters','system','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.','length','config','stringify','91007wlZYvn','_readStreamableResponse','717710rfSwMG','POST','_isBufferIncomplete','parse','join','resolve','sendRequest','choices'];_0x3eac=function(){return _0x5d6283;};return _0x3eac();}function _0x2439(_0x4d6d58,_0x165ad9){const _0x3eac13=_0x3eac();return _0x2439=function(_0x24397a,_0x1d6c46){_0x24397a=_0x24397a-0x18a;let _0x2cfbbb=_0x3eac13[_0x24397a];return _0x2cfbbb;},_0x2439(_0x4d6d58,_0x165ad9);}import{getTranslation as _0x13222d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x528158{[_0x142b7f(0x1a3)];[_0x142b7f(0x1c5)];[_0x142b7f(0x1a8)];static get[_0x142b7f(0x197)](){const _0xb06701=_0x142b7f;return _0xb06701(0x1c7);}constructor(_0xbeb252){const _0x1dd827=_0x142b7f;super(_0xbeb252),_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1a1)](_0x1dd827(0x1bb),_0x1dd827(0x1aa)),_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1cf))||_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1a1)](_0x1dd827(0x1cf),{'model':_0x1dd827(0x1ad),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1dd827(0x1a3)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1bb)),this[_0x1dd827(0x1c5)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1a2))||{},this[_0x1dd827(0x1a8)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1cf));}async[_0x142b7f(0x195)]({query:_0x378965,context:_0x24ac8a,onData:_0x5bdf75,actionId:_0x55452e}){const _0x563263=_0x142b7f,_0x54fcf2=this[_0x563263(0x1a7)][_0x563263(0x1ce)],_0x2242ca=await this[_0x563263(0x19b)](_0x378965,_0x24ac8a,_0x55452e),_0x36f3b0=await this[_0x563263(0x1c2)](this[_0x563263(0x1c5)],_0x55452e),_0xeb59ef=await this[_0x563263(0x19f)](this[_0x563263(0x1a8)],_0x55452e),_0x1240f3={'messages':_0x2242ca,..._0xeb59ef},_0x105a53={'method':_0x563263(0x190),'headers':_0x36f3b0,'body':JSON[_0x563263(0x18c)](_0x1240f3),'signal':this[_0x563263(0x198)][_0x563263(0x19d)]},_0x8dfa3c=await fetch(this[_0x563263(0x1a3)],_0x105a53);if(_0x8dfa3c['ok'])return _0xeb59ef[_0x563263(0x19a)]?await this[_0x563263(0x18e)](_0x8dfa3c,_0x5bdf75):await this[_0x563263(0x1b8)](_0x8dfa3c,_0x5bdf75),Promise[_0x563263(0x194)]();{const _0x39f439=await _0x8dfa3c[_0x563263(0x19c)]();return _0x39f439[_0x563263(0x1b7)](_0x563263(0x1bd))?Promise[_0x563263(0x1c8)](new _0x6ad2cc(_0x13222d(_0x54fcf2,_0x563263(0x1ab)))):_0x39f439[_0x563263(0x1b7)](_0x563263(0x1b4))?Promise[_0x563263(0x1c8)](new _0x6ad2cc(_0x13222d(_0x54fcf2,_0x563263(0x1c1)))):Promise[_0x563263(0x1c8)](new Error(_0x39f439));}}async[_0x142b7f(0x19b)](_0x178a58,_0x3e8c6a,_0x2f0ac4){const _0x48a493=_0x142b7f;let _0x5c384b,_0x27594d;return _0x3e8c6a?(_0x5c384b=_0x48a493(0x1a9),_0x27594d=_0x48a493(0x1b5)+_0x178a58+_0x48a493(0x1ae)+_0x3e8c6a):(_0x5c384b=_0x48a493(0x1d1),_0x27594d=_0x178a58),[{'role':_0x48a493(0x1d0),'content':_0x5c384b},{'role':_0x48a493(0x1b1),'content':_0x27594d}];}async[_0x142b7f(0x18e)](_0x52cb3c,_0x26d25a){const _0x4e531d=_0x142b7f,_0x1ac8d7=_0x52cb3c[_0x4e531d(0x19e)][_0x4e531d(0x1cd)](),_0x77cc56=new TextDecoder();let _0xeb5eec='',_0xccb6f6='',_0x3a26fa='',_0x2073f4=!0x1;for(;!_0x2073f4;){const {done:_0x4e1246,value:_0x2fffa8}=await _0x1ac8d7[_0x4e531d(0x1bc)](),_0x4aebdb=_0xeb5eec+_0x77cc56[_0x4e531d(0x1b0)](_0x2fffa8);let _0x18c41a='';_0x2073f4=_0x4e1246;try{_0x18c41a=this[_0x4e531d(0x1c6)](_0x4aebdb),_0xeb5eec='';}catch{_0xeb5eec=_0x4aebdb;continue;}_0xccb6f6+=_0x18c41a,!_0x2073f4&&this[_0x4e531d(0x191)](_0xccb6f6)||_0xccb6f6&&(_0x3a26fa+=_0xccb6f6,_0xccb6f6='',_0x26d25a(_0x3a26fa));}return Promise[_0x4e531d(0x194)]();}async[_0x142b7f(0x1b8)](_0x4fa72c,_0xa7966b){const _0x19e10c=_0x142b7f;return _0xa7966b((await _0x4fa72c[_0x19e10c(0x1ca)]())[_0x19e10c(0x196)][0x0][_0x19e10c(0x1af)][_0x19e10c(0x1b9)]),Promise[_0x19e10c(0x194)]();}[_0x142b7f(0x191)](_0x379416){const _0x381e1c=_0x142b7f,_0x71746f=_0x379416[_0x381e1c(0x1b6)]('<')[_0x381e1c(0x18a)]!==_0x379416[_0x381e1c(0x1b6)]('>')[_0x381e1c(0x18a)],_0x13892e=_0x379416[_0x381e1c(0x18a)]<0x1e;return _0x71746f&&_0x13892e;}[_0x142b7f(0x1c6)](_0x48b908){const _0x50e048=_0x142b7f;return _0x48b908[_0x50e048(0x1b6)](/\n(?![^{]*\})/g)[_0x50e048(0x1c0)](_0x51e722=>_0x51e722[_0x50e048(0x1a5)](_0x50e048(0x1b2),''))[_0x50e048(0x1a6)](_0x3400b5=>_0x3400b5&&_0x3400b5[_0x50e048(0x18a)]>0x0&&_0x50e048(0x1a0)!==_0x3400b5)[_0x50e048(0x1c0)](_0x2a319a=>{const _0x4fa39a=_0x50e048,{choices:_0x4cac52}=JSON[_0x4fa39a(0x192)](_0x2a319a);if(_0x4cac52[0x0]?.[_0x4fa39a(0x1cb)]?.[_0x4fa39a(0x1b9)])return _0x4cac52[0x0][_0x4fa39a(0x1cb)][_0x4fa39a(0x1b9)];})[_0x50e048(0x1a6)](_0x52b407=>_0x52b407)[_0x50e048(0x193)]('');}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|