@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.3
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/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/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/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/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewmodegeneralerrorview.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/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b195c=_0x3c6b;(function(_0x61094c,_0x5ebd34){const _0x4225f7=_0x3c6b,_0x4ee7aa=_0x61094c();while(!![]){try{const _0x2b53f4=-parseInt(_0x4225f7(0x18f))/0x1+-parseInt(_0x4225f7(0x149))/0x2*(-parseInt(_0x4225f7(0x11f))/0x3)+parseInt(_0x4225f7(0x119))/0x4*(-parseInt(_0x4225f7(0x146))/0x5)+-parseInt(_0x4225f7(0x192))/0x6+parseInt(_0x4225f7(0x16f))/0x7+-parseInt(_0x4225f7(0x196))/0x8+-parseInt(_0x4225f7(0x124))/0x9*(-parseInt(_0x4225f7(0x180))/0xa);if(_0x2b53f4===_0x5ebd34)break;else _0x4ee7aa['push'](_0x4ee7aa['shift']());}catch(_0x2dabb6){_0x4ee7aa['push'](_0x4ee7aa['shift']());}}}(_0x1906,0x92de4));import{CKEditorError as _0x1ce1c7,ObservableMixin as _0x53a141,uid as _0x296cbb}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5cd0b3,AIContextTextResourceType as _0x2f4824}from'../../aicore/model/aicontext.js';import{escape as _0x33b9b5}from'es-toolkit/compat';import{errorsMap as _0x51eff4}from'../../errorsmap.js';function _0x3c6b(_0xd4b231,_0x393a1c){const _0x190610=_0x1906();return _0x3c6b=function(_0x3c6ba9,_0x587ae3){_0x3c6ba9=_0x3c6ba9-0x109;let _0x545e49=_0x190610[_0x3c6ba9];return _0x545e49;},_0x3c6b(_0xd4b231,_0x393a1c);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5b195c(0x144),_0x5b195c(0x179),_0x5b195c(0x15f),_0x5b195c(0x197),_0x5b195c(0x109),_0x5b195c(0x10e),_0x5b195c(0x193),_0x5b195c(0x162),_0x5b195c(0x114)];export class AIChatContext extends _0x53a141(){[_0x5b195c(0x11d)];[_0x5b195c(0x12a)];[_0x5b195c(0x17d)];constructor({connector:_0x120831,config:_0x129f37,ownerId:_0x379154}){const _0x386429=_0x5b195c;super(),this[_0x386429(0x11d)]=_0x120831,this[_0x386429(0x12a)]=_0x129f37,this[_0x386429(0x17d)]=_0x379154;}[_0x5b195c(0x138)](){const _0x38454a=_0x5b195c;this[_0x38454a(0x154)]=new Map(),this[_0x38454a(0x12c)]=new Map(),this[_0x38454a(0x191)]=new Map(),this[_0x38454a(0x14c)]=new Map(),this[_0x38454a(0x153)]();}[_0x5b195c(0x18e)](){const _0x2255f0=_0x5b195c;return this[_0x2255f0(0x154)];}async[_0x5b195c(0x11a)](_0x56cf42){const _0xe3c3f=_0x5b195c,_0x5652a1=await this[_0xe3c3f(0x14f)](_0x56cf42);return this[_0xe3c3f(0x190)](_0x5652a1),_0xe3c3f(0x158)===_0x5652a1[_0xe3c3f(0x166)]&&this[_0xe3c3f(0x169)](),_0x5652a1;}async[_0x5b195c(0x14f)](_0xabe0cf){const _0x4b65f7=_0x5b195c;if(_0xabe0cf[_0x4b65f7(0x187)]===_0x5cd0b3[_0x4b65f7(0x13c)]){const _0x1e611b=await this[_0x4b65f7(0x11d)][_0x4b65f7(0x133)](this[_0x4b65f7(0x17d)],_0xabe0cf['id'])[_0x4b65f7(0x122)]();return{'id':_0x4b65f7(0x158),'uiId':_0x4b65f7(0x158),'label':_0x4b65f7(0x120),'type':_0xabe0cf[_0x4b65f7(0x187)],'content':_0x1e611b[_0x4b65f7(0x140)],'hidden':this[_0x4b65f7(0x12c)][_0x4b65f7(0x16d)](_0x4b65f7(0x158)),'version':_0x1e611b[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x14e)],'sessionId':_0x1e611b[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x173)]};}return{'id':_0xabe0cf['id'],'uiId':_0xabe0cf['id'],'label':_0xabe0cf[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x113)]||_0xabe0cf[_0x4b65f7(0x136)]||_0xabe0cf[_0x4b65f7(0x18b)]||_0xabe0cf['id'],'type':_0xabe0cf[_0x4b65f7(0x187)],..._0xabe0cf?.[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x186)]?{'resourceId':_0xabe0cf[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x186)]}:{}};}[_0x5b195c(0x181)](){const _0x697ef1=_0x5b195c;return new Map(this[_0x697ef1(0x12c)]);}[_0x5b195c(0x167)](_0x3e04f4){const _0x24eea5=_0x5b195c,_0x1fc56d=this[_0x24eea5(0x154)][_0x24eea5(0x15a)](_0x3e04f4);_0x1fc56d?.[_0x24eea5(0x194)]||this[_0x24eea5(0x10a)](_0x3e04f4);}[_0x5b195c(0x147)](){const _0x50f6d5=_0x5b195c;if(0x0===this[_0x50f6d5(0x154)][_0x50f6d5(0x174)])return;for(const _0xff453 of this[_0x50f6d5(0x154)][_0x50f6d5(0x123)]())this[_0x50f6d5(0x10a)](_0xff453[_0x50f6d5(0x166)]);const _0x1e84e6=this[_0x50f6d5(0x12c)][_0x50f6d5(0x15a)](_0x50f6d5(0x158))||this[_0x50f6d5(0x154)][_0x50f6d5(0x15a)](_0x50f6d5(0x158));_0x1e84e6&&this[_0x50f6d5(0x165)]({..._0x1e84e6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5b195c(0x178)](_0x5422d4){const _0x4d134e=_0x5b195c;for(const _0x4e69a4 of _0x5422d4[_0x4d134e(0x123)]())this[_0x4d134e(0x190)](_0x4e69a4);this[_0x4d134e(0x147)](),this[_0x4d134e(0x171)](_0x4d134e(0x197),{'contextItems':Array[_0x4d134e(0x111)](this[_0x4d134e(0x181)]()[_0x4d134e(0x123)]())});}[_0x5b195c(0x14b)](){const _0x5a91c2=_0x5b195c;return this[_0x5a91c2(0x154)][_0x5a91c2(0x16d)](_0x5a91c2(0x158));}[_0x5b195c(0x125)](){const _0x4342a5=_0x5b195c;return this[_0x4342a5(0x154)][_0x4342a5(0x16d)](_0x4342a5(0x117));}[_0x5b195c(0x176)](){const _0x443d35=_0x5b195c;return this[_0x443d35(0x12c)][_0x443d35(0x16d)](_0x443d35(0x158));}static[_0x5b195c(0x132)](_0x403a9e){const _0x651571=_0x5b195c;return Array[_0x651571(0x111)](_0x403a9e[_0x651571(0x123)]())[_0x651571(0x13a)](_0x6beb56=>this[_0x651571(0x10d)](_0x6beb56))[_0x651571(0x155)](_0x28586a=>null!==_0x28586a);}async[_0x5b195c(0x134)](_0x157a81,_0xcb9223,_0x159672=_0x5cd0b3[_0x5b195c(0x15b)]){const _0xf3d9bd=_0x5b195c,_0x1867d5=_0xf3d9bd(0x18d)+_0x296cbb();this[_0xf3d9bd(0x15c)](_0x1867d5);try{await Promise[_0xf3d9bd(0x126)](_0x157a81[_0xf3d9bd(0x13a)](async _0x492d8a=>{const _0x5c04e0=_0xf3d9bd,_0x3724fe=_0x5c04e0(0x172)+_0x296cbb(),_0x1ba3e=_0x33b9b5(_0x492d8a[_0x5c04e0(0x136)]);try{this[_0x5c04e0(0x165)]({'type':_0x159672,'label':_0xcb9223?.[_0x5c04e0(0x113)]||_0x1ba3e,'uiId':_0x3724fe,'resourceId':_0xcb9223?.[_0x5c04e0(0x186)]},!0x0);const _0x42aacc=this[_0x5c04e0(0x11d)][_0x5c04e0(0x10f)](this[_0x5c04e0(0x17d)],_0x492d8a,_0xcb9223);this[_0x5c04e0(0x191)][_0x5c04e0(0x189)](_0x3724fe,_0x42aacc[_0x5c04e0(0x183)]);const {id:_0x249df4}=await _0x42aacc[_0x5c04e0(0x115)]();this[_0x5c04e0(0x191)][_0x5c04e0(0x12b)](_0x3724fe),this[_0x5c04e0(0x168)]({'type':_0x159672,'id':_0x249df4,'label':_0xcb9223?.[_0x5c04e0(0x113)]||_0x1ba3e,'uiId':_0x3724fe,'resourceId':_0xcb9223?.[_0x5c04e0(0x186)]},!0x1);}catch(_0x1d2b8a){this[_0x5c04e0(0x191)][_0x5c04e0(0x12b)](_0x3724fe);if(!(_0x1d2b8a instanceof _0x1ce1c7&&_0x1d2b8a[_0x5c04e0(0x17b)][_0x5c04e0(0x110)](_0x5c04e0(0x10c)))){const _0x7b2007=_0x51eff4[_0x5c04e0(0x15a)](_0x1d2b8a[_0x5c04e0(0x128)])||_0x5c04e0(0x17c),_0xb402b9=new _0x1ce1c7(_0x7b2007,null,{'fileName':_0x1ba3e,..._0x1d2b8a});_0xb402b9[_0x5c04e0(0x127)]=_0x1d2b8a[_0x5c04e0(0x127)],this[_0x5c04e0(0x171)](_0x5c04e0(0x109),{'error':_0xb402b9});}this[_0x5c04e0(0x10a)](_0x3724fe);}}));}finally{this[_0xf3d9bd(0x17a)](_0x1867d5);}}[_0x5b195c(0x12e)](_0x2ddc83){const _0x40c9f1=_0x5b195c;if(this[_0x40c9f1(0x14b)]()||!this[_0x40c9f1(0x16c)][_0x40c9f1(0x137)][_0x40c9f1(0x135)])return;const _0x5834bb={'type':_0x5cd0b3[_0x40c9f1(0x13c)],'uiId':_0x40c9f1(0x158),'label':_0x2ddc83,'isReadOnly':this[_0x40c9f1(0x12c)][_0x40c9f1(0x16d)](_0x40c9f1(0x158)),'hidden':this[_0x40c9f1(0x12c)][_0x40c9f1(0x16d)](_0x40c9f1(0x158))};this[_0x40c9f1(0x165)](_0x5834bb);}async[_0x5b195c(0x116)](_0x154b96,_0x2ae039,_0x174523,_0x5d9429){const _0x16bf18=_0x5b195c,_0x5ea3ed=this[_0x16bf18(0x154)][_0x16bf18(0x15a)](_0x16bf18(0x158));if(_0x5ea3ed&&_0x154b96){_0x5ea3ed[_0x16bf18(0x117)]=_0x5d9429?_0x5d9429[_0x16bf18(0x13a)](_0x3c5616=>({'start':_0x3c5616[_0x16bf18(0x142)],'end':_0x3c5616[_0x16bf18(0x13d)]})):[];try{if(_0x5ea3ed[_0x16bf18(0x14e)]===_0x2ae039)return;const {id:_0x231997}=await this[_0x16bf18(0x11d)][_0x16bf18(0x14d)](this[_0x16bf18(0x17d)],_0x154b96,{'version':_0x2ae039,'sessionId':_0x174523})[_0x16bf18(0x115)]();_0x5ea3ed['id']=_0x231997,_0x5ea3ed[_0x16bf18(0x140)]=_0x154b96,_0x5ea3ed[_0x16bf18(0x14e)]=_0x2ae039,_0x5ea3ed[_0x16bf18(0x173)]=_0x174523;}catch(_0x4f54dc){const _0x10b887=new _0x1ce1c7(_0x16bf18(0x13f),null);_0x10b887[_0x16bf18(0x127)]=_0x4f54dc[_0x16bf18(0x127)],this[_0x16bf18(0x171)](_0x16bf18(0x109),{'error':_0x10b887});}}}[_0x5b195c(0x163)](_0x2ff99){const _0x228a77=_0x5b195c;this[_0x228a77(0x165)]({'type':_0x5cd0b3[_0x228a77(0x17f)],'label':_0x2ff99,'uiId':_0x228a77(0x117),'content':_0x2ff99});}[_0x5b195c(0x185)](){const _0x3b4a1b=_0x5b195c;this[_0x3b4a1b(0x10a)](_0x3b4a1b(0x117));}async[_0x5b195c(0x11b)](_0x5a967e,_0x5ce318){const _0x2662fd=_0x5b195c,_0x4a17bf=_0x2662fd(0x182)+_0x296cbb();this[_0x2662fd(0x15c)](_0x4a17bf);const _0x2ef27b=_0x2662fd(0x182)+_0x296cbb();try{this[_0x2662fd(0x165)]({'type':_0x5cd0b3[_0x2662fd(0x131)],'label':_0x5ce318?.[_0x2662fd(0x113)]||_0x5a967e,'uiId':_0x2ef27b,'resourceId':_0x5ce318?.[_0x2662fd(0x186)]},!0x0);const _0x506f96=this[_0x2662fd(0x11d)][_0x2662fd(0x16a)](this[_0x2662fd(0x17d)],_0x5a967e,_0x5ce318);this[_0x2662fd(0x191)][_0x2662fd(0x189)](_0x2ef27b,_0x506f96[_0x2662fd(0x183)]);const {id:_0x5ba3af}=await _0x506f96[_0x2662fd(0x115)]();this[_0x2662fd(0x191)][_0x2662fd(0x12b)](_0x2ef27b),this[_0x2662fd(0x168)]({'type':_0x5cd0b3[_0x2662fd(0x131)],'id':_0x5ba3af,'label':_0x5ce318?.[_0x2662fd(0x113)]||_0x5a967e,'uiId':_0x2ef27b,'resourceId':_0x5ce318?.[_0x2662fd(0x186)]},!0x1);}catch(_0x564105){this[_0x2662fd(0x191)][_0x2662fd(0x12b)](_0x2ef27b),(_0x564105[_0x2662fd(0x17b)][_0x2662fd(0x110)](_0x2662fd(0x10c))||this[_0x2662fd(0x171)](_0x2662fd(0x109),{'error':new _0x1ce1c7(_0x2662fd(0x16b),this,{'url':_0x5a967e,'originalError':_0x564105}),'url':_0x5a967e}),this[_0x2662fd(0x10a)](_0x2ef27b));}finally{this[_0x2662fd(0x17a)](_0x4a17bf);}}async[_0x5b195c(0x15e)](_0x5e9ffc,_0x5c8ce0,_0x3f248d){const _0x1eba43=_0x5b195c,_0x3e68c8=this[_0x1eba43(0x16c)][_0x1eba43(0x184)][_0x1eba43(0x188)](_0x418ee3=>_0x418ee3['id']===_0x5e9ffc);if(!_0x3e68c8)return this[_0x1eba43(0x171)](_0x1eba43(0x109),{'error':new _0x1ce1c7(_0x1eba43(0x12f),this,{'sourceId':_0x5e9ffc}),'sourceId':_0x5e9ffc}),[];try{const _0x5b9647=(await _0x3e68c8[_0x1eba43(0x161)](_0x5c8ce0))[_0x1eba43(0x13a)](_0x5aa756=>{const _0x9437a2=_0x1eba43,_0xf96148=this[_0x9437a2(0x145)](_0x5aa756['id']);return{..._0x5aa756,'isInContext':_0xf96148};});return _0x3e68c8[_0x1eba43(0x11e)]=_0x5b9647,this[_0x1eba43(0x171)](_0x1eba43(0x193),{'sourceId':_0x5e9ffc,'source':_0x3e68c8,'resources':_0x5b9647,'uid':_0x3f248d}),_0x5b9647;}catch(_0x12e0dd){return this[_0x1eba43(0x171)](_0x1eba43(0x109),{'error':new _0x1ce1c7(_0x1eba43(0x18c),this,{'sourceId':_0x5e9ffc,'originalError':_0x12e0dd}),'sourceId':_0x5e9ffc,'sourceLabel':_0x3e68c8[_0x1eba43(0x113)]}),[];}}async[_0x5b195c(0x129)](_0x4af14c,_0xaa6106){const _0x596e2a=_0x5b195c;if(this[_0x596e2a(0x145)](_0xaa6106['id']))return;let _0x4fd82a=_0xaa6106[_0x596e2a(0x11c)];if(!_0x4fd82a&&_0x4af14c[_0x596e2a(0x159)])try{_0x4fd82a=await _0x4af14c[_0x596e2a(0x159)](_0xaa6106['id']);}catch(_0x4da5e6){return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x17e),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'originalError':_0x4da5e6}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}if(_0x4fd82a)switch(_0xaa6106[_0x596e2a(0x187)]){case _0x5cd0b3[_0x596e2a(0x131)]:if(_0x596e2a(0x160)!=typeof _0x4fd82a)return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x160),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});await this[_0x596e2a(0x11b)](_0x4fd82a,{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']});break;case _0x5cd0b3[_0x596e2a(0x15b)]:if(!(_0x4fd82a instanceof File))return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x152),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});await this[_0x596e2a(0x134)]([_0x4fd82a],{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']});break;case _0x5cd0b3[_0x596e2a(0x118)]:if(_0x596e2a(0x13e)!=typeof _0x4fd82a||!(_0x596e2a(0x140)in _0x4fd82a)||!(_0x596e2a(0x187)in _0x4fd82a))return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x12d),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});_0x4fd82a=AIChatContext[_0x596e2a(0x143)](_0x4fd82a,_0xaa6106[_0x596e2a(0x113)]),await this[_0x596e2a(0x134)]([_0x4fd82a],{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']},_0x5cd0b3[_0x596e2a(0x118)]);break;default:this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x18a),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'resourceType':_0xaa6106[_0x596e2a(0x187)]}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}else this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x15d),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}static[_0x5b195c(0x143)](_0x59a2be,_0x1bbc9a){const _0x181283=_0x5b195c;switch(_0x59a2be[_0x181283(0x187)]){case _0x2f4824[_0x181283(0x175)]:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x148)});case _0x2f4824[_0x181283(0x141)]:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x130)});default:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x151)});}}static[_0x5b195c(0x10d)](_0x4dd5d4){const _0x4ee142=_0x5b195c;switch(_0x4dd5d4[_0x4ee142(0x187)]){case _0x5cd0b3[_0x4ee142(0x15b)]:return{'type':_0x5cd0b3[_0x4ee142(0x15b)],'id':_0x4dd5d4['id']};case _0x5cd0b3[_0x4ee142(0x131)]:return{'type':_0x5cd0b3[_0x4ee142(0x131)],'id':_0x4dd5d4['id']};case _0x5cd0b3[_0x4ee142(0x13c)]:return{'type':_0x5cd0b3[_0x4ee142(0x13c)],'id':_0x4dd5d4['id'],..._0x4dd5d4[_0x4ee142(0x117)]?.[_0x4ee142(0x150)]&&{'selection':_0x4dd5d4[_0x4ee142(0x117)]}};case _0x5cd0b3[_0x4ee142(0x118)]:return{'type':_0x5cd0b3[_0x4ee142(0x15b)],'id':_0x4dd5d4['id']};default:return null;}}[_0x5b195c(0x165)](_0x82f084,_0xfc87a9=!0x1){const _0x1946f7=_0x5b195c;if(this[_0x1946f7(0x154)][_0x1946f7(0x189)](_0x82f084[_0x1946f7(0x166)],_0x82f084),_0x82f084[_0x1946f7(0x170)]||this[_0x1946f7(0x171)](_0x1946f7(0x144),{'contextItem':_0x82f084,'isLoading':_0xfc87a9}),_0x1946f7(0x158)===_0x82f084[_0x1946f7(0x166)]&&this[_0x1946f7(0x169)](),_0x82f084[_0x1946f7(0x186)]){const _0x361d85=this[_0x1946f7(0x112)](_0x82f084[_0x1946f7(0x186)]);_0x361d85&&_0x361d85[_0x1946f7(0x121)](_0x4804bc=>{const _0x20f169=_0x1946f7;this[_0x20f169(0x10b)](_0x4804bc,_0x82f084[_0x20f169(0x186)],!0x0);});}}[_0x5b195c(0x10a)](_0x39f9a1){const _0x214de5=_0x5b195c,_0x1c2301=this[_0x214de5(0x154)][_0x214de5(0x15a)](_0x39f9a1),_0x359452=this[_0x214de5(0x191)][_0x214de5(0x15a)](_0x39f9a1);if(_0x359452&&(_0x359452[_0x214de5(0x16e)](),this[_0x214de5(0x191)][_0x214de5(0x12b)](_0x39f9a1)),_0x1c2301?.[_0x214de5(0x186)]){const _0x5cb46d=this[_0x214de5(0x112)](_0x1c2301[_0x214de5(0x186)]);_0x5cb46d&&_0x5cb46d[_0x214de5(0x121)](_0x1857cb=>{const _0x4443a7=_0x214de5;this[_0x4443a7(0x10b)](_0x1857cb,_0x1c2301[_0x4443a7(0x186)],!0x1);});}this[_0x214de5(0x154)][_0x214de5(0x12b)](_0x39f9a1),this[_0x214de5(0x171)](_0x214de5(0x179),{'uiId':_0x39f9a1,'type':_0x1c2301?.[_0x214de5(0x187)]}),_0x214de5(0x158)===_0x39f9a1&&this[_0x214de5(0x169)]();}[_0x5b195c(0x168)](_0x3375a9,_0x44dbea){const _0x1eaccb=_0x5b195c;if(this[_0x1eaccb(0x154)][_0x1eaccb(0x16d)](_0x3375a9[_0x1eaccb(0x166)])&&(this[_0x1eaccb(0x154)][_0x1eaccb(0x189)](_0x3375a9[_0x1eaccb(0x166)],_0x3375a9),this[_0x1eaccb(0x171)](_0x1eaccb(0x15f),{'contextItem':_0x3375a9,'isLoading':_0x44dbea}),_0x3375a9[_0x1eaccb(0x186)])){const _0x1e6ce3=this[_0x1eaccb(0x112)](_0x3375a9[_0x1eaccb(0x186)]);_0x1e6ce3&&_0x1e6ce3[_0x1eaccb(0x121)](_0x25e13c=>{const _0x5cc4f6=_0x1eaccb;this[_0x5cc4f6(0x10b)](_0x25e13c,_0x3375a9[_0x5cc4f6(0x186)],!0x0);});}}[_0x5b195c(0x190)](_0x17acc6){const _0x7bb2ce=_0x5b195c;this[_0x7bb2ce(0x12c)][_0x7bb2ce(0x189)](_0x17acc6[_0x7bb2ce(0x166)],_0x17acc6);}[_0x5b195c(0x153)](){const _0x137c91=_0x5b195c;this[_0x137c91(0x16c)]={'document':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x137)]?.[_0x137c91(0x135)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x164)]?.[_0x137c91(0x135)]},'files':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x139)]?.[_0x137c91(0x135)]},'sources':this[_0x137c91(0x195)]()},this[_0x137c91(0x171)](_0x137c91(0x10e),{'options':this[_0x137c91(0x16c)]});}[_0x5b195c(0x195)](){const _0xae4c2a=_0x5b195c;return this[_0xae4c2a(0x12a)]?.[_0xae4c2a(0x184)]?.[_0xae4c2a(0x13a)](_0x4e189c=>({..._0x4e189c,'resources':[]}))??[];}[_0x5b195c(0x169)](){const _0x13b03c=_0x5b195c,_0x500c6e=this[_0x13b03c(0x14b)]()||this[_0x13b03c(0x176)]();this[_0x13b03c(0x16c)][_0x13b03c(0x137)][_0x13b03c(0x177)]=_0x500c6e,this[_0x13b03c(0x171)](_0x13b03c(0x10e),{'options':this[_0x13b03c(0x16c)]});}[_0x5b195c(0x145)](_0x11ab36){const _0x5a7904=_0x5b195c;for(const _0x245e8a of this[_0x5a7904(0x154)][_0x5a7904(0x123)]())if(_0x245e8a[_0x5a7904(0x186)]===_0x11ab36)return!0x0;for(const _0x1f632c of this[_0x5a7904(0x12c)][_0x5a7904(0x123)]())if(_0x1f632c[_0x5a7904(0x186)]===_0x11ab36)return!0x0;return!0x1;}[_0x5b195c(0x112)](_0x6a1927){const _0x44832a=_0x5b195c,_0x1ec45a=[];for(const _0x591e76 of this[_0x44832a(0x16c)][_0x44832a(0x184)]){_0x591e76[_0x44832a(0x11e)][_0x44832a(0x188)](_0x308e2a=>_0x308e2a['id']===_0x6a1927)&&_0x1ec45a[_0x44832a(0x14a)](_0x591e76['id']);}return 0x0===_0x1ec45a[_0x44832a(0x150)]?null:_0x1ec45a;}[_0x5b195c(0x10b)](_0x1660a7,_0x511c0a,_0x471d54){const _0x4fcc66=_0x5b195c,_0x15deaf=this[_0x4fcc66(0x16c)][_0x4fcc66(0x184)][_0x4fcc66(0x188)](_0x26d566=>_0x26d566['id']===_0x1660a7);if(!_0x15deaf)return;const _0x402f9a=_0x15deaf[_0x4fcc66(0x11e)][_0x4fcc66(0x188)](_0x57f0ec=>_0x57f0ec['id']===_0x511c0a);_0x402f9a&&(_0x402f9a[_0x4fcc66(0x157)]=_0x471d54,this[_0x4fcc66(0x171)](_0x4fcc66(0x162),{'sourceId':_0x1660a7,'resourceId':_0x511c0a,'isInContext':_0x471d54}));}[_0x5b195c(0x15c)](_0x2434e2){const _0x532203=_0x5b195c;this[_0x532203(0x14c)][_0x532203(0x189)](_0x2434e2,!0x0),this[_0x532203(0x14c)][_0x532203(0x174)]&&this[_0x532203(0x171)](_0x532203(0x114),{'isUploadInProgress':!0x0});}[_0x5b195c(0x17a)](_0x2211d4){const _0x4ed849=_0x5b195c;this[_0x4ed849(0x14c)][_0x4ed849(0x12b)](_0x2211d4),0x0===this[_0x4ed849(0x14c)][_0x4ed849(0x174)]&&this[_0x4ed849(0x171)](_0x4ed849(0x114),{'isUploadInProgress':!0x1});}}function _0x1906(){const _0x4ffa37=['getData','get','FILE','_startUploadOperation','ai-chat-resource-no-data','loadSourceResources','contextItemLoadingEnded','string','getResources','resourceStateChanged','addSelectionToContext','urls','_addContextItem','uiId','removeFromContext','_finishContextItemLoading','_toggleAddCurrentDocumentOptionVisibility','uploadUrl','ai-chat-url-upload-failed','_addContextOptionsState','has','abort','5462380SwhqVl','hidden','fire','file-','sessionId','size','MARKDOWN','isCurrentDocumentInConversation','isHidden','addToConversationContext','contextItemRemoved','_finishUploadOperation','message','ai-chat-file-upload-failed','_ownerId','ai-chat-resource-load-failed','SELECTION','20fUswda','getSentContextItems','url-','abortController','sources','removeSelectionFromContext','resourceId','type','find','set','ai-chat-context-unsupported-type','url','ai-chat-source-resources-load-failed','files-','getPendingContextItems','1051539LQbLzB','_addToConversationContextItem','_ongoingUploads','607788aBbRIQ','sourceResourcesLoaded','isReadOnly','_getCustomSourcesInitialState','73408FxKfCE','contextSent','error','_removeContextItem','_updateResourceInContextState','ai-request-aborted','_mapContextItemToRequestData','addContextOptionsChanged','uploadFile','startsWith','from','_findSourceIdsByResourceId','label','uploadProgressChanged','getId','updateCurrentDocument','selection','TEXT','135244PjBUrw','populateFromMessage','addUrlToContext','data','_connector','resources','15szJMJp','Current\x20document','forEach','getDocument','values','7407333VScBLo','isSelectionInContext','all','stack','code','addResourceToContext','_config','delete','_conversationContextItems','object\x20with\x20content\x20and\x20type\x20properties','addCurrentDocumentToContext','ai-chat-source-not-found','text/html','URL','mapContextItemsToRequestData','fetchDocument','addFilesToContext','enabled','name','document','init','files','map','attributes','DOCUMENT','end','object','ai-chat-document-upload-failed','content','HTML','start','_convertTextResourceToFile','contextItemAdded','_isResourceInContext','145GpCrlz','clearPendingContextItems','text/markdown','127076mEVYoW','push','isCurrentDocumentInContext','_ongoingUploadOperations','uploadDocument','version','_createContextItemFromContent','length','text/plain','File','_setAddContextOptionsDefaultState','_pendingContextItems','filter','ai-chat-context-invalid-data','isInContext','current-document'];_0x1906=function(){return _0x4ffa37;};return _0x1906();}
|
|
23
|
+
const _0x3ada10=_0x42a5;function _0x1f1d(){const _0x2137c9=['addUrlToContext','name','contextItemAdded','ai-chat-source-not-found','_config','isCurrentDocumentInContext','_connector','_conversationContextItems','enabled','addContextOptionsChanged','ai-chat-context-unsupported-type','isSelectionInContext','addResourceToContext','uploadDocument','sourceResourcesLoaded','_finishUploadOperation','updateCurrentDocument','set','100530TKwgln','clearPendingContextItems','ai-chat-source-resources-load-failed','removeFromContext','content','values','getPendingContextItems','_ownerId','1738568cpflzV','_pendingContextItems','_addContextOptionsState','_isResourceInContext','attributes','text/html','length','_updateResourceInContextState','_getCustomSourcesInitialState','uiId','size','2bEjtHZ','TEXT','uploadUrl','MARKDOWN','contextSent','object\x20with\x20content\x20and\x20type\x20properties','contextItemLoadingEnded','SELECTION','_convertTextResourceToFile','sources','contextItemRemoved','fetchDocument','378BDhztf','abort','get','842980MisyNi','all','map','ai-chat-context-invalid-data','addSelectionToContext','getSentContextItems','current-document','text/markdown','3493MBLqFP','ai-chat-resource-no-data','_setAddContextOptionsDefaultState','getDocument','_startUploadOperation','FILE','HTML','startsWith','getData','find','ai-chat-file-upload-failed','url-','resourceStateChanged','stack','from','2489913ZxyImw','removeSelectionFromContext','files','_mapContextItemToRequestData','end','DOCUMENT','Current\x20document','addCurrentDocumentToContext','isCurrentDocumentInConversation','init','type','label','forEach','document','sessionId','_createContextItemFromContent','getId','_findSourceIdsByResourceId','ai-request-aborted','populateFromMessage','_addToConversationContextItem','7096HKmGpG','abortController','ai-chat-resource-load-failed','delete','fire','URL','addToConversationContext','file-','_addContextItem','push','addFilesToContext','File','loadSourceResources','11220381xfoiHn','filter','selection','uploadFile','isInContext','error','url','ai-chat-document-upload-failed','string','mapContextItemsToRequestData','version','data','_toggleAddCurrentDocumentOptionVisibility','59285Otdppb','ai-chat-url-upload-failed','resourceId','uploadProgressChanged','resources','message','object','isHidden','start','code','_ongoingUploads','_removeContextItem','_finishContextItemLoading','_ongoingUploadOperations','files-','urls','1177giKIGD','has','hidden','isReadOnly','text/plain','getResources'];_0x1f1d=function(){return _0x2137c9;};return _0x1f1d();}(function(_0x5c7dfd,_0x21a866){const _0x17356d=_0x42a5,_0x42c54d=_0x5c7dfd();while(!![]){try{const _0xc45738=parseInt(_0x17356d(0x137))/0x1*(parseInt(_0x17356d(0x128))/0x2)+parseInt(_0x17356d(0x14e))/0x3+parseInt(_0x17356d(0x11d))/0x4+parseInt(_0x17356d(0x17d))/0x5*(-parseInt(_0x17356d(0x134))/0x6)+parseInt(_0x17356d(0x13f))/0x7*(-parseInt(_0x17356d(0x163))/0x8)+-parseInt(_0x17356d(0x170))/0x9+-parseInt(_0x17356d(0x115))/0xa*(-parseInt(_0x17356d(0xfd))/0xb);if(_0xc45738===_0x21a866)break;else _0x42c54d['push'](_0x42c54d['shift']());}catch(_0x5f271a){_0x42c54d['push'](_0x42c54d['shift']());}}}(_0x1f1d,0xb65c7));import{CKEditorError as _0x56a256,ObservableMixin as _0x355e10,uid as _0x14a39e}from'ckeditor5/src/utils.js';function _0x42a5(_0x30f8d0,_0x3c6ab9){const _0x1f1d27=_0x1f1d();return _0x42a5=function(_0x42a530,_0x2f13f4){_0x42a530=_0x42a530-0xfd;let _0x115865=_0x1f1d27[_0x42a530];return _0x115865;},_0x42a5(_0x30f8d0,_0x3c6ab9);}import{AIContextItemType as _0x4675a6,AIContextTextResourceType as _0x23fc08}from'../../aicore/model/aicontext.js';import{escape as _0x288202}from'es-toolkit/compat';import{errorsMap as _0xb16c61}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3ada10(0x105),_0x3ada10(0x132),_0x3ada10(0x12e),_0x3ada10(0x12c),_0x3ada10(0x175),_0x3ada10(0x10c),_0x3ada10(0x111),_0x3ada10(0x14b),_0x3ada10(0x180)];export class AIChatContext extends _0x355e10(){[_0x3ada10(0x109)];[_0x3ada10(0x107)];[_0x3ada10(0x11c)];constructor({connector:_0x5cf5a2,config:_0x439adf,ownerId:_0x6cca96}){const _0x344e70=_0x3ada10;super(),this[_0x344e70(0x109)]=_0x5cf5a2,this[_0x344e70(0x107)]=_0x439adf,this[_0x344e70(0x11c)]=_0x6cca96;}[_0x3ada10(0x157)](){const _0x4856e5=_0x3ada10;this[_0x4856e5(0x11e)]=new Map(),this[_0x4856e5(0x10a)]=new Map(),this[_0x4856e5(0x187)]=new Map(),this[_0x4856e5(0x18a)]=new Map(),this[_0x4856e5(0x141)]();}[_0x3ada10(0x11b)](){const _0x4b4cdc=_0x3ada10;return this[_0x4b4cdc(0x11e)];}async[_0x3ada10(0x161)](_0x2d1155){const _0x265da8=_0x3ada10,_0x2c95f8=await this[_0x265da8(0x15d)](_0x2d1155);return this[_0x265da8(0x162)](_0x2c95f8),_0x265da8(0x13d)===_0x2c95f8[_0x265da8(0x126)]&&this[_0x265da8(0x17c)](),_0x2c95f8;}async[_0x3ada10(0x15d)](_0x108bf0){const _0x5e822d=_0x3ada10;if(_0x108bf0[_0x5e822d(0x158)]===_0x4675a6[_0x5e822d(0x153)]){const _0x5841c2=await this[_0x5e822d(0x109)][_0x5e822d(0x133)](this[_0x5e822d(0x11c)],_0x108bf0['id'])[_0x5e822d(0x142)]();return{'id':_0x5e822d(0x13d),'uiId':_0x5e822d(0x13d),'label':_0x5e822d(0x154),'type':_0x108bf0[_0x5e822d(0x158)],'content':_0x5841c2[_0x5e822d(0x119)],'hidden':this[_0x5e822d(0x10a)][_0x5e822d(0xfe)](_0x5e822d(0x13d)),'version':_0x5841c2[_0x5e822d(0x121)]?.[_0x5e822d(0x17a)],'sessionId':_0x5841c2[_0x5e822d(0x121)]?.[_0x5e822d(0x15c)]};}return{'id':_0x108bf0['id'],'uiId':_0x108bf0['id'],'label':_0x108bf0[_0x5e822d(0x121)]?.[_0x5e822d(0x159)]||_0x108bf0[_0x5e822d(0x104)]||_0x108bf0[_0x5e822d(0x176)]||_0x108bf0['id'],'type':_0x108bf0[_0x5e822d(0x158)],..._0x108bf0?.[_0x5e822d(0x121)]?.[_0x5e822d(0x17f)]?{'resourceId':_0x108bf0[_0x5e822d(0x121)]?.[_0x5e822d(0x17f)]}:{}};}[_0x3ada10(0x13c)](){const _0x2e7972=_0x3ada10;return new Map(this[_0x2e7972(0x10a)]);}[_0x3ada10(0x118)](_0x2644cb){const _0x299fb0=_0x3ada10,_0x1163ca=this[_0x299fb0(0x11e)][_0x299fb0(0x136)](_0x2644cb);_0x1163ca?.[_0x299fb0(0x100)]||this[_0x299fb0(0x188)](_0x2644cb);}[_0x3ada10(0x116)](){const _0x23e072=_0x3ada10;if(0x0===this[_0x23e072(0x11e)][_0x23e072(0x127)])return;for(const _0x41db7b of this[_0x23e072(0x11e)][_0x23e072(0x11a)]())this[_0x23e072(0x188)](_0x41db7b[_0x23e072(0x126)]);const _0x280836=this[_0x23e072(0x10a)][_0x23e072(0x136)](_0x23e072(0x13d))||this[_0x23e072(0x11e)][_0x23e072(0x136)](_0x23e072(0x13d));_0x280836&&this[_0x23e072(0x16b)]({..._0x280836,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3ada10(0x169)](_0x4cf52c){const _0x50a876=_0x3ada10;for(const _0xc426a8 of _0x4cf52c[_0x50a876(0x11a)]())this[_0x50a876(0x162)](_0xc426a8);this[_0x50a876(0x116)](),this[_0x50a876(0x167)](_0x50a876(0x12c),{'contextItems':Array[_0x50a876(0x14d)](this[_0x50a876(0x13c)]()[_0x50a876(0x11a)]())});}[_0x3ada10(0x108)](){const _0x29f1ef=_0x3ada10;return this[_0x29f1ef(0x11e)][_0x29f1ef(0xfe)](_0x29f1ef(0x13d));}[_0x3ada10(0x10e)](){const _0x376e1e=_0x3ada10;return this[_0x376e1e(0x11e)][_0x376e1e(0xfe)](_0x376e1e(0x172));}[_0x3ada10(0x156)](){const _0x221360=_0x3ada10;return this[_0x221360(0x10a)][_0x221360(0xfe)](_0x221360(0x13d));}static[_0x3ada10(0x179)](_0x4a70a1){const _0x3b2a02=_0x3ada10;return Array[_0x3b2a02(0x14d)](_0x4a70a1[_0x3b2a02(0x11a)]())[_0x3b2a02(0x139)](_0x258917=>this[_0x3b2a02(0x151)](_0x258917))[_0x3b2a02(0x171)](_0x21963f=>null!==_0x21963f);}async[_0x3ada10(0x16d)](_0x1ea2e2,_0x146dc3,_0xf1cb09=_0x4675a6[_0x3ada10(0x144)]){const _0x39a285=_0x3ada10,_0x5c7550=_0x39a285(0x18b)+_0x14a39e();this[_0x39a285(0x143)](_0x5c7550);try{await Promise[_0x39a285(0x138)](_0x1ea2e2[_0x39a285(0x139)](async _0x302756=>{const _0xbb8813=_0x39a285,_0x176a9a=_0xbb8813(0x16a)+_0x14a39e(),_0x4ac654=_0x288202(_0x302756[_0xbb8813(0x104)]);try{this[_0xbb8813(0x16b)]({'type':_0xf1cb09,'label':_0x146dc3?.[_0xbb8813(0x159)]||_0x4ac654,'uiId':_0x176a9a,'resourceId':_0x146dc3?.[_0xbb8813(0x17f)]},!0x0);const _0x4bfb2d=this[_0xbb8813(0x109)][_0xbb8813(0x173)](this[_0xbb8813(0x11c)],_0x302756,_0x146dc3);this[_0xbb8813(0x187)][_0xbb8813(0x114)](_0x176a9a,_0x4bfb2d[_0xbb8813(0x164)]);const {id:_0x5a596a}=await _0x4bfb2d[_0xbb8813(0x15e)]();this[_0xbb8813(0x187)][_0xbb8813(0x166)](_0x176a9a),this[_0xbb8813(0x189)]({'type':_0xf1cb09,'id':_0x5a596a,'label':_0x146dc3?.[_0xbb8813(0x159)]||_0x4ac654,'uiId':_0x176a9a,'resourceId':_0x146dc3?.[_0xbb8813(0x17f)]},!0x1);}catch(_0x3b6814){this[_0xbb8813(0x187)][_0xbb8813(0x166)](_0x176a9a);if(!(_0x3b6814 instanceof _0x56a256&&_0x3b6814[_0xbb8813(0x182)][_0xbb8813(0x146)](_0xbb8813(0x160)))){const _0x3bc903=_0xb16c61[_0xbb8813(0x136)](_0x3b6814[_0xbb8813(0x186)])||_0xbb8813(0x149),_0x58dacd=new _0x56a256(_0x3bc903,null,{'fileName':_0x4ac654,..._0x3b6814});_0x58dacd[_0xbb8813(0x14c)]=_0x3b6814[_0xbb8813(0x14c)],this[_0xbb8813(0x167)](_0xbb8813(0x175),{'error':_0x58dacd});}this[_0xbb8813(0x188)](_0x176a9a);}}));}finally{this[_0x39a285(0x112)](_0x5c7550);}}[_0x3ada10(0x155)](_0x4621b2){const _0x297dcc=_0x3ada10;if(this[_0x297dcc(0x108)]()||!this[_0x297dcc(0x11f)][_0x297dcc(0x15b)][_0x297dcc(0x10b)])return;const _0x30607b={'type':_0x4675a6[_0x297dcc(0x153)],'uiId':_0x297dcc(0x13d),'label':_0x4621b2,'isReadOnly':this[_0x297dcc(0x10a)][_0x297dcc(0xfe)](_0x297dcc(0x13d)),'hidden':this[_0x297dcc(0x10a)][_0x297dcc(0xfe)](_0x297dcc(0x13d))};this[_0x297dcc(0x16b)](_0x30607b);}async[_0x3ada10(0x113)](_0x17306c,_0x5d82fa,_0x2fd8ad,_0x4a591a){const _0x554bb2=_0x3ada10,_0x163806=this[_0x554bb2(0x11e)][_0x554bb2(0x136)](_0x554bb2(0x13d));if(_0x163806&&_0x17306c){_0x163806[_0x554bb2(0x172)]=_0x4a591a?_0x4a591a[_0x554bb2(0x139)](_0x23d9df=>({'start':_0x23d9df[_0x554bb2(0x185)],'end':_0x23d9df[_0x554bb2(0x152)]})):[];try{if(_0x163806[_0x554bb2(0x17a)]===_0x5d82fa)return;const {id:_0x2fe01a}=await this[_0x554bb2(0x109)][_0x554bb2(0x110)](this[_0x554bb2(0x11c)],_0x17306c,{'version':_0x5d82fa,'sessionId':_0x2fd8ad})[_0x554bb2(0x15e)]();_0x163806['id']=_0x2fe01a,_0x163806[_0x554bb2(0x119)]=_0x17306c,_0x163806[_0x554bb2(0x17a)]=_0x5d82fa,_0x163806[_0x554bb2(0x15c)]=_0x2fd8ad;}catch(_0x518eef){const _0x180f88=new _0x56a256(_0x554bb2(0x177),null);_0x180f88[_0x554bb2(0x14c)]=_0x518eef[_0x554bb2(0x14c)],this[_0x554bb2(0x167)](_0x554bb2(0x175),{'error':_0x180f88});}}}[_0x3ada10(0x13b)](_0x317b8f){const _0x59f2fa=_0x3ada10;this[_0x59f2fa(0x16b)]({'type':_0x4675a6[_0x59f2fa(0x12f)],'label':_0x317b8f,'uiId':_0x59f2fa(0x172),'content':_0x317b8f});}[_0x3ada10(0x14f)](){const _0x443d48=_0x3ada10;this[_0x443d48(0x188)](_0x443d48(0x172));}async[_0x3ada10(0x103)](_0x383bd9,_0x424504){const _0x3efdf6=_0x3ada10,_0x2c125e=_0x3efdf6(0x14a)+_0x14a39e();this[_0x3efdf6(0x143)](_0x2c125e);const _0x4aef0e=_0x3efdf6(0x14a)+_0x14a39e();try{this[_0x3efdf6(0x16b)]({'type':_0x4675a6[_0x3efdf6(0x168)],'label':_0x424504?.[_0x3efdf6(0x159)]||_0x383bd9,'uiId':_0x4aef0e,'resourceId':_0x424504?.[_0x3efdf6(0x17f)]},!0x0);const _0x36521b=this[_0x3efdf6(0x109)][_0x3efdf6(0x12a)](this[_0x3efdf6(0x11c)],_0x383bd9,_0x424504);this[_0x3efdf6(0x187)][_0x3efdf6(0x114)](_0x4aef0e,_0x36521b[_0x3efdf6(0x164)]);const {id:_0x5ed344}=await _0x36521b[_0x3efdf6(0x15e)]();this[_0x3efdf6(0x187)][_0x3efdf6(0x166)](_0x4aef0e),this[_0x3efdf6(0x189)]({'type':_0x4675a6[_0x3efdf6(0x168)],'id':_0x5ed344,'label':_0x424504?.[_0x3efdf6(0x159)]||_0x383bd9,'uiId':_0x4aef0e,'resourceId':_0x424504?.[_0x3efdf6(0x17f)]},!0x1);}catch(_0x4a2730){this[_0x3efdf6(0x187)][_0x3efdf6(0x166)](_0x4aef0e),(_0x4a2730[_0x3efdf6(0x182)][_0x3efdf6(0x146)](_0x3efdf6(0x160))||this[_0x3efdf6(0x167)](_0x3efdf6(0x175),{'error':new _0x56a256(_0x3efdf6(0x17e),this,{'url':_0x383bd9,'originalError':_0x4a2730}),'url':_0x383bd9}),this[_0x3efdf6(0x188)](_0x4aef0e));}finally{this[_0x3efdf6(0x112)](_0x2c125e);}}async[_0x3ada10(0x16f)](_0x1f4762,_0x55699a,_0xbc9750){const _0x374951=_0x3ada10,_0x5264dc=this[_0x374951(0x11f)][_0x374951(0x131)][_0x374951(0x148)](_0x35d956=>_0x35d956['id']===_0x1f4762);if(!_0x5264dc)return this[_0x374951(0x167)](_0x374951(0x175),{'error':new _0x56a256(_0x374951(0x106),this,{'sourceId':_0x1f4762}),'sourceId':_0x1f4762}),[];try{const _0x446f52=(await _0x5264dc[_0x374951(0x102)](_0x55699a))[_0x374951(0x139)](_0x1a4a1d=>{const _0x209565=_0x374951,_0x55fcb8=this[_0x209565(0x120)](_0x1a4a1d['id']);return{..._0x1a4a1d,'isInContext':_0x55fcb8};});return _0x5264dc[_0x374951(0x181)]=_0x446f52,this[_0x374951(0x167)](_0x374951(0x111),{'sourceId':_0x1f4762,'source':_0x5264dc,'resources':_0x446f52,'uid':_0xbc9750}),_0x446f52;}catch(_0x171dcb){return this[_0x374951(0x167)](_0x374951(0x175),{'error':new _0x56a256(_0x374951(0x117),this,{'sourceId':_0x1f4762,'originalError':_0x171dcb}),'sourceId':_0x1f4762,'sourceLabel':_0x5264dc[_0x374951(0x159)]}),[];}}async[_0x3ada10(0x10f)](_0x5a3532,_0x1a42a6){const _0x27613b=_0x3ada10;if(this[_0x27613b(0x120)](_0x1a42a6['id']))return;let _0x17b3d7=_0x1a42a6[_0x27613b(0x17b)];if(!_0x17b3d7&&_0x5a3532[_0x27613b(0x147)])try{_0x17b3d7=await _0x5a3532[_0x27613b(0x147)](_0x1a42a6['id']);}catch(_0x5b1e07){return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x165),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'originalError':_0x5b1e07}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}if(_0x17b3d7)switch(_0x1a42a6[_0x27613b(0x158)]){case _0x4675a6[_0x27613b(0x168)]:if(_0x27613b(0x178)!=typeof _0x17b3d7)return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x178),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});await this[_0x27613b(0x103)](_0x17b3d7,{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']});break;case _0x4675a6[_0x27613b(0x144)]:if(!(_0x17b3d7 instanceof File))return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x16e),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});await this[_0x27613b(0x16d)]([_0x17b3d7],{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']});break;case _0x4675a6[_0x27613b(0x129)]:if(_0x27613b(0x183)!=typeof _0x17b3d7||!(_0x27613b(0x119)in _0x17b3d7)||!(_0x27613b(0x158)in _0x17b3d7))return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x12d),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});_0x17b3d7=AIChatContext[_0x27613b(0x130)](_0x17b3d7,_0x1a42a6[_0x27613b(0x159)]),await this[_0x27613b(0x16d)]([_0x17b3d7],{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']},_0x4675a6[_0x27613b(0x129)]);break;default:this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x10d),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'resourceType':_0x1a42a6[_0x27613b(0x158)]}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}else this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x140),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}static[_0x3ada10(0x130)](_0xd23547,_0x361c0d){const _0x12cca5=_0x3ada10;switch(_0xd23547[_0x12cca5(0x158)]){case _0x23fc08[_0x12cca5(0x12b)]:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x13e)});case _0x23fc08[_0x12cca5(0x145)]:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x122)});default:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x101)});}}static[_0x3ada10(0x151)](_0x78845){const _0x122198=_0x3ada10;switch(_0x78845[_0x122198(0x158)]){case _0x4675a6[_0x122198(0x144)]:return{'type':_0x4675a6[_0x122198(0x144)],'id':_0x78845['id']};case _0x4675a6[_0x122198(0x168)]:return{'type':_0x4675a6[_0x122198(0x168)],'id':_0x78845['id']};case _0x4675a6[_0x122198(0x153)]:return{'type':_0x4675a6[_0x122198(0x153)],'id':_0x78845['id'],..._0x78845[_0x122198(0x172)]?.[_0x122198(0x123)]&&{'selection':_0x78845[_0x122198(0x172)]}};case _0x4675a6[_0x122198(0x129)]:return{'type':_0x4675a6[_0x122198(0x144)],'id':_0x78845['id']};default:return null;}}[_0x3ada10(0x16b)](_0x48730d,_0x373937=!0x1){const _0x5360a8=_0x3ada10;if(this[_0x5360a8(0x11e)][_0x5360a8(0x114)](_0x48730d[_0x5360a8(0x126)],_0x48730d),_0x48730d[_0x5360a8(0xff)]||this[_0x5360a8(0x167)](_0x5360a8(0x105),{'contextItem':_0x48730d,'isLoading':_0x373937}),_0x5360a8(0x13d)===_0x48730d[_0x5360a8(0x126)]&&this[_0x5360a8(0x17c)](),_0x48730d[_0x5360a8(0x17f)]){const _0x189101=this[_0x5360a8(0x15f)](_0x48730d[_0x5360a8(0x17f)]);_0x189101&&_0x189101[_0x5360a8(0x15a)](_0xad4524=>{const _0xbbe87c=_0x5360a8;this[_0xbbe87c(0x124)](_0xad4524,_0x48730d[_0xbbe87c(0x17f)],!0x0);});}}[_0x3ada10(0x188)](_0x484615){const _0x5b284a=_0x3ada10,_0x4d67ba=this[_0x5b284a(0x11e)][_0x5b284a(0x136)](_0x484615),_0x34b8ca=this[_0x5b284a(0x187)][_0x5b284a(0x136)](_0x484615);if(_0x34b8ca&&(_0x34b8ca[_0x5b284a(0x135)](),this[_0x5b284a(0x187)][_0x5b284a(0x166)](_0x484615)),_0x4d67ba?.[_0x5b284a(0x17f)]){const _0x365de2=this[_0x5b284a(0x15f)](_0x4d67ba[_0x5b284a(0x17f)]);_0x365de2&&_0x365de2[_0x5b284a(0x15a)](_0x1aa07c=>{const _0x3007fa=_0x5b284a;this[_0x3007fa(0x124)](_0x1aa07c,_0x4d67ba[_0x3007fa(0x17f)],!0x1);});}this[_0x5b284a(0x11e)][_0x5b284a(0x166)](_0x484615),this[_0x5b284a(0x167)](_0x5b284a(0x132),{'uiId':_0x484615,'type':_0x4d67ba?.[_0x5b284a(0x158)]}),_0x5b284a(0x13d)===_0x484615&&this[_0x5b284a(0x17c)]();}[_0x3ada10(0x189)](_0x33abd1,_0x2b3cbe){const _0x42b908=_0x3ada10;if(this[_0x42b908(0x11e)][_0x42b908(0xfe)](_0x33abd1[_0x42b908(0x126)])&&(this[_0x42b908(0x11e)][_0x42b908(0x114)](_0x33abd1[_0x42b908(0x126)],_0x33abd1),this[_0x42b908(0x167)](_0x42b908(0x12e),{'contextItem':_0x33abd1,'isLoading':_0x2b3cbe}),_0x33abd1[_0x42b908(0x17f)])){const _0xda4fc6=this[_0x42b908(0x15f)](_0x33abd1[_0x42b908(0x17f)]);_0xda4fc6&&_0xda4fc6[_0x42b908(0x15a)](_0x2be14a=>{const _0x5e8873=_0x42b908;this[_0x5e8873(0x124)](_0x2be14a,_0x33abd1[_0x5e8873(0x17f)],!0x0);});}}[_0x3ada10(0x162)](_0x1455e4){const _0x2fc7cf=_0x3ada10;this[_0x2fc7cf(0x10a)][_0x2fc7cf(0x114)](_0x1455e4[_0x2fc7cf(0x126)],_0x1455e4);}[_0x3ada10(0x141)](){const _0x205565=_0x3ada10;this[_0x205565(0x11f)]={'document':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x15b)]?.[_0x205565(0x10b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x18c)]?.[_0x205565(0x10b)]},'files':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x150)]?.[_0x205565(0x10b)]},'sources':this[_0x205565(0x125)]()},this[_0x205565(0x167)](_0x205565(0x10c),{'options':this[_0x205565(0x11f)]});}[_0x3ada10(0x125)](){const _0x1193d8=_0x3ada10;return this[_0x1193d8(0x107)]?.[_0x1193d8(0x131)]?.[_0x1193d8(0x139)](_0x45e177=>({..._0x45e177,'resources':[]}))??[];}[_0x3ada10(0x17c)](){const _0x4840e7=_0x3ada10,_0x83590e=this[_0x4840e7(0x108)]()||this[_0x4840e7(0x156)]();this[_0x4840e7(0x11f)][_0x4840e7(0x15b)][_0x4840e7(0x184)]=_0x83590e,this[_0x4840e7(0x167)](_0x4840e7(0x10c),{'options':this[_0x4840e7(0x11f)]});}[_0x3ada10(0x120)](_0x216d89){const _0x21ed85=_0x3ada10;for(const _0xe5f36b of this[_0x21ed85(0x11e)][_0x21ed85(0x11a)]())if(_0xe5f36b[_0x21ed85(0x17f)]===_0x216d89)return!0x0;for(const _0x1037c8 of this[_0x21ed85(0x10a)][_0x21ed85(0x11a)]())if(_0x1037c8[_0x21ed85(0x17f)]===_0x216d89)return!0x0;return!0x1;}[_0x3ada10(0x15f)](_0x4ddc2e){const _0x10b1bd=_0x3ada10,_0x341d82=[];for(const _0x1e3be0 of this[_0x10b1bd(0x11f)][_0x10b1bd(0x131)]){_0x1e3be0[_0x10b1bd(0x181)][_0x10b1bd(0x148)](_0x3e296a=>_0x3e296a['id']===_0x4ddc2e)&&_0x341d82[_0x10b1bd(0x16c)](_0x1e3be0['id']);}return 0x0===_0x341d82[_0x10b1bd(0x123)]?null:_0x341d82;}[_0x3ada10(0x124)](_0x411416,_0x2a24cc,_0x20cddc){const _0x4d7bab=_0x3ada10,_0x48c38e=this[_0x4d7bab(0x11f)][_0x4d7bab(0x131)][_0x4d7bab(0x148)](_0x2e1ee2=>_0x2e1ee2['id']===_0x411416);if(!_0x48c38e)return;const _0x3c30f9=_0x48c38e[_0x4d7bab(0x181)][_0x4d7bab(0x148)](_0x533131=>_0x533131['id']===_0x2a24cc);_0x3c30f9&&(_0x3c30f9[_0x4d7bab(0x174)]=_0x20cddc,this[_0x4d7bab(0x167)](_0x4d7bab(0x14b),{'sourceId':_0x411416,'resourceId':_0x2a24cc,'isInContext':_0x20cddc}));}[_0x3ada10(0x143)](_0xbda23d){const _0x425f40=_0x3ada10;this[_0x425f40(0x18a)][_0x425f40(0x114)](_0xbda23d,!0x0),this[_0x425f40(0x18a)][_0x425f40(0x127)]&&this[_0x425f40(0x167)](_0x425f40(0x180),{'isUploadInProgress':!0x0});}[_0x3ada10(0x112)](_0x113009){const _0x7fa43f=_0x3ada10;this[_0x7fa43f(0x18a)][_0x7fa43f(0x166)](_0x113009),0x0===this[_0x7fa43f(0x18a)][_0x7fa43f(0x127)]&&this[_0x7fa43f(0x167)](_0x7fa43f(0x180),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa4e42=_0x581b;(function(_0x406f51,_0x452903){const _0x1ebb23=_0x581b,_0x58ae33=_0x406f51();while(!![]){try{const _0x26dc56=-parseInt(_0x1ebb23(0xf7))/0x1+-parseInt(_0x1ebb23(0x12a))/0x2+-parseInt(_0x1ebb23(0xf5))/0x3*(-parseInt(_0x1ebb23(0x14d))/0x4)+-parseInt(_0x1ebb23(0x115))/0x5+-parseInt(_0x1ebb23(0x139))/0x6+parseInt(_0x1ebb23(0x11f))/0x7*(-parseInt(_0x1ebb23(0xde))/0x8)+-parseInt(_0x1ebb23(0x136))/0x9*(-parseInt(_0x1ebb23(0x131))/0xa);if(_0x26dc56===_0x452903)break;else _0x58ae33['push'](_0x58ae33['shift']());}catch(_0x1c46d2){_0x58ae33['push'](_0x58ae33['shift']());}}}(_0x1f8c,0x22883));import{CKEditorError as _0x21c9b8,EmitterMixin as _0xd3d689,logWarning as _0x5bed54}from'ckeditor5/src/utils.js';function _0x581b(_0x118524,_0x329bf0){const _0x1f8c8b=_0x1f8c();return _0x581b=function(_0x581b05,_0x423725){_0x581b05=_0x581b05-0xdc;let _0x1126a8=_0x1f8c8b[_0x581b05];return _0x1126a8;},_0x581b(_0x118524,_0x329bf0);}import{AI_MODEL_EVENT_NAMES as _0x1240ce}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3ce10c,AI_CONTEXT_MODEL_EVENT_NAMES as _0x58535d}from'./aichatcontext.js';import{AICapabilities as _0x3b2d76,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b1c76}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3914d9}from'./aichatinteraction.js';import{errorsMap as _0x5226d4}from'../../errorsmap.js';function _0x1f8c(){const _0x5916e4=['conversationInitialized','error','getEditor','addSelectionToContext','_extractContextItems','conversationStarted','user','490443AbRuCX','setModel','157630GSeNuq','reasoning','fetchConversation','connector','modelSelected','fetchConversationMessages','sessionId','chatCapabilities','ai-chat-conversation-set-model-null','prompt','content','createInteraction','destroy','options','toggleReasoning','interactionCreated','toggleWebSearch','reset','ai-chat-conversation-init-failed','ai-chat-conversation-start-no-model-selected','appendContent','handleUserInteraction','text-delta','contextItems','loadSourceResources','addUrlToContext','start','stack','get','conversationId','735155rzFNzw','getCurrentDocumentContext','getCapabilitiesConfig','model','ai-chat-conversation-set-model-not-available','init','webSearch','getDocumentContext','createReply','delegate','5299uXhcHm','attributes','selectedModel','push','getPendingContextItems','updateCurrentDocument','isCurrentDocumentInContext','chatContext','isStarted','load','getMessages','470688Vkomtl','indexOf','group','fire','length','ai-chat-conversation-already-started','code','3860460mXKUlD','addFilesToContext','addToConversationContext','addResourceToContext','getAll','18xxVOSK','populateFromMessage','currentInteraction','1265856hOTBaU','ai-chat-conversation-start-failed','selectedModelId','hasOwn','removeSelectionFromContext','interactions','getConversation','quickActionData','isCurrentDocumentInConversation','find','role','set','getModel','currentReply','text','getInteraction','isSelectionInContext','lastInteraction','modification-delta','stop','4RPSIYZ','toLowerCase','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocumentInContext','_processMessagesToInteractions','title','456InmQEe','startConversation','ai-chat-handle-user-interaction-start-failed','message','getAvailableModels','capabilities','type','addCurrentDocumentToContext','chatModels','splice','setConversationTitle','removeFromContext','isAvailable','ai-chat-handle-user-conversation-not-initialized','assistant','removeInteraction'];_0x1f8c=function(){return _0x5916e4;};return _0x1f8c();}export class AIChatConversation extends _0xd3d689(){['id'];[_0xa4e42(0x127)]=!0x1;[_0xa4e42(0x13e)]=[];[_0xa4e42(0x138)];[_0xa4e42(0x121)];[_0xa4e42(0xfa)];[_0xa4e42(0x104)];constructor(_0x4920ed){const _0x8bf488=_0xa4e42;super(),this[_0x8bf488(0x104)]=_0x4920ed,this[_0x8bf488(0xfa)]=_0x4920ed[_0x8bf488(0xfa)],this[_0x8bf488(0xe6)]=_0x4920ed[_0x8bf488(0xe6)],this['id']=_0x4920ed[_0x8bf488(0x114)];}async[_0xa4e42(0x11a)](_0x230381){const _0x3adfb9=_0xa4e42;try{this[_0x3adfb9(0x126)]=new _0x3ce10c({'connector':this[_0x3adfb9(0xfa)],'config':_0x230381,'ownerId':this['id']}),this[_0x3adfb9(0x126)][_0x3adfb9(0x11e)](..._0x58535d)['to'](this),this[_0x3adfb9(0x126)][_0x3adfb9(0x11a)](),this[_0x3adfb9(0xfe)]=new _0x3b2d76(),this[_0x3adfb9(0xfe)][_0x3adfb9(0x11e)](..._0x5b1c76)['to'](this),this[_0x3adfb9(0xfe)][_0x3adfb9(0x11a)]();const _0x12739a=await this[_0x3adfb9(0xe6)][_0x3adfb9(0xe2)]();this[_0x3adfb9(0x12d)](_0x3adfb9(0xee),{'availableModels':_0x12739a});const _0x3c2897=await this[_0x3adfb9(0xe6)][_0x3adfb9(0x145)](this[_0x3adfb9(0x104)][_0x3adfb9(0x13b)]);_0x3c2897&&await this[_0x3adfb9(0xf6)](_0x3c2897);}catch(_0x4dc144){const _0x2bc933=new _0x21c9b8(_0x3adfb9(0x109),null,{'message':_0x4dc144[_0x3adfb9(0xe1)]||_0x4dc144});_0x2bc933[_0x3adfb9(0x112)]=_0x4dc144[_0x3adfb9(0x112)],this[_0x3adfb9(0x12d)](_0x3adfb9(0xef),{'error':_0x2bc933});}}async[_0xa4e42(0x111)](){const _0x590975=_0xa4e42;if(this[_0x590975(0x127)])throw new _0x21c9b8(_0x590975(0x12f),null,{'conversation':this});if(!this[_0x590975(0x121)])throw new _0x21c9b8(_0x590975(0x10a),null,{'conversation':this});try{const {id:_0x330671}=await this[_0x590975(0xfa)][_0x590975(0xdf)](this['id'],this[_0x590975(0x104)][_0x590975(0x12c)])[_0x590975(0x13f)]();this['id']=_0x330671,this[_0x590975(0x127)]=!0x0,this[_0x590975(0x12d)](_0x590975(0xf3),{'conversationId':this['id'],'selectedModel':this[_0x590975(0x121)]});}catch(_0x2ff0f3){const _0x426efb=new _0x21c9b8(_0x590975(0x13a),null,{'message':_0x2ff0f3[_0x590975(0xe1)],'conversationId':this['id']});throw _0x426efb[_0x590975(0x112)]=_0x2ff0f3[_0x590975(0x112)],this[_0x590975(0x12d)](_0x590975(0xef),{'error':_0x426efb}),_0x426efb;}}async[_0xa4e42(0x128)](_0x18729b,_0x570148){const _0x2fc34d=_0xa4e42;try{const _0x6e1580=await this[_0x2fc34d(0xfa)][_0x2fc34d(0xf9)](_0x18729b)[_0x2fc34d(0x13f)](),_0x38ccc4=await this[_0x2fc34d(0xfa)][_0x2fc34d(0xfc)](_0x18729b)[_0x2fc34d(0x129)](),_0x6364b2=_0x38ccc4[0x0][_0x2fc34d(0x118)];this[_0x2fc34d(0x127)]=!0x0,this['id']=_0x6e1580['id'],_0x2fc34d(0xdd)in _0x6e1580?this[_0x2fc34d(0x12d)](_0x2fc34d(0xe8),_0x6e1580[_0x2fc34d(0xdd)],!0x0):this[_0x2fc34d(0x12d)](_0x2fc34d(0xe8),'',!0x0);const _0x3317c4=(await this[_0x2fc34d(0xe6)][_0x2fc34d(0x135)]())[_0x2fc34d(0x142)](_0x7132db=>_0x7132db['id'][_0x2fc34d(0x14e)]()===_0x6364b2[_0x2fc34d(0x14e)]());return this[_0x2fc34d(0x121)]=_0x3317c4,this[_0x2fc34d(0x12d)](_0x2fc34d(0xfb),{'selectedModel':_0x3317c4,'isDisabled':!0x0}),await this[_0x2fc34d(0xdc)](_0x38ccc4,_0x570148,_0x6364b2),this[_0x2fc34d(0x138)]=void 0x0,this;}catch(_0x20cd49){const _0x5813b5=new _0x21c9b8(_0x2fc34d(0x14f),null,{'message':_0x20cd49[_0x2fc34d(0xe1)],'conversationId':_0x18729b});throw _0x5813b5[_0x2fc34d(0x112)]=_0x20cd49[_0x2fc34d(0x112)],this[_0x2fc34d(0x12d)](_0x2fc34d(0xef),{'error':_0x5813b5}),_0x5813b5;}}async[_0xa4e42(0xdc)](_0x3c1f38,_0x4c1a9c,_0x426bea){const _0x2baf7c=_0xa4e42;let _0x38dab7;for(const _0x27a10f of _0x3c1f38)if(_0x2baf7c(0xf4)===_0x27a10f[_0x2baf7c(0x143)]){const _0x25d68c=await this[_0x2baf7c(0xf2)](_0x27a10f),_0x4f36b6={'isReasoningEnabled':Object[_0x2baf7c(0x13c)](_0x27a10f[_0x2baf7c(0xe3)],_0x2baf7c(0xf8)),'isWebSearchEnabled':Object[_0x2baf7c(0x13c)](_0x27a10f[_0x2baf7c(0xe3)],_0x2baf7c(0x11b))};_0x38dab7=this[_0x2baf7c(0x102)]({'userMessage':_0x27a10f[_0x2baf7c(0x100)],'contextItems':_0x25d68c,'capabilities':_0x4f36b6,'modelId':_0x426bea,'quickActionData':_0x27a10f[_0x2baf7c(0x120)]?.[_0x2baf7c(0x140)]}),this[_0x2baf7c(0x138)]=_0x38dab7,this[_0x2baf7c(0x126)][_0x2baf7c(0x133)](this[_0x2baf7c(0x138)][_0x2baf7c(0x10e)]);}else{if(_0x2baf7c(0xec)===_0x27a10f[_0x2baf7c(0x143)]&&_0x38dab7)for(const _0x50e057 of _0x27a10f[_0x2baf7c(0x101)]){const _0x1fccb8=_0x2baf7c(0x147)===_0x50e057[_0x2baf7c(0xe4)]?_0x2baf7c(0x10d):_0x2baf7c(0x14b),_0x2f0730=_0x38dab7[_0x2baf7c(0x11c)]()?.[_0x2baf7c(0xfd)]!==_0x4c1a9c;_0x38dab7[_0x2baf7c(0x146)]=_0x38dab7[_0x2baf7c(0x11d)]({'type':_0x1fccb8,'isDone':!0x0,'interactionId':_0x38dab7['id'],'areActionsDisabled':_0x2f0730}),_0x38dab7[_0x2baf7c(0x146)][_0x2baf7c(0x10b)](_0x50e057[_0x2baf7c(0x101)]);}}}async[_0xa4e42(0xf2)](_0x1aab04){const _0x6ef330=_0xa4e42,_0x140fc0=new Map();if(!_0x1aab04[_0x6ef330(0x101)])return _0x140fc0;for(const _0x3d973a of _0x1aab04[_0x6ef330(0x101)]){const _0x56b808=await this[_0x6ef330(0x126)][_0x6ef330(0x137)](_0x3d973a);_0x56b808&&_0x140fc0[_0x6ef330(0x144)](_0x56b808['id'],_0x56b808);}return _0x140fc0;}async[_0xa4e42(0x10c)]({userMessage:_0xd32564,quickActionData:_0x4d36ec}){const _0x12bb99=_0xa4e42;if(!this[_0x12bb99(0x127)])throw new _0x21c9b8(_0x12bb99(0xeb),null,{'conversation':this});if(this[_0x12bb99(0x138)])throw new _0x21c9b8(_0x12bb99(0x150),null,{'conversation':this});try{const _0x332658=this[_0x12bb99(0x126)][_0x12bb99(0x123)](),_0x24c50f=this[_0x12bb99(0xfe)][_0x12bb99(0x117)](),_0x3171f9=this[_0x12bb99(0x121)]['id'];this[_0x12bb99(0x138)]=this[_0x12bb99(0x102)]({'userMessage':_0xd32564,'contextItems':_0x332658,'capabilities':_0x24c50f,'modelId':_0x3171f9,'quickActionData':_0x4d36ec}),await this[_0x12bb99(0x138)][_0x12bb99(0x111)](),this[_0x12bb99(0x126)][_0x12bb99(0x133)](this[_0x12bb99(0x138)][_0x12bb99(0x10e)]);}catch(_0x5ac8fa){if(_0x5ac8fa instanceof _0x21c9b8)this[_0x12bb99(0x12d)](_0x12bb99(0xef),{'interactionId':this[_0x12bb99(0x138)]?this[_0x12bb99(0x138)]['id']:void 0x0,'error':_0x5ac8fa});else{const _0x5d5cf3=_0x5226d4[_0x12bb99(0x113)](_0x5ac8fa[_0x12bb99(0x130)])||_0x12bb99(0xe0);this[_0x12bb99(0x12d)](_0x12bb99(0xef),{'interactionId':this[_0x12bb99(0x138)]?this[_0x12bb99(0x138)]['id']:void 0x0,'error':new _0x21c9b8(_0x5d5cf3,null,{'error':_0x5ac8fa})});}}finally{this[_0x12bb99(0x138)]?.[_0x12bb99(0x14c)](),this[_0x12bb99(0x138)]=void 0x0;}}[_0xa4e42(0x102)]({userMessage:_0x330cf9,contextItems:_0x54b7a7,capabilities:_0x3f2452,modelId:_0x368850,quickActionData:_0x26e091}){const _0x3ec4de=_0xa4e42,_0x5035bd=new _0x3914d9({'userMessage':_0x330cf9,'contextItems':_0x54b7a7,'capabilities':_0x3f2452,'conversationId':this['id'],'connector':this[_0x3ec4de(0xfa)],'editor':this[_0x3ec4de(0x104)][_0x3ec4de(0xf0)]&&this[_0x3ec4de(0x104)][_0x3ec4de(0xf0)](),'model':_0x368850,'quickActionData':_0x26e091});return _0x5035bd[_0x3ec4de(0x11e)](..._0x1240ce)['to'](this),this[_0x3ec4de(0x13e)][_0x3ec4de(0x122)](_0x5035bd),this[_0x3ec4de(0x12d)](_0x3ec4de(0x106),_0x5035bd),_0x5035bd;}[_0xa4e42(0x148)](_0x1de15a){const _0x1dcd9a=_0xa4e42;return this[_0x1dcd9a(0x13e)][_0x1dcd9a(0x142)](_0x41ee19=>_0x41ee19['id']===_0x1de15a);}[_0xa4e42(0xed)](_0x3d25b8){const _0x1ece33=_0xa4e42,_0x51d1c3=this[_0x1ece33(0x148)](_0x3d25b8);_0x51d1c3&&(_0x51d1c3[_0x1ece33(0x103)](),this[_0x1ece33(0x13e)][_0x1ece33(0xe7)](this[_0x1ece33(0x13e)][_0x1ece33(0x12b)](_0x51d1c3),0x1));}get[_0xa4e42(0x14a)](){const _0x179428=_0xa4e42;return this[_0x179428(0x13e)][this[_0x179428(0x13e)][_0x179428(0x12e)]-0x1];}[_0xa4e42(0xe5)](_0x55bda9){const _0x3972b8=_0xa4e42;this[_0x3972b8(0x126)][_0x3972b8(0xe5)](_0x55bda9);}async[_0xa4e42(0x151)]({content:_0x51fc84,version:_0x1fdb91,sessionId:_0x3b20ff,selections:_0x539e3c}){const _0x2db046=_0xa4e42;await this[_0x2db046(0x126)][_0x2db046(0x124)](_0x51fc84,_0x1fdb91,_0x3b20ff,_0x539e3c);}[_0xa4e42(0x116)](){const _0x3c724c=_0xa4e42;return this[_0x3c724c(0x138)]?.[_0x3c724c(0x11c)]()?.[_0x3c724c(0x101)]||'';}[_0xa4e42(0xf1)](_0x3423aa){const _0x359abd=_0xa4e42;this[_0x359abd(0x126)][_0x359abd(0xf1)](_0x3423aa);}[_0xa4e42(0x13d)](){const _0x5ae355=_0xa4e42;this[_0x5ae355(0x126)][_0x5ae355(0x13d)]();}[_0xa4e42(0x132)](_0xccd401){const _0xde6eb2=_0xa4e42;this[_0xde6eb2(0x126)][_0xde6eb2(0x132)](_0xccd401);}[_0xa4e42(0x110)](_0x2c1bbd){const _0x483809=_0xa4e42;this[_0x483809(0x126)][_0x483809(0x110)](_0x2c1bbd);}[_0xa4e42(0x134)](_0x309202,_0x584b9f){const _0x327444=_0xa4e42;this[_0x327444(0x126)][_0x327444(0x134)](_0x309202,_0x584b9f);}[_0xa4e42(0x10f)](_0x3f9453,_0x473127,_0x2bf3e6){const _0x81b5ea=_0xa4e42;return this[_0x81b5ea(0x126)][_0x81b5ea(0x10f)](_0x3f9453,_0x473127,_0x2bf3e6);}[_0xa4e42(0xe9)](_0x6c1c64){const _0x7af457=_0xa4e42;this[_0x7af457(0x126)][_0x7af457(0xe9)](_0x6c1c64);}[_0xa4e42(0x107)](){const _0x797e53=_0xa4e42;this[_0x797e53(0xfe)][_0x797e53(0x107)]();}[_0xa4e42(0x105)](){const _0x5a3b55=_0xa4e42;this[_0x5a3b55(0xfe)][_0x5a3b55(0x105)]();}[_0xa4e42(0x125)](){const _0x31302e=_0xa4e42;return this[_0x31302e(0x126)][_0x31302e(0x125)]();}[_0xa4e42(0x141)](){const _0x2a7b78=_0xa4e42;return this[_0x2a7b78(0x126)][_0x2a7b78(0x141)]();}[_0xa4e42(0x149)](){const _0x5a9520=_0xa4e42;return this[_0x5a9520(0x126)][_0x5a9520(0x149)]();}async[_0xa4e42(0xf6)](_0x35c38a){const _0x20a1f2=_0xa4e42;_0x35c38a?!0x1===await this[_0x20a1f2(0xe6)][_0x20a1f2(0xea)](_0x35c38a)&&(_0x5bed54(_0x20a1f2(0x119),{'conversation':this,'model':_0x35c38a}),_0x35c38a=(await this[_0x20a1f2(0xe6)][_0x20a1f2(0xe2)]())[0x0]):(_0x5bed54(_0x20a1f2(0xff),{'conversation':this}),_0x35c38a=(await this[_0x20a1f2(0xe6)][_0x20a1f2(0xe2)]())[0x0]),_0x35c38a['id']!==this[_0x20a1f2(0x121)]?.['id']&&(this[_0x20a1f2(0x121)]=_0x35c38a,this[_0x20a1f2(0xfe)][_0x20a1f2(0x108)](),this[_0x20a1f2(0x12d)](_0x20a1f2(0xfb),{'selectedModel':_0x35c38a}));}}
|
|
23
|
+
const _0x123db2=_0x472a;function _0x472a(_0x3f53e8,_0x7a2107){const _0x717dbf=_0x717d();return _0x472a=function(_0x472a08,_0x5cce01){_0x472a08=_0x472a08-0x124;let _0x4869a5=_0x717dbf[_0x472a08];return _0x4869a5;},_0x472a(_0x3f53e8,_0x7a2107);}function _0x717d(){const _0x2ed14f=['fire','interactionCreated','getMessages','currentInteraction','init','indexOf','getAll','ai-chat-handle-user-interaction-already-in-progress','isCurrentDocumentInContext','loadSourceResources','content','removeFromContext','653919qGysmt','delegate','chatModels','text-delta','addUrlToContext','get','getEditor','text','ai-chat-handle-user-interaction-start-failed','error','updateCurrentDocumentInContext','toLowerCase','role','16kFDIYM','fetchConversation','hasOwn','isSelectionInContext','contextItems','10TMafSp','getPendingContextItems','setConversationTitle','code','ai-chat-handle-user-conversation-not-initialized','assistant','find','reset','chatContext','populateFromMessage','startConversation','message','toggleWebSearch','lastInteraction','isAvailable','1802124kMMboT','addFilesToContext','982534jufUvX','toggleReasoning','addSelectionToContext','isCurrentDocumentInConversation','selectedModel','selectedModelId','stack','isStarted','connector','getInteraction','90598ivgZsl','prompt','push','getCurrentDocumentContext','636LHQKlH','219901dIJkqj','group','model','quickActionData','fetchConversationMessages','webSearch','createReply','ai-chat-conversation-start-failed','addToConversationContext','title','user','_extractContextItems','1845zArZjo','modelSelected','createInteraction','appendContent','addCurrentDocumentToContext','getDocumentContext','interactions','setModel','ai-chat-conversation-init-from-id-failed','sessionId','ai-chat-conversation-start-no-model-selected','removeInteraction','addResourceToContext','length','ai-chat-conversation-init-failed','set','currentReply','attributes','removeSelectionFromContext','modification-delta','getAvailableModels','getConversation','ai-chat-conversation-set-model-not-available','splice','chatCapabilities','_processMessagesToInteractions','conversationInitialized','21960jTQWZt','type','ai-chat-conversation-set-model-null','options','10EbVcuz','6791580GJQpfs','start','destroy','conversationId','updateCurrentDocument','conversationStarted','getModel','getCapabilitiesConfig','stop','ai-chat-conversation-already-started','handleUserInteraction','capabilities','reasoning','load'];_0x717d=function(){return _0x2ed14f;};return _0x717d();}(function(_0x21d3e1,_0xc2aea2){const _0x2c248c=_0x472a,_0x39a987=_0x21d3e1();while(!![]){try{const _0x172dad=-parseInt(_0x2c248c(0x169))/0x1*(-parseInt(_0x2c248c(0x139))/0x2)+parseInt(_0x2c248c(0x184))/0x3*(-parseInt(_0x2c248c(0x191))/0x4)+parseInt(_0x2c248c(0x196))/0x5*(parseInt(_0x2c248c(0x12d))/0x6)+parseInt(_0x2c248c(0x12f))/0x7+-parseInt(_0x2c248c(0x165))/0x8*(-parseInt(_0x2c248c(0x14a))/0x9)+parseInt(_0x2c248c(0x16a))/0xa+-parseInt(_0x2c248c(0x13e))/0xb*(parseInt(_0x2c248c(0x13d))/0xc);if(_0x172dad===_0xc2aea2)break;else _0x39a987['push'](_0x39a987['shift']());}catch(_0x4e37aa){_0x39a987['push'](_0x39a987['shift']());}}}(_0x717d,0x7b2d0));import{CKEditorError as _0x18ba14,EmitterMixin as _0x3efd10,logWarning as _0x128e89}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x55fdae}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f533b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x54d1f1}from'./aichatcontext.js';import{AICapabilities as _0x4b235f,CAPABILITIES_MODEL_EVENT_NAMES as _0x2aead0}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x100734}from'./aichatinteraction.js';import{errorsMap as _0x294bea}from'../../errorsmap.js';export class AIChatConversation extends _0x3efd10(){['id'];[_0x123db2(0x136)]=!0x1;[_0x123db2(0x150)]=[];[_0x123db2(0x17b)];[_0x123db2(0x133)];[_0x123db2(0x137)];[_0x123db2(0x168)];constructor(_0x517016){const _0x362746=_0x123db2;super(),this[_0x362746(0x168)]=_0x517016,this[_0x362746(0x137)]=_0x517016[_0x362746(0x137)],this[_0x362746(0x186)]=_0x517016[_0x362746(0x186)],this['id']=_0x517016[_0x362746(0x16d)];}async[_0x123db2(0x17c)](_0x23c548){const _0x1d532b=_0x123db2;try{this[_0x1d532b(0x126)]=new _0x3f533b({'connector':this[_0x1d532b(0x137)],'config':_0x23c548,'ownerId':this['id']}),this[_0x1d532b(0x126)][_0x1d532b(0x185)](..._0x54d1f1)['to'](this),this[_0x1d532b(0x126)][_0x1d532b(0x17c)](),this[_0x1d532b(0x162)]=new _0x4b235f(),this[_0x1d532b(0x162)][_0x1d532b(0x185)](..._0x2aead0)['to'](this),this[_0x1d532b(0x162)][_0x1d532b(0x17c)]();const _0x18212c=await this[_0x1d532b(0x186)][_0x1d532b(0x15e)]();this[_0x1d532b(0x178)](_0x1d532b(0x164),{'availableModels':_0x18212c});const _0x56e4aa=await this[_0x1d532b(0x186)][_0x1d532b(0x170)](this[_0x1d532b(0x168)][_0x1d532b(0x134)]);_0x56e4aa&&await this[_0x1d532b(0x151)](_0x56e4aa);}catch(_0x201ee5){const _0x2511f8=new _0x18ba14(_0x1d532b(0x158),null,{'message':_0x201ee5[_0x1d532b(0x129)]||_0x201ee5});_0x2511f8[_0x1d532b(0x135)]=_0x201ee5[_0x1d532b(0x135)],this[_0x1d532b(0x178)](_0x1d532b(0x18d),{'error':_0x2511f8});}}async[_0x123db2(0x16b)](){const _0x13cfd9=_0x123db2;if(this[_0x13cfd9(0x136)])throw new _0x18ba14(_0x13cfd9(0x173),null,{'conversation':this});if(!this[_0x13cfd9(0x133)])throw new _0x18ba14(_0x13cfd9(0x154),null,{'conversation':this});try{const {id:_0x2385f9}=await this[_0x13cfd9(0x137)][_0x13cfd9(0x128)](this['id'],this[_0x13cfd9(0x168)][_0x13cfd9(0x13f)])[_0x13cfd9(0x15f)]();this['id']=_0x2385f9,this[_0x13cfd9(0x136)]=!0x0,this[_0x13cfd9(0x178)](_0x13cfd9(0x16f),{'conversationId':this['id'],'selectedModel':this[_0x13cfd9(0x133)]});}catch(_0x4fe3e1){const _0x422127=new _0x18ba14(_0x13cfd9(0x145),null,{'message':_0x4fe3e1[_0x13cfd9(0x129)],'conversationId':this['id']});throw _0x422127[_0x13cfd9(0x135)]=_0x4fe3e1[_0x13cfd9(0x135)],this[_0x13cfd9(0x178)](_0x13cfd9(0x18d),{'error':_0x422127}),_0x422127;}}async[_0x123db2(0x177)](_0x62882e,_0x265739){const _0x32cafb=_0x123db2;try{const _0x3174b3=await this[_0x32cafb(0x137)][_0x32cafb(0x192)](_0x62882e)[_0x32cafb(0x15f)](),_0x41fd8c=await this[_0x32cafb(0x137)][_0x32cafb(0x142)](_0x62882e)[_0x32cafb(0x17a)](),_0x13be40=_0x41fd8c[0x0][_0x32cafb(0x140)];this[_0x32cafb(0x136)]=!0x0,this['id']=_0x3174b3['id'],_0x32cafb(0x147)in _0x3174b3?this[_0x32cafb(0x178)](_0x32cafb(0x198),_0x3174b3[_0x32cafb(0x147)],!0x0):this[_0x32cafb(0x178)](_0x32cafb(0x198),'',!0x0);const _0x2711bc=(await this[_0x32cafb(0x186)][_0x32cafb(0x17e)]())[_0x32cafb(0x124)](_0x2e0b22=>_0x2e0b22['id'][_0x32cafb(0x18f)]()===_0x13be40[_0x32cafb(0x18f)]());return this[_0x32cafb(0x133)]=_0x2711bc,this[_0x32cafb(0x178)](_0x32cafb(0x14b),{'selectedModel':_0x2711bc,'isDisabled':!0x0}),await this[_0x32cafb(0x163)](_0x41fd8c,_0x265739,_0x13be40),this[_0x32cafb(0x17b)]=void 0x0,this;}catch(_0x4e896e){const _0x1a0d9e=new _0x18ba14(_0x32cafb(0x152),null,{'message':_0x4e896e[_0x32cafb(0x129)],'conversationId':_0x62882e});throw _0x1a0d9e[_0x32cafb(0x135)]=_0x4e896e[_0x32cafb(0x135)],this[_0x32cafb(0x178)](_0x32cafb(0x18d),{'error':_0x1a0d9e}),_0x1a0d9e;}}async[_0x123db2(0x163)](_0x2d8075,_0x46627b,_0x5b30b8){const _0x39cbe2=_0x123db2;let _0x524a51;for(const _0x260066 of _0x2d8075)if(_0x39cbe2(0x148)===_0x260066[_0x39cbe2(0x190)]){const _0x4afa5e=await this[_0x39cbe2(0x149)](_0x260066),_0x54828b={'isReasoningEnabled':Object[_0x39cbe2(0x193)](_0x260066[_0x39cbe2(0x175)],_0x39cbe2(0x176)),'isWebSearchEnabled':Object[_0x39cbe2(0x193)](_0x260066[_0x39cbe2(0x175)],_0x39cbe2(0x143))};_0x524a51=this[_0x39cbe2(0x14c)]({'userMessage':_0x260066[_0x39cbe2(0x13a)],'contextItems':_0x4afa5e,'capabilities':_0x54828b,'modelId':_0x5b30b8,'quickActionData':_0x260066[_0x39cbe2(0x15b)]?.[_0x39cbe2(0x141)]}),this[_0x39cbe2(0x17b)]=_0x524a51,this[_0x39cbe2(0x126)][_0x39cbe2(0x146)](this[_0x39cbe2(0x17b)][_0x39cbe2(0x195)]);}else{if(_0x39cbe2(0x19b)===_0x260066[_0x39cbe2(0x190)]&&_0x524a51)for(const _0x27ca5c of _0x260066[_0x39cbe2(0x182)]){const _0x286dbe=_0x39cbe2(0x18b)===_0x27ca5c[_0x39cbe2(0x166)]?_0x39cbe2(0x187):_0x39cbe2(0x15d),_0x504808=_0x524a51[_0x39cbe2(0x14f)]()?.[_0x39cbe2(0x153)]!==_0x46627b;_0x524a51[_0x39cbe2(0x15a)]=_0x524a51[_0x39cbe2(0x144)]({'type':_0x286dbe,'isDone':!0x0,'interactionId':_0x524a51['id'],'areActionsDisabled':_0x504808}),_0x524a51[_0x39cbe2(0x15a)][_0x39cbe2(0x14d)](_0x27ca5c[_0x39cbe2(0x182)]);}}}async[_0x123db2(0x149)](_0x1ad1ed){const _0x19f1f4=_0x123db2,_0x56dcd0=new Map();if(!_0x1ad1ed[_0x19f1f4(0x182)])return _0x56dcd0;for(const _0x56f051 of _0x1ad1ed[_0x19f1f4(0x182)]){const _0x30947e=await this[_0x19f1f4(0x126)][_0x19f1f4(0x127)](_0x56f051);_0x30947e&&_0x56dcd0[_0x19f1f4(0x159)](_0x30947e['id'],_0x30947e);}return _0x56dcd0;}async[_0x123db2(0x174)]({userMessage:_0xca9dc0,quickActionData:_0x278eb9}){const _0x3f5575=_0x123db2;if(!this[_0x3f5575(0x136)])throw new _0x18ba14(_0x3f5575(0x19a),null,{'conversation':this});if(this[_0x3f5575(0x17b)])throw new _0x18ba14(_0x3f5575(0x17f),null,{'conversation':this});try{const _0x107c85=this[_0x3f5575(0x126)][_0x3f5575(0x197)](),_0x5d55a7=this[_0x3f5575(0x162)][_0x3f5575(0x171)](),_0x5448d0=this[_0x3f5575(0x133)]['id'];this[_0x3f5575(0x17b)]=this[_0x3f5575(0x14c)]({'userMessage':_0xca9dc0,'contextItems':_0x107c85,'capabilities':_0x5d55a7,'modelId':_0x5448d0,'quickActionData':_0x278eb9}),await this[_0x3f5575(0x17b)][_0x3f5575(0x16b)](),this[_0x3f5575(0x126)][_0x3f5575(0x146)](this[_0x3f5575(0x17b)][_0x3f5575(0x195)]);}catch(_0x594e99){if(_0x594e99 instanceof _0x18ba14)this[_0x3f5575(0x178)](_0x3f5575(0x18d),{'interactionId':this[_0x3f5575(0x17b)]?this[_0x3f5575(0x17b)]['id']:void 0x0,'error':_0x594e99});else{const _0x3cefbc=_0x294bea[_0x3f5575(0x189)](_0x594e99[_0x3f5575(0x199)])||_0x3f5575(0x18c);this[_0x3f5575(0x178)](_0x3f5575(0x18d),{'interactionId':this[_0x3f5575(0x17b)]?this[_0x3f5575(0x17b)]['id']:void 0x0,'error':new _0x18ba14(_0x3cefbc,null,{'error':_0x594e99})});}}finally{this[_0x3f5575(0x17b)]?.[_0x3f5575(0x172)](),this[_0x3f5575(0x17b)]=void 0x0;}}[_0x123db2(0x14c)]({userMessage:_0x50ffda,contextItems:_0x62b25d,capabilities:_0x10007a,modelId:_0x312ba9,quickActionData:_0x162a4b}){const _0x12c796=_0x123db2,_0x4f2be4=new _0x100734({'userMessage':_0x50ffda,'contextItems':_0x62b25d,'capabilities':_0x10007a,'conversationId':this['id'],'connector':this[_0x12c796(0x137)],'editor':this[_0x12c796(0x168)][_0x12c796(0x18a)]&&this[_0x12c796(0x168)][_0x12c796(0x18a)](),'model':_0x312ba9,'quickActionData':_0x162a4b});return _0x4f2be4[_0x12c796(0x185)](..._0x55fdae)['to'](this),this[_0x12c796(0x150)][_0x12c796(0x13b)](_0x4f2be4),this[_0x12c796(0x178)](_0x12c796(0x179),_0x4f2be4),_0x4f2be4;}[_0x123db2(0x138)](_0x560171){const _0x1048be=_0x123db2;return this[_0x1048be(0x150)][_0x1048be(0x124)](_0x36d784=>_0x36d784['id']===_0x560171);}[_0x123db2(0x155)](_0x119097){const _0x1e41a1=_0x123db2,_0x56cb22=this[_0x1e41a1(0x138)](_0x119097);_0x56cb22&&(_0x56cb22[_0x1e41a1(0x16c)](),this[_0x1e41a1(0x150)][_0x1e41a1(0x161)](this[_0x1e41a1(0x150)][_0x1e41a1(0x17d)](_0x56cb22),0x1));}get[_0x123db2(0x12b)](){const _0xd5b310=_0x123db2;return this[_0xd5b310(0x150)][this[_0xd5b310(0x150)][_0xd5b310(0x157)]-0x1];}[_0x123db2(0x14e)](_0xd0fa84){const _0x5a78a9=_0x123db2;this[_0x5a78a9(0x126)][_0x5a78a9(0x14e)](_0xd0fa84);}async[_0x123db2(0x18e)]({content:_0x5f9297,version:_0x3a6741,sessionId:_0x1132ff,selections:_0x25270f}){const _0x4ee3d3=_0x123db2;await this[_0x4ee3d3(0x126)][_0x4ee3d3(0x16e)](_0x5f9297,_0x3a6741,_0x1132ff,_0x25270f);}[_0x123db2(0x13c)](){const _0x3d600e=_0x123db2;return this[_0x3d600e(0x17b)]?.[_0x3d600e(0x14f)]()?.[_0x3d600e(0x182)]||'';}[_0x123db2(0x131)](_0x46f514){const _0x567a39=_0x123db2;this[_0x567a39(0x126)][_0x567a39(0x131)](_0x46f514);}[_0x123db2(0x15c)](){const _0xe51e8c=_0x123db2;this[_0xe51e8c(0x126)][_0xe51e8c(0x15c)]();}[_0x123db2(0x12e)](_0x2b4daa){const _0xf9fbc5=_0x123db2;this[_0xf9fbc5(0x126)][_0xf9fbc5(0x12e)](_0x2b4daa);}[_0x123db2(0x188)](_0xb31cac){const _0x266518=_0x123db2;this[_0x266518(0x126)][_0x266518(0x188)](_0xb31cac);}[_0x123db2(0x156)](_0x1b6e66,_0x5e62dd){const _0x24b4dd=_0x123db2;this[_0x24b4dd(0x126)][_0x24b4dd(0x156)](_0x1b6e66,_0x5e62dd);}[_0x123db2(0x181)](_0xe598b3,_0x512f77,_0x57e196){const _0x3adc9e=_0x123db2;return this[_0x3adc9e(0x126)][_0x3adc9e(0x181)](_0xe598b3,_0x512f77,_0x57e196);}[_0x123db2(0x183)](_0x6d6462){const _0x4d45f6=_0x123db2;this[_0x4d45f6(0x126)][_0x4d45f6(0x183)](_0x6d6462);}[_0x123db2(0x12a)](){const _0x31c12e=_0x123db2;this[_0x31c12e(0x162)][_0x31c12e(0x12a)]();}[_0x123db2(0x130)](){const _0x3f4bcb=_0x123db2;this[_0x3f4bcb(0x162)][_0x3f4bcb(0x130)]();}[_0x123db2(0x180)](){const _0x1c70da=_0x123db2;return this[_0x1c70da(0x126)][_0x1c70da(0x180)]();}[_0x123db2(0x132)](){const _0x38d3f2=_0x123db2;return this[_0x38d3f2(0x126)][_0x38d3f2(0x132)]();}[_0x123db2(0x194)](){const _0x27bbaa=_0x123db2;return this[_0x27bbaa(0x126)][_0x27bbaa(0x194)]();}async[_0x123db2(0x151)](_0x1f87d8){const _0x189e20=_0x123db2;_0x1f87d8?!0x1===await this[_0x189e20(0x186)][_0x189e20(0x12c)](_0x1f87d8)&&(_0x128e89(_0x189e20(0x160),{'conversation':this,'model':_0x1f87d8}),_0x1f87d8=(await this[_0x189e20(0x186)][_0x189e20(0x15e)]())[0x0]):(_0x128e89(_0x189e20(0x167),{'conversation':this}),_0x1f87d8=(await this[_0x189e20(0x186)][_0x189e20(0x15e)]())[0x0]),_0x1f87d8['id']!==this[_0x189e20(0x133)]?.['id']&&(this[_0x189e20(0x133)]=_0x1f87d8,this[_0x189e20(0x162)][_0x189e20(0x125)](),this[_0x189e20(0x178)](_0x189e20(0x14b),{'selectedModel':_0x1f87d8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4f6e6f=_0x2221;function _0x28de(){var _0x5576e8=['contextItems','current-document','1207370djORXm','944028jmgBeF','conversationId','userMessage','connector','getCapabilitiesRequestData','model','queryAssistant','2200891dcEycW','get','getDocumentContext','mapContextItemsToRequestData','12pXXrLd','5927016rLmsrS','quickActionData','1216465fQdwHQ','173yFroTH','5418WYNdSH','1691380EvOOnt','capabilities','sendRequest','45EfNeEh'];_0x28de=function(){return _0x5576e8;};return _0x28de();}(function(_0x5c2272,_0x464d7d){var _0x142d79=_0x2221,_0x4daab4=_0x5c2272();while(!![]){try{var _0xbf16e7=parseInt(_0x142d79(0x160))/0x1*(parseInt(_0x142d79(0x161))/0x2)+parseInt(_0x142d79(0x169))/0x3+-parseInt(_0x142d79(0x162))/0x4+-parseInt(_0x142d79(0x15f))/0x5*(-parseInt(_0x142d79(0x15c))/0x6)+-parseInt(_0x142d79(0x158))/0x7+-parseInt(_0x142d79(0x15d))/0x8+-parseInt(_0x142d79(0x165))/0x9*(-parseInt(_0x142d79(0x168))/0xa);if(_0xbf16e7===_0x464d7d)break;else _0x4daab4['push'](_0x4daab4['shift']());}catch(_0x312b9e){_0x4daab4['push'](_0x4daab4['shift']());}}}(_0x28de,0x608cd));import{AICapabilities as _0x15a282}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x590539}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x27732c}from'./aichatcontext.js';function _0x2221(_0x340d33,_0x163e7e){var _0x28dee8=_0x28de();return _0x2221=function(_0x22214e,_0x215445){_0x22214e=_0x22214e-0x152;var _0x4000df=_0x28dee8[_0x22214e];return _0x4000df;},_0x2221(_0x340d33,_0x163e7e);}export class AIChatInteraction extends _0x590539{[_0x4f6e6f(0x153)];[_0x4f6e6f(0x152)];[_0x4f6e6f(0x166)]=new Map();[_0x4f6e6f(0x156)];[_0x4f6e6f(0x15e)];constructor(_0x1e68ae){var _0x4f279d=_0x4f6e6f;super(_0x1e68ae),this[_0x4f279d(0x152)]=_0x1e68ae[_0x4f279d(0x152)],this[_0x4f279d(0x166)]=_0x1e68ae[_0x4f279d(0x166)],this[_0x4f279d(0x163)]=_0x1e68ae[_0x4f279d(0x163)],this[_0x4f279d(0x153)]=_0x1e68ae[_0x4f279d(0x153)],this[_0x4f279d(0x156)]=_0x1e68ae[_0x4f279d(0x156)],this[_0x4f279d(0x15e)]=_0x1e68ae[_0x4f279d(0x15e)];}async[_0x4f6e6f(0x164)](){var _0x558b6a=_0x4f6e6f;return this[_0x558b6a(0x154)][_0x558b6a(0x157)]({'message':this[_0x558b6a(0x153)],'conversationId':this[_0x558b6a(0x152)],'parts':_0x27732c[_0x558b6a(0x15b)](this[_0x558b6a(0x166)]),'capabilities':_0x15a282[_0x558b6a(0x155)](this[_0x558b6a(0x163)]),'model':this[_0x558b6a(0x156)],'quickActionData':this[_0x558b6a(0x15e)]});}[_0x4f6e6f(0x15a)](){var _0x3bd520=_0x4f6e6f;return this[_0x3bd520(0x166)][_0x3bd520(0x159)](_0x3bd520(0x167));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ba8ee=_0x111f;(function(_0x6b7233,_0x24f9fc){const _0x5a0786=_0x111f,_0xcffa02=_0x6b7233();while(!![]){try{const _0x55e967=parseInt(_0x5a0786(0x144))/0x1*(parseInt(_0x5a0786(0x14a))/0x2)+-parseInt(_0x5a0786(0x12b))/0x3*(-parseInt(_0x5a0786(0x137))/0x4)+-parseInt(_0x5a0786(0x12e))/0x5*(-parseInt(_0x5a0786(0x14d))/0x6)+parseInt(_0x5a0786(0x13a))/0x7*(parseInt(_0x5a0786(0x156))/0x8)+parseInt(_0x5a0786(0x146))/0x9*(-parseInt(_0x5a0786(0x145))/0xa)+parseInt(_0x5a0786(0x13f))/0xb*(parseInt(_0x5a0786(0x13d))/0xc)+parseInt(_0x5a0786(0x138))/0xd*(-parseInt(_0x5a0786(0x128))/0xe);if(_0x55e967===_0x24f9fc)break;else _0xcffa02['push'](_0xcffa02['shift']());}catch(_0x7dbc68){_0xcffa02['push'](_0xcffa02['shift']());}}}(_0x208f,0x4b504));import{ButtonView as _0x38b33f,clickOutsideHandler as _0x981bab,View as _0x27175e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x35f017}from'./controls/aichatpromptinputview.js';function _0x111f(_0x2f033b,_0x1d5882){const _0x208f95=_0x208f();return _0x111f=function(_0x111f0d,_0x3c3ddf){_0x111f0d=_0x111f0d-0x103;let _0x2c8eb2=_0x208f95[_0x111f0d];return _0x2c8eb2;},_0x111f(_0x2f033b,_0x1d5882);}import{AIChatPromptCapabilitiesView as _0x47b1b6}from'./controls/aichatpromptcapabilitiesview.js';function _0x208f(){const _0x516329=['_displayedModels','locale','setAddContextOptions','624UKCjHF','resetMessageInput','delegate','738yvFWBz','toggleReasoning','setReasoning','ck-ai-chat-controls-model-unavailable-message','isLoading','setModel','agent','_createPromptInputView','focus','146456WKlhMD','div','_modelUnavailableMessageView','isDisabled','startsWith','selectModel','populateSourceResourceBalloon','_shouldRestorePromptInputFocus','clearConversationContextItems','low','isModelAvailable','form','ck-hidden','disableModelSelector','reset','set','setIsUploadInProgress','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','change:isLoading','ck-ai-chat-controls__start-new-chat-button','_handlePromptInputFocus','toggleWebSearch','_createPromptCapabilitiesView','closeSourceResourceBalloon','updateResourceState','ck-ai-chat-controls','_loaderView','setContextItemLoading','addContextButtonView','contextResourcesSearchInputVisibleFrom','setInputPlaceholder','clearConversationContextUI','execute','setPlaceholderText','setWebSearch','bindTemplate','setModelList','setTemplate','8806Ieppby','_promptCapabilitiesView','_createLoaderView','87iEYnzM','_promptInputView','focusPromptInput','13415NmsuUQ','startConversation','addContextItem','_createContextPanelView','clearPendingContextUI','abortPromptStream','clearCurrentContextItems','_createModelUnavailableMessageView','element','61756CkRqci','22243ozJWuY','sendUserMessage','77JiznwM','removeContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','3385752dqoLxS','_contextPanelView','11yjXBUk','find','setConversationContext','ck-ai-chat-controls-disabled','bodyCollection','1787fHJCxJ','80AQbtcj','488367zLJsMf'];_0x208f=function(){return _0x516329;};return _0x208f();}import{AIChatContextPanelView as _0x1da27d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2fdc92}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x771d06}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5606b0}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x27175e{[_0x4ba8ee(0x147)]=[];[_0x4ba8ee(0x13e)];[_0x4ba8ee(0x12c)];[_0x4ba8ee(0x129)];[_0x4ba8ee(0x11c)];[_0x4ba8ee(0x103)];[_0x4ba8ee(0x108)];constructor(_0x3e7d48,_0x18b992){const _0x3b9a71=_0x4ba8ee;super(_0x3e7d48),this[_0x3b9a71(0x13e)]=this[_0x3b9a71(0x131)](_0x3e7d48,{'bodyCollection':_0x18b992[_0x3b9a71(0x143)],'searchInputVisibleFrom':_0x18b992[_0x3b9a71(0x11f)]}),this[_0x3b9a71(0x12c)]=this[_0x3b9a71(0x154)](_0x3e7d48),this[_0x3b9a71(0x129)]=this[_0x3b9a71(0x118)](_0x3e7d48),this[_0x3b9a71(0x11c)]=this[_0x3b9a71(0x12a)](_0x3e7d48),this[_0x3b9a71(0x103)]=this[_0x3b9a71(0x135)](_0x3e7d48),this[_0x3b9a71(0x108)]=!0x1,this[_0x3b9a71(0x12c)][_0x3b9a71(0x14c)](_0x3b9a71(0x139))['to'](this),this[_0x3b9a71(0x11c)][_0x3b9a71(0x14c)](_0x3b9a71(0x133))['to'](this),this[_0x3b9a71(0x129)][_0x3b9a71(0x14c)](_0x3b9a71(0x117))['to'](this),this[_0x3b9a71(0x129)][_0x3b9a71(0x14c)](_0x3b9a71(0x14e))['to'](this),this[_0x3b9a71(0x129)][_0x3b9a71(0x14c)](_0x3b9a71(0x106))['to'](this),this[_0x3b9a71(0x13e)][_0x3b9a71(0x14c)](..._0x2fdc92)['to'](this),this[_0x3b9a71(0x110)](_0x3b9a71(0x10b),!0x0),this[_0x3b9a71(0x110)](_0x3b9a71(0x104),!0x1);const _0x3395f8=this[_0x3b9a71(0x125)];this[_0x3b9a71(0x127)]({'tag':_0x3b9a71(0x10c),'attributes':{'class':['ck',_0x3b9a71(0x11b),_0x3395f8['if'](_0x3b9a71(0x104),_0x3b9a71(0x142))]},'children':[{'tag':_0x3b9a71(0x157),'attributes':{'class':[_0x3395f8['if'](_0x3b9a71(0x151),_0x3b9a71(0x10d),_0x5593aa=>_0x5593aa||!this[_0x3b9a71(0x10b)]),_0x3395f8['if'](_0x3b9a71(0x10b),_0x3b9a71(0x10d),_0x1dac69=>!_0x1dac69||this[_0x3b9a71(0x151)])]},'children':[this[_0x3b9a71(0x13e)],this[_0x3b9a71(0x12c)],this[_0x3b9a71(0x129)]]},{'tag':_0x3b9a71(0x157),'attributes':{'class':[_0x3395f8['if'](_0x3b9a71(0x151),_0x3b9a71(0x10d),_0x5fc8a4=>!_0x5fc8a4)]},'children':[this[_0x3b9a71(0x11c)]]},{'tag':_0x3b9a71(0x157),'attributes':{'class':[_0x3395f8['if'](_0x3b9a71(0x10b),_0x3b9a71(0x10d),_0x26efc5=>_0x26efc5)]},'children':[this[_0x3b9a71(0x103)]]}]}),_0x981bab({'emitter':this[_0x3b9a71(0x12c)],'activator':()=>this[_0x3b9a71(0x151)],'contextElements':()=>[this[_0x3b9a71(0x136)]],'callback':()=>{const _0x35d86a=_0x3b9a71;this[_0x35d86a(0x108)]=!0x1;}}),this['on'](_0x3b9a71(0x114),this[_0x3b9a71(0x116)],{'priority':_0x3b9a71(0x10a)});}[_0x4ba8ee(0x131)](_0x4ff0c9,_0x2f8a81){return new _0x1da27d(_0x4ff0c9,_0x2f8a81);}[_0x4ba8ee(0x154)](_0x1c654f){const _0x504dba=_0x4ba8ee;return new _0x35f017(_0x1c654f,this[_0x504dba(0x13e)][_0x504dba(0x11e)]);}[_0x4ba8ee(0x118)](_0x588c7f){return new _0x47b1b6(_0x588c7f);}[_0x4ba8ee(0x12a)](_0x3f1f74){return new _0x771d06(_0x3f1f74);}[_0x4ba8ee(0x135)](_0x313e0a){const _0x457d3c=_0x4ba8ee,_0x499013=new ws(_0x313e0a);return _0x499013[_0x457d3c(0x14c)](_0x457d3c(0x12f))['to'](this),_0x499013;}[_0x4ba8ee(0x116)](_0x5a18fe,_0x4bebb6,_0x57a793){const _0x1b3fcf=_0x4ba8ee;_0x57a793?this[_0x1b3fcf(0x108)]=!0x0:this[_0x1b3fcf(0x108)]&&this[_0x1b3fcf(0x12c)][_0x1b3fcf(0x155)]();}[_0x4ba8ee(0x130)](_0x260db3,_0x2b2828){const _0x9de855=_0x4ba8ee;this[_0x9de855(0x13e)][_0x9de855(0x130)](_0x260db3,_0x2b2828);}[_0x4ba8ee(0x13b)](_0x5ee099){const _0xe8515d=_0x4ba8ee;this[_0xe8515d(0x13e)][_0xe8515d(0x13b)](_0x5ee099);}[_0x4ba8ee(0x11d)](_0x1a546b,_0x5ccb14){const _0x24d34d=_0x4ba8ee;this[_0x24d34d(0x13e)][_0x24d34d(0x11d)](_0x1a546b,_0x5ccb14);}[_0x4ba8ee(0x111)](_0xd071bb){const _0x5bea34=_0x4ba8ee;this[_0x5bea34(0x12c)][_0x5bea34(0x111)](_0xd071bb);}[_0x4ba8ee(0x141)](_0x1ba137){const _0x146c0b=_0x4ba8ee;this[_0x146c0b(0x13e)][_0x146c0b(0x141)](_0x1ba137);}[_0x4ba8ee(0x132)](){const _0x267c15=_0x4ba8ee;this[_0x267c15(0x13e)][_0x267c15(0x134)]();}[_0x4ba8ee(0x121)](){const _0x5b21d=_0x4ba8ee;this[_0x5b21d(0x13e)][_0x5b21d(0x109)]();}[_0x4ba8ee(0x11a)](_0x3b70ec,_0x325e6b,_0x550b1a){const _0x29abd0=_0x4ba8ee;this[_0x29abd0(0x13e)][_0x29abd0(0x11a)](_0x3b70ec,_0x325e6b,_0x550b1a);}[_0x4ba8ee(0x124)](_0x2ac06d){const _0x400b5e=_0x4ba8ee;this[_0x400b5e(0x129)][_0x400b5e(0x124)](_0x2ac06d);}[_0x4ba8ee(0x14f)](_0x12fb24){const _0x32fcf9=_0x4ba8ee;this[_0x32fcf9(0x129)][_0x32fcf9(0x14f)](_0x12fb24);}[_0x4ba8ee(0x14b)](){const _0x2185f5=_0x4ba8ee;this[_0x2185f5(0x12c)][_0x2185f5(0x10f)]();}[_0x4ba8ee(0x149)](_0xbc422a){const _0x694e23=_0x4ba8ee;this[_0x694e23(0x13e)][_0x694e23(0x149)](_0xbc422a);}[_0x4ba8ee(0x120)](_0x414ab1){const _0x4b7ca1=_0x4ba8ee;this[_0x4b7ca1(0x12c)][_0x4b7ca1(0x123)](_0x414ab1);}[_0x4ba8ee(0x126)](_0x2643fa,_0x3219f2){const _0x1ba4fa=_0x4ba8ee;this[_0x1ba4fa(0x147)]=_0x2643fa,this[_0x1ba4fa(0x129)][_0x1ba4fa(0x126)](_0x2643fa,_0x3219f2);}[_0x4ba8ee(0x152)](_0x412306){const _0x1d3691=_0x4ba8ee;(_0x412306?this[_0x1d3691(0x147)][_0x1d3691(0x140)](_0x2aeec4=>_0x2aeec4['id']===_0x412306['id']):null)?(this[_0x1d3691(0x10b)]=!0x0,this[_0x1d3691(0x129)][_0x1d3691(0x152)](_0x412306)):_0x412306?.['id'][_0x1d3691(0x105)](_0x1d3691(0x153))?(this[_0x1d3691(0x10b)]=!0x0,this[_0x1d3691(0x129)][_0x1d3691(0x152)](this[_0x1d3691(0x147)][0x0])):this[_0x1d3691(0x10b)]=!0x1;}[_0x4ba8ee(0x112)](){const _0x41393a=_0x4ba8ee;this[_0x41393a(0x129)][_0x41393a(0x112)]();}[_0x4ba8ee(0x10e)](_0x146623){const _0x5261be=_0x4ba8ee;this[_0x5261be(0x129)][_0x5261be(0x10e)](_0x146623);}[_0x4ba8ee(0x107)](_0xc7ad56,_0xcaca57,_0x59334c,_0x392de7){const _0x3673c7=_0x4ba8ee;this[_0x3673c7(0x13e)][_0x3673c7(0x107)](_0xc7ad56,_0xcaca57,_0x59334c,_0x392de7);}[_0x4ba8ee(0x119)](_0x4d47ad){const _0x5ee586=_0x4ba8ee;this[_0x5ee586(0x13e)][_0x5ee586(0x119)](_0x4d47ad);}[_0x4ba8ee(0x12d)](){const _0x42785d=_0x4ba8ee;this[_0x42785d(0x12c)][_0x42785d(0x155)]();}}class ws extends _0x27175e{constructor(_0x6fbb30){const _0x7c32d7=_0x4ba8ee;super(_0x6fbb30);const _0x35ddbe=new _0x38b33f(_0x6fbb30);_0x35ddbe[_0x7c32d7(0x110)]({'label':_0x5606b0(this[_0x7c32d7(0x148)],_0x7c32d7(0x13c)),'withText':!0x0,'class':[_0x7c32d7(0x115)],'tooltip':''}),_0x35ddbe[_0x7c32d7(0x14c)](_0x7c32d7(0x122))['to'](this,_0x7c32d7(0x12f)),this[_0x7c32d7(0x127)]({'tag':_0x7c32d7(0x157),'attributes':{'class':['ck',_0x7c32d7(0x150)]},'children':[{'tag':'p','children':[{'text':_0x5606b0(this[_0x7c32d7(0x148)],_0x7c32d7(0x113))+'\x20'},_0x35ddbe]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c2a9=_0x212c;(function(_0xae4015,_0x310ae8){const _0x1baf49=_0x212c,_0x2054ba=_0xae4015();while(!![]){try{const _0xf6aa9b=-parseInt(_0x1baf49(0x20d))/0x1*(-parseInt(_0x1baf49(0x21a))/0x2)+parseInt(_0x1baf49(0x1f3))/0x3+-parseInt(_0x1baf49(0x1f7))/0x4+parseInt(_0x1baf49(0x21b))/0x5+-parseInt(_0x1baf49(0x1db))/0x6*(-parseInt(_0x1baf49(0x1d7))/0x7)+parseInt(_0x1baf49(0x1fe))/0x8+-parseInt(_0x1baf49(0x207))/0x9;if(_0xf6aa9b===_0x310ae8)break;else _0x2054ba['push'](_0x2054ba['shift']());}catch(_0x4b19c5){_0x2054ba['push'](_0x2054ba['shift']());}}}(_0x4bef,0xa10e3));import{CKEditorError as _0x3a85df,logWarning as _0x1febc1,scrollViewportToShowTarget as _0x39850a}from'ckeditor5/src/utils.js';import{View as _0x421e4c}from'ckeditor5/src/ui.js';function _0x4bef(){const _0x1512a9=['ck-ai-chat__loader-text','element','loadingMessage','17772DButZZ','5565285aVPzAL','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','createCollection','_bodyCollection','ai-chat-feed-view-item-not-a-suggestion-item','div','find','ai-suggestion-reply','render','startAutoScroll','stop','147021DChYsv','set','updateReplyItem','aiFeed','6rphLFz','start','getPartView','updatePartState','ck-ai-chat__loader','ai-chat-feed-view-item-not-a-reply-item','_createFeedLoader','removeItem','delegate','ai-chat-feed-view-item-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','toggleLoadingSkeleton','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','isPending','includes','bindTemplate','destroy','isLoadingSkeletonVisible','ai-reply','updateWebSources','setTemplate','extendTemplate','map','ck-ai-chat__feed','1702506oUgqST','ck-hidden','bind','scrollManager','311256rmxPUP','addItem','getItemById','locale','options','_setupTemplate','add','7310432haGovx','_createSkeletonLoader','setLoadingMessage','remove','_createFeedItems','scrollToSuggestion','isTrackChangesOn','markAsDone','updateContent','21619287AEOaVq','updateSuggestionPartState','user-message','interaction-header','isVisible','markItemAsDone','59qItNGX','_createTemplateChildren','stopAutoScroll','getItemIds','span','children','ck-ai-chat__feed__items','_createLoaderChildren','clear','updateSuggestionItem'];_0x4bef=function(){return _0x1512a9;};return _0x4bef();}import{AI_CHAT_UI_EVENT_NAMES as _0x47ebe0}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3b7127}from'./feed/aichatfeedsuggestionitemview.js';function _0x212c(_0x5cfd1d,_0x348e76){const _0x4bef75=_0x4bef();return _0x212c=function(_0x212cc8,_0x5aa1c){_0x212cc8=_0x212cc8-0x1d0;let _0xaa70aa=_0x4bef75[_0x212cc8];return _0xaa70aa;},_0x212c(_0x5cfd1d,_0x348e76);}import{AIChatFeedReplyItemView as _0x5490a8}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4922d2}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2a68ba}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2d081d}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4999b8}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1d8539,SKELETON_DEFINITIONS as _0x1c2e40}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4c7445}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x421e4c{[_0x55c2a9(0x212)];[_0x55c2a9(0x1f6)];[_0x55c2a9(0x21f)];constructor(_0x254328,_0xe2d4c9){const _0x1d4c52=_0x55c2a9;super(_0x254328),this[_0x1d4c52(0x21f)]=_0xe2d4c9,this[_0x1d4c52(0x1d8)](_0x1d4c52(0x1e8),!0x1),this[_0x1d4c52(0x1d8)](_0x1d4c52(0x219),''),this[_0x1d4c52(0x1d8)](_0x1d4c52(0x1ec),!0x1),this[_0x1d4c52(0x1d8)](_0x1d4c52(0x204),!0x1),this[_0x1d4c52(0x212)]=this[_0x1d4c52(0x21e)](),this[_0x1d4c52(0x212)][_0x1d4c52(0x1e3)](..._0x47ebe0)['to'](this),this[_0x1d4c52(0x1fc)]();}[_0x55c2a9(0x1d4)](){const _0x18f7dc=_0x55c2a9;super[_0x18f7dc(0x1d4)](),this[_0x18f7dc(0x1f6)]=new _0x4999b8(this[_0x18f7dc(0x218)]);}[_0x55c2a9(0x1eb)](){const _0x59c297=_0x55c2a9;super[_0x59c297(0x1eb)](),this[_0x59c297(0x1f6)][_0x59c297(0x1eb)]();}[_0x55c2a9(0x215)](){const _0x2cfab4=_0x55c2a9;this[_0x2cfab4(0x212)][_0x2cfab4(0x215)]();}[_0x55c2a9(0x1f8)](_0x535dbc,_0x3a91f9){const _0x119eab=_0x55c2a9;let _0x202a08;_0x119eab(0x1ed)===_0x535dbc?_0x202a08=new _0x5490a8(this[_0x119eab(0x1fa)],_0x3a91f9,this[_0x119eab(0x21f)]):_0x119eab(0x1d3)===_0x535dbc?(_0x202a08=new _0x3b7127(this[_0x119eab(0x1fa)],_0x3a91f9,this[_0x119eab(0x21f)]),_0x202a08[_0x119eab(0x1f5)](_0x119eab(0x204))['to'](this,_0x119eab(0x204))):_0x202a08=_0x119eab(0x209)===_0x535dbc?new _0x4922d2(this[_0x119eab(0x1fa)],_0x3a91f9,this[_0x119eab(0x21f)]):_0x119eab(0x20a)===_0x535dbc?new _0x2d081d(this[_0x119eab(0x1fa)],_0x3a91f9):new _0x2a68ba(_0x3a91f9),this[_0x119eab(0x212)][_0x119eab(0x1fd)](_0x202a08);}async[_0x55c2a9(0x1d9)]({id:_0x5d9b25,parsedContent:_0x29a323,renderingStrategy:_0x17133a,abortSignal:_0x4f74cd}){const _0x5c7994=_0x55c2a9,_0x477230=this[_0x5c7994(0x1f9)](_0x5d9b25);if(!(_0x477230 instanceof _0x5490a8))throw new _0x3a85df(_0x5c7994(0x1e0),null,{'itemView':_0x477230,'id':_0x5d9b25,'parsedContent':_0x29a323});await _0x477230[_0x5c7994(0x206)]({'parsedContent':_0x29a323,'renderingStrategy':_0x17133a,'abortSignal':_0x4f74cd});}async[_0x55c2a9(0x1ee)](_0x3600d5,_0x44fff1){const _0x21d15c=_0x55c2a9,_0x3864e9=this[_0x21d15c(0x1f9)](_0x3600d5);if(_0x3864e9 instanceof _0x3b7127)_0x3864e9[_0x21d15c(0x21c)](_0x44fff1);else{if(!(_0x3864e9 instanceof _0x5490a8))throw new _0x3a85df(_0x21d15c(0x1e7),null,{'itemView':_0x3864e9,'id':_0x3600d5,'sources':_0x44fff1});_0x3864e9[_0x21d15c(0x21c)](_0x44fff1);}}async[_0x55c2a9(0x216)]({id:_0x55626c,parts:_0x52f5ca,renderingStrategy:_0x23637,abortSignal:_0x32699b}){const _0x4e4139=_0x55c2a9,_0x56337b=this[_0x4e4139(0x1f9)](_0x55626c);if(!(_0x56337b instanceof _0x3b7127))throw new _0x3a85df(_0x4e4139(0x1d0),null,{'itemView':_0x56337b,'id':_0x55626c,'parts':_0x52f5ca});await _0x56337b[_0x4e4139(0x206)]({'parts':_0x52f5ca,'renderingStrategy':_0x23637,'abortSignal':_0x32699b});}[_0x55c2a9(0x208)]({id:_0x38ebb3,index:_0x3da0ee,state:_0x2e4239}){const _0x4b2edd=_0x55c2a9,_0x4304a6=this[_0x4b2edd(0x1f9)](_0x38ebb3);if(!(_0x4304a6 instanceof _0x3b7127))throw new _0x3a85df(_0x4b2edd(0x1d0),this,{'id':_0x38ebb3});_0x4304a6[_0x4b2edd(0x1de)](_0x3da0ee,_0x2e4239);}[_0x55c2a9(0x20c)](_0x28ecf6){const _0x5e4c0c=_0x55c2a9;this[_0x5e4c0c(0x1f9)](_0x28ecf6)[_0x5e4c0c(0x205)]();}[_0x55c2a9(0x210)](){const _0x24c829=_0x55c2a9;return this[_0x24c829(0x212)][_0x24c829(0x1f1)](_0x10ad14=>_0x10ad14[_0x24c829(0x1fb)]['id']);}[_0x55c2a9(0x1e2)](_0x5a7cc6){const _0x6ef9f1=_0x55c2a9;this[_0x6ef9f1(0x212)][_0x6ef9f1(0x201)](this[_0x6ef9f1(0x1f9)](_0x5a7cc6));}[_0x55c2a9(0x203)](_0x188857,_0x2cc5a9){const _0x320975=_0x55c2a9,_0x23ad5f=this[_0x320975(0x1f9)](_0x188857);if(!(_0x23ad5f instanceof _0x3b7127))return void _0x1febc1(_0x320975(0x1e5),{'replyId':_0x188857,'partIndex':_0x2cc5a9});const _0x206ff0=_0x23ad5f[_0x320975(0x1dd)](_0x2cc5a9);_0x206ff0?_0x39850a({'target':_0x206ff0[_0x320975(0x218)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1febc1(_0x320975(0x21d),{'replyId':_0x188857,'partIndex':_0x2cc5a9});}[_0x55c2a9(0x1fc)](){const _0x50947d=_0x55c2a9;this[_0x50947d(0x1ef)]({'tag':_0x50947d(0x1d1),'attributes':{'class':['ck',_0x50947d(0x1f2)]},'children':this[_0x50947d(0x20e)]()});}[_0x55c2a9(0x20e)](){const _0x5cfa3d=_0x55c2a9,_0x1e9c11=this[_0x5cfa3d(0x1ff)]();return[this[_0x5cfa3d(0x202)](),_0x1e9c11,this[_0x5cfa3d(0x1e1)]()];}[_0x55c2a9(0x1ff)](){const _0x39daaa=_0x55c2a9,_0x5c0fa7=new _0x1d8539(this[_0x39daaa(0x1fa)],_0x1c2e40[_0x39daaa(0x1da)]);return _0x5c0fa7[_0x39daaa(0x1f0)]({'attributes':{'class':[this[_0x39daaa(0x1ea)]['if'](_0x39daaa(0x1ec),_0x39daaa(0x1f4),_0x1d93b4=>!_0x1d93b4)]}}),_0x5c0fa7;}[_0x55c2a9(0x202)](){const _0x26af44=_0x55c2a9,_0x326f0d=new _0x421e4c(this[_0x26af44(0x1fa)]);return _0x326f0d[_0x26af44(0x1ef)]({'tag':_0x26af44(0x1d1),'attributes':{'class':['ck',_0x26af44(0x213),this[_0x26af44(0x1ea)]['if'](_0x26af44(0x1ec),_0x26af44(0x1f4))]},'children':this[_0x26af44(0x212)]}),_0x326f0d;}[_0x55c2a9(0x1e1)](){const _0x33d25a=_0x55c2a9,_0x4e7222=new _0x421e4c(this[_0x33d25a(0x1fa)]);return _0x4e7222[_0x33d25a(0x1ef)]({'tag':_0x33d25a(0x1d1),'attributes':{'class':['ck',_0x33d25a(0x1df),this[_0x33d25a(0x1ea)]['if'](_0x33d25a(0x1e8),_0x33d25a(0x1f4),_0x95eef=>!_0x95eef)]},'children':this[_0x33d25a(0x214)]()}),_0x4e7222;}[_0x55c2a9(0x214)](){const _0x355fa8=_0x55c2a9,_0x2fc175=new _0x4c7445();return _0x2fc175[_0x355fa8(0x20b)]=!0x0,[_0x2fc175,{'tag':_0x355fa8(0x211),'attributes':{'class':['ck',_0x355fa8(0x217)]},'children':[{'text':this[_0x355fa8(0x1ea)]['to'](_0x355fa8(0x219))}]}];}[_0x55c2a9(0x1f9)](_0x48b9c7){const _0x18eecc=_0x55c2a9,_0x3a57b6=this[_0x18eecc(0x212)][_0x18eecc(0x1d2)](_0x2943b6=>_0x2943b6[_0x18eecc(0x1fb)]['id'][_0x18eecc(0x1e9)](_0x48b9c7));if(!_0x3a57b6)throw new _0x3a85df(_0x18eecc(0x1e4),this,{'id':_0x48b9c7});return _0x3a57b6;}[_0x55c2a9(0x200)](_0x37763d){const _0xebf6fb=_0x55c2a9;this[_0xebf6fb(0x1d8)](_0xebf6fb(0x219),_0x37763d);}[_0x55c2a9(0x1e6)](_0x88dc22){const _0x2fb6ca=_0x55c2a9;this[_0x2fb6ca(0x1d8)](_0x2fb6ca(0x1ec),_0x88dc22);}[_0x55c2a9(0x1d5)](){const _0x419917=_0x55c2a9;this[_0x419917(0x1f6)][_0x419917(0x1dc)]();}[_0x55c2a9(0x20f)](){const _0x249e73=_0x55c2a9;this[_0x249e73(0x1f6)][_0x249e73(0x1d6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf0db10=_0x345a;(function(_0x34e5ba,_0xc51118){const _0x406849=_0x345a,_0x3507e9=_0x34e5ba();while(!![]){try{const _0x545540=-parseInt(_0x406849(0x19f))/0x1+-parseInt(_0x406849(0x190))/0x2*(-parseInt(_0x406849(0x1a0))/0x3)+parseInt(_0x406849(0x191))/0x4*(parseInt(_0x406849(0x19c))/0x5)+parseInt(_0x406849(0x1a3))/0x6*(-parseInt(_0x406849(0x19b))/0x7)+parseInt(_0x406849(0x1a5))/0x8*(parseInt(_0x406849(0x19e))/0x9)+parseInt(_0x406849(0x18c))/0xa+parseInt(_0x406849(0x194))/0xb;if(_0x545540===_0xc51118)break;else _0x3507e9['push'](_0x3507e9['shift']());}catch(_0x3b5146){_0x3507e9['push'](_0x3507e9['shift']());}}}(_0x38cd,0x659f7));import{ButtonView as _0x1a9ef8,FormHeaderView as _0xd0bd19}from'ckeditor5/src/ui.js';import{IconPlus as _0x2b341e,IconAIChat as _0xcb5352}from'ckeditor5/src/icons.js';import{getTranslation as _0x20b402}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x123aa0}from'../../aicore/utils/createresizebutton.js';function _0x345a(_0x1551b0,_0x45d5f6){const _0x38cd25=_0x38cd();return _0x345a=function(_0x345aac,_0x12469c){_0x345aac=_0x345aac-0x18c;let _0x1593c9=_0x38cd25[_0x345aac];return _0x1593c9;},_0x345a(_0x1551b0,_0x45d5f6);}export class AIChatHeaderView extends _0xd0bd19{[_0xf0db10(0x195)];[_0xf0db10(0x19a)];constructor(_0x1020f6,_0x3b3391){const _0x229eba=_0xf0db10;super(_0x1020f6,{'label':_0x20b402(_0x1020f6,_0x229eba(0x18d)),'class':_0x229eba(0x199),'icon':_0xcb5352}),this[_0x229eba(0x197)](_0x229eba(0x1a4),!0x1),this[_0x229eba(0x195)]=this[_0x229eba(0x192)](_0x1020f6),this[_0x229eba(0x1a1)][_0x229eba(0x193)](this[_0x229eba(0x195)]),_0x3b3391&&(this[_0x229eba(0x19a)]=_0x123aa0(_0x1020f6,this),this[_0x229eba(0x1a1)][_0x229eba(0x193)](this[_0x229eba(0x19a)]));}[_0xf0db10(0x192)](_0x5e31f5){const _0x1adef5=_0xf0db10,_0x560ffe=new _0x1a9ef8(_0x5e31f5);return _0x560ffe[_0x1adef5(0x197)]({'label':_0x20b402(this[_0x1adef5(0x196)],_0x1adef5(0x18e)),'withText':!0x0,'icon':_0x2b341e,'class':_0x1adef5(0x1a2)}),_0x560ffe['on'](_0x1adef5(0x198),()=>{const _0x2033fc=_0x1adef5;this[_0x2033fc(0x19d)](_0x2033fc(0x18f));}),_0x560ffe;}}function _0x38cd(){const _0xf998c5=['add','165748GMaFrq','conversationStartButton','locale','set','execute','ck-ai-header\x20ck-ai-header_chat','resizeButton','2024939cozZtm','2985dvdhkZ','fire','8739yXDDlC','617625zBNMDW','3myumNo','children','ck-ai-chat__start-conversation','6qnJlzD','isMaximized','4872IlJTkG','4103680egRtJz','AI_CHAT_HEADING','AI_CHAT_LABEL_NEW_CHAT','startConversation','536332kwbbCo','256UgJnzK','_createStartConversationButton'];_0x38cd=function(){return _0xf998c5;};return _0x38cd();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x334a(){var _0x5916e2=['10NdoCbH','populateSourceResourceBalloon','594215huCaHA','chatDisclaimer','6009507mNoIbP','showResizeButton','attachToDom','3650SxVuMh','detachFromDom','contextResourcesSearchInputVisibleFrom','566216xWqcKX','21921030gTVkRP','div','ck-ai-chat','setTemplate','975vNTcnm','ck-rounded-corners','14etkjzm','uiLanguageDirection','905444LdJWRg','chatFeed','_bodyCollection','ck-reset_all','5128350QzIbMt','destroy','chatControls','closeSourceResourceBalloon','chatHeader','delegate'];_0x334a=function(){return _0x5916e2;};return _0x334a();}var _0x1a0f84=_0x4cd5;(function(_0x30c028,_0x4055e3){var _0x520f98=_0x4cd5,_0x37b44c=_0x30c028();while(!![]){try{var _0x5d9a7d=-parseInt(_0x520f98(0x1d1))/0x1+parseInt(_0x520f98(0x1d6))/0x2*(-parseInt(_0x520f98(0x1de))/0x3)+-parseInt(_0x520f98(0x1e2))/0x4*(parseInt(_0x520f98(0x1cf))/0x5)+-parseInt(_0x520f98(0x1e6))/0x6+parseInt(_0x520f98(0x1e0))/0x7*(parseInt(_0x520f98(0x1d9))/0x8)+parseInt(_0x520f98(0x1d3))/0x9+parseInt(_0x520f98(0x1da))/0xa;if(_0x5d9a7d===_0x4055e3)break;else _0x37b44c['push'](_0x37b44c['shift']());}catch(_0x16fd49){_0x37b44c['push'](_0x37b44c['shift']());}}}(_0x334a,0x7bae1));import{View as _0x17a19e,BodyCollection as _0x47137b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4685bd}from'../utils/eventnames.js';import{AIChatFeedView as _0x25340b}from'./aichatfeedview.js';import{AIChatControlsView as _0x359251}from'./aichatcontrolsview.js';function _0x4cd5(_0x38d0d5,_0x581120){var _0x334ae8=_0x334a();return _0x4cd5=function(_0x4cd5a8,_0x41c7c0){_0x4cd5a8=_0x4cd5a8-0x1cb;var _0x464d40=_0x334ae8[_0x4cd5a8];return _0x464d40;},_0x4cd5(_0x38d0d5,_0x581120);}import{AIChatHeaderView as _0x171897}from'./aichatheaderview.js';import{AIDisclaimerView as _0x27e167}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x17a19e{[_0x1a0f84(0x1cd)];[_0x1a0f84(0x1e3)];[_0x1a0f84(0x1cb)];[_0x1a0f84(0x1d2)];[_0x1a0f84(0x1e4)];constructor(_0x53760c,_0x303239){var _0x2b5676=_0x1a0f84;super(_0x53760c),this[_0x2b5676(0x1e4)]=new _0x47137b(_0x53760c),this[_0x2b5676(0x1e4)][_0x2b5676(0x1d5)](),this[_0x2b5676(0x1cd)]=new _0x171897(_0x53760c,_0x303239[_0x2b5676(0x1d4)]),this[_0x2b5676(0x1cd)][_0x2b5676(0x1ce)](..._0x4685bd)['to'](this),this[_0x2b5676(0x1e3)]=new _0x25340b(_0x53760c,this[_0x2b5676(0x1e4)]),this[_0x2b5676(0x1e3)][_0x2b5676(0x1ce)](..._0x4685bd)['to'](this),this[_0x2b5676(0x1cb)]=new _0x359251(_0x53760c,{'bodyCollection':this[_0x2b5676(0x1e4)],'contextResourcesSearchInputVisibleFrom':_0x303239[_0x2b5676(0x1d8)]}),this[_0x2b5676(0x1cb)][_0x2b5676(0x1ce)](..._0x4685bd)['to'](this),this[_0x2b5676(0x1d2)]=new _0x27e167(_0x53760c),this[_0x2b5676(0x1dd)]({'tag':_0x2b5676(0x1db),'attributes':{'class':['ck',_0x2b5676(0x1e5),_0x2b5676(0x1dc),_0x2b5676(0x1df)],'dir':_0x53760c[_0x2b5676(0x1e1)]},'children':[this[_0x2b5676(0x1cd)],this[_0x2b5676(0x1e3)],this[_0x2b5676(0x1cb)],this[_0x2b5676(0x1d2)]]});}[_0x1a0f84(0x1d0)](_0x189b9d,_0x29b939,_0x4e5899,_0x2cca6b){var _0x29c0dd=_0x1a0f84;this[_0x29c0dd(0x1cb)][_0x29c0dd(0x1d0)](_0x189b9d,_0x29b939,_0x4e5899,_0x2cca6b);}[_0x1a0f84(0x1cc)](_0x4acf1e){var _0x119e9a=_0x1a0f84;this[_0x119e9a(0x1cb)][_0x119e9a(0x1cc)](_0x4acf1e);}[_0x1a0f84(0x1e7)](){var _0x264971=_0x1a0f84;this[_0x264971(0x1e4)][_0x264971(0x1d7)](),super[_0x264971(0x1e7)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x122a(_0x34edf4,_0x1a1525){const _0x10cf55=_0x10cf();return _0x122a=function(_0x122ac5,_0xe53358){_0x122ac5=_0x122ac5-0x13f;let _0x7c88ca=_0x10cf55[_0x122ac5];return _0x7c88ca;},_0x122a(_0x34edf4,_0x1a1525);}const _0x41eb55=_0x122a;(function(_0x5e3bdf,_0x5800b5){const _0x52a5f2=_0x122a,_0x511224=_0x5e3bdf();while(!![]){try{const _0x3b5907=parseInt(_0x52a5f2(0x155))/0x1*(parseInt(_0x52a5f2(0x169))/0x2)+-parseInt(_0x52a5f2(0x14c))/0x3*(-parseInt(_0x52a5f2(0x1b9))/0x4)+parseInt(_0x52a5f2(0x1a1))/0x5+-parseInt(_0x52a5f2(0x14f))/0x6+parseInt(_0x52a5f2(0x156))/0x7+-parseInt(_0x52a5f2(0x16c))/0x8*(-parseInt(_0x52a5f2(0x182))/0x9)+-parseInt(_0x52a5f2(0x197))/0xa*(parseInt(_0x52a5f2(0x1c8))/0xb);if(_0x3b5907===_0x5800b5)break;else _0x511224['push'](_0x511224['shift']());}catch(_0x43d69f){_0x511224['push'](_0x511224['shift']());}}}(_0x10cf,0x718b3));import{View as _0x1cacc1,BalloonPanelView as _0x4ff7e9,ButtonView as _0x321f,clickOutsideHandler as _0x5c5269}from'ckeditor5/src/ui.js';function _0x10cf(){const _0x38f5f7=['_calculateContainerWidth','300px','execute','_createShowMoreButtonView','pop','innerHTML','52CzJxCN','_handleShowMoreButtonClick','getComputedStyle','hideBalloonPanel','showMoreLabelPrefix','isConnected','_containerElement','_setupVisibilityObserver','cloneNode','_createShowMoreBalloonPanelView','isIntersecting','block','_createShowMoreButton','_findTargetContainer','maxVisibleRows','11ePKAvk','tagName','clientHeight','remove','position','div','textContent','forEach','setContainerElement','visible','add','_showMoreBalloonPanelView','+\x201','_checkAndHandleOverflow','_pendingCalculation','_updateShowMoreButtonVisibility','absolute','top','height','destroy','children','reorganizeChips','_applyOverflowResults','classList','auto','147843LWbryA','_ancestorsToRestore','_visibleChips','4805160szqJmw','calculationContainer','abs','isVisible','undefined','showMoreBalloon','251783DaBqDg','5471879xYqkmX','none','disconnect','left','includes','_restoreAncestorVisibility','push','pointerEvents','width','_createCalculationContainer','label','_locale','_updateBalloonContent','overflowContainer','_targetContainer','overflowChips','ck-calculation-container','_updateOverflowUI','block\x20!important','4gNGaIE','body','disableAnimationOnEnter','80Gluzpg','_renderChipsAndCountRows','extendTemplate','from','showBalloonPanel','_repinBalloonPanel','_testButtonFit','_parentView','_config','controlsButton','right','offsetWidth','cssClasses','show','_calculateOverflowInContainer','_createContainerElements','innerHeight','clientWidth','parentElement','zIndex','observe','clear','108513sclcha','set','appendChild','_isContainerVisible','querySelector','pin','display','render','0px','showMoreButton','boxSizing','length','visibility','setTemplate','_overflowChips','-9999px','toLowerCase','visible\x20!important','_bodyCollection','element','filter','11578990klPMkC','_intersectionObserver','rowDetectionTolerance','hide','hidden','content','opacity','_applyCalculationStyles','showMoreButtonView','.ck-ai-chat','1886740pXMJIp','bottom','documentElement','some','_createMockButton','50px','_showMoreButtonView','className','isOn','button','_distributeChips','style','getBoundingClientRect','border-box','slice','createElement','_makeAncestorsVisible','innerWidth'];_0x10cf=function(){return _0x38f5f7;};return _0x10cf();}import{Collection as _0x1cbfc3}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x41eb55(0x1b4);export class AIChatChipsOverflowManager{[_0x41eb55(0x161)];[_0x41eb55(0x174)];[_0x41eb55(0x14e)];[_0x41eb55(0x190)];[_0x41eb55(0x1a7)]=null;[_0x41eb55(0x1d3)]=null;[_0x41eb55(0x1bf)]=null;[_0x41eb55(0x194)];[_0x41eb55(0x173)]=null;[_0x41eb55(0x198)]=null;[_0x41eb55(0x141)]=!0x1;constructor(_0x46febd,_0x282c1b,_0x344ffb,_0x581795,_0x19cc3c){const _0x2c9c31=_0x41eb55;this[_0x2c9c31(0x161)]=_0x46febd,this[_0x2c9c31(0x14e)]=_0x282c1b,this[_0x2c9c31(0x174)]={...hn,..._0x344ffb,'cssClasses':{'controlsButton':'','calculationContainer':_0x2c9c31(0x166),..._0x344ffb[_0x2c9c31(0x178)]}},this[_0x2c9c31(0x190)]=new _0x1cbfc3(),this[_0x2c9c31(0x194)]=_0x581795,this[_0x2c9c31(0x173)]=_0x19cc3c||null;}[_0x41eb55(0x1d0)](_0x4eab97){const _0x12c561=_0x41eb55;this[_0x12c561(0x198)]&&(this[_0x12c561(0x198)][_0x12c561(0x158)](),this[_0x12c561(0x198)]=null),this[_0x12c561(0x1bf)]=_0x4eab97,this[_0x12c561(0x1c0)]();}get[_0x41eb55(0x19f)](){const _0x3f903f=_0x41eb55;return this[_0x3f903f(0x1a7)];}get[_0x41eb55(0x165)](){const _0x6e3029=_0x41eb55;return this[_0x6e3029(0x190)];}[_0x41eb55(0x148)](){requestAnimationFrame(()=>{const _0x2f7903=_0x122a;this[_0x2f7903(0x140)]();});}[_0x41eb55(0x170)](){const _0x9c6b92=_0x41eb55;this[_0x9c6b92(0x1a7)]&&this[_0x9c6b92(0x1d3)]&&(this[_0x9c6b92(0x162)](),this[_0x9c6b92(0x1a7)][_0x9c6b92(0x1a9)]=!0x0,this[_0x9c6b92(0x1d3)][_0x9c6b92(0x179)](),this[_0x9c6b92(0x1d3)][_0x9c6b92(0x187)]({'target':this[_0x9c6b92(0x1a7)][_0x9c6b92(0x195)],'limiter':document[_0x9c6b92(0x186)](_0x9c6b92(0x1a0))}));}[_0x41eb55(0x1bc)](){const _0x5a5367=_0x41eb55;this[_0x5a5367(0x1a7)]&&this[_0x5a5367(0x1d3)]&&(this[_0x5a5367(0x1a7)][_0x5a5367(0x1a9)]=!0x1,this[_0x5a5367(0x1d3)][_0x5a5367(0x19a)]());}[_0x41eb55(0x181)](){const _0x5681f9=_0x41eb55;this[_0x5681f9(0x190)][_0x5681f9(0x181)](),this[_0x5681f9(0x1bc)](),this[_0x5681f9(0x142)](),this[_0x5681f9(0x1a7)]&&(this[_0x5681f9(0x1a7)][_0x5681f9(0x160)]=''),this[_0x5681f9(0x1d3)]&&this[_0x5681f9(0x1d3)][_0x5681f9(0x19c)][_0x5681f9(0x181)]();}[_0x41eb55(0x146)](){const _0x1db787=_0x41eb55;this[_0x1db787(0x198)]&&(this[_0x1db787(0x198)][_0x1db787(0x158)](),this[_0x1db787(0x198)]=null),this[_0x1db787(0x1a7)]&&(this[_0x1db787(0x1a7)][_0x1db787(0x146)](),this[_0x1db787(0x1a7)]=null),this[_0x1db787(0x1d3)]&&(this[_0x1db787(0x1d3)][_0x1db787(0x146)](),this[_0x1db787(0x1d3)]=null);}[_0x41eb55(0x140)](){const _0x13aeb1=_0x41eb55;if(!this[_0x13aeb1(0x1bf)])return;if(!this[_0x13aeb1(0x185)]())return void(this[_0x13aeb1(0x141)]=!0x0);this[_0x13aeb1(0x141)]=!0x1;const _0x1f3822=[...this[_0x13aeb1(0x14e)],...this[_0x13aeb1(0x190)]],_0x24e6ea=this[_0x13aeb1(0x15f)](),_0x4c0434=this[_0x13aeb1(0x17a)](_0x24e6ea,_0x1f3822),_0x715553=_0x24e6ea[_0x13aeb1(0x14d)];_0x715553&&this[_0x13aeb1(0x15b)](_0x715553),_0x24e6ea[_0x13aeb1(0x1cb)](),this[_0x13aeb1(0x149)](_0x1f3822,_0x4c0434);}[_0x41eb55(0x1c5)](){const _0xaf814d=_0x41eb55;this[_0xaf814d(0x1a7)]=this[_0xaf814d(0x1b6)](),this[_0xaf814d(0x1d3)]=this[_0xaf814d(0x1c2)](),this[_0xaf814d(0x1a7)][_0xaf814d(0x189)](),this[_0xaf814d(0x1bf)][_0xaf814d(0x184)](this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]),this[_0xaf814d(0x1a7)]['on'](_0xaf814d(0x1b5),()=>{const _0x3fafdc=_0xaf814d;this[_0x3fafdc(0x1ba)]();}),_0x5c5269({'emitter':this[_0xaf814d(0x1d3)],'contextElements':[this[_0xaf814d(0x1d3)][_0xaf814d(0x195)],this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]],'callback':()=>this[_0xaf814d(0x1bc)](),'activator':()=>this[_0xaf814d(0x1a7)][_0xaf814d(0x1a9)]});}[_0x41eb55(0x1b6)](){const _0xdc69ab=_0x41eb55,_0x4edaef=new _0x321f(this[_0xdc69ab(0x161)]);_0x4edaef[_0xdc69ab(0x183)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1f18cd=[this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x18b)]];return this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]&&_0x1f18cd[_0xdc69ab(0x15c)](this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]),_0x4edaef[_0xdc69ab(0x16e)]({'attributes':{'class':_0x1f18cd}}),_0x4edaef;}[_0x41eb55(0x1c2)](){const _0x362586=_0x41eb55,_0x3b0e3f=new _0x4ff7e9(this[_0x362586(0x161)]);return _0x3b0e3f[_0x362586(0x16e)]({'attributes':{'class':this[_0x362586(0x174)][_0x362586(0x178)][_0x362586(0x154)]}}),this[_0x362586(0x194)][_0x362586(0x1d2)](_0x3b0e3f),_0x3b0e3f;}[_0x41eb55(0x162)](){const _0x5bd667=_0x41eb55;if(this[_0x5bd667(0x1d3)]&&(this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x181)](),this[_0x5bd667(0x190)][_0x5bd667(0x18d)]>0x0)){this[_0x5bd667(0x190)][_0x5bd667(0x1cf)](_0x2186c5=>{const _0xb1e54a=_0x5bd667;_0x2186c5[_0xb1e54a(0x16b)]();});const _0x1813d4=new _0x1cacc1(this[_0x5bd667(0x161)]);_0x1813d4[_0x5bd667(0x18f)]({'tag':_0x5bd667(0x1cd),'attributes':{'class':this[_0x5bd667(0x174)][_0x5bd667(0x178)][_0x5bd667(0x163)]},'children':this[_0x5bd667(0x190)]}),this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x1d2)](_0x1813d4);}}[_0x41eb55(0x1ba)](){const _0x56683f=_0x41eb55;this[_0x56683f(0x1a7)][_0x56683f(0x1a9)]?this[_0x56683f(0x1bc)]():this[_0x56683f(0x170)]();}[_0x41eb55(0x142)](){const _0x59900d=_0x41eb55,_0x4dabc0=this[_0x59900d(0x190)][_0x59900d(0x18d)]>0x0;this[_0x59900d(0x1a7)]?.[_0x59900d(0x195)]&&(this[_0x59900d(0x1a7)][_0x59900d(0x195)][_0x59900d(0x1ac)][_0x59900d(0x188)]=_0x4dabc0?'':_0x59900d(0x157));}[_0x41eb55(0x171)](){const _0x7e9973=_0x41eb55;this[_0x7e9973(0x1a7)]?.[_0x7e9973(0x1a9)]&&this[_0x7e9973(0x1d3)]?.[_0x7e9973(0x152)]&&this[_0x7e9973(0x1a7)][_0x7e9973(0x195)]&&this[_0x7e9973(0x1d3)][_0x7e9973(0x187)]({'target':this[_0x7e9973(0x1a7)][_0x7e9973(0x195)],'limiter':document[_0x7e9973(0x186)](_0x7e9973(0x1a0))});}[_0x41eb55(0x1c6)](_0x201859){const _0x5823f0=_0x41eb55,_0x5cc4ee=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x1c9)][_0x5823f0(0x192)]()||_0x5823f0(0x1cd),_0x427378=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x14a)];if(_0x427378){const _0x5a7c09=_0x427378[0x0]||'',_0x1b8d75=_0x201859[_0x5823f0(0x186)]('.'+_0x5a7c09),_0x5a5ffd=_0x201859[_0x5823f0(0x186)](_0x5cc4ee);return _0x1b8d75||_0x5a5ffd||_0x201859;}return _0x201859[_0x5823f0(0x186)](_0x5cc4ee)||_0x201859;}[_0x41eb55(0x1b3)](){const _0x7d714=_0x41eb55,_0xa1e6d7=this[_0x7d714(0x173)]?.[_0x7d714(0x195)]||this[_0x7d714(0x1bf)];if(!_0xa1e6d7)return an;const _0xbfa67c=window[_0x7d714(0x1bb)](_0xa1e6d7)[_0x7d714(0x15e)];if(_0x7d714(0x14b)===_0xbfa67c||_0x7d714(0x18a)===_0xbfa67c||!_0xbfa67c){const _0x382146=_0xa1e6d7[_0x7d714(0x17e)];if(_0x382146){const _0x571407=window[_0x7d714(0x1bb)](_0x382146);return _0x7d714(0x14b)!==_0x571407[_0x7d714(0x15e)]?_0x571407[_0x7d714(0x15e)]:an;}return an;}return _0xbfa67c;}[_0x41eb55(0x19e)](_0x556ff6,_0x344aba){const _0x2501e8=_0x41eb55;this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]&&_0x556ff6[_0x2501e8(0x14a)][_0x2501e8(0x1d2)](this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15e)]=_0x344aba,_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x1cc)]=_0x2501e8(0x143),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x144)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x159)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x19d)]='0',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15d)]=_0x2501e8(0x157),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x17f)]='-1',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18e)]=_0x2501e8(0x193),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x188)]=_0x2501e8(0x168),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18c)]=_0x2501e8(0x1ae);}[_0x41eb55(0x15b)](_0x2133e8){const _0x546266=_0x41eb55;_0x2133e8[_0x546266(0x1cf)](({element:_0x119881,originalDisplay:_0x3fb736,originalVisibility:_0x2b86fa})=>{const _0x43017a=_0x546266;_0x119881[_0x43017a(0x1ac)][_0x43017a(0x188)]=_0x3fb736,_0x119881[_0x43017a(0x1ac)][_0x43017a(0x18e)]=_0x2b86fa;});}[_0x41eb55(0x1b1)](_0x306939){const _0xba932c=_0x41eb55,_0x3c7ae5=[];let _0x470c1b=_0x306939;for(;_0x470c1b&&_0x470c1b!==document[_0xba932c(0x16a)];){const _0x10e004=window[_0xba932c(0x1bb)](_0x470c1b);_0xba932c(0x157)!==_0x10e004[_0xba932c(0x188)]&&_0xba932c(0x19b)!==_0x10e004[_0xba932c(0x18e)]||(_0x3c7ae5[_0xba932c(0x15c)]({'element':_0x470c1b,'originalDisplay':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)],'originalVisibility':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]}),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)]=_0xba932c(0x1c4),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]=_0xba932c(0x1d1)),_0x470c1b=_0x470c1b[_0xba932c(0x17e)];}return _0x3c7ae5;}[_0x41eb55(0x17b)](){const _0x47ad34=_0x41eb55;let _0x55096e,_0x11e980;return this[_0x47ad34(0x173)]?.[_0x47ad34(0x195)]?(_0x55096e=this[_0x47ad34(0x173)][_0x47ad34(0x195)][_0x47ad34(0x1c1)](!0x0),_0x11e980=this[_0x47ad34(0x1c6)](_0x55096e)):(_0x55096e=document[_0x47ad34(0x1b0)](_0x47ad34(0x1cd)),_0x11e980=_0x55096e),{'calculationContainer':_0x55096e,'targetContainer':_0x11e980};}[_0x41eb55(0x15f)](){const _0x37aa84=_0x41eb55,{calculationContainer:_0x48bd2c,targetContainer:_0x48368a}=this[_0x37aa84(0x17b)](),_0x1996d1=this[_0x37aa84(0x1b3)]();this[_0x37aa84(0x19e)](_0x48bd2c,_0x1996d1);const _0xca1c31=this[_0x37aa84(0x173)]?.[_0x37aa84(0x195)]||this[_0x37aa84(0x1bf)],_0xb99f6=_0xca1c31?.[_0x37aa84(0x17e)];_0xb99f6?_0xb99f6[_0x37aa84(0x184)](_0x48bd2c):document[_0x37aa84(0x16a)][_0x37aa84(0x184)](_0x48bd2c),_0x48bd2c[_0x37aa84(0x164)]=_0x48368a;const _0x4550d4=this[_0x37aa84(0x1b1)](_0xb99f6||null);return _0x48bd2c[_0x37aa84(0x177)],_0x48bd2c[_0x37aa84(0x14d)]=_0x4550d4,_0x48bd2c;}[_0x41eb55(0x17a)](_0x49b065,_0x42c456){const _0x164f82=_0x41eb55,_0x1837f8=_0x49b065[_0x164f82(0x164)]||_0x49b065,_0x19255d=[],{rowCount:_0x334218}=this[_0x164f82(0x16d)](_0x1837f8,_0x42c456);if(_0x334218<=this[_0x164f82(0x174)][_0x164f82(0x1c7)])return _0x19255d;const _0x338329=_0x42c456[_0x164f82(0x1af)]();for(;_0x338329[_0x164f82(0x18d)]>0x0;){if(this[_0x164f82(0x172)](_0x49b065,_0x1837f8,_0x338329)){const _0x127d9e=_0x42c456[_0x164f82(0x196)](_0x105cf9=>!_0x338329[_0x164f82(0x15a)](_0x105cf9));_0x19255d[_0x164f82(0x15c)](..._0x127d9e);break;}if(!_0x338329[_0x164f82(0x1b7)]())break;}return _0x19255d;}[_0x41eb55(0x16d)](_0x59ffa2,_0x4c6b95){const _0x228b76=_0x41eb55;_0x59ffa2[_0x228b76(0x1b8)]='',_0x4c6b95[_0x228b76(0x1cf)](_0x26bcd2=>{const _0x155adf=_0x228b76;if(_0x26bcd2[_0x155adf(0x195)]){const _0x52012d=_0x26bcd2[_0x155adf(0x195)][_0x155adf(0x1c1)](!0x0);_0x59ffa2[_0x155adf(0x184)](_0x52012d);}}),_0x59ffa2[_0x228b76(0x177)];const _0x5e440f=_0x59ffa2[_0x228b76(0x147)],_0x3344cd=[];return Array[_0x228b76(0x16f)](_0x5e440f)[_0x228b76(0x1cf)](_0x3ef968=>{const _0x1a0a81=_0x228b76,_0x271833=_0x3ef968[_0x1a0a81(0x1ad)]()[_0x1a0a81(0x144)];_0x3344cd[_0x1a0a81(0x1a4)](_0x20465d=>Math[_0x1a0a81(0x151)](_0x20465d-_0x271833)<this[_0x1a0a81(0x174)][_0x1a0a81(0x199)])||_0x3344cd[_0x1a0a81(0x15c)](_0x271833);}),{'rowCount':_0x3344cd[_0x228b76(0x18d)]};}[_0x41eb55(0x1a5)](){const _0x541341=_0x41eb55,_0x42940d=document[_0x541341(0x1b0)](_0x541341(0x1aa));return _0x42940d[_0x541341(0x1a8)]=this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x18b)],this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]&&_0x42940d[_0x541341(0x14a)][_0x541341(0x1d2)](this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]),_0x42940d[_0x541341(0x1ce)]=_0x541341(0x13f),_0x42940d;}[_0x41eb55(0x172)](_0x1222ef,_0x51e005,_0x48c88){const _0x57dc09=_0x41eb55;this[_0x57dc09(0x16d)](_0x51e005,_0x48c88);const _0x8e54ca=this[_0x57dc09(0x1a5)]();_0x1222ef[_0x57dc09(0x184)](_0x8e54ca),_0x1222ef[_0x57dc09(0x177)];const _0x100897=[..._0x51e005[_0x57dc09(0x147)],_0x8e54ca],_0x3539e9=[];_0x100897[_0x57dc09(0x1cf)](_0x1a3138=>{const _0x76d602=_0x57dc09,_0x5ef97e=_0x1a3138[_0x76d602(0x1ad)]()[_0x76d602(0x144)];_0x3539e9[_0x76d602(0x1a4)](_0x25c370=>Math[_0x76d602(0x151)](_0x25c370-_0x5ef97e)<this[_0x76d602(0x174)][_0x76d602(0x199)])||_0x3539e9[_0x76d602(0x15c)](_0x5ef97e);});const _0x4f96ba=_0x3539e9[_0x57dc09(0x18d)];return _0x8e54ca[_0x57dc09(0x1cb)](),_0x4f96ba<=this[_0x57dc09(0x174)][_0x57dc09(0x1c7)];}[_0x41eb55(0x1ab)](_0x1e8334,_0x430f56){const _0x435a49=_0x41eb55;this[_0x435a49(0x14e)][_0x435a49(0x181)](),this[_0x435a49(0x190)][_0x435a49(0x181)](),_0x1e8334[_0x435a49(0x1cf)](_0x2eb012=>{const _0x2e58cd=_0x435a49;_0x430f56[_0x2e58cd(0x15a)](_0x2eb012)?this[_0x2e58cd(0x190)][_0x2e58cd(0x1d2)](_0x2eb012):this[_0x2e58cd(0x14e)][_0x2e58cd(0x1d2)](_0x2eb012);});}[_0x41eb55(0x167)](_0x209063){const _0x1d2dc4=_0x41eb55;if(_0x209063>0x0&&!this[_0x1d2dc4(0x1a7)]&&this[_0x1d2dc4(0x1c5)](),_0x209063>0x0&&this[_0x1d2dc4(0x1a7)]){const _0x19a682=''+this[_0x1d2dc4(0x174)][_0x1d2dc4(0x1bd)]+(_0x209063<0x63?_0x209063:'99');this[_0x1d2dc4(0x1a7)][_0x1d2dc4(0x160)]=_0x19a682;}this[_0x1d2dc4(0x162)](),this[_0x1d2dc4(0x142)](),this[_0x1d2dc4(0x171)]();}[_0x41eb55(0x149)](_0x28df08,_0x4b2521){const _0x2f28cb=_0x41eb55;this[_0x2f28cb(0x1ab)](_0x28df08,_0x4b2521),this[_0x2f28cb(0x167)](_0x4b2521[_0x2f28cb(0x18d)]);}[_0x41eb55(0x1c0)](){const _0x203b58=_0x41eb55;this[_0x203b58(0x1bf)]&&_0x203b58(0x153)!=typeof IntersectionObserver&&(this[_0x203b58(0x198)]=new IntersectionObserver(_0x22037c=>{const _0x4c5b4f=_0x203b58;_0x22037c[0x0][_0x4c5b4f(0x1c3)]&&this[_0x4c5b4f(0x141)]&&requestAnimationFrame(()=>{const _0x4b12d5=_0x4c5b4f;this[_0x4b12d5(0x140)]();});},{'threshold':0.01,'rootMargin':_0x203b58(0x1a6)}),this[_0x203b58(0x198)][_0x203b58(0x180)](this[_0x203b58(0x1bf)]));}[_0x41eb55(0x185)](){const _0x4c453e=_0x41eb55;if(!this[_0x4c453e(0x1bf)])return!0x1;if(!this[_0x4c453e(0x1bf)][_0x4c453e(0x1be)])return!0x1;const _0x3255ec=this[_0x4c453e(0x1bf)][_0x4c453e(0x1ad)]();if(0x0===_0x3255ec[_0x4c453e(0x15e)]||0x0===_0x3255ec[_0x4c453e(0x145)])return!0x1;const _0x3fc26b=window[_0x4c453e(0x17c)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x1ca)],_0x37f469=window[_0x4c453e(0x1b2)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x17d)],_0x50ce7d=0xc8;return _0x3255ec[_0x4c453e(0x1a2)]>=-0xc8&&_0x3255ec[_0x4c453e(0x144)]<=_0x3fc26b+_0x50ce7d&&_0x3255ec[_0x4c453e(0x176)]>=-0xc8&&_0x3255ec[_0x4c453e(0x159)]<=_0x37f469+_0x50ce7d;}}
|
|
23
|
+
const _0x320527=_0x1613;function _0x2e25(){const _0x57f6ac=['content','0px','_handleShowMoreButtonClick','1185480svgEln','4575480fUVPcd','includes','_showMoreBalloonPanelView','classList','className','push','execute','_parentView','none','_createContainerElements','parentElement','block\x20!important','_calculateContainerWidth','children','showMoreLabelPrefix','visibility','showMoreButtonView','render','querySelector','set','add','_createShowMoreBalloonPanelView','display','5oZlpjt','length','isConnected','reorganizeChips','position','auto','clientWidth','clear','_showMoreButtonView','extendTemplate','maxVisibleRows','appendChild','_applyOverflowResults','220xLnvkg','rowDetectionTolerance','slice','18FJbiBx','50px','label','documentElement','_containerElement','innerWidth','hide','observe','_checkAndHandleOverflow','_pendingCalculation','720167EviSHn','forEach','1626344ukJPKP','undefined','style','hidden','_targetContainer','right','_updateShowMoreButtonVisibility','_overflowChips','1218753iyUmmn','button','_locale','_createMockButton','_bodyCollection','controlsButton','.ck-ai-chat','bottom','_calculateOverflowInContainer','_distributeChips','77JqZQIk','innerHeight','border-box','element','_testButtonFit','pop','_makeAncestorsVisible','remove','boxSizing','_isContainerVisible','overflowContainer','offsetWidth','pointerEvents','body','absolute','getBoundingClientRect','height','some','calculationContainer','left','visible\x20!important','showMoreButton','from','_findTargetContainer','_setupVisibilityObserver','abs','show','_applyCalculationStyles','isOn','_ancestorsToRestore','filter','hideBalloonPanel','getComputedStyle','-9999px','300px','_renderChipsAndCountRows','toLowerCase','setContainerElement','_config','_createShowMoreButton','visible','setTemplate','_updateOverflowUI','5059vDOkSs','showBalloonPanel','pin','textContent','_intersectionObserver','_updateBalloonContent','cssClasses','_restoreAncestorVisibility','showMoreBalloon','_createCalculationContainer','isIntersecting','div','clientHeight','width','tagName','top','cloneNode','innerHTML','createElement','_visibleChips','overflowChips','_repinBalloonPanel','ck-calculation-container','zIndex','isVisible','+\x201','disconnect','disableAnimationOnEnter','_createShowMoreButtonView','block','1032429TuGSVf','destroy','opacity'];_0x2e25=function(){return _0x57f6ac;};return _0x2e25();}(function(_0x1b5d2a,_0x224100){const _0x5260e3=_0x1613,_0x3a91e5=_0x1b5d2a();while(!![]){try{const _0x9af9b9=-parseInt(_0x5260e3(0xf5))/0x1*(parseInt(_0x5260e3(0xa9))/0x2)+parseInt(_0x5260e3(0x7e))/0x3+parseInt(_0x5260e3(0xb8))/0x4*(parseInt(_0x5260e3(0x9c))/0x5)+parseInt(_0x5260e3(0xac))/0x6*(parseInt(_0x5260e3(0xb6))/0x7)+parseInt(_0x5260e3(0x85))/0x8+parseInt(_0x5260e3(0xc0))/0x9+parseInt(_0x5260e3(0x84))/0xa*(-parseInt(_0x5260e3(0xca))/0xb);if(_0x9af9b9===_0x224100)break;else _0x3a91e5['push'](_0x3a91e5['shift']());}catch(_0x3831af){_0x3a91e5['push'](_0x3a91e5['shift']());}}}(_0x2e25,0x5cdee));function _0x1613(_0x5bf52a,_0x335b3b){const _0x2e2567=_0x2e25();return _0x1613=function(_0x16134c,_0x76dc5e){_0x16134c=_0x16134c-0x77;let _0x521ded=_0x2e2567[_0x16134c];return _0x521ded;},_0x1613(_0x5bf52a,_0x335b3b);}import{View as _0x3ca723,BalloonPanelView as _0x41567d,ButtonView as _0x3bd45d,clickOutsideHandler as _0x5842f2}from'ckeditor5/src/ui.js';import{Collection as _0x4f5549}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x320527(0xec);export class AIChatChipsOverflowManager{[_0x320527(0xc2)];[_0x320527(0xf0)];[_0x320527(0x108)];[_0x320527(0xbf)];[_0x320527(0xa4)]=null;[_0x320527(0x87)]=null;[_0x320527(0xb0)]=null;[_0x320527(0xc4)];[_0x320527(0x8c)]=null;[_0x320527(0xf9)]=null;[_0x320527(0xb5)]=!0x1;constructor(_0x29ed7d,_0x5155fd,_0xf242a8,_0x44f39a,_0xd0e79b){const _0x33a1c2=_0x320527;this[_0x33a1c2(0xc2)]=_0x29ed7d,this[_0x33a1c2(0x108)]=_0x5155fd,this[_0x33a1c2(0xf0)]={...hn,..._0xf242a8,'cssClasses':{'controlsButton':'','calculationContainer':_0x33a1c2(0x10b),..._0xf242a8[_0x33a1c2(0xfb)]}},this[_0x33a1c2(0xbf)]=new _0x4f5549(),this[_0x33a1c2(0xc4)]=_0x44f39a,this[_0x33a1c2(0x8c)]=_0xd0e79b||null;}[_0x320527(0xef)](_0x109de0){const _0x358316=_0x320527;this[_0x358316(0xf9)]&&(this[_0x358316(0xf9)][_0x358316(0x7a)](),this[_0x358316(0xf9)]=null),this[_0x358316(0xb0)]=_0x109de0,this[_0x358316(0xe2)]();}get[_0x320527(0x95)](){const _0x1c4412=_0x320527;return this[_0x1c4412(0xa4)];}get[_0x320527(0x109)](){const _0x1b7923=_0x320527;return this[_0x1b7923(0xbf)];}[_0x320527(0x9f)](){requestAnimationFrame(()=>{const _0x260ff2=_0x1613;this[_0x260ff2(0xb4)]();});}[_0x320527(0xf6)](){const _0x8453cf=_0x320527;this[_0x8453cf(0xa4)]&&this[_0x8453cf(0x87)]&&(this[_0x8453cf(0xfa)](),this[_0x8453cf(0xa4)][_0x8453cf(0xe6)]=!0x0,this[_0x8453cf(0x87)][_0x8453cf(0xe4)](),this[_0x8453cf(0x87)][_0x8453cf(0xf7)]({'target':this[_0x8453cf(0xa4)][_0x8453cf(0xcd)],'limiter':document[_0x8453cf(0x97)](_0x8453cf(0xc6))}));}[_0x320527(0xe9)](){const _0x2ad5b9=_0x320527;this[_0x2ad5b9(0xa4)]&&this[_0x2ad5b9(0x87)]&&(this[_0x2ad5b9(0xa4)][_0x2ad5b9(0xe6)]=!0x1,this[_0x2ad5b9(0x87)][_0x2ad5b9(0xb2)]());}[_0x320527(0xa3)](){const _0x39da2c=_0x320527;this[_0x39da2c(0xbf)][_0x39da2c(0xa3)](),this[_0x39da2c(0xe9)](),this[_0x39da2c(0xbe)](),this[_0x39da2c(0xa4)]&&(this[_0x39da2c(0xa4)][_0x39da2c(0xae)]=''),this[_0x39da2c(0x87)]&&this[_0x39da2c(0x87)][_0x39da2c(0x81)][_0x39da2c(0xa3)]();}[_0x320527(0x7f)](){const _0xb816f6=_0x320527;this[_0xb816f6(0xf9)]&&(this[_0xb816f6(0xf9)][_0xb816f6(0x7a)](),this[_0xb816f6(0xf9)]=null),this[_0xb816f6(0xa4)]&&(this[_0xb816f6(0xa4)][_0xb816f6(0x7f)](),this[_0xb816f6(0xa4)]=null),this[_0xb816f6(0x87)]&&(this[_0xb816f6(0x87)][_0xb816f6(0x7f)](),this[_0xb816f6(0x87)]=null);}[_0x320527(0xb4)](){const _0x4dd6f2=_0x320527;if(!this[_0x4dd6f2(0xb0)])return;if(!this[_0x4dd6f2(0xd3)]())return void(this[_0x4dd6f2(0xb5)]=!0x0);this[_0x4dd6f2(0xb5)]=!0x1;const _0x49e129=[...this[_0x4dd6f2(0x108)],...this[_0x4dd6f2(0xbf)]],_0x3595b5=this[_0x4dd6f2(0xfe)](),_0x1b62d2=this[_0x4dd6f2(0xc8)](_0x3595b5,_0x49e129),_0x3671a4=_0x3595b5[_0x4dd6f2(0xe7)];_0x3671a4&&this[_0x4dd6f2(0xfc)](_0x3671a4),_0x3595b5[_0x4dd6f2(0xd1)](),this[_0x4dd6f2(0xa8)](_0x49e129,_0x1b62d2);}[_0x320527(0xf1)](){const _0x5218e1=_0x320527;this[_0x5218e1(0xa4)]=this[_0x5218e1(0x7c)](),this[_0x5218e1(0x87)]=this[_0x5218e1(0x9a)](),this[_0x5218e1(0xa4)][_0x5218e1(0x96)](),this[_0x5218e1(0xb0)][_0x5218e1(0xa7)](this[_0x5218e1(0xa4)][_0x5218e1(0xcd)]),this[_0x5218e1(0xa4)]['on'](_0x5218e1(0x8b),()=>{const _0x358647=_0x5218e1;this[_0x358647(0x83)]();}),_0x5842f2({'emitter':this[_0x5218e1(0x87)],'contextElements':[this[_0x5218e1(0x87)][_0x5218e1(0xcd)],this[_0x5218e1(0xa4)][_0x5218e1(0xcd)]],'callback':()=>this[_0x5218e1(0xe9)](),'activator':()=>this[_0x5218e1(0xa4)][_0x5218e1(0xe6)]});}[_0x320527(0x7c)](){const _0x30df49=_0x320527,_0x427791=new _0x3bd45d(this[_0x30df49(0xc2)]);_0x427791[_0x30df49(0x98)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5b9396=[this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xdf)]];return this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xc5)]&&_0x5b9396[_0x30df49(0x8a)](this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xc5)]),_0x427791[_0x30df49(0xa5)]({'attributes':{'class':_0x5b9396}}),_0x427791;}[_0x320527(0x9a)](){const _0x38dcbd=_0x320527,_0x15be3e=new _0x41567d(this[_0x38dcbd(0xc2)]);return _0x15be3e[_0x38dcbd(0xa5)]({'attributes':{'class':this[_0x38dcbd(0xf0)][_0x38dcbd(0xfb)][_0x38dcbd(0xfd)]}}),this[_0x38dcbd(0xc4)][_0x38dcbd(0x99)](_0x15be3e),_0x15be3e;}[_0x320527(0xfa)](){const _0x49d906=_0x320527;if(this[_0x49d906(0x87)]&&(this[_0x49d906(0x87)][_0x49d906(0x81)][_0x49d906(0xa3)](),this[_0x49d906(0xbf)][_0x49d906(0x9d)]>0x0)){this[_0x49d906(0xbf)][_0x49d906(0xb7)](_0x7678f3=>{const _0x4955f2=_0x49d906;_0x7678f3[_0x4955f2(0x7b)]();});const _0x4c6894=new _0x3ca723(this[_0x49d906(0xc2)]);_0x4c6894[_0x49d906(0xf3)]({'tag':_0x49d906(0x100),'attributes':{'class':this[_0x49d906(0xf0)][_0x49d906(0xfb)][_0x49d906(0xd4)]},'children':this[_0x49d906(0xbf)]}),this[_0x49d906(0x87)][_0x49d906(0x81)][_0x49d906(0x99)](_0x4c6894);}}[_0x320527(0x83)](){const _0x3d7c7d=_0x320527;this[_0x3d7c7d(0xa4)][_0x3d7c7d(0xe6)]?this[_0x3d7c7d(0xe9)]():this[_0x3d7c7d(0xf6)]();}[_0x320527(0xbe)](){const _0x59cee7=_0x320527,_0x3277a2=this[_0x59cee7(0xbf)][_0x59cee7(0x9d)]>0x0;this[_0x59cee7(0xa4)]?.[_0x59cee7(0xcd)]&&(this[_0x59cee7(0xa4)][_0x59cee7(0xcd)][_0x59cee7(0xba)][_0x59cee7(0x9b)]=_0x3277a2?'':_0x59cee7(0x8d));}[_0x320527(0x10a)](){const _0x129663=_0x320527;this[_0x129663(0xa4)]?.[_0x129663(0xe6)]&&this[_0x129663(0x87)]?.[_0x129663(0x78)]&&this[_0x129663(0xa4)][_0x129663(0xcd)]&&this[_0x129663(0x87)][_0x129663(0xf7)]({'target':this[_0x129663(0xa4)][_0x129663(0xcd)],'limiter':document[_0x129663(0x97)](_0x129663(0xc6))});}[_0x320527(0xe1)](_0x229b46){const _0x410c=_0x320527,_0x440982=this[_0x410c(0xb0)]?.[_0x410c(0x103)][_0x410c(0xee)]()||_0x410c(0x100),_0x297f5d=this[_0x410c(0xb0)]?.[_0x410c(0x88)];if(_0x297f5d){const _0x5d2c5e=_0x297f5d[0x0]||'',_0x40b116=_0x229b46[_0x410c(0x97)]('.'+_0x5d2c5e),_0x35396d=_0x229b46[_0x410c(0x97)](_0x440982);return _0x40b116||_0x35396d||_0x229b46;}return _0x229b46[_0x410c(0x97)](_0x440982)||_0x229b46;}[_0x320527(0x91)](){const _0x48587c=_0x320527,_0x5581b7=this[_0x48587c(0x8c)]?.[_0x48587c(0xcd)]||this[_0x48587c(0xb0)];if(!_0x5581b7)return an;const _0x475c44=window[_0x48587c(0xea)](_0x5581b7)[_0x48587c(0x102)];if(_0x48587c(0xa1)===_0x475c44||_0x48587c(0x82)===_0x475c44||!_0x475c44){const _0x2867b9=_0x5581b7[_0x48587c(0x8f)];if(_0x2867b9){const _0x1c4513=window[_0x48587c(0xea)](_0x2867b9);return _0x48587c(0xa1)!==_0x1c4513[_0x48587c(0x102)]?_0x1c4513[_0x48587c(0x102)]:an;}return an;}return _0x475c44;}[_0x320527(0xe5)](_0x51e779,_0x3597bb){const _0x1a6a5a=_0x320527;this[_0x1a6a5a(0xf0)][_0x1a6a5a(0xfb)][_0x1a6a5a(0xdc)]&&_0x51e779[_0x1a6a5a(0x88)][_0x1a6a5a(0x99)](this[_0x1a6a5a(0xf0)][_0x1a6a5a(0xfb)][_0x1a6a5a(0xdc)]),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x102)]=_0x3597bb,_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xa0)]=_0x1a6a5a(0xd8),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x104)]=_0x1a6a5a(0xeb),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xdd)]=_0x1a6a5a(0xeb),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x80)]='0',_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xd6)]=_0x1a6a5a(0x8d),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x77)]='-1',_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x94)]=_0x1a6a5a(0xde),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x9b)]=_0x1a6a5a(0x90),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xd2)]=_0x1a6a5a(0xcc);}[_0x320527(0xfc)](_0x33e85c){const _0x3355d1=_0x320527;_0x33e85c[_0x3355d1(0xb7)](({element:_0x54b8c8,originalDisplay:_0x19a4fe,originalVisibility:_0x3e3b36})=>{const _0xde0b41=_0x3355d1;_0x54b8c8[_0xde0b41(0xba)][_0xde0b41(0x9b)]=_0x19a4fe,_0x54b8c8[_0xde0b41(0xba)][_0xde0b41(0x94)]=_0x3e3b36;});}[_0x320527(0xd0)](_0x2069fc){const _0x4dd882=_0x320527,_0x599e37=[];let _0x5115fd=_0x2069fc;for(;_0x5115fd&&_0x5115fd!==document[_0x4dd882(0xd7)];){const _0x57712e=window[_0x4dd882(0xea)](_0x5115fd);_0x4dd882(0x8d)!==_0x57712e[_0x4dd882(0x9b)]&&_0x4dd882(0xbb)!==_0x57712e[_0x4dd882(0x94)]||(_0x599e37[_0x4dd882(0x8a)]({'element':_0x5115fd,'originalDisplay':_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x9b)],'originalVisibility':_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x94)]}),_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x9b)]=_0x4dd882(0x7d),_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x94)]=_0x4dd882(0xf2)),_0x5115fd=_0x5115fd[_0x4dd882(0x8f)];}return _0x599e37;}[_0x320527(0x8e)](){const _0x32077d=_0x320527;let _0x5a7dc5,_0x197502;return this[_0x32077d(0x8c)]?.[_0x32077d(0xcd)]?(_0x5a7dc5=this[_0x32077d(0x8c)][_0x32077d(0xcd)][_0x32077d(0x105)](!0x0),_0x197502=this[_0x32077d(0xe1)](_0x5a7dc5)):(_0x5a7dc5=document[_0x32077d(0x107)](_0x32077d(0x100)),_0x197502=_0x5a7dc5),{'calculationContainer':_0x5a7dc5,'targetContainer':_0x197502};}[_0x320527(0xfe)](){const _0x362686=_0x320527,{calculationContainer:_0x3e1a7e,targetContainer:_0x30fa52}=this[_0x362686(0x8e)](),_0x1e9a2a=this[_0x362686(0x91)]();this[_0x362686(0xe5)](_0x3e1a7e,_0x1e9a2a);const _0x8ba5b7=this[_0x362686(0x8c)]?.[_0x362686(0xcd)]||this[_0x362686(0xb0)],_0x67059c=_0x8ba5b7?.[_0x362686(0x8f)];_0x67059c?_0x67059c[_0x362686(0xa7)](_0x3e1a7e):document[_0x362686(0xd7)][_0x362686(0xa7)](_0x3e1a7e),_0x3e1a7e[_0x362686(0xbc)]=_0x30fa52;const _0x49c860=this[_0x362686(0xd0)](_0x67059c||null);return _0x3e1a7e[_0x362686(0xd5)],_0x3e1a7e[_0x362686(0xe7)]=_0x49c860,_0x3e1a7e;}[_0x320527(0xc8)](_0x3ea8c4,_0x3067ba){const _0x546396=_0x320527,_0x5c1e82=_0x3ea8c4[_0x546396(0xbc)]||_0x3ea8c4,_0x40754a=[],{rowCount:_0xd2a542}=this[_0x546396(0xed)](_0x5c1e82,_0x3067ba);if(_0xd2a542<=this[_0x546396(0xf0)][_0x546396(0xa6)])return _0x40754a;const _0x4a48b6=_0x3067ba[_0x546396(0xab)]();for(;_0x4a48b6[_0x546396(0x9d)]>0x0;){if(this[_0x546396(0xce)](_0x3ea8c4,_0x5c1e82,_0x4a48b6)){const _0x2ca0fb=_0x3067ba[_0x546396(0xe8)](_0xfe8906=>!_0x4a48b6[_0x546396(0x86)](_0xfe8906));_0x40754a[_0x546396(0x8a)](..._0x2ca0fb);break;}if(!_0x4a48b6[_0x546396(0xcf)]())break;}return _0x40754a;}[_0x320527(0xed)](_0x47a01d,_0x5b2af0){const _0x55d4de=_0x320527;_0x47a01d[_0x55d4de(0x106)]='',_0x5b2af0[_0x55d4de(0xb7)](_0x2fd186=>{const _0x3f074b=_0x55d4de;if(_0x2fd186[_0x3f074b(0xcd)]){const _0x50a173=_0x2fd186[_0x3f074b(0xcd)][_0x3f074b(0x105)](!0x0);_0x47a01d[_0x3f074b(0xa7)](_0x50a173);}}),_0x47a01d[_0x55d4de(0xd5)];const _0x1ffc1c=_0x47a01d[_0x55d4de(0x92)],_0x19be39=[];return Array[_0x55d4de(0xe0)](_0x1ffc1c)[_0x55d4de(0xb7)](_0x1d7507=>{const _0x37cdf7=_0x55d4de,_0x1cb2f8=_0x1d7507[_0x37cdf7(0xd9)]()[_0x37cdf7(0x104)];_0x19be39[_0x37cdf7(0xdb)](_0x59533a=>Math[_0x37cdf7(0xe3)](_0x59533a-_0x1cb2f8)<this[_0x37cdf7(0xf0)][_0x37cdf7(0xaa)])||_0x19be39[_0x37cdf7(0x8a)](_0x1cb2f8);}),{'rowCount':_0x19be39[_0x55d4de(0x9d)]};}[_0x320527(0xc3)](){const _0x57968e=_0x320527,_0x976ec8=document[_0x57968e(0x107)](_0x57968e(0xc1));return _0x976ec8[_0x57968e(0x89)]=this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xdf)],this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xc5)]&&_0x976ec8[_0x57968e(0x88)][_0x57968e(0x99)](this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xc5)]),_0x976ec8[_0x57968e(0xf8)]=_0x57968e(0x79),_0x976ec8;}[_0x320527(0xce)](_0x433a09,_0x56468d,_0x577400){const _0x5e23e4=_0x320527;this[_0x5e23e4(0xed)](_0x56468d,_0x577400);const _0x2422af=this[_0x5e23e4(0xc3)]();_0x433a09[_0x5e23e4(0xa7)](_0x2422af),_0x433a09[_0x5e23e4(0xd5)];const _0x5325a4=[..._0x56468d[_0x5e23e4(0x92)],_0x2422af],_0x47a2d2=[];_0x5325a4[_0x5e23e4(0xb7)](_0x5a13fb=>{const _0x4478a2=_0x5e23e4,_0x59442b=_0x5a13fb[_0x4478a2(0xd9)]()[_0x4478a2(0x104)];_0x47a2d2[_0x4478a2(0xdb)](_0x232d45=>Math[_0x4478a2(0xe3)](_0x232d45-_0x59442b)<this[_0x4478a2(0xf0)][_0x4478a2(0xaa)])||_0x47a2d2[_0x4478a2(0x8a)](_0x59442b);});const _0x5b504c=_0x47a2d2[_0x5e23e4(0x9d)];return _0x2422af[_0x5e23e4(0xd1)](),_0x5b504c<=this[_0x5e23e4(0xf0)][_0x5e23e4(0xa6)];}[_0x320527(0xc9)](_0x4cff16,_0x434bd8){const _0x3f528b=_0x320527;this[_0x3f528b(0x108)][_0x3f528b(0xa3)](),this[_0x3f528b(0xbf)][_0x3f528b(0xa3)](),_0x4cff16[_0x3f528b(0xb7)](_0x19efc6=>{const _0x410668=_0x3f528b;_0x434bd8[_0x410668(0x86)](_0x19efc6)?this[_0x410668(0xbf)][_0x410668(0x99)](_0x19efc6):this[_0x410668(0x108)][_0x410668(0x99)](_0x19efc6);});}[_0x320527(0xf4)](_0x16b478){const _0x52c24d=_0x320527;if(_0x16b478>0x0&&!this[_0x52c24d(0xa4)]&&this[_0x52c24d(0xf1)](),_0x16b478>0x0&&this[_0x52c24d(0xa4)]){const _0x7b5f6d=''+this[_0x52c24d(0xf0)][_0x52c24d(0x93)]+(_0x16b478<0x63?_0x16b478:'99');this[_0x52c24d(0xa4)][_0x52c24d(0xae)]=_0x7b5f6d;}this[_0x52c24d(0xfa)](),this[_0x52c24d(0xbe)](),this[_0x52c24d(0x10a)]();}[_0x320527(0xa8)](_0x41ce42,_0x3b88e7){const _0xf74f44=_0x320527;this[_0xf74f44(0xc9)](_0x41ce42,_0x3b88e7),this[_0xf74f44(0xf4)](_0x3b88e7[_0xf74f44(0x9d)]);}[_0x320527(0xe2)](){const _0x15798a=_0x320527;this[_0x15798a(0xb0)]&&_0x15798a(0xb9)!=typeof IntersectionObserver&&(this[_0x15798a(0xf9)]=new IntersectionObserver(_0x3b8377=>{const _0x188e9d=_0x15798a;_0x3b8377[0x0][_0x188e9d(0xff)]&&this[_0x188e9d(0xb5)]&&requestAnimationFrame(()=>{const _0x38dc47=_0x188e9d;this[_0x38dc47(0xb4)]();});},{'threshold':0.01,'rootMargin':_0x15798a(0xad)}),this[_0x15798a(0xf9)][_0x15798a(0xb3)](this[_0x15798a(0xb0)]));}[_0x320527(0xd3)](){const _0x30f59f=_0x320527;if(!this[_0x30f59f(0xb0)])return!0x1;if(!this[_0x30f59f(0xb0)][_0x30f59f(0x9e)])return!0x1;const _0x2f9867=this[_0x30f59f(0xb0)][_0x30f59f(0xd9)]();if(0x0===_0x2f9867[_0x30f59f(0x102)]||0x0===_0x2f9867[_0x30f59f(0xda)])return!0x1;const _0x389e22=window[_0x30f59f(0xcb)]||document[_0x30f59f(0xaf)][_0x30f59f(0x101)],_0x1a01a4=window[_0x30f59f(0xb1)]||document[_0x30f59f(0xaf)][_0x30f59f(0xa2)],_0x1d2eb3=0xc8;return _0x2f9867[_0x30f59f(0xc7)]>=-0xc8&&_0x2f9867[_0x30f59f(0x104)]<=_0x389e22+_0x1d2eb3&&_0x2f9867[_0x30f59f(0xbd)]>=-0xc8&&_0x2f9867[_0x30f59f(0xdd)]<=_0x1a01a4+_0x1d2eb3;}}
|