@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +34 -34
- package/lang/translations/bg.po +26 -26
- package/lang/translations/bn.po +26 -26
- package/lang/translations/ca.po +26 -26
- package/lang/translations/cs.po +28 -28
- package/lang/translations/da.po +26 -26
- package/lang/translations/de.po +26 -26
- package/lang/translations/el.po +26 -26
- package/lang/translations/es.po +26 -26
- package/lang/translations/et.po +26 -26
- package/lang/translations/fi.po +26 -26
- package/lang/translations/fr.po +26 -26
- package/lang/translations/he.po +26 -26
- package/lang/translations/hi.po +26 -26
- package/lang/translations/hu.po +26 -26
- package/lang/translations/id.po +24 -24
- package/lang/translations/it.po +26 -26
- package/lang/translations/ja.po +24 -24
- package/lang/translations/ko.po +24 -24
- package/lang/translations/lt.po +28 -28
- package/lang/translations/lv.po +28 -28
- package/lang/translations/ms.po +24 -24
- package/lang/translations/nl.po +26 -26
- package/lang/translations/no.po +26 -26
- package/lang/translations/pl.po +28 -28
- package/lang/translations/pt-br.po +26 -26
- package/lang/translations/pt.po +26 -26
- package/lang/translations/ro.po +28 -28
- package/lang/translations/ru.po +28 -28
- package/lang/translations/sk.po +28 -28
- package/lang/translations/sr.po +28 -28
- package/lang/translations/sv.po +26 -26
- package/lang/translations/th.po +24 -24
- package/lang/translations/tr.po +26 -26
- package/lang/translations/uk.po +28 -28
- package/lang/translations/vi.po +24 -24
- package/lang/translations/zh-cn.po +24 -24
- package/lang/translations/zh.po +24 -24
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x125184=_0x54d0;(function(_0x14222b,_0x334dc6){const _0x3cd3ea=_0x54d0,_0x1d7367=_0x14222b();while(!![]){try{const _0x529bc3=parseInt(_0x3cd3ea(0x190))/0x1+parseInt(_0x3cd3ea(0x187))/0x2*(parseInt(_0x3cd3ea(0x184))/0x3)+-parseInt(_0x3cd3ea(0x193))/0x4+parseInt(_0x3cd3ea(0x185))/0x5*(parseInt(_0x3cd3ea(0x177))/0x6)+parseInt(_0x3cd3ea(0x17a))/0x7+-parseInt(_0x3cd3ea(0x17d))/0x8*(-parseInt(_0x3cd3ea(0x18f))/0x9)+parseInt(_0x3cd3ea(0x191))/0xa*(-parseInt(_0x3cd3ea(0x196))/0xb);if(_0x529bc3===_0x334dc6)break;else _0x1d7367['push'](_0x1d7367['shift']());}catch(_0x15e1b1){_0x1d7367['push'](_0x1d7367['shift']());}}}(_0x1f80,0xdf799));import{ListItemView as _0x33cc2b,View as _0x51a68f,ListView as _0x296c25}from'ckeditor5/src/ui.js';function _0x54d0(_0x179d05,_0xb3c361){const _0x1f8061=_0x1f80();return _0x54d0=function(_0x54d050,_0x62c4b4){_0x54d050=_0x54d050-0x176;let _0x3556cf=_0x1f8061[_0x54d050];return _0x3556cf;},_0x54d0(_0x179d05,_0xb3c361);}function _0x1f80(){const _0x3bfb31=['ck-ai-chat-history__section','11658qbLKdO','ck-ai-chat-history__section-title','bindTemplate','filter','isVisible','items','removeItem','splice','180HofhsG','1171403azhoLw','84190GMiiBF','title','2235128ZhrdhH','addMany','ck-hidden','6633OIhsQc','highlightText','getItem','1038Qsylfx','find','_itemsListView','9717008XnrKPr','length','isMatching','718384gwkjET','indexOf','remove','div','set','setTemplate','itemsViews','798lqKKdF','18635EWPXWD'];_0x1f80=function(){return _0x3bfb31;};return _0x1f80();}export class AIChatHistoryListView extends _0x33cc2b{[_0x125184(0x192)];[_0x125184(0x183)];[_0x125184(0x179)];constructor(_0x5341fc,{title:_0x3f6179,items:_0x40a417}){const _0x912f82=_0x125184;super(_0x5341fc);const _0x1539ff=this[_0x912f82(0x189)];this[_0x912f82(0x181)](_0x912f82(0x18b),!0x0),this[_0x912f82(0x192)]=_0x3f6179,this[_0x912f82(0x183)]=_0x40a417;const _0x890ac2=new _0x51a68f(_0x5341fc);_0x890ac2[_0x912f82(0x182)]({'tag':_0x912f82(0x180),'attributes':{'class':[_0x912f82(0x188)]},'children':[this[_0x912f82(0x192)]]}),this[_0x912f82(0x179)]=new _0x296c25(_0x5341fc),this[_0x912f82(0x179)][_0x912f82(0x18c)][_0x912f82(0x194)](this[_0x912f82(0x183)]),this[_0x912f82(0x182)]({'tag':'li','attributes':{'class':[_0x912f82(0x186),_0x1539ff['if'](_0x912f82(0x18b),_0x912f82(0x195),_0x46cb0e=>!_0x46cb0e)]},'children':[_0x890ac2,this[_0x912f82(0x179)]]});}[_0x125184(0x18a)](_0x9ce2f6){const _0x544d67=_0x125184,_0x4f023c=this[_0x544d67(0x183)][_0x544d67(0x17b)];let _0x179e30=0x0;for(const _0x1ca1f4 of this[_0x544d67(0x183)]){if(_0x9ce2f6){const _0x38ab94=_0x1ca1f4[_0x544d67(0x17c)](_0x9ce2f6);_0x1ca1f4[_0x544d67(0x18b)]=!!_0x38ab94,_0x1ca1f4[_0x544d67(0x197)](_0x9ce2f6);}else _0x1ca1f4[_0x544d67(0x18b)]=!0x0,_0x1ca1f4[_0x544d67(0x197)](null);_0x1ca1f4[_0x544d67(0x18b)]&&_0x179e30++;}return this[_0x544d67(0x18b)]=_0x179e30>0x0,{'resultsCount':_0x179e30,'totalItemsCount':_0x4f023c};}[_0x125184(0x176)](_0x19eac7){const _0x468c1f=_0x125184;return this[_0x468c1f(0x183)][_0x468c1f(0x178)](_0x5bd8f1=>_0x5bd8f1['id']===_0x19eac7);}[_0x125184(0x18d)](_0x5f5199){const _0x32afea=_0x125184,_0x3e71f3=this[_0x32afea(0x183)][_0x32afea(0x17e)](_0x5f5199);-0x1!==_0x3e71f3&&(this[_0x32afea(0x183)][_0x32afea(0x18e)](_0x3e71f3,0x1),this[_0x32afea(0x179)][_0x32afea(0x18c)][_0x32afea(0x17f)](_0x5f5199));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x57de(_0x3394bb,_0x3d4a60){const _0x2d9116=_0x2d91();return _0x57de=function(_0x57de4a,_0x3bf7e4){_0x57de4a=_0x57de4a-0x10d;let _0x256a78=_0x2d9116[_0x57de4a];return _0x256a78;},_0x57de(_0x3394bb,_0x3d4a60);}const _0x4b5960=_0x57de;(function(_0xcbed6d,_0x234b03){const _0x2004f5=_0x57de,_0x441526=_0xcbed6d();while(!![]){try{const _0x5c048b=-parseInt(_0x2004f5(0x111))/0x1+-parseInt(_0x2004f5(0x11b))/0x2*(parseInt(_0x2004f5(0x117))/0x3)+-parseInt(_0x2004f5(0x114))/0x4*(-parseInt(_0x2004f5(0x11c))/0x5)+-parseInt(_0x2004f5(0x116))/0x6+parseInt(_0x2004f5(0x119))/0x7+-parseInt(_0x2004f5(0x115))/0x8+parseInt(_0x2004f5(0x112))/0x9*(parseInt(_0x2004f5(0x118))/0xa);if(_0x5c048b===_0x234b03)break;else _0x441526['push'](_0x441526['shift']());}catch(_0x351008){_0x441526['push'](_0x441526['shift']());}}}(_0x2d91,0xeefa6));import{ListView as _0x3dec17}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3dec17{[_0x4b5960(0x10d)];constructor(_0x465381,_0x1f1662){const _0x305601=_0x4b5960;super(_0x465381),this[_0x305601(0x10d)]=_0x1f1662,this[_0x305601(0x110)][_0x305601(0x113)](this[_0x305601(0x10d)]),this[_0x305601(0x10f)]({'attributes':{'class':[_0x305601(0x10e)]}});}[_0x4b5960(0x11a)](_0x5ee847){const _0xaad05=_0x4b5960;let _0x211680=0x0,_0x249d83=0x0;for(const _0x22c9d of this[_0xaad05(0x10d)]){const {resultsCount:_0x1b41ad,totalItemsCount:_0x2a3881}=_0x22c9d[_0xaad05(0x11a)](_0x5ee847);_0x211680+=_0x1b41ad,_0x249d83+=_0x2a3881;}return{'resultsCount':_0x211680,'totalItemsCount':_0x249d83};}}function _0x2d91(){const _0x245315=['extendTemplate','items','662300GHIfnD','873rcFPiR','addMany','172ixLNCT','13769520IvKjQp','1202784lLvcnz','2124258nbrSxf','247470jIYMAh','758667TPLKqZ','filter','2PUzjVm','204890YDyklj','sections','ck-ai-chat-history__sections'];_0x2d91=function(){return _0x245315;};return _0x2d91();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf6b8e7=_0x589d;(function(_0x30008c,_0xcb5811){const _0x1b6d85=_0x589d,_0x24a236=_0x30008c();while(!![]){try{const _0x458fc8=parseInt(_0x1b6d85(0x1de))/0x1+parseInt(_0x1b6d85(0x211))/0x2+-parseInt(_0x1b6d85(0x1fd))/0x3*(parseInt(_0x1b6d85(0x227))/0x4)+-parseInt(_0x1b6d85(0x1fc))/0x5+parseInt(_0x1b6d85(0x1f4))/0x6+parseInt(_0x1b6d85(0x1e3))/0x7*(parseInt(_0x1b6d85(0x1e2))/0x8)+parseInt(_0x1b6d85(0x1d7))/0x9*(-parseInt(_0x1b6d85(0x205))/0xa);if(_0x458fc8===_0xcb5811)break;else _0x24a236['push'](_0x24a236['shift']());}catch(_0x1f7cc1){_0x24a236['push'](_0x24a236['shift']());}}}(_0x3818,0x249de));import{View as _0x4fe555,SearchTextView as _0x46a7be,FormHeaderView as _0x33749d,ButtonView as _0x1b01db}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x18b90d,IconCancel as _0x1e68d4,IconPlus as _0x7daa43}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1195d9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xe7bfd7}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x55f685}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3994c1}from'../aichathistoryui.js';function _0x3818(){const _0x5c9b44=['sections','addMany','updateItemTitle','updateLoadingState','locale','add','updateItemLoadingState','ck-rounded-corners','ck-ai-header\x20ck-ai-header_history','set','9HtgmBA','change:isLoading','bind','_createListItemViews','change:hasItems','fire','extendTemplate','293504FUiBIk','bindTemplate','ck-ai-chat__start-conversation','hasItems','82408YGYuNq','49DueXHX','value','AI_CHAT_HISTORY_HEADING','errorView','remove','AI_CHAT_HISTORY_SEARCH_LABEL','title','queryView','isMaximized','searchView','element','search','openChat','skeletonView','splice','updateTitle','removeItem','28770oQfTVZ','itemsViews','some','isEmptyViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','ck-hidden','isLoading','83550dXodPr','131871ltesmf','push','fieldView','_updateViewVisibility','ck-reset_all','_createErrorView','errorMessage','ck-ai-chat-error','2988610JymTfI','render','ltr','ck-ai-chat-history__content','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createSkeletonView','indexOf','execute','emptyView','aiHistory','ck-ai-chat-history__empty-message','454036QDBLVH','clear','setTemplate','updateHistoryItemsWithCategories','children','isVisible','items','delegate','ck-ai-chat-error__dismiss-button','change:errorMessage','div','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','_refreshSearch','ck-ai-chat-history','getItem','length','ck-ai-chat-history__empty','isSearchViewVisible','resizeButton','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createEmptyStateView','12JWUrbu'];_0x3818=function(){return _0x5c9b44;};return _0x3818();}import{AISkeletonView as _0x9f4ddc,SKELETON_DEFINITIONS as _0x530c43}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3760e5}from'../../aicore/utils/createresizebutton.js';function _0x589d(_0x312a0e,_0x12b7b5){const _0x38185f=_0x3818();return _0x589d=function(_0x589d90,_0x33351b){_0x589d90=_0x589d90-0x1d2;let _0x15f9f2=_0x38185f[_0x589d90];return _0x15f9f2;},_0x589d(_0x312a0e,_0x12b7b5);}import{getTranslation as _0x151a0f}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4fe555{[_0xf6b8e7(0x1ec)];[_0xf6b8e7(0x1e6)];[_0xf6b8e7(0x1f0)];[_0xf6b8e7(0x20e)];[_0xf6b8e7(0x1f9)];[_0xf6b8e7(0x224)];constructor(_0x33eb4f,_0x2d16f2){const _0x35b106=_0xf6b8e7;super(_0x33eb4f),this[_0x35b106(0x1d6)](_0x35b106(0x1e1),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x1fb),!0x0),this[_0x35b106(0x1d6)](_0x35b106(0x203),''),this[_0x35b106(0x1d6)](_0x35b106(0x1eb),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x223),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x1f7),!0x1);const _0x1cfa4a=new _0x33749d(_0x33eb4f,{'label':_0x151a0f(_0x33eb4f,_0x35b106(0x1e5)),'icon':_0x18b90d,'class':_0x35b106(0x1d5)});_0x2d16f2&&(this[_0x35b106(0x224)]=_0x3760e5(_0x33eb4f,this),_0x1cfa4a[_0x35b106(0x215)][_0x35b106(0x1d2)](this[_0x35b106(0x224)])),this[_0x35b106(0x1f9)]=new _0x1195d9(_0x33eb4f,[]),this[_0x35b106(0x1f9)][_0x35b106(0x218)](..._0x3994c1)['to'](this),this[_0x35b106(0x1e6)]=this[_0x35b106(0x202)](),this[_0x35b106(0x1f0)]=this[_0x35b106(0x20b)](),this[_0x35b106(0x20e)]=this[_0x35b106(0x226)](),this[_0x35b106(0x1ec)]=this[_0x35b106(0x209)](),this['on'](_0x35b106(0x1d8),()=>this[_0x35b106(0x200)]()),this['on'](_0x35b106(0x1db),()=>this[_0x35b106(0x200)]()),this['on'](_0x35b106(0x21a),()=>this[_0x35b106(0x200)]()),this[_0x35b106(0x213)]({'tag':_0x35b106(0x21b),'attributes':{'class':['ck',_0x35b106(0x201),_0x35b106(0x21f),_0x35b106(0x1d4)],'dir':_0x35b106(0x207)},'children':[_0x1cfa4a,{'tag':_0x35b106(0x21b),'attributes':{'class':[_0x35b106(0x208)]},'children':[this[_0x35b106(0x1f0)],this[_0x35b106(0x1e6)],this[_0x35b106(0x20e)],this[_0x35b106(0x1ec)]]}]});}[_0xf6b8e7(0x200)](){const _0x3471d8=_0xf6b8e7;this[_0x3471d8(0x223)]=!this[_0x3471d8(0x1fb)]&&this[_0x3471d8(0x1e1)]&&!this[_0x3471d8(0x203)],this[_0x3471d8(0x1f7)]=!this[_0x3471d8(0x1fb)]&&!this[_0x3471d8(0x1e1)]&&!this[_0x3471d8(0x203)];}[_0xf6b8e7(0x209)](){const _0xed366e=_0xf6b8e7,_0x414e90=new _0x46a7be(this[_0xed366e(0x22c)],{'filteredView':this[_0xed366e(0x1f9)],'queryView':{'label':_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x1e8))},'infoView':{'text':{'notFound':{'primary':_0xa3659=>_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x20a),_0xa3659),'secondary':_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x1f8))}}}});return _0x414e90['on'](_0xed366e(0x206),()=>{const _0x2ab725=_0xed366e;this[_0x2ab725(0x1ec)][_0x2ab725(0x215)][_0x2ab725(0x1d2)](this[_0x2ab725(0x1e6)],0x1);}),_0x414e90[_0xed366e(0x1dd)]({'attributes':{'class':[this[_0xed366e(0x1df)]['if'](_0xed366e(0x223),_0xed366e(0x1fa),_0x1d921f=>!_0x1d921f)]}}),_0x414e90;}[_0xf6b8e7(0x20b)](){const _0x2dfda5=_0xf6b8e7,_0x1c03d5=new _0x9f4ddc(this[_0x2dfda5(0x22c)],_0x530c43[_0x2dfda5(0x20f)]);return _0x1c03d5[_0x2dfda5(0x1dd)]({'attributes':{'class':[this[_0x2dfda5(0x1df)]['if'](_0x2dfda5(0x1fb),_0x2dfda5(0x1fa),_0x5e81ac=>!_0x5e81ac)]}}),_0x1c03d5;}[_0xf6b8e7(0x202)](){const _0x1b23f1=_0xf6b8e7,_0x2cb851=new _0x4fe555(this[_0x1b23f1(0x22c)]),_0x5119e8=new _0x1b01db(this[_0x1b23f1(0x22c)]);return _0x5119e8[_0x1b23f1(0x1d6)]({'withText':!0x1,'icon':_0x1e68d4,'class':_0x1b23f1(0x219)}),_0x5119e8[_0x1b23f1(0x1d9)](_0x1b23f1(0x216))['to'](this,_0x1b23f1(0x1e1),_0x34133f=>!!_0x34133f),_0x5119e8['on'](_0x1b23f1(0x20d),()=>{const _0x3cee77=_0x1b23f1;this[_0x3cee77(0x203)]='';}),_0x2cb851[_0x1b23f1(0x213)]({'tag':_0x1b23f1(0x21b),'attributes':{'class':['ck',_0x1b23f1(0x204),this[_0x1b23f1(0x1df)]['if'](_0x1b23f1(0x203),_0x1b23f1(0x1fa),_0x4bf355=>!_0x4bf355)]},'children':[{'tag':'p','children':[{'text':this[_0x1b23f1(0x1df)]['to'](_0x1b23f1(0x203))}]},_0x5119e8]}),_0x2cb851;}[_0xf6b8e7(0x226)](){const _0x31d12c=_0xf6b8e7,_0x2a05cc=new _0x1b01db(this[_0x31d12c(0x22c)]);_0x2a05cc[_0x31d12c(0x1d6)]({'label':_0x151a0f(this[_0x31d12c(0x22c)],_0x31d12c(0x21c)),'withText':!0x0,'icon':_0x7daa43,'class':_0x31d12c(0x1e0)}),_0x2a05cc['on'](_0x31d12c(0x20d),()=>{const _0x2c705f=_0x31d12c;this[_0x2c705f(0x1dc)](_0x2c705f(0x1ef));});const _0x378be2=new _0x4fe555(this[_0x31d12c(0x22c)]);return _0x378be2[_0x31d12c(0x213)]({'tag':_0x31d12c(0x21b),'attributes':{'class':[_0x31d12c(0x222),this[_0x31d12c(0x1df)]['if'](_0x31d12c(0x1f7),_0x31d12c(0x1fa),_0x40f941=>!_0x40f941)]},'children':[{'tag':'p','attributes':{'class':[_0x31d12c(0x210)]},'children':[_0x151a0f(this[_0x31d12c(0x22c)],_0x31d12c(0x225))]},_0x2a05cc]}),_0x378be2;}[_0xf6b8e7(0x1da)](_0x413755,_0x22f9fc){const _0x463dd9=_0xf6b8e7,_0x3fde60=[];for(const _0x3e9dbc of _0x413755){const _0x1aa154=new _0x55f685(_0x22f9fc,_0x3e9dbc);_0x1aa154[_0x463dd9(0x218)](..._0x3994c1)['to'](this),_0x3fde60[_0x463dd9(0x1fe)](_0x1aa154);}return _0x3fde60;}[_0xf6b8e7(0x214)](_0x55f1a8){const _0x32c87c=_0xf6b8e7,_0x5f42c3=this[_0x32c87c(0x22c)]||'en',_0x4ca166=[];for(const _0x1af7c2 of _0x55f1a8){const _0x7cf645=this[_0x32c87c(0x1da)](_0x1af7c2[_0x32c87c(0x217)],_0x5f42c3);_0x4ca166[_0x32c87c(0x1fe)](new _0xe7bfd7(_0x5f42c3,{'title':_0x1af7c2[_0x32c87c(0x1e9)],'items':_0x7cf645}));}this[_0x32c87c(0x1f9)][_0x32c87c(0x228)]=_0x4ca166,this[_0x32c87c(0x1f9)][_0x32c87c(0x217)][_0x32c87c(0x212)](),this[_0x32c87c(0x1f9)][_0x32c87c(0x217)][_0x32c87c(0x229)](_0x4ca166),this[_0x32c87c(0x1e1)]=_0x55f1a8[_0x32c87c(0x1f6)](_0x4d2b04=>_0x4d2b04[_0x32c87c(0x217)][_0x32c87c(0x221)]>0x0),this[_0x32c87c(0x21e)]();}[_0xf6b8e7(0x21d)](_0x48f250){const _0x465859=_0xf6b8e7;for(const _0x5cbb28 of this[_0x465859(0x1f9)][_0x465859(0x228)]){const _0x3309ce=_0x5cbb28[_0x465859(0x220)](_0x48f250);if(_0x3309ce){if(_0x5cbb28[_0x465859(0x1f3)](_0x3309ce),0x0===_0x5cbb28[_0x465859(0x1f5)][_0x465859(0x221)]){const _0x275ab2=this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x20c)](_0x5cbb28);-0x1!==_0x275ab2&&(this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x1f1)](_0x275ab2,0x1),this[_0x465859(0x1f9)][_0x465859(0x217)][_0x465859(0x1e7)](_0x5cbb28));}this[_0x465859(0x1e1)]=this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x221)]>0x0,this[_0x465859(0x21e)]();break;}}}[_0xf6b8e7(0x22a)](_0x572497,_0x2b5007){const _0x4c1621=_0xf6b8e7;for(const _0x3f9086 of this[_0x4c1621(0x1f9)][_0x4c1621(0x228)]){const _0x3df2ab=_0x3f9086[_0x4c1621(0x220)](_0x572497);if(_0x3df2ab){_0x3df2ab[_0x4c1621(0x1f2)](_0x2b5007);break;}}}[_0xf6b8e7(0x1d3)](_0x42873c,_0xd3869e,_0x121292){const _0x5f5a95=_0xf6b8e7;for(const _0x539059 of this[_0x5f5a95(0x1f9)][_0x5f5a95(0x228)]){const _0x5f2098=_0x539059[_0x5f5a95(0x220)](_0x42873c);if(_0x5f2098){_0x5f2098[_0x5f5a95(0x22b)](_0xd3869e,_0x121292);break;}}}[_0xf6b8e7(0x21e)](){const _0x162fa2=_0xf6b8e7;if(this[_0x162fa2(0x1e1)]){const _0x6ee209=this[_0x162fa2(0x1ec)][_0x162fa2(0x1ea)][_0x162fa2(0x1ff)]?.[_0x162fa2(0x1ed)]?.[_0x162fa2(0x1e4)]||'';this[_0x162fa2(0x1ec)][_0x162fa2(0x1ee)](_0x6ee209);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x876b10=_0xba2b;(function(_0xbedb7c,_0x36b08e){const _0x4e6c7f=_0xba2b,_0xd471e3=_0xbedb7c();while(!![]){try{const _0x5312bd=-parseInt(_0x4e6c7f(0x13a))/0x1+parseInt(_0x4e6c7f(0x12c))/0x2*(-parseInt(_0x4e6c7f(0x151))/0x3)+parseInt(_0x4e6c7f(0x139))/0x4*(-parseInt(_0x4e6c7f(0x10c))/0x5)+-parseInt(_0x4e6c7f(0xf7))/0x6+-parseInt(_0x4e6c7f(0x148))/0x7+parseInt(_0x4e6c7f(0xe9))/0x8+parseInt(_0x4e6c7f(0x131))/0x9;if(_0x5312bd===_0x36b08e)break;else _0xd471e3['push'](_0xd471e3['shift']());}catch(_0x55848e){_0xd471e3['push'](_0xd471e3['shift']());}}}(_0x1d35,0xe804e));import{createParser as _0x33effb}from'eventsource-parser';import{ContextPlugin as _0x2edd48}from'ckeditor5/src/core.js';import{CKEditorError as _0x1742ee}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5c28a4){const _0x25b99b=_0xba2b;_0x5c28a4[_0x25b99b(0x112)]=_0x25b99b(0x146),_0x5c28a4[_0x25b99b(0xec)]=_0x25b99b(0x153),_0x5c28a4[_0x25b99b(0x115)]=_0x25b99b(0x11d),_0x5c28a4[_0x25b99b(0x138)]=_0x25b99b(0x106),_0x5c28a4[_0x25b99b(0x110)]=_0x25b99b(0xeb),_0x5c28a4[_0x25b99b(0x10b)]=_0x25b99b(0x145),_0x5c28a4[_0x25b99b(0x127)]=_0x25b99b(0x11e),_0x5c28a4[_0x25b99b(0x11f)]=_0x25b99b(0xd3);}(AIActionsNames||(AIActionsNames={}));function _0xba2b(_0x1ca66e,_0x8541f){const _0x1d3503=_0x1d35();return _0xba2b=function(_0xba2bae,_0x31adc2){_0xba2bae=_0xba2bae-0xcf;let _0x3ac2a5=_0x1d3503[_0xba2bae];return _0x3ac2a5;},_0xba2b(_0x1ca66e,_0x8541f);}function _0x1d35(){const _0x20514e=['AIConnector','100','json','5679DFSnkP','decode','fix-grammar','CloudServices','ai-request-failed','/web-resources/','stringify','/models/1','/web-resources','excludeEmpty','statusText','queryAssistant','uploadFile','request','isPremiumPlugin','translate','GET','define','deleteConversation','fetchConversations','feed','getModels','fetchConversation','parse','_token','deleteFile','get','upsertAIChatRating','true','config','isOfficialPlugin','read','value','getReader','attributes','context','positiveCount','9482584nKvEja','updateConversation','make-shorter','FIX_GRAMMAR','fetchDocument','/actions/custom/calls','Content-Type','callSystemReview','fetchConversationMessages','reset','limit','/documents/','status','executeAction','10727610lKgNFn','/ratings','/reviews/custom/calls','keys','ai.serviceUrl','/conversations/','_handleError','https://ai.cke-cs.com/v1','/files/','body','push','items','/reviews/system/','modificationId','/calls/','make-longer','/reviews/custom/calls/','upsertAIReviewRating','totalCount','then','MAKE_TONE_CASUAL','1175crOTMY','callCustomReview','/actions/custom/calls/','/actions/system/','MAKE_SHORTER','toString','CONTINUE','token','application/json','IMPROVE_WRITING','file','requires','uploadDocument','data','DELETE','_apiUrl','name','improve-writing','make-tone-formal','TRANSLATE','/documents','ai-missing-token','ai-request-aborted','pluginName','upsertCustomAIReviewRating','/messages','text','MAKE_TONE_FORMAL','PUT','length','deleteDocument','/calls','450azgKkA','/conversations','append','_sendApiRequest','PATCH','45229563TnFhJm','catch','uploadUrl','startConversation','/messages/','group','signal','MAKE_LONGER','5944iwajkB','1029683PJafzo','/files','upsertAIActionRating','/conversations?','search','_decoder','executeCustomAction','init','POST','plugins','releaseLock','make-tone-casual','continue','abortController','11674089Gwdxiz','_getStreamReader','AbortError','Bearer\x20','deleteWebResource','upsertCustomAIActionRating'];_0x1d35=function(){return _0x20514e;};return _0x1d35();}export class AIConnector extends _0x2edd48{[_0x876b10(0x11b)];[_0x876b10(0xdc)];[_0x876b10(0x13f)];static get[_0x876b10(0x117)](){const _0x13a16b=_0x876b10;return[_0x13a16b(0x154)];}static get[_0x876b10(0x123)](){const _0xb4bc73=_0x876b10;return _0xb4bc73(0x14e);}static get[_0x876b10(0xe2)](){return!0x0;}static get[_0x876b10(0xd2)](){return!0x0;}constructor(_0x26c064){const _0x4a43f5=_0x876b10;super(_0x26c064),this[_0x4a43f5(0xe7)][_0x4a43f5(0xe1)][_0x4a43f5(0xd5)](_0x4a43f5(0xfb),_0x4a43f5(0xfe)),this[_0x4a43f5(0x11b)]=this[_0x4a43f5(0xe7)][_0x4a43f5(0xe1)][_0x4a43f5(0xde)](_0x4a43f5(0xfb)),this[_0x4a43f5(0xdc)]=null,this[_0x4a43f5(0x13f)]=new TextDecoder();}[_0x876b10(0x141)](){const _0x5662af=_0x876b10,_0x34d107=this[_0x5662af(0xe7)][_0x5662af(0x143)][_0x5662af(0xde)](_0x5662af(0x154));if(!_0x34d107[_0x5662af(0x113)])throw new _0x1742ee(_0x5662af(0x121),this);this[_0x5662af(0xdc)]=_0x34d107[_0x5662af(0x113)];}[_0x876b10(0x134)](_0x3ed264,_0x269509){const _0x179ef6=_0x876b10,_0x490ef5=this[_0x179ef6(0x12f)](_0x179ef6(0x12d),_0x179ef6(0x142),{'id':_0x3ed264,'group':_0x269509});return{'getConversation':async()=>(await _0x490ef5[_0x179ef6(0xd1)])[_0x179ef6(0x150)](),'abortController':_0x490ef5[_0x179ef6(0x147)]};}[_0x876b10(0xcf)]({message:_0x5b2195,conversationId:_0x541e16,parts:_0x4006a4,capabilities:_0x2695c8,model:_0x432d9f,quickActionData:_0x1d264e}){const _0xc3eb12=_0x876b10,_0x1dbd4e={..._0x1d264e&&{'quickActionData':_0x1d264e}},_0x4305bf={'prompt':_0x5b2195,'content':_0x4006a4,'model':_0x432d9f,..._0x2695c8&&{'capabilities':_0x2695c8},...Object[_0xc3eb12(0xfa)](_0x1dbd4e)[_0xc3eb12(0x129)]>0x0&&{'attributes':_0x1dbd4e}},_0x21975c=this[_0xc3eb12(0x12f)](_0xc3eb12(0xfc)+_0x541e16+_0xc3eb12(0x125),_0xc3eb12(0x142),_0x4305bf);return{'getStream':async()=>{const _0x52099a=_0xc3eb12,_0x18af1d=(await _0x21975c[_0x52099a(0xd1)])[_0x52099a(0x100)];return this[_0x52099a(0x149)](_0x18af1d);},'abortController':_0x21975c[_0xc3eb12(0x147)]};}[_0x876b10(0x140)]({content:_0x5bf382,message:_0x4640c2,model:_0x25c24c,outputFormat:_0x31099d}){const _0x2c7e73=_0x876b10,_0x2f9177={'content':[{'type':_0x2c7e73(0x126),'content':_0x5bf382}],'prompt':_0x4640c2,'model':_0x25c24c,'outputFormat':_0x31099d},_0x57836d=this[_0x2c7e73(0x12f)](_0x2c7e73(0xee),_0x2c7e73(0x142),_0x2f9177);return{'getStream':async()=>{const _0x184228=_0x2c7e73,_0x2f17b7=(await _0x57836d[_0x184228(0xd1)])[_0x184228(0x100)];return this[_0x184228(0x149)](_0x2f17b7);},'abortController':_0x57836d[_0x2c7e73(0x147)]};}[_0x876b10(0xf6)]({actionName:_0x10f259,content:_0x380741,args:_0x5c9980}){const _0x33accb=_0x876b10,_0x1f8e07={'content':[{'type':_0x33accb(0x126),'content':_0x380741}],'args':_0x5c9980},_0x326309=this[_0x33accb(0x12f)](_0x33accb(0x10f)+_0x10f259+_0x33accb(0x12b),_0x33accb(0x142),_0x1f8e07);return{'getStream':async()=>{const _0x5c6049=_0x33accb,_0x52778d=(await _0x326309[_0x5c6049(0xd1)])[_0x5c6049(0x100)];return this[_0x5c6049(0x149)](_0x52778d);},'abortController':_0x326309[_0x33accb(0x147)]};}[_0x876b10(0xd0)](_0x21e1d0,_0x18d1ce,_0x3641d4){const _0x4a7225=_0x876b10,_0x495508=new FormData();_0x495508[_0x4a7225(0x12e)](_0x4a7225(0x116),_0x18d1ce,_0x18d1ce[_0x4a7225(0x11c)]),_0x3641d4&&_0x495508[_0x4a7225(0x12e)](_0x4a7225(0xe6),JSON[_0x4a7225(0x157)](_0x3641d4));const _0x46338b=this[_0x4a7225(0x12f)](_0x4a7225(0xfc)+_0x21e1d0+_0x4a7225(0x13b),_0x4a7225(0x142),_0x495508);return{'getId':async()=>(await _0x46338b[_0x4a7225(0xd1)])[_0x4a7225(0x150)](),'abortController':_0x46338b[_0x4a7225(0x147)]};}[_0x876b10(0xed)](_0x452f2b,_0x4b9822){const _0x1a6cce=_0x876b10,_0x430e91=this[_0x1a6cce(0x12f)](_0x1a6cce(0xfc)+_0x452f2b+_0x1a6cce(0xf4)+_0x4b9822,_0x1a6cce(0xd4));return{'getDocument':async()=>(await _0x430e91[_0x1a6cce(0xd1)])[_0x1a6cce(0x150)](),'abortController':_0x430e91[_0x1a6cce(0x147)]};}[_0x876b10(0x118)](_0x26f0dd,_0x5a4c89,_0x3fdc2e){const _0x4290eb=_0x876b10,_0x49e80e={'content':_0x5a4c89};_0x3fdc2e&&(_0x49e80e[_0x4290eb(0xe6)]=_0x3fdc2e);const _0x26b3ef=this[_0x4290eb(0x12f)](_0x4290eb(0xfc)+_0x26f0dd+_0x4290eb(0x120),_0x4290eb(0x142),_0x49e80e);return{'getId':async()=>(await _0x26b3ef[_0x4290eb(0xd1)])[_0x4290eb(0x150)](),'abortController':_0x26b3ef[_0x4290eb(0x147)]};}[_0x876b10(0xd7)](_0xf163ac,_0x2b98eb){const _0x18eb34=_0x876b10,_0x91e235=new URLSearchParams();_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x15a),_0x18eb34(0xe0)),_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0xf3),_0x18eb34(0x14f)),_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x136),_0xf163ac),_0x2b98eb&&_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x13e),_0x2b98eb);const _0x1b3f41=this[_0x18eb34(0x12f)](_0x18eb34(0x13d)+_0x91e235[_0x18eb34(0x111)](),_0x18eb34(0xd4));return{'getConversations':async()=>{const _0x5e8b16=_0x18eb34,_0x2dabd3=await _0x1b3f41[_0x5e8b16(0xd1)];return(await _0x2dabd3[_0x5e8b16(0x150)]())[_0x5e8b16(0x102)];},'abortController':_0x1b3f41[_0x18eb34(0x147)]};}[_0x876b10(0xd6)](_0x26c7a2){const _0x17f16c=_0x876b10,_0x30c91f=this[_0x17f16c(0x12f)](_0x17f16c(0xfc)+_0x26c7a2,_0x17f16c(0x11a));return{'execute':async()=>{const _0x17833e=_0x17f16c;await _0x30c91f[_0x17833e(0xd1)];},'abortController':_0x30c91f[_0x17f16c(0x147)]};}[_0x876b10(0xea)](_0x1bb0c7,_0x3970a8){const _0xa156a8=_0x876b10,_0x38050c=this[_0xa156a8(0x12f)](_0xa156a8(0xfc)+_0x1bb0c7,_0xa156a8(0x130),_0x3970a8);return{'getResult':async()=>(await _0x38050c[_0xa156a8(0xd1)],_0x3970a8),'abortController':_0x38050c[_0xa156a8(0x147)]};}[_0x876b10(0xda)](_0x4ab69b){const _0x3ef1a1=_0x876b10,_0x24f6a7=this[_0x3ef1a1(0x12f)](_0x3ef1a1(0xfc)+_0x4ab69b,_0x3ef1a1(0xd4));return{'getConversation':async()=>(await _0x24f6a7[_0x3ef1a1(0xd1)])[_0x3ef1a1(0x150)](),'abortController':_0x24f6a7[_0x3ef1a1(0x147)]};}[_0x876b10(0xf1)](_0x3ffa75){const _0x259633=_0x876b10,_0x29b7eb=this[_0x259633(0x12f)](_0x259633(0xfc)+_0x3ffa75+_0x259633(0x125),_0x259633(0xd4));return{'getMessages':async()=>{const _0x2381cc=_0x259633,_0x42d760=await _0x29b7eb[_0x2381cc(0xd1)];return(await _0x42d760[_0x2381cc(0x150)]())[_0x2381cc(0x102)];},'abortController':_0x29b7eb[_0x259633(0x147)]};}[_0x876b10(0x133)](_0x51c25f,_0x18cb9a,_0x21ab4e){const _0x48461e=_0x876b10,_0x5bf0d7=this[_0x48461e(0x12f)](_0x48461e(0xfc)+_0x51c25f+_0x48461e(0x159),_0x48461e(0x142),{'url':_0x18cb9a,'attributes':_0x21ab4e});return{'getId':async()=>(await _0x5bf0d7[_0x48461e(0xd1)])[_0x48461e(0x150)](),'abortController':_0x5bf0d7[_0x48461e(0x147)]};}[_0x876b10(0xd9)](){const _0x4dcb67=_0x876b10,_0x533ddd=this[_0x4dcb67(0x12f)](_0x4dcb67(0x158),_0x4dcb67(0xd4));return{'list':async()=>await(await _0x533ddd[_0x4dcb67(0xd1)])[_0x4dcb67(0x150)](),'abortController':_0x533ddd[_0x4dcb67(0x147)]};}[_0x876b10(0xdd)](_0x40a2db,_0x35db83){const _0x279ca4=_0x876b10,_0xfd63e3=this[_0x279ca4(0x12f)](_0x279ca4(0xfc)+_0x40a2db+_0x279ca4(0xff)+_0x35db83,_0x279ca4(0x11a));return{'execute':async()=>{const _0x209a12=_0x279ca4;await _0xfd63e3[_0x209a12(0xd1)];},'abortController':_0xfd63e3[_0x279ca4(0x147)]};}[_0x876b10(0x12a)](_0x3ab5a8,_0x3ce122){const _0xbf4fa4=_0x876b10,_0x479c31=this[_0xbf4fa4(0x12f)](_0xbf4fa4(0xfc)+_0x3ab5a8+_0xbf4fa4(0xf4)+_0x3ce122,_0xbf4fa4(0x11a));return{'execute':async()=>{const _0x5a1b18=_0xbf4fa4;await _0x479c31[_0x5a1b18(0xd1)];},'abortController':_0x479c31[_0xbf4fa4(0x147)]};}[_0x876b10(0x14c)](_0x1c94ab,_0x2fcfcf){const _0x1d5186=_0x876b10,_0x1553da=this[_0x1d5186(0x12f)](_0x1d5186(0xfc)+_0x1c94ab+_0x1d5186(0x156)+_0x2fcfcf,_0x1d5186(0x11a));return{'execute':async()=>{const _0x4a93e3=_0x1d5186;await _0x1553da[_0x4a93e3(0xd1)];},'abortController':_0x1553da[_0x1d5186(0x147)]};}[_0x876b10(0xf0)]({reviewName:_0x289624,content:_0x1a9ded,args:_0x2a6480}){const _0x1d7d3f=_0x876b10,_0x13269f=this[_0x1d7d3f(0x12f)](_0x1d7d3f(0x103)+_0x289624+_0x1d7d3f(0x12b),_0x1d7d3f(0x142),{'content':[{'type':_0x1d7d3f(0x126),'content':_0x1a9ded}],'args':_0x2a6480});return{'getStream':async()=>{const _0x225686=_0x1d7d3f,_0x3e48bc=(await _0x13269f[_0x225686(0xd1)])[_0x225686(0x100)];return this[_0x225686(0x149)](_0x3e48bc);},'abortController':_0x13269f[_0x1d7d3f(0x147)]};}[_0x876b10(0x10d)]({content:_0x57c32a,prompt:_0x3e1d36,model:_0x473461}){const _0x429227=_0x876b10,_0xe11836=this[_0x429227(0x12f)](_0x429227(0xf9),_0x429227(0x142),{'content':[{'type':_0x429227(0x126),'content':_0x57c32a}],'prompt':_0x3e1d36,'model':_0x473461});return{'getStream':async()=>{const _0x24c43b=_0x429227,_0x1a41d3=(await _0xe11836[_0x24c43b(0xd1)])[_0x24c43b(0x100)];return this[_0x24c43b(0x149)](_0x1a41d3);},'abortController':_0xe11836[_0x429227(0x147)]};}[_0x876b10(0xdf)](_0x3fdbee,_0x3694d8,_0x2d9c16){const _0x225a57=_0x876b10,_0x229f06=this[_0x225a57(0x12f)](_0x225a57(0xfc)+_0x3fdbee+_0x225a57(0x135)+_0x3694d8+_0x225a57(0xf8),_0x225a57(0x128),{'positiveCount':_0x2d9c16[_0x225a57(0xe8)],'totalCount':_0x2d9c16[_0x225a57(0x109)],'modificationId':_0x2d9c16[_0x225a57(0x104)]});return{'execute':async()=>{const _0x408ea9=_0x225a57;await _0x229f06[_0x408ea9(0xd1)];},'abortController':_0x229f06[_0x225a57(0x147)]};}[_0x876b10(0x13c)](_0x5ad40e,_0x32a142,_0x12eb4c){const _0x5ce5b4=_0x876b10,_0x1b013e=this[_0x5ce5b4(0x12f)](_0x5ce5b4(0x10f)+_0x5ad40e+_0x5ce5b4(0x105)+_0x32a142+_0x5ce5b4(0xf8),_0x5ce5b4(0x128),{'positiveCount':_0x12eb4c[_0x5ce5b4(0xe8)],'totalCount':_0x12eb4c[_0x5ce5b4(0x109)]});return{'execute':async()=>{const _0x7d1c82=_0x5ce5b4;await _0x1b013e[_0x7d1c82(0xd1)];},'abortController':_0x1b013e[_0x5ce5b4(0x147)]};}[_0x876b10(0x14d)](_0x532c23,_0x2f86e2){const _0x4493ce=_0x876b10,_0x57d2eb=this[_0x4493ce(0x12f)](_0x4493ce(0x10e)+_0x532c23+_0x4493ce(0xf8),_0x4493ce(0x128),{'positiveCount':_0x2f86e2[_0x4493ce(0xe8)],'totalCount':_0x2f86e2[_0x4493ce(0x109)]});return{'execute':async()=>{const _0x540c1a=_0x4493ce;await _0x57d2eb[_0x540c1a(0xd1)];},'abortController':_0x57d2eb[_0x4493ce(0x147)]};}[_0x876b10(0x108)](_0x4697f3,_0x40417f,_0x5ae921,_0x2bb81e){const _0x51d522=_0x876b10,_0x2ac46f=this[_0x51d522(0x12f)](_0x51d522(0x103)+_0x4697f3+_0x51d522(0x105)+_0x40417f+_0x51d522(0xf8),_0x51d522(0x128),{'positiveCount':_0x5ae921[_0x51d522(0xe8)],'totalCount':_0x5ae921[_0x51d522(0x109)],'dataId':_0x2bb81e});return{'execute':async()=>{const _0x56957a=_0x51d522;await _0x2ac46f[_0x56957a(0xd1)];},'abortController':_0x2ac46f[_0x51d522(0x147)]};}[_0x876b10(0x124)](_0x11445e,_0x93919c,_0x560a63){const _0x57fec1=_0x876b10,_0x486ea9=this[_0x57fec1(0x12f)](_0x57fec1(0x107)+_0x11445e+_0x57fec1(0xf8),_0x57fec1(0x128),{'positiveCount':_0x93919c[_0x57fec1(0xe8)],'totalCount':_0x93919c[_0x57fec1(0x109)],'dataId':_0x560a63});return{'execute':async()=>{const _0x10d0ad=_0x57fec1;await _0x486ea9[_0x10d0ad(0xd1)];},'abortController':_0x486ea9[_0x57fec1(0x147)]};}[_0x876b10(0x12f)](_0x221097,_0x3838b5,_0x3d0551){const _0xc6bef2=_0x876b10,_0x41b60f=new AbortController(),_0x4ab0f6=_0x3d0551 instanceof FormData,_0x1b7daa={'Authorization':_0xc6bef2(0x14b)+this[_0xc6bef2(0xdc)]?.[_0xc6bef2(0xe4)]};_0x3d0551&&!_0x4ab0f6&&(_0x1b7daa[_0xc6bef2(0xef)]=_0xc6bef2(0x114));const _0x31ae24={'method':_0x3838b5,'headers':_0x1b7daa,'signal':_0x41b60f[_0xc6bef2(0x137)]};return _0x3d0551&&(_0x31ae24[_0xc6bef2(0x100)]=_0x4ab0f6?_0x3d0551:JSON[_0xc6bef2(0x157)](_0x3d0551)),{'request':fetch(''+this[_0xc6bef2(0x11b)]+_0x221097,_0x31ae24)[_0xc6bef2(0x132)](_0x4597dc=>{const _0xd54e26=_0xc6bef2;this[_0xd54e26(0xfd)](_0x4597dc);})[_0xc6bef2(0x10a)](_0x1bd024=>{const _0xd4f0ee=_0xc6bef2;if(!_0x1bd024['ok'])throw new _0x1742ee(_0xd4f0ee(0x155),this,{'url':this[_0xd4f0ee(0x11b)],'path':_0x221097,'method':_0x3838b5,'body':_0x3d0551,'status':(_0x1bd024||{})[_0xd4f0ee(0xf5)],'statusText':(_0x1bd024||{})[_0xd4f0ee(0x15b)]});return _0x1bd024;}),'abortController':_0x41b60f};}async*[_0x876b10(0x149)](_0xf331af){const _0x326f42=_0x876b10,_0x172182=[],_0x1fcef2=_0xf331af[_0x326f42(0xe5)](),_0x730b74=_0x33effb({'onError':_0x3c13f0=>{const _0xae89a9=_0x326f42;this[_0xae89a9(0xfd)](_0x3c13f0);},'onEvent':_0x4d16c8=>{const _0x5c52d6=_0x326f42;_0x4d16c8[_0x5c52d6(0x119)]=JSON[_0x5c52d6(0xdb)](_0x4d16c8[_0x5c52d6(0x119)]),_0x172182[_0x5c52d6(0x101)](_0x4d16c8);}});try{let _0x2cd202=!0x1;for(;!_0x2cd202;){const {done:_0x561980,value:_0x37a601}=await _0x1fcef2[_0x326f42(0xe3)]();_0x561980&&(_0x2cd202=!0x0),_0x730b74[_0x326f42(0xd8)](this[_0x326f42(0x13f)][_0x326f42(0x152)](_0x37a601,{'stream':!0x0})),yield*_0x172182,_0x172182[_0x326f42(0x129)]=0x0;}}catch(_0x2faa94){this[_0x326f42(0xfd)](_0x2faa94);}finally{_0x1fcef2[_0x326f42(0x144)](),_0x730b74[_0x326f42(0xf2)]();}}[_0x876b10(0xfd)](_0x5c0d3a){const _0x108e13=_0x876b10;if(_0x5c0d3a instanceof _0x1742ee)throw _0x5c0d3a;if(_0x5c0d3a instanceof Error&&_0x108e13(0x14a)===_0x5c0d3a[_0x108e13(0x11c)])throw new _0x1742ee(_0x108e13(0x122),this,{'originalError':_0x5c0d3a});throw new _0x1742ee(_0x108e13(0x155),this,{'originalError':_0x5c0d3a});}}
|
|
23
|
+
const _0xa37214=_0x2270;(function(_0x1ca782,_0x1187f6){const _0x29acdb=_0x2270,_0x34eaa5=_0x1ca782();while(!![]){try{const _0xd1fcd8=-parseInt(_0x29acdb(0x132))/0x1+parseInt(_0x29acdb(0x152))/0x2*(-parseInt(_0x29acdb(0x160))/0x3)+-parseInt(_0x29acdb(0x142))/0x4+-parseInt(_0x29acdb(0x167))/0x5+-parseInt(_0x29acdb(0x198))/0x6*(parseInt(_0x29acdb(0x14a))/0x7)+-parseInt(_0x29acdb(0x16f))/0x8+parseInt(_0x29acdb(0x153))/0x9;if(_0xd1fcd8===_0x1187f6)break;else _0x34eaa5['push'](_0x34eaa5['shift']());}catch(_0x5b9f1b){_0x34eaa5['push'](_0x34eaa5['shift']());}}}(_0x573d,0x52203));function _0x2270(_0x21a44e,_0x14aeac){const _0x573d06=_0x573d();return _0x2270=function(_0x22704f,_0x1c3fc8){_0x22704f=_0x22704f-0x11f;let _0x4b69c3=_0x573d06[_0x22704f];return _0x4b69c3;},_0x2270(_0x21a44e,_0x14aeac);}import{createParser as _0x45f688}from'eventsource-parser';function _0x573d(){const _0x79d8c1=['50JaODgh','20415753HYwgIy','uploadDocument','executeAction','queryAssistant','FIX_GRAMMAR','group','/conversations?','/documents','uploadUrl','AbortError','/actions/custom/calls/','fetchConversationMessages','attributes','30036eyWbpV','/messages/','upsertAIChatRating','fetchDocument','executeCustomAction','excludeEmpty','length','588420mmSqmN','releaseLock','getReader','/ratings','ai-request-aborted','text','uploadFile','toString','4402856TnltIR','isOfficialPlugin','make-tone-formal','value','catch','name','define','ai-missing-token','append','totalCount','_sendApiRequest','keys','MAKE_LONGER','search','startConversation','callSystemReview','upsertAIReviewRating','/web-resources/','abortController','/reviews/system/','MAKE_TONE_CASUAL','https://ai.cke-cs.com/v1','_getStreamReader','AIConnector','updateConversation','MAKE_TONE_FORMAL','_handleError','fetchConversations','continue','deleteConversation','pluginName','/web-resources','callCustomReview','/reviews/custom/calls','request','ai-request-failed','POST','json','translate','100','/files','1974rjuDiF','Bearer\x20','file','true','/messages','/actions/system/','CloudServices','Content-Type','IMPROVE_WRITING','token','make-tone-casual','signal','stringify','/calls','parse','data','/reviews/custom/calls/','push','/documents/','limit','_decoder','getModels','/files/','plugins','_apiUrl','_token','upsertCustomAIActionRating','config','fetchConversation','PUT','PATCH','/actions/custom/calls','CONTINUE','make-longer','reset','upsertCustomAIReviewRating','upsertAIActionRating','make-shorter','TRANSLATE','162918zBJFOY','deleteDocument','GET','positiveCount','context','fix-grammar','body','application/json','ai.serviceUrl','modificationId','then','statusText','feed','isPremiumPlugin','deleteWebResource','improve-writing','1325120GBZKkr','/conversations/','/calls/','get','read','deleteFile','items','decode','11053rjnbNF','MAKE_SHORTER','init','/conversations','status','requires','/models/1','DELETE'];_0x573d=function(){return _0x79d8c1;};return _0x573d();}import{ContextPlugin as _0x38ad55}from'ckeditor5/src/core.js';import{CKEditorError as _0x5a2083}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x36ab73){const _0x1fe90f=_0x2270;_0x36ab73[_0x1fe90f(0x12b)]=_0x1fe90f(0x18b),_0x36ab73[_0x1fe90f(0x157)]=_0x1fe90f(0x137),_0x36ab73[_0x1fe90f(0x1a0)]=_0x1fe90f(0x141),_0x36ab73[_0x1fe90f(0x17b)]=_0x1fe90f(0x12c),_0x36ab73[_0x1fe90f(0x14b)]=_0x1fe90f(0x130),_0x36ab73[_0x1fe90f(0x183)]=_0x1fe90f(0x1a2),_0x36ab73[_0x1fe90f(0x188)]=_0x1fe90f(0x171),_0x36ab73[_0x1fe90f(0x131)]=_0x1fe90f(0x195);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38ad55{[_0xa37214(0x123)];[_0xa37214(0x124)];[_0xa37214(0x11f)];static get[_0xa37214(0x14f)](){const _0x5ac90a=_0xa37214;return[_0x5ac90a(0x19e)];}static get[_0xa37214(0x18d)](){const _0x3b0c1f=_0xa37214;return _0x3b0c1f(0x186);}static get[_0xa37214(0x170)](){return!0x0;}static get[_0xa37214(0x13f)](){return!0x0;}constructor(_0x38e20b){const _0x54eb8e=_0xa37214;super(_0x38e20b),this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x175)](_0x54eb8e(0x13a),_0x54eb8e(0x184)),this[_0x54eb8e(0x123)]=this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x145)](_0x54eb8e(0x13a)),this[_0x54eb8e(0x124)]=null,this[_0x54eb8e(0x11f)]=new TextDecoder();}[_0xa37214(0x14c)](){const _0x1ea687=_0xa37214,_0x28155e=this[_0x1ea687(0x136)][_0x1ea687(0x122)][_0x1ea687(0x145)](_0x1ea687(0x19e));if(!_0x28155e[_0x1ea687(0x1a1)])throw new _0x5a2083(_0x1ea687(0x176),this);this[_0x1ea687(0x124)]=_0x28155e[_0x1ea687(0x1a1)];}[_0xa37214(0x17d)](_0x4db7fb,_0xa4ea43){const _0x1ffc07=_0xa37214,_0x32a4cd=this[_0x1ffc07(0x179)](_0x1ffc07(0x14d),_0x1ffc07(0x193),{'id':_0x4db7fb,'group':_0xa4ea43});return{'getConversation':async()=>(await _0x32a4cd[_0x1ffc07(0x191)])[_0x1ffc07(0x194)](),'abortController':_0x32a4cd[_0x1ffc07(0x181)]};}[_0xa37214(0x156)]({message:_0x3bfd41,conversationId:_0x5f2eb1,parts:_0x55211b,capabilities:_0x499447,model:_0x551032,quickActionData:_0x1b0c21}){const _0x46e3a1=_0xa37214,_0x30bd00={..._0x1b0c21&&{'quickActionData':_0x1b0c21}},_0x2d4d5c={'prompt':_0x3bfd41,'content':_0x55211b,'model':_0x551032,..._0x499447&&{'capabilities':_0x499447},...Object[_0x46e3a1(0x17a)](_0x30bd00)[_0x46e3a1(0x166)]>0x0&&{'attributes':_0x30bd00}},_0x144d47=this[_0x46e3a1(0x179)](_0x46e3a1(0x143)+_0x5f2eb1+_0x46e3a1(0x19c),_0x46e3a1(0x193),_0x2d4d5c);return{'getStream':async()=>{const _0x4462be=_0x46e3a1,_0x3fc177=(await _0x144d47[_0x4462be(0x191)])[_0x4462be(0x138)];return this[_0x4462be(0x185)](_0x3fc177);},'abortController':_0x144d47[_0x46e3a1(0x181)]};}[_0xa37214(0x164)]({content:_0x541fc4,message:_0xe7d835,model:_0x35dd4a,outputFormat:_0x264918}){const _0x1c5232=_0xa37214,_0x47f14b={'content':[{'type':_0x1c5232(0x16c),'content':_0x541fc4}],'prompt':_0xe7d835,'model':_0x35dd4a,'outputFormat':_0x264918},_0x5ba83c=this[_0x1c5232(0x179)](_0x1c5232(0x12a),_0x1c5232(0x193),_0x47f14b);return{'getStream':async()=>{const _0x3ad652=_0x1c5232,_0x2d2c66=(await _0x5ba83c[_0x3ad652(0x191)])[_0x3ad652(0x138)];return this[_0x3ad652(0x185)](_0x2d2c66);},'abortController':_0x5ba83c[_0x1c5232(0x181)]};}[_0xa37214(0x155)]({actionName:_0x3ae266,content:_0x260d44,args:_0x5faa48}){const _0x1ac8dd=_0xa37214,_0x31609e={'content':[{'type':_0x1ac8dd(0x16c),'content':_0x260d44}],'args':_0x5faa48},_0x2255f8=this[_0x1ac8dd(0x179)](_0x1ac8dd(0x19d)+_0x3ae266+_0x1ac8dd(0x1a5),_0x1ac8dd(0x193),_0x31609e);return{'getStream':async()=>{const _0x191183=_0x1ac8dd,_0x97f332=(await _0x2255f8[_0x191183(0x191)])[_0x191183(0x138)];return this[_0x191183(0x185)](_0x97f332);},'abortController':_0x2255f8[_0x1ac8dd(0x181)]};}[_0xa37214(0x16d)](_0x32a312,_0xe84774,_0x20465a){const _0x25e233=_0xa37214,_0x1f58d4=new FormData();_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x19a),_0xe84774,_0xe84774[_0x25e233(0x174)]),_0x20465a&&_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x15f),JSON[_0x25e233(0x1a4)](_0x20465a));const _0x45c661=this[_0x25e233(0x179)](_0x25e233(0x143)+_0x32a312+_0x25e233(0x197),_0x25e233(0x193),_0x1f58d4);return{'getId':async()=>(await _0x45c661[_0x25e233(0x191)])[_0x25e233(0x194)](),'abortController':_0x45c661[_0x25e233(0x181)]};}[_0xa37214(0x163)](_0x1211bc,_0x40aea1){const _0x57e1a1=_0xa37214,_0x34b5c6=this[_0x57e1a1(0x179)](_0x57e1a1(0x143)+_0x1211bc+_0x57e1a1(0x1aa)+_0x40aea1,_0x57e1a1(0x134));return{'getDocument':async()=>(await _0x34b5c6[_0x57e1a1(0x191)])[_0x57e1a1(0x194)](),'abortController':_0x34b5c6[_0x57e1a1(0x181)]};}[_0xa37214(0x154)](_0x5c35f4,_0x118cc3,_0x4e66d8){const _0x535d1c=_0xa37214,_0xc39e36={'content':_0x118cc3};_0x4e66d8&&(_0xc39e36[_0x535d1c(0x15f)]=_0x4e66d8);const _0x2dc571=this[_0x535d1c(0x179)](_0x535d1c(0x143)+_0x5c35f4+_0x535d1c(0x15a),_0x535d1c(0x193),_0xc39e36);return{'getId':async()=>(await _0x2dc571[_0x535d1c(0x191)])[_0x535d1c(0x194)](),'abortController':_0x2dc571[_0x535d1c(0x181)]};}[_0xa37214(0x18a)](_0x5ae149,_0xeb725){const _0x59afb8=_0xa37214,_0x4a5420=new URLSearchParams();_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x165),_0x59afb8(0x19b)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x1ab),_0x59afb8(0x196)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x158),_0x5ae149),_0xeb725&&_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x17c),_0xeb725);const _0x2e3c92=this[_0x59afb8(0x179)](_0x59afb8(0x159)+_0x4a5420[_0x59afb8(0x16e)](),_0x59afb8(0x134));return{'getConversations':async()=>{const _0x3f1e2d=_0x59afb8,_0x1e0574=await _0x2e3c92[_0x3f1e2d(0x191)];return(await _0x1e0574[_0x3f1e2d(0x194)]())[_0x3f1e2d(0x148)];},'abortController':_0x2e3c92[_0x59afb8(0x181)]};}[_0xa37214(0x18c)](_0x2fcd1b){const _0x5d6067=_0xa37214,_0x256a2f=this[_0x5d6067(0x179)](_0x5d6067(0x143)+_0x2fcd1b,_0x5d6067(0x151));return{'execute':async()=>{const _0x3e2254=_0x5d6067;await _0x256a2f[_0x3e2254(0x191)];},'abortController':_0x256a2f[_0x5d6067(0x181)]};}[_0xa37214(0x187)](_0x136f33,_0x51c162){const _0x3dc4ff=_0xa37214,_0x29ff9f=this[_0x3dc4ff(0x179)](_0x3dc4ff(0x143)+_0x136f33,_0x3dc4ff(0x129),_0x51c162);return{'getResult':async()=>(await _0x29ff9f[_0x3dc4ff(0x191)],_0x51c162),'abortController':_0x29ff9f[_0x3dc4ff(0x181)]};}[_0xa37214(0x127)](_0x1b213b){const _0x23d999=_0xa37214,_0x74738=this[_0x23d999(0x179)](_0x23d999(0x143)+_0x1b213b,_0x23d999(0x134));return{'getConversation':async()=>(await _0x74738[_0x23d999(0x191)])[_0x23d999(0x194)](),'abortController':_0x74738[_0x23d999(0x181)]};}[_0xa37214(0x15e)](_0x46748b){const _0x852819=_0xa37214,_0x538e8e=this[_0x852819(0x179)](_0x852819(0x143)+_0x46748b+_0x852819(0x19c),_0x852819(0x134));return{'getMessages':async()=>{const _0x366e9e=_0x852819,_0x1f8d31=await _0x538e8e[_0x366e9e(0x191)];return(await _0x1f8d31[_0x366e9e(0x194)]())[_0x366e9e(0x148)];},'abortController':_0x538e8e[_0x852819(0x181)]};}[_0xa37214(0x15b)](_0x3f8d27,_0x55a92c,_0x228e5c){const _0x4610c8=_0xa37214,_0x3f6426=this[_0x4610c8(0x179)](_0x4610c8(0x143)+_0x3f8d27+_0x4610c8(0x18e),_0x4610c8(0x193),{'url':_0x55a92c,'attributes':_0x228e5c});return{'getId':async()=>(await _0x3f6426[_0x4610c8(0x191)])[_0x4610c8(0x194)](),'abortController':_0x3f6426[_0x4610c8(0x181)]};}[_0xa37214(0x120)](){const _0x30f3b9=_0xa37214,_0x417a8b=this[_0x30f3b9(0x179)](_0x30f3b9(0x150),_0x30f3b9(0x134));return{'list':async()=>await(await _0x417a8b[_0x30f3b9(0x191)])[_0x30f3b9(0x194)](),'abortController':_0x417a8b[_0x30f3b9(0x181)]};}[_0xa37214(0x147)](_0x31d7fd,_0x378b9f){const _0x4f6350=_0xa37214,_0x36f25e=this[_0x4f6350(0x179)](_0x4f6350(0x143)+_0x31d7fd+_0x4f6350(0x121)+_0x378b9f,_0x4f6350(0x151));return{'execute':async()=>{const _0x32488f=_0x4f6350;await _0x36f25e[_0x32488f(0x191)];},'abortController':_0x36f25e[_0x4f6350(0x181)]};}[_0xa37214(0x133)](_0xea30ae,_0x36643f){const _0x283d19=_0xa37214,_0x32240c=this[_0x283d19(0x179)](_0x283d19(0x143)+_0xea30ae+_0x283d19(0x1aa)+_0x36643f,_0x283d19(0x151));return{'execute':async()=>{const _0x32c7f5=_0x283d19;await _0x32240c[_0x32c7f5(0x191)];},'abortController':_0x32240c[_0x283d19(0x181)]};}[_0xa37214(0x140)](_0x92bbe9,_0x3cde9f){const _0x375bb3=_0xa37214,_0x525491=this[_0x375bb3(0x179)](_0x375bb3(0x143)+_0x92bbe9+_0x375bb3(0x180)+_0x3cde9f,_0x375bb3(0x151));return{'execute':async()=>{const _0xcd8fde=_0x375bb3;await _0x525491[_0xcd8fde(0x191)];},'abortController':_0x525491[_0x375bb3(0x181)]};}[_0xa37214(0x17e)]({reviewName:_0x20c6b2,content:_0x23a74e,args:_0x4cbe45}){const _0x5a73dd=_0xa37214,_0x4ea7b5=this[_0x5a73dd(0x179)](_0x5a73dd(0x182)+_0x20c6b2+_0x5a73dd(0x1a5),_0x5a73dd(0x193),{'content':[{'type':_0x5a73dd(0x16c),'content':_0x23a74e}],'args':_0x4cbe45});return{'getStream':async()=>{const _0x42e123=_0x5a73dd,_0x19eaae=(await _0x4ea7b5[_0x42e123(0x191)])[_0x42e123(0x138)];return this[_0x42e123(0x185)](_0x19eaae);},'abortController':_0x4ea7b5[_0x5a73dd(0x181)]};}[_0xa37214(0x18f)]({content:_0x38e0c3,prompt:_0x673368,model:_0x264440}){const _0x2bf373=_0xa37214,_0x2037eb=this[_0x2bf373(0x179)](_0x2bf373(0x190),_0x2bf373(0x193),{'content':[{'type':_0x2bf373(0x16c),'content':_0x38e0c3}],'prompt':_0x673368,'model':_0x264440});return{'getStream':async()=>{const _0x5be7a5=_0x2bf373,_0x194909=(await _0x2037eb[_0x5be7a5(0x191)])[_0x5be7a5(0x138)];return this[_0x5be7a5(0x185)](_0x194909);},'abortController':_0x2037eb[_0x2bf373(0x181)]};}[_0xa37214(0x162)](_0x5ec74f,_0x3f7e39,_0x443112){const _0x319fa0=_0xa37214,_0x535120=this[_0x319fa0(0x179)](_0x319fa0(0x143)+_0x5ec74f+_0x319fa0(0x161)+_0x3f7e39+_0x319fa0(0x16a),_0x319fa0(0x128),{'positiveCount':_0x443112[_0x319fa0(0x135)],'totalCount':_0x443112[_0x319fa0(0x178)],'modificationId':_0x443112[_0x319fa0(0x13b)]});return{'execute':async()=>{const _0x46f027=_0x319fa0;await _0x535120[_0x46f027(0x191)];},'abortController':_0x535120[_0x319fa0(0x181)]};}[_0xa37214(0x12f)](_0x3b5b85,_0x5be6e2,_0x5159c8){const _0x2ddb3b=_0xa37214,_0x1cb9df=this[_0x2ddb3b(0x179)](_0x2ddb3b(0x19d)+_0x3b5b85+_0x2ddb3b(0x144)+_0x5be6e2+_0x2ddb3b(0x16a),_0x2ddb3b(0x128),{'positiveCount':_0x5159c8[_0x2ddb3b(0x135)],'totalCount':_0x5159c8[_0x2ddb3b(0x178)]});return{'execute':async()=>{const _0x271e57=_0x2ddb3b;await _0x1cb9df[_0x271e57(0x191)];},'abortController':_0x1cb9df[_0x2ddb3b(0x181)]};}[_0xa37214(0x125)](_0x1d6793,_0x24b445){const _0x1a9e36=_0xa37214,_0x5431ff=this[_0x1a9e36(0x179)](_0x1a9e36(0x15d)+_0x1d6793+_0x1a9e36(0x16a),_0x1a9e36(0x128),{'positiveCount':_0x24b445[_0x1a9e36(0x135)],'totalCount':_0x24b445[_0x1a9e36(0x178)]});return{'execute':async()=>{const _0x37a87e=_0x1a9e36;await _0x5431ff[_0x37a87e(0x191)];},'abortController':_0x5431ff[_0x1a9e36(0x181)]};}[_0xa37214(0x17f)](_0x3c7418,_0x3d33ba,_0x2e0759,_0x5d266f){const _0x1be42a=_0xa37214,_0x1417aa=this[_0x1be42a(0x179)](_0x1be42a(0x182)+_0x3c7418+_0x1be42a(0x144)+_0x3d33ba+_0x1be42a(0x16a),_0x1be42a(0x128),{'positiveCount':_0x2e0759[_0x1be42a(0x135)],'totalCount':_0x2e0759[_0x1be42a(0x178)],'dataId':_0x5d266f});return{'execute':async()=>{const _0x3359b1=_0x1be42a;await _0x1417aa[_0x3359b1(0x191)];},'abortController':_0x1417aa[_0x1be42a(0x181)]};}[_0xa37214(0x12e)](_0x6cbe24,_0x2998d3,_0x398e1e){const _0x586b23=_0xa37214,_0x2a42ea=this[_0x586b23(0x179)](_0x586b23(0x1a8)+_0x6cbe24+_0x586b23(0x16a),_0x586b23(0x128),{'positiveCount':_0x2998d3[_0x586b23(0x135)],'totalCount':_0x2998d3[_0x586b23(0x178)],'dataId':_0x398e1e});return{'execute':async()=>{const _0x5ee16d=_0x586b23;await _0x2a42ea[_0x5ee16d(0x191)];},'abortController':_0x2a42ea[_0x586b23(0x181)]};}[_0xa37214(0x179)](_0x5cbb42,_0x5f1b0f,_0x506316){const _0x1f8d47=_0xa37214,_0x348be5=new AbortController(),_0x406cd4=_0x506316 instanceof FormData,_0xa467c={'Authorization':_0x1f8d47(0x199)+this[_0x1f8d47(0x124)]?.[_0x1f8d47(0x172)]};_0x506316&&!_0x406cd4&&(_0xa467c[_0x1f8d47(0x19f)]=_0x1f8d47(0x139));const _0x3a9b99={'method':_0x5f1b0f,'headers':_0xa467c,'signal':_0x348be5[_0x1f8d47(0x1a3)]};return _0x506316&&(_0x3a9b99[_0x1f8d47(0x138)]=_0x406cd4?_0x506316:JSON[_0x1f8d47(0x1a4)](_0x506316)),{'request':fetch(''+this[_0x1f8d47(0x123)]+_0x5cbb42,_0x3a9b99)[_0x1f8d47(0x173)](_0x1c7b67=>{const _0x2a15fb=_0x1f8d47;this[_0x2a15fb(0x189)](_0x1c7b67);})[_0x1f8d47(0x13c)](_0x4e80a2=>{const _0x5bf6c9=_0x1f8d47;if(!_0x4e80a2['ok'])throw new _0x5a2083(_0x5bf6c9(0x192),this,{'url':this[_0x5bf6c9(0x123)],'path':_0x5cbb42,'method':_0x5f1b0f,'body':_0x506316,'status':(_0x4e80a2||{})[_0x5bf6c9(0x14e)],'statusText':(_0x4e80a2||{})[_0x5bf6c9(0x13d)]});return _0x4e80a2;}),'abortController':_0x348be5};}async*[_0xa37214(0x185)](_0x4519fa){const _0x275a60=_0xa37214,_0x345a91=[],_0x3e8e6b=_0x4519fa[_0x275a60(0x169)](),_0x52751d=_0x45f688({'onError':_0x275594=>{const _0x39808a=_0x275a60;this[_0x39808a(0x189)](_0x275594);},'onEvent':_0x211c1e=>{const _0x4528b2=_0x275a60;_0x211c1e[_0x4528b2(0x1a7)]=JSON[_0x4528b2(0x1a6)](_0x211c1e[_0x4528b2(0x1a7)]),_0x345a91[_0x4528b2(0x1a9)](_0x211c1e);}});try{let _0x1025e2=!0x1;for(;!_0x1025e2;){const {done:_0x49f2d5,value:_0x5552a9}=await _0x3e8e6b[_0x275a60(0x146)]();_0x49f2d5&&(_0x1025e2=!0x0),_0x52751d[_0x275a60(0x13e)](this[_0x275a60(0x11f)][_0x275a60(0x149)](_0x5552a9,{'stream':!0x0})),yield*_0x345a91,_0x345a91[_0x275a60(0x166)]=0x0;}}catch(_0x4b4c88){this[_0x275a60(0x189)](_0x4b4c88);}finally{_0x3e8e6b[_0x275a60(0x168)](),_0x52751d[_0x275a60(0x12d)]();}}[_0xa37214(0x189)](_0x156e35){const _0x2b3887=_0xa37214;if(_0x156e35 instanceof _0x5a2083)throw _0x156e35;if(_0x156e35 instanceof Error&&_0x2b3887(0x15c)===_0x156e35[_0x2b3887(0x174)])throw new _0x5a2083(_0x2b3887(0x16b),this,{'originalError':_0x156e35});throw new _0x5a2083(_0x2b3887(0x192),this,{'originalError':_0x156e35});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1354cc=_0x3b8b;(function(_0x186084,_0x1b25a1){const _0x343e18=_0x3b8b,_0x220167=_0x186084();while(!![]){try{const _0x5d046f=-parseInt(_0x343e18(0x8a))/0x1*(parseInt(_0x343e18(0xa5))/0x2)+parseInt(_0x343e18(0x97))/0x3*(parseInt(_0x343e18(0xd7))/0x4)+parseInt(_0x343e18(0xd3))/0x5+-parseInt(_0x343e18(0xb2))/0x6*(-parseInt(_0x343e18(0xa9))/0x7)+-parseInt(_0x343e18(0xc3))/0x8+parseInt(_0x343e18(0xce))/0x9+-parseInt(_0x343e18(0xe2))/0xa*(parseInt(_0x343e18(0xaa))/0xb);if(_0x5d046f===_0x1b25a1)break;else _0x220167['push'](_0x220167['shift']());}catch(_0x5926b3){_0x220167['push'](_0x220167['shift']());}}}(_0x171e,0x34c3d));import{ViewDowncastWriter as _0x34d543}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x53fe17,Editor as _0x8d2c3d}from'ckeditor5/src/core.js';function _0x171e(){const _0xa5fc33=['emptyElement','getLastMatchingPosition','isPremiumPlugin','1997845rqgoEN','context','floor','element','222212FIBVOw','listenTo','for','push','length','createUIElement','getSelectionText','setAttribute','AIEditing','$textProxy','_displayedFakeSelectionLocked','10RiTHJM','indexOf','ai-selection:','_nextDataId','addMarker','getStart','containerElement','add','_setDataIdsOnChildren','plugins','toView','schema','version','editingDowncast','getMarkersGroup','markers','getSelection','fromCharCode','20662kgxDRU','pluginName','RealTimeCollaborationClient','ck-fake-ai-selection','data-id','model','isOpening','isAtEnd','getWalker','afterInit','createRangeIn','markerToElement','get','6uPjvSv',':start></','getSelectedContent','markerName','modelToViewWithIds',':end></','sessionId','_integrateEditor','isContent','name','_getMarkersInDocumentOrder','random','from','join','40wCpsLy','showFakeVisualSelection','ai-selection','getChildren','5397QuHNCv','3369861BANYDq','conversion','_displayedFakeSelectionId','editors','processor','selection','isOfficialPlugin','view','1506wJqwhw','getDocumentData','end','toData','hideFakeVisualSelection','isBefore','isAfter','convertAiChatSelectionMarker','removeMarker','editing','data','trim','createRange','_sessionId','ck-ai-assistant-ui_theme','change',':start>','1476720rVTgeS','ready','sort','substring','markerToHighlight','start','getRoot','dataDowncast','removeAllRanges','has',':end>','3744990AhabrR','document'];_0x171e=function(){return _0xa5fc33;};return _0x171e();}function _0x3b8b(_0x3ef78d,_0x4745e0){const _0x171e0b=_0x171e();return _0x3b8b=function(_0x3b8bc0,_0x1eda1e){_0x3b8bc0=_0x3b8bc0-0x7b;let _0xecf21d=_0x171e0b[_0x3b8bc0];return _0xecf21d;},_0x3b8b(_0x3ef78d,_0x4745e0);}import{uid as _0x588605}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3b8585}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1354cc(0xa7);export class AIEditing extends _0x53fe17{[_0x1354cc(0xac)]=null;[_0x1354cc(0xe1)]=!0x1;[_0x1354cc(0xbf)];static get[_0x1354cc(0x8b)](){const _0x8f8c8f=_0x1354cc;return _0x8f8c8f(0xdf);}static get[_0x1354cc(0xb0)](){return!0x0;}static get[_0x1354cc(0xd2)](){return!0x0;}get[_0x1354cc(0x9d)](){const _0x2cdc52=_0x1354cc;if(!this[_0x2cdc52(0xbf)]){const _0x5360da=_0x3b8585(this[_0x2cdc52(0xd4)]),_0x4832a1=_0x5360da[_0x2cdc52(0x81)][_0x2cdc52(0xcc)](_0x2cdc52(0x8c))&&_0x5360da[_0x2cdc52(0x81)][_0x2cdc52(0x96)](_0x2cdc52(0x8c))[_0x2cdc52(0x9d)];this[_0x2cdc52(0xbf)]=_0x4832a1||_0x588605();}return this[_0x2cdc52(0xbf)];}[_0x1354cc(0xb3)](){const _0x3299ea=_0x1354cc,_0x405c15=_0x3b8585(this[_0x3299ea(0xd4)]),_0x3c4214=_0x405c15[_0x3299ea(0x8f)],_0x5e4a59=_0x405c15[_0x3299ea(0xbc)][_0x3299ea(0x82)](_0x3c4214[_0x3299ea(0xcf)][_0x3299ea(0xc9)](),{'convertAiChatSelectionMarker':!0x0}),_0x2218cf=new _0x34d543(_0x405c15[_0x3299ea(0xbb)][_0x3299ea(0xb1)][_0x3299ea(0xcf)]);this[_0x3299ea(0x80)](_0x5e4a59,_0x2218cf);let _0x23d330=_0x405c15[_0x3299ea(0xbc)][_0x3299ea(0xae)][_0x3299ea(0xb5)](_0x5e4a59);const _0x5a7b48=this[_0x3299ea(0xa1)](),_0x4c611c=[];for(const _0x2c3917 of _0x5a7b48){const _0x4c23b7='<'+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0x98)+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0xc2),_0x9f9cef=_0x23d330[_0x3299ea(0xe3)](_0x4c23b7);_0x23d330=_0x23d330[_0x3299ea(0xc6)](0x0,_0x9f9cef)+_0x23d330[_0x3299ea(0xc6)](_0x9f9cef+_0x4c23b7[_0x3299ea(0xdb)]);const _0x23102c='<'+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0x9c)+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0xcd),_0x59c798=_0x23d330[_0x3299ea(0xe3)](_0x23102c);_0x23d330=_0x23d330[_0x3299ea(0xc6)](0x0,_0x59c798)+_0x23d330[_0x3299ea(0xc6)](_0x59c798+_0x23102c[_0x3299ea(0xdb)]),_0x4c611c[_0x3299ea(0xda)]({'markerName':_0x2c3917[_0x3299ea(0xa0)],'start':_0x9f9cef,'end':_0x59c798,'htmlFragment':_0x23d330[_0x3299ea(0xc6)](_0x9f9cef,_0x59c798)});}return{'content':_0x23d330,'version':_0x405c15[_0x3299ea(0x8f)][_0x3299ea(0xcf)][_0x3299ea(0x84)],'sessionId':this[_0x3299ea(0x9d)],'selections':_0x4c611c};}async[_0x1354cc(0x93)](){const _0x5bb20e=_0x1354cc;this[_0x5bb20e(0xd4)]instanceof _0x8d2c3d?this[_0x5bb20e(0x9e)](this[_0x5bb20e(0xd4)]):this[_0x5bb20e(0xd8)](this[_0x5bb20e(0xd4)][_0x5bb20e(0xad)],_0x5bb20e(0x7f),(_0x4ad3ea,_0x575220)=>{const _0xcd756d=_0x5bb20e;_0x575220['on'](_0xcd756d(0xc4),()=>{const _0x4da1f8=_0xcd756d;this[_0x4da1f8(0x9e)](_0x575220);});});}[_0x1354cc(0x9e)](_0x191e5a){const _0x14a0d4=_0x1354cc;_0x191e5a[_0x14a0d4(0xab)][_0x14a0d4(0xd9)](_0x14a0d4(0x85))[_0x14a0d4(0xc7)]({'model':_0x14a0d4(0xa7),'view':{'classes':[_0x14a0d4(0x8d),_0x14a0d4(0xc0)],'priority':0xc}}),_0x191e5a[_0x14a0d4(0xab)][_0x14a0d4(0xd9)](_0x14a0d4(0xca))[_0x14a0d4(0x95)]({'model':_0x14a0d4(0xa7),'view':(_0x2a0d59,{writer:_0x3690a1,options:_0x1d10ae})=>_0x1d10ae[_0x14a0d4(0xb9)]?_0x3690a1[_0x14a0d4(0xdc)](_0x2a0d59[_0x14a0d4(0x9a)]+':'+(_0x2a0d59[_0x14a0d4(0x90)]?_0x14a0d4(0xc8):_0x14a0d4(0xb4))):null});}[_0x1354cc(0xa6)](_0x574965,_0x3c84e7,_0x1c62e6=!0x1,_0x2ba6c7=!0x1){const _0x582dce=_0x1354cc;if(this[_0x582dce(0xe1)]&&!_0x2ba6c7)return!0x1;const _0x14f2e2=_0x3b8585(this[_0x582dce(0xd4)])[_0x582dce(0x8f)];return _0x14f2e2[_0x582dce(0xc1)](_0x44712e=>{const _0x4c8801=_0x582dce;this[_0x4c8801(0xac)]&&this[_0x4c8801(0xb6)](this[_0x4c8801(0xac)]),this[_0x4c8801(0xac)]=_0x3c84e7,this[_0x4c8801(0xe1)]=_0x1c62e6;let _0x54e454=0x0;for(let _0x40244a of _0x574965){const _0x2295a9=_0x4c8801(0xe4)+_0x54e454;if(_0x40244a[_0x4c8801(0xc8)][_0x4c8801(0x91)]){const _0x3482e9=_0x40244a[_0x4c8801(0xc8)][_0x4c8801(0xd1)](({item:_0x5313e6})=>!_0x14f2e2[_0x4c8801(0x83)][_0x4c8801(0x9f)](_0x5313e6),{'boundaries':_0x40244a});_0x40244a=_0x44712e[_0x4c8801(0xbe)](_0x3482e9,_0x40244a[_0x4c8801(0xb4)]);}_0x44712e[_0x4c8801(0x7c)](_0x2295a9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x40244a}),_0x54e454++;}}),window[_0x582dce(0x88)]()?.[_0x582dce(0xcb)](),!0x0;}[_0x1354cc(0xb6)](_0x4329ab){const _0x4b22c7=_0x1354cc;if(this[_0x4b22c7(0xac)]!=_0x4329ab)return!0x1;this[_0x4b22c7(0xac)]=null,this[_0x4b22c7(0xe1)]=!0x1;const _0x369325=_0x3b8585(this[_0x4b22c7(0xd4)]),_0x3e00b3=_0x369325[_0x4b22c7(0x8f)][_0x4b22c7(0x87)][_0x4b22c7(0x86)](_0x4b22c7(0xa7));return _0x369325[_0x4b22c7(0x8f)][_0x4b22c7(0xc1)](_0x139f70=>{const _0xe0a454=_0x4b22c7;for(const _0x330a6e of _0x3e00b3)_0x139f70[_0xe0a454(0xba)](_0x330a6e);}),!0x0;}[_0x1354cc(0x9b)](_0x2748a1){const _0x12d1c4=_0x1354cc,_0x33c97f=_0x3b8585(this[_0x12d1c4(0xd4)]),_0x2b6c92=_0x33c97f[_0x12d1c4(0xbc)][_0x12d1c4(0x82)](_0x2748a1),_0x235d55=new _0x34d543(_0x33c97f[_0x12d1c4(0xbb)][_0x12d1c4(0xb1)][_0x12d1c4(0xcf)]);return this[_0x12d1c4(0x80)](_0x2b6c92,_0x235d55),_0x2b6c92;}[_0x1354cc(0x80)](_0x5553d3,_0x5648d0){const _0x4a54fe=_0x1354cc;let _0x33b845=!0x1;const _0x551dcd=new Set();for(const _0x1ec960 of _0x5553d3[_0x4a54fe(0xa8)]()){const _0x2cae2c=_0x1ec960['is'](_0x4a54fe(0xd0))||_0x1ec960['is'](_0x4a54fe(0x7e));if(!_0x1ec960['is'](_0x4a54fe(0xd6)))continue;(this[_0x4a54fe(0x80)](_0x1ec960,_0x5648d0)||_0x2cae2c)&&(_0x5648d0[_0x4a54fe(0xde)](_0x4a54fe(0x8e),this[_0x4a54fe(0x7b)](_0x551dcd),_0x1ec960),_0x33b845=!0x0);}return _0x33b845;}[_0x1354cc(0x7b)](_0x32a41d){const _0x472d84=_0x1354cc;let _0x76b12b;do{_0x76b12b='';for(let _0x16d6b3=0x0;_0x16d6b3<0x4;_0x16d6b3++)_0x76b12b+=String[_0x472d84(0x89)](0x61+Math[_0x472d84(0xd5)](0x1a*Math[_0x472d84(0xa2)]()));}while(_0x32a41d[_0x472d84(0xcc)](_0x76b12b));return _0x32a41d[_0x472d84(0x7f)](_0x76b12b),_0x76b12b;}[_0x1354cc(0xdd)](){const _0x398725=_0x1354cc,{model:_0x1cb78e}=_0x3b8585(this[_0x398725(0xd4)]),_0x34b46d=_0x1cb78e[_0x398725(0xcf)][_0x398725(0xaf)],_0x384a44=_0x1cb78e[_0x398725(0x99)](_0x34b46d),_0x10f2a5=[],_0x528174=_0x1cb78e[_0x398725(0x94)](_0x384a44)[_0x398725(0x92)]();for(const {item:_0x4ff4f0}of _0x528174)_0x4ff4f0['is'](_0x398725(0xe0))?_0x10f2a5[_0x398725(0xda)](_0x4ff4f0[_0x398725(0xbc)]):_0x4ff4f0['is'](_0x398725(0xd6))&&_0x10f2a5[_0x398725(0xdb)]>0x0&&'\x20'!==_0x10f2a5[_0x10f2a5[_0x398725(0xdb)]-0x1]&&_0x10f2a5[_0x398725(0xda)]('\x20');return'\x22'+_0x10f2a5[_0x398725(0xa4)]('')[_0x398725(0xbd)]()+'\x22';}[_0x1354cc(0xa1)](){const _0xc35e9a=_0x1354cc,_0x41c25c=_0x3b8585(this[_0xc35e9a(0xd4)])[_0xc35e9a(0x8f)];return Array[_0xc35e9a(0xa3)](_0x41c25c[_0xc35e9a(0x87)][_0xc35e9a(0x86)](_0xc35e9a(0xa7)))[_0xc35e9a(0xc5)]((_0x5a031a,_0x16e0df)=>_0x5a031a[_0xc35e9a(0x7d)]()[_0xc35e9a(0xb7)](_0x16e0df[_0xc35e9a(0x7d)]())?-0x1:_0x5a031a[_0xc35e9a(0x7d)]()[_0xc35e9a(0xb8)](_0x16e0df[_0xc35e9a(0x7d)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x16177a=_0x301f;(function(_0x4ad9ae,_0x29fb32){const _0x524834=_0x301f,_0x1267ad=_0x4ad9ae();while(!![]){try{const _0x14fa32=parseInt(_0x524834(0x147))/0x1*(-parseInt(_0x524834(0x157))/0x2)+parseInt(_0x524834(0x14f))/0x3*(parseInt(_0x524834(0x13f))/0x4)+parseInt(_0x524834(0x151))/0x5*(-parseInt(_0x524834(0x154))/0x6)+-parseInt(_0x524834(0x150))/0x7+parseInt(_0x524834(0x140))/0x8*(parseInt(_0x524834(0x152))/0x9)+parseInt(_0x524834(0x143))/0xa*(parseInt(_0x524834(0x145))/0xb)+parseInt(_0x524834(0x144))/0xc;if(_0x14fa32===_0x29fb32)break;else _0x1267ad['push'](_0x1267ad['shift']());}catch(_0x5420f0){_0x1267ad['push'](_0x1267ad['shift']());}}}(_0x189f,0x4b33a));function _0x301f(_0x539ece,_0x5162de){const _0x189fcf=_0x189f();return _0x301f=function(_0x301f07,_0x59a05f){_0x301f07=_0x301f07-0x13e;let _0x524dd8=_0x189fcf[_0x301f07];return _0x524dd8;},_0x301f(_0x539ece,_0x5162de);}function _0x189f(){const _0x20cfb3=['getCapabilitiesConfig','_isWebSearchEnabled','6gUjDNR','1775718hbWZYY','468545aAGUiZ','1468710esztWL','isWebSearchEnabled','6EThwAM','setWebSearch','reasoning','8TLzYKO','_isReasoningEnabled','toggleReasoning','reset','318764RcbAmq','8aScixN','setReasoning','webSearch','93890kIEQGc','5483256rcncUN','121svVdsl','init','56845OOJPfU','isReasoningEnabled','getCapabilitiesRequestData','fire','capabilitiesUpdated','toggleWebSearch'];_0x189f=function(){return _0x20cfb3;};return _0x189f();}import{EmitterMixin as _0x9c0ab}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x16177a(0x14b)];export class AICapabilities extends _0x9c0ab(){[_0x16177a(0x14e)];[_0x16177a(0x158)];constructor(){const _0x366c08=_0x16177a;super(),this[_0x366c08(0x14e)]=!0x1,this[_0x366c08(0x158)]=!0x1;}[_0x16177a(0x146)](){const _0xecc6fa=_0x16177a;this[_0xecc6fa(0x13e)]();}[_0x16177a(0x13e)](){const _0x19300f=_0x16177a;this[_0x19300f(0x155)](!0x1),this[_0x19300f(0x141)](!0x1);}[_0x16177a(0x14d)](){const _0xd1a593=_0x16177a;return{'isWebSearchEnabled':this[_0xd1a593(0x14e)],'isReasoningEnabled':this[_0xd1a593(0x158)]};}static[_0x16177a(0x149)](_0x418f96){const _0xf6cbfd=_0x16177a,_0xc55bd8={};return _0x418f96&&_0x418f96[_0xf6cbfd(0x153)]&&(_0xc55bd8[_0xf6cbfd(0x142)]={}),_0x418f96&&_0x418f96[_0xf6cbfd(0x148)]&&(_0xc55bd8[_0xf6cbfd(0x156)]={}),_0xc55bd8;}[_0x16177a(0x14c)](){const _0x3143d2=_0x16177a;this[_0x3143d2(0x155)](!this[_0x3143d2(0x14e)]);}[_0x16177a(0x159)](){const _0x5036ae=_0x16177a;this[_0x5036ae(0x141)](!this[_0x5036ae(0x158)]);}[_0x16177a(0x155)](_0x458b5b){const _0x54da8e=_0x16177a;_0x458b5b!==this[_0x54da8e(0x14e)]&&(this[_0x54da8e(0x14e)]=_0x458b5b,this[_0x54da8e(0x14a)](_0x54da8e(0x14b),this[_0x54da8e(0x14d)]()));}[_0x16177a(0x141)](_0x52e45e){const _0x45adca=_0x16177a;_0x52e45e!==this[_0x45adca(0x158)]&&(this[_0x45adca(0x158)]=_0x52e45e,this[_0x45adca(0x14a)](_0x45adca(0x14b),this[_0x45adca(0x14d)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5ce975,_0xb9f87e){var _0x448611=_0xe30e,_0x400ba0=_0x5ce975();while(!![]){try{var _0x4c9173=parseInt(_0x448611(0x105))/0x1*(-parseInt(_0x448611(0xfc))/0x2)+-parseInt(_0x448611(0xfa))/0x3+-parseInt(_0x448611(0xfb))/0x4*(-parseInt(_0x448611(0x104))/0x5)+parseInt(_0x448611(0x107))/0x6*(parseInt(_0x448611(0xf9))/0x7)+-parseInt(_0x448611(0xf0))/0x8*(parseInt(_0x448611(0x100))/0x9)+parseInt(_0x448611(0x108))/0xa*(parseInt(_0x448611(0xf7))/0xb)+parseInt(_0x448611(0xf3))/0xc;if(_0x4c9173===_0xb9f87e)break;else _0x400ba0['push'](_0x400ba0['shift']());}catch(_0x1fa64d){_0x400ba0['push'](_0x400ba0['shift']());}}}(_0x122b,0x44fc0));export var AIContextItemType;function _0xe30e(_0x1b42c2,_0x5b8bbf){var _0x122bf9=_0x122b();return _0xe30e=function(_0xe30eb8,_0x66ba42){_0xe30eb8=_0xe30eb8-0xef;var _0x5cc3c5=_0x122bf9[_0xe30eb8];return _0x5cc3c5;},_0xe30e(_0x1b42c2,_0x5b8bbf);}!function(_0x1a868b){var _0x17373f=_0xe30e;_0x1a868b[_0x17373f(0x102)]=_0x17373f(0xfd),_0x1a868b[_0x17373f(0xf6)]=_0x17373f(0xef),_0x1a868b[_0x17373f(0xf4)]=_0x17373f(0xf1),_0x1a868b[_0x17373f(0x101)]=_0x17373f(0xf2),_0x1a868b[_0x17373f(0xfe)]=_0x17373f(0xff);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x122b(){var _0x57cfa3=['126132zMaAeX','URL','MARKDOWN','DOCUMENT','22UIUAQt','HTML','21oXznxo','1148139lLbePE','37552gZOAai','25526uAVtvv','file','SELECTION','selection','9vQXRfM','TEXT','FILE','markdown','30EwZwEF','29tPIhlm','html','1030908rWMzmn','2734040TREhgX','document','749608uVssZf','web-resource','text'];_0x122b=function(){return _0x57cfa3;};return _0x122b();}!function(_0x43c78a){var _0x552048=_0xe30e;_0x43c78a[_0x552048(0x101)]=_0x552048(0xf2),_0x43c78a[_0x552048(0xf5)]=_0x552048(0x103),_0x43c78a[_0x552048(0xf8)]=_0x552048(0x106);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56ed67=_0x2810;(function(_0x34c15c,_0x40ed16){const _0x2a6df9=_0x2810,_0x5a2cdd=_0x34c15c();while(!![]){try{const _0x4c7873=parseInt(_0x2a6df9(0x1a4))/0x1*(-parseInt(_0x2a6df9(0x188))/0x2)+-parseInt(_0x2a6df9(0x16e))/0x3+-parseInt(_0x2a6df9(0x17b))/0x4*(-parseInt(_0x2a6df9(0x168))/0x5)+parseInt(_0x2a6df9(0x1a2))/0x6+parseInt(_0x2a6df9(0x16d))/0x7+parseInt(_0x2a6df9(0x18f))/0x8+parseInt(_0x2a6df9(0x1a6))/0x9*(parseInt(_0x2a6df9(0x185))/0xa);if(_0x4c7873===_0x40ed16)break;else _0x5a2cdd['push'](_0x5a2cdd['shift']());}catch(_0x40f72d){_0x5a2cdd['push'](_0x5a2cdd['shift']());}}}(_0x3be0,0xcc411));import{CKEditorError as _0x51c834,EmitterMixin as _0x491027,logWarning as _0x23263,uid as _0x2e5d0d}from'ckeditor5/src/utils.js';function _0x3be0(){const _0x40770a=['sources','action-metadata','forEach','appendContent','interactionStopped','replies','callId','ai-chat-interaction-error','2435124bjsFsK','interactionStarted','16FoneeI','webSearchStarted','8202555WMgcjP','find','content','textDelta','reasoningStarted','editor','conversationTitle','modification-delta','event','5RMVyAY','_isWebSearching','sendRequest','reasoning','_finalizeInteraction','2308600SMEkoN','1054902LXkRpN','abortController','replyContentUpdated','message-metadata','webSearchFinished','messageId','web-search','interactionFinished','getReply','abort','isDestroyed','error','fire','2131572aKSbMI','start','replyChangeGroupStateUpdated','destroy','ai-interaction-invalid-event-type','getDocumentContext','createReply','_isReasoning','currentReply','isStopped','10bnrGPa','length','replyCreated','142288EnYVzF','push','interactionCreated','setConversationTitle','stop','done','splice','1172968dIVHpd','interactionDestroyed','reasoningFinished','source','actionCallId','stopListening','delegate','getStream','currentRequest','connector','data'];_0x3be0=function(){return _0x40770a;};return _0x3be0();}import{AIReply as _0xa59715,isIgnoredReplyType as _0x12ea07,isValidReplyType as _0x587d80,isReplyTitleType as _0x2b9461,isSourceType as _0x3b314f}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x56ed67(0x18a),_0x56ed67(0x1a3),_0x56ed67(0x19e),_0x56ed67(0x175),_0x56ed67(0x190),_0x56ed67(0x187),_0x56ed67(0x170),_0x56ed67(0x17d),_0x56ed67(0x18b),_0x56ed67(0x1a5),_0x56ed67(0x172),_0x56ed67(0x1aa),_0x56ed67(0x191),_0x56ed67(0x179)];function _0x2810(_0x330aa5,_0x2b58a4){const _0x3be016=_0x3be0();return _0x2810=function(_0x2810fc,_0xba3ca0){_0x2810fc=_0x2810fc-0x168;let _0x261ba9=_0x3be016[_0x2810fc];return _0x261ba9;},_0x2810(_0x330aa5,_0x2b58a4);}export class AIInteraction extends _0x491027(){['id'];[_0x56ed67(0x19f)]=[];[_0x56ed67(0x183)];[_0x56ed67(0x173)];[_0x56ed67(0x193)];[_0x56ed67(0x197)];[_0x56ed67(0x198)];[_0x56ed67(0x184)]=!0x1;[_0x56ed67(0x178)]=!0x1;[_0x56ed67(0x1ab)];[_0x56ed67(0x182)]=!0x1;[_0x56ed67(0x169)]=!0x1;constructor({connector:_0x238360,editor:_0xf2abe0}){const _0x1de350=_0x56ed67;super(),this['id']=_0x2e5d0d(),this[_0x1de350(0x198)]=_0x238360,this[_0x1de350(0x184)]=!0x0,this[_0x1de350(0x1ab)]=_0xf2abe0;}async[_0x56ed67(0x17c)](){const _0x4c3716=_0x56ed67;let _0x29aa1d;const _0x380edc=[];this[_0x4c3716(0x184)]=!0x1;try{this[_0x4c3716(0x197)]=await this[_0x4c3716(0x16a)](),this[_0x4c3716(0x17a)](_0x4c3716(0x1a3),this);const _0x280517=await this[_0x4c3716(0x197)][_0x4c3716(0x196)]();for await(const _0x559b60 of _0x280517){if(this[_0x4c3716(0x184)])return;if(_0x4c3716(0x179)===_0x559b60[_0x4c3716(0x1ae)])return void this[_0x4c3716(0x17a)](_0x4c3716(0x179),{'error':new _0x51c834(_0x4c3716(0x1a1),this)});if(_0x4c3716(0x171)!==_0x559b60[_0x4c3716(0x1ae)]){if(_0x4c3716(0x19b)!==_0x559b60[_0x4c3716(0x1ae)]){if(_0x2b9461(_0x559b60[_0x4c3716(0x1ae)])&&this[_0x4c3716(0x18b)](_0x559b60[_0x4c3716(0x199)][_0x4c3716(0x1ac)],!0x0),_0x3b314f(_0x559b60[_0x4c3716(0x1ae)]))_0x380edc[_0x4c3716(0x189)](_0x559b60[_0x4c3716(0x199)][_0x4c3716(0x192)]);else{if(_0x587d80(_0x559b60[_0x4c3716(0x1ae)])){if(_0x559b60[_0x4c3716(0x1ae)]!==_0x29aa1d){if(_0x29aa1d=_0x559b60[_0x4c3716(0x1ae)],_0x4c3716(0x174)===_0x559b60[_0x4c3716(0x1ae)]){this[_0x4c3716(0x169)]||(this[_0x4c3716(0x169)]=!0x0,this[_0x4c3716(0x17a)](_0x4c3716(0x1a5),this));continue;}if(_0x4c3716(0x16b)===_0x559b60[_0x4c3716(0x1ae)]){this[_0x4c3716(0x182)]||(this[_0x4c3716(0x182)]=!0x0,this[_0x4c3716(0x17a)](_0x4c3716(0x1aa),this));continue;}this[_0x4c3716(0x182)]&&(this[_0x4c3716(0x182)]=!0x1,this[_0x4c3716(0x17a)](_0x4c3716(0x191),this)),this[_0x4c3716(0x169)]&&(this[_0x4c3716(0x169)]=!0x1,this[_0x4c3716(0x17a)](_0x4c3716(0x172),this)),this[_0x4c3716(0x183)]&&this[_0x4c3716(0x183)][_0x4c3716(0x18d)](),this[_0x4c3716(0x183)]=this[_0x4c3716(0x181)]({'type':_0x559b60[_0x4c3716(0x1ae)],'interactionId':this['id'],'id':_0x559b60[_0x4c3716(0x199)]?.['id']}),_0x380edc[_0x4c3716(0x186)]>0x0&&_0x4c3716(0x1ad)===_0x559b60[_0x4c3716(0x1ae)]&&(this[_0x4c3716(0x183)][_0x4c3716(0x19a)]=_0x380edc[_0x4c3716(0x18e)](0x0));}_0x559b60[_0x4c3716(0x199)][_0x4c3716(0x1a9)]&&this[_0x4c3716(0x183)][_0x4c3716(0x19d)](_0x559b60[_0x4c3716(0x199)][_0x4c3716(0x1a9)]);}else _0x12ea07(_0x559b60[_0x4c3716(0x1ae)])||_0x23263(_0x4c3716(0x17f),{'chunk':_0x559b60});}}else this[_0x4c3716(0x193)]=_0x559b60[_0x4c3716(0x199)][_0x4c3716(0x1a0)];}else this[_0x4c3716(0x173)]=_0x559b60[_0x4c3716(0x199)][_0x4c3716(0x173)];}}finally{this[_0x4c3716(0x184)]||(_0x380edc[_0x4c3716(0x186)]>0x0&&(this[_0x4c3716(0x183)][_0x4c3716(0x19a)]=_0x380edc[_0x4c3716(0x18e)](0x0)),this[_0x4c3716(0x16c)](),this[_0x4c3716(0x17a)](_0x4c3716(0x175),this));}}[_0x56ed67(0x18c)](){const _0xb1c582=_0x56ed67;this[_0xb1c582(0x184)]||(this[_0xb1c582(0x16c)](),this[_0xb1c582(0x17a)](_0xb1c582(0x19e),this));}[_0x56ed67(0x176)](_0x4225b6){const _0x46ba95=_0x56ed67;return this[_0x46ba95(0x19f)][_0x46ba95(0x1a7)](_0x3916c2=>_0x3916c2['id']===_0x4225b6);}[_0x56ed67(0x17e)](){const _0x3ce2bd=_0x56ed67;this[_0x3ce2bd(0x178)]||(this[_0x3ce2bd(0x18c)](),this[_0x3ce2bd(0x19f)][_0x3ce2bd(0x19c)](_0x59c287=>_0x59c287[_0x3ce2bd(0x17e)]()),this[_0x3ce2bd(0x19f)]=[],this[_0x3ce2bd(0x178)]=!0x0,this[_0x3ce2bd(0x17a)](_0x3ce2bd(0x190),this),this[_0x3ce2bd(0x194)]());}[_0x56ed67(0x181)](_0x2611a0){const _0x5779f9=_0x56ed67,_0xa2ed44=new _0xa59715({'editor':this[_0x5779f9(0x1ab)],'documentContextContent':this[_0x5779f9(0x180)]()?.[_0x5779f9(0x1a8)],..._0x2611a0});return this[_0x5779f9(0x19f)][_0x5779f9(0x189)](_0xa2ed44),_0xa2ed44[_0x5779f9(0x195)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5779f9(0x17a)](_0x5779f9(0x187),_0xa2ed44),_0xa2ed44;}[_0x56ed67(0x18b)](_0x46d2e2,_0x4938d0=!0x1){const _0x24e672=_0x56ed67;this[_0x24e672(0x17a)](_0x24e672(0x18b),_0x46d2e2,_0x4938d0);}[_0x56ed67(0x16c)](){const _0x459785=_0x56ed67;this[_0x459785(0x184)]=!0x0,this[_0x459785(0x197)]&&this[_0x459785(0x197)][_0x459785(0x16f)][_0x459785(0x177)](),this[_0x459785(0x183)]&&this[_0x459785(0x183)][_0x459785(0x18d)](),this[_0x459785(0x197)]=this[_0x459785(0x183)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x130a10=_0x5970;(function(_0x1abf86,_0x4c80ff){const _0x235efe=_0x5970,_0x1e027b=_0x1abf86();while(!![]){try{const _0xaad23e=parseInt(_0x235efe(0x16a))/0x1*(-parseInt(_0x235efe(0x174))/0x2)+-parseInt(_0x235efe(0x17b))/0x3+parseInt(_0x235efe(0x184))/0x4+parseInt(_0x235efe(0x16e))/0x5*(parseInt(_0x235efe(0x177))/0x6)+parseInt(_0x235efe(0x17c))/0x7+-parseInt(_0x235efe(0x163))/0x8+parseInt(_0x235efe(0x17f))/0x9;if(_0xaad23e===_0x4c80ff)break;else _0x1e027b['push'](_0x1e027b['shift']());}catch(_0x201be5){_0x1e027b['push'](_0x1e027b['shift']());}}}(_0x142b,0x38dc0));function _0x5970(_0x55b1ec,_0x1d6fcc){const _0x142b23=_0x142b();return _0x5970=function(_0x5970fc,_0x42f68f){_0x5970fc=_0x5970fc-0x15f;let _0x3d153e=_0x142b23[_0x5970fc];return _0x3d153e;},_0x5970(_0x55b1ec,_0x1d6fcc);}import{CKEditorError as _0x476398,EmitterMixin as _0x366c81,logWarning as _0x24e0ae}from'ckeditor5/src/utils.js';import{getTranslation as _0x53f45e}from'../utils/common-translations.js';export class AIModels extends _0x366c81(){[_0x130a10(0x18a)];[_0x130a10(0x17e)];[_0x130a10(0x16f)];[_0x130a10(0x168)]=[];constructor({connector:_0x4b36f8,availableModels:_0x488021,defaultModelId:_0x2239f2}){const _0x41157b=_0x130a10;super(),this[_0x41157b(0x18a)]=_0x4b36f8,this[_0x41157b(0x17e)]=_0x488021,this[_0x41157b(0x16f)]=_0x2239f2;}async[_0x130a10(0x16d)](){const _0x32a83e=_0x130a10;if(!this[_0x32a83e(0x168)][_0x32a83e(0x162)])try{const _0x30e4a4=this[_0x32a83e(0x18a)][_0x32a83e(0x17a)](),_0x35a66a=await _0x30e4a4[_0x32a83e(0x186)]();this[_0x32a83e(0x168)]=_0x35a66a[_0x32a83e(0x173)];}catch(_0x1c2852){throw new _0x476398(_0x32a83e(0x171),null,{'error':_0x1c2852});}return[...this[_0x32a83e(0x168)]];}async[_0x130a10(0x181)](){const _0x3267e4=_0x130a10,_0x4c514c=await this[_0x3267e4(0x16d)]();return this[_0x3267e4(0x170)](_0x4c514c,this[_0x3267e4(0x17e)]);}async[_0x130a10(0x15f)](_0xf96695){const _0x4278b7=_0x130a10,_0x9420fe=await this[_0x4278b7(0x16d)]();if(!_0x9420fe[_0x4278b7(0x162)])return null;if(_0xf96695){const _0x43bfa1=this[_0x4278b7(0x16b)](_0x9420fe,_0xf96695);if(_0x43bfa1)return _0x43bfa1;_0x24e0ae(_0x4278b7(0x165),{'modelId':_0xf96695,'fallBackModelId':this[_0x4278b7(0x16f)]});}return this[_0x4278b7(0x187)]();}async[_0x130a10(0x187)](){const _0x1306c3=_0x130a10,_0xb01536=await this[_0x1306c3(0x181)]();if(!_0xb01536[_0x1306c3(0x162)])return null;if(this[_0x1306c3(0x16f)]){const _0x319c88=this[_0x1306c3(0x16b)](_0xb01536,this[_0x1306c3(0x16f)]);if(_0x319c88)return _0x319c88;_0x24e0ae(_0x1306c3(0x161),{'defaultModelId':this[_0x1306c3(0x16f)],'fallBackModelId':_0xb01536[0x0]['id']});}return _0xb01536[0x0];}async[_0x130a10(0x166)](_0x2099a7){const _0x2bd1aa=_0x130a10;return(await this[_0x2bd1aa(0x181)]())[_0x2bd1aa(0x175)](_0x33a0c5=>_0x33a0c5[_0x2bd1aa(0x183)]===_0x2099a7[_0x2bd1aa(0x183)]&&_0x33a0c5[_0x2bd1aa(0x176)]===_0x2099a7[_0x2bd1aa(0x176)]);}[_0x130a10(0x170)](_0x473d8e,_0x9966d8){const _0x5e4f57=_0x130a10;let _0x23f684;if(_0x9966d8){_0x23f684=[];const _0x423702=_0x5e4f57(0x16c)==typeof _0x9966d8?[_0x9966d8[_0x5e4f57(0x185)]()]:_0x9966d8[_0x5e4f57(0x169)](_0x26f0d6=>_0x26f0d6[_0x5e4f57(0x185)]());for(const _0x40028b of _0x423702)for(const _0x26596b of _0x473d8e)(_0x26596b['id'][_0x5e4f57(0x185)]()===_0x40028b||_0x26596b[_0x5e4f57(0x183)][_0x5e4f57(0x185)]()===_0x40028b||Me(_0x26596b)&&_0x5e4f57(0x178)===_0x40028b||_0x26596b[_0x5e4f57(0x176)][_0x5e4f57(0x185)]()===_0x40028b||_0x26596b['id'][_0x5e4f57(0x185)]()[_0x5e4f57(0x182)](_0x40028b))&&_0x23f684[_0x5e4f57(0x164)](_0x26596b);}else _0x23f684=_0x473d8e;return _0x23f684;}[_0x130a10(0x16b)](_0x278344,_0x10b7a7){const _0x9a56e5=_0x130a10;return _0x278344[_0x9a56e5(0x188)](_0x15474d=>Me(_0x15474d)&&_0x9a56e5(0x178)===_0x10b7a7?_0x15474d:_0x15474d['id']===_0x10b7a7)||null;}static[_0x130a10(0x160)](_0x45dce7,_0xeb489d){const _0x5041e8=_0x130a10;return _0xeb489d[_0x5041e8(0x169)](_0x14c1be=>{const _0x47f448=_0x5041e8;if(Me(_0x14c1be))_0x14c1be[_0x47f448(0x183)]=_0x53f45e(_0x45dce7,_0x47f448(0x189)),_0x14c1be[_0x47f448(0x179)]=_0x53f45e(_0x45dce7,_0x47f448(0x17d));else _0x53f45e(_0x45dce7,_0x47f448(0x172)+_0x14c1be['id'][_0x47f448(0x180)]())[_0x47f448(0x182)](_0x47f448(0x172))||(_0x14c1be[_0x47f448(0x179)]=_0x53f45e(_0x45dce7,_0x47f448(0x172)+_0x14c1be['id'][_0x47f448(0x180)]()));return _0x14c1be;});}}function Me(_0x49b4dd){const _0x288edb=_0x130a10;return _0x49b4dd['id'][_0x288edb(0x182)](_0x288edb(0x167));}function _0x142b(){const _0x3460da=['getModel','getLocalized','ai-chat-default-model-id-unrecognized','length','3724520hnjLeD','push','ai-chat-model-id-unrecognized','isAvailable','agent','_modelList','map','28SjTYRi','_getModelById','string','getAll','30DfKrEe','_defaultModelId','_filterModels','ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_','items','27966alcbYS','some','provider','171540vhbChJ','auto','description','getModels','1134555DCEkua','2778951RBcaQn','AI_MODEL_DESCRIPTION_AUTO','_availableModels','7762374FQSqAw','toUpperCase','getAvailableModels','startsWith','name','148604ZLnvSU','toLocaleLowerCase','list','getDefault','find','AI_MODEL_NAME_AUTO','_connector'];_0x142b=function(){return _0x3460da;};return _0x142b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x526870=_0x14e2;(function(_0x43c11f,_0x40b431){const _0xff0fd1=_0x14e2,_0x4740c6=_0x43c11f();while(!![]){try{const _0x1e94a9=parseInt(_0xff0fd1(0x100))/0x1*(-parseInt(_0xff0fd1(0xd5))/0x2)+-parseInt(_0xff0fd1(0xc1))/0x3+parseInt(_0xff0fd1(0xdc))/0x4*(parseInt(_0xff0fd1(0xe2))/0x5)+parseInt(_0xff0fd1(0xf7))/0x6*(-parseInt(_0xff0fd1(0xb4))/0x7)+-parseInt(_0xff0fd1(0x102))/0x8*(parseInt(_0xff0fd1(0xd3))/0x9)+-parseInt(_0xff0fd1(0xf8))/0xa*(-parseInt(_0xff0fd1(0xaf))/0xb)+parseInt(_0xff0fd1(0xc4))/0xc;if(_0x1e94a9===_0x40b431)break;else _0x4740c6['push'](_0x4740c6['shift']());}catch(_0x21f714){_0x4740c6['push'](_0x4740c6['shift']());}}}(_0x13bb,0xd9d18));import{CKEditorError as _0x4700f7,ObservableMixin as _0x40732b,uid as _0x4354d2}from'ckeditor5/src/utils.js';import{Element as _0x233040,findAll as _0x2bfd78,getAttribute as _0x16491e,getParents as _0x191d4b,Document as _0x53ffc7,parse as _0x434920,Text as _0x39c950}from'../utils/htmlparser.js';import{AIResponseParser as _0x552f8b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2a0dd3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x35dde6}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4c0704}from'../utils/common-translations.js';function _0x14e2(_0x55dddf,_0x2086e7){const _0x13bbf5=_0x13bb();return _0x14e2=function(_0x14e23c,_0xe1c7aa){_0x14e23c=_0x14e23c-0xad;let _0x18345c=_0x13bbf5[_0x14e23c];return _0x18345c;},_0x14e2(_0x55dddf,_0x2086e7);}import{cloneDeep as _0x1ca221}from'es-toolkit';function _0x13bb(){const _0x1126aa=['indexOf','modification-delta','forEach','2647083iEJoyJ','values','parsedContent','35348916qNqtBU','source','parseAndNormalizeHTML','previousSibling','done','destroy','_getDifferentChangeGroups','nextSibling','_getCachedContentParts','appendContent','cloneNode','data-id','pending','ai-get-editor-from-context-no-editor','convertMarkdownToHTML','27IPuugo','web-search','8986MGVLaz','updateChangeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','onContentChange','changes','3223084KYXeHU','length','areActionsDisabled','replyContentUpdated','withDiff','unshift','5MSCXkh','documentContextContent','find','newNodeIds','interactionId','merge','includes','conversation-title','data-unstable','map','cachedSuggestionContentParts','push','replyChangeGroupStateUpdated','removedNodeIds','node','fire','aiResponseApplier','every','parsedMergedContent','index','change:content','162ySVjLU','430ZxPwSa','isDone','context','setChangeGroupState','sources','filter','withoutDiff','set','167zezUEz','state','574488vJNIaE','type','text-delta','locale','splice','86482pCEdZR','span','new','stopListening','changeGroups','349811cpIIVx','reasoning','modified','content','removed','ai-reply-get-content-parts-group-not-found','AI_SUGGESTION_CONTENT_PART_REMOVED','getContentParts','editor','color:\x20#808080;\x20font-style:\x20italic'];_0x13bb=function(){return _0x1126aa;};return _0x13bb();}export const AI_REPLY_TYPES=[_0x526870(0xbf),_0x526870(0x104),_0x526870(0xd4),_0x526870(0xb5)];export const AI_REPLY_TYPES_IGNORED=[_0x526870(0xe9)];export const AI_REPLY_TITLE_TYPE=_0x526870(0xe9);export class AIReply extends _0x40732b(){['id'];[_0x526870(0xe6)];[_0x526870(0x103)];[_0x526870(0xfc)]=[];[_0x526870(0xc3)]=new _0x53ffc7([]);[_0x526870(0xf4)]=new _0x53ffc7([]);[_0x526870(0xb3)]=[];[_0x526870(0xde)]=!0x1;[_0x526870(0xe3)];[_0x526870(0xd8)];[_0x526870(0xf2)];[_0x526870(0xbc)];[_0x526870(0xec)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x93440e,content:_0x816a14='',isDone:_0x38d721=!0x1,interactionId:_0x18d630,areActionsDisabled:_0x1047db,documentContextContent:_0x3f4d37,editor:_0x4cafb3,id:_0x5d696b}){const _0x3d6ec4=_0x526870;super(),this['id']=_0x5d696b||_0x4354d2(),this[_0x3d6ec4(0xe6)]=_0x18d630,this[_0x3d6ec4(0x103)]=_0x93440e,this[_0x3d6ec4(0xde)]=!!_0x1047db,this[_0x3d6ec4(0xbc)]=_0x4cafb3,this[_0x3d6ec4(0xd8)]=new _0x552f8b(),this[_0x3d6ec4(0xf2)]=new _0x2a0dd3(),this[_0x3d6ec4(0xe3)]=_0x434920(_0x3f4d37||''),this[_0x3d6ec4(0xff)](_0x3d6ec4(0xf9),_0x38d721),this['on'](_0x3d6ec4(0xf6),()=>{const _0x4165a9=_0x3d6ec4;this[_0x4165a9(0xda)]();}),this[_0x3d6ec4(0xff)](_0x3d6ec4(0xb7),_0x816a14);}[_0x526870(0xcd)](_0x19c224){const _0x50d921=_0x526870;this[_0x50d921(0xff)](_0x50d921(0xb7),this[_0x50d921(0xb7)]+_0x19c224);}[_0x526870(0xc8)](){const _0x57afc1=_0x526870;this[_0x57afc1(0xf9)]||(this[_0x57afc1(0xff)](_0x57afc1(0xf9),!0x0),this[_0x57afc1(0xda)]());}[_0x526870(0xc9)](){const _0x5f458b=_0x526870;this[_0x5f458b(0xb2)]();}[_0x526870(0xfb)](_0x59748c,_0xd75535){const _0x3c363e=_0x526870;this[_0x3c363e(0xb3)][_0x59748c][_0x3c363e(0x101)]=_0xd75535,this[_0x3c363e(0xf1)](_0x3c363e(0xee),{'reply':this,'index':_0x59748c,'state':_0xd75535});}[_0x526870(0xbb)]({showDiff:_0x17bc83,groupIndex:_0x361cd1}){const _0x4e84d4=_0x526870;if(!this[_0x4e84d4(0xbc)])throw new _0x4700f7(_0x4e84d4(0xd1),null,{'aiReply':this});const _0x344166=this[_0x4e84d4(0xcc)](_0x17bc83,_0x361cd1);if(_0x344166)return _0x344166;let _0x317e72=[];if(void 0x0===_0x361cd1)_0x317e72=this[_0x4e84d4(0xb3)];else{const _0x297dd1=this[_0x4e84d4(0xb3)][_0x4e84d4(0xe4)](({index:_0x12cb02})=>_0x12cb02===_0x361cd1);if(!_0x297dd1)throw new _0x4700f7(_0x4e84d4(0xb9),null,{'aiReply':this,'groupIndex':_0x361cd1});_0x317e72=[_0x297dd1];}const _0x9c28a8=_0x35dde6({'editor':this[_0x4e84d4(0xbc)],'showDiff':_0x17bc83,'changeGroups':_0x317e72,'documentContextContent':this[_0x4e84d4(0xe3)]});return this[_0x4e84d4(0xd9)](_0x17bc83,_0x9c28a8),_0x9c28a8;}[_0x526870(0xcc)](_0x15df68,_0x901fdb){const _0x760cc8=_0x526870,_0x5a0261=_0x15df68?_0x760cc8(0xe0):_0x760cc8(0xfe);if(!this[_0x760cc8(0xec)][_0x5a0261][_0x760cc8(0xdd)])return null;const _0x1d8a4e=this[_0x760cc8(0xec)][_0x5a0261];if(void 0x0===_0x901fdb)return _0x1ca221(_0x1d8a4e);{const _0x85b8e7=_0x1d8a4e[_0x760cc8(0xe4)](({index:_0x47150e})=>_0x47150e===_0x901fdb);if(_0x85b8e7)return[_0x1ca221(_0x85b8e7)];}return null;}[_0x526870(0xd9)](_0x454cb7,_0xff7b7c){const _0x1eb145=_0x526870,_0x3f520e=_0x454cb7?_0x1eb145(0xe0):_0x1eb145(0xfe);_0xff7b7c[_0x1eb145(0xc0)](_0x59d4d0=>{const _0x171be1=_0x1eb145,_0xd4d731=this[_0x171be1(0xec)][_0x3f520e],_0x5e8d72=_0xd4d731[_0x171be1(0xe4)](({index:_0x2e7214})=>_0x2e7214===_0x59d4d0[_0x171be1(0xf5)]);if(_0x5e8d72){const _0x194ad6=_0xd4d731[_0x171be1(0xbe)](_0x5e8d72);_0xd4d731[_0x171be1(0xae)](_0x194ad6,0x1,_0x59d4d0);}else _0xd4d731[_0x171be1(0xed)](_0x59d4d0);});}[_0x526870(0xda)](){const _0x4ad6ce=_0x526870;if(_0x4ad6ce(0xbf)===this[_0x4ad6ce(0x103)]){this[_0x4ad6ce(0xc3)]=this[_0x4ad6ce(0xd8)][_0x4ad6ce(0xc6)](this[_0x4ad6ce(0xb7)]);const _0x482ba=this[_0x4ad6ce(0xb3)];this[_0x4ad6ce(0xd6)]();const _0x195af2=this[_0x4ad6ce(0xca)](_0x482ba,this[_0x4ad6ce(0xb3)]);(_0x195af2[_0x4ad6ce(0xdd)]||this[_0x4ad6ce(0xf9)])&&(this[_0x4ad6ce(0xf1)](_0x4ad6ce(0xdf),this,_0x195af2),this[_0x4ad6ce(0xec)][_0x4ad6ce(0xe0)][_0x4ad6ce(0xdd)]=this[_0x4ad6ce(0xec)][_0x4ad6ce(0xfe)][_0x4ad6ce(0xdd)]=0x0);}else this[_0x4ad6ce(0xc3)]=this[_0x4ad6ce(0xd8)][_0x4ad6ce(0xd2)](this[_0x4ad6ce(0xb7)]),this[_0x4ad6ce(0xf1)](_0x4ad6ce(0xdf),this);}[_0x526870(0xca)](_0x3e5b78,_0x43cd25){const _0x59919c=_0x526870,_0x47656f=[];for(const _0x1b0037 of _0x43cd25){const _0x474681=_0x3e5b78[_0x1b0037[_0x59919c(0xf5)]];_0x474681?_0x474681[_0x59919c(0xdb)][_0x59919c(0xdd)]!==_0x1b0037[_0x59919c(0xdb)][_0x59919c(0xdd)]?_0x47656f[_0x59919c(0xed)](_0x1b0037):_0x474681[_0x59919c(0xdb)][_0x59919c(0xc0)]((_0x442152,_0x270bd3)=>{const _0x4cc35a=_0x59919c,_0x1540c2=_0x1b0037[_0x4cc35a(0xdb)][_0x270bd3];_0x442152['id']!==_0x1540c2['id']&&_0x47656f[_0x4cc35a(0xed)](_0x1b0037);}):_0x47656f[_0x59919c(0xed)](_0x1b0037);}return _0x47656f;}[_0x526870(0xd6)](){const _0xfbb1fc=_0x526870,_0x38908e=new _0x233040('p',{},[new _0x233040(_0xfbb1fc(0xb0),{'style':_0xfbb1fc(0xbd)},[new _0x39c950(_0x4c0704(this[_0xfbb1fc(0xbc)][_0xfbb1fc(0xad)],_0xfbb1fc(0xba)))])]),_0x3b425b=this[_0xfbb1fc(0xf2)][_0xfbb1fc(0xe7)](this[_0xfbb1fc(0xc3)],this[_0xfbb1fc(0xe3)][_0xfbb1fc(0xce)](!0x0),{'markUnstableElements':!this[_0xfbb1fc(0xf9)],'replaceRemovedWith':_0x38908e,'cutAfterLastChange':!this[_0xfbb1fc(0xf9)]});if(!_0x3b425b[_0xfbb1fc(0xd7)][_0xfbb1fc(0xdd)]&&!this[_0xfbb1fc(0xf9)])return;this[_0xfbb1fc(0xf4)]=_0x3b425b[_0xfbb1fc(0xc3)];let _0x44e865=[];if(_0x2bfd78(_0x580533=>{const _0x30789e=_0xfbb1fc,_0x1de470=_0x16491e(_0x580533,_0x30789e(0xcf));if(!_0x1de470||!_0x23b671(_0x1de470))return!0x1;const _0x1b7ac8=[_0x580533,..._0x191d4b(_0x580533)]['at'](-0x2);if(_0x580533!=_0x1b7ac8){const _0x411a44=_0x16491e(_0x1b7ac8,_0x30789e(0xcf));_0x23b671(_0x411a44)||(_0x44e865[_0x30789e(0xed)]({'node':_0x1b7ac8,'id':_0x411a44,'type':_0x30789e(0xb6)}),_0x3b425b[_0x30789e(0xd7)][_0x30789e(0xed)](_0x411a44));}else _0x3b425b[_0x30789e(0xd7)][_0x30789e(0xe8)](_0x1de470)?_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb6),'id':_0x1de470}):_0x3b425b[_0x30789e(0xe5)][_0x30789e(0xe8)](_0x1de470)?_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb1),'id':_0x1de470,'anchorId':_0x16491e(_0x580533[_0x30789e(0xc7)],_0x30789e(0xcf))}):_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb8),'id':_0x1de470});return!0x0;},this[_0xfbb1fc(0xf4)]),_0x44e865=_0x44e865[_0xfbb1fc(0xfd)](({node:_0x15dd00})=>[..._0x191d4b(_0x15dd00),_0x15dd00][_0xfbb1fc(0xf3)](_0x1842d2=>!_0x16491e(_0x1842d2,_0xfbb1fc(0xea)))),0x0==_0x44e865[_0xfbb1fc(0xdd)])return;const _0x241a6b=[[_0x44e865[0x0]]];for(let _0x5ce3f3=0x1;_0x5ce3f3<_0x44e865[_0xfbb1fc(0xdd)];_0x5ce3f3++){const _0x3535f6=_0x241a6b[_0x241a6b[_0xfbb1fc(0xdd)]-0x1],_0x1b263e=_0x3535f6[_0x3535f6[_0xfbb1fc(0xdd)]-0x1];_0x44e865[_0x5ce3f3][_0xfbb1fc(0xf0)][_0xfbb1fc(0xc7)]==_0x1b263e[_0xfbb1fc(0xf0)]&&_0xfbb1fc(0xb6)!=_0x44e865[_0x5ce3f3][_0xfbb1fc(0x103)]&&_0xfbb1fc(0xb6)!=_0x1b263e[_0xfbb1fc(0x103)]?_0x3535f6[_0xfbb1fc(0xed)](_0x44e865[_0x5ce3f3]):_0x241a6b[_0xfbb1fc(0xed)]([_0x44e865[_0x5ce3f3]]);}for(const _0x6e17b6 of _0x241a6b){const _0x1cb0ad=_0x6e17b6[0x0],_0x4268f4=_0x6e17b6[_0x6e17b6[_0xfbb1fc(0xdd)]-0x1],_0x194cd1=_0x32ef12(_0x1cb0ad[_0xfbb1fc(0xf0)][_0xfbb1fc(0xc7)]);_0x194cd1&&_0x6e17b6[_0xfbb1fc(0xe1)](_0x194cd1);const _0x19933b=_0x32ef12(_0x4268f4[_0xfbb1fc(0xf0)][_0xfbb1fc(0xcb)]);_0x19933b&&_0x6e17b6[_0xfbb1fc(0xed)](_0x19933b);}function _0x23b671(_0x5b8f60){const _0x40ecac=_0xfbb1fc;return _0x3b425b[_0x40ecac(0xd7)][_0x40ecac(0xe8)](_0x5b8f60)||_0x3b425b[_0x40ecac(0xe5)][_0x40ecac(0xe8)](_0x5b8f60)||_0x3b425b[_0x40ecac(0xef)][_0x40ecac(0xe8)](_0x5b8f60);}function _0x32ef12(_0x25205a){const _0x2fa8e4=_0xfbb1fc;if(_0x25205a&&_0x16491e(_0x25205a,_0x2fa8e4(0xcf))&&!_0x16491e(_0x25205a,_0x2fa8e4(0xea))){const _0x39b742=_0x16491e(_0x25205a,_0x2fa8e4(0xcf));if(!_0x23b671(_0x39b742))return{'node':_0x25205a,'type':_0x2fa8e4(0xfa),'id':_0x39b742};}return null;}this[_0xfbb1fc(0xb3)]=_0x241a6b[_0xfbb1fc(0xeb)]((_0x5a663f,_0x2a5b97)=>({'changes':_0x5a663f,'state':_0xfbb1fc(0xd0),'index':_0x2a5b97}));}}export function isValidReplyType(_0x364ca8){const _0x11d14d=_0x526870;return Object[_0x11d14d(0xc2)](AI_REPLY_TYPES)[_0x11d14d(0xe8)](_0x364ca8);}export function isIgnoredReplyType(_0xc320e4){const _0x5580b1=_0x526870;return AI_REPLY_TYPES_IGNORED[_0x5580b1(0xe8)](_0xc320e4);}export function isReplyTitleType(_0x3c753c){return _0x3c753c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2e3433){const _0x141fa2=_0x526870;return _0x141fa2(0xc5)===_0x2e3433;}
|
|
23
|
+
const _0x33a4ed=_0x5460;(function(_0x3fc794,_0x319154){const _0x1a124e=_0x5460,_0x1d738a=_0x3fc794();while(!![]){try{const _0x4cff97=-parseInt(_0x1a124e(0x18e))/0x1+-parseInt(_0x1a124e(0x14b))/0x2+parseInt(_0x1a124e(0x168))/0x3+-parseInt(_0x1a124e(0x150))/0x4*(parseInt(_0x1a124e(0x171))/0x5)+-parseInt(_0x1a124e(0x177))/0x6+-parseInt(_0x1a124e(0x158))/0x7+parseInt(_0x1a124e(0x190))/0x8;if(_0x4cff97===_0x319154)break;else _0x1d738a['push'](_0x1d738a['shift']());}catch(_0x53a4c8){_0x1d738a['push'](_0x1d738a['shift']());}}}(_0x395e,0xb5a23));import{CKEditorError as _0x303af5,ObservableMixin as _0x2ed101,uid as _0x3145e4}from'ckeditor5/src/utils.js';import{Element as _0x1c2699,findAll as _0x2d45a9,getAttribute as _0x457c05,getParents as _0x5de814,Document as _0x3f26ab,parse as _0x1156da,Text as _0xc0c28f}from'../utils/htmlparser.js';import{AIResponseParser as _0x53ff0c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4d5d76}from'../pipeline/airesponseapplier.js';function _0x5460(_0x52598f,_0x414302){const _0x395e46=_0x395e();return _0x5460=function(_0x546020,_0x54efa9){_0x546020=_0x546020-0x14a;let _0x42db35=_0x395e46[_0x546020];return _0x42db35;},_0x5460(_0x52598f,_0x414302);}function _0x395e(){const _0x3d94f5=['withoutDiff','interactionId','locale','sources','ai-get-editor-from-context-no-editor','934160uBBWLC','splice','aiResponseParser','cachedSuggestionContentParts','length','540656dWJapP','web-search','areActionsDisabled','fire','unshift','span','content','state','3065958wKYqnv','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','destroy','source','aiResponseApplier','map','onContentChange','convertMarkdownToHTML','data-id','conversation-title','_setCachedContentParts','includes','filter','nextSibling','stopListening','4065300VoguiA','data-unstable','modification-delta','set','previousSibling','changeGroups','replyChangeGroupStateUpdated','setChangeGroupState','isDone','30zsUUkW','getContentParts','withDiff','removed','parsedContent','editor','1395072lklNVf','parsedMergedContent','newNodeIds','changes','type','context','values','change:content','documentContextContent','forEach','text-delta','updateChangeGroups','node','color:\x20#808080;\x20font-style:\x20italic','index','modified','appendContent','done','reasoning','find','_getDifferentChangeGroups','ai-reply-get-content-parts-group-not-found','new','60199qsLuRd','merge','11181120ucPWUe','indexOf','push','every','modifiedNodeIds','removedNodeIds','replyContentUpdated','_getCachedContentParts','cloneNode','parseAndNormalizeHTML'];_0x395e=function(){return _0x3d94f5;};return _0x395e();}import{getSuggestionPartsFromReply as _0x1b7561}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5c8b99}from'../utils/common-translations.js';import{cloneDeep as _0xe2daea}from'es-toolkit';export const AI_REPLY_TYPES=[_0x33a4ed(0x16a),_0x33a4ed(0x181),_0x33a4ed(0x151),_0x33a4ed(0x189)];export const AI_REPLY_TYPES_IGNORED=[_0x33a4ed(0x162)];export const AI_REPLY_TITLE_TYPE=_0x33a4ed(0x162);export class AIReply extends _0x2ed101(){['id'];[_0x33a4ed(0x19b)];[_0x33a4ed(0x17b)];[_0x33a4ed(0x19d)]=[];[_0x33a4ed(0x175)]=new _0x3f26ab([]);[_0x33a4ed(0x178)]=new _0x3f26ab([]);[_0x33a4ed(0x16d)]=[];[_0x33a4ed(0x152)]=!0x1;[_0x33a4ed(0x17f)];[_0x33a4ed(0x14d)];[_0x33a4ed(0x15d)];[_0x33a4ed(0x176)];[_0x33a4ed(0x14e)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x559c53,content:_0x7e12ea='',isDone:_0x3e4609=!0x1,interactionId:_0x31f348,areActionsDisabled:_0xbb5cef,documentContextContent:_0x31ad89,editor:_0x562cf7,id:_0xe3ec1c}){const _0x489343=_0x33a4ed;super(),this['id']=_0xe3ec1c||_0x3145e4(),this[_0x489343(0x19b)]=_0x31f348,this[_0x489343(0x17b)]=_0x559c53,this[_0x489343(0x152)]=!!_0xbb5cef,this[_0x489343(0x176)]=_0x562cf7,this[_0x489343(0x14d)]=new _0x53ff0c(),this[_0x489343(0x15d)]=new _0x4d5d76(),this[_0x489343(0x17f)]=_0x1156da(_0x31ad89||''),this[_0x489343(0x16b)](_0x489343(0x170),_0x3e4609),this['on'](_0x489343(0x17e),()=>{const _0x4ead70=_0x489343;this[_0x4ead70(0x15f)]();}),this[_0x489343(0x16b)](_0x489343(0x156),_0x7e12ea);}[_0x33a4ed(0x187)](_0x5da159){const _0x538036=_0x33a4ed;this[_0x538036(0x16b)](_0x538036(0x156),this[_0x538036(0x156)]+_0x5da159);}[_0x33a4ed(0x188)](){const _0x40dcf9=_0x33a4ed;this[_0x40dcf9(0x170)]||(this[_0x40dcf9(0x16b)](_0x40dcf9(0x170),!0x0),this[_0x40dcf9(0x15f)]());}[_0x33a4ed(0x15b)](){const _0x49f0d0=_0x33a4ed;this[_0x49f0d0(0x167)]();}[_0x33a4ed(0x16f)](_0x51044d,_0x434703){const _0x4e309e=_0x33a4ed;this[_0x4e309e(0x16d)][_0x51044d][_0x4e309e(0x157)]=_0x434703,this[_0x4e309e(0x153)](_0x4e309e(0x16e),{'reply':this,'index':_0x51044d,'state':_0x434703});}[_0x33a4ed(0x172)]({showDiff:_0x2a436e,groupIndex:_0x4191ab}){const _0x149803=_0x33a4ed;if(!this[_0x149803(0x176)])throw new _0x303af5(_0x149803(0x14a),null,{'aiReply':this});const _0x2a93ef=this[_0x149803(0x197)](_0x2a436e,_0x4191ab);if(_0x2a93ef)return _0x2a93ef;let _0x230a31=[];if(void 0x0===_0x4191ab)_0x230a31=this[_0x149803(0x16d)];else{const _0x451eaf=this[_0x149803(0x16d)][_0x149803(0x18a)](({index:_0x31b890})=>_0x31b890===_0x4191ab);if(!_0x451eaf)throw new _0x303af5(_0x149803(0x18c),null,{'aiReply':this,'groupIndex':_0x4191ab});_0x230a31=[_0x451eaf];}const _0x1da3ac=_0x1b7561({'editor':this[_0x149803(0x176)],'showDiff':_0x2a436e,'changeGroups':_0x230a31,'documentContextContent':this[_0x149803(0x17f)]});return this[_0x149803(0x163)](_0x2a436e,_0x1da3ac),_0x1da3ac;}[_0x33a4ed(0x197)](_0x53f702,_0x2debbf){const _0x47d6e7=_0x33a4ed,_0x4df1b5=_0x53f702?_0x47d6e7(0x173):_0x47d6e7(0x19a);if(!this[_0x47d6e7(0x14e)][_0x4df1b5][_0x47d6e7(0x14f)])return null;const _0x25e3ba=this[_0x47d6e7(0x14e)][_0x4df1b5];if(void 0x0===_0x2debbf)return _0xe2daea(_0x25e3ba);{const _0x30ed5b=_0x25e3ba[_0x47d6e7(0x18a)](({index:_0x1ef7c5})=>_0x1ef7c5===_0x2debbf);if(_0x30ed5b)return[_0xe2daea(_0x30ed5b)];}return null;}[_0x33a4ed(0x163)](_0x5d7e10,_0x36712b){const _0x2a6201=_0x33a4ed,_0x4d68f7=_0x5d7e10?_0x2a6201(0x173):_0x2a6201(0x19a);_0x36712b[_0x2a6201(0x180)](_0x38b96a=>{const _0x136b86=_0x2a6201,_0x557066=this[_0x136b86(0x14e)][_0x4d68f7],_0xe95801=_0x557066[_0x136b86(0x18a)](({index:_0x510ecc})=>_0x510ecc===_0x38b96a[_0x136b86(0x185)]);if(_0xe95801){const _0x54b40d=_0x557066[_0x136b86(0x191)](_0xe95801);_0x557066[_0x136b86(0x14c)](_0x54b40d,0x1,_0x38b96a);}else _0x557066[_0x136b86(0x192)](_0x38b96a);});}[_0x33a4ed(0x15f)](){const _0x2dc81b=_0x33a4ed;if(_0x2dc81b(0x16a)===this[_0x2dc81b(0x17b)]){this[_0x2dc81b(0x175)]=this[_0x2dc81b(0x14d)][_0x2dc81b(0x199)](this[_0x2dc81b(0x156)]);const _0x5ae8c7=this[_0x2dc81b(0x16d)];this[_0x2dc81b(0x182)]();const _0x4866fb=this[_0x2dc81b(0x18b)](_0x5ae8c7,this[_0x2dc81b(0x16d)]);(_0x4866fb[_0x2dc81b(0x14f)]||this[_0x2dc81b(0x170)])&&(this[_0x2dc81b(0x153)](_0x2dc81b(0x196),this,_0x4866fb),this[_0x2dc81b(0x14e)][_0x2dc81b(0x173)][_0x2dc81b(0x14f)]=this[_0x2dc81b(0x14e)][_0x2dc81b(0x19a)][_0x2dc81b(0x14f)]=0x0);}else this[_0x2dc81b(0x175)]=this[_0x2dc81b(0x14d)][_0x2dc81b(0x160)](this[_0x2dc81b(0x156)]),this[_0x2dc81b(0x153)](_0x2dc81b(0x196),this);}[_0x33a4ed(0x18b)](_0x4f50aa,_0x241282){const _0xe20807=_0x33a4ed,_0x507c46=[];for(const _0x4ba8e4 of _0x241282){const _0xbc5bf0=_0x4f50aa[_0x4ba8e4[_0xe20807(0x185)]];_0xbc5bf0?_0xbc5bf0[_0xe20807(0x17a)][_0xe20807(0x14f)]!==_0x4ba8e4[_0xe20807(0x17a)][_0xe20807(0x14f)]?_0x507c46[_0xe20807(0x192)](_0x4ba8e4):_0xbc5bf0[_0xe20807(0x17a)][_0xe20807(0x180)]((_0x4f9ca6,_0x3f4a16)=>{const _0x14b737=_0xe20807,_0x3ecc42=_0x4ba8e4[_0x14b737(0x17a)][_0x3f4a16];_0x4f9ca6['id']!==_0x3ecc42['id']&&_0x507c46[_0x14b737(0x192)](_0x4ba8e4);}):_0x507c46[_0xe20807(0x192)](_0x4ba8e4);}return _0x507c46;}[_0x33a4ed(0x182)](){const _0x2a8512=_0x33a4ed,_0x421804=new _0x1c2699('p',{},[new _0x1c2699(_0x2a8512(0x155),{'style':_0x2a8512(0x184)},[new _0xc0c28f(_0x5c8b99(this[_0x2a8512(0x176)][_0x2a8512(0x19c)],_0x2a8512(0x15a)))])]),_0x277de4=this[_0x2a8512(0x15d)][_0x2a8512(0x18f)](this[_0x2a8512(0x175)],this[_0x2a8512(0x17f)][_0x2a8512(0x198)](!0x0),{'markUnstableElements':!this[_0x2a8512(0x170)],'replaceRemovedWith':_0x421804,'cutAfterLastChange':!this[_0x2a8512(0x170)]});if(!_0x277de4[_0x2a8512(0x194)][_0x2a8512(0x14f)]&&!this[_0x2a8512(0x170)])return;this[_0x2a8512(0x178)]=_0x277de4[_0x2a8512(0x175)];let _0x206039=[];if(_0x2d45a9(_0x111e9f=>{const _0x3b1dee=_0x2a8512,_0x2ddcca=_0x457c05(_0x111e9f,_0x3b1dee(0x161));if(!_0x2ddcca||!_0x312e47(_0x2ddcca))return!0x1;const _0x35c15e=[_0x111e9f,..._0x5de814(_0x111e9f)]['at'](-0x2);if(_0x111e9f!=_0x35c15e){const _0x2072ce=_0x457c05(_0x35c15e,_0x3b1dee(0x161));_0x312e47(_0x2072ce)||(_0x206039[_0x3b1dee(0x192)]({'node':_0x35c15e,'id':_0x2072ce,'type':_0x3b1dee(0x186)}),_0x277de4[_0x3b1dee(0x194)][_0x3b1dee(0x192)](_0x2072ce));}else _0x277de4[_0x3b1dee(0x194)][_0x3b1dee(0x164)](_0x2ddcca)?_0x206039[_0x3b1dee(0x192)]({'node':_0x111e9f,'type':_0x3b1dee(0x186),'id':_0x2ddcca}):_0x277de4[_0x3b1dee(0x179)][_0x3b1dee(0x164)](_0x2ddcca)?_0x206039[_0x3b1dee(0x192)]({'node':_0x111e9f,'type':_0x3b1dee(0x18d),'id':_0x2ddcca,'anchorId':_0x457c05(_0x111e9f[_0x3b1dee(0x16c)],_0x3b1dee(0x161))}):_0x206039[_0x3b1dee(0x192)]({'node':_0x111e9f,'type':_0x3b1dee(0x174),'id':_0x2ddcca});return!0x0;},this[_0x2a8512(0x178)]),_0x206039=_0x206039[_0x2a8512(0x165)](({node:_0x408376})=>[..._0x5de814(_0x408376),_0x408376][_0x2a8512(0x193)](_0x441ec3=>!_0x457c05(_0x441ec3,_0x2a8512(0x169)))),0x0==_0x206039[_0x2a8512(0x14f)])return;const _0x322d13=[[_0x206039[0x0]]];for(let _0xfa532e=0x1;_0xfa532e<_0x206039[_0x2a8512(0x14f)];_0xfa532e++){const _0x4a6131=_0x322d13[_0x322d13[_0x2a8512(0x14f)]-0x1],_0x4cc925=_0x4a6131[_0x4a6131[_0x2a8512(0x14f)]-0x1];_0x206039[_0xfa532e][_0x2a8512(0x183)][_0x2a8512(0x16c)]==_0x4cc925[_0x2a8512(0x183)]&&_0x2a8512(0x186)!=_0x206039[_0xfa532e][_0x2a8512(0x17b)]&&_0x2a8512(0x186)!=_0x4cc925[_0x2a8512(0x17b)]?_0x4a6131[_0x2a8512(0x192)](_0x206039[_0xfa532e]):_0x322d13[_0x2a8512(0x192)]([_0x206039[_0xfa532e]]);}for(const _0x34d2bd of _0x322d13){const _0x192c03=_0x34d2bd[0x0],_0x10a1c=_0x34d2bd[_0x34d2bd[_0x2a8512(0x14f)]-0x1],_0x2b3757=_0x582496(_0x192c03[_0x2a8512(0x183)][_0x2a8512(0x16c)]);_0x2b3757&&_0x34d2bd[_0x2a8512(0x154)](_0x2b3757);const _0x971d06=_0x582496(_0x10a1c[_0x2a8512(0x183)][_0x2a8512(0x166)]);_0x971d06&&_0x34d2bd[_0x2a8512(0x192)](_0x971d06);}function _0x312e47(_0x284d89){const _0x325b99=_0x2a8512;return _0x277de4[_0x325b99(0x194)][_0x325b99(0x164)](_0x284d89)||_0x277de4[_0x325b99(0x179)][_0x325b99(0x164)](_0x284d89)||_0x277de4[_0x325b99(0x195)][_0x325b99(0x164)](_0x284d89);}function _0x582496(_0x4cd399){const _0x4156fe=_0x2a8512;if(_0x4cd399&&_0x457c05(_0x4cd399,_0x4156fe(0x161))&&!_0x457c05(_0x4cd399,_0x4156fe(0x169))){const _0x343c67=_0x457c05(_0x4cd399,_0x4156fe(0x161));if(!_0x312e47(_0x343c67))return{'node':_0x4cd399,'type':_0x4156fe(0x17c),'id':_0x343c67};}return null;}this[_0x2a8512(0x16d)]=_0x322d13[_0x2a8512(0x15e)]((_0x1ba9e7,_0x13e631)=>({'changes':_0x1ba9e7,'state':_0x2a8512(0x159),'index':_0x13e631}));}}export function isValidReplyType(_0x1f1d33){const _0x3cadc6=_0x33a4ed;return Object[_0x3cadc6(0x17d)](AI_REPLY_TYPES)[_0x3cadc6(0x164)](_0x1f1d33);}export function isIgnoredReplyType(_0xd0df14){const _0x25eb49=_0x33a4ed;return AI_REPLY_TYPES_IGNORED[_0x25eb49(0x164)](_0xd0df14);}export function isReplyTitleType(_0x1be8d3){return _0x1be8d3===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x5ea8b9){const _0xf4e0c=_0x33a4ed;return _0xf4e0c(0x15c)===_0x5ea8b9;}
|