@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2742 -0
- package/dist/index.css +3141 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +163 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +92 -30
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/adapters/openaitextadapter
|
|
6
|
+
* @module ai/aiassistant/adapters/openaitextadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
@@ -11,7 +11,7 @@ import { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, ty
|
|
|
11
11
|
/**
|
|
12
12
|
* Adapter for AI text-related requests that supports OpenAI and Azure OpenAI services.
|
|
13
13
|
*
|
|
14
|
-
* See also {@link module:ai/adapters/aitextadapter~AITextAdapter}.
|
|
14
|
+
* See also {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapter}.
|
|
15
15
|
*/
|
|
16
16
|
export declare class OpenAITextAdapter extends AITextAdapter {
|
|
17
17
|
/**
|
|
@@ -44,24 +44,29 @@ export declare class OpenAITextAdapter extends AITextAdapter {
|
|
|
44
44
|
*
|
|
45
45
|
* @param query The user's query. The instruction which the model should perform.
|
|
46
46
|
* @param context The context for the instruction. Usually this will be a part of the editor content. Can be empty.
|
|
47
|
-
* @param actionId ID of the performed action.
|
|
47
|
+
* @param actionId ID of the performed action.
|
|
48
|
+
* See {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId}.
|
|
48
49
|
*/
|
|
49
50
|
prepareMessages(query: string, context: string, actionId: string): Promise<Array<AIRequestMessageItem>>;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* The configuration for the OpenAI adapter.
|
|
53
54
|
*
|
|
54
|
-
* The properties defined in this config are set in the `config.ai.openAI` namespace.
|
|
55
|
+
* The properties defined in this config are set in the `config.ai.assistant.adapter.openAI` namespace.
|
|
55
56
|
*
|
|
56
57
|
* ```ts
|
|
57
58
|
* ClassicEditor
|
|
58
59
|
* .create( editorElement, {
|
|
59
60
|
* ai: {
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
61
|
+
* assistant: {
|
|
62
|
+
* adapter: {
|
|
63
|
+
* openAI: {
|
|
64
|
+
* requestHeaders: {
|
|
65
|
+
* Authorization: 'Bearer OPENAI_API_KEY'
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
65
70
|
* }
|
|
66
71
|
* } )
|
|
67
72
|
* .then( ... )
|
|
@@ -92,11 +97,15 @@ export interface OpenAITextAdapterConfig {
|
|
|
92
97
|
* ```js
|
|
93
98
|
* {
|
|
94
99
|
* ai: {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
100
|
+
* assistant: {
|
|
101
|
+
* adapter: {
|
|
102
|
+
* openAI: {
|
|
103
|
+
* requestHeaders: {
|
|
104
|
+
* 'Authorization': 'Bearer YOUR_API_KEY'
|
|
105
|
+
* }
|
|
106
|
+
* // ...
|
|
107
|
+
* }
|
|
98
108
|
* }
|
|
99
|
-
* // ...
|
|
100
109
|
* }
|
|
101
110
|
* // ..
|
|
102
111
|
* }
|
|
@@ -113,21 +122,25 @@ export interface OpenAITextAdapterConfig {
|
|
|
113
122
|
* This way, you can perform an authorization request to your application and receive the authorization token (and also implement
|
|
114
123
|
* any custom logic on the back-end side). The headers object is then used to make the actual call to the AI service.
|
|
115
124
|
*
|
|
116
|
-
* The function is passed {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
117
|
-
* possible to further customize the headers.
|
|
125
|
+
* The function is passed {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
126
|
+
* parameter to make it possible to further customize the headers.
|
|
118
127
|
*
|
|
119
128
|
* ```js
|
|
120
129
|
* {
|
|
121
130
|
* ai: {
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
131
|
+
* assistant: {
|
|
132
|
+
* adapter: {
|
|
133
|
+
* openAI: {
|
|
134
|
+
* requestHeaders: async () => {
|
|
135
|
+
* const jwt = await fetch( 'https://example.com/jwt-endpoint' );
|
|
136
|
+
*
|
|
137
|
+
* return {
|
|
138
|
+
* 'Authorization': 'Bearer ' + jwt
|
|
139
|
+
* };
|
|
140
|
+
* }
|
|
141
|
+
* // ...
|
|
142
|
+
* }
|
|
129
143
|
* }
|
|
130
|
-
* // ...
|
|
131
144
|
* }
|
|
132
145
|
* }
|
|
133
146
|
* }
|
|
@@ -148,8 +161,8 @@ export interface OpenAITextAdapterConfig {
|
|
|
148
161
|
* If the provided value is a function, it should be a function that returns a `Promise` which resolves with the request parameters
|
|
149
162
|
* object. This gives you more flexibility to provide parameters for the AI model.
|
|
150
163
|
*
|
|
151
|
-
* The function is passed {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
152
|
-
* possible to further customize the parameters.
|
|
164
|
+
* The function is passed {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
165
|
+
* parameter to make it possible to further customize the parameters.
|
|
153
166
|
*
|
|
154
167
|
* If the function fails for any reason, the promise should be rejected. In this case, the feature that made the request should display
|
|
155
168
|
* an error notification.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x1511(_0x4bf06c,_0xcb36f0){const _0x5131fb=_0x5131();return _0x1511=function(_0x151118,_0x414c1a){_0x151118=_0x151118-0x1ec;let _0x4d3037=_0x5131fb[_0x151118];return _0x4d3037;},_0x1511(_0x4bf06c,_0xcb36f0);}const _0xbf2fe5=_0x1511;(function(_0x3a6a6e,_0x53d385){const _0x2ceda7=_0x1511,_0x5c0077=_0x3a6a6e();while(!![]){try{const _0x55b33b=parseInt(_0x2ceda7(0x215))/0x1+parseInt(_0x2ceda7(0x225))/0x2+parseInt(_0x2ceda7(0x1fa))/0x3+parseInt(_0x2ceda7(0x205))/0x4*(parseInt(_0x2ceda7(0x20e))/0x5)+-parseInt(_0x2ceda7(0x20f))/0x6+parseInt(_0x2ceda7(0x1f2))/0x7*(-parseInt(_0x2ceda7(0x20c))/0x8)+-parseInt(_0x2ceda7(0x22a))/0x9;if(_0x55b33b===_0x53d385)break;else _0x5c0077['push'](_0x5c0077['shift']());}catch(_0x3d9332){_0x5c0077['push'](_0x5c0077['shift']());}}}(_0x5131,0x2d961));import{AITextAdapter as _0xb541a2}from'./aitextadapter.js';import{AIRequestError as _0x3fdd51}from'./aiadapter.js';import{getTranslation as _0x4e3f12}from'../utils/common-translations.js';function _0x5131(){const _0x279bca=['stringify','_requestParameters','read','body','get','ai.assistant.adapter.openAI.requestHeaders','923037zOgHUJ','[DONE]','_requestHeaders','editor','data:\x20','_prepareRequestHeaders','filter','user','content','abortController','join','64fXZsgX','map','ai.assistant.adapter.openAI.apiUrl','Moderation','text','gpt-4o','config','1864Ywiloh','delta','85390bHHTnv','1707654IBUxBe','context_length_exceeded','json','https://api.openai.com/v1/chat/completions','AI_ERROR_CONTEXT_LENGTH','AI_ERROR_MODERATION','133092YAByQT','prepareMessages','_readStaticResponse','signal','define','split','choices','sendRequest','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','message','_readStreamableResponse','_isBufferIncomplete','resolve','_apiUrl','_prepareRequestParameters','_cleanUpData','571534utscRw','stream','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.','locale','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.','3185451CBrCQb','Instruction:\x0a','length','OpenAITextAdapter','POST','parse','pluginName','includes','ai.assistant.adapter.openAI.requestParameters','replace','reject','system','getReader','5243HRQTCm','decode'];_0x5131=function(){return _0x279bca;};return _0x5131();}export class OpenAITextAdapter extends _0xb541a2{[_0xbf2fe5(0x222)];[_0xbf2fe5(0x1fc)];[_0xbf2fe5(0x1f5)];static get[_0xbf2fe5(0x230)](){const _0xee0999=_0xbf2fe5;return _0xee0999(0x22d);}constructor(_0xbb9707){const _0x3c597a=_0xbf2fe5;super(_0xbb9707),_0xbb9707[_0x3c597a(0x20b)][_0x3c597a(0x219)](_0x3c597a(0x207),_0x3c597a(0x212)),_0xbb9707[_0x3c597a(0x20b)][_0x3c597a(0x1f8)](_0x3c597a(0x1ed))||_0xbb9707[_0x3c597a(0x20b)][_0x3c597a(0x219)](_0x3c597a(0x1ed),{'model':_0x3c597a(0x20a),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3c597a(0x222)]=_0xbb9707[_0x3c597a(0x20b)][_0x3c597a(0x1f8)](_0x3c597a(0x207)),this[_0x3c597a(0x1fc)]=_0xbb9707[_0x3c597a(0x20b)][_0x3c597a(0x1f8)](_0x3c597a(0x1f9))||{},this[_0x3c597a(0x1f5)]=_0xbb9707[_0x3c597a(0x20b)][_0x3c597a(0x1f8)](_0x3c597a(0x1ed));}async[_0xbf2fe5(0x21c)]({query:_0x5eb303,context:_0x579a56,onData:_0x4e6a5d,actionId:_0x11c67d}){const _0x47d1b2=_0xbf2fe5,_0x569891=this[_0x47d1b2(0x1fd)][_0x47d1b2(0x228)],_0x289607=await this[_0x47d1b2(0x216)](_0x5eb303,_0x579a56,_0x11c67d),_0x3233d8=await this[_0x47d1b2(0x1ff)](this[_0x47d1b2(0x1fc)],_0x11c67d),_0x3f022c=await this[_0x47d1b2(0x223)](this[_0x47d1b2(0x1f5)],_0x11c67d),_0x5309d0={'messages':_0x289607,..._0x3f022c},_0x2de53f={'method':_0x47d1b2(0x22e),'headers':_0x3233d8,'body':JSON[_0x47d1b2(0x1f4)](_0x5309d0),'signal':this[_0x47d1b2(0x203)][_0x47d1b2(0x218)]},_0x1dfdf0=await fetch(this[_0x47d1b2(0x222)],_0x2de53f);if(_0x1dfdf0['ok'])return _0x3f022c[_0x47d1b2(0x226)]?await this[_0x47d1b2(0x21f)](_0x1dfdf0,_0x4e6a5d):await this[_0x47d1b2(0x217)](_0x1dfdf0,_0x4e6a5d),Promise[_0x47d1b2(0x221)]();{const _0x49d265=await _0x1dfdf0[_0x47d1b2(0x209)]();return _0x49d265[_0x47d1b2(0x1ec)](_0x47d1b2(0x210))?Promise[_0x47d1b2(0x1ef)](new _0x3fdd51(_0x4e3f12(_0x569891,_0x47d1b2(0x213)))):_0x49d265[_0x47d1b2(0x1ec)](_0x47d1b2(0x208))?Promise[_0x47d1b2(0x1ef)](new _0x3fdd51(_0x4e3f12(_0x569891,_0x47d1b2(0x214)))):Promise[_0x47d1b2(0x1ef)](new Error(_0x49d265));}}async[_0xbf2fe5(0x216)](_0x53b2ed,_0x47594d,_0x2a6b5b){const _0x466cec=_0xbf2fe5;let _0x106cda,_0x1ad11e;return _0x47594d?(_0x106cda=_0x466cec(0x229),_0x1ad11e=_0x466cec(0x22b)+_0x53b2ed+_0x466cec(0x21d)+_0x47594d):(_0x106cda=_0x466cec(0x227),_0x1ad11e=_0x53b2ed),[{'role':_0x466cec(0x1f0),'content':_0x106cda},{'role':_0x466cec(0x201),'content':_0x1ad11e}];}async[_0xbf2fe5(0x21f)](_0x13df11,_0x2e74d0){const _0x6f666e=_0xbf2fe5,_0x51e988=_0x13df11[_0x6f666e(0x1f7)][_0x6f666e(0x1f1)](),_0x4f8ed4=new TextDecoder();let _0x212f25='',_0x26452d='',_0xe95dfa='',_0x2997d2=!0x1;for(;!_0x2997d2;){const {done:_0x1bbdf9,value:_0x1ff0a0}=await _0x51e988[_0x6f666e(0x1f6)](),_0x190a53=_0x212f25+_0x4f8ed4[_0x6f666e(0x1f3)](_0x1ff0a0);let _0x20dfb3='';_0x2997d2=_0x1bbdf9;try{_0x20dfb3=this[_0x6f666e(0x224)](_0x190a53),_0x212f25='';}catch{_0x212f25=_0x190a53;continue;}_0x26452d+=_0x20dfb3,!_0x2997d2&&this[_0x6f666e(0x220)](_0x26452d)||_0x26452d&&(_0xe95dfa+=_0x26452d,_0x26452d='',_0x2e74d0(_0xe95dfa));}return Promise[_0x6f666e(0x221)]();}async[_0xbf2fe5(0x217)](_0x2b0c7d,_0x577a1e){const _0x59ff18=_0xbf2fe5;return _0x577a1e((await _0x2b0c7d[_0x59ff18(0x211)]())[_0x59ff18(0x21b)][0x0][_0x59ff18(0x21e)][_0x59ff18(0x202)]),Promise[_0x59ff18(0x221)]();}[_0xbf2fe5(0x220)](_0x553132){const _0x3c207b=_0xbf2fe5,_0x390139=_0x553132[_0x3c207b(0x21a)]('<')[_0x3c207b(0x22c)]!==_0x553132[_0x3c207b(0x21a)]('>')[_0x3c207b(0x22c)],_0x55c4bb=_0x553132[_0x3c207b(0x22c)]<0x1e;return _0x390139&&_0x55c4bb;}[_0xbf2fe5(0x224)](_0x23c6ae){const _0x364848=_0xbf2fe5;return _0x23c6ae[_0x364848(0x21a)](/\n(?![^{]*\})/g)[_0x364848(0x206)](_0x5ba8fd=>_0x5ba8fd[_0x364848(0x1ee)](_0x364848(0x1fe),''))[_0x364848(0x200)](_0x1c669f=>_0x1c669f&&_0x1c669f[_0x364848(0x22c)]>0x0&&_0x364848(0x1fb)!==_0x1c669f)[_0x364848(0x206)](_0xd0f677=>{const _0x4ab708=_0x364848,{choices:_0x16691f}=JSON[_0x4ab708(0x22f)](_0xd0f677);if(_0x16691f[0x0]?.[_0x4ab708(0x20d)]?.[_0x4ab708(0x202)])return _0x16691f[0x0][_0x4ab708(0x20d)][_0x4ab708(0x202)];})[_0x364848(0x200)](_0x4d1635=>_0x4d1635)[_0x364848(0x204)]('');}}
|
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/aiassistant
|
|
6
|
+
* @module ai/aiassistant/aiassistant
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
11
11
|
import { AIAssistantUI } from './aiassistantui.js';
|
|
12
12
|
import { AIAssistantEditing } from './aiassistantediting.js';
|
|
13
|
+
import type { OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
|
|
14
|
+
import type { AIAWSTextAdapterConfig } from './adapters/awstextadapter.js';
|
|
13
15
|
/**
|
|
14
16
|
* AI assistant plugin that allows you to use external AI models to generate content or improve existing content.
|
|
15
17
|
*
|
|
16
|
-
* The feature uses following {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`} values:
|
|
18
|
+
* The feature uses following {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`} values:
|
|
17
19
|
*
|
|
18
20
|
* * `aiAssistant:command:<commandId>` for the predefined commands, where `<commandId>` is the ID of the predefined command,
|
|
19
21
|
* * `aiAssistant:custom` for custom queries provided by the user.
|
|
@@ -47,13 +49,13 @@ export declare function getDefaultAICommands(locale: Locale): Array<AIGroupDefin
|
|
|
47
49
|
/**
|
|
48
50
|
* The configuration of the AI Assistant feature.
|
|
49
51
|
*
|
|
50
|
-
* The properties defined in this config are set in the `config.ai.
|
|
52
|
+
* The properties defined in this config are set in the `config.ai.assistant` namespace.
|
|
51
53
|
*
|
|
52
54
|
* ```ts
|
|
53
55
|
* ClassicEditor
|
|
54
56
|
* .create( editorElement, {
|
|
55
57
|
* ai: {
|
|
56
|
-
*
|
|
58
|
+
* assistant: {
|
|
57
59
|
* // AI Assistant configuration.
|
|
58
60
|
* }
|
|
59
61
|
* }
|
|
@@ -231,7 +233,7 @@ export interface AIAssistantConfig {
|
|
|
231
233
|
commands?: Array<AIGroupDefinition> | Array<AICommandDefinition>;
|
|
232
234
|
/**
|
|
233
235
|
* A list of additional AI commands groups definitions that will extend
|
|
234
|
-
* {@link module:ai/aiassistant~AIAssistantConfig#commands default commands}.
|
|
236
|
+
* {@link module:ai/aiassistant/aiassistant~AIAssistantConfig#commands default commands}.
|
|
235
237
|
*
|
|
236
238
|
* You can define new AI commands groups or add new AI commands to existing groups. If you add AI commands to an existing group,
|
|
237
239
|
* you do not need to specify `groupLabel` property. Use the (optional) `order` property to control the position of new groups
|
|
@@ -241,7 +243,7 @@ export interface AIAssistantConfig {
|
|
|
241
243
|
*
|
|
242
244
|
* ```json
|
|
243
245
|
* {
|
|
244
|
-
*
|
|
246
|
+
* assistant: {
|
|
245
247
|
* extraCommandGroups: [
|
|
246
248
|
* // Add an AI command to an existing group:
|
|
247
249
|
* {
|
|
@@ -281,13 +283,13 @@ export interface AIAssistantConfig {
|
|
|
281
283
|
/**
|
|
282
284
|
* A list of ids of AI commands and ids of commnad groups to be removed.
|
|
283
285
|
*
|
|
284
|
-
* Learn more about {@link module:ai/aiassistant~AICommandDefinition command definition and its id}.
|
|
286
|
+
* Learn more about {@link module:ai/aiassistant/aiassistant~AICommandDefinition command definition and its id}.
|
|
285
287
|
*
|
|
286
288
|
* An example configuration:
|
|
287
289
|
*
|
|
288
290
|
* ```json
|
|
289
291
|
* {
|
|
290
|
-
*
|
|
292
|
+
* assistant: {
|
|
291
293
|
* removeCommands: [
|
|
292
294
|
* 'improveWriting',
|
|
293
295
|
* 'changeTone',
|
|
@@ -341,12 +343,51 @@ export interface AIAssistantConfig {
|
|
|
341
343
|
* @default true
|
|
342
344
|
*/
|
|
343
345
|
preserveComments?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Enables or disables the colored UI theme for AI features.
|
|
348
|
+
*
|
|
349
|
+
* * Leaving this property unset will preserve the default theme on AI features UI elements.
|
|
350
|
+
* * Setting this property to **`false`** will remove the default theme from AI features UI elements.
|
|
351
|
+
*
|
|
352
|
+
* See the AI Assistant integration guide to learn how you can use CSS variables to change the default theme to a different color.
|
|
353
|
+
*
|
|
354
|
+
* @default true
|
|
355
|
+
*/
|
|
356
|
+
useTheme?: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* The configuration for the AI adapter.
|
|
359
|
+
*
|
|
360
|
+
* This is required only if you connect to an external AI service.
|
|
361
|
+
*
|
|
362
|
+
* Learn more about available adapters:
|
|
363
|
+
*
|
|
364
|
+
* * {@link module:ai/aiassistant/adapters/openaitextadapter~OpenAITextAdapterConfig}
|
|
365
|
+
* * {@link module:ai/aiassistant/adapters/awstextadapter~AIAWSTextAdapterConfig}
|
|
366
|
+
*/
|
|
367
|
+
adapter?: {
|
|
368
|
+
/**
|
|
369
|
+
* The configuration for the {@link module:ai/aiassistant/adapters/openaitextadapter~OpenAITextAdapter `OpenAITextAdapter`}.
|
|
370
|
+
*
|
|
371
|
+
* This is required only if you connect to OpenAI or Azure OpenAI service.
|
|
372
|
+
*
|
|
373
|
+
* Read more in {@link module:ai/aiassistant/adapters/openaitextadapter~OpenAITextAdapterConfig}.
|
|
374
|
+
*/
|
|
375
|
+
openAI?: OpenAITextAdapterConfig;
|
|
376
|
+
/**
|
|
377
|
+
* The configuration for the {@link module:ai/aiassistant/adapters/awstextadapter~AWSTextAdapter `AWSTextAdapter`}.
|
|
378
|
+
*
|
|
379
|
+
* This is required only if you connect to Amazon Bedrock service.
|
|
380
|
+
*
|
|
381
|
+
* Read more in {@link module:ai/aiassistant/adapters/awstextadapter~AIAWSTextAdapterConfig}.
|
|
382
|
+
*/
|
|
383
|
+
aws?: AIAWSTextAdapterConfig;
|
|
384
|
+
};
|
|
344
385
|
}
|
|
345
386
|
export type AIGroupDefinition = {
|
|
346
387
|
/**
|
|
347
388
|
* The unique identifier of the group. It can be referenced while extending existing groups
|
|
348
|
-
* using {@link module:ai/aiassistant~AIAssistantConfig#extraCommandGroups} or removing command groups using
|
|
349
|
-
* {@link module:ai/aiassistant~AIAssistantConfig#removeCommands}.
|
|
389
|
+
* using {@link module:ai/aiassistant/aiassistant~AIAssistantConfig#extraCommandGroups} or removing command groups using
|
|
390
|
+
* {@link module:ai/aiassistant/aiassistant~AIAssistantConfig#removeCommands}.
|
|
350
391
|
*/
|
|
351
392
|
groupId: string;
|
|
352
393
|
/**
|
|
@@ -360,7 +401,7 @@ export type AIGroupDefinition = {
|
|
|
360
401
|
/**
|
|
361
402
|
* The order of the group on the list. The lower the number, the higher the group is displayed on the list.
|
|
362
403
|
* If not specified, the position of this group will be determined by the order of
|
|
363
|
-
* {@link module:ai/aiassistant~AIAssistantConfig#commands configuration}.
|
|
404
|
+
* {@link module:ai/aiassistant/aiassistant~AIAssistantConfig#commands configuration}.
|
|
364
405
|
*
|
|
365
406
|
* If a new group is added without `order` property, it will be added at the end.
|
|
366
407
|
*
|
|
@@ -371,7 +412,7 @@ export type AIGroupDefinition = {
|
|
|
371
412
|
export type AICommandDefinition = {
|
|
372
413
|
/**
|
|
373
414
|
* The unique identifier of the command. It can be referenced while removing commands. See
|
|
374
|
-
* {@link module:ai/aiassistant~AIAssistantConfig#removeCommands} to learn more.
|
|
415
|
+
* {@link module:ai/aiassistant/aiassistant~AIAssistantConfig#removeCommands} to learn more.
|
|
375
416
|
*/
|
|
376
417
|
id: string;
|
|
377
418
|
/**
|
|
@@ -397,7 +438,7 @@ export type AICommandDefinition = {
|
|
|
397
438
|
/**
|
|
398
439
|
* The order of the command on the list. The lower the number, the higher the command is displayed on the list.
|
|
399
440
|
* If not specified, the position of this command will be determined by the order of
|
|
400
|
-
* {@link module:ai/aiassistant~AIAssistantConfig#commands configuration}.
|
|
441
|
+
* {@link module:ai/aiassistant/aiassistant~AIAssistantConfig#commands configuration}.
|
|
401
442
|
*
|
|
402
443
|
* If a new command is added without `order` property, it will be added at the end of the group.
|
|
403
444
|
*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x11d14e=_0x2826;(function(_0x37ee62,_0x562947){const _0x62b80b=_0x2826,_0x2261b5=_0x37ee62();while(!![]){try{const _0x3dea21=parseInt(_0x62b80b(0x11e))/0x1*(parseInt(_0x62b80b(0x15b))/0x2)+-parseInt(_0x62b80b(0x152))/0x3*(-parseInt(_0x62b80b(0x113))/0x4)+parseInt(_0x62b80b(0x118))/0x5+parseInt(_0x62b80b(0x171))/0x6*(-parseInt(_0x62b80b(0x148))/0x7)+parseInt(_0x62b80b(0x130))/0x8*(parseInt(_0x62b80b(0x127))/0x9)+parseInt(_0x62b80b(0x15a))/0xa+-parseInt(_0x62b80b(0x13c))/0xb;if(_0x3dea21===_0x562947)break;else _0x2261b5['push'](_0x2261b5['shift']());}catch(_0x3cd43e){_0x2261b5['push'](_0x2261b5['shift']());}}}(_0x3c86,0xed1f6));function _0x3c86(){const _0x3b1ca6=['354752leCcEO','ai.assistant.preserveComments','Continue','changeStyle','Direct','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','locale','makeLonger','Translate\x20the\x20content\x20to\x20Hindi\x20language.','requires','journalism','Improve\x20writing','191213lMzmls','legal','groupId','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','get','push','define','Simplified\x20Chinese','Poetic','changeTone','Legal','translate','48839iLjPnd','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','summarize','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Make\x20shorter','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Confident','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','2179512iRVzsB','isPremiumPlugin','improveWriting','includes','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','commands','Generate\x20from\x20selection','find','3294950rdtwHW','277046WuXrqN','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','friendly','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','poetic','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','translateArabic','Translate\x20the\x20content\x20to\x20English\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','German','casual','translateSpanish','Portuguese','Translate\x20the\x20content\x20to\x20German\x20language.','Hindi','translatePortuguese','continue','set','Professional','direct','translateFrench','1146AidkAn','editOrReview','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','ai.assistant.commands','English','makeShorter','Casual','AIAssistant','confident','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','config','Translate\x20the\x20content\x20to\x20French\x20language.','Journalism','Make\x20longer','translateHindi','isOfficialPlugin','Friendly','forEach','4YCMmoM','Change\x20style','Translate\x20the\x20content\x20to\x20Arabic\x20language.','generate','Simplify\x20language','35700HYTsoJ','French','ai.assistant.extraCommandGroups','ai.assistant.removeCommands','Translate','filter','3WEunZX','Business','pluginName','translateGerman','translateEnglish','business','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Change\x20tone','171beCsUF','professional','concat','translateChinese','simplifyLanguage','Edit\x20or\x20review','Summarize','Arabic','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'];_0x3c86=function(){return _0x3b1ca6;};return _0x3c86();}import{Plugin as _0xc2040f}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x23b32d}from'./aiassistantui.js';function _0x2826(_0x4cebf9,_0xc33da8){const _0x3c8667=_0x3c86();return _0x2826=function(_0x2826bb,_0x5f31ec){_0x2826bb=_0x2826bb-0x107;let _0x235df9=_0x3c8667[_0x2826bb];return _0x235df9;},_0x2826(_0x4cebf9,_0xc33da8);}import{AIAssistantEditing as _0xc5fd2d}from'./aiassistantediting.js';import{getTranslation as _0x2645b0}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x5cf817}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0xc2040f{static get[_0x11d14e(0x139)](){return[_0x23b32d,_0xc5fd2d];}static get[_0x11d14e(0x120)](){const _0x57102d=_0x11d14e;return _0x57102d(0x108);}static get[_0x11d14e(0x110)](){return!0x0;}static get[_0x11d14e(0x153)](){return!0x0;}constructor(_0x2aeb45){const _0x1d4ffd=_0x11d14e;super(_0x2aeb45);const _0x333261=_0x2aeb45[_0x1d4ffd(0x10b)],_0x34dcc3=_0x2aeb45[_0x1d4ffd(0x136)];_0x333261[_0x1d4ffd(0x142)](_0x1d4ffd(0x131),!0x0),_0x333261[_0x1d4ffd(0x142)](_0x1d4ffd(0x174),getDefaultAICommands(_0x34dcc3)),_0x333261[_0x1d4ffd(0x142)](_0x1d4ffd(0x11a),[]),_0x333261[_0x1d4ffd(0x142)](_0x1d4ffd(0x11b),[]);let _0x51d71a=_0x5cf817(_0x333261[_0x1d4ffd(0x140)](_0x1d4ffd(0x174)),_0x34dcc3);const _0x2ae6ae=_0x333261[_0x1d4ffd(0x140)](_0x1d4ffd(0x11a)),_0x567343=_0x333261[_0x1d4ffd(0x140)](_0x1d4ffd(0x11b));_0x2ae6ae[_0x1d4ffd(0x112)](_0x3e02c3=>{const _0x2e329e=_0x1d4ffd,_0x4511ca=_0x51d71a[_0x2e329e(0x159)](_0x5753f5=>_0x5753f5[_0x2e329e(0x13e)]===_0x3e02c3[_0x2e329e(0x13e)]);_0x4511ca?_0x4511ca[_0x2e329e(0x157)]=_0x4511ca[_0x2e329e(0x157)][_0x2e329e(0x129)](_0x3e02c3[_0x2e329e(0x157)]):_0x51d71a[_0x2e329e(0x141)](_0x3e02c3);}),_0x51d71a=_0x51d71a[_0x1d4ffd(0x11d)](_0x1a8229=>!_0x567343[_0x1d4ffd(0x155)](_0x1a8229[_0x1d4ffd(0x13e)])),_0x51d71a[_0x1d4ffd(0x112)](_0x3c1f95=>{const _0xe9aed5=_0x1d4ffd;_0x3c1f95[_0xe9aed5(0x157)]=_0x3c1f95[_0xe9aed5(0x157)][_0xe9aed5(0x11d)](_0x136de3=>!_0x567343[_0xe9aed5(0x155)](_0x136de3['id']));}),_0x333261[_0x1d4ffd(0x16d)](_0x1d4ffd(0x174),_0x51d71a);}}export function getDefaultAICommands(_0x5b4f44){const _0x582b40=_0x11d14e;return[{'groupId':_0x582b40(0x172),'groupLabel':_0x2645b0(_0x5b4f44,_0x582b40(0x12c)),'commands':[{'id':_0x582b40(0x154),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x13b)),'prompt':_0x582b40(0x156)},{'id':_0x582b40(0x176),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x14d)),'prompt':_0x582b40(0x164)},{'id':_0x582b40(0x137),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x10e)),'prompt':_0x582b40(0x160)},{'id':_0x582b40(0x12b),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x117)),'prompt':_0x582b40(0x10a)}]},{'groupId':_0x582b40(0x116),'groupLabel':_0x2645b0(_0x5b4f44,_0x582b40(0x158)),'commands':[{'id':_0x582b40(0x14b),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x12d)),'prompt':_0x582b40(0x151)},{'id':_0x582b40(0x16c),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x132)),'prompt':_0x582b40(0x14e)}]},{'groupId':_0x582b40(0x145),'groupLabel':_0x2645b0(_0x5b4f44,_0x582b40(0x126)),'commands':[{'id':_0x582b40(0x128),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x16e)),'prompt':_0x582b40(0x14a)},{'id':_0x582b40(0x166),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x107)),'prompt':_0x582b40(0x15e)},{'id':_0x582b40(0x16f),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x134)),'prompt':_0x582b40(0x173)},{'id':_0x582b40(0x109),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x150)),'prompt':_0x582b40(0x149)},{'id':_0x582b40(0x15d),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x111)),'prompt':_0x582b40(0x13f)}]},{'groupId':_0x582b40(0x133),'groupLabel':_0x2645b0(_0x5b4f44,_0x582b40(0x114)),'commands':[{'id':_0x582b40(0x123),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x11f)),'prompt':_0x582b40(0x15c)},{'id':_0x582b40(0x13d),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x146)),'prompt':_0x582b40(0x125)},{'id':_0x582b40(0x13a),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x10d)),'prompt':_0x582b40(0x163)},{'id':_0x582b40(0x15f),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x144)),'prompt':_0x582b40(0x14c)}]},{'groupId':_0x582b40(0x147),'groupLabel':_0x2645b0(_0x5b4f44,_0x582b40(0x11c)),'commands':[{'id':_0x582b40(0x122),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x175)),'prompt':_0x582b40(0x162)},{'id':_0x582b40(0x167),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x124)),'prompt':_0x582b40(0x14f)},{'id':_0x582b40(0x16b),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x168)),'prompt':_0x582b40(0x135)},{'id':_0x582b40(0x121),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x165)),'prompt':_0x582b40(0x169)},{'id':_0x582b40(0x170),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x119)),'prompt':_0x582b40(0x10c)},{'id':_0x582b40(0x12a),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x143)),'prompt':_0x582b40(0x12f)},{'id':_0x582b40(0x10f),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x16a)),'prompt':_0x582b40(0x138)},{'id':_0x582b40(0x161),'label':_0x2645b0(_0x5b4f44,_0x582b40(0x12e)),'prompt':_0x582b40(0x115)}]}];}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x25dc(){const _0x528fa5=['45912IbljDe','createPositionAfter','isContent','ck-fake-ai-selection','1902vvqzfP','config','getMarkersGroup','getLastPosition','getChildren','markerRange','213DJDJxF','DataTransfer','paste','length','14ynkrFp','from','join','14uGyDwL','lowest','insertContent','editing','createRange','get','getFirstRange','forEach','ck-fake-ai-selection_collapsed','deleteContent','AIAssistantEditing','text/html','getColumnIndexes','document','setData','1323696iEuKpt','pluginName','start','fire','pop','getChild','span','removeMarker','schema','_getAISelection','addClass','init','insertContentBelow','getRange','off','has','resultRange','parse','isAtEnd','_resetContentOfSelectedTableCells','hideFakeVisualSelection','map','getSelectedBlocks','43811ShoZIF','once','table','data','filter','ck-ai-assistant-ui_theme','setSelection','TableUtils','isCollapsed','href','_getTableRowCountFromContent','markerToHighlight','markerToElement','addMarker','getRanges','updateMarker','selection','element','canEditAt','editor','36mwLJFK','ai.assistant.useTheme','createUIElement','40mpHyQK','getRows','getSelectedTableCells','getLastMatchingPosition','findAncestor','last','editingDowncast','change','1507tPOoqg','1922769scRNxL','createPositionAt','for','first','50068sTbDPS','fromCharCode','contentInsertion','isPremiumPlugin','isOfficialPlugin','createSelection','afterInit','_pasteHTMLUsingClipboard','_getDefaultInsertBelowPosition','showFakeVisualSelection','insertRows','conversion','9035SceLqf','plugins','markers','_prepareTableInsertBelowPosition','getRowIndexes','_createEmptyTableRows','end','model','push','ai-ui','21469318ziOeEH'];_0x25dc=function(){return _0x528fa5;};return _0x25dc();}const _0x25b1a5=_0x251a;(function(_0x42fa1f,_0x292057){const _0x1ec8cb=_0x251a,_0x360014=_0x42fa1f();while(!![]){try{const _0x328c4c=-parseInt(_0x1ec8cb(0x236))/0x1*(parseInt(_0x1ec8cb(0x24a))/0x2)+parseInt(_0x1ec8cb(0x209))/0x3*(-parseInt(_0x1ec8cb(0x1e8))/0x4)+-parseInt(_0x1ec8cb(0x1f4))/0x5*(-parseInt(_0x1ec8cb(0x203))/0x6)+-parseInt(_0x1ec8cb(0x20d))/0x7*(parseInt(_0x1ec8cb(0x21f))/0x8)+parseInt(_0x1ec8cb(0x1e4))/0x9*(parseInt(_0x1ec8cb(0x24d))/0xa)+parseInt(_0x1ec8cb(0x1e3))/0xb*(-parseInt(_0x1ec8cb(0x1ff))/0xc)+-parseInt(_0x1ec8cb(0x1fe))/0xd*(-parseInt(_0x1ec8cb(0x210))/0xe);if(_0x328c4c===_0x292057)break;else _0x360014['push'](_0x360014['shift']());}catch(_0xaa400c){_0x360014['push'](_0x360014['shift']());}}}(_0x25dc,0x856ae));import{uid as _0x370572}from'ckeditor5/src/utils.js';import{Plugin as _0x514b44}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x5665dd}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x39e609,ViewDataTransfer as _0x42b70c}from'ckeditor5/src/engine.js';const O=globalThis[_0x25b1a5(0x20a)],P=_0x25b1a5(0x1fd);function _0x251a(_0xd94e,_0x3f62b7){const _0x25dcc4=_0x25dc();return _0x251a=function(_0x251a93,_0x2305ad){_0x251a93=_0x251a93-0x1df;let _0x25e647=_0x25dcc4[_0x251a93];return _0x25e647;},_0x251a(_0xd94e,_0x3f62b7);}export class AIAssistantEditing extends _0x514b44{static get[_0x25b1a5(0x220)](){const _0x3c6981=_0x25b1a5;return _0x3c6981(0x21a);}static get[_0x25b1a5(0x1ec)](){return!0x0;}static get[_0x25b1a5(0x1eb)](){return!0x0;}[_0x25b1a5(0x22a)](){const _0x1539d9=_0x25b1a5,{editor:_0x5bdb1a}=this,_0x147002=[_0x1539d9(0x202)];_0x5bdb1a[_0x1539d9(0x204)][_0x1539d9(0x215)](_0x1539d9(0x24b))&&_0x147002[_0x1539d9(0x1fc)](_0x1539d9(0x23b)),_0x5bdb1a[_0x1539d9(0x1f3)][_0x1539d9(0x1e6)](_0x1539d9(0x1e1))[_0x1539d9(0x241)]({'model':P,'view':{'classes':_0x147002,'priority':0xc}}),_0x5bdb1a[_0x1539d9(0x1f3)][_0x1539d9(0x1e6)](_0x1539d9(0x1e1))[_0x1539d9(0x242)]({'model':P,'view':(_0x538ad2,{writer:_0x26c140})=>{const _0x532bc9=_0x1539d9;if(!_0x538ad2[_0x532bc9(0x208)][_0x532bc9(0x23e)])return null;const _0x40be67=_0x26c140[_0x532bc9(0x24c)](_0x532bc9(0x225));return _0x26c140[_0x532bc9(0x229)]([_0x532bc9(0x202),_0x532bc9(0x218)],_0x40be67),_0x40be67;}});}[_0x25b1a5(0x1ee)](){!async function(_0x48f4da){const _0x58c388=_0x46e21e([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x239deb=0x3dffc4e1,_0x58b19f=0x3df8b081^_0x239deb,_0x234d84=window[_0x46e21e([0x44,0x61,0x74,0x65])][_0x46e21e([0x6e,0x6f,0x77])](),_0x16c35c=_0x48f4da[_0x46e21e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x212d4a=new window[(_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2abe=>{_0x16c35c[_0x46e21e([0x6f,0x6e,0x63,0x65])](_0x46e21e([0x72,0x65,0x61,0x64,0x79]),_0x5b2abe);}),_0x2ab22d={[_0x46e21e([0x6b,0x74,0x79])]:_0x46e21e([0x45,0x43]),[_0x46e21e([0x75,0x73,0x65])]:_0x46e21e([0x73,0x69,0x67]),[_0x46e21e([0x63,0x72,0x76])]:_0x46e21e([0x50,0x2d,0x32,0x35,0x36]),[_0x46e21e([0x78])]:_0x46e21e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x46e21e([0x79])]:_0x46e21e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x46e21e([0x61,0x6c,0x67])]:_0x46e21e([0x45,0x53,0x32,0x35,0x36])},_0x9e5a62=_0x16c35c[_0x46e21e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46e21e([0x67,0x65,0x74])](_0x46e21e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbaf473(){let _0x74c465,_0xb065e3=null,_0x351746=null;try{if(_0x9e5a62==_0x46e21e([0x47,0x50,0x4c]))return _0x46e21e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x74c465=_0x118e63(),!_0x74c465)return _0x46e21e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x74c465[_0x46e21e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x351746=_0x229646(_0x74c465[_0x46e21e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x74c465[_0x46e21e([0x6a,0x74,0x69])])),await _0x4d8eaa()?_0x27221d()?_0xb160f7()?_0x46e21e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dd689()?(_0x74c465[_0x46e21e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46e21e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb065e3=_0x1ff5d4(_0x46e21e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x74c465[_0x46e21e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46e21e([0x74,0x72,0x69,0x61,0x6c])&&(_0xb065e3=_0x1ff5d4(_0x46e21e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40e846()):_0x46e21e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46e21e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46e21e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46e21e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb160f7(){const _0x2b09af=[_0x46e21e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46e21e([0x74,0x72,0x69,0x61,0x6c])][_0x46e21e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x74c465[_0x46e21e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x234d84/0x3e8:0xe10*_0x58b19f;return _0x74c465[_0x46e21e([0x65,0x78,0x70])]<_0x2b09af;}function _0x27221d(){const _0x24ea5d=_0x74c465[_0x46e21e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24ea5d&&(!!_0x24ea5d[_0x46e21e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e21e([0x2a]))||!!_0x24ea5d[_0x46e21e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e21e([0x41,0x49])));}function _0x5dd689(){const _0x23a01c=_0x251a,_0x4715c4=_0x74c465[_0x46e21e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4715c4||0x0==_0x4715c4[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe046fa}=new URL(window[_0x46e21e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x23a01c(0x23f)]);if(_0x4715c4[_0x46e21e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe046fa))return!0x0;const _0x29a179=_0xe046fa[_0x46e21e([0x73,0x70,0x6c,0x69,0x74])](_0x46e21e([0x2e]));return _0x4715c4[_0x46e21e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x105c9c=>_0x105c9c[_0x46e21e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e21e([0x2a])))[_0x46e21e([0x6d,0x61,0x70])](_0x4f01d6=>_0x4f01d6[_0x46e21e([0x73,0x70,0x6c,0x69,0x74])](_0x46e21e([0x2e])))[_0x46e21e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x695edd=>_0x695edd[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29a179[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46e21e([0x6d,0x61,0x70])](_0x4173e5=>Array(_0x29a179[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4173e5[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46e21e([0x66,0x69,0x6c,0x6c])](_0x4173e5[0x0]===_0x46e21e([0x2a])?_0x46e21e([0x2a]):'')[_0x46e21e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4173e5))[_0x46e21e([0x73,0x6f,0x6d,0x65])](_0x2ef665=>_0x29a179[_0x46e21e([0x65,0x76,0x65,0x72,0x79])]((_0x102ba5,_0x5305cc)=>_0x2ef665[_0x5305cc]===_0x102ba5||_0x2ef665[_0x5305cc]===_0x46e21e([0x2a])));}function _0x40e846(){return _0xb065e3&&_0x351746?new window[(_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42ffca,_0x5377f0)=>{_0xb065e3[_0x46e21e([0x74,0x68,0x65,0x6e])](_0x42ffca,_0x5377f0),_0x351746[_0x46e21e([0x74,0x68,0x65,0x6e])](_0x5eaf6d=>{_0x5eaf6d!=_0x46e21e([0x56,0x61,0x6c,0x69,0x64])&&_0x42ffca(_0x5eaf6d);},_0x5377f0);}):_0xb065e3||_0x351746||_0x46e21e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x229646(_0x4ca8ee,_0x256ad0){return new window[(_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549497=>{if(_0x39f07f())return _0x549497(_0x46e21e([0x56,0x61,0x6c,0x69,0x64]));_0x2c8f00(),_0x16c35c[_0x46e21e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46e21e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x291931=!0x1;const _0x5c03ef=_0x370572();function _0x348879(_0x5a58a3){return!!_0x5a58a3&&(typeof _0x5a58a3===_0x46e21e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a58a3===_0x46e21e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a58a3[_0x46e21e([0x74,0x68,0x65,0x6e])]===_0x46e21e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a58a3[_0x46e21e([0x63,0x61,0x74,0x63,0x68])]===_0x46e21e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24aff1(_0x50726a){_0x5401d7(_0x50726a)[_0x46e21e([0x74,0x68,0x65,0x6e])](_0x867802=>{if(!_0x867802||_0x867802[_0x46e21e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46e21e([0x6f,0x6b]))return _0x46e21e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x225225(_0x275277(_0x5c03ef+_0x256ad0))!=_0x867802[_0x46e21e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46e21e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46e21e([0x56,0x61,0x6c,0x69,0x64]);})[_0x46e21e([0x74,0x68,0x65,0x6e])](_0x33ffc0=>(_0x111e9a(),_0x33ffc0),()=>{const _0xc7711f=_0x51faa1();return null==_0xc7711f?(_0x111e9a(),_0x46e21e([0x56,0x61,0x6c,0x69,0x64])):_0x46e21e(_0x234d84-_0xc7711f>(0x19f340e1^_0x239deb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46e21e([0x74,0x68,0x65,0x6e])](_0x549497)[_0x46e21e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x549497(_0x46e21e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ca44a=0x3dc92a61^_0x239deb;function _0x111e9a(){const _0xaa832f=_0x46e21e([0x6c,0x6c,0x63,0x74,0x2d])+_0x225225(_0x275277(_0x4ca8ee)),_0x109592=_0x202b58(_0x225225(window[_0x46e21e([0x4d,0x61,0x74,0x68])][_0x46e21e([0x63,0x65,0x69,0x6c])](_0x234d84/_0x2ca44a)));window[_0x46e21e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46e21e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xaa832f,_0x109592);}function _0x51faa1(){const _0x4c8da3=_0x46e21e([0x6c,0x6c,0x63,0x74,0x2d])+_0x225225(_0x275277(_0x4ca8ee)),_0x28454f=window[_0x46e21e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46e21e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c8da3);return _0x28454f?window[_0x46e21e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x202b58(_0x28454f),0x10)*_0x2ca44a:null;}function _0x5401d7(_0x294d1c){return new window[(_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1051eb,_0x15bf00)=>{_0x294d1c[_0x46e21e([0x74,0x68,0x65,0x6e])](_0x1051eb,_0x15bf00),window[_0x46e21e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15bf00,0x3dfe1021^_0x239deb);});}}_0x16c35c[_0x46e21e([0x6f,0x6e])](_0x46e21e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x431ab3,_0x411929)=>{if(_0x411929[0x0]!=_0x4ca8ee)return _0x549497(_0x46e21e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x411929[0x1]={..._0x411929[0x1],[_0x46e21e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c03ef};},{[_0x46e21e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46e21e([0x68,0x69,0x67,0x68])}),_0x16c35c[_0x46e21e([0x6f,0x6e])](_0x46e21e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a3714=>{_0x348879(_0x3a3714[_0x46e21e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x291931=!0x0,_0x24aff1(_0x3a3714[_0x46e21e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46e21e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46e21e([0x6c,0x6f,0x77])}),_0x212d4a[_0x46e21e([0x74,0x68,0x65,0x6e])](()=>{_0x291931||_0x549497(_0x46e21e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39f07f(){return _0x16c35c[_0x46e21e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46e21e([0x76,0x69,0x65,0x77])][_0x46e21e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46e21e([0x61,0x75,0x74,0x6f]);}function _0x2c8f00(){_0x16c35c[_0x46e21e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46e21e([0x76,0x69,0x65,0x77])][_0x46e21e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46e21e([0x61,0x75,0x74,0x6f]);}}function _0x1ff5d4(_0x28e736){const _0x5b7035=[new window[(_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29b41c=>setTimeout(_0x29b41c,0x3df6fa2d^_0x239deb)),_0x212d4a[_0x46e21e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dcddc=>{let _0x55b39f=0x0;_0x16c35c[_0x46e21e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46e21e([0x6f,0x6e])](_0x46e21e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x251d7d,_0x1f149c)=>{_0x1f149c[0x0][_0x46e21e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55b39f++,_0x55b39f==(0x3dffc519^_0x239deb)&&(_0x1dcddc(),_0x251d7d[_0x46e21e([0x6f,0x66,0x66])]());});}))];return window[_0x46e21e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46e21e([0x72,0x61,0x63,0x65])](_0x5b7035)[_0x46e21e([0x74,0x68,0x65,0x6e])](()=>_0x28e736);}async function _0x4a5f0b(){await _0x212d4a,_0x16c35c[_0x46e21e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46e21e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3dad84,_0x16c35c[_0x46e21e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46e21e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3dad84,_0x16c35c[_0x46e21e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46e21e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b4a73(_0x152297){const _0xce34b1=_0x205e18();_0x16c35c[_0xce34b1]=_0x46e21e([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x152297,_0x152297!=_0x46e21e([0x56,0x61,0x6c,0x69,0x64])&&_0x4a5f0b();}function _0x205e18(){const _0x918ca5=window[_0x46e21e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46e21e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46e21e([0x6e,0x6f,0x77])]())[_0x46e21e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46e21e([0x2e]),'');let _0x285e40=_0x46e21e([0x6e]);for(let _0x543d03=0x0;_0x543d03<_0x918ca5[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x543d03+=0x2){let _0x477816=window[_0x46e21e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x918ca5[_0x46e21e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543d03,_0x543d03+0x2));_0x477816>=_0x58c388[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x477816-=_0x58c388[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x285e40+=_0x58c388[_0x477816];}return _0x285e40;}function _0x118e63(){const _0x3c1671=_0x9e5a62[_0x46e21e([0x73,0x70,0x6c,0x69,0x74])](_0x46e21e([0x2e]));if(0x3!=_0x3c1671[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15017a(_0x3c1671[0x1]);function _0x15017a(_0x42ce75){const _0x18ef25=_0x35d326(_0x42ce75);return _0x18ef25&&_0x32f327()?_0x18ef25:null;function _0x32f327(){const _0xc09666=_0x18ef25[_0x46e21e([0x6a,0x74,0x69])],_0x27f635=window[_0x46e21e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc09666[_0x46e21e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc09666[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4371e9={..._0x18ef25,[_0x46e21e([0x6a,0x74,0x69])]:_0xc09666[_0x46e21e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc09666[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4371e9[_0x46e21e([0x76,0x63])],_0x275277(_0x4371e9)==_0x27f635;}}}async function _0x4d8eaa(){let _0x3c14a5=!0x0;try{const _0x52c5d9=_0x9e5a62[_0x46e21e([0x73,0x70,0x6c,0x69,0x74])](_0x46e21e([0x2e])),[_0x18f257,_0x34265d,_0x4b26d1]=_0x52c5d9;return _0x38f8ee(_0x18f257),await _0x4a359e(_0x18f257,_0x34265d,_0x4b26d1),_0x3c14a5;}catch{return!0x1;}function _0x38f8ee(_0x55a91e){const _0x33eb06=_0x35d326(_0x55a91e);_0x33eb06&&_0x33eb06[_0x46e21e([0x61,0x6c,0x67])]==_0x46e21e([0x45,0x53,0x32,0x35,0x36])||(_0x3c14a5=!0x1);}async function _0x4a359e(_0x40d695,_0x5d8fe3,_0x2c69cb){const _0x27f63a=window[_0x46e21e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46e21e([0x66,0x72,0x6f,0x6d])](_0x531ca6(_0x2c69cb),_0x4ed751=>_0x4ed751[_0x46e21e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b6ea5=new window[(_0x46e21e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46e21e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40d695+_0x46e21e([0x2e])+_0x5d8fe3),_0x247fe5=window[_0x46e21e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46e21e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x247fe5)return;const _0x1c4c90=await _0x247fe5[_0x46e21e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46e21e([0x6a,0x77,0x6b]),_0x2ab22d,{[_0x46e21e([0x6e,0x61,0x6d,0x65])]:_0x46e21e([0x45,0x43,0x44,0x53,0x41]),[_0x46e21e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46e21e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46e21e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x247fe5[_0x46e21e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46e21e([0x6e,0x61,0x6d,0x65])]:_0x46e21e([0x45,0x43,0x44,0x53,0x41]),[_0x46e21e([0x68,0x61,0x73,0x68])]:{[_0x46e21e([0x6e,0x61,0x6d,0x65])]:_0x46e21e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c4c90,_0x27f63a,_0x4b6ea5)||(_0x3c14a5=!0x1);}}function _0x35d326(_0x53989e){return _0x53989e[_0x46e21e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46e21e([0x65,0x79]))?JSON[_0x46e21e([0x70,0x61,0x72,0x73,0x65])](_0x531ca6(_0x53989e)):null;}function _0x531ca6(_0x379872){return window[_0x46e21e([0x61,0x74,0x6f,0x62])](_0x379872[_0x46e21e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46e21e([0x2b]))[_0x46e21e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46e21e([0x2f])));}function _0x275277(_0x271e52){let _0x1b09e9=0x1505;function _0x5089cd(_0x2af915){for(let _0x172a3b=0x0;_0x172a3b<_0x2af915[_0x46e21e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x172a3b++){const _0x39f491=_0x2af915[_0x46e21e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x172a3b);_0x1b09e9=(_0x1b09e9<<0x5)+_0x1b09e9+_0x39f491,_0x1b09e9&=_0x1b09e9;}}function _0x3a1e82(_0x48a2ac){Array[_0x46e21e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48a2ac)?_0x48a2ac[_0x46e21e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a1e82):_0x48a2ac&&typeof _0x48a2ac==_0x46e21e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46e21e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48a2ac)[_0x46e21e([0x73,0x6f,0x72,0x74])]()[_0x46e21e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3beaaf,_0xfe9313])=>{_0x5089cd(_0x3beaaf),_0x3a1e82(_0xfe9313);}):_0x5089cd(window[_0x46e21e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48a2ac));}return _0x3a1e82(_0x271e52),_0x1b09e9>>>0x0;}function _0x225225(_0x1311c5){return _0x1311c5[_0x46e21e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46e21e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46e21e([0x30]));}function _0x202b58(_0x2d9c35){return _0x2d9c35[_0x46e21e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46e21e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46e21e([0x6a,0x6f,0x69,0x6e])]('');}function _0x3dad84(){}function _0x46e21e(_0x380d71){const _0x4ed0dc=_0x251a;return _0x380d71[_0x4ed0dc(0x234)](_0x1d44cf=>String[_0x4ed0dc(0x1e9)](_0x1d44cf))[_0x4ed0dc(0x20f)]('');}_0x3b4a73(await _0xbaf473());}(this);}[_0x25b1a5(0x1f1)](){const _0x238865=_0x25b1a5,_0x51a249=this[_0x238865(0x249)][_0x238865(0x1fb)];_0x51a249[_0x238865(0x1e2)](_0x4381a6=>{const _0x4c5527=_0x238865,_0x2df4cf=_0x51a249[_0x4c5527(0x21d)][_0x4c5527(0x246)][_0x4c5527(0x244)]();let _0x29af94=0x0;for(const _0x56b74e of _0x2df4cf){const _0x4e7704=P+':'+_0x29af94;if(_0x51a249[_0x4c5527(0x1f6)][_0x4c5527(0x22e)](_0x4e7704))_0x4381a6[_0x4c5527(0x245)](_0x4e7704,{'range':_0x56b74e});else{if(_0x56b74e[_0x4c5527(0x221)][_0x4c5527(0x231)]){const _0x1f2358=_0x56b74e[_0x4c5527(0x221)][_0x4c5527(0x250)](({item:_0x255c4d})=>!_0x51a249[_0x4c5527(0x227)][_0x4c5527(0x201)](_0x255c4d),{'boundaries':_0x56b74e});_0x4381a6[_0x4c5527(0x243)](_0x4e7704,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4381a6[_0x4c5527(0x214)](_0x1f2358,_0x56b74e[_0x4c5527(0x1fa)])});}else _0x4381a6[_0x4c5527(0x243)](_0x4e7704,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x56b74e});}_0x29af94++;}});}[_0x25b1a5(0x233)](){const _0xf3f46c=_0x25b1a5,_0x4cfab2=this[_0xf3f46c(0x249)][_0xf3f46c(0x1fb)],_0x1fbd4e=Array[_0xf3f46c(0x20e)](this[_0xf3f46c(0x249)][_0xf3f46c(0x1fb)][_0xf3f46c(0x1f6)][_0xf3f46c(0x205)](P));_0x1fbd4e[_0xf3f46c(0x20c)]&&_0x4cfab2[_0xf3f46c(0x1e2)](_0x57fcd2=>{const _0x133e7f=_0xf3f46c;_0x1fbd4e[_0x133e7f(0x217)](_0x5ea9fd=>{const _0x440f6f=_0x133e7f;_0x57fcd2[_0x440f6f(0x226)](_0x5ea9fd);});});}[_0x25b1a5(0x212)](_0x45f0d2,_0x876876){const _0x34afa7=_0x25b1a5,_0x1d1a8e=this[_0x34afa7(0x228)](),_0x1935ab=_0x876876||_0x1d1a8e[_0x34afa7(0x216)]();this[_0x34afa7(0x249)][_0x34afa7(0x1fb)][_0x34afa7(0x248)](_0x1935ab)&&this[_0x34afa7(0x249)][_0x34afa7(0x1fb)][_0x34afa7(0x1e2)](_0x5f34cc=>{const _0x54720a=_0x34afa7;this[_0x54720a(0x233)](),_0x876876||this[_0x54720a(0x232)](_0x5f34cc,_0x1d1a8e),this[_0x54720a(0x1ef)]({'insertAt':_0x1935ab,'writer':_0x5f34cc,'html':_0x45f0d2});});}[_0x25b1a5(0x22b)](_0x45480c){const _0x305651=_0x25b1a5,{model:_0x154104}=this[_0x305651(0x249)],_0x1513f2=this[_0x305651(0x228)]();_0x154104[_0x305651(0x1e2)](()=>{const _0x1209f7=_0x305651,_0x569d80=this[_0x1209f7(0x1f7)](_0x45480c,_0x1513f2)||this[_0x1209f7(0x1f0)](_0x1513f2);this[_0x1209f7(0x212)](_0x45480c,_0x569d80);});}[_0x25b1a5(0x228)](){const _0x273873=_0x25b1a5,_0x6c2acd=this[_0x273873(0x249)][_0x273873(0x1fb)],_0x2f649a=Array[_0x273873(0x20e)](_0x6c2acd[_0x273873(0x1f6)][_0x273873(0x205)](P))[_0x273873(0x234)](_0x1a89ba=>_0x1a89ba[_0x273873(0x22c)]());return _0x6c2acd[_0x273873(0x1ed)](_0x2f649a);}[_0x25b1a5(0x1ef)]({writer:_0x214040,html:_0x5a0372,insertAt:_0x558c9f}){const _0x497c43=_0x25b1a5,{view:_0x27be12}=this[_0x497c43(0x249)][_0x497c43(0x213)],_0x3e19d9=this[_0x497c43(0x249)][_0x497c43(0x1f5)][_0x497c43(0x215)](_0x5665dd),_0x3c2fc7=new O();_0x3c2fc7[_0x497c43(0x21e)](_0x497c43(0x21b),_0x5a0372);const _0x26416e=new ClipboardEvent(_0x497c43(0x20b),{'clipboardData':_0x3c2fc7}),_0x551a78=new _0x39e609(_0x27be12,_0x26416e,{'dataTransfer':new _0x42b70c(_0x3c2fc7)});_0x214040[_0x497c43(0x23c)](_0x558c9f);const _0x3660aa=(_0xc36350,_0x16e34a)=>{const _0x1c30d0=_0x497c43;_0x16e34a[_0x1c30d0(0x22f)]&&_0x214040[_0x1c30d0(0x23c)](_0x16e34a[_0x1c30d0(0x22f)]);};_0x3e19d9[_0x497c43(0x237)](_0x497c43(0x1ea),_0x3660aa,{'priority':_0x497c43(0x211)}),_0x27be12[_0x497c43(0x21d)][_0x497c43(0x222)](_0x497c43(0x20b),_0x551a78),_0x3e19d9[_0x497c43(0x22d)](_0x497c43(0x1ea),_0x3660aa);}[_0x25b1a5(0x1f0)](_0x54145f){const _0x24e77b=_0x25b1a5,{model:_0x5dbcdd}=this[_0x24e77b(0x249)],_0x200392=Array[_0x24e77b(0x20e)](_0x54145f[_0x24e77b(0x235)]());return _0x200392[_0x24e77b(0x20c)]?_0x5dbcdd[_0x24e77b(0x200)](_0x200392[_0x24e77b(0x223)]()):_0x54145f[_0x24e77b(0x206)]();}[_0x25b1a5(0x1f7)](_0x334a45,_0x224a7f){const _0x2c0963=_0x25b1a5,{model:_0x4ea91a,plugins:_0x4844ed}=this[_0x2c0963(0x249)];if(_0x4844ed[_0x2c0963(0x22e)](_0x2c0963(0x23d))){const _0x114770=_0x4844ed[_0x2c0963(0x215)](_0x2c0963(0x23d))[_0x2c0963(0x24f)](_0x224a7f);if(_0x114770[_0x2c0963(0x20c)]){const _0x26248a=this[_0x2c0963(0x240)](_0x334a45),_0x12c56f=this[_0x2c0963(0x1f9)](_0x114770,_0x26248a);return _0x4ea91a[_0x2c0963(0x1e5)](_0x12c56f,0x0);}}return null;}[_0x25b1a5(0x240)](_0x4656a0){const _0x43ea61=_0x25b1a5,_0x137568=this[_0x43ea61(0x249)][_0x43ea61(0x1f5)][_0x43ea61(0x215)](_0x43ea61(0x23d)),_0x4e62dc=this[_0x43ea61(0x249)][_0x43ea61(0x239)][_0x43ea61(0x230)](_0x4656a0),_0x44e872=Array[_0x43ea61(0x20e)](_0x4e62dc[_0x43ea61(0x207)]())[_0x43ea61(0x23a)](_0x45a62d=>_0x45a62d['is'](_0x43ea61(0x247),_0x43ea61(0x238)));let _0x2edb94=0x0;return _0x44e872[_0x43ea61(0x217)](_0x45556a=>{const _0x245ac3=_0x43ea61;_0x2edb94+=_0x137568[_0x245ac3(0x24e)](_0x45556a);}),_0x2edb94;}[_0x25b1a5(0x1f9)](_0x432195,_0x392705){const _0x29c025=_0x25b1a5,_0x553be6=this[_0x29c025(0x249)][_0x29c025(0x1f5)][_0x29c025(0x215)](_0x29c025(0x23d)),_0x3742ab=_0x553be6[_0x29c025(0x1f8)](_0x432195),_0x49ec1d=_0x553be6[_0x29c025(0x21c)](_0x432195),_0x252c07=_0x3742ab[_0x29c025(0x1e0)]+0x1,_0x90cfc=_0x49ec1d[_0x29c025(0x1e7)],_0x2ff253=_0x432195[0x0][_0x29c025(0x1df)](_0x29c025(0x238));for(let _0x2226b9=0x0;_0x2226b9<_0x392705;_0x2226b9++)_0x553be6[_0x29c025(0x1f2)](_0x2ff253,{'at':_0x252c07});return _0x2ff253[_0x29c025(0x224)](_0x252c07)[_0x29c025(0x224)](_0x90cfc);}[_0x25b1a5(0x232)](_0x3baf62,_0xc405be){const _0xea0b00=_0x25b1a5,{plugins:_0xf0838d}=this[_0xea0b00(0x249)],{model:_0x42f332}=_0x3baf62;if(!_0xf0838d[_0xea0b00(0x22e)](_0xea0b00(0x23d)))return;_0xf0838d[_0xea0b00(0x215)](_0xea0b00(0x23d))[_0xea0b00(0x24f)](_0xc405be)[_0xea0b00(0x20c)]&&_0x42f332[_0xea0b00(0x219)](_0xc405be);}}
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/aiassistantui
|
|
6
|
+
* @module ai/aiassistant/aiassistantui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { AIAssistantEditing } from './aiassistantediting.js';
|
|
12
12
|
import { AIAdapter } from './adapters/aiadapter.js';
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
13
|
+
import '../../theme/aiassistant/ai.css';
|
|
14
|
+
import '../../theme/aiassistant/ai-dropdown.css';
|
|
15
|
+
import '../../theme/aiassistant/ai-form.css';
|
|
16
16
|
import { ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
|
|
17
17
|
/**
|
|
18
18
|
* The UI plugin of the AI assistant.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x11537b=_0x2f41;(function(_0x5da3a7,_0xb4643b){const _0xce544c=_0x2f41,_0xe2c9f7=_0x5da3a7();while(!![]){try{const _0x327414=-parseInt(_0xce544c(0x157))/0x1*(-parseInt(_0xce544c(0x19d))/0x2)+-parseInt(_0xce544c(0x12f))/0x3+-parseInt(_0xce544c(0xf6))/0x4+-parseInt(_0xce544c(0x194))/0x5*(-parseInt(_0xce544c(0x119))/0x6)+-parseInt(_0xce544c(0x197))/0x7*(parseInt(_0xce544c(0x18b))/0x8)+-parseInt(_0xce544c(0x193))/0x9+-parseInt(_0xce544c(0x12c))/0xa*(-parseInt(_0xce544c(0x180))/0xb);if(_0x327414===_0xb4643b)break;else _0xe2c9f7['push'](_0xe2c9f7['shift']());}catch(_0x57cd9c){_0xe2c9f7['push'](_0xe2c9f7['shift']());}}}(_0x2588,0x19878));import{Plugin as _0x326f79}from'ckeditor5/src/core.js';import{IconMagicWand as _0x4e1f8f,IconRobotPencil as _0x2492bc}from'ckeditor5/src/icons.js';import{first as _0x38bc6c,CKEditorError as _0x29079b}from'ckeditor5/src/utils.js';import{createDropdown as _0x38faa8,addMenuToDropdown as _0x337270,ButtonView as _0x1cc17b,MenuBarMenuListItemButtonView as _0x215053,Dialog as _0x18146c,DialogViewPosition as _0x3560d2,MenuBarMenuView as _0x33968b,MenuBarMenuListView as _0x555591,MenuBarMenuListItemView as _0x177a71}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x534cf4,UNGROUPED_COMMANDS_GROUP_ID as _0x56a9f}from'./utils/normalizecommandsconfig.js';function _0x2f41(_0x4313e4,_0x40b27b){const _0x258827=_0x2588();return _0x2f41=function(_0x2f4111,_0x51d905){_0x2f4111=_0x2f4111-0xf3;let _0x542c9f=_0x258827[_0x2f4111];return _0x542c9f;},_0x2f41(_0x4313e4,_0x40b27b);}import{AIAssistantEditing as _0x2b9300}from'./aiassistantediting.js';import{AIAdapter as _0x409e0c}from'./adapters/aiadapter.js';import{getTranslation as _0x4e7519}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x587608}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x347c1c}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x46ad0d}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x32497b}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const O=globalThis[_0x11537b(0x14f)];function _0x2588(){const _0x2ff084=['updateView','textAdapter','aiLicenseKeyUsageLimit','panelView','change:enabledCommandsIds','66dQnXXW','domainLimit','rawHtml','_uiCssClasses','push','showUI','buttons','invalid','getSelectedBlocks','aiAssistant','show','8BorFsV','media','aiLicenseKeyEvaluationLimit','groupLabel','document','isFlat','featureNotAllowed','values','1647342dqDsnD','8510RWqiny','text','execute','388507DEFeiQ','copy','map','children','aiLicenseKeyNotAllowed','model','2safRNo','command:','showFakeVisualSelection','evaluationLimit','splice','init','_dialog','_showLicenseError','menuitemcheckbox','insertContentBelow','99440ZpQwND','editor','length','menuBar:aiAssistant','updatePosition','change:isError','getData','_getMenuBarGroupButtons','errorView','menuPanelClass','plugins','polite','prompt','announce','hideFakeVisualSelection','AI\x20Assistant','change:value','trialLimit','bind','ai-commands-config-order-collision','label','focus','aiLicenseKeyTrialLimit','sort','_licenseKeyCheckInterval','_createAIAssistantUIButton','queryView','change:isProcessing','AIAssistantUI','ck-ai-commands-dropdown\x20','expired','setSelection','insertContent','promptView','includes','210brwqui','ai.assistant.disabledElements','config','selection','_initView','reset','AI\x20is\x20writing','</p>','trim','<p>','define','usageLimit','requires','ai.assistant.commands','forEach','\x20ck-ai-assistant-ui_theme','delegate','isOfficialPlugin','tableOfContents','622130iezQeY','editing','requiresContent','314655pFIVRq','custom','replace','_populateMenuBarMenu','once','groupId','AI\x20Commands','_getResolvedCommandsDefinitions','update','filter','_formView','Error\x20during\x20AI\x20content\x20generation:\x20%0','isPremiumPlugin','isCollapsed','AIAssistant','showAIAssistant','add','EDITOR_TOP_SIDE','getLimitElement','aiLicenseKeyExpired','ai.assistant.useTheme','pluginName','licenseKey','view','aiLicenseKeyDomainLimit','menuView','componentFactory','locale','getRanges','render','source','_forceMarkersCopy','DataTransfer','text/html','INSERT','wasMoved','schema','destroy','comment','menuBar:aiCommands','40004ouFidY','from','ck-ai-assistant-ui','_commandDefinitions','currentContext','hideUI','hide','_aiAssistantController','aiLicenseKeyInvalid','listenTo','change','fire','ai.assistant.contentAreaCssClass','isOn','Generated\x20content:\x20%0','replaceContent','_onExecute','ck-ai-assistant-button\x20','contentArea','REPLACE','addMany','aiLicenseKeyValid','_initAriaAiStatusChangeAnnouncements','commands','_aiAdapter','order','enabledCommandsIds','isEnabled','set','items','buttonView','body','get','getSelectedElement','aiCommands','fieldView'];_0x2588=function(){return _0x2ff084;};return _0x2588();}import{ClipboardMarkersUtils as _0x1966e2}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x24719c,ViewDataTransfer as _0x373a08}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x326f79{[_0x11537b(0x145)];[_0x11537b(0x10e)];[_0x11537b(0x1a3)];[_0x11537b(0x139)];[_0x11537b(0x16f)];[_0x11537b(0x15e)];[_0x11537b(0x183)]='';static get[_0x11537b(0x144)](){const _0x4a897d=_0x11537b;return _0x4a897d(0x112);}static get[_0x11537b(0x12a)](){return!0x0;}static get[_0x11537b(0x13b)](){return!0x0;}static get[_0x11537b(0x125)](){return[_0x1966e2,_0x2b9300,_0x409e0c,_0x18146c];}constructor(_0x14c282){const _0x1aa57d=_0x11537b;super(_0x14c282),_0x14c282[_0x1aa57d(0x11b)][_0x1aa57d(0x123)](_0x1aa57d(0x11a),[_0x1aa57d(0x18c),_0x1aa57d(0x182),_0x1aa57d(0x12b)]),_0x14c282[_0x1aa57d(0x11b)][_0x1aa57d(0x123)](_0x1aa57d(0x163),''),_0x14c282[_0x1aa57d(0x11b)][_0x1aa57d(0x123)](_0x1aa57d(0x143),!0x0),this[_0x1aa57d(0x183)]=_0x1aa57d(0x159)+(_0x14c282[_0x1aa57d(0x11b)][_0x1aa57d(0x177)](_0x1aa57d(0x143))?_0x1aa57d(0x128):'');}[_0x11537b(0x1a2)](){const _0x9b5fd4=_0x11537b,{editor:_0xa00005}=this;this[_0x9b5fd4(0x16f)]=_0xa00005[_0x9b5fd4(0x100)][_0x9b5fd4(0x177)](_0x409e0c),this[_0x9b5fd4(0x1a3)]=_0xa00005[_0x9b5fd4(0x100)][_0x9b5fd4(0x177)](_0x18146c),this[_0x9b5fd4(0x139)]=null,this[_0x9b5fd4(0x15a)]=this[_0x9b5fd4(0x136)]();const _0x14b8e9=new _0x587608(_0xa00005,Array[_0x9b5fd4(0x158)](this[_0x9b5fd4(0x15a)][_0x9b5fd4(0x192)]()));_0xa00005[_0x9b5fd4(0x16e)][_0x9b5fd4(0x13f)](_0x9b5fd4(0x13e),_0x14b8e9),_0xa00005['ui'][_0x9b5fd4(0x149)][_0x9b5fd4(0x13f)](_0x9b5fd4(0x179),_0x507c43=>{const _0x374b39=_0x9b5fd4,_0xf7e222=_0x38faa8(_0x507c43);return _0xf7e222[_0x374b39(0x173)]({'class':_0x374b39(0x113)+this[_0x374b39(0x183)]}),_0xf7e222[_0x374b39(0x175)][_0x374b39(0x173)]({'label':_0x4e7519(_0x507c43,_0x374b39(0x135)),'icon':_0x4e1f8f,'tooltip':!0x0}),_0xf7e222['on'](_0x374b39(0x196),_0x56791c=>this[_0x374b39(0x167)](_0x56791c[_0x374b39(0x14d)]['id'])),_0x337270(_0xf7e222,_0xa00005['ui'][_0x374b39(0x146)][_0x374b39(0x176)],function(_0x2f6308){const _0x79e12=_0x374b39,_0x50dc1b=_0x534cf4(_0x2f6308[_0x79e12(0x11b)][_0x79e12(0x177)](_0x79e12(0x126)),_0x2f6308[_0x79e12(0x14a)]),_0x16b4f3=ii(_0x2f6308,_0x50dc1b)[_0x79e12(0x138)](_0x2aafa4=>_0x2aafa4[_0x79e12(0x16e)][_0x79e12(0xf8)]);if(0x1===_0x16b4f3[_0x79e12(0xf8)])return ii(_0x2f6308,_0x16b4f3[0x0][_0x79e12(0x16e)])[_0x79e12(0x199)](_0x4b9848=>({'id':_0x4b9848['id'],'label':_0x4b9848[_0x79e12(0x10a)]}));return _0x16b4f3[_0x79e12(0x199)](_0x35d2a2=>{const _0x4aebd9=_0x79e12,{groupId:_0x306ec2,groupLabel:_0x22421a,commands:_0x44dc79}=_0x35d2a2,_0x5e2aed=ii(_0x2f6308,_0x44dc79)[_0x4aebd9(0x199)](_0x2b6b8b=>({'id':_0x2b6b8b['id'],'label':_0x2b6b8b[_0x4aebd9(0x10a)]}));return{'id':_0x306ec2,'menu':_0x22421a||_0x306ec2,'children':_0x5e2aed};});}(_0xa00005),{'ariaLabel':_0x4e7519(_0x507c43,_0x374b39(0x135))}),_0xf7e222[_0x374b39(0x148)][_0x374b39(0xff)]=_0x374b39(0x113)+this[_0x374b39(0x183)],_0x14b8e9['on'](_0x374b39(0x17f),_0x53742f),_0xf7e222[_0x374b39(0x148)][_0x374b39(0x133)](_0x374b39(0x14c),_0x53742f),_0xf7e222;function _0x53742f(){const _0x370f81=_0x374b39;_0xf7e222[_0x370f81(0x172)]=_0x14b8e9[_0x370f81(0x171)][_0x370f81(0xf8)]>0x0;for(const _0x2817bf of _0xf7e222[_0x370f81(0x148)][_0x370f81(0x186)])_0x2817bf[_0x370f81(0x172)]=_0x14b8e9[_0x370f81(0x171)][_0x370f81(0x118)](_0x2817bf['id']);}}),_0xa00005['ui'][_0x9b5fd4(0x149)][_0x9b5fd4(0x13f)](_0x9b5fd4(0x156),_0xaccb18=>{const _0x4681e3=_0x9b5fd4,_0xb4683d=new _0x33968b(_0xaccb18);_0xb4683d[_0x4681e3(0x175)][_0x4681e3(0x173)]({'label':_0x4e7519(_0xaccb18,_0x4681e3(0x135)),'icon':_0x4e1f8f}),_0xb4683d[_0x4681e3(0x108)](_0x4681e3(0x172))['to'](_0x14b8e9,_0x4681e3(0x171),_0x4612e9=>_0x4612e9[_0x4681e3(0xf8)]>0x0);const _0x57277d=_0x534cf4(_0xa00005[_0x4681e3(0x11b)][_0x4681e3(0x177)](_0x4681e3(0x126)),_0xaccb18);return this[_0x4681e3(0x132)](_0x14b8e9,_0xb4683d,_0x57277d,_0x3930ea=>this[_0x4681e3(0x167)](_0x3930ea)),_0xb4683d;}),_0xa00005['ui'][_0x9b5fd4(0x149)][_0x9b5fd4(0x13f)](_0x9b5fd4(0x189),()=>{const _0x5118ce=_0x9b5fd4,_0x13b64e=this[_0x5118ce(0x10f)](_0x1cc17b);return _0x13b64e[_0x5118ce(0x173)]({'tooltip':!0x0,'class':_0x5118ce(0x168)+this[_0x5118ce(0x183)]}),_0x13b64e;}),_0xa00005['ui'][_0x9b5fd4(0x149)][_0x9b5fd4(0x13f)](_0x9b5fd4(0xf9),()=>{const _0x491b61=_0x9b5fd4,_0x4c6c89=this[_0x491b61(0x10f)](_0x215053);return _0x4c6c89[_0x491b61(0x173)]({'role':_0x491b61(0xf4)}),_0x4c6c89;}),this[_0x9b5fd4(0x145)]=this[_0x9b5fd4(0xf7)][_0x9b5fd4(0x11b)][_0x9b5fd4(0x177)](_0x9b5fd4(0x145));const _0x40f426=this[_0x9b5fd4(0xf7)];this[_0x9b5fd4(0x10e)]=setInterval(()=>{const _0x389b9f=_0x9b5fd4;let _0x90fdbe;for(const _0x21c080 in _0x40f426){const _0x2751eb=_0x21c080,_0x4577f6=_0x40f426[_0x2751eb];if(_0x389b9f(0x16c)==_0x4577f6||_0x389b9f(0x15f)==_0x4577f6||_0x389b9f(0x142)==_0x4577f6||_0x389b9f(0x147)==_0x4577f6||_0x389b9f(0x19b)==_0x4577f6||_0x389b9f(0x18d)==_0x4577f6||_0x389b9f(0x10c)==_0x4577f6||_0x389b9f(0x17d)==_0x4577f6){delete _0x40f426[_0x2751eb],_0x90fdbe=_0x4577f6,clearInterval(this[_0x389b9f(0x10e)]),this[_0x389b9f(0x10e)]=void 0x0;break;}}_0x389b9f(0x15f)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x187)),_0x389b9f(0x142)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x114)),_0x389b9f(0x147)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x181)),_0x389b9f(0x19b)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x191),_0x389b9f(0x13d)),_0x389b9f(0x18d)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x1a0)),_0x389b9f(0x10c)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x107)),_0x389b9f(0x17d)==_0x90fdbe&&_0x40f426[_0x389b9f(0xf3)](_0x389b9f(0x124));},0x3e8);}[_0x11537b(0x154)](){const _0x57b7ab=_0x11537b;super[_0x57b7ab(0x154)](),this[_0x57b7ab(0x10e)]&&clearInterval(this[_0x57b7ab(0x10e)]);}[_0x11537b(0x185)](_0x4a8a01='',_0x5d5d19='',_0x4b3fc8=_0x11537b(0x130)){const _0x366406=_0x11537b,_0x4e9042=this[_0x366406(0xf7)],_0x1c56e6=_0x4e9042[_0x366406(0x12d)][_0x366406(0x146)],_0x1b9761=_0x4e9042[_0x366406(0x100)][_0x366406(0x177)](_0x2b9300),_0x190e73=_0x4e9042[_0x366406(0x100)][_0x366406(0x177)](_0x1966e2);_0x1b9761[_0x366406(0x19f)]();const _0x462680=new O(),_0x4f2db1=new ClipboardEvent(_0x366406(0x198),{'clipboardData':_0x462680}),_0x1a0ff3=new _0x373a08(_0x462680),_0x3c0173=new _0x24719c(_0x1c56e6,_0x4f2db1,{'dataTransfer':_0x1a0ff3});_0x190e73[_0x366406(0x14e)](_0x366406(0x155),()=>{const _0x254ef2=_0x366406;_0x1c56e6[_0x254ef2(0x18f)][_0x254ef2(0x162)](_0x254ef2(0x198),_0x3c0173);}),this[_0x366406(0x139)]||(this[_0x366406(0x11d)](),this[_0x366406(0x15e)]=new _0x347c1c(_0x4e9042,this[_0x366406(0x16f)][_0x366406(0x17c)],this[_0x366406(0x139)]));let _0x15b377=_0x1a0ff3[_0x366406(0xfc)](_0x366406(0x150));const _0x5f1d2d=_0x4e9042[_0x366406(0x19c)][_0x366406(0x18f)][_0x366406(0x11c)],_0x391a57=Array[_0x366406(0x158)](_0x5f1d2d[_0x366406(0x14b)]());0x1===_0x391a57[_0x366406(0xf8)]&&_0x391a57[0x0][_0x366406(0x190)]&&!_0x5f1d2d[_0x366406(0x178)]()&&''!==_0x15b377[_0x366406(0x131)](/ /g,'')[_0x366406(0x121)]()&&(_0x15b377=_0x366406(0x122)+_0x15b377+_0x366406(0x120)),this[_0x366406(0x15e)][_0x366406(0x17b)]({'actionId':_0x4b3fc8,'query':_0x4a8a01,'htmlContent':_0x15b377,'label':_0x5d5d19,'mainActionLabel':_0x32497b[_0x4e9042[_0x366406(0x19c)][_0x366406(0x18f)][_0x366406(0x11c)][_0x366406(0x13c)]?_0x366406(0x151):_0x366406(0x16a)]}),_0x366406(0x189)!==this[_0x366406(0x1a3)]['id']?this[_0x366406(0x1a3)][_0x366406(0x18a)]({'id':_0x366406(0x189),'icon':_0x2492bc,'title':_0x4e7519(this[_0x366406(0xf7)][_0x366406(0x14a)],_0x366406(0x105)),'content':this[_0x366406(0x139)],'position':_0x3560d2[_0x366406(0x140)],'onShow':()=>{const _0x4872a1=_0x366406;this[_0x4872a1(0x139)][_0x4872a1(0x10b)]();},'onHide':()=>{const _0x39c30e=_0x366406;this[_0x39c30e(0x15e)][_0x39c30e(0x11e)](),_0x1b9761[_0x39c30e(0x104)]();}}):this[_0x366406(0x1a3)][_0x366406(0x146)][_0x366406(0x152)]||this[_0x366406(0x1a3)][_0x366406(0x146)][_0x366406(0xfa)]();}[_0x11537b(0x15c)](){const _0x45d4b5=_0x11537b;this[_0x45d4b5(0x1a3)][_0x45d4b5(0x15d)]();}[_0x11537b(0x136)](){const _0x3e0366=_0x11537b,_0x125a1d=new Map(),_0x3ae426=_0x534cf4(this[_0x3e0366(0xf7)][_0x3e0366(0x11b)][_0x3e0366(0x177)](_0x3e0366(0x126)),this[_0x3e0366(0xf7)][_0x3e0366(0x14a)]);for(const _0x5870ea of _0x3ae426)for(const _0x5257a3 of _0x5870ea[_0x3e0366(0x16e)])_0x125a1d[_0x3e0366(0x173)](_0x5257a3['id'],{..._0x5257a3,'groupId':_0x5870ea[_0x3e0366(0x134)],'groupLabel':_0x5870ea[_0x3e0366(0x18e)]||_0x5870ea[_0x3e0366(0x134)]});return _0x125a1d;}[_0x11537b(0x10f)](_0x28f276){const _0x2427a9=_0x11537b,_0xbdb372=this[_0x2427a9(0xf7)],_0xaaf5b=_0xbdb372[_0x2427a9(0x16e)][_0x2427a9(0x177)](_0x2427a9(0x13e)),_0x394adc=new _0x28f276(_0xbdb372[_0x2427a9(0x14a)]);return _0x394adc[_0x2427a9(0x173)]({'label':_0x4e7519(_0xbdb372[_0x2427a9(0x14a)],_0x2427a9(0x105)),'icon':_0x2492bc,'isToggleable':!0x0}),_0x394adc[_0x2427a9(0x108)](_0x2427a9(0x172))['to'](_0xaaf5b),_0x394adc[_0x2427a9(0x108)](_0x2427a9(0x164))['to'](this[_0x2427a9(0x1a3)],'id',_0x4b7a4d=>_0x2427a9(0x189)===_0x4b7a4d),this[_0x2427a9(0x160)](_0x394adc,_0x2427a9(0x196),()=>{const _0x43395a=_0x2427a9;_0x394adc[_0x43395a(0x164)]?this[_0x43395a(0x15c)]():_0xaaf5b[_0x43395a(0x196)]();}),_0x394adc;}[_0x11537b(0x11d)](){const _0x4b70bd=_0x11537b,_0x467fdf=this[_0x4b70bd(0xf7)][_0x4b70bd(0x100)][_0x4b70bd(0x177)](_0x2b9300);this[_0x4b70bd(0x139)]=new _0x46ad0d(this[_0x4b70bd(0xf7)][_0x4b70bd(0x14a)],this[_0x4b70bd(0x183)],this[_0x4b70bd(0xf7)][_0x4b70bd(0x11b)][_0x4b70bd(0x177)](_0x4b70bd(0x163))),this[_0x4b70bd(0x139)]['on'](_0x4b70bd(0x106),()=>{const _0xfb86fc=_0x4b70bd;this[_0xfb86fc(0x1a3)][_0xfb86fc(0x146)][_0xfb86fc(0x152)]||this[_0xfb86fc(0x1a3)][_0xfb86fc(0x146)][_0xfb86fc(0xfa)]();}),this[_0x4b70bd(0x139)][_0x4b70bd(0x117)][_0x4b70bd(0x110)][_0x4b70bd(0x17a)]['on'](_0x4b70bd(0x137),()=>{const _0xae1d12=_0x4b70bd;this[_0xae1d12(0x1a3)][_0xae1d12(0x146)][_0xae1d12(0x152)]||this[_0xae1d12(0x1a3)][_0xae1d12(0x146)][_0xae1d12(0xfa)]();}),this[_0x4b70bd(0x160)](this[_0x4b70bd(0x139)],_0x4b70bd(0x166),()=>{const _0x30be43=_0x4b70bd;_0x467fdf[_0x30be43(0x116)](this[_0x30be43(0x15e)][_0x30be43(0x15b)]),this[_0x30be43(0x15c)]();}),this[_0x4b70bd(0x160)](this[_0x4b70bd(0x139)],_0x4b70bd(0xf5),()=>{const _0x3e3085=_0x4b70bd;_0x467fdf[_0x3e3085(0xf5)](this[_0x3e3085(0x15e)][_0x3e3085(0x15b)]),this[_0x3e3085(0x15c)]();}),this[_0x4b70bd(0x16d)]();}[_0x11537b(0x16d)](){const _0x10aa09=_0x11537b,{locale:_0x44ee63,ui:{ariaLiveAnnouncer:_0x185b34}}=this[_0x10aa09(0xf7)];this[_0x10aa09(0x139)][_0x10aa09(0x169)]['on'](_0x10aa09(0x111),(_0x47be08,_0x1d5726,_0x397bba)=>{const _0x159a90=_0x10aa09,_0x5f5609=this[_0x159a90(0x15e)][_0x159a90(0x15b)];_0x397bba?_0x185b34[_0x159a90(0x103)](_0x4e7519(_0x44ee63,_0x159a90(0x11f))):_0x5f5609&&_0x185b34[_0x159a90(0x103)](_0x4e7519(_0x44ee63,_0x159a90(0x165),_0x5f5609),{'politeness':_0x159a90(0x101),'isUnsafeHTML':!0x0});}),this[_0x10aa09(0x139)]['on'](_0x10aa09(0xfb),(_0xdabc8e,_0x489064,_0x418601)=>{const _0x10422b=_0x10aa09;if(_0x418601){const _0x363233=this[_0x10422b(0x139)][_0x10422b(0xfe)][_0x10422b(0x195)];_0x185b34[_0x10422b(0x103)](_0x4e7519(_0x44ee63,_0x10422b(0x13a),_0x363233));}});}[_0x11537b(0x167)](_0x3666dc){const _0x5c4e3b=_0x11537b,_0x344e49=this[_0x5c4e3b(0x15a)][_0x5c4e3b(0x177)](_0x3666dc),_0x1d677=this[_0x5c4e3b(0xf7)],_0x3bffa7=_0x1d677[_0x5c4e3b(0x19c)][_0x5c4e3b(0x18f)][_0x5c4e3b(0x11c)],_0x3768e8=_0x1d677[_0x5c4e3b(0x16e)][_0x5c4e3b(0x177)](_0x5c4e3b(0x13e)),_0x50f10a=_0x1d677[_0x5c4e3b(0x100)][_0x5c4e3b(0x177)](_0x2b9300),_0x32e2e7=''+(_0x344e49[_0x5c4e3b(0x134)]!==_0x56a9f?_0x344e49[_0x5c4e3b(0x18e)]+':\x20':'')+_0x344e49[_0x5c4e3b(0x10a)];if(!0x1!==_0x344e49[_0x5c4e3b(0x12e)]&&_0x3bffa7[_0x5c4e3b(0x13c)]){const _0xe10bab=_0x38bc6c(_0x3bffa7[_0x5c4e3b(0x188)]())||_0x1d677[_0x5c4e3b(0x19c)][_0x5c4e3b(0x153)][_0x5c4e3b(0x141)](_0x3bffa7);_0x1d677[_0x5c4e3b(0x19c)][_0x5c4e3b(0x161)](_0x366e96=>{const _0x5e7b2c=_0x5c4e3b;_0x366e96[_0x5e7b2c(0x115)](_0xe10bab,'in');});}_0x50f10a[_0x5c4e3b(0x19f)](),_0x3768e8[_0x5c4e3b(0x196)](_0x344e49[_0x5c4e3b(0x102)],_0x32e2e7,_0x5c4e3b(0x19e)+_0x3666dc);}[_0x11537b(0x132)](_0x5c237c,_0x54ec0d,_0x3c5afe,_0x4b7522){const _0x55682f=_0x11537b,_0x2e47c2=this[_0x55682f(0xf7)],_0xa1aecf=_0x2e47c2[_0x55682f(0x14a)],_0x501755=new _0x555591(_0xa1aecf),_0x575294=ii(_0x2e47c2,_0x3c5afe)[_0x55682f(0x138)](_0x4b04c8=>_0x4b04c8[_0x55682f(0x16e)][_0x55682f(0xf8)]);0x1===_0x575294[_0x55682f(0xf8)]?this[_0x55682f(0xfd)]({'command':_0x5c237c,'commands':_0x575294[0x0][_0x55682f(0x16e)],'parentMenuView':_0x54ec0d,'onExecute':_0x4b7522})[_0x55682f(0x127)](_0x4ebbef=>_0x501755[_0x55682f(0x174)][_0x55682f(0x13f)](_0x4ebbef)):_0x575294[_0x55682f(0x127)](({groupId:_0x53412f,groupLabel:_0x1c3033,commands:_0x86110e})=>{const _0x4e50e8=_0x55682f,_0x1737bc=new _0x177a71(_0xa1aecf,_0x54ec0d),_0x13539c=new _0x33968b(_0xa1aecf),_0x16cde2=new _0x555591(_0xa1aecf),_0x349918=this[_0x4e50e8(0xfd)]({'command':_0x5c237c,'commands':_0x86110e,'parentMenuView':_0x13539c,'onExecute':_0x4b7522});_0x13539c[_0x4e50e8(0x175)][_0x4e50e8(0x173)]({'label':_0x1c3033||_0x53412f}),_0x13539c[_0x4e50e8(0x129)](_0x4e50e8(0x196))['to'](_0x54ec0d),_0x16cde2[_0x4e50e8(0x174)][_0x4e50e8(0x16b)](_0x349918),_0x13539c[_0x4e50e8(0x17e)][_0x4e50e8(0x19a)][_0x4e50e8(0x13f)](_0x16cde2),_0x1737bc[_0x4e50e8(0x19a)][_0x4e50e8(0x13f)](_0x13539c),_0x501755[_0x4e50e8(0x174)][_0x4e50e8(0x13f)](_0x1737bc);}),_0x54ec0d[_0x55682f(0x17e)][_0x55682f(0x19a)][_0x55682f(0x13f)](_0x501755);}[_0x11537b(0xfd)]({command:_0x54e9dc,commands:_0x595609,parentMenuView:_0x2adb44,onExecute:_0x37ba4c}){const _0x3b2be8=_0x11537b,_0x1e8a31=this[_0x3b2be8(0xf7)],_0x48bfb5=_0x1e8a31[_0x3b2be8(0x14a)];return ii(_0x1e8a31,_0x595609)[_0x3b2be8(0x199)](_0x522de4=>{const _0x25ffae=_0x3b2be8,_0x34d210=new _0x177a71(_0x48bfb5,_0x2adb44),_0xb6968b=new _0x215053(_0x48bfb5);return _0xb6968b[_0x25ffae(0x173)]({'label':_0x522de4[_0x25ffae(0x10a)]}),_0xb6968b[_0x25ffae(0x129)](_0x25ffae(0x196))['to'](_0x2adb44),_0xb6968b['on'](_0x25ffae(0x196),()=>_0x37ba4c(_0x522de4['id'])),_0xb6968b[_0x25ffae(0x108)](_0x25ffae(0x172))['to'](_0x54e9dc,_0x25ffae(0x171),_0x56403f=>_0x56403f[_0x25ffae(0x118)](_0x522de4['id'])),_0x34d210[_0x25ffae(0x19a)][_0x25ffae(0x13f)](_0xb6968b),_0x34d210;});}}function Z(_0x2aef2a,_0x4eb810){const _0xc75f2a=_0x11537b;return void 0x0!==_0x2aef2a[_0xc75f2a(0x170)]&&void 0x0===_0x4eb810[_0xc75f2a(0x170)]?0x1:void 0x0===_0x2aef2a[_0xc75f2a(0x170)]&&void 0x0!==_0x4eb810[_0xc75f2a(0x170)]?-0x1:void 0x0!==_0x2aef2a[_0xc75f2a(0x170)]&&void 0x0!==_0x4eb810[_0xc75f2a(0x170)]?_0x2aef2a[_0xc75f2a(0x170)]-_0x4eb810[_0xc75f2a(0x170)]:0x0;}function ii(_0x1638a4,_0x11ac67){const _0x338864=_0x11537b;_0x11ac67[_0x338864(0x10d)](Z);const _0x17dd79={},_0x477536=[];for(const _0x125e20 of _0x11ac67)if(void 0x0!==_0x125e20[_0x338864(0x170)]){if(_0x125e20[_0x338864(0x170)]in _0x17dd79)throw new _0x29079b(_0x338864(0x109),_0x1638a4,{'conflictingDefinitions':[_0x125e20,_0x17dd79[_0x125e20[_0x338864(0x170)]]]});_0x17dd79[_0x125e20[_0x338864(0x170)]]=_0x125e20,_0x477536[_0x338864(0x1a1)](_0x125e20[_0x338864(0x170)],0x0,_0x125e20);}else _0x477536[_0x338864(0x184)](_0x125e20);return _0x477536;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4d3c(){var _0x2af6f5=['3859976cYGOmN','18ybTkbf','58lTSlxP','6ZUPxWb','3384255dDphid','594hMyKKx','16314gWqkSw','126672DfKiFX','2490948zPgCSX','5025805ALmPgg','398100tBIlAC'];_0x4d3c=function(){return _0x2af6f5;};return _0x4d3c();}(function(_0x3408d6,_0x34e8f9){var _0x442ad5=_0x487f,_0x2650db=_0x3408d6();while(!![]){try{var _0x39d3b0=-parseInt(_0x442ad5(0x101))/0x1*(parseInt(_0x442ad5(0xfd))/0x2)+parseInt(_0x442ad5(0x102))/0x3+-parseInt(_0x442ad5(0x103))/0x4+-parseInt(_0x442ad5(0x104))/0x5*(-parseInt(_0x442ad5(0xfe))/0x6)+-parseInt(_0x442ad5(0xff))/0x7+-parseInt(_0x442ad5(0x106))/0x8*(parseInt(_0x442ad5(0x107))/0x9)+parseInt(_0x442ad5(0x105))/0xa*(parseInt(_0x442ad5(0x100))/0xb);if(_0x39d3b0===_0x34e8f9)break;else _0x2650db['push'](_0x2650db['shift']());}catch(_0x3a19d1){_0x2650db['push'](_0x2650db['shift']());}}}(_0x4d3c,0x9f617));function _0x487f(_0x4875fd,_0x4d2610){var _0x4d3c6e=_0x4d3c();return _0x487f=function(_0x487f8a,_0x59dd48){_0x487f8a=_0x487f8a-0xfd;var _0x225120=_0x4d3c6e[_0x487f8a];return _0x225120;},_0x487f(_0x4875fd,_0x4d2610);}import{CKEditorError as _0x2823b3}from'ckeditor5/src/utils.js';
|
|
@@ -22,7 +22,7 @@ export declare class AIAssistantController extends /* #__PURE__ -- @preserve */
|
|
|
22
22
|
*/
|
|
23
23
|
readonly editor: Editor;
|
|
24
24
|
/**
|
|
25
|
-
* An instance of the {@link module:ai/adapters/aitextadapter~AITextAdapter}.
|
|
25
|
+
* An instance of the {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapter}.
|
|
26
26
|
*/
|
|
27
27
|
readonly textAdapter: AITextAdapter;
|
|
28
28
|
/**
|
|
@@ -59,8 +59,8 @@ export declare class AIAssistantController extends /* #__PURE__ -- @preserve */
|
|
|
59
59
|
*/
|
|
60
60
|
previousQuery?: string;
|
|
61
61
|
/**
|
|
62
|
-
* The label of the previous executed query. It is connected to {@link ~AIAssistantController#previousQuery `previousQuery`}
|
|
63
|
-
* to handle the "try again" event.
|
|
62
|
+
* The label of the previous executed query. It is connected to {@link ~AIAssistantController#previousQuery `previousQuery`}
|
|
63
|
+
* and is kept to handle the "try again" event.
|
|
64
64
|
*
|
|
65
65
|
* @observable
|
|
66
66
|
*/
|
|
@@ -92,7 +92,8 @@ export declare class AIAssistantController extends /* #__PURE__ -- @preserve */
|
|
|
92
92
|
* This function should be called whenever the AI dialog is displayed.
|
|
93
93
|
*
|
|
94
94
|
* @param options
|
|
95
|
-
* @param options.actionId ID of the performed action.
|
|
95
|
+
* @param options.actionId ID of the performed action.
|
|
96
|
+
* See {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId}.
|
|
96
97
|
* @param options.htmlContent The selected HTML content on which the AI should base.
|
|
97
98
|
* @param options.query The initial query to be processed.
|
|
98
99
|
* @param options.label The label that will be displayed in the view.
|