@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.0-alpha.4
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 +4 -4
- 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/form/aiformcontentarea.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/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/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/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.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/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 +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/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/ui/aidisclaimerview.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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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/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/aireviewmodeformamanager.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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x837382=_0x2842;function _0x5071(){const _0x1ef07e=['urls','sessionId','isSelectionInContext','uploadUrl','_addToConversationContextItem','updateCurrentDocument','document','isHidden','3087BFdeZt','version','ai-chat-url-upload-failed','contextItemRemoved','isInContext','end','uploadProgressChanged','_createContextItemFromContent','isCurrentDocumentInConversation','_pendingContextItems','hidden','_findSourceIdsByResourceId','_ongoingUploads','abort','FILE','6306696xVIKui','message','getResources','has','_ongoingUploadOperations','label','selection','_mapContextItemToRequestData','10GJoQqM','HTML','SELECTION','mapContextItemsToRequestData','ai-chat-source-not-found','getSentContextItems','enabled','_convertTextResourceToFile','object','filter','string','text/html','ai-chat-resource-no-data','clearPendingContextItems','uiId','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-invalid-data','start','_finishUploadOperation','text/plain','TEXT','_finishContextItemLoading','url-','text/markdown','stack','_updateResourceInContextState','DOCUMENT','all','getData','get','current-document','error','_conversationContextItems','_addContextOptionsState','addContextOptionsChanged','name','find','_isResourceInContext','3336242ZftnYE','ai-chat-resource-load-failed','fetchDocument','from','size','getPendingContextItems','isCurrentDocumentInContext','addSelectionToContext','loadSourceResources','contextItemAdded','142763ClqMSN','File','removeSelectionFromContext','contextSent','ai-chat-source-resources-load-failed','_removeContextItem','addCurrentDocumentToContext','ai-chat-context-unsupported-type','sourceResourcesLoaded','addResourceToContext','forEach','_addContextItem','_getCustomSourcesInitialState','addFilesToContext','uploadFile','attributes','contextItemLoadingEnded','ai-request-aborted','sources','abortController','files','_ownerId','removeFromContext','_config','map','URL','files-','_setAddContextOptionsDefaultState','1367412SXafrR','getId','ai-chat-document-upload-failed','addUrlToContext','populateFromMessage','push','uploadDocument','length','set','getDocument','type','resourceStateChanged','values','Current\x20document','ai-chat-file-upload-failed','url','1377hXaBcI','resources','content','data','fire','resourceId','file-','isReadOnly','_toggleAddCurrentDocumentOptionVisibility','startsWith','_connector','MARKDOWN','1574FZlpEl','400888TCSmuh','addToConversationContext','_startUploadOperation','delete','init','66140TDKsZa'];_0x5071=function(){return _0x1ef07e;};return _0x5071();}function _0x2842(_0x90a55c,_0x5b7bcd){const _0x507118=_0x5071();return _0x2842=function(_0x2842d7,_0x1c5418){_0x2842d7=_0x2842d7-0x138;let _0x134e70=_0x507118[_0x2842d7];return _0x134e70;},_0x2842(_0x90a55c,_0x5b7bcd);}(function(_0x3874df,_0x1a47da){const _0xf452c4=_0x2842,_0x15129d=_0x3874df();while(!![]){try{const _0x2e8a45=-parseInt(_0xf452c4(0x144))/0x1+parseInt(_0xf452c4(0x17c))/0x2*(parseInt(_0xf452c4(0x170))/0x3)+-parseInt(_0xf452c4(0x17d))/0x4+parseInt(_0xf452c4(0x1a2))/0x5*(-parseInt(_0xf452c4(0x160))/0x6)+-parseInt(_0xf452c4(0x13a))/0x7+-parseInt(_0xf452c4(0x19a))/0x8+parseInt(_0xf452c4(0x18b))/0x9*(parseInt(_0xf452c4(0x182))/0xa);if(_0x2e8a45===_0x1a47da)break;else _0x15129d['push'](_0x15129d['shift']());}catch(_0x369284){_0x15129d['push'](_0x15129d['shift']());}}}(_0x5071,0xa29f7));import{CKEditorError as _0x34c7d6,ObservableMixin as _0x1db243,uid as _0x438100}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a1f7c,AIContextTextResourceType as _0x4db6e2}from'../../aicore/model/aicontext.js';import{escape as _0x15c0b2}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x837382(0x143),_0x837382(0x18e),_0x837382(0x154),_0x837382(0x147),_0x837382(0x1c1),_0x837382(0x1c4),_0x837382(0x14c),_0x837382(0x16b),_0x837382(0x191)];export class AIChatContext extends _0x1db243(){[_0x837382(0x17a)];[_0x837382(0x15b)];[_0x837382(0x159)];constructor({connector:_0x20f0ac,config:_0x997067,ownerId:_0x376027}){const _0x17651a=_0x837382;super(),this[_0x17651a(0x17a)]=_0x20f0ac,this[_0x17651a(0x15b)]=_0x997067,this[_0x17651a(0x159)]=_0x376027;}[_0x837382(0x181)](){const _0x42c4db=_0x837382;this[_0x42c4db(0x194)]=new Map(),this[_0x42c4db(0x1c2)]=new Map(),this[_0x42c4db(0x197)]=new Map(),this[_0x42c4db(0x19e)]=new Map(),this[_0x42c4db(0x15f)]();}[_0x837382(0x13f)](){const _0x3366ab=_0x837382;return this[_0x3366ab(0x194)];}async[_0x837382(0x164)](_0x1f90ba){const _0x45f7a7=_0x837382,_0x4bece2=await this[_0x45f7a7(0x192)](_0x1f90ba);return this[_0x45f7a7(0x187)](_0x4bece2),_0x45f7a7(0x1c0)===_0x4bece2[_0x45f7a7(0x1b0)]&&this[_0x45f7a7(0x178)](),_0x4bece2;}async[_0x837382(0x192)](_0x597e50){const _0x2ce053=_0x837382;if(_0x597e50[_0x2ce053(0x16a)]===_0x4a1f7c[_0x2ce053(0x1bc)]){const _0x347802=await this[_0x2ce053(0x17a)][_0x2ce053(0x13c)](this[_0x2ce053(0x159)],_0x597e50['id'])[_0x2ce053(0x169)]();return{'id':_0x2ce053(0x1c0),'uiId':_0x2ce053(0x1c0),'label':_0x2ce053(0x16d),'type':_0x597e50[_0x2ce053(0x16a)],'content':_0x347802[_0x2ce053(0x172)],'hidden':this[_0x2ce053(0x1c2)][_0x2ce053(0x19d)](_0x2ce053(0x1c0)),'version':_0x347802[_0x2ce053(0x153)]?.[_0x2ce053(0x18c)],'sessionId':_0x347802[_0x2ce053(0x153)]?.[_0x2ce053(0x184)]};}return{'id':_0x597e50['id'],'uiId':_0x597e50['id'],'label':_0x597e50[_0x2ce053(0x153)]?.[_0x2ce053(0x19f)]||_0x597e50[_0x2ce053(0x1c5)]||_0x597e50[_0x2ce053(0x16f)]||_0x597e50['id'],'type':_0x597e50[_0x2ce053(0x16a)],..._0x597e50?.[_0x2ce053(0x153)]?.[_0x2ce053(0x175)]?{'resourceId':_0x597e50[_0x2ce053(0x153)]?.[_0x2ce053(0x175)]}:{}};}[_0x837382(0x1a7)](){const _0x1cbaaf=_0x837382;return new Map(this[_0x1cbaaf(0x1c2)]);}[_0x837382(0x15a)](_0x43787f){const _0x23537d=_0x837382,_0x5ee5f0=this[_0x23537d(0x194)][_0x23537d(0x1bf)](_0x43787f);_0x5ee5f0?.[_0x23537d(0x177)]||this[_0x23537d(0x149)](_0x43787f);}[_0x837382(0x1af)](){const _0x124963=_0x837382;if(0x0===this[_0x124963(0x194)][_0x124963(0x13e)])return;for(const _0x2de7f6 of this[_0x124963(0x194)][_0x124963(0x16c)]())this[_0x124963(0x149)](_0x2de7f6[_0x124963(0x1b0)]);const _0x21261e=this[_0x124963(0x1c2)][_0x124963(0x1bf)](_0x124963(0x1c0))||this[_0x124963(0x194)][_0x124963(0x1bf)](_0x124963(0x1c0));_0x21261e&&this[_0x124963(0x14f)]({..._0x21261e,'isReadOnly':!0x0,'hidden':!0x0});}[_0x837382(0x17e)](_0x9506ea){const _0x4539f8=_0x837382;for(const _0x5865db of _0x9506ea[_0x4539f8(0x16c)]())this[_0x4539f8(0x187)](_0x5865db);this[_0x4539f8(0x1af)](),this[_0x4539f8(0x174)](_0x4539f8(0x147),{'contextItems':Array[_0x4539f8(0x13d)](this[_0x4539f8(0x1a7)]()[_0x4539f8(0x16c)]())});}[_0x837382(0x140)](){const _0x17242b=_0x837382;return this[_0x17242b(0x194)][_0x17242b(0x19d)](_0x17242b(0x1c0));}[_0x837382(0x185)](){const _0x1fcb5c=_0x837382;return this[_0x1fcb5c(0x194)][_0x1fcb5c(0x19d)](_0x1fcb5c(0x1a0));}[_0x837382(0x193)](){const _0x26a577=_0x837382;return this[_0x26a577(0x1c2)][_0x26a577(0x19d)](_0x26a577(0x1c0));}static[_0x837382(0x1a5)](_0x509a7c){const _0x495374=_0x837382;return Array[_0x495374(0x13d)](_0x509a7c[_0x495374(0x16c)]())[_0x495374(0x15c)](_0x116a7f=>this[_0x495374(0x1a1)](_0x116a7f))[_0x495374(0x1ab)](_0x72d3e2=>null!==_0x72d3e2);}async[_0x837382(0x151)](_0x1ea7a0,_0x254fde,_0x1c7104=_0x4a1f7c[_0x837382(0x199)]){const _0xedbe60=_0x837382,_0x459fe8=_0xedbe60(0x15e)+_0x438100();this[_0xedbe60(0x17f)](_0x459fe8);try{await Promise[_0xedbe60(0x1bd)](_0x1ea7a0[_0xedbe60(0x15c)](async _0xc0de22=>{const _0x487875=_0xedbe60,_0x21c8f9=_0x487875(0x176)+_0x438100(),_0x17c133=_0x15c0b2(_0xc0de22[_0x487875(0x1c5)]);try{this[_0x487875(0x14f)]({'type':_0x1c7104,'label':_0x254fde?.[_0x487875(0x19f)]||_0x17c133,'uiId':_0x21c8f9,'resourceId':_0x254fde?.[_0x487875(0x175)]},!0x0);const _0x166b13=this[_0x487875(0x17a)][_0x487875(0x152)](this[_0x487875(0x159)],_0xc0de22,_0x254fde);this[_0x487875(0x197)][_0x487875(0x168)](_0x21c8f9,_0x166b13[_0x487875(0x157)]);const {id:_0x584376}=await _0x166b13[_0x487875(0x161)]();this[_0x487875(0x197)][_0x487875(0x180)](_0x21c8f9),this[_0x487875(0x1b7)]({'type':_0x1c7104,'id':_0x584376,'label':_0x254fde?.[_0x487875(0x19f)]||_0x17c133,'uiId':_0x21c8f9,'resourceId':_0x254fde?.[_0x487875(0x175)]},!0x1);}catch(_0x441e19){this[_0x487875(0x197)][_0x487875(0x180)](_0x21c8f9);if(!_0x441e19[_0x487875(0x19b)][_0x487875(0x179)](_0x487875(0x155))){const _0x3ee197=new _0x34c7d6(_0x487875(0x16e),null,{'fileName':_0x17c133});_0x3ee197[_0x487875(0x1ba)]=_0x441e19[_0x487875(0x1ba)],this[_0x487875(0x174)](_0x487875(0x1c1),{'error':_0x3ee197,'fileName':_0x17c133});}this[_0x487875(0x149)](_0x21c8f9);}}));}finally{this[_0xedbe60(0x1b4)](_0x459fe8);}}[_0x837382(0x14a)](_0xbabcf6){const _0x1de81c=_0x837382;if(this[_0x1de81c(0x140)]())return;const _0x43f168={'type':_0x4a1f7c[_0x1de81c(0x1bc)],'uiId':_0x1de81c(0x1c0),'label':_0xbabcf6,'isReadOnly':this[_0x1de81c(0x1c2)][_0x1de81c(0x19d)](_0x1de81c(0x1c0)),'hidden':this[_0x1de81c(0x1c2)][_0x1de81c(0x19d)](_0x1de81c(0x1c0))};this[_0x1de81c(0x14f)](_0x43f168);}async[_0x837382(0x188)](_0xe062f2,_0x22741b,_0x45768d,_0x495649){const _0x5536db=_0x837382,_0x1db5cf=this[_0x5536db(0x194)][_0x5536db(0x1bf)](_0x5536db(0x1c0));if(_0x1db5cf&&_0xe062f2){_0x1db5cf[_0x5536db(0x1a0)]=_0x495649?_0x495649[_0x5536db(0x15c)](_0x44847c=>({'start':_0x44847c[_0x5536db(0x1b3)],'end':_0x44847c[_0x5536db(0x190)]})):[];try{if(_0x1db5cf[_0x5536db(0x18c)]===_0x22741b)return;const {id:_0x319c1f}=await this[_0x5536db(0x17a)][_0x5536db(0x166)](this[_0x5536db(0x159)],_0xe062f2,{'version':_0x22741b,'sessionId':_0x45768d})[_0x5536db(0x161)]();_0x1db5cf['id']=_0x319c1f,_0x1db5cf[_0x5536db(0x172)]=_0xe062f2,_0x1db5cf[_0x5536db(0x18c)]=_0x22741b,_0x1db5cf[_0x5536db(0x184)]=_0x45768d;}catch(_0x20fbc7){const _0x55bfaf=new _0x34c7d6(_0x5536db(0x162),null);_0x55bfaf[_0x5536db(0x1ba)]=_0x20fbc7[_0x5536db(0x1ba)],this[_0x5536db(0x174)](_0x5536db(0x1c1),{'error':_0x55bfaf});}}}[_0x837382(0x141)](_0x1211ee){const _0x81bb24=_0x837382;this[_0x81bb24(0x14f)]({'type':_0x4a1f7c[_0x81bb24(0x1a4)],'label':_0x1211ee,'uiId':_0x81bb24(0x1a0),'content':_0x1211ee});}[_0x837382(0x146)](){const _0x351b2b=_0x837382;this[_0x351b2b(0x149)](_0x351b2b(0x1a0));}async[_0x837382(0x163)](_0x1a97e8,_0x2a1810){const _0x444eb6=_0x837382,_0x287573=_0x444eb6(0x1b8)+_0x438100();this[_0x444eb6(0x17f)](_0x287573);const _0x5ed6c2=_0x444eb6(0x1b8)+_0x438100();try{this[_0x444eb6(0x14f)]({'type':_0x4a1f7c[_0x444eb6(0x15d)],'label':_0x2a1810?.[_0x444eb6(0x19f)]||_0x1a97e8,'uiId':_0x5ed6c2,'resourceId':_0x2a1810?.[_0x444eb6(0x175)]},!0x0);const _0x1a3bba=this[_0x444eb6(0x17a)][_0x444eb6(0x186)](this[_0x444eb6(0x159)],_0x1a97e8,_0x2a1810);this[_0x444eb6(0x197)][_0x444eb6(0x168)](_0x5ed6c2,_0x1a3bba[_0x444eb6(0x157)]);const {id:_0x42eac5}=await _0x1a3bba[_0x444eb6(0x161)]();this[_0x444eb6(0x197)][_0x444eb6(0x180)](_0x5ed6c2),this[_0x444eb6(0x1b7)]({'type':_0x4a1f7c[_0x444eb6(0x15d)],'id':_0x42eac5,'label':_0x2a1810?.[_0x444eb6(0x19f)]||_0x1a97e8,'uiId':_0x5ed6c2,'resourceId':_0x2a1810?.[_0x444eb6(0x175)]},!0x1);}catch(_0x7b9016){this[_0x444eb6(0x197)][_0x444eb6(0x180)](_0x5ed6c2),(_0x7b9016[_0x444eb6(0x19b)][_0x444eb6(0x179)](_0x444eb6(0x155))||this[_0x444eb6(0x174)](_0x444eb6(0x1c1),{'error':new _0x34c7d6(_0x444eb6(0x18d),this,{'url':_0x1a97e8,'originalError':_0x7b9016}),'url':_0x1a97e8}),this[_0x444eb6(0x149)](_0x5ed6c2));}finally{this[_0x444eb6(0x1b4)](_0x287573);}}async[_0x837382(0x142)](_0x555d64,_0x3d15e2,_0x3f7f2e){const _0x5b2d6d=_0x837382,_0x406b13=this[_0x5b2d6d(0x1c3)][_0x5b2d6d(0x156)][_0x5b2d6d(0x138)](_0x3dedcc=>_0x3dedcc['id']===_0x555d64);if(!_0x406b13)return this[_0x5b2d6d(0x174)](_0x5b2d6d(0x1c1),{'error':new _0x34c7d6(_0x5b2d6d(0x1a6),this,{'sourceId':_0x555d64}),'sourceId':_0x555d64}),[];try{const _0x10ab37=(await _0x406b13[_0x5b2d6d(0x19c)](_0x3d15e2))[_0x5b2d6d(0x15c)](_0x1bc2f1=>{const _0x1adbdd=_0x5b2d6d,_0x7d7546=this[_0x1adbdd(0x139)](_0x1bc2f1['id']);return{..._0x1bc2f1,'isInContext':_0x7d7546};});return _0x406b13[_0x5b2d6d(0x171)]=_0x10ab37,this[_0x5b2d6d(0x174)](_0x5b2d6d(0x14c),{'sourceId':_0x555d64,'source':_0x406b13,'resources':_0x10ab37,'uid':_0x3f7f2e}),_0x10ab37;}catch(_0x285e41){return this[_0x5b2d6d(0x174)](_0x5b2d6d(0x1c1),{'error':new _0x34c7d6(_0x5b2d6d(0x148),this,{'sourceId':_0x555d64,'originalError':_0x285e41}),'sourceId':_0x555d64,'sourceLabel':_0x406b13[_0x5b2d6d(0x19f)]}),[];}}async[_0x837382(0x14d)](_0x1e34ca,_0x2a30b6){const _0x509bae=_0x837382;if(this[_0x509bae(0x139)](_0x2a30b6['id']))return;let _0x53d449=_0x2a30b6[_0x509bae(0x173)];if(!_0x53d449&&_0x1e34ca[_0x509bae(0x1be)])try{_0x53d449=await _0x1e34ca[_0x509bae(0x1be)](_0x2a30b6['id']);}catch(_0x49e7ef){return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x13b),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'originalError':_0x49e7ef}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}if(_0x53d449)switch(_0x2a30b6[_0x509bae(0x16a)]){case _0x4a1f7c[_0x509bae(0x15d)]:if(_0x509bae(0x1ac)!=typeof _0x53d449)return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x1ac),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});await this[_0x509bae(0x163)](_0x53d449,{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']});break;case _0x4a1f7c[_0x509bae(0x199)]:if(!(_0x53d449 instanceof File))return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x145),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});await this[_0x509bae(0x151)]([_0x53d449],{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']});break;case _0x4a1f7c[_0x509bae(0x1b6)]:if(_0x509bae(0x1aa)!=typeof _0x53d449||!(_0x509bae(0x172)in _0x53d449)||!(_0x509bae(0x16a)in _0x53d449))return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x1b1),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});_0x53d449=AIChatContext[_0x509bae(0x1a9)](_0x53d449,_0x2a30b6[_0x509bae(0x19f)]),await this[_0x509bae(0x151)]([_0x53d449],{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']},_0x4a1f7c[_0x509bae(0x1b6)]);break;default:this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x14b),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'resourceType':_0x2a30b6[_0x509bae(0x16a)]}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}else this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1ae),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}static[_0x837382(0x1a9)](_0x281d23,_0x596597){const _0x390836=_0x837382;switch(_0x281d23[_0x390836(0x16a)]){case _0x4db6e2[_0x390836(0x17b)]:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1b9)});case _0x4db6e2[_0x390836(0x1a3)]:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1ad)});default:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1b5)});}}static[_0x837382(0x1a1)](_0x3a74ed){const _0x458ea0=_0x837382;switch(_0x3a74ed[_0x458ea0(0x16a)]){case _0x4a1f7c[_0x458ea0(0x199)]:return{'type':_0x4a1f7c[_0x458ea0(0x199)],'id':_0x3a74ed['id']};case _0x4a1f7c[_0x458ea0(0x15d)]:return{'type':_0x4a1f7c[_0x458ea0(0x15d)],'id':_0x3a74ed['id']};case _0x4a1f7c[_0x458ea0(0x1bc)]:return{'type':_0x4a1f7c[_0x458ea0(0x1bc)],'id':_0x3a74ed['id'],..._0x3a74ed[_0x458ea0(0x1a0)]?.[_0x458ea0(0x167)]&&{'selection':_0x3a74ed[_0x458ea0(0x1a0)]}};case _0x4a1f7c[_0x458ea0(0x1b6)]:return{'type':_0x4a1f7c[_0x458ea0(0x199)],'id':_0x3a74ed['id']};default:return null;}}[_0x837382(0x14f)](_0x4d257f,_0x2458fa=!0x1){const _0x26df6d=_0x837382;if(this[_0x26df6d(0x194)][_0x26df6d(0x168)](_0x4d257f[_0x26df6d(0x1b0)],_0x4d257f),_0x4d257f[_0x26df6d(0x195)]||this[_0x26df6d(0x174)](_0x26df6d(0x143),{'contextItem':_0x4d257f,'isLoading':_0x2458fa}),_0x26df6d(0x1c0)===_0x4d257f[_0x26df6d(0x1b0)]&&this[_0x26df6d(0x178)](),_0x4d257f[_0x26df6d(0x175)]){const _0x46b1c2=this[_0x26df6d(0x196)](_0x4d257f[_0x26df6d(0x175)]);_0x46b1c2&&_0x46b1c2[_0x26df6d(0x14e)](_0x2a3e70=>{const _0x524ca0=_0x26df6d;this[_0x524ca0(0x1bb)](_0x2a3e70,_0x4d257f[_0x524ca0(0x175)],!0x0);});}}[_0x837382(0x149)](_0x3669df){const _0x4e6f80=_0x837382,_0x30d488=this[_0x4e6f80(0x194)][_0x4e6f80(0x1bf)](_0x3669df),_0x379339=this[_0x4e6f80(0x197)][_0x4e6f80(0x1bf)](_0x3669df);if(_0x379339&&(_0x379339[_0x4e6f80(0x198)](),this[_0x4e6f80(0x197)][_0x4e6f80(0x180)](_0x3669df)),_0x30d488?.[_0x4e6f80(0x175)]){const _0x546b8b=this[_0x4e6f80(0x196)](_0x30d488[_0x4e6f80(0x175)]);_0x546b8b&&_0x546b8b[_0x4e6f80(0x14e)](_0x27daad=>{const _0x24f128=_0x4e6f80;this[_0x24f128(0x1bb)](_0x27daad,_0x30d488[_0x24f128(0x175)],!0x1);});}this[_0x4e6f80(0x194)][_0x4e6f80(0x180)](_0x3669df),this[_0x4e6f80(0x174)](_0x4e6f80(0x18e),{'uiId':_0x3669df,'type':_0x30d488?.[_0x4e6f80(0x16a)]}),_0x4e6f80(0x1c0)===_0x3669df&&this[_0x4e6f80(0x178)]();}[_0x837382(0x1b7)](_0x517bdc,_0x3fc445){const _0x451405=_0x837382;if(this[_0x451405(0x194)][_0x451405(0x19d)](_0x517bdc[_0x451405(0x1b0)])&&(this[_0x451405(0x194)][_0x451405(0x168)](_0x517bdc[_0x451405(0x1b0)],_0x517bdc),this[_0x451405(0x174)](_0x451405(0x154),{'contextItem':_0x517bdc,'isLoading':_0x3fc445}),_0x517bdc[_0x451405(0x175)])){const _0x2b9888=this[_0x451405(0x196)](_0x517bdc[_0x451405(0x175)]);_0x2b9888&&_0x2b9888[_0x451405(0x14e)](_0x3b7417=>{const _0x56ab7d=_0x451405;this[_0x56ab7d(0x1bb)](_0x3b7417,_0x517bdc[_0x56ab7d(0x175)],!0x0);});}}[_0x837382(0x187)](_0xaca12c){const _0x442ada=_0x837382;this[_0x442ada(0x1c2)][_0x442ada(0x168)](_0xaca12c[_0x442ada(0x1b0)],_0xaca12c);}[_0x837382(0x15f)](){const _0x2a646a=_0x837382;this[_0x2a646a(0x1c3)]={'document':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x189)]?.[_0x2a646a(0x1a8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x183)]?.[_0x2a646a(0x1a8)]},'files':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x158)]?.[_0x2a646a(0x1a8)]},'sources':this[_0x2a646a(0x150)]()},this[_0x2a646a(0x174)](_0x2a646a(0x1c4),{'options':this[_0x2a646a(0x1c3)]});}[_0x837382(0x150)](){const _0x2e4b13=_0x837382;return this[_0x2e4b13(0x15b)]?.[_0x2e4b13(0x156)]?.[_0x2e4b13(0x15c)](_0x452aec=>({..._0x452aec,'resources':[]}))??[];}[_0x837382(0x178)](){const _0x3f6f15=_0x837382,_0x1ff24a=this[_0x3f6f15(0x140)]()||this[_0x3f6f15(0x193)]();this[_0x3f6f15(0x1c3)][_0x3f6f15(0x189)][_0x3f6f15(0x18a)]=_0x1ff24a,this[_0x3f6f15(0x174)](_0x3f6f15(0x1c4),{'options':this[_0x3f6f15(0x1c3)]});}[_0x837382(0x139)](_0x572710){const _0x2b2217=_0x837382;for(const _0x406332 of this[_0x2b2217(0x194)][_0x2b2217(0x16c)]())if(_0x406332[_0x2b2217(0x175)]===_0x572710)return!0x0;for(const _0x4c2f11 of this[_0x2b2217(0x1c2)][_0x2b2217(0x16c)]())if(_0x4c2f11[_0x2b2217(0x175)]===_0x572710)return!0x0;return!0x1;}[_0x837382(0x196)](_0x55e208){const _0xb3f312=_0x837382,_0x1bb97a=[];for(const _0x5008a8 of this[_0xb3f312(0x1c3)][_0xb3f312(0x156)]){_0x5008a8[_0xb3f312(0x171)][_0xb3f312(0x138)](_0x26c13b=>_0x26c13b['id']===_0x55e208)&&_0x1bb97a[_0xb3f312(0x165)](_0x5008a8['id']);}return 0x0===_0x1bb97a[_0xb3f312(0x167)]?null:_0x1bb97a;}[_0x837382(0x1bb)](_0x3856d9,_0x44a5b2,_0x1879a7){const _0x215a1f=_0x837382,_0x26385c=this[_0x215a1f(0x1c3)][_0x215a1f(0x156)][_0x215a1f(0x138)](_0xe2b71=>_0xe2b71['id']===_0x3856d9);if(!_0x26385c)return;const _0x30bf92=_0x26385c[_0x215a1f(0x171)][_0x215a1f(0x138)](_0x1002c9=>_0x1002c9['id']===_0x44a5b2);_0x30bf92&&(_0x30bf92[_0x215a1f(0x18f)]=_0x1879a7,this[_0x215a1f(0x174)](_0x215a1f(0x16b),{'sourceId':_0x3856d9,'resourceId':_0x44a5b2,'isInContext':_0x1879a7}));}[_0x837382(0x17f)](_0x1e86b0){const _0x2b7d88=_0x837382;this[_0x2b7d88(0x19e)][_0x2b7d88(0x168)](_0x1e86b0,!0x0),this[_0x2b7d88(0x19e)][_0x2b7d88(0x13e)]&&this[_0x2b7d88(0x174)](_0x2b7d88(0x191),{'isUploadInProgress':!0x0});}[_0x837382(0x1b4)](_0x1c80ac){const _0x5bd37c=_0x837382;this[_0x5bd37c(0x19e)][_0x5bd37c(0x180)](_0x1c80ac),0x0===this[_0x5bd37c(0x19e)][_0x5bd37c(0x13e)]&&this[_0x5bd37c(0x174)](_0x5bd37c(0x191),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x194de3=_0x2311;function _0x458c(){const _0x2d9a17=['ai-chat-source-resources-load-failed','urls','addUrlToContext','addSelectionToContext','filter','_removeContextItem','Current\x20document','addFilesToContext','addResourceToContext','map','delete','name','_config','current-document','start','contextItemAdded','mapContextItemsToRequestData','hidden','HTML','isReadOnly','contextItemRemoved','_connector','length','ai-request-aborted','removeFromContext','addToConversationContext','uploadUrl','set','_ownerId','text/markdown','values','_isResourceInContext','ai-chat-context-invalid-data','ai-chat-file-upload-failed','sourceResourcesLoaded','data','message','ai-chat-document-upload-failed','text/plain','uiId','loadSourceResources','uploadProgressChanged','resourceStateChanged','isCurrentDocumentInConversation','label','_pendingContextItems','_findSourceIdsByResourceId','2085612AsZYvh','ai-chat-resource-no-data','ai-chat-url-upload-failed','content','ai-chat-resource-load-failed','getDocument','clearPendingContextItems','contextSent','resources','SELECTION','object','_startUploadOperation','url','document','URL','size','selection','_getCustomSourcesInitialState','_finishUploadOperation','populateFromMessage','1xPrLCF','getResources','find','file-','ai-chat-source-not-found','sources','getSentContextItems','all','push','isCurrentDocumentInContext','addCurrentDocumentToContext','_convertTextResourceToFile','_addToConversationContextItem','files','File','end','_updateResourceInContextState','DOCUMENT','7017976sHvjpV','6749616sqzBca','_mapContextItemToRequestData','enabled','getData','_addContextOptionsState','error','attributes','object\x20with\x20content\x20and\x20type\x20properties','FILE','from','isHidden','_ongoingUploads','text/html','contextItemLoadingEnded','_conversationContextItems','version','fetchDocument','_ongoingUploadOperations','string','fire','type','getId','removeSelectionFromContext','forEach','ai-chat-context-unsupported-type','_setAddContextOptionsDefaultState','stack','_createContextItemFromContent','init','_finishContextItemLoading','51763768AJxwJm','uploadDocument','url-','isSelectionInContext','has','2639362QKgycu','_addContextItem','resourceId','sessionId','addContextOptionsChanged','abortController','isInContext','abort','files-','getPendingContextItems','get','9056175pbvycd','updateCurrentDocument','5108865MzKCeK','startsWith','uploadFile','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','TEXT'];_0x458c=function(){return _0x2d9a17;};return _0x458c();}(function(_0x434c15,_0x350514){const _0x1a195c=_0x2311,_0x3a0112=_0x434c15();while(!![]){try{const _0x341566=parseInt(_0x1a195c(0xb3))/0x1*(-parseInt(_0x1a195c(0xe9))/0x2)+-parseInt(_0x1a195c(0xf6))/0x3+-parseInt(_0x1a195c(0x9f))/0x4+-parseInt(_0x1a195c(0xf4))/0x5+-parseInt(_0x1a195c(0xc6))/0x6+parseInt(_0x1a195c(0xc5))/0x7+parseInt(_0x1a195c(0xe4))/0x8;if(_0x341566===_0x350514)break;else _0x3a0112['push'](_0x3a0112['shift']());}catch(_0x3133b1){_0x3a0112['push'](_0x3a0112['shift']());}}}(_0x458c,0xf263d));import{CKEditorError as _0x74f2b5,ObservableMixin as _0x377a6e,uid as _0x4d7999}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x285026,AIContextTextResourceType as _0x3b0f38}from'../../aicore/model/aicontext.js';import{escape as _0x59e1df}from'es-toolkit/compat';function _0x2311(_0x5748ed,_0x586d72){const _0x458cd0=_0x458c();return _0x2311=function(_0x23116f,_0x578653){_0x23116f=_0x23116f-0x9f;let _0x3ea888=_0x458cd0[_0x23116f];return _0x3ea888;},_0x2311(_0x5748ed,_0x586d72);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x194de3(0x10b),_0x194de3(0x110),_0x194de3(0xd3),_0x194de3(0xa6),_0x194de3(0xcb),_0x194de3(0xed),_0x194de3(0x11e),_0x194de3(0x126),_0x194de3(0x125)];export class AIChatContext extends _0x377a6e(){[_0x194de3(0x111)];[_0x194de3(0x108)];[_0x194de3(0x118)];constructor({connector:_0xa8a3df,config:_0x4fc587,ownerId:_0x31c41e}){const _0x174f44=_0x194de3;super(),this[_0x174f44(0x111)]=_0xa8a3df,this[_0x174f44(0x108)]=_0x4fc587,this[_0x174f44(0x118)]=_0x31c41e;}[_0x194de3(0xe2)](){const _0x46c816=_0x194de3;this[_0x46c816(0x129)]=new Map(),this[_0x46c816(0xd4)]=new Map(),this[_0x46c816(0xd1)]=new Map(),this[_0x46c816(0xd7)]=new Map(),this[_0x46c816(0xdf)]();}[_0x194de3(0xf2)](){const _0x2c5d8c=_0x194de3;return this[_0x2c5d8c(0x129)];}async[_0x194de3(0xb2)](_0x18e48f){const _0x152e51=_0x194de3,_0x568aec=await this[_0x152e51(0xe1)](_0x18e48f);return this[_0x152e51(0xbf)](_0x568aec),_0x152e51(0x109)===_0x568aec[_0x152e51(0x123)]&&this[_0x152e51(0xfa)](),_0x568aec;}async[_0x194de3(0xe1)](_0x51d8e5){const _0x4fe3c8=_0x194de3;if(_0x51d8e5[_0x4fe3c8(0xda)]===_0x285026[_0x4fe3c8(0xc4)]){const _0x270482=await this[_0x4fe3c8(0x111)][_0x4fe3c8(0xd6)](this[_0x4fe3c8(0x118)],_0x51d8e5['id'])[_0x4fe3c8(0xa4)]();return{'id':_0x4fe3c8(0x109),'uiId':_0x4fe3c8(0x109),'label':_0x4fe3c8(0x102),'type':_0x51d8e5[_0x4fe3c8(0xda)],'content':_0x270482[_0x4fe3c8(0xa2)],'hidden':this[_0x4fe3c8(0xd4)][_0x4fe3c8(0xe8)](_0x4fe3c8(0x109)),'version':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xd5)],'sessionId':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xec)]};}return{'id':_0x51d8e5['id'],'uiId':_0x51d8e5['id'],'label':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0x128)]||_0x51d8e5[_0x4fe3c8(0x107)]||_0x51d8e5[_0x4fe3c8(0xab)]||_0x51d8e5['id'],'type':_0x51d8e5[_0x4fe3c8(0xda)],..._0x51d8e5?.[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]?{'resourceId':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]}:{}};}[_0x194de3(0xb9)](){const _0x3e78db=_0x194de3;return new Map(this[_0x3e78db(0xd4)]);}[_0x194de3(0x114)](_0x25035b){const _0x1f5b31=_0x194de3,_0x3a8cec=this[_0x1f5b31(0x129)][_0x1f5b31(0xf3)](_0x25035b);_0x3a8cec?.[_0x1f5b31(0x10f)]||this[_0x1f5b31(0x101)](_0x25035b);}[_0x194de3(0xa5)](){const _0x3e3776=_0x194de3;if(0x0===this[_0x3e3776(0x129)][_0x3e3776(0xae)])return;for(const _0x5ac66a of this[_0x3e3776(0x129)][_0x3e3776(0x11a)]())this[_0x3e3776(0x101)](_0x5ac66a[_0x3e3776(0x123)]);const _0x5a1d39=this[_0x3e3776(0xd4)][_0x3e3776(0xf3)](_0x3e3776(0x109))||this[_0x3e3776(0x129)][_0x3e3776(0xf3)](_0x3e3776(0x109));_0x5a1d39&&this[_0x3e3776(0xea)]({..._0x5a1d39,'isReadOnly':!0x0,'hidden':!0x0});}[_0x194de3(0x115)](_0x4c646d){const _0x4621d7=_0x194de3;for(const _0x270765 of _0x4c646d[_0x4621d7(0x11a)]())this[_0x4621d7(0xbf)](_0x270765);this[_0x4621d7(0xa5)](),this[_0x4621d7(0xd9)](_0x4621d7(0xa6),{'contextItems':Array[_0x4621d7(0xcf)](this[_0x4621d7(0xb9)]()[_0x4621d7(0x11a)]())});}[_0x194de3(0xbc)](){const _0x4f8baf=_0x194de3;return this[_0x4f8baf(0x129)][_0x4f8baf(0xe8)](_0x4f8baf(0x109));}[_0x194de3(0xe7)](){const _0x381234=_0x194de3;return this[_0x381234(0x129)][_0x381234(0xe8)](_0x381234(0xaf));}[_0x194de3(0x127)](){const _0x24d397=_0x194de3;return this[_0x24d397(0xd4)][_0x24d397(0xe8)](_0x24d397(0x109));}static[_0x194de3(0x10c)](_0x400d87){const _0x5de0b0=_0x194de3;return Array[_0x5de0b0(0xcf)](_0x400d87[_0x5de0b0(0x11a)]())[_0x5de0b0(0x105)](_0x3c4568=>this[_0x5de0b0(0xc7)](_0x3c4568))[_0x5de0b0(0x100)](_0x491aaf=>null!==_0x491aaf);}async[_0x194de3(0x103)](_0x2c5a82,_0x3d0ef0,_0x48ff9d=_0x285026[_0x194de3(0xce)]){const _0x328819=_0x194de3,_0x200b1a=_0x328819(0xf1)+_0x4d7999();this[_0x328819(0xaa)](_0x200b1a);try{await Promise[_0x328819(0xba)](_0x2c5a82[_0x328819(0x105)](async _0x4d3891=>{const _0x2734bf=_0x328819,_0x4c8e56=_0x2734bf(0xb6)+_0x4d7999(),_0x54b542=_0x59e1df(_0x4d3891[_0x2734bf(0x107)]);try{this[_0x2734bf(0xea)]({'type':_0x48ff9d,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x0);const _0x60ccf4=this[_0x2734bf(0x111)][_0x2734bf(0xf8)](this[_0x2734bf(0x118)],_0x4d3891,_0x3d0ef0);this[_0x2734bf(0xd1)][_0x2734bf(0x117)](_0x4c8e56,_0x60ccf4[_0x2734bf(0xee)]);const {id:_0x4fa755}=await _0x60ccf4[_0x2734bf(0xdb)]();this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56),this[_0x2734bf(0xe3)]({'type':_0x48ff9d,'id':_0x4fa755,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x1);}catch(_0x13818c){this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56);if(!_0x13818c[_0x2734bf(0x120)][_0x2734bf(0xf7)](_0x2734bf(0x113))){const _0x1f0b14=new _0x74f2b5(_0x2734bf(0x11d),null,{'fileName':_0x54b542});_0x1f0b14[_0x2734bf(0xe0)]=_0x13818c[_0x2734bf(0xe0)],this[_0x2734bf(0xd9)](_0x2734bf(0xcb),{'error':_0x1f0b14,'fileName':_0x54b542});}this[_0x2734bf(0x101)](_0x4c8e56);}}));}finally{this[_0x328819(0xb1)](_0x200b1a);}}[_0x194de3(0xbd)](_0x3bad72){const _0x57731a=_0x194de3;if(this[_0x57731a(0xbc)]())return;const _0x28d22e={'type':_0x285026[_0x57731a(0xc4)],'uiId':_0x57731a(0x109),'label':_0x3bad72,'isReadOnly':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109)),'hidden':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109))};this[_0x57731a(0xea)](_0x28d22e);}async[_0x194de3(0xf5)](_0x1c551f,_0x5e03bd,_0x485170,_0x15efb4){const _0x1d6164=_0x194de3,_0x1c3d2f=this[_0x1d6164(0x129)][_0x1d6164(0xf3)](_0x1d6164(0x109));if(_0x1c3d2f&&_0x1c551f){_0x1c3d2f[_0x1d6164(0xaf)]=_0x15efb4?_0x15efb4[_0x1d6164(0x105)](_0x2129c9=>({'start':_0x2129c9[_0x1d6164(0x10a)],'end':_0x2129c9[_0x1d6164(0xc2)]})):[];try{if(_0x1c3d2f[_0x1d6164(0xd5)]===_0x5e03bd)return;const {id:_0x436173}=await this[_0x1d6164(0x111)][_0x1d6164(0xe5)](this[_0x1d6164(0x118)],_0x1c551f,{'version':_0x5e03bd,'sessionId':_0x485170})[_0x1d6164(0xdb)]();_0x1c3d2f['id']=_0x436173,_0x1c3d2f[_0x1d6164(0xa2)]=_0x1c551f,_0x1c3d2f[_0x1d6164(0xd5)]=_0x5e03bd,_0x1c3d2f[_0x1d6164(0xec)]=_0x485170;}catch(_0xc06538){const _0x162433=new _0x74f2b5(_0x1d6164(0x121),null);_0x162433[_0x1d6164(0xe0)]=_0xc06538[_0x1d6164(0xe0)],this[_0x1d6164(0xd9)](_0x1d6164(0xcb),{'error':_0x162433});}}}[_0x194de3(0xff)](_0x421f5f){const _0x421f85=_0x194de3;this[_0x421f85(0xea)]({'type':_0x285026[_0x421f85(0xa8)],'label':_0x421f5f,'uiId':_0x421f85(0xaf),'content':_0x421f5f});}[_0x194de3(0xdc)](){const _0x49a4ea=_0x194de3;this[_0x49a4ea(0x101)](_0x49a4ea(0xaf));}async[_0x194de3(0xfe)](_0x1da7df,_0x3c5c2a){const _0x155d23=_0x194de3,_0x16bacd=_0x155d23(0xe6)+_0x4d7999();this[_0x155d23(0xaa)](_0x16bacd);const _0xcb5d24=_0x155d23(0xe6)+_0x4d7999();try{this[_0x155d23(0xea)]({'type':_0x285026[_0x155d23(0xad)],'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x0);const _0x113dee=this[_0x155d23(0x111)][_0x155d23(0x116)](this[_0x155d23(0x118)],_0x1da7df,_0x3c5c2a);this[_0x155d23(0xd1)][_0x155d23(0x117)](_0xcb5d24,_0x113dee[_0x155d23(0xee)]);const {id:_0x506de8}=await _0x113dee[_0x155d23(0xdb)]();this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),this[_0x155d23(0xe3)]({'type':_0x285026[_0x155d23(0xad)],'id':_0x506de8,'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x1);}catch(_0x25b661){this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),(_0x25b661[_0x155d23(0x120)][_0x155d23(0xf7)](_0x155d23(0x113))||this[_0x155d23(0xd9)](_0x155d23(0xcb),{'error':new _0x74f2b5(_0x155d23(0xa1),this,{'url':_0x1da7df,'originalError':_0x25b661}),'url':_0x1da7df}),this[_0x155d23(0x101)](_0xcb5d24));}finally{this[_0x155d23(0xb1)](_0x16bacd);}}async[_0x194de3(0x124)](_0x43a6d0,_0x5a6e03,_0x1dc80a){const _0x2ff54a=_0x194de3,_0x265cda=this[_0x2ff54a(0xca)][_0x2ff54a(0xb8)][_0x2ff54a(0xb5)](_0x1056c4=>_0x1056c4['id']===_0x43a6d0);if(!_0x265cda)return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xb7),this,{'sourceId':_0x43a6d0}),'sourceId':_0x43a6d0}),[];try{const _0xca362e=(await _0x265cda[_0x2ff54a(0xb4)](_0x5a6e03))[_0x2ff54a(0x105)](_0x10593e=>{const _0xa5821b=_0x2ff54a,_0x169061=this[_0xa5821b(0x11b)](_0x10593e['id']);return{..._0x10593e,'isInContext':_0x169061};});return _0x265cda[_0x2ff54a(0xa7)]=_0xca362e,this[_0x2ff54a(0xd9)](_0x2ff54a(0x11e),{'sourceId':_0x43a6d0,'source':_0x265cda,'resources':_0xca362e,'uid':_0x1dc80a}),_0xca362e;}catch(_0x361727){return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xfc),this,{'sourceId':_0x43a6d0,'originalError':_0x361727}),'sourceId':_0x43a6d0,'sourceLabel':_0x265cda[_0x2ff54a(0x128)]}),[];}}async[_0x194de3(0x104)](_0x2fa0ac,_0x23ed66){const _0x540213=_0x194de3;if(this[_0x540213(0x11b)](_0x23ed66['id']))return;let _0x1967a7=_0x23ed66[_0x540213(0x11f)];if(!_0x1967a7&&_0x2fa0ac[_0x540213(0xc9)])try{_0x1967a7=await _0x2fa0ac[_0x540213(0xc9)](_0x23ed66['id']);}catch(_0x5208ec){return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa3),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'originalError':_0x5208ec}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}if(_0x1967a7)switch(_0x23ed66[_0x540213(0xda)]){case _0x285026[_0x540213(0xad)]:if(_0x540213(0xd8)!=typeof _0x1967a7)return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xd8),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0xfe)](_0x1967a7,{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xce)]:if(!(_0x1967a7 instanceof File))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xc1),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xfb)]:if(_0x540213(0xa9)!=typeof _0x1967a7||!(_0x540213(0xa2)in _0x1967a7)||!(_0x540213(0xda)in _0x1967a7))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xcd),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});_0x1967a7=AIChatContext[_0x540213(0xbe)](_0x1967a7,_0x23ed66[_0x540213(0x128)]),await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']},_0x285026[_0x540213(0xfb)]);break;default:this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xde),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'resourceType':_0x23ed66[_0x540213(0xda)]}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}else this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa0),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}static[_0x194de3(0xbe)](_0x512a33,_0x294f74){const _0xcbc37d=_0x194de3;switch(_0x512a33[_0xcbc37d(0xda)]){case _0x3b0f38[_0xcbc37d(0xf9)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x119)});case _0x3b0f38[_0xcbc37d(0x10e)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0xd2)});default:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x122)});}}static[_0x194de3(0xc7)](_0x33a5a7){const _0x466733=_0x194de3;switch(_0x33a5a7[_0x466733(0xda)]){case _0x285026[_0x466733(0xce)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xad)]:return{'type':_0x285026[_0x466733(0xad)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xc4)]:return{'type':_0x285026[_0x466733(0xc4)],'id':_0x33a5a7['id'],..._0x33a5a7[_0x466733(0xaf)]?.[_0x466733(0x112)]&&{'selection':_0x33a5a7[_0x466733(0xaf)]}};case _0x285026[_0x466733(0xfb)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};default:return null;}}[_0x194de3(0xea)](_0x11f6d0,_0x28b321=!0x1){const _0x47a875=_0x194de3;if(this[_0x47a875(0x129)][_0x47a875(0x117)](_0x11f6d0[_0x47a875(0x123)],_0x11f6d0),_0x11f6d0[_0x47a875(0x10d)]||this[_0x47a875(0xd9)](_0x47a875(0x10b),{'contextItem':_0x11f6d0,'isLoading':_0x28b321}),_0x47a875(0x109)===_0x11f6d0[_0x47a875(0x123)]&&this[_0x47a875(0xfa)](),_0x11f6d0[_0x47a875(0xeb)]){const _0x1da753=this[_0x47a875(0x12a)](_0x11f6d0[_0x47a875(0xeb)]);_0x1da753&&_0x1da753[_0x47a875(0xdd)](_0x1515c5=>{const _0x2c7c45=_0x47a875;this[_0x2c7c45(0xc3)](_0x1515c5,_0x11f6d0[_0x2c7c45(0xeb)],!0x0);});}}[_0x194de3(0x101)](_0x40dd87){const _0xb51e80=_0x194de3,_0x35afca=this[_0xb51e80(0x129)][_0xb51e80(0xf3)](_0x40dd87),_0x167a1a=this[_0xb51e80(0xd1)][_0xb51e80(0xf3)](_0x40dd87);if(_0x167a1a&&(_0x167a1a[_0xb51e80(0xf0)](),this[_0xb51e80(0xd1)][_0xb51e80(0x106)](_0x40dd87)),_0x35afca?.[_0xb51e80(0xeb)]){const _0x36dbd2=this[_0xb51e80(0x12a)](_0x35afca[_0xb51e80(0xeb)]);_0x36dbd2&&_0x36dbd2[_0xb51e80(0xdd)](_0x36462e=>{const _0x370561=_0xb51e80;this[_0x370561(0xc3)](_0x36462e,_0x35afca[_0x370561(0xeb)],!0x1);});}this[_0xb51e80(0x129)][_0xb51e80(0x106)](_0x40dd87),this[_0xb51e80(0xd9)](_0xb51e80(0x110),{'uiId':_0x40dd87,'type':_0x35afca?.[_0xb51e80(0xda)]}),_0xb51e80(0x109)===_0x40dd87&&this[_0xb51e80(0xfa)]();}[_0x194de3(0xe3)](_0x11d467,_0x1cb936){const _0xc71f74=_0x194de3;if(this[_0xc71f74(0x129)][_0xc71f74(0xe8)](_0x11d467[_0xc71f74(0x123)])&&(this[_0xc71f74(0x129)][_0xc71f74(0x117)](_0x11d467[_0xc71f74(0x123)],_0x11d467),this[_0xc71f74(0xd9)](_0xc71f74(0xd3),{'contextItem':_0x11d467,'isLoading':_0x1cb936}),_0x11d467[_0xc71f74(0xeb)])){const _0x3ebe19=this[_0xc71f74(0x12a)](_0x11d467[_0xc71f74(0xeb)]);_0x3ebe19&&_0x3ebe19[_0xc71f74(0xdd)](_0xbb4e5=>{const _0x28f3c5=_0xc71f74;this[_0x28f3c5(0xc3)](_0xbb4e5,_0x11d467[_0x28f3c5(0xeb)],!0x0);});}}[_0x194de3(0xbf)](_0x263783){const _0x8934e4=_0x194de3;this[_0x8934e4(0xd4)][_0x8934e4(0x117)](_0x263783[_0x8934e4(0x123)],_0x263783);}[_0x194de3(0xdf)](){const _0x13353c=_0x194de3;this[_0x13353c(0xca)]={'document':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xac)]?.[_0x13353c(0xc8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xfd)]?.[_0x13353c(0xc8)]},'files':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xc0)]?.[_0x13353c(0xc8)]},'sources':this[_0x13353c(0xb0)]()},this[_0x13353c(0xd9)](_0x13353c(0xed),{'options':this[_0x13353c(0xca)]});}[_0x194de3(0xb0)](){const _0x23acb5=_0x194de3;return this[_0x23acb5(0x108)]?.[_0x23acb5(0xb8)]?.[_0x23acb5(0x105)](_0x586f09=>({..._0x586f09,'resources':[]}))??[];}[_0x194de3(0xfa)](){const _0x41bc4d=_0x194de3,_0x1cf8c1=this[_0x41bc4d(0xbc)]()||this[_0x41bc4d(0x127)]();this[_0x41bc4d(0xca)][_0x41bc4d(0xac)][_0x41bc4d(0xd0)]=_0x1cf8c1,this[_0x41bc4d(0xd9)](_0x41bc4d(0xed),{'options':this[_0x41bc4d(0xca)]});}[_0x194de3(0x11b)](_0x3d597a){const _0x49b646=_0x194de3;for(const _0x4f29b7 of this[_0x49b646(0x129)][_0x49b646(0x11a)]())if(_0x4f29b7[_0x49b646(0xeb)]===_0x3d597a)return!0x0;for(const _0x15174b of this[_0x49b646(0xd4)][_0x49b646(0x11a)]())if(_0x15174b[_0x49b646(0xeb)]===_0x3d597a)return!0x0;return!0x1;}[_0x194de3(0x12a)](_0x85f959){const _0x3a3b9c=_0x194de3,_0x54d145=[];for(const _0x47a41c of this[_0x3a3b9c(0xca)][_0x3a3b9c(0xb8)]){_0x47a41c[_0x3a3b9c(0xa7)][_0x3a3b9c(0xb5)](_0x3a7288=>_0x3a7288['id']===_0x85f959)&&_0x54d145[_0x3a3b9c(0xbb)](_0x47a41c['id']);}return 0x0===_0x54d145[_0x3a3b9c(0x112)]?null:_0x54d145;}[_0x194de3(0xc3)](_0x5a7a56,_0x173dbd,_0x77f170){const _0x590174=_0x194de3,_0x175b88=this[_0x590174(0xca)][_0x590174(0xb8)][_0x590174(0xb5)](_0x387878=>_0x387878['id']===_0x5a7a56);if(!_0x175b88)return;const _0x467227=_0x175b88[_0x590174(0xa7)][_0x590174(0xb5)](_0x8685e5=>_0x8685e5['id']===_0x173dbd);_0x467227&&(_0x467227[_0x590174(0xef)]=_0x77f170,this[_0x590174(0xd9)](_0x590174(0x126),{'sourceId':_0x5a7a56,'resourceId':_0x173dbd,'isInContext':_0x77f170}));}[_0x194de3(0xaa)](_0x50c9bc){const _0x35a6ed=_0x194de3;this[_0x35a6ed(0xd7)][_0x35a6ed(0x117)](_0x50c9bc,!0x0),this[_0x35a6ed(0xd7)][_0x35a6ed(0xae)]&&this[_0x35a6ed(0xd9)](_0x35a6ed(0x125),{'isUploadInProgress':!0x0});}[_0x194de3(0xb1)](_0x4a0cc7){const _0x145929=_0x194de3;this[_0x145929(0xd7)][_0x145929(0x106)](_0x4a0cc7),0x0===this[_0x145929(0xd7)][_0x145929(0xae)]&&this[_0x145929(0xd9)](_0x145929(0x125),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x38f408=_0x5ea9;(function(_0x72a86e,_0x202320){const _0x3b494a=_0x5ea9,_0x1d9e9a=_0x72a86e();while(!![]){try{const _0x51c730=parseInt(_0x3b494a(0x11e))/0x1+-parseInt(_0x3b494a(0x130))/0x2*(parseInt(_0x3b494a(0x122))/0x3)+parseInt(_0x3b494a(0x132))/0x4*(parseInt(_0x3b494a(0x107))/0x5)+-parseInt(_0x3b494a(0x13f))/0x6+parseInt(_0x3b494a(0xd1))/0x7*(-parseInt(_0x3b494a(0x141))/0x8)+parseInt(_0x3b494a(0xd3))/0x9*(-parseInt(_0x3b494a(0x119))/0xa)+parseInt(_0x3b494a(0xe6))/0xb*(parseInt(_0x3b494a(0x133))/0xc);if(_0x51c730===_0x202320)break;else _0x1d9e9a['push'](_0x1d9e9a['shift']());}catch(_0x4a1682){_0x1d9e9a['push'](_0x1d9e9a['shift']());}}}(_0x344c,0x18d38));import{CKEditorError as _0x4c3137,EmitterMixin as _0x3701ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x43e3ee}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x423912,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4db3d7}from'./aichatcontext.js';function _0x5ea9(_0x592931,_0x54d3dc){const _0x344cf2=_0x344c();return _0x5ea9=function(_0x5ea95a,_0x678abb){_0x5ea95a=_0x5ea95a-0xd0;let _0x421707=_0x344cf2[_0x5ea95a];return _0x421707;},_0x5ea9(_0x592931,_0x54d3dc);}import{AICapabilities as _0x2c852c,CAPABILITIES_MODEL_EVENT_NAMES as _0x167d5b}from'../../aicore/model/aicapabilities.js';function _0x344c(){const _0x2dbdb0=['options','804066XtmORE','addResourceToContext','8qxivlK','delegate','indexOf','fetchConversation','63861DLjVyi','startConversation','28962toUDDP','length','addCurrentDocumentToContext','getDocumentContext','removeSelectionFromContext','toggleWebSearch','appendContent','reset','start','updateCurrentDocumentInContext','chatCapabilities','role','getConversation','init','removeFromContext','user','capabilities','find','loadSourceResources','3377kdIbPq','addUrlToContext','destroy','quickActionData','getCapabilitiesConfig','handleUserInteraction','content','populateFromMessage','lastInteraction','ai-chat-conversation-set-model-not-available','conversationId','selectedModel','conversationInitialized','splice','ai-chat-conversation-init-from-id-failed','toggleReasoning','currentInteraction','contextItems','chatModels','getInteraction','ai-chat-handle-user-conversation-not-initialized','fire','getMessages','push','getDefault','conversationStarted','fetchConversationMessages','isSelectionInContext','interactionCreated','modification-delta','setConversationTitle','stop','defaultModelId','31485UJDhNt','toLowerCase','ai-chat-conversation-init-failed','currentReply','addSelectionToContext','createInteraction','_processMessagesToInteractions','modelSelected','title','isCurrentDocumentInConversation','getPendingContextItems','error','ai-chat-conversation-start-no-model-selected','assistant','getAll','setModel','model','removeInteraction','260FSiRHF','set','isCurrentDocumentInContext','getCurrentDocumentContext','message','37867ykcCVp','createReply','hasOwn','connector','1971IrkDor','getEditor','text-delta','text','ai-chat-conversation-start-failed','type','sessionId','addFilesToContext','stack','load','ai-chat-handle-user-interaction-already-in-progress','webSearch','interactions','addToConversationContext','586VKPtTq','attributes','68yPEIyY','14700dxRbBx','updateCurrentDocument','group','_extractContextItems','isStarted','chatContext','prompt','reasoning','isAvailable','ai-chat-conversation-already-started','ai-chat-conversation-set-model-null'];_0x344c=function(){return _0x2dbdb0;};return _0x344c();}import{AIChatInteraction as _0x28c7fb}from'./aichatinteraction.js';export class AIChatConversation extends _0x3701ac(){['id'];[_0x38f408(0x137)]=!0x1;[_0x38f408(0x12e)]=[];[_0x38f408(0xf6)];[_0x38f408(0xf1)];[_0x38f408(0x121)];[_0x38f408(0x13e)];constructor(_0x5bb010){const _0x5e9c3f=_0x38f408;super(),this[_0x5e9c3f(0x13e)]=_0x5bb010,this[_0x5e9c3f(0x121)]=_0x5bb010[_0x5e9c3f(0x121)],this[_0x5e9c3f(0xf8)]=_0x5bb010[_0x5e9c3f(0xf8)],this['id']=_0x5bb010[_0x5e9c3f(0xf0)];}async[_0x38f408(0xe0)](_0x3c0296){const _0x158a1b=_0x38f408;try{this[_0x158a1b(0x138)]=new _0x423912({'connector':this[_0x158a1b(0x121)],'config':_0x3c0296,'ownerId':this['id']}),this[_0x158a1b(0x138)][_0x158a1b(0x142)](..._0x4db3d7)['to'](this),this[_0x158a1b(0x138)][_0x158a1b(0xe0)](),this[_0x158a1b(0xdd)]=new _0x2c852c(),this[_0x158a1b(0xdd)][_0x158a1b(0x142)](..._0x167d5b)['to'](this),this[_0x158a1b(0xdd)][_0x158a1b(0xe0)]();const _0x585a52=await this[_0x158a1b(0xf8)][_0x158a1b(0x115)]();this[_0x158a1b(0xfb)](_0x158a1b(0xf2),{'availableModels':_0x585a52});const _0x972461=await this[_0x158a1b(0xf8)][_0x158a1b(0xfe)](this[_0x158a1b(0x13e)][_0x158a1b(0x106)]);_0x972461&&await this[_0x158a1b(0x116)](_0x972461);}catch(_0xfd3955){const _0x751648=new _0x4c3137(_0x158a1b(0x109),null,{'message':_0xfd3955[_0x158a1b(0x11d)]});_0x751648[_0x158a1b(0x12a)]=_0xfd3955[_0x158a1b(0x12a)],this[_0x158a1b(0xfb)](_0x158a1b(0x112),{'error':_0x751648});}}async[_0x38f408(0xdb)](){const _0x4640db=_0x38f408;if(this[_0x4640db(0x137)])throw new _0x4c3137(_0x4640db(0x13c),null,{'conversation':this});if(!this[_0x4640db(0xf1)])throw new _0x4c3137(_0x4640db(0x113),null,{'conversation':this});try{const {id:_0x19001e}=await this[_0x4640db(0x121)][_0x4640db(0xd2)](this['id'],this[_0x4640db(0x13e)][_0x4640db(0x135)])[_0x4640db(0xdf)]();this['id']=_0x19001e,this[_0x4640db(0x137)]=!0x0,this[_0x4640db(0xfb)](_0x4640db(0xff),{'conversationId':this['id'],'selectedModel':this[_0x4640db(0xf1)]});}catch(_0xca5154){const _0x1f92da=new _0x4c3137(_0x4640db(0x126),null,{'message':_0xca5154[_0x4640db(0x11d)]});_0x1f92da[_0x4640db(0x12a)]=_0xca5154[_0x4640db(0x12a)],this[_0x4640db(0xfb)](_0x4640db(0x112),{'error':_0x1f92da});}}async[_0x38f408(0x12b)](_0xc263d4,_0xd4950b){const _0x128f4b=_0x38f408;try{const _0x5b2596=await this[_0x128f4b(0x121)][_0x128f4b(0xd0)](_0xc263d4)[_0x128f4b(0xdf)](),_0x366f26=await this[_0x128f4b(0x121)][_0x128f4b(0x100)](_0xc263d4)[_0x128f4b(0xfc)](),_0x252e0b=_0x366f26[0x0][_0x128f4b(0x117)];this[_0x128f4b(0x137)]=!0x0,this['id']=_0x5b2596['id'],_0x128f4b(0x10f)in _0x5b2596?this[_0x128f4b(0xfb)](_0x128f4b(0x104),_0x5b2596[_0x128f4b(0x10f)],!0x0):this[_0x128f4b(0xfb)](_0x128f4b(0x104),'',!0x0);const _0xde3c18=(await this[_0x128f4b(0xf8)][_0x128f4b(0x115)]())[_0x128f4b(0xe4)](_0x1544b8=>_0x1544b8['id'][_0x128f4b(0x108)]()===_0x252e0b[_0x128f4b(0x108)]());return this[_0x128f4b(0xf1)]=_0xde3c18,this[_0x128f4b(0xfb)](_0x128f4b(0x10e),{'selectedModel':_0xde3c18,'isDisabled':!0x0}),await this[_0x128f4b(0x10d)](_0x366f26,_0xd4950b,_0x252e0b),this[_0x128f4b(0xf6)]=void 0x0,this;}catch(_0x2314c1){const _0x379174=new _0x4c3137(_0x128f4b(0xf4),null,{'message':_0x2314c1[_0x128f4b(0x11d)],'conversationId':_0xc263d4});throw _0x379174[_0x128f4b(0x12a)]=_0x2314c1[_0x128f4b(0x12a)],this[_0x128f4b(0xfb)](_0x128f4b(0x112),{'error':_0x379174}),_0x379174;}}async[_0x38f408(0x10d)](_0x452cc3,_0x17c11d,_0x3eebe6){const _0x44e67c=_0x38f408;let _0x5963c6;for(const _0x4d8545 of _0x452cc3)if(_0x44e67c(0xe2)===_0x4d8545[_0x44e67c(0xde)]){const _0x45ca96=await this[_0x44e67c(0x136)](_0x4d8545),_0x5919fd={'isReasoningEnabled':Object[_0x44e67c(0x120)](_0x4d8545[_0x44e67c(0xe3)],_0x44e67c(0x13a)),'isWebSearchEnabled':Object[_0x44e67c(0x120)](_0x4d8545[_0x44e67c(0xe3)],_0x44e67c(0x12d))};_0x5963c6=this[_0x44e67c(0x10c)]({'userMessage':_0x4d8545[_0x44e67c(0x139)],'contextItems':_0x45ca96,'capabilities':_0x5919fd,'modelId':_0x3eebe6,'quickActionData':_0x4d8545[_0x44e67c(0x131)]?.[_0x44e67c(0xe9)]}),this[_0x44e67c(0xf6)]=_0x5963c6,this[_0x44e67c(0x138)][_0x44e67c(0x12f)](this[_0x44e67c(0xf6)][_0x44e67c(0xf7)]);}else{if(_0x44e67c(0x114)===_0x4d8545[_0x44e67c(0xde)]&&_0x5963c6)for(const _0x46b52d of _0x4d8545[_0x44e67c(0xec)]){const _0x1d03a4=_0x44e67c(0x125)===_0x46b52d[_0x44e67c(0x127)]?_0x44e67c(0x124):_0x44e67c(0x103),_0x49b334=_0x5963c6[_0x44e67c(0xd6)]()?.[_0x44e67c(0x128)]!==_0x17c11d;_0x5963c6[_0x44e67c(0x10a)]=_0x5963c6[_0x44e67c(0x11f)]({'type':_0x1d03a4,'isDone':!0x0,'interactionId':_0x5963c6['id'],'areActionsDisabled':_0x49b334}),_0x5963c6[_0x44e67c(0x10a)][_0x44e67c(0xd9)](_0x46b52d[_0x44e67c(0xec)]);}}}async[_0x38f408(0x136)](_0x214bf7){const _0x59a1a6=_0x38f408,_0x376f2e=new Map();if(!_0x214bf7[_0x59a1a6(0xec)])return _0x376f2e;for(const _0x378b12 of _0x214bf7[_0x59a1a6(0xec)]){const _0x46cafd=await this[_0x59a1a6(0x138)][_0x59a1a6(0xed)](_0x378b12);_0x46cafd&&_0x376f2e[_0x59a1a6(0x11a)](_0x46cafd['id'],_0x46cafd);}return _0x376f2e;}async[_0x38f408(0xeb)]({userMessage:_0x44baf1,quickActionData:_0x1576d0}){const _0x8a3b55=_0x38f408;if(!this[_0x8a3b55(0x137)])throw new _0x4c3137(_0x8a3b55(0xfa),null,{'conversation':this});if(this[_0x8a3b55(0xf6)])throw new _0x4c3137(_0x8a3b55(0x12c),null,{'conversation':this});try{const _0x161606=this[_0x8a3b55(0x138)][_0x8a3b55(0x111)](),_0x5d945d=this[_0x8a3b55(0xdd)][_0x8a3b55(0xea)](),_0x364c07=this[_0x8a3b55(0xf1)]['id'];this[_0x8a3b55(0xf6)]=this[_0x8a3b55(0x10c)]({'userMessage':_0x44baf1,'contextItems':_0x161606,'capabilities':_0x5d945d,'modelId':_0x364c07,'quickActionData':_0x1576d0}),await this[_0x8a3b55(0xf6)][_0x8a3b55(0xdb)](),this[_0x8a3b55(0x138)][_0x8a3b55(0x12f)](this[_0x8a3b55(0xf6)][_0x8a3b55(0xf7)]);}catch(_0x523380){this[_0x8a3b55(0xfb)](_0x8a3b55(0x112),{'interactionId':this[_0x8a3b55(0xf6)]?this[_0x8a3b55(0xf6)]['id']:void 0x0,'error':_0x523380});}finally{this[_0x8a3b55(0xf6)]?.[_0x8a3b55(0x105)](),this[_0x8a3b55(0xf6)]=void 0x0;}}[_0x38f408(0x10c)]({userMessage:_0x10d0bb,contextItems:_0x12009a,capabilities:_0x26df22,modelId:_0x3dbc3c,quickActionData:_0x54eb5a}){const _0x23b084=_0x38f408,_0x589f3c=new _0x28c7fb({'userMessage':_0x10d0bb,'contextItems':_0x12009a,'capabilities':_0x26df22,'conversationId':this['id'],'connector':this[_0x23b084(0x121)],'editor':this[_0x23b084(0x13e)][_0x23b084(0x123)]&&this[_0x23b084(0x13e)][_0x23b084(0x123)](),'model':_0x3dbc3c,'quickActionData':_0x54eb5a});return _0x589f3c[_0x23b084(0x142)](..._0x43e3ee)['to'](this),this[_0x23b084(0x12e)][_0x23b084(0xfd)](_0x589f3c),this[_0x23b084(0xfb)](_0x23b084(0x102),_0x589f3c),_0x589f3c;}[_0x38f408(0xf9)](_0x557c77){const _0x1ea497=_0x38f408;return this[_0x1ea497(0x12e)][_0x1ea497(0xe4)](_0x1476f2=>_0x1476f2['id']===_0x557c77);}[_0x38f408(0x118)](_0x26f70b){const _0x16c74f=_0x38f408,_0x5b5bb1=this[_0x16c74f(0xf9)](_0x26f70b);_0x5b5bb1&&(_0x5b5bb1[_0x16c74f(0xe8)](),this[_0x16c74f(0x12e)][_0x16c74f(0xf3)](this[_0x16c74f(0x12e)][_0x16c74f(0x143)](_0x5b5bb1),0x1));}get[_0x38f408(0xee)](){const _0xee6dfb=_0x38f408;return this[_0xee6dfb(0x12e)][this[_0xee6dfb(0x12e)][_0xee6dfb(0xd4)]-0x1];}[_0x38f408(0xd5)](_0x1bf903){const _0xe73a83=_0x38f408;this[_0xe73a83(0x138)][_0xe73a83(0xd5)](_0x1bf903);}async[_0x38f408(0xdc)]({content:_0x502f93,version:_0x4e21b,sessionId:_0x57af4c,selections:_0x23b8ca}){const _0x56e731=_0x38f408;await this[_0x56e731(0x138)][_0x56e731(0x134)](_0x502f93,_0x4e21b,_0x57af4c,_0x23b8ca);}[_0x38f408(0x11c)](){const _0x2a9eb9=_0x38f408;return this[_0x2a9eb9(0xf6)]?.[_0x2a9eb9(0xd6)]()?.[_0x2a9eb9(0xec)]||'';}[_0x38f408(0x10b)](_0x3e7079){const _0x26baa6=_0x38f408;this[_0x26baa6(0x138)][_0x26baa6(0x10b)](_0x3e7079);}[_0x38f408(0xd7)](){const _0x709449=_0x38f408;this[_0x709449(0x138)][_0x709449(0xd7)]();}[_0x38f408(0x129)](_0xb0de26){const _0x48638c=_0x38f408;this[_0x48638c(0x138)][_0x48638c(0x129)](_0xb0de26);}[_0x38f408(0xe7)](_0x2ed1ce){const _0x177cb3=_0x38f408;this[_0x177cb3(0x138)][_0x177cb3(0xe7)](_0x2ed1ce);}[_0x38f408(0x140)](_0x26f5c7,_0x457966){const _0x1d0892=_0x38f408;this[_0x1d0892(0x138)][_0x1d0892(0x140)](_0x26f5c7,_0x457966);}[_0x38f408(0xe5)](_0x2a6d52,_0x16b1b3,_0x112122){const _0x5db64f=_0x38f408;return this[_0x5db64f(0x138)][_0x5db64f(0xe5)](_0x2a6d52,_0x16b1b3,_0x112122);}[_0x38f408(0xe1)](_0x4d3af9){const _0x4620d1=_0x38f408;this[_0x4620d1(0x138)][_0x4620d1(0xe1)](_0x4d3af9);}[_0x38f408(0xd8)](){const _0x2a7ce3=_0x38f408;this[_0x2a7ce3(0xdd)][_0x2a7ce3(0xd8)]();}[_0x38f408(0xf5)](){const _0x4d2460=_0x38f408;this[_0x4d2460(0xdd)][_0x4d2460(0xf5)]();}[_0x38f408(0x11b)](){const _0x22c391=_0x38f408;return this[_0x22c391(0x138)][_0x22c391(0x11b)]();}[_0x38f408(0x110)](){const _0x3e937b=_0x38f408;return this[_0x3e937b(0x138)][_0x3e937b(0x110)]();}[_0x38f408(0x101)](){const _0xf547c5=_0x38f408;return this[_0xf547c5(0x138)][_0xf547c5(0x101)]();}async[_0x38f408(0x116)](_0x28779c){const _0x3b6e91=_0x38f408;if(!_0x28779c)throw new _0x4c3137(_0x3b6e91(0x13d),null,{'conversation':this});if(!0x1===await this[_0x3b6e91(0xf8)][_0x3b6e91(0x13b)](_0x28779c))throw new _0x4c3137(_0x3b6e91(0xef),null,{'conversation':this,'model':_0x28779c});_0x28779c['id']!==this[_0x3b6e91(0xf1)]?.['id']&&(this[_0x3b6e91(0xf1)]=_0x28779c,this[_0x3b6e91(0xdd)][_0x3b6e91(0xda)](),this[_0x3b6e91(0xfb)](_0x3b6e91(0x10e),{'selectedModel':_0x28779c}));}}
|
|
23
|
+
function _0x29dd(){const _0x35d9e5=['delegate','lastInteraction','getDefault','contextItems','setModel','handleUserInteraction','1032VybGyV','getInteraction','isCurrentDocumentInContext','reset','find','382417Emkyzs','36uXFcnt','ai-chat-conversation-already-started','isCurrentDocumentInConversation','getAll','153515uOUbZZ','assistant','ai-chat-conversation-init-from-id-failed','11wqVTdX','createInteraction','483VVZUnx','updateCurrentDocument','destroy','chatContext','321016Iqgswo','splice','length','getDocumentContext','group','conversationStarted','_extractContextItems','getPendingContextItems','prompt','241805mBpxKk','conversationInitialized','startConversation','message','content','addUrlToContext','currentInteraction','addResourceToContext','isStarted','ai-chat-conversation-set-model-null','fire','quickActionData','attributes','role','defaultModelId','sessionId','addToConversationContext','loadSourceResources','ai-chat-conversation-set-model-not-available','isSelectionInContext','getConversation','capabilities','isAvailable','getCapabilitiesConfig','init','interactions','removeFromContext','type','5971810DwHOpe','conversationId','text','stack','2148zMcbeE','populateFromMessage','load','indexOf','ai-chat-conversation-init-failed','title','chatCapabilities','updateCurrentDocumentInContext','start','reasoning','ai-chat-conversation-start-failed','user','setConversationTitle','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','addSelectionToContext','_processMessagesToInteractions','error','5031xPmSFF','toLowerCase','text-delta','connector','modification-delta','toggleReasoning','model','toggleWebSearch','options','currentReply','modelSelected','appendContent','webSearch','interactionCreated','hasOwn','push','set','addFilesToContext','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext','stop','selectedModel','removeInteraction','createReply','chatModels','fetchConversationMessages','getMessages','getCurrentDocumentContext','getEditor','fetchConversation','ai-chat-conversation-start-no-model-selected'];_0x29dd=function(){return _0x35d9e5;};return _0x29dd();}const _0x553bfe=_0x48e1;(function(_0x4019be,_0x55a62f){const _0x554c95=_0x48e1,_0x561b73=_0x4019be();while(!![]){try{const _0x1525d5=parseInt(_0x554c95(0x1fd))/0x1+parseInt(_0x554c95(0x1f4))/0x2+parseInt(_0x554c95(0x1f0))/0x3*(parseInt(_0x554c95(0x21d))/0x4)+parseInt(_0x554c95(0x1eb))/0x5*(parseInt(_0x554c95(0x1e7))/0x6)+parseInt(_0x554c95(0x1e6))/0x7+parseInt(_0x554c95(0x1e1))/0x8*(parseInt(_0x554c95(0x22f))/0x9)+-parseInt(_0x554c95(0x219))/0xa*(parseInt(_0x554c95(0x1ee))/0xb);if(_0x1525d5===_0x55a62f)break;else _0x561b73['push'](_0x561b73['shift']());}catch(_0x57418f){_0x561b73['push'](_0x561b73['shift']());}}}(_0x29dd,0x31735));function _0x48e1(_0x415212,_0xb361cb){const _0x29dde4=_0x29dd();return _0x48e1=function(_0x48e12c,_0x3263c7){_0x48e12c=_0x48e12c-0x1bd;let _0x33a984=_0x29dde4[_0x48e12c];return _0x33a984;},_0x48e1(_0x415212,_0xb361cb);}import{CKEditorError as _0x53d72b,EmitterMixin as _0x22ffd0}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b1e7b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f2ae3,AI_CONTEXT_MODEL_EVENT_NAMES as _0x21d635}from'./aichatcontext.js';import{AICapabilities as _0x4e9e24,CAPABILITIES_MODEL_EVENT_NAMES as _0x399fac}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x467d53}from'./aichatinteraction.js';export class AIChatConversation extends _0x22ffd0(){['id'];[_0x553bfe(0x205)]=!0x1;[_0x553bfe(0x216)]=[];[_0x553bfe(0x203)];[_0x553bfe(0x1d1)];[_0x553bfe(0x1bf)];[_0x553bfe(0x1c4)];constructor(_0x4ef96c){const _0x4ebabd=_0x553bfe;super(),this[_0x4ebabd(0x1c4)]=_0x4ef96c,this[_0x4ebabd(0x1bf)]=_0x4ef96c[_0x4ebabd(0x1bf)],this[_0x4ebabd(0x1d4)]=_0x4ef96c[_0x4ebabd(0x1d4)],this['id']=_0x4ef96c[_0x4ebabd(0x21a)];}async[_0x553bfe(0x215)](_0x152a66){const _0x2d477b=_0x553bfe;try{this[_0x2d477b(0x1f3)]=new _0x3f2ae3({'connector':this[_0x2d477b(0x1bf)],'config':_0x152a66,'ownerId':this['id']}),this[_0x2d477b(0x1f3)][_0x2d477b(0x1db)](..._0x21d635)['to'](this),this[_0x2d477b(0x1f3)][_0x2d477b(0x215)](),this[_0x2d477b(0x223)]=new _0x4e9e24(),this[_0x2d477b(0x223)][_0x2d477b(0x1db)](..._0x399fac)['to'](this),this[_0x2d477b(0x223)][_0x2d477b(0x215)]();const _0x44e06b=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1ea)]();this[_0x2d477b(0x207)](_0x2d477b(0x1fe),{'availableModels':_0x44e06b});const _0x2dc3f8=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1dd)](this[_0x2d477b(0x1c4)][_0x2d477b(0x20b)]);_0x2dc3f8&&await this[_0x2d477b(0x1df)](_0x2dc3f8);}catch(_0x17d203){const _0x59417d=new _0x53d72b(_0x2d477b(0x221),null,{'message':_0x17d203[_0x2d477b(0x200)]});_0x59417d[_0x2d477b(0x21c)]=_0x17d203[_0x2d477b(0x21c)],this[_0x2d477b(0x207)](_0x2d477b(0x22e),{'error':_0x59417d});}}async[_0x553bfe(0x225)](){const _0x569b50=_0x553bfe;if(this[_0x569b50(0x205)])throw new _0x53d72b(_0x569b50(0x1e8),null,{'conversation':this});if(!this[_0x569b50(0x1d1)])throw new _0x53d72b(_0x569b50(0x1da),null,{'conversation':this});try{const {id:_0x6b8c07}=await this[_0x569b50(0x1bf)][_0x569b50(0x1ff)](this['id'],this[_0x569b50(0x1c4)][_0x569b50(0x1f8)])[_0x569b50(0x211)]();this['id']=_0x6b8c07,this[_0x569b50(0x205)]=!0x0,this[_0x569b50(0x207)](_0x569b50(0x1f9),{'conversationId':this['id'],'selectedModel':this[_0x569b50(0x1d1)]});}catch(_0x1561ea){const _0x5f51ef=new _0x53d72b(_0x569b50(0x227),null,{'message':_0x1561ea[_0x569b50(0x200)]});_0x5f51ef[_0x569b50(0x21c)]=_0x1561ea[_0x569b50(0x21c)],this[_0x569b50(0x207)](_0x569b50(0x22e),{'error':_0x5f51ef});}}async[_0x553bfe(0x21f)](_0x279b98,_0x1a88d4){const _0x2fd802=_0x553bfe;try{const _0xeac405=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d9)](_0x279b98)[_0x2fd802(0x211)](),_0x4ce7c8=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d5)](_0x279b98)[_0x2fd802(0x1d6)](),_0x521661=_0x4ce7c8[0x0][_0x2fd802(0x1c2)];this[_0x2fd802(0x205)]=!0x0,this['id']=_0xeac405['id'],_0x2fd802(0x222)in _0xeac405?this[_0x2fd802(0x207)](_0x2fd802(0x229),_0xeac405[_0x2fd802(0x222)],!0x0):this[_0x2fd802(0x207)](_0x2fd802(0x229),'',!0x0);const _0x5a820d=(await this[_0x2fd802(0x1d4)][_0x2fd802(0x1ea)]())[_0x2fd802(0x1e5)](_0x407914=>_0x407914['id'][_0x2fd802(0x1bd)]()===_0x521661[_0x2fd802(0x1bd)]());return this[_0x2fd802(0x1d1)]=_0x5a820d,this[_0x2fd802(0x207)](_0x2fd802(0x1c6),{'selectedModel':_0x5a820d,'isDisabled':!0x0}),await this[_0x2fd802(0x22d)](_0x4ce7c8,_0x1a88d4,_0x521661),this[_0x2fd802(0x203)]=void 0x0,this;}catch(_0x193f56){const _0x4cc45d=new _0x53d72b(_0x2fd802(0x1ed),null,{'message':_0x193f56[_0x2fd802(0x200)],'conversationId':_0x279b98});throw _0x4cc45d[_0x2fd802(0x21c)]=_0x193f56[_0x2fd802(0x21c)],this[_0x2fd802(0x207)](_0x2fd802(0x22e),{'error':_0x4cc45d}),_0x4cc45d;}}async[_0x553bfe(0x22d)](_0x4d94df,_0x22b8b2,_0xc53e71){const _0x45923f=_0x553bfe;let _0x5dda47;for(const _0x175709 of _0x4d94df)if(_0x45923f(0x228)===_0x175709[_0x45923f(0x20a)]){const _0x597c05=await this[_0x45923f(0x1fa)](_0x175709),_0x1b6cf8={'isReasoningEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x226)),'isWebSearchEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x1c8))};_0x5dda47=this[_0x45923f(0x1ef)]({'userMessage':_0x175709[_0x45923f(0x1fc)],'contextItems':_0x597c05,'capabilities':_0x1b6cf8,'modelId':_0xc53e71,'quickActionData':_0x175709[_0x45923f(0x209)]?.[_0x45923f(0x208)]}),this[_0x45923f(0x203)]=_0x5dda47,this[_0x45923f(0x1f3)][_0x45923f(0x20d)](this[_0x45923f(0x203)][_0x45923f(0x1de)]);}else{if(_0x45923f(0x1ec)===_0x175709[_0x45923f(0x20a)]&&_0x5dda47)for(const _0x1c48cf of _0x175709[_0x45923f(0x201)]){const _0x5c5703=_0x45923f(0x21b)===_0x1c48cf[_0x45923f(0x218)]?_0x45923f(0x1be):_0x45923f(0x1c0),_0x19ffda=_0x5dda47[_0x45923f(0x1f7)]()?.[_0x45923f(0x20c)]!==_0x22b8b2;_0x5dda47[_0x45923f(0x1c5)]=_0x5dda47[_0x45923f(0x1d3)]({'type':_0x5c5703,'isDone':!0x0,'interactionId':_0x5dda47['id'],'areActionsDisabled':_0x19ffda}),_0x5dda47[_0x45923f(0x1c5)][_0x45923f(0x1c7)](_0x1c48cf[_0x45923f(0x201)]);}}}async[_0x553bfe(0x1fa)](_0x5535f0){const _0x52a106=_0x553bfe,_0x41ce97=new Map();if(!_0x5535f0[_0x52a106(0x201)])return _0x41ce97;for(const _0x3b7d6c of _0x5535f0[_0x52a106(0x201)]){const _0x1e7564=await this[_0x52a106(0x1f3)][_0x52a106(0x21e)](_0x3b7d6c);_0x1e7564&&_0x41ce97[_0x52a106(0x1cc)](_0x1e7564['id'],_0x1e7564);}return _0x41ce97;}async[_0x553bfe(0x1e0)]({userMessage:_0x10e13d,quickActionData:_0x30d98e}){const _0x1ffd60=_0x553bfe;if(!this[_0x1ffd60(0x205)])throw new _0x53d72b(_0x1ffd60(0x22b),null,{'conversation':this});if(this[_0x1ffd60(0x203)])throw new _0x53d72b(_0x1ffd60(0x1ce),null,{'conversation':this});try{const _0x318e60=this[_0x1ffd60(0x1f3)][_0x1ffd60(0x1fb)](),_0x491294=this[_0x1ffd60(0x223)][_0x1ffd60(0x214)](),_0x31efeb=this[_0x1ffd60(0x1d1)]['id'];this[_0x1ffd60(0x203)]=this[_0x1ffd60(0x1ef)]({'userMessage':_0x10e13d,'contextItems':_0x318e60,'capabilities':_0x491294,'modelId':_0x31efeb,'quickActionData':_0x30d98e}),await this[_0x1ffd60(0x203)][_0x1ffd60(0x225)](),this[_0x1ffd60(0x1f3)][_0x1ffd60(0x20d)](this[_0x1ffd60(0x203)][_0x1ffd60(0x1de)]);}catch(_0x21ac2e){this[_0x1ffd60(0x207)](_0x1ffd60(0x22e),{'interactionId':this[_0x1ffd60(0x203)]?this[_0x1ffd60(0x203)]['id']:void 0x0,'error':_0x21ac2e});}finally{this[_0x1ffd60(0x203)]?.[_0x1ffd60(0x1d0)](),this[_0x1ffd60(0x203)]=void 0x0;}}[_0x553bfe(0x1ef)]({userMessage:_0xd172d3,contextItems:_0x2df870,capabilities:_0x1ab136,modelId:_0x3701bc,quickActionData:_0x18f926}){const _0x5cf724=_0x553bfe,_0x45b5b7=new _0x467d53({'userMessage':_0xd172d3,'contextItems':_0x2df870,'capabilities':_0x1ab136,'conversationId':this['id'],'connector':this[_0x5cf724(0x1bf)],'editor':this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)]&&this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)](),'model':_0x3701bc,'quickActionData':_0x18f926});return _0x45b5b7[_0x5cf724(0x1db)](..._0x4b1e7b)['to'](this),this[_0x5cf724(0x216)][_0x5cf724(0x1cb)](_0x45b5b7),this[_0x5cf724(0x207)](_0x5cf724(0x1c9),_0x45b5b7),_0x45b5b7;}[_0x553bfe(0x1e2)](_0x523a57){const _0x272802=_0x553bfe;return this[_0x272802(0x216)][_0x272802(0x1e5)](_0x3e2ae8=>_0x3e2ae8['id']===_0x523a57);}[_0x553bfe(0x1d2)](_0xcfdfda){const _0x54f81b=_0x553bfe,_0x3e50cf=this[_0x54f81b(0x1e2)](_0xcfdfda);_0x3e50cf&&(_0x3e50cf[_0x54f81b(0x1f2)](),this[_0x54f81b(0x216)][_0x54f81b(0x1f5)](this[_0x54f81b(0x216)][_0x54f81b(0x220)](_0x3e50cf),0x1));}get[_0x553bfe(0x1dc)](){const _0x18542=_0x553bfe;return this[_0x18542(0x216)][this[_0x18542(0x216)][_0x18542(0x1f6)]-0x1];}[_0x553bfe(0x22a)](_0x4ed1fb){const _0x4283a1=_0x553bfe;this[_0x4283a1(0x1f3)][_0x4283a1(0x22a)](_0x4ed1fb);}async[_0x553bfe(0x224)]({content:_0x25801a,version:_0xa812b3,sessionId:_0x4c7ed6,selections:_0x1c2217}){const _0x48fe52=_0x553bfe;await this[_0x48fe52(0x1f3)][_0x48fe52(0x1f1)](_0x25801a,_0xa812b3,_0x4c7ed6,_0x1c2217);}[_0x553bfe(0x1d7)](){const _0x4c202b=_0x553bfe;return this[_0x4c202b(0x203)]?.[_0x4c202b(0x1f7)]()?.[_0x4c202b(0x201)]||'';}[_0x553bfe(0x22c)](_0x24df40){const _0x4c0734=_0x553bfe;this[_0x4c0734(0x1f3)][_0x4c0734(0x22c)](_0x24df40);}[_0x553bfe(0x1cf)](){const _0xdd65a2=_0x553bfe;this[_0xdd65a2(0x1f3)][_0xdd65a2(0x1cf)]();}[_0x553bfe(0x1cd)](_0x520a57){const _0xf57391=_0x553bfe;this[_0xf57391(0x1f3)][_0xf57391(0x1cd)](_0x520a57);}[_0x553bfe(0x202)](_0x592bb5){const _0x1282c6=_0x553bfe;this[_0x1282c6(0x1f3)][_0x1282c6(0x202)](_0x592bb5);}[_0x553bfe(0x204)](_0x42cf91,_0x5b35db){const _0x317d12=_0x553bfe;this[_0x317d12(0x1f3)][_0x317d12(0x204)](_0x42cf91,_0x5b35db);}[_0x553bfe(0x20e)](_0x2c1709,_0x285988,_0x5e4870){const _0x1dd1c0=_0x553bfe;return this[_0x1dd1c0(0x1f3)][_0x1dd1c0(0x20e)](_0x2c1709,_0x285988,_0x5e4870);}[_0x553bfe(0x217)](_0x2cea2d){const _0x43281e=_0x553bfe;this[_0x43281e(0x1f3)][_0x43281e(0x217)](_0x2cea2d);}[_0x553bfe(0x1c3)](){const _0x47b5ef=_0x553bfe;this[_0x47b5ef(0x223)][_0x47b5ef(0x1c3)]();}[_0x553bfe(0x1c1)](){const _0x2d44c2=_0x553bfe;this[_0x2d44c2(0x223)][_0x2d44c2(0x1c1)]();}[_0x553bfe(0x1e3)](){const _0x46534d=_0x553bfe;return this[_0x46534d(0x1f3)][_0x46534d(0x1e3)]();}[_0x553bfe(0x1e9)](){const _0x5077d9=_0x553bfe;return this[_0x5077d9(0x1f3)][_0x5077d9(0x1e9)]();}[_0x553bfe(0x210)](){const _0x49c764=_0x553bfe;return this[_0x49c764(0x1f3)][_0x49c764(0x210)]();}async[_0x553bfe(0x1df)](_0x2cea70){const _0x1c46f7=_0x553bfe;if(!_0x2cea70)throw new _0x53d72b(_0x1c46f7(0x206),null,{'conversation':this});if(!0x1===await this[_0x1c46f7(0x1d4)][_0x1c46f7(0x213)](_0x2cea70))throw new _0x53d72b(_0x1c46f7(0x20f),null,{'conversation':this,'model':_0x2cea70});_0x2cea70['id']!==this[_0x1c46f7(0x1d1)]?.['id']&&(this[_0x1c46f7(0x1d1)]=_0x2cea70,this[_0x1c46f7(0x223)][_0x1c46f7(0x1e4)](),this[_0x1c46f7(0x207)](_0x1c46f7(0x1c6),{'selectedModel':_0x2cea70}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x47c918=_0x2498;(function(_0x2abc44,_0x289d6a){var _0x1499e3=_0x2498,_0x521989=_0x2abc44();while(!![]){try{var _0x3b1237=-parseInt(_0x1499e3(0x10b))/0x1*(-parseInt(_0x1499e3(0x109))/0x2)+-parseInt(_0x1499e3(0x104))/0x3*(parseInt(_0x1499e3(0x11b))/0x4)+parseInt(_0x1499e3(0x10f))/0x5*(parseInt(_0x1499e3(0x117))/0x6)+parseInt(_0x1499e3(0x108))/0x7+parseInt(_0x1499e3(0x113))/0x8+-parseInt(_0x1499e3(0x10a))/0x9*(-parseInt(_0x1499e3(0x107))/0xa)+parseInt(_0x1499e3(0x105))/0xb*(-parseInt(_0x1499e3(0x106))/0xc);if(_0x3b1237===_0x289d6a)break;else _0x521989['push'](_0x521989['shift']());}catch(_0x49a6df){_0x521989['push'](_0x521989['shift']());}}}(_0x55d6,0xbdecc));function _0x55d6(){var _0x1cefa6=['connector','mapContextItemsToRequestData','conversationId','2972nYFwHA','get','userMessage','129FQkIFt','1837KgqDgt','146088sVvyUQ','12790kpriTR','3687320muLnGt','5306crvVjf','7713pyWBGW','182lAPWms','contextItems','queryAssistant','sendRequest','225oDesRs','capabilities','model','current-document','839480UGgaer','quickActionData','getDocumentContext','getCapabilitiesRequestData','84306cjuXfR'];_0x55d6=function(){return _0x1cefa6;};return _0x55d6();}import{AICapabilities as _0x3b3290}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x3b05df}from'../../aicore/model/aiinteraction.js';function _0x2498(_0xa84bc,_0x13a32f){var _0x55d667=_0x55d6();return _0x2498=function(_0x249808,_0x5cd4c5){_0x249808=_0x249808-0x103;var _0xb09426=_0x55d667[_0x249808];return _0xb09426;},_0x2498(_0xa84bc,_0x13a32f);}import{AIChatContext as _0x196754}from'./aichatcontext.js';export class AIChatInteraction extends _0x3b05df{[_0x47c918(0x103)];[_0x47c918(0x11a)];[_0x47c918(0x10c)]=new Map();[_0x47c918(0x111)];[_0x47c918(0x114)];constructor(_0x17696a){var _0x152a99=_0x47c918;super(_0x17696a),this[_0x152a99(0x11a)]=_0x17696a[_0x152a99(0x11a)],this[_0x152a99(0x10c)]=_0x17696a[_0x152a99(0x10c)],this[_0x152a99(0x110)]=_0x17696a[_0x152a99(0x110)],this[_0x152a99(0x103)]=_0x17696a[_0x152a99(0x103)],this[_0x152a99(0x111)]=_0x17696a[_0x152a99(0x111)],this[_0x152a99(0x114)]=_0x17696a[_0x152a99(0x114)];}async[_0x47c918(0x10e)](){var _0x3063b3=_0x47c918;return this[_0x3063b3(0x118)][_0x3063b3(0x10d)]({'message':this[_0x3063b3(0x103)],'conversationId':this[_0x3063b3(0x11a)],'parts':_0x196754[_0x3063b3(0x119)](this[_0x3063b3(0x10c)]),'capabilities':_0x3b3290[_0x3063b3(0x116)](this[_0x3063b3(0x110)]),'model':this[_0x3063b3(0x111)],'quickActionData':this[_0x3063b3(0x114)]});}[_0x47c918(0x115)](){var _0x15b5f1=_0x47c918;return this[_0x15b5f1(0x10c)][_0x15b5f1(0x11c)](_0x15b5f1(0x112));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a7b2=_0x188a;(function(_0x542f93,_0x309a4a){const _0x37d1d8=_0x188a,_0x286000=_0x542f93();while(!![]){try{const _0x490f63=-parseInt(_0x37d1d8(0x1c4))/0x1+-parseInt(_0x37d1d8(0x1b8))/0x2*(parseInt(_0x37d1d8(0x1c2))/0x3)+parseInt(_0x37d1d8(0x1bd))/0x4*(-parseInt(_0x37d1d8(0x1c5))/0x5)+-parseInt(_0x37d1d8(0x1b4))/0x6*(-parseInt(_0x37d1d8(0x1c6))/0x7)+-parseInt(_0x37d1d8(0x1b0))/0x8*(-parseInt(_0x37d1d8(0x1c7))/0x9)+-parseInt(_0x37d1d8(0x1af))/0xa+parseInt(_0x37d1d8(0x1b3))/0xb;if(_0x490f63===_0x309a4a)break;else _0x286000['push'](_0x286000['shift']());}catch(_0x1d81a5){_0x286000['push'](_0x286000['shift']());}}}(_0x2b79,0xd2f75));import{EmitterMixin as _0xd1f1f,logWarning as _0x209018}from'ckeditor5/src/utils.js';function _0x188a(_0x12467c,_0x505eac){const _0x2b7936=_0x2b79();return _0x188a=function(_0x188a00,_0x59a5f7){_0x188a00=_0x188a00-0x1ae;let _0x3244cb=_0x2b7936[_0x188a00];return _0x3244cb;},_0x188a(_0x12467c,_0x505eac);}export class AIChatModels extends _0xd1f1f(){[_0x40a7b2(0x1bc)]=[];[_0x40a7b2(0x1bf)];constructor({connector:_0x334f69}){const _0x2e6139=_0x40a7b2;super(),this[_0x2e6139(0x1bf)]=_0x334f69;}async[_0x40a7b2(0x1b6)](){const _0x74bc02=_0x40a7b2;if(!this[_0x74bc02(0x1bc)][_0x74bc02(0x1ba)]){const _0x44a14e=this[_0x74bc02(0x1bf)][_0x74bc02(0x1c3)](),_0x29689c=(await _0x44a14e[_0x74bc02(0x1b9)]())[_0x74bc02(0x1ca)][_0x74bc02(0x1b1)]((_0x1ab3fc,_0x624dc2)=>{const _0x32783f=_0x74bc02,_0x1e5016=Object[_0x32783f(0x1bb)](_0x1ab3fc[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x212570=>_0x212570[_0x32783f(0x1b2)])[_0x32783f(0x1ba)];return Object[_0x32783f(0x1bb)](_0x624dc2[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x274def=>_0x274def[_0x32783f(0x1b2)])[_0x32783f(0x1ba)]-_0x1e5016;});this[_0x74bc02(0x1bc)]=_0x29689c;}return this[_0x74bc02(0x1bc)];}async[_0x40a7b2(0x1b7)](_0xc69262){const _0x234541=_0x40a7b2,_0x4c063=await this[_0x234541(0x1b6)]();if(!_0x4c063[_0x234541(0x1ba)])return null;if(_0xc69262){const _0x41f7b7=_0x4c063[_0x234541(0x1b5)](_0x1ff698=>_0x1ff698['id']===_0xc69262);if(_0x41f7b7)return _0x41f7b7;_0x209018(_0x234541(0x1c1),{'defaultModelId':_0xc69262,'fallBackModelId':_0x4c063[0x0]['id']});}return _0x4c063[0x0];}async[_0x40a7b2(0x1c0)](_0x434c2f){const _0x288403=_0x40a7b2;return(await this[_0x288403(0x1b6)]())[_0x288403(0x1c8)](_0xca4c05=>_0xca4c05[_0x288403(0x1ae)]===_0x434c2f[_0x288403(0x1ae)]&&_0xca4c05[_0x288403(0x1c9)]===_0x434c2f[_0x288403(0x1c9)]);}}function _0x2b79(){const _0x1efbde=['provider','items','capabilities','name','16105600oRREph','8dbINnB','sort','enabled','16632957cOodvd','366SIEQhe','find','getAll','getDefault','8zyeQIU','list','length','values','_modelList','112WifOnf','filter','_connector','isAvailable','ai-chat-default-model-id-unrecognized','272796IbuZtA','getModels','408038JYCTJJ','70130DoczQc','95333zmlOim','11666925caVWJb','some'];_0x2b79=function(){return _0x1efbde;};return _0x2b79();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x357593=_0xcca7;(function(_0xb4f1dd,_0x1934ec){const _0x31e142=_0xcca7,_0x5435fe=_0xb4f1dd();while(!![]){try{const _0x2ee206=-parseInt(_0x31e142(0x174))/0x1*(-parseInt(_0x31e142(0x153))/0x2)+-parseInt(_0x31e142(0x16e))/0x3+parseInt(_0x31e142(0x171))/0x4+-parseInt(_0x31e142(0x17b))/0x5+parseInt(_0x31e142(0x182))/0x6+-parseInt(_0x31e142(0x151))/0x7+-parseInt(_0x31e142(0x17d))/0x8*(-parseInt(_0x31e142(0x185))/0x9);if(_0x2ee206===_0x1934ec)break;else _0x5435fe['push'](_0x5435fe['shift']());}catch(_0x37e1b8){_0x5435fe['push'](_0x5435fe['shift']());}}}(_0x105b,0xbf1c4));import{clickOutsideHandler as _0x2bd67d,View as _0x21f948}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2f21fd}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4c77c3}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2f5630,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x3ca7f0}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x20f35b}from'./controls/aichatcontrolsloaderview.js';function _0xcca7(_0x293b67,_0x32f4bf){const _0x105ba1=_0x105b();return _0xcca7=function(_0xcca79d,_0x2eadcd){_0xcca79d=_0xcca79d-0x150;let _0x149372=_0x105ba1[_0xcca79d];return _0x149372;},_0xcca7(_0x293b67,_0x32f4bf);}function _0x105b(){const _0x32f6a3=['_promptInputView','clearCurrentContextItems','10331391RQlrum','closeSourceResourceBalloon','6EZeGPy','sendUserMessage','disableModelSelector','setModelList','toggleWebSearch','delegate','setConversationContext','setTemplate','bindTemplate','low','_contextPanelView','ck-ai-chat-controls','setPlaceholderText','change:isLoading','ck-hidden','_createContextPanelView','setInputPlaceholder','setContextItemLoading','reset','enableModelSelector','clearConversationContextUI','abortPromptStream','clearConversationContextItems','removeContextItem','focusPromptInput','populateSourceResourceBalloon','_loaderView','1810176aISLMK','_handlePromptInputFocus','setWebSearch','3063248evVeRd','updateResourceState','_createLoaderView','311882WwAdjX','isLoading','_createPromptInputView','addContextButtonView','_shouldRestorePromptInputFocus','addContextItem','selectModel','6324340pGBLJM','clearPendingContextUI','274384oADndx','setAddContextOptions','div','element','setReasoning','765222PJouoL','focus','_promptCapabilitiesView','603xyuWcC','setModel','resetMessageInput','form','_createPromptCapabilitiesView','toggleReasoning','setIsUploadInProgress'];_0x105b=function(){return _0x32f6a3;};return _0x105b();}export class AIChatControlsView extends _0x21f948{[_0x357593(0x15d)];[_0x357593(0x18c)];[_0x357593(0x184)];[_0x357593(0x16d)];[_0x357593(0x178)];constructor(_0x2a97af,_0x281716){const _0x2c1f64=_0x357593;super(_0x2a97af),this[_0x2c1f64(0x15d)]=this[_0x2c1f64(0x162)](_0x2a97af,_0x281716),this[_0x2c1f64(0x18c)]=this[_0x2c1f64(0x176)](_0x2a97af),this[_0x2c1f64(0x184)]=this[_0x2c1f64(0x189)](_0x2a97af),this[_0x2c1f64(0x16d)]=this[_0x2c1f64(0x173)](_0x2a97af),this[_0x2c1f64(0x178)]=!0x1,this[_0x2c1f64(0x18c)][_0x2c1f64(0x158)](_0x2c1f64(0x154))['to'](this),this[_0x2c1f64(0x16d)][_0x2c1f64(0x158)](_0x2c1f64(0x168))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x157))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x18a))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x17a))['to'](this),this[_0x2c1f64(0x15d)][_0x2c1f64(0x158)](..._0x3ca7f0)['to'](this);const _0xf8562c=this[_0x2c1f64(0x15b)];this[_0x2c1f64(0x15a)]({'tag':_0x2c1f64(0x188),'attributes':{'class':['ck',_0x2c1f64(0x15e)]},'children':[{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161))]},'children':[this[_0x2c1f64(0x15d)],this[_0x2c1f64(0x18c)],this[_0x2c1f64(0x184)]]},{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161),_0xf533b6=>!_0xf533b6)]},'children':[this[_0x2c1f64(0x16d)]]}]}),_0x2bd67d({'emitter':this[_0x2c1f64(0x18c)],'activator':()=>this[_0x2c1f64(0x175)],'contextElements':()=>[this[_0x2c1f64(0x180)]],'callback':()=>{const _0x55380e=_0x2c1f64;this[_0x55380e(0x178)]=!0x1;}}),this['on'](_0x2c1f64(0x160),this[_0x2c1f64(0x16f)],{'priority':_0x2c1f64(0x15c)});}[_0x357593(0x162)](_0x116d93,_0x27b0b1){return new _0x2f5630(_0x116d93,_0x27b0b1);}[_0x357593(0x176)](_0x1b2feb){const _0x3f7157=_0x357593;return new _0x2f21fd(_0x1b2feb,this[_0x3f7157(0x15d)][_0x3f7157(0x177)]);}[_0x357593(0x189)](_0x4bc1ee){return new _0x4c77c3(_0x4bc1ee);}[_0x357593(0x173)](_0x270cda){return new _0x20f35b(_0x270cda);}[_0x357593(0x16f)](_0x12590f,_0x1bde77,_0x2dcf60){const _0x4c6a43=_0x357593;_0x2dcf60?this[_0x4c6a43(0x178)]=!0x0:this[_0x4c6a43(0x178)]&&this[_0x4c6a43(0x18c)][_0x4c6a43(0x183)]();}[_0x357593(0x179)](_0x1a71de,_0x11c717){const _0x41341b=_0x357593;this[_0x41341b(0x15d)][_0x41341b(0x179)](_0x1a71de,_0x11c717);}[_0x357593(0x16a)](_0x17e1fc){const _0x5cdcd1=_0x357593;this[_0x5cdcd1(0x15d)][_0x5cdcd1(0x16a)](_0x17e1fc);}[_0x357593(0x164)](_0x333f72,_0x4dfb8e){const _0x3953a2=_0x357593;this[_0x3953a2(0x15d)][_0x3953a2(0x164)](_0x333f72,_0x4dfb8e);}[_0x357593(0x18b)](_0x248016){const _0x24ce6c=_0x357593;this[_0x24ce6c(0x18c)][_0x24ce6c(0x18b)](_0x248016);}[_0x357593(0x159)](_0x538b07){const _0x447453=_0x357593;this[_0x447453(0x15d)][_0x447453(0x159)](_0x538b07);}[_0x357593(0x17c)](){const _0x5a855f=_0x357593;this[_0x5a855f(0x15d)][_0x5a855f(0x150)]();}[_0x357593(0x167)](){const _0x64670e=_0x357593;this[_0x64670e(0x15d)][_0x64670e(0x169)]();}[_0x357593(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44){const _0x4f421e=_0x357593;this[_0x4f421e(0x15d)][_0x4f421e(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44);}[_0x357593(0x170)](_0x5625b7){const _0x974bfe=_0x357593;this[_0x974bfe(0x184)][_0x974bfe(0x170)](_0x5625b7);}[_0x357593(0x181)](_0x5571ee){const _0x24de97=_0x357593;this[_0x24de97(0x184)][_0x24de97(0x181)](_0x5571ee);}[_0x357593(0x187)](){const _0x2eff78=_0x357593;this[_0x2eff78(0x18c)][_0x2eff78(0x165)]();}[_0x357593(0x17e)](_0x1eac76){const _0x57a821=_0x357593;this[_0x57a821(0x15d)][_0x57a821(0x17e)](_0x1eac76);}[_0x357593(0x163)](_0x3ec4bb){const _0x5c8741=_0x357593;this[_0x5c8741(0x18c)][_0x5c8741(0x15f)](_0x3ec4bb);}[_0x357593(0x156)](_0x172634,_0x411f5e){const _0xcb163c=_0x357593;this[_0xcb163c(0x184)][_0xcb163c(0x156)](_0x172634,_0x411f5e);}[_0x357593(0x186)](_0x4c065d){const _0x48ebd9=_0x357593;this[_0x48ebd9(0x184)][_0x48ebd9(0x186)](_0x4c065d);}[_0x357593(0x166)](){const _0x12e6b6=_0x357593;this[_0x12e6b6(0x184)][_0x12e6b6(0x166)]();}[_0x357593(0x155)](_0xe91ef6){const _0x5ef43e=_0x357593;this[_0x5ef43e(0x184)][_0x5ef43e(0x155)](_0xe91ef6);}[_0x357593(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d){const _0xd3d5dd=_0x357593;this[_0xd3d5dd(0x15d)][_0xd3d5dd(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d);}[_0x357593(0x152)](_0x5c57cf){const _0x3fc37d=_0x357593;this[_0x3fc37d(0x15d)][_0x3fc37d(0x152)](_0x5c57cf);}[_0x357593(0x16b)](){const _0x205fec=_0x357593;this[_0x205fec(0x18c)][_0x205fec(0x183)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x574cec=_0x24b1;(function(_0x3d6d04,_0xe1fdbf){const _0x339555=_0x24b1,_0x16367b=_0x3d6d04();while(!![]){try{const _0x41ceb5=parseInt(_0x339555(0x1a2))/0x1*(-parseInt(_0x339555(0x1be))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x1b9))/0x4)+parseInt(_0x339555(0x1b6))/0x5+parseInt(_0x339555(0x1b2))/0x6+-parseInt(_0x339555(0x19d))/0x7*(parseInt(_0x339555(0x190))/0x8)+parseInt(_0x339555(0x1d4))/0x9*(parseInt(_0x339555(0x191))/0xa)+parseInt(_0x339555(0x19b))/0xb;if(_0x41ceb5===_0xe1fdbf)break;else _0x16367b['push'](_0x16367b['shift']());}catch(_0x1f59be){_0x16367b['push'](_0x16367b['shift']());}}}(_0x9f44,0x6e0fd));import{CKEditorError as _0xf8a08f,logWarning as _0xe15d4f,scrollViewportToShowTarget as _0x5b5d40}from'ckeditor5/src/utils.js';import{View as _0x4d4e4f}from'ckeditor5/src/ui.js';function _0x24b1(_0x33f14f,_0x4b5504){const _0x9f44f=_0x9f44();return _0x24b1=function(_0x24b171,_0xcbda49){_0x24b171=_0x24b171-0x190;let _0x3d80e8=_0x9f44f[_0x24b171];return _0x3d80e8;},_0x24b1(_0x33f14f,_0x4b5504);}import{AI_CHAT_UI_EVENT_NAMES as _0x4f7dd2}from'../utils/eventnames.js';function _0x9f44(){const _0x1f05f8=['removeItem','_setupTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isVisible','set','createCollection','ck-ai-chat__feed__items','isPending','stop','2172966HrjdNZ','locale','addItem','includes','1726695zAsFJv','startAutoScroll','_createTemplateChildren','4948KaYYLe','element','start','ai-suggestion-reply','_createFeedLoader','2wFELfs','loadingMessage','markItemAsDone','updateSuggestionItem','bindTemplate','isLoadingSkeletonVisible','getItemIds','aiFeed','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__feed','clear','updateWebSources','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_bodyCollection','stopAutoScroll','setTemplate','getItemById','updatePartState','remove','add','updateContent','5918841uVnPse','updateReplyItem','extendTemplate','ai-reply','updateSources','toggleLoadingSkeleton','getPartView','ck-ai-chat__loader-text','updateSuggestionPartState','map','div','_createSkeletonLoader','8tZCFBG','10vMBaaJ','ai-chat-feed-view-item-not-found','options','find','scrollToSuggestion','_createLoaderChildren','interaction-header','ck-ai-chat__loader','user-message','1449InfVnJ','8742030JzJXvN','destroy','5676132dokWMj','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','setLoadingMessage','_createFeedItems','300719YZCYDo','scrollManager','ck-hidden','children','render','delegate','ai-chat-feed-view-item-not-a-reply-item'];_0x9f44=function(){return _0x1f05f8;};return _0x9f44();}import{AIChatFeedSuggestionItemView as _0x3c4942}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3a8f44}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x144d8f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5f3c4e}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4b66d5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x27884a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x394e38,SKELETON_DEFINITIONS as _0x5bc358}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4fe8cf}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d4e4f{[_0x574cec(0x1a5)];[_0x574cec(0x1a3)];[_0x574cec(0x1cc)];constructor(_0x199449,_0x365088){const _0x4a7337=_0x574cec;super(_0x199449),this[_0x4a7337(0x1cc)]=_0x365088,this[_0x4a7337(0x1ad)](_0x4a7337(0x1b0),!0x1),this[_0x4a7337(0x1ad)](_0x4a7337(0x1bf),''),this[_0x4a7337(0x1ad)](_0x4a7337(0x1c3),!0x1),this[_0x4a7337(0x1a5)]=this[_0x4a7337(0x1ae)](),this[_0x4a7337(0x1a5)][_0x4a7337(0x1a7)](..._0x4f7dd2)['to'](this),this[_0x4a7337(0x1aa)]();}[_0x574cec(0x1a6)](){const _0x1f5af4=_0x574cec;super[_0x1f5af4(0x1a6)](),this[_0x1f5af4(0x1a3)]=new _0x27884a(this[_0x1f5af4(0x1ba)]);}[_0x574cec(0x19c)](){const _0x3dfd12=_0x574cec;super[_0x3dfd12(0x19c)](),this[_0x3dfd12(0x1a3)][_0x3dfd12(0x19c)]();}[_0x574cec(0x1c8)](){const _0x18681a=_0x574cec;this[_0x18681a(0x1a5)][_0x18681a(0x1c8)]();}[_0x574cec(0x1b4)](_0x5ba7a2,_0x4b5f73){const _0x5d9d95=_0x574cec;let _0x17fd68;_0x17fd68=_0x5d9d95(0x1d7)===_0x5ba7a2?new _0x3a8f44(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x1bc)===_0x5ba7a2?new _0x3c4942(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x199)===_0x5ba7a2?new _0x144d8f(this[_0x5d9d95(0x1b3)],_0x4b5f73,this[_0x5d9d95(0x1cc)]):_0x5d9d95(0x197)===_0x5ba7a2?new _0x4b66d5(this[_0x5d9d95(0x1b3)],_0x4b5f73):new _0x5f3c4e(_0x4b5f73),this[_0x5d9d95(0x1a5)][_0x5d9d95(0x1d2)](_0x17fd68);}async[_0x574cec(0x1d5)]({id:_0x58d611,parsedContent:_0xd0e7b1,renderingStrategy:_0x5a94c3,abortSignal:_0x4b73f5}){const _0x2f57f3=_0x574cec,_0x54224d=this[_0x2f57f3(0x1cf)](_0x58d611);if(!(_0x54224d instanceof _0x3a8f44))throw new _0xf8a08f(_0x2f57f3(0x1a8),null,{'itemView':_0x54224d,'id':_0x58d611,'parsedContent':_0xd0e7b1});await _0x54224d[_0x2f57f3(0x1d3)]({'parsedContent':_0xd0e7b1,'renderingStrategy':_0x5a94c3,'abortSignal':_0x4b73f5});}async[_0x574cec(0x1c9)](_0x2f8c6e,_0x4e0a26){const _0x1a91c3=_0x574cec,_0x1e8374=this[_0x1a91c3(0x1cf)](_0x2f8c6e);if(_0x1e8374 instanceof _0x3c4942)_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);else{if(!(_0x1e8374 instanceof _0x3a8f44))throw new _0xf8a08f(_0x1a91c3(0x19f),null,{'itemView':_0x1e8374,'id':_0x2f8c6e,'sources':_0x4e0a26});_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);}}async[_0x574cec(0x1c1)]({id:_0x1366bd,parts:_0x2bc2a2,renderingStrategy:_0x365007,abortSignal:_0x165b80}){const _0x4b61e1=_0x574cec,_0xb72a65=this[_0x4b61e1(0x1cf)](_0x1366bd);if(!(_0xb72a65 instanceof _0x3c4942))throw new _0xf8a08f(_0x4b61e1(0x1c6),null,{'itemView':_0xb72a65,'id':_0x1366bd,'parts':_0x2bc2a2});await _0xb72a65[_0x4b61e1(0x1d3)]({'parts':_0x2bc2a2,'renderingStrategy':_0x365007,'abortSignal':_0x165b80});}[_0x574cec(0x1dc)]({id:_0x606701,index:_0x260e10,state:_0x35a616}){const _0x5d7dac=_0x574cec,_0x38baa0=this[_0x5d7dac(0x1cf)](_0x606701);if(!(_0x38baa0 instanceof _0x3c4942))throw new _0xf8a08f(_0x5d7dac(0x1c6),this,{'id':_0x606701});_0x38baa0[_0x5d7dac(0x1d0)](_0x260e10,_0x35a616);}[_0x574cec(0x1c0)](_0x993f50){const _0x1883fe=_0x574cec;this[_0x1883fe(0x1cf)](_0x993f50)[_0x1883fe(0x19e)]();}[_0x574cec(0x1c4)](){const _0x5c3ae4=_0x574cec;return this[_0x5c3ae4(0x1a5)][_0x5c3ae4(0x1dd)](_0x1c2ba2=>_0x1c2ba2[_0x5c3ae4(0x193)]['id']);}[_0x574cec(0x1a9)](_0x36b293){const _0x522212=_0x574cec;this[_0x522212(0x1a5)][_0x522212(0x1d1)](this[_0x522212(0x1cf)](_0x36b293));}[_0x574cec(0x195)](_0x32e4c3,_0x385a87){const _0x3ad68c=_0x574cec,_0x1b5b7f=this[_0x3ad68c(0x1cf)](_0x32e4c3);if(!(_0x1b5b7f instanceof _0x3c4942))return void _0xe15d4f(_0x3ad68c(0x1ab),{'replyId':_0x32e4c3,'partIndex':_0x385a87});const _0xefe5=_0x1b5b7f[_0x3ad68c(0x1da)](_0x385a87);_0xefe5?_0x5b5d40({'target':_0xefe5[_0x3ad68c(0x1ba)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0xe15d4f(_0x3ad68c(0x1cb),{'replyId':_0x32e4c3,'partIndex':_0x385a87});}[_0x574cec(0x1aa)](){const _0x506f9c=_0x574cec;this[_0x506f9c(0x1ce)]({'tag':_0x506f9c(0x1de),'attributes':{'class':['ck',_0x506f9c(0x1c7)]},'children':this[_0x506f9c(0x1b8)]()});}[_0x574cec(0x1b8)](){const _0x46c023=_0x574cec,_0x58260a=this[_0x46c023(0x1df)]();return[this[_0x46c023(0x1a1)](),_0x58260a,this[_0x46c023(0x1bd)]()];}[_0x574cec(0x1df)](){const _0x2ef030=_0x574cec,_0x33dedd=new _0x394e38(this[_0x2ef030(0x1b3)],_0x5bc358[_0x2ef030(0x1c5)]);return _0x33dedd[_0x2ef030(0x1d6)]({'attributes':{'class':[this[_0x2ef030(0x1c2)]['if'](_0x2ef030(0x1c3),_0x2ef030(0x1a4),_0x649efd=>!_0x649efd)]}}),_0x33dedd;}[_0x574cec(0x1a1)](){const _0x32bf09=_0x574cec,_0x50c4d6=new _0x4d4e4f(this[_0x32bf09(0x1b3)]);return _0x50c4d6[_0x32bf09(0x1ce)]({'tag':_0x32bf09(0x1de),'attributes':{'class':['ck',_0x32bf09(0x1af),this[_0x32bf09(0x1c2)]['if'](_0x32bf09(0x1c3),_0x32bf09(0x1a4))]},'children':this[_0x32bf09(0x1a5)]}),_0x50c4d6;}[_0x574cec(0x1bd)](){const _0x138695=_0x574cec,_0x2cf0fb=new _0x4d4e4f(this[_0x138695(0x1b3)]);return _0x2cf0fb[_0x138695(0x1ce)]({'tag':_0x138695(0x1de),'attributes':{'class':['ck',_0x138695(0x198),this[_0x138695(0x1c2)]['if'](_0x138695(0x1b0),_0x138695(0x1a4),_0x566c12=>!_0x566c12)]},'children':this[_0x138695(0x196)]()}),_0x2cf0fb;}[_0x574cec(0x196)](){const _0xc53f76=_0x574cec,_0x3e5359=new _0x4fe8cf();return _0x3e5359[_0xc53f76(0x1ac)]=!0x0,[_0x3e5359,{'tag':_0xc53f76(0x1ca),'attributes':{'class':['ck',_0xc53f76(0x1db)]},'children':[{'text':this[_0xc53f76(0x1c2)]['to'](_0xc53f76(0x1bf))}]}];}[_0x574cec(0x1cf)](_0x55571b){const _0x1d3b2d=_0x574cec,_0xd9eb4d=this[_0x1d3b2d(0x1a5)][_0x1d3b2d(0x194)](_0x41f337=>_0x41f337[_0x1d3b2d(0x193)]['id'][_0x1d3b2d(0x1b5)](_0x55571b));if(!_0xd9eb4d)throw new _0xf8a08f(_0x1d3b2d(0x192),this,{'id':_0x55571b});return _0xd9eb4d;}[_0x574cec(0x1a0)](_0x41254f){const _0x2754ae=_0x574cec;this[_0x2754ae(0x1ad)](_0x2754ae(0x1bf),_0x41254f);}[_0x574cec(0x1d9)](_0x5ea1cd){const _0x2cc38d=_0x574cec;this[_0x2cc38d(0x1ad)](_0x2cc38d(0x1c3),_0x5ea1cd);}[_0x574cec(0x1b7)](){const _0x2bd662=_0x574cec;this[_0x2bd662(0x1a3)][_0x2bd662(0x1bb)]();}[_0x574cec(0x1cd)](){const _0x4bbff3=_0x574cec;this[_0x4bbff3(0x1a3)][_0x4bbff3(0x1b1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1317(_0x28ea23,_0x1370f1){const _0x33b99b=_0x33b9();return _0x1317=function(_0x131786,_0x2fd9db){_0x131786=_0x131786-0x6d;let _0x522084=_0x33b99b[_0x131786];return _0x522084;},_0x1317(_0x28ea23,_0x1370f1);}const _0x27681a=_0x1317;(function(_0x1d8697,_0x25e1c0){const _0x451010=_0x1317,_0x653412=_0x1d8697();while(!![]){try{const _0xf61179=parseInt(_0x451010(0x78))/0x1*(-parseInt(_0x451010(0x80))/0x2)+parseInt(_0x451010(0x83))/0x3*(-parseInt(_0x451010(0x7e))/0x4)+parseInt(_0x451010(0x85))/0x5+-parseInt(_0x451010(0x82))/0x6+parseInt(_0x451010(0x77))/0x7*(parseInt(_0x451010(0x81))/0x8)+parseInt(_0x451010(0x86))/0x9*(-parseInt(_0x451010(0x75))/0xa)+parseInt(_0x451010(0x70))/0xb;if(_0xf61179===_0x25e1c0)break;else _0x653412['push'](_0x653412['shift']());}catch(_0x1bf654){_0x653412['push'](_0x653412['shift']());}}}(_0x33b9,0xef312));import{ButtonView as _0x3cef7b,FormHeaderView as _0xc61646}from'ckeditor5/src/ui.js';import{IconPlus as _0x1c29ca,IconAIChat as _0x1160a6}from'ckeditor5/src/icons.js';import{getTranslation as _0x1ba1aa}from'../../aicore/utils/common-translations.js';function _0x33b9(){const _0x3895a9=['AI_CHAT_LABEL_NEW_CHAT','10eBClam','set','7UnxAqT','1787oNIVFP','ck-ai-header\x20ck-ai-header_chat','startConversation','execute','resizeButton','ck-ai-chat__start-conversation','4fnPcBQ','add','74uwLHqQ','10231064nnxhSF','5075820JBcuKu','3116001IvqvuK','AI_CHAT_HEADING','6529885KMvBFz','15640389QFYGCS','fire','isMaximized','conversationStartButton','22917917qbHWdi','locale','_createStartConversationButton','children'];_0x33b9=function(){return _0x3895a9;};return _0x33b9();}import{createResizeButton as _0x3fc4af}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xc61646{[_0x27681a(0x6f)];[_0x27681a(0x7c)];constructor(_0x547335,_0x23d3ef){const _0x5133b3=_0x27681a;super(_0x547335,{'label':_0x1ba1aa(_0x547335,_0x5133b3(0x84)),'class':_0x5133b3(0x79),'icon':_0x1160a6}),this[_0x5133b3(0x76)](_0x5133b3(0x6e),!0x1),this[_0x5133b3(0x6f)]=this[_0x5133b3(0x72)](_0x547335),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x6f)]),_0x23d3ef&&(this[_0x5133b3(0x7c)]=_0x3fc4af(_0x547335,this),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x7c)]));}[_0x27681a(0x72)](_0x252da7){const _0x1267b5=_0x27681a,_0x4db12e=new _0x3cef7b(_0x252da7);return _0x4db12e[_0x1267b5(0x76)]({'label':_0x1ba1aa(this[_0x1267b5(0x71)],_0x1267b5(0x74)),'withText':!0x0,'icon':_0x1c29ca,'class':_0x1267b5(0x7d)}),_0x4db12e['on'](_0x1267b5(0x7b),()=>{const _0x4aaff5=_0x1267b5;this[_0x4aaff5(0x6d)](_0x4aaff5(0x7a));}),_0x4db12e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18a2a1=_0xbcf2;function _0x4e2a(){var _0xdf2844=['416105WhctQn','uiLanguageDirection','8ptGkbH','1307736vpwchc','1188GBtYqh','6GIZlNo','1383NUqfXl','ck-rounded-corners','destroy','chatFeed','222170cQQRLE','_bodyCollection','9pmsdfy','53163lGBORD','attachToDom','chatDisclaimer','setTemplate','delegate','chatHeader','detachFromDom','2830219IYvEhQ','ck-ai-chat','2778920uHHosC','ck-reset_all','closeSourceResourceBalloon','populateSourceResourceBalloon','308PzaxdB','chatControls','div'];_0x4e2a=function(){return _0xdf2844;};return _0x4e2a();}function _0xbcf2(_0x445e98,_0x401dc0){var _0x4e2afd=_0x4e2a();return _0xbcf2=function(_0xbcf233,_0x3fc471){_0xbcf233=_0xbcf233-0xf6;var _0x23e716=_0x4e2afd[_0xbcf233];return _0x23e716;},_0xbcf2(_0x445e98,_0x401dc0);}(function(_0x4687fb,_0x271d19){var _0x21c2f6=_0xbcf2,_0x123e17=_0x4687fb();while(!![]){try{var _0x21ca14=parseInt(_0x21c2f6(0x110))/0x1*(parseInt(_0x21c2f6(0x107))/0x2)+parseInt(_0x21c2f6(0x10d))/0x3+parseInt(_0x21c2f6(0x10c))/0x4*(-parseInt(_0x21c2f6(0x10a))/0x5)+parseInt(_0x21c2f6(0x10f))/0x6*(-parseInt(_0x21c2f6(0x101))/0x7)+parseInt(_0x21c2f6(0x103))/0x8*(-parseInt(_0x21c2f6(0xf9))/0x9)+parseInt(_0x21c2f6(0xf7))/0xa+parseInt(_0x21c2f6(0xfa))/0xb*(parseInt(_0x21c2f6(0x10e))/0xc);if(_0x21ca14===_0x271d19)break;else _0x123e17['push'](_0x123e17['shift']());}catch(_0x35a90c){_0x123e17['push'](_0x123e17['shift']());}}}(_0x4e2a,0x3881e));import{View as _0xee1c73,BodyCollection as _0x1199b9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x59ed78}from'../utils/eventnames.js';import{AIChatFeedView as _0x301e15}from'./aichatfeedview.js';import{AIChatControlsView as _0x5d94fb}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x424843}from'./aichatheaderview.js';import{AIDisclaimerView as _0x272f53}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0xee1c73{[_0x18a2a1(0xff)];[_0x18a2a1(0xf6)];[_0x18a2a1(0x108)];[_0x18a2a1(0xfc)];[_0x18a2a1(0xf8)];constructor(_0x22a510,_0x2b0b6e){var _0x21802f=_0x18a2a1;super(_0x22a510),this[_0x21802f(0xf8)]=new _0x1199b9(_0x22a510),this[_0x21802f(0xf8)][_0x21802f(0xfb)](),this[_0x21802f(0xff)]=new _0x424843(_0x22a510,_0x2b0b6e),this[_0x21802f(0xff)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xf6)]=new _0x301e15(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0xf6)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0x108)]=new _0x5d94fb(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0x108)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xfc)]=new _0x272f53(_0x22a510),this[_0x21802f(0xfd)]({'tag':_0x21802f(0x109),'attributes':{'class':['ck',_0x21802f(0x104),_0x21802f(0x102),_0x21802f(0x111)],'dir':_0x22a510[_0x21802f(0x10b)]},'children':[this[_0x21802f(0xff)],this[_0x21802f(0xf6)],this[_0x21802f(0x108)],this[_0x21802f(0xfc)]]});}[_0x18a2a1(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163){var _0x46fbc8=_0x18a2a1;this[_0x46fbc8(0x108)][_0x46fbc8(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163);}[_0x18a2a1(0x105)](_0x4e8d78){var _0x42dada=_0x18a2a1;this[_0x42dada(0x108)][_0x42dada(0x105)](_0x4e8d78);}[_0x18a2a1(0x112)](){var _0x5b9e18=_0x18a2a1;this[_0x5b9e18(0xf8)][_0x5b9e18(0x100)](),super[_0x5b9e18(0x112)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf4227d=_0x1ce4;(function(_0x1b03c3,_0x2384d4){const _0x3077d2=_0x1ce4,_0x3b7901=_0x1b03c3();while(!![]){try{const _0x5d0adf=-parseInt(_0x3077d2(0x1ed))/0x1+parseInt(_0x3077d2(0x21d))/0x2*(parseInt(_0x3077d2(0x210))/0x3)+parseInt(_0x3077d2(0x1a7))/0x4+-parseInt(_0x3077d2(0x215))/0x5*(parseInt(_0x3077d2(0x1b7))/0x6)+parseInt(_0x3077d2(0x1ce))/0x7+-parseInt(_0x3077d2(0x1f4))/0x8*(parseInt(_0x3077d2(0x1da))/0x9)+parseInt(_0x3077d2(0x1b6))/0xa*(parseInt(_0x3077d2(0x1d1))/0xb);if(_0x5d0adf===_0x2384d4)break;else _0x3b7901['push'](_0x3b7901['shift']());}catch(_0x4f7fb0){_0x3b7901['push'](_0x3b7901['shift']());}}}(_0x36f5,0x3f710));import{View as _0x2abfae,BalloonPanelView as _0x23692d,ButtonView as _0x39eaf9,clickOutsideHandler as _0x421e92}from'ckeditor5/src/ui.js';import{Collection as _0x216c2a}from'ckeditor5/src/utils.js';function _0x36f5(){const _0x61d3a9=['querySelector','_updateOverflowUI','_calculateOverflowInContainer','_config','rowDetectionTolerance','slice','from','showMoreLabelPrefix','_makeAncestorsVisible','className','_restoreAncestorVisibility','visible','pop','134595jtKuqp','pin','forEach','isConnected','right','1066060kfoYFM','undefined','_locale','push','_intersectionObserver','block\x20!important','overflowChips','createElement','2FaxPhc','_handleShowMoreButtonClick','0px','div','_createMockButton','classList','50px','_updateShowMoreButtonVisibility','opacity','hideBalloonPanel','border-box','innerHTML','display','_targetContainer','isIntersecting','pointerEvents','element','innerWidth','innerHeight','reorganizeChips','_createCalculationContainer','documentElement','auto','calculationContainer','cloneNode','children','bottom','_bodyCollection','zIndex','clientWidth','includes','1569356bVIGoQ','appendChild','_updateBalloonContent','block','execute','_renderChipsAndCountRows','content','remove','show','textContent','clear','offsetWidth','isOn','position','showBalloonPanel','36870KuRNjE','6UrfhTt','add','300px','_showMoreButtonView','toLowerCase','button','disconnect','_containerElement','isVisible','_createShowMoreBalloonPanelView','_testButtonFit','controlsButton','absolute','showMoreButton','+\x201','_overflowChips','getComputedStyle','getBoundingClientRect','disableAnimationOnEnter','maxVisibleRows','hide','body','width','3430945aKfyie','_createShowMoreButtonView','parentElement','297AwHclX','_createShowMoreButton','.ck-ai-chat','cssClasses','set','tagName','setTemplate','-9999px','_findTargetContainer','548721COMMhy','style','top','showMoreButtonView','boxSizing','clientHeight','left','ck-calculation-container','_checkAndHandleOverflow','_parentView','hidden','label','_ancestorsToRestore','visible\x20!important','render','showMoreBalloon','_visibleChips','_pendingCalculation','_isContainerVisible','492851MEJZid','observe','height','extendTemplate','_distributeChips','length','some','8eQdOvn','destroy','visibility','_createContainerElements','_showMoreBalloonPanelView','_applyOverflowResults','abs','_setupVisibilityObserver','setContainerElement','overflowContainer','_repinBalloonPanel','_calculateContainerWidth','filter','_applyCalculationStyles','none'];_0x36f5=function(){return _0x61d3a9;};return _0x36f5();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0xf4227d(0x1b9);function _0x1ce4(_0xf002c2,_0x3cdf6b){const _0x36f551=_0x36f5();return _0x1ce4=function(_0x1ce47c,_0x36a7d0){_0x1ce47c=_0x1ce47c-0x19a;let _0x1d1c00=_0x36f551[_0x1ce47c];return _0x1d1c00;},_0x1ce4(_0xf002c2,_0x3cdf6b);}export class AIChatChipsOverflowManager{[_0xf4227d(0x217)];[_0xf4227d(0x206)];[_0xf4227d(0x1ea)];[_0xf4227d(0x1c6)];[_0xf4227d(0x1ba)]=null;[_0xf4227d(0x1f8)]=null;[_0xf4227d(0x1be)]=null;[_0xf4227d(0x1a3)];[_0xf4227d(0x1e3)]=null;[_0xf4227d(0x219)]=null;[_0xf4227d(0x1eb)]=!0x1;constructor(_0x53e5ef,_0x185ea3,_0x46327f,_0x4c963c,_0x52f1a3){const _0x1f7d10=_0xf4227d;this[_0x1f7d10(0x217)]=_0x53e5ef,this[_0x1f7d10(0x1ea)]=_0x185ea3,this[_0x1f7d10(0x206)]={...hn,..._0x46327f,'cssClasses':{'controlsButton':'','calculationContainer':_0x1f7d10(0x1e1),..._0x46327f[_0x1f7d10(0x1d4)]}},this[_0x1f7d10(0x1c6)]=new _0x216c2a(),this[_0x1f7d10(0x1a3)]=_0x4c963c,this[_0x1f7d10(0x1e3)]=_0x52f1a3||null;}[_0xf4227d(0x1fc)](_0x1f3952){const _0x27c375=_0xf4227d;this[_0x27c375(0x219)]&&(this[_0x27c375(0x219)][_0x27c375(0x1bd)](),this[_0x27c375(0x219)]=null),this[_0x27c375(0x1be)]=_0x1f3952,this[_0x27c375(0x1fb)]();}get[_0xf4227d(0x1dd)](){const _0x558189=_0xf4227d;return this[_0x558189(0x1ba)];}get[_0xf4227d(0x21b)](){const _0x916a8d=_0xf4227d;return this[_0x916a8d(0x1c6)];}[_0xf4227d(0x19b)](){requestAnimationFrame(()=>{const _0x49ac2f=_0x1ce4;this[_0x49ac2f(0x1e2)]();});}[_0xf4227d(0x1b5)](){const _0xba0d2d=_0xf4227d;this[_0xba0d2d(0x1ba)]&&this[_0xba0d2d(0x1f8)]&&(this[_0xba0d2d(0x1a9)](),this[_0xba0d2d(0x1ba)][_0xba0d2d(0x1b3)]=!0x0,this[_0xba0d2d(0x1f8)][_0xba0d2d(0x1af)](),this[_0xba0d2d(0x1f8)][_0xba0d2d(0x211)]({'target':this[_0xba0d2d(0x1ba)][_0xba0d2d(0x22d)],'limiter':document[_0xba0d2d(0x203)](_0xba0d2d(0x1d3))}));}[_0xf4227d(0x226)](){const _0x866028=_0xf4227d;this[_0x866028(0x1ba)]&&this[_0x866028(0x1f8)]&&(this[_0x866028(0x1ba)][_0x866028(0x1b3)]=!0x1,this[_0x866028(0x1f8)][_0x866028(0x1cb)]());}[_0xf4227d(0x1b1)](){const _0x1f810a=_0xf4227d;this[_0x1f810a(0x1c6)][_0x1f810a(0x1b1)](),this[_0x1f810a(0x226)](),this[_0x1f810a(0x224)](),this[_0x1f810a(0x1ba)]&&(this[_0x1f810a(0x1ba)][_0x1f810a(0x1e5)]=''),this[_0x1f810a(0x1f8)]&&this[_0x1f810a(0x1f8)][_0x1f810a(0x1ad)][_0x1f810a(0x1b1)]();}[_0xf4227d(0x1f5)](){const _0x182965=_0xf4227d;this[_0x182965(0x219)]&&(this[_0x182965(0x219)][_0x182965(0x1bd)](),this[_0x182965(0x219)]=null),this[_0x182965(0x1ba)]&&(this[_0x182965(0x1ba)][_0x182965(0x1f5)](),this[_0x182965(0x1ba)]=null),this[_0x182965(0x1f8)]&&(this[_0x182965(0x1f8)][_0x182965(0x1f5)](),this[_0x182965(0x1f8)]=null);}[_0xf4227d(0x1e2)](){const _0x56a5bf=_0xf4227d;if(!this[_0x56a5bf(0x1be)])return;if(!this[_0x56a5bf(0x1ec)]())return void(this[_0x56a5bf(0x1eb)]=!0x0);this[_0x56a5bf(0x1eb)]=!0x1;const _0xbb5fe0=[...this[_0x56a5bf(0x1ea)],...this[_0x56a5bf(0x1c6)]],_0x30f1ae=this[_0x56a5bf(0x19c)](),_0x38128c=this[_0x56a5bf(0x205)](_0x30f1ae,_0xbb5fe0),_0x235ee4=_0x30f1ae[_0x56a5bf(0x1e6)];_0x235ee4&&this[_0x56a5bf(0x20d)](_0x235ee4),_0x30f1ae[_0x56a5bf(0x1ae)](),this[_0x56a5bf(0x1f9)](_0xbb5fe0,_0x38128c);}[_0xf4227d(0x1d2)](){const _0x2f9bf9=_0xf4227d;this[_0x2f9bf9(0x1ba)]=this[_0x2f9bf9(0x1cf)](),this[_0x2f9bf9(0x1f8)]=this[_0x2f9bf9(0x1c0)](),this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1e8)](),this[_0x2f9bf9(0x1be)][_0x2f9bf9(0x1a8)](this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]),this[_0x2f9bf9(0x1ba)]['on'](_0x2f9bf9(0x1ab),()=>{const _0x1bed3=_0x2f9bf9;this[_0x1bed3(0x21e)]();}),_0x421e92({'emitter':this[_0x2f9bf9(0x1f8)],'contextElements':[this[_0x2f9bf9(0x1f8)][_0x2f9bf9(0x22d)],this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]],'callback':()=>this[_0x2f9bf9(0x226)](),'activator':()=>this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1b3)]});}[_0xf4227d(0x1cf)](){const _0x2b8e79=_0xf4227d,_0x4f7fec=new _0x39eaf9(this[_0x2b8e79(0x217)]);_0x4f7fec[_0x2b8e79(0x1d5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x326afc=[this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c4)]];return this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]&&_0x326afc[_0x2b8e79(0x218)](this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]),_0x4f7fec[_0x2b8e79(0x1f0)]({'attributes':{'class':_0x326afc}}),_0x4f7fec;}[_0xf4227d(0x1c0)](){const _0x5ce91b=_0xf4227d,_0x4b9357=new _0x23692d(this[_0x5ce91b(0x217)]);return _0x4b9357[_0x5ce91b(0x1f0)]({'attributes':{'class':this[_0x5ce91b(0x206)][_0x5ce91b(0x1d4)][_0x5ce91b(0x1e9)]}}),this[_0x5ce91b(0x1a3)][_0x5ce91b(0x1b8)](_0x4b9357),_0x4b9357;}[_0xf4227d(0x1a9)](){const _0x28b930=_0xf4227d;if(this[_0x28b930(0x1f8)]&&(this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b1)](),this[_0x28b930(0x1c6)][_0x28b930(0x1f2)]>0x0)){this[_0x28b930(0x1c6)][_0x28b930(0x212)](_0x20e5ca=>{const _0x508a95=_0x28b930;_0x20e5ca[_0x508a95(0x1c9)]();});const _0x45a584=new _0x2abfae(this[_0x28b930(0x217)]);_0x45a584[_0x28b930(0x1d7)]({'tag':_0x28b930(0x220),'attributes':{'class':this[_0x28b930(0x206)][_0x28b930(0x1d4)][_0x28b930(0x1fd)]},'children':this[_0x28b930(0x1c6)]}),this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b8)](_0x45a584);}}[_0xf4227d(0x21e)](){const _0x5c39b9=_0xf4227d;this[_0x5c39b9(0x1ba)][_0x5c39b9(0x1b3)]?this[_0x5c39b9(0x226)]():this[_0x5c39b9(0x1b5)]();}[_0xf4227d(0x224)](){const _0x88c65c=_0xf4227d,_0x4d4f00=this[_0x88c65c(0x1c6)][_0x88c65c(0x1f2)]>0x0;this[_0x88c65c(0x1ba)]?.[_0x88c65c(0x22d)]&&(this[_0x88c65c(0x1ba)][_0x88c65c(0x22d)][_0x88c65c(0x1db)][_0x88c65c(0x229)]=_0x4d4f00?'':_0x88c65c(0x202));}[_0xf4227d(0x1fe)](){const _0x5bb28a=_0xf4227d;this[_0x5bb28a(0x1ba)]?.[_0x5bb28a(0x1b3)]&&this[_0x5bb28a(0x1f8)]?.[_0x5bb28a(0x1bf)]&&this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)]&&this[_0x5bb28a(0x1f8)][_0x5bb28a(0x211)]({'target':this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)],'limiter':document[_0x5bb28a(0x203)](_0x5bb28a(0x1d3))});}[_0xf4227d(0x1d9)](_0x50dae9){const _0x4f9755=_0xf4227d,_0x1fe079=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x1d6)][_0x4f9755(0x1bb)]()||_0x4f9755(0x220),_0x314a73=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x222)];if(_0x314a73){const _0x27cfd0=_0x314a73[0x0]||'',_0x55845b=_0x50dae9[_0x4f9755(0x203)]('.'+_0x27cfd0),_0x35bdbf=_0x50dae9[_0x4f9755(0x203)](_0x1fe079);return _0x55845b||_0x35bdbf||_0x50dae9;}return _0x50dae9[_0x4f9755(0x203)](_0x1fe079)||_0x50dae9;}[_0xf4227d(0x1ff)](){const _0x1810f3=_0xf4227d,_0x170b6c=this[_0x1810f3(0x1e3)]?.[_0x1810f3(0x22d)]||this[_0x1810f3(0x1be)];if(!_0x170b6c)return ln;const _0x4d5783=window[_0x1810f3(0x1c7)](_0x170b6c)[_0x1810f3(0x1cd)];if(_0x1810f3(0x19e)===_0x4d5783||_0x1810f3(0x21f)===_0x4d5783||!_0x4d5783){const _0x57318f=_0x170b6c[_0x1810f3(0x1d0)];if(_0x57318f){const _0x286817=window[_0x1810f3(0x1c7)](_0x57318f);return _0x1810f3(0x19e)!==_0x286817[_0x1810f3(0x1cd)]?_0x286817[_0x1810f3(0x1cd)]:ln;}return ln;}return _0x4d5783;}[_0xf4227d(0x201)](_0x3e907e,_0x54af8a){const _0x1b6fe7=_0xf4227d;this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]&&_0x3e907e[_0x1b6fe7(0x222)][_0x1b6fe7(0x1b8)](this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1cd)]=_0x54af8a,_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1b4)]=_0x1b6fe7(0x1c3),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1dc)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1e0)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x225)]='0',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x22c)]=_0x1b6fe7(0x202),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1a4)]='-1',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1f6)]=_0x1b6fe7(0x1e7),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x229)]=_0x1b6fe7(0x21a),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1de)]=_0x1b6fe7(0x227);}[_0xf4227d(0x20d)](_0x51e945){const _0x203242=_0xf4227d;_0x51e945[_0x203242(0x212)](({element:_0x1e0c57,originalDisplay:_0x284915,originalVisibility:_0x2d43ba})=>{const _0x4adf6c=_0x203242;_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x229)]=_0x284915,_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x1f6)]=_0x2d43ba;});}[_0xf4227d(0x20b)](_0x2db3f1){const _0x2a90e5=_0xf4227d,_0xb65ea=[];let _0x5f206f=_0x2db3f1;for(;_0x5f206f&&_0x5f206f!==document[_0x2a90e5(0x1cc)];){const _0x2a1034=window[_0x2a90e5(0x1c7)](_0x5f206f);_0x2a90e5(0x202)!==_0x2a1034[_0x2a90e5(0x229)]&&_0x2a90e5(0x1e4)!==_0x2a1034[_0x2a90e5(0x1f6)]||(_0xb65ea[_0x2a90e5(0x218)]({'element':_0x5f206f,'originalDisplay':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)],'originalVisibility':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]}),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)]=_0x2a90e5(0x1aa),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]=_0x2a90e5(0x20e)),_0x5f206f=_0x5f206f[_0x2a90e5(0x1d0)];}return _0xb65ea;}[_0xf4227d(0x1f7)](){const _0x21b46e=_0xf4227d;let _0x4289f6,_0x44441e;return this[_0x21b46e(0x1e3)]?.[_0x21b46e(0x22d)]?(_0x4289f6=this[_0x21b46e(0x1e3)][_0x21b46e(0x22d)][_0x21b46e(0x1a0)](!0x0),_0x44441e=this[_0x21b46e(0x1d9)](_0x4289f6)):(_0x4289f6=document[_0x21b46e(0x21c)](_0x21b46e(0x220)),_0x44441e=_0x4289f6),{'calculationContainer':_0x4289f6,'targetContainer':_0x44441e};}[_0xf4227d(0x19c)](){const _0xc462bd=_0xf4227d,{calculationContainer:_0x238794,targetContainer:_0x3d6595}=this[_0xc462bd(0x1f7)](),_0x394d66=this[_0xc462bd(0x1ff)]();this[_0xc462bd(0x201)](_0x238794,_0x394d66);const _0x16e1af=this[_0xc462bd(0x1e3)]?.[_0xc462bd(0x22d)]||this[_0xc462bd(0x1be)],_0x3adb15=_0x16e1af?.[_0xc462bd(0x1d0)];_0x3adb15?_0x3adb15[_0xc462bd(0x1a8)](_0x238794):document[_0xc462bd(0x1cc)][_0xc462bd(0x1a8)](_0x238794),_0x238794[_0xc462bd(0x22a)]=_0x3d6595;const _0x186699=this[_0xc462bd(0x20b)](_0x3adb15||null);return _0x238794[_0xc462bd(0x1b2)],_0x238794[_0xc462bd(0x1e6)]=_0x186699,_0x238794;}[_0xf4227d(0x205)](_0x114ee4,_0x281efb){const _0x462649=_0xf4227d,_0x1e79c3=_0x114ee4[_0x462649(0x22a)]||_0x114ee4,_0x44e52d=[],{rowCount:_0x5eb92c}=this[_0x462649(0x1ac)](_0x1e79c3,_0x281efb);if(_0x5eb92c<=this[_0x462649(0x206)][_0x462649(0x1ca)])return _0x44e52d;const _0x9048a2=_0x281efb[_0x462649(0x208)]();for(;_0x9048a2[_0x462649(0x1f2)]>0x0;){if(this[_0x462649(0x1c1)](_0x114ee4,_0x1e79c3,_0x9048a2)){const _0x4a31be=_0x281efb[_0x462649(0x200)](_0xd902b5=>!_0x9048a2[_0x462649(0x1a6)](_0xd902b5));_0x44e52d[_0x462649(0x218)](..._0x4a31be);break;}if(!_0x9048a2[_0x462649(0x20f)]())break;}return _0x44e52d;}[_0xf4227d(0x1ac)](_0x257a92,_0x158f0e){const _0x351d47=_0xf4227d;_0x257a92[_0x351d47(0x228)]='',_0x158f0e[_0x351d47(0x212)](_0x2db86e=>{const _0x47e5bd=_0x351d47;if(_0x2db86e[_0x47e5bd(0x22d)]){const _0x6930f9=_0x2db86e[_0x47e5bd(0x22d)][_0x47e5bd(0x1a0)](!0x0);_0x257a92[_0x47e5bd(0x1a8)](_0x6930f9);}}),_0x257a92[_0x351d47(0x1b2)];const _0x29afd7=_0x257a92[_0x351d47(0x1a1)],_0x4e8299=[];return Array[_0x351d47(0x209)](_0x29afd7)[_0x351d47(0x212)](_0x2356ff=>{const _0x30efaa=_0x351d47,_0x36ac13=_0x2356ff[_0x30efaa(0x1c8)]()[_0x30efaa(0x1dc)];_0x4e8299[_0x30efaa(0x1f3)](_0x2d46a9=>Math[_0x30efaa(0x1fa)](_0x2d46a9-_0x36ac13)<this[_0x30efaa(0x206)][_0x30efaa(0x207)])||_0x4e8299[_0x30efaa(0x218)](_0x36ac13);}),{'rowCount':_0x4e8299[_0x351d47(0x1f2)]};}[_0xf4227d(0x221)](){const _0x419dfa=_0xf4227d,_0xa19994=document[_0x419dfa(0x21c)](_0x419dfa(0x1bc));return _0xa19994[_0x419dfa(0x20c)]=this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c4)],this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]&&_0xa19994[_0x419dfa(0x222)][_0x419dfa(0x1b8)](this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]),_0xa19994[_0x419dfa(0x1b0)]=_0x419dfa(0x1c5),_0xa19994;}[_0xf4227d(0x1c1)](_0x15bca0,_0x3068a8,_0x58f833){const _0x5c4362=_0xf4227d;this[_0x5c4362(0x1ac)](_0x3068a8,_0x58f833);const _0x38fc09=this[_0x5c4362(0x221)]();_0x15bca0[_0x5c4362(0x1a8)](_0x38fc09),_0x15bca0[_0x5c4362(0x1b2)];const _0x2a97da=[..._0x3068a8[_0x5c4362(0x1a1)],_0x38fc09],_0x190a24=[];_0x2a97da[_0x5c4362(0x212)](_0x214ad6=>{const _0x417fd1=_0x5c4362,_0x2229a9=_0x214ad6[_0x417fd1(0x1c8)]()[_0x417fd1(0x1dc)];_0x190a24[_0x417fd1(0x1f3)](_0x24331a=>Math[_0x417fd1(0x1fa)](_0x24331a-_0x2229a9)<this[_0x417fd1(0x206)][_0x417fd1(0x207)])||_0x190a24[_0x417fd1(0x218)](_0x2229a9);});const _0x3604ec=_0x190a24[_0x5c4362(0x1f2)];return _0x38fc09[_0x5c4362(0x1ae)](),_0x3604ec<=this[_0x5c4362(0x206)][_0x5c4362(0x1ca)];}[_0xf4227d(0x1f1)](_0x4b623c,_0x226fe0){const _0x206741=_0xf4227d;this[_0x206741(0x1ea)][_0x206741(0x1b1)](),this[_0x206741(0x1c6)][_0x206741(0x1b1)](),_0x4b623c[_0x206741(0x212)](_0x47752c=>{const _0x310e8a=_0x206741;_0x226fe0[_0x310e8a(0x1a6)](_0x47752c)?this[_0x310e8a(0x1c6)][_0x310e8a(0x1b8)](_0x47752c):this[_0x310e8a(0x1ea)][_0x310e8a(0x1b8)](_0x47752c);});}[_0xf4227d(0x204)](_0x4bc346){const _0x2f0f0d=_0xf4227d;if(_0x4bc346>0x0&&!this[_0x2f0f0d(0x1ba)]&&this[_0x2f0f0d(0x1d2)](),_0x4bc346>0x0&&this[_0x2f0f0d(0x1ba)]){const _0x227330=''+this[_0x2f0f0d(0x206)][_0x2f0f0d(0x20a)]+(_0x4bc346<0x63?_0x4bc346:'99');this[_0x2f0f0d(0x1ba)][_0x2f0f0d(0x1e5)]=_0x227330;}this[_0x2f0f0d(0x1a9)](),this[_0x2f0f0d(0x224)](),this[_0x2f0f0d(0x1fe)]();}[_0xf4227d(0x1f9)](_0x8982f4,_0x46d988){const _0x2507d1=_0xf4227d;this[_0x2507d1(0x1f1)](_0x8982f4,_0x46d988),this[_0x2507d1(0x204)](_0x46d988[_0x2507d1(0x1f2)]);}[_0xf4227d(0x1fb)](){const _0x544d99=_0xf4227d;this[_0x544d99(0x1be)]&&_0x544d99(0x216)!=typeof IntersectionObserver&&(this[_0x544d99(0x219)]=new IntersectionObserver(_0x5a556b=>{const _0x64239a=_0x544d99;_0x5a556b[0x0][_0x64239a(0x22b)]&&this[_0x64239a(0x1eb)]&&requestAnimationFrame(()=>{const _0x5edf19=_0x64239a;this[_0x5edf19(0x1e2)]();});},{'threshold':0.01,'rootMargin':_0x544d99(0x223)}),this[_0x544d99(0x219)][_0x544d99(0x1ee)](this[_0x544d99(0x1be)]));}[_0xf4227d(0x1ec)](){const _0x37563a=_0xf4227d;if(!this[_0x37563a(0x1be)])return!0x1;if(!this[_0x37563a(0x1be)][_0x37563a(0x213)])return!0x1;const _0x48d8f0=this[_0x37563a(0x1be)][_0x37563a(0x1c8)]();if(0x0===_0x48d8f0[_0x37563a(0x1cd)]||0x0===_0x48d8f0[_0x37563a(0x1ef)])return!0x1;const _0x178d2e=window[_0x37563a(0x19a)]||document[_0x37563a(0x19d)][_0x37563a(0x1df)],_0x43e574=window[_0x37563a(0x22e)]||document[_0x37563a(0x19d)][_0x37563a(0x1a5)],_0x5f75a7=0xc8;return _0x48d8f0[_0x37563a(0x1a2)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1dc)]<=_0x178d2e+_0x5f75a7&&_0x48d8f0[_0x37563a(0x214)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1e0)]<=_0x43e574+_0x5f75a7;}}
|
|
23
|
+
const _0x1c78c3=_0x4181;(function(_0x12a4d2,_0x51fc70){const _0x1e84b2=_0x4181,_0x3286c4=_0x12a4d2();while(!![]){try{const _0x58ba3e=parseInt(_0x1e84b2(0x156))/0x1*(-parseInt(_0x1e84b2(0x14b))/0x2)+-parseInt(_0x1e84b2(0x16e))/0x3+-parseInt(_0x1e84b2(0x11b))/0x4+parseInt(_0x1e84b2(0x17d))/0x5*(parseInt(_0x1e84b2(0x139))/0x6)+parseInt(_0x1e84b2(0x10e))/0x7*(parseInt(_0x1e84b2(0x122))/0x8)+-parseInt(_0x1e84b2(0x199))/0x9*(-parseInt(_0x1e84b2(0x126))/0xa)+-parseInt(_0x1e84b2(0x174))/0xb*(-parseInt(_0x1e84b2(0x17a))/0xc);if(_0x58ba3e===_0x51fc70)break;else _0x3286c4['push'](_0x3286c4['shift']());}catch(_0x5bf488){_0x3286c4['push'](_0x3286c4['shift']());}}}(_0x4d47,0xe13fb));import{View as _0xbf65fb,BalloonPanelView as _0x428e55,ButtonView as _0x1dc775,clickOutsideHandler as _0x30bc6a}from'ckeditor5/src/ui.js';import{Collection as _0x5831be}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x1c78c3(0x179);function _0x4d47(){const _0x3c1971=['disconnect','zIndex','label','style','+\x201','2zYGtcb','pointerEvents','bottom','ck-calculation-container','none','isOn','isConnected','_createShowMoreButtonView','setTemplate','visibility','width','207054JphOcv','innerHeight','_makeAncestorsVisible','clientHeight','content','disableAnimationOnEnter','add','_findTargetContainer','_checkAndHandleOverflow','_renderChipsAndCountRows','_calculateOverflowInContainer','border-box','appendChild','_updateOverflowUI','_restoreAncestorVisibility','clientWidth','top','execute','from','div','_updateShowMoreButtonVisibility','show','children','body','4287141Blidrp','createElement','_visibleChips','hide','_locale','pop','11cEWvxr','isIntersecting','opacity','set','right','300px','1487868fNjqkl','documentElement','_showMoreButtonView','86205MCJEqu','remove','_parentView','_intersectionObserver','boxSizing','hidden','_ancestorsToRestore','length','_calculateContainerWidth','element','some','showMoreButton','forEach','innerWidth','_repinBalloonPanel','overflowContainer','_applyCalculationStyles','_updateBalloonContent','getComputedStyle','display','height','tagName','abs','classList','block\x20!important','slice','_config','button','414567ncFmQv','clear','overflowChips','render','_bodyCollection','textContent','setContainerElement','absolute','_createShowMoreButton','showMoreButtonView','_targetContainer','6845335AGvahm','left','pin','includes','block','_applyOverflowResults','visible\x20!important','_showMoreBalloonPanelView','position','className','_isContainerVisible','push','showMoreLabelPrefix','2755224rZtfhE','observe','_containerElement','destroy','_overflowChips','showMoreBalloon','isVisible','8LVSYNu','_handleShowMoreButtonClick','_createContainerElements','undefined','230GCIprI','filter','querySelector','offsetWidth','auto','0px','_pendingCalculation','_createCalculationContainer','cloneNode','.ck-ai-chat','innerHTML','50px','parentElement','calculationContainer','visible','_createMockButton','_distributeChips','getBoundingClientRect','showBalloonPanel','378PesIiL','_testButtonFit','_setupVisibilityObserver','cssClasses','reorganizeChips','maxVisibleRows','toLowerCase','extendTemplate','_createShowMoreBalloonPanelView','hideBalloonPanel','rowDetectionTolerance','controlsButton','-9999px'];_0x4d47=function(){return _0x3c1971;};return _0x4d47();}function _0x4181(_0xe656e5,_0x44aa97){const _0x4d47a7=_0x4d47();return _0x4181=function(_0x418165,_0x2b8d94){_0x418165=_0x418165-0x107;let _0x32ae28=_0x4d47a7[_0x418165];return _0x32ae28;},_0x4181(_0xe656e5,_0x44aa97);}export class AIChatChipsOverflowManager{[_0x1c78c3(0x172)];[_0x1c78c3(0x197)];[_0x1c78c3(0x170)];[_0x1c78c3(0x11f)];[_0x1c78c3(0x17c)]=null;[_0x1c78c3(0x115)]=null;[_0x1c78c3(0x11d)]=null;[_0x1c78c3(0x107)];[_0x1c78c3(0x17f)]=null;[_0x1c78c3(0x180)]=null;[_0x1c78c3(0x12c)]=!0x1;constructor(_0x49e1c3,_0x143ced,_0x51ead3,_0x8ec027,_0x155232){const _0x18e4cc=_0x1c78c3;this[_0x18e4cc(0x172)]=_0x49e1c3,this[_0x18e4cc(0x170)]=_0x143ced,this[_0x18e4cc(0x197)]={...hn,..._0x51ead3,'cssClasses':{'controlsButton':'','calculationContainer':_0x18e4cc(0x14e),..._0x51ead3[_0x18e4cc(0x13c)]}},this[_0x18e4cc(0x11f)]=new _0x5831be(),this[_0x18e4cc(0x107)]=_0x8ec027,this[_0x18e4cc(0x17f)]=_0x155232||null;}[_0x1c78c3(0x109)](_0x50d537){const _0x4713d1=_0x1c78c3;this[_0x4713d1(0x180)]&&(this[_0x4713d1(0x180)][_0x4713d1(0x146)](),this[_0x4713d1(0x180)]=null),this[_0x4713d1(0x11d)]=_0x50d537,this[_0x4713d1(0x13b)]();}get[_0x1c78c3(0x10c)](){const _0x3f2df1=_0x1c78c3;return this[_0x3f2df1(0x17c)];}get[_0x1c78c3(0x19b)](){const _0x50a784=_0x1c78c3;return this[_0x50a784(0x11f)];}[_0x1c78c3(0x13d)](){requestAnimationFrame(()=>{const _0x233a04=_0x4181;this[_0x233a04(0x15e)]();});}[_0x1c78c3(0x138)](){const _0xd74190=_0x1c78c3;this[_0xd74190(0x17c)]&&this[_0xd74190(0x115)]&&(this[_0xd74190(0x18e)](),this[_0xd74190(0x17c)][_0xd74190(0x150)]=!0x0,this[_0xd74190(0x115)][_0xd74190(0x16b)](),this[_0xd74190(0x115)][_0xd74190(0x110)]({'target':this[_0xd74190(0x17c)][_0xd74190(0x186)],'limiter':document[_0xd74190(0x128)](_0xd74190(0x12f))}));}[_0x1c78c3(0x142)](){const _0x5e4091=_0x1c78c3;this[_0x5e4091(0x17c)]&&this[_0x5e4091(0x115)]&&(this[_0x5e4091(0x17c)][_0x5e4091(0x150)]=!0x1,this[_0x5e4091(0x115)][_0x5e4091(0x171)]());}[_0x1c78c3(0x19a)](){const _0x56b485=_0x1c78c3;this[_0x56b485(0x11f)][_0x56b485(0x19a)](),this[_0x56b485(0x142)](),this[_0x56b485(0x16a)](),this[_0x56b485(0x17c)]&&(this[_0x56b485(0x17c)][_0x56b485(0x148)]=''),this[_0x56b485(0x115)]&&this[_0x56b485(0x115)][_0x56b485(0x15a)][_0x56b485(0x19a)]();}[_0x1c78c3(0x11e)](){const _0x2a2d11=_0x1c78c3;this[_0x2a2d11(0x180)]&&(this[_0x2a2d11(0x180)][_0x2a2d11(0x146)](),this[_0x2a2d11(0x180)]=null),this[_0x2a2d11(0x17c)]&&(this[_0x2a2d11(0x17c)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x17c)]=null),this[_0x2a2d11(0x115)]&&(this[_0x2a2d11(0x115)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x115)]=null);}[_0x1c78c3(0x15e)](){const _0x209008=_0x1c78c3;if(!this[_0x209008(0x11d)])return;if(!this[_0x209008(0x118)]())return void(this[_0x209008(0x12c)]=!0x0);this[_0x209008(0x12c)]=!0x1;const _0xdecc9f=[...this[_0x209008(0x170)],...this[_0x209008(0x11f)]],_0x1f2884=this[_0x209008(0x12d)](),_0xea1657=this[_0x209008(0x160)](_0x1f2884,_0xdecc9f),_0xdf83fd=_0x1f2884[_0x209008(0x183)];_0xdf83fd&&this[_0x209008(0x164)](_0xdf83fd),_0x1f2884[_0x209008(0x17e)](),this[_0x209008(0x113)](_0xdecc9f,_0xea1657);}[_0x1c78c3(0x10b)](){const _0x4acd6d=_0x1c78c3;this[_0x4acd6d(0x17c)]=this[_0x4acd6d(0x152)](),this[_0x4acd6d(0x115)]=this[_0x4acd6d(0x141)](),this[_0x4acd6d(0x17c)][_0x4acd6d(0x19c)](),this[_0x4acd6d(0x11d)][_0x4acd6d(0x162)](this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]),this[_0x4acd6d(0x17c)]['on'](_0x4acd6d(0x167),()=>{const _0x274735=_0x4acd6d;this[_0x274735(0x123)]();}),_0x30bc6a({'emitter':this[_0x4acd6d(0x115)],'contextElements':[this[_0x4acd6d(0x115)][_0x4acd6d(0x186)],this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]],'callback':()=>this[_0x4acd6d(0x142)](),'activator':()=>this[_0x4acd6d(0x17c)][_0x4acd6d(0x150)]});}[_0x1c78c3(0x152)](){const _0x206151=_0x1c78c3,_0x5d037c=new _0x1dc775(this[_0x206151(0x172)]);_0x5d037c[_0x206151(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2ea9b6=[this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x188)]];return this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]&&_0x2ea9b6[_0x206151(0x119)](this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]),_0x5d037c[_0x206151(0x140)]({'attributes':{'class':_0x2ea9b6}}),_0x5d037c;}[_0x1c78c3(0x141)](){const _0x19b9f7=_0x1c78c3,_0x3aa494=new _0x428e55(this[_0x19b9f7(0x172)]);return _0x3aa494[_0x19b9f7(0x140)]({'attributes':{'class':this[_0x19b9f7(0x197)][_0x19b9f7(0x13c)][_0x19b9f7(0x120)]}}),this[_0x19b9f7(0x107)][_0x19b9f7(0x15c)](_0x3aa494),_0x3aa494;}[_0x1c78c3(0x18e)](){const _0x2da172=_0x1c78c3;if(this[_0x2da172(0x115)]&&(this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x19a)](),this[_0x2da172(0x11f)][_0x2da172(0x184)]>0x0)){this[_0x2da172(0x11f)][_0x2da172(0x189)](_0x150961=>{const _0x43572e=_0x2da172;_0x150961[_0x43572e(0x15b)]();});const _0x5ecd58=new _0xbf65fb(this[_0x2da172(0x172)]);_0x5ecd58[_0x2da172(0x153)]({'tag':_0x2da172(0x169),'attributes':{'class':this[_0x2da172(0x197)][_0x2da172(0x13c)][_0x2da172(0x18c)]},'children':this[_0x2da172(0x11f)]}),this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x15c)](_0x5ecd58);}}[_0x1c78c3(0x123)](){const _0x238472=_0x1c78c3;this[_0x238472(0x17c)][_0x238472(0x150)]?this[_0x238472(0x142)]():this[_0x238472(0x138)]();}[_0x1c78c3(0x16a)](){const _0x51e0c7=_0x1c78c3,_0x50df8d=this[_0x51e0c7(0x11f)][_0x51e0c7(0x184)]>0x0;this[_0x51e0c7(0x17c)]?.[_0x51e0c7(0x186)]&&(this[_0x51e0c7(0x17c)][_0x51e0c7(0x186)][_0x51e0c7(0x149)][_0x51e0c7(0x190)]=_0x50df8d?'':_0x51e0c7(0x14f));}[_0x1c78c3(0x18b)](){const _0x3feb20=_0x1c78c3;this[_0x3feb20(0x17c)]?.[_0x3feb20(0x150)]&&this[_0x3feb20(0x115)]?.[_0x3feb20(0x121)]&&this[_0x3feb20(0x17c)][_0x3feb20(0x186)]&&this[_0x3feb20(0x115)][_0x3feb20(0x110)]({'target':this[_0x3feb20(0x17c)][_0x3feb20(0x186)],'limiter':document[_0x3feb20(0x128)](_0x3feb20(0x12f))});}[_0x1c78c3(0x15d)](_0x4bc6b5){const _0x2bfbbf=_0x1c78c3,_0x16ae90=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x192)][_0x2bfbbf(0x13f)]()||_0x2bfbbf(0x169),_0x2d9b3b=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x194)];if(_0x2d9b3b){const _0x5cdd41=_0x2d9b3b[0x0]||'',_0x583329=_0x4bc6b5[_0x2bfbbf(0x128)]('.'+_0x5cdd41),_0x522537=_0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90);return _0x583329||_0x522537||_0x4bc6b5;}return _0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90)||_0x4bc6b5;}[_0x1c78c3(0x185)](){const _0x4c8e85=_0x1c78c3,_0x54e5c9=this[_0x4c8e85(0x17f)]?.[_0x4c8e85(0x186)]||this[_0x4c8e85(0x11d)];if(!_0x54e5c9)return ln;const _0x393427=window[_0x4c8e85(0x18f)](_0x54e5c9)[_0x4c8e85(0x155)];if(_0x4c8e85(0x12a)===_0x393427||_0x4c8e85(0x12b)===_0x393427||!_0x393427){const _0x35c4cb=_0x54e5c9[_0x4c8e85(0x132)];if(_0x35c4cb){const _0x255dd1=window[_0x4c8e85(0x18f)](_0x35c4cb);return _0x4c8e85(0x12a)!==_0x255dd1[_0x4c8e85(0x155)]?_0x255dd1[_0x4c8e85(0x155)]:ln;}return ln;}return _0x393427;}[_0x1c78c3(0x18d)](_0x1a314c,_0x58c071){const _0x4c63cb=_0x1c78c3;this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]&&_0x1a314c[_0x4c63cb(0x194)][_0x4c63cb(0x15c)](this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x155)]=_0x58c071,_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x116)]=_0x4c63cb(0x10a),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x166)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x10f)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x176)]='0',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x14c)]=_0x4c63cb(0x14f),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x147)]='-1',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x154)]=_0x4c63cb(0x114),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x190)]=_0x4c63cb(0x195),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x181)]=_0x4c63cb(0x161);}[_0x1c78c3(0x164)](_0x2303dd){const _0x51491a=_0x1c78c3;_0x2303dd[_0x51491a(0x189)](({element:_0x51ddf1,originalDisplay:_0x166d90,originalVisibility:_0x5b8d42})=>{const _0x407e01=_0x51491a;_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x190)]=_0x166d90,_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x154)]=_0x5b8d42;});}[_0x1c78c3(0x158)](_0x205b46){const _0x5f0361=_0x1c78c3,_0x21c853=[];let _0x15c204=_0x205b46;for(;_0x15c204&&_0x15c204!==document[_0x5f0361(0x16d)];){const _0x596da1=window[_0x5f0361(0x18f)](_0x15c204);_0x5f0361(0x14f)!==_0x596da1[_0x5f0361(0x190)]&&_0x5f0361(0x182)!==_0x596da1[_0x5f0361(0x154)]||(_0x21c853[_0x5f0361(0x119)]({'element':_0x15c204,'originalDisplay':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)],'originalVisibility':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]}),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)]=_0x5f0361(0x112),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]=_0x5f0361(0x134)),_0x15c204=_0x15c204[_0x5f0361(0x132)];}return _0x21c853;}[_0x1c78c3(0x124)](){const _0x21c689=_0x1c78c3;let _0x35620f,_0x340f9d;return this[_0x21c689(0x17f)]?.[_0x21c689(0x186)]?(_0x35620f=this[_0x21c689(0x17f)][_0x21c689(0x186)][_0x21c689(0x12e)](!0x0),_0x340f9d=this[_0x21c689(0x15d)](_0x35620f)):(_0x35620f=document[_0x21c689(0x16f)](_0x21c689(0x169)),_0x340f9d=_0x35620f),{'calculationContainer':_0x35620f,'targetContainer':_0x340f9d};}[_0x1c78c3(0x12d)](){const _0x94d243=_0x1c78c3,{calculationContainer:_0x3d71d0,targetContainer:_0x24b734}=this[_0x94d243(0x124)](),_0x5c62f3=this[_0x94d243(0x185)]();this[_0x94d243(0x18d)](_0x3d71d0,_0x5c62f3);const _0x41ce08=this[_0x94d243(0x17f)]?.[_0x94d243(0x186)]||this[_0x94d243(0x11d)],_0x11b4a0=_0x41ce08?.[_0x94d243(0x132)];_0x11b4a0?_0x11b4a0[_0x94d243(0x162)](_0x3d71d0):document[_0x94d243(0x16d)][_0x94d243(0x162)](_0x3d71d0),_0x3d71d0[_0x94d243(0x10d)]=_0x24b734;const _0x14ab3e=this[_0x94d243(0x158)](_0x11b4a0||null);return _0x3d71d0[_0x94d243(0x129)],_0x3d71d0[_0x94d243(0x183)]=_0x14ab3e,_0x3d71d0;}[_0x1c78c3(0x160)](_0x2e15f4,_0x2d1f1b){const _0x4dc8be=_0x1c78c3,_0x92d67e=_0x2e15f4[_0x4dc8be(0x10d)]||_0x2e15f4,_0x72240f=[],{rowCount:_0x51cec2}=this[_0x4dc8be(0x15f)](_0x92d67e,_0x2d1f1b);if(_0x51cec2<=this[_0x4dc8be(0x197)][_0x4dc8be(0x13e)])return _0x72240f;const _0x8db0b5=_0x2d1f1b[_0x4dc8be(0x196)]();for(;_0x8db0b5[_0x4dc8be(0x184)]>0x0;){if(this[_0x4dc8be(0x13a)](_0x2e15f4,_0x92d67e,_0x8db0b5)){const _0x4f2c7b=_0x2d1f1b[_0x4dc8be(0x127)](_0x1ae428=>!_0x8db0b5[_0x4dc8be(0x111)](_0x1ae428));_0x72240f[_0x4dc8be(0x119)](..._0x4f2c7b);break;}if(!_0x8db0b5[_0x4dc8be(0x173)]())break;}return _0x72240f;}[_0x1c78c3(0x15f)](_0x2caeb3,_0x56feb6){const _0x262608=_0x1c78c3;_0x2caeb3[_0x262608(0x130)]='',_0x56feb6[_0x262608(0x189)](_0xf3e631=>{const _0x33e0e5=_0x262608;if(_0xf3e631[_0x33e0e5(0x186)]){const _0x507674=_0xf3e631[_0x33e0e5(0x186)][_0x33e0e5(0x12e)](!0x0);_0x2caeb3[_0x33e0e5(0x162)](_0x507674);}}),_0x2caeb3[_0x262608(0x129)];const _0x45657c=_0x2caeb3[_0x262608(0x16c)],_0xa36c29=[];return Array[_0x262608(0x168)](_0x45657c)[_0x262608(0x189)](_0x3e6c21=>{const _0x1c5f1f=_0x262608,_0x2a3aef=_0x3e6c21[_0x1c5f1f(0x137)]()[_0x1c5f1f(0x166)];_0xa36c29[_0x1c5f1f(0x187)](_0x4ee961=>Math[_0x1c5f1f(0x193)](_0x4ee961-_0x2a3aef)<this[_0x1c5f1f(0x197)][_0x1c5f1f(0x143)])||_0xa36c29[_0x1c5f1f(0x119)](_0x2a3aef);}),{'rowCount':_0xa36c29[_0x262608(0x184)]};}[_0x1c78c3(0x135)](){const _0x5e21f6=_0x1c78c3,_0x16991e=document[_0x5e21f6(0x16f)](_0x5e21f6(0x198));return _0x16991e[_0x5e21f6(0x117)]=this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x188)],this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]&&_0x16991e[_0x5e21f6(0x194)][_0x5e21f6(0x15c)](this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]),_0x16991e[_0x5e21f6(0x108)]=_0x5e21f6(0x14a),_0x16991e;}[_0x1c78c3(0x13a)](_0x2e489c,_0x224fc0,_0x2cc9fa){const _0x2575f7=_0x1c78c3;this[_0x2575f7(0x15f)](_0x224fc0,_0x2cc9fa);const _0x39853e=this[_0x2575f7(0x135)]();_0x2e489c[_0x2575f7(0x162)](_0x39853e),_0x2e489c[_0x2575f7(0x129)];const _0x244e50=[..._0x224fc0[_0x2575f7(0x16c)],_0x39853e],_0x3cd883=[];_0x244e50[_0x2575f7(0x189)](_0x2c01a2=>{const _0x1a4836=_0x2575f7,_0xd3183e=_0x2c01a2[_0x1a4836(0x137)]()[_0x1a4836(0x166)];_0x3cd883[_0x1a4836(0x187)](_0x2a8dd8=>Math[_0x1a4836(0x193)](_0x2a8dd8-_0xd3183e)<this[_0x1a4836(0x197)][_0x1a4836(0x143)])||_0x3cd883[_0x1a4836(0x119)](_0xd3183e);});const _0x23b881=_0x3cd883[_0x2575f7(0x184)];return _0x39853e[_0x2575f7(0x17e)](),_0x23b881<=this[_0x2575f7(0x197)][_0x2575f7(0x13e)];}[_0x1c78c3(0x136)](_0x26b4a9,_0x50c8eb){const _0x1df7e4=_0x1c78c3;this[_0x1df7e4(0x170)][_0x1df7e4(0x19a)](),this[_0x1df7e4(0x11f)][_0x1df7e4(0x19a)](),_0x26b4a9[_0x1df7e4(0x189)](_0x53d36f=>{const _0x593de7=_0x1df7e4;_0x50c8eb[_0x593de7(0x111)](_0x53d36f)?this[_0x593de7(0x11f)][_0x593de7(0x15c)](_0x53d36f):this[_0x593de7(0x170)][_0x593de7(0x15c)](_0x53d36f);});}[_0x1c78c3(0x163)](_0x5a918f){const _0x14187a=_0x1c78c3;if(_0x5a918f>0x0&&!this[_0x14187a(0x17c)]&&this[_0x14187a(0x10b)](),_0x5a918f>0x0&&this[_0x14187a(0x17c)]){const _0x386b42=''+this[_0x14187a(0x197)][_0x14187a(0x11a)]+(_0x5a918f<0x63?_0x5a918f:'99');this[_0x14187a(0x17c)][_0x14187a(0x148)]=_0x386b42;}this[_0x14187a(0x18e)](),this[_0x14187a(0x16a)](),this[_0x14187a(0x18b)]();}[_0x1c78c3(0x113)](_0x2ee750,_0x79d4ff){const _0x43aa98=_0x1c78c3;this[_0x43aa98(0x136)](_0x2ee750,_0x79d4ff),this[_0x43aa98(0x163)](_0x79d4ff[_0x43aa98(0x184)]);}[_0x1c78c3(0x13b)](){const _0x4e494d=_0x1c78c3;this[_0x4e494d(0x11d)]&&_0x4e494d(0x125)!=typeof IntersectionObserver&&(this[_0x4e494d(0x180)]=new IntersectionObserver(_0x26a3a3=>{const _0x1822a0=_0x4e494d;_0x26a3a3[0x0][_0x1822a0(0x175)]&&this[_0x1822a0(0x12c)]&&requestAnimationFrame(()=>{const _0x9aabfd=_0x1822a0;this[_0x9aabfd(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x4e494d(0x131)}),this[_0x4e494d(0x180)][_0x4e494d(0x11c)](this[_0x4e494d(0x11d)]));}[_0x1c78c3(0x118)](){const _0x192321=_0x1c78c3;if(!this[_0x192321(0x11d)])return!0x1;if(!this[_0x192321(0x11d)][_0x192321(0x151)])return!0x1;const _0x483954=this[_0x192321(0x11d)][_0x192321(0x137)]();if(0x0===_0x483954[_0x192321(0x155)]||0x0===_0x483954[_0x192321(0x191)])return!0x1;const _0x597956=window[_0x192321(0x157)]||document[_0x192321(0x17b)][_0x192321(0x159)],_0x444c7d=window[_0x192321(0x18a)]||document[_0x192321(0x17b)][_0x192321(0x165)],_0x421bbb=0xc8;return _0x483954[_0x192321(0x14d)]>=-0xc8&&_0x483954[_0x192321(0x166)]<=_0x597956+_0x421bbb&&_0x483954[_0x192321(0x178)]>=-0xc8&&_0x483954[_0x192321(0x10f)]<=_0x444c7d+_0x421bbb;}}
|