@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.5

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.
Files changed (128) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichat/utils/scrollmanager.js +1 -1
  63. package/src/aichathistory/aichathistory.js +1 -1
  64. package/src/aichathistory/aichathistorycontroller.js +1 -1
  65. package/src/aichathistory/aichathistoryui.js +1 -1
  66. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  67. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  68. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  69. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  71. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.js +1 -1
  81. package/src/aicore/ui/aiskeleton.js +1 -1
  82. package/src/aicore/ui/aispinner.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  88. package/src/aicore/utils/createresizebutton.js +1 -1
  89. package/src/aicore/utils/documentrange.js +1 -1
  90. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  91. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  92. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  93. package/src/aicore/utils/htmlparser.js +1 -1
  94. package/src/aicore/utils/htmlstreamer.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aireviewmode/aireviewmode.js +1 -1
  106. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  107. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  108. package/src/aireviewmode/aireviewmodeui.js +1 -1
  109. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  112. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  113. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  124. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  125. package/src/aitabs/aitabs.js +1 -1
  126. package/src/aitabs/tabs/aitabsview.js +1 -1
  127. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  128. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x316803=_0x2471;function _0x28bd(){const _0x305f06=['conversationInitialized','contextItemRemoved','showChangeInText','plugins','reasoningStarted','pending','removeSelectionFromContext','interactionId','toggleReasoning','lastInteraction','loadSourceResources','_getDocumentRangeForReplyChanges','Showing\x20conversation\x20history...','mapper','source','log','getChild','main','state','hasChanges','getFirstRange','data','3354769tNGHGE','TrackChanges','getReply','getTransformedByOperation','isDocumentOperation','replies','setFeedItemRenderingStrategy','getInteractionAndReplyById','abortPromptStream','close','children','node','AI_CHAT_CONTEXT_INVALID_DATA','indexes','requires','capabilitiesUpdated','outdated','replyId','toggleSuggestionDisplayMode','addContextItem','AIChatUI','ai-chat-controller-no-active-conversation','$graveyard','activateTab','_removeFromContext','rejectSuggestion','getSelectionText','addOperation','error','data-id','from','_aiChatModels','startConversation','isUploadInProgress','contextItemLoadingEnded','load','scrollFeedToSuggestion','enableControls','mouseLeaveSuggestion','AIEditing','getContentParts','loadConversation','addResourceToContext','text-delta','_toggleWebSearch','remove','ai.chat.models.defaultModelId','path','ai.availableReplyActions','isStarted','toggleWebSearch','ai-chat-context-unsupported-type','reasoningFinished','changes','get','finishInteraction','_openBalloonFor','10287omHiRI','setChangeGroupState','showPrevious','messageId','_createFromRanges','addFilesToContext','updateCapabilities','domConverter','_logError','modelSelected','webSearchFinished','closeSourceResourceBalloon','focusPromptInput','stopListening','getChildAtOffset','editors','modification-delta','AI_CHAT_RESOURCE_LOAD_FAILED','getPath','createConversation','contextItems','ai-conversation-','removeSelectionFromChatContext','addFeedItemAIReply','Disliked\x20response','updateConversationTitle','_handleStartConversation','createPositionAt','indexOf','updateFeedItemAIReplySuggestionContent','resourceStateChanged','sourceResourcesLoaded','contextItemAdded','getDocumentData','setIsMaximized','forEach','upsertAIChatRating','root','getGroupId','dialogClosed','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','isPremiumPlugin','locale','_applySuggestion','accepted','pluginName','config','AI_CHAT_GENERIC_ERROR','_aiEditing','end','afterInit','like','addFeedInteractionHeader','addFeedItemStaticMessage','push','_applyOperationsAsSuggestions','addCurrentDocumentToContext','removeFeedInteraction','updateFeedItemAIReplySources','static','handleUserInteraction','redo','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','changeGroups','isOfficialPlugin','context','replyContentUpdated','unshift','createPositionFromPath','ai-chat-controller-mouse-over','updateCurrentDocumentInContext','viewRangeToDom','startsWith','TrackChangesEditing','removeContextItem','model','9epiCwJ','_handleUIUserMessage','stop','AIConnector','index','streaming','getOperations','full','Undo','isInContext','listenTo','undo','_startConversationSafely','_insertSuggestion','options','revert','resize','baseVersion','anchorId','1797342FMYHvO','documentContextContent','_previewedChangeGroup','sendUserMessage','_updateRatings','hideFakeVisualSelection','updateResourceState','AI_CHAT_UNABLE_TO_START_CONVERSATION','showDiff','getChildren','history','2084904TWIGfW','ai-chat-conversation-init-failed','toString','disableControls','_batchToChanges','toggleLoadingSkeleton','updateFeedItemAIReplySuggestionPartState','marker','markers','clearPendingContextUI','isModelAvailable','_scrollToSuggestionRange','_toggleReasoning','interactionCreated','rejected','split','_removeAISelectionMarkers','set','updateFeedItemAIReplyContent','AI_CHAT_UNTITLED_CONVERSATION','showFakeVisualSelection','slice','startInteraction','Failed\x20to\x20load\x20conversation','ai-chat-url-upload-failed','removeFromContext','addFeedItemError','ai-no-track-changes','sendMessage','_stopLastInteraction','contextItem','view','getRanges','3190IHTnZa','interactionDestroyed','dislike','sources','getMarkersGroup','uid','28wYnibi','updateContent','resource','ai-request-aborted','resources','length','activeConversation','addFileToContext','populateSourceResourceBalloon','range','rootName','ai.chat.models.displayedModels','showNext','resetMessageInput','clearConversationContextUI','query','stopInteraction','resizeTabs','version','toViewRange','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','1CWjBlJ','ai.chat.context','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','isOpen','applyOperation','howMany','ai-chat-resource-load-failed','resourceId','_balloonShowDiff','setConversationContext','batch','filter','alignToTop','editing','delete','_aiConnector','getInteraction','uploadProgressChanged','collaboration.channelId','webSearchStarted','init','chat','Liked\x20response','map','document','new','interactionFinished','setAddContextOptions','cloneNode','1463394DjCiDb','replyCreated','939580LGoxOF','sourcePosition','setSelectedModel','uiId','_showConversationHistory','createRange','setModel','maxOffset','_integrateEditor','addSelectionToChatContext','addFeedItemAISuggestion','ai-chat-missing-channel-id','AIChatController','AI_BALLOON_HEADER_TITLE','ai-chat-source-resources-load-failed','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','sourceId','has','addFeedItemUserMessage','setIsUploadInProgress','nextSibling','add','removeMarker','isCurrentDocumentInContext','partIndex','ai-chat-file-upload-failed','selection','mouseOverSuggestion','contextSent','getRoot','getDiff','setConversationTitle','AITabs','insertSuggestion','_updateReplyContent','ready','selectModel','isDisabled','addSelectionToContext','resetConversationTitle','isLoading','interactionStarted','handleRemovedConversation','addContextOptionsChanged','start','214888wSrYRH','DocumentCompare','setContextItemLoading','addUrlToContext','ai-chat-conversation-start-failed','type','findIndex','startAutoScroll','removed','_flushLastInteractionUI','change','_setIsMaximized','parse','setLoadingMessage','find','replyChangeGroupStateUpdated','resizedTabs','selectedModel','getDocumentContext','_aiChatUi','isCurrentDocumentInConversation','message','AI_CHAT_ABORTED_MESSAGE','10sXokmx','open','applySuggestion','current-document','ai-chat-context-invalid-data','content','addDocumentToContext','commands','getAttribute'];_0x28bd=function(){return _0x305f06;};return _0x28bd();}(function(_0xb276eb,_0x277e68){const _0x7ad6ae=_0x2471,_0x6289c4=_0xb276eb();while(!![]){try{const _0x3644c6=-parseInt(_0x7ad6ae(0x19c))/0x1*(-parseInt(_0x7ad6ae(0x1b9))/0x2)+parseInt(_0x7ad6ae(0x142))/0x3*(-parseInt(_0x7ad6ae(0x1bb))/0x4)+-parseInt(_0x7ad6ae(0x1ff))/0x5*(parseInt(_0x7ad6ae(0x155))/0x6)+parseInt(_0x7ad6ae(0x187))/0x7*(parseInt(_0x7ad6ae(0x1e8))/0x8)+parseInt(_0x7ad6ae(0xf6))/0x9*(parseInt(_0x7ad6ae(0x181))/0xa)+parseInt(_0x7ad6ae(0xbd))/0xb+parseInt(_0x7ad6ae(0x160))/0xc;if(_0x3644c6===_0x277e68)break;else _0x6289c4['push'](_0x6289c4['shift']());}catch(_0x1edc94){_0x6289c4['push'](_0x6289c4['shift']());}}}(_0x28bd,0x5c738));function _0x2471(_0x3e629d,_0x85fd53){const _0x28bdee=_0x28bd();return _0x2471=function(_0x247187,_0x282f5a){_0x247187=_0x247187-0xb1;let _0x4ba775=_0x28bdee[_0x247187];return _0x4ba775;},_0x2471(_0x3e629d,_0x85fd53);}import{ContextPlugin as _0x18677c,Editor as _0x7dca67}from'ckeditor5/src/core.js';import{CKEditorError as _0x321c9c,logError as _0x704787,scrollViewportToShowTarget as _0x632af4,uid as _0x5473e9}from'ckeditor5/src/utils.js';import{AIConnector as _0x58af33}from'../aicore/aiconnector.js';import{AITabs as _0xf5ec44}from'../aitabs/aitabs.js';import{AIChatConversation as _0x25ae50}from'./model/aichatconversation.js';import{getTranslation as _0xb3c904}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5c5027}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x2e1736}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x4a2198}from'./model/aichatmodels.js';import{getEditorFromContext as _0x3a18a5}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x334543,DATA_ID_MODEL_ATTRIBUTE as _0x2849b9}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2688ec,getOperationsFromReply as _0x3c839e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x127042,getMinimalSelection as _0x30c20c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x293d09,_DetachOperation as _0x3003e9}from'ckeditor5/src/engine.js';import{findOne as _0x327d91,getAttribute as _0x51989f,serialize as _0x4f403c,Document as _0x9c5f3f,findByAttribute as _0x2f0654}from'../aicore/utils/htmlparser.js';import{IconAI as _0x586ed1}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4b554b}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x3b7279}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x18677c{[_0x316803(0x126)];[_0x316803(0x1ab)];[_0x316803(0x1fb)];[_0x316803(0xdc)];[_0x316803(0x164)]=new Map();[_0x316803(0x157)]=null;[_0x316803(0x1a4)]=!0x1;static get[_0x316803(0xcb)](){return[_0x58af33,_0x3b7279,_0x334543];}static get[_0x316803(0x123)](){const _0x1b6173=_0x316803;return _0x1b6173(0x1c7);}static get[_0x316803(0x136)](){return!0x0;}static get[_0x316803(0x11f)](){return!0x0;}[_0x316803(0x1b0)](){const _0x42b81f=_0x316803;this[_0x42b81f(0x1ab)]=this[_0x42b81f(0x137)][_0x42b81f(0x20b)][_0x42b81f(0xf3)](_0x42b81f(0x145)),this[_0x42b81f(0x1fb)]=this[_0x42b81f(0x137)][_0x42b81f(0x20b)][_0x42b81f(0xf3)](_0x42b81f(0xd1)),this[_0x42b81f(0x126)]=this[_0x42b81f(0x137)][_0x42b81f(0x20b)][_0x42b81f(0xf3)](_0x42b81f(0xe4)),this[_0x42b81f(0xdc)]=new _0x4a2198({'connector':this[_0x42b81f(0x1ab)],'availableModels':this[_0x42b81f(0x137)][_0x42b81f(0x124)][_0x42b81f(0xf3)](_0x42b81f(0x192)),'defaultModelId':this[_0x42b81f(0x137)][_0x42b81f(0x124)][_0x42b81f(0xf3)](_0x42b81f(0xeb))});const _0xf992ef=this[_0x42b81f(0x137)][_0x42b81f(0x20b)][_0x42b81f(0xf3)](_0x42b81f(0x1db));this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xdd),()=>{const _0x456826=_0x42b81f;this[_0x456826(0x14e)]();}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x158),(_0x54ba1a,_0x4d12c0)=>{const _0x5c3252=_0x42b81f;this[_0x5c3252(0x143)]({'userMessage':_0x4d12c0});}),this[_0x42b81f(0x14c)](_0xf992ef,_0x42b81f(0x1f8),(_0x1527c9,_0x2370ab)=>{const _0x258c8d=_0x42b81f;this[_0x258c8d(0x1f3)](_0x2370ab);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x198),()=>{const _0x4e8a9f=_0x42b81f;_0xf992ef[_0x4e8a9f(0x152)]();}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xc5),async()=>{const _0x116e8d=_0x42b81f;await this[_0x116e8d(0x17d)](),await this[_0x116e8d(0x1f1)]();}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x205),()=>{const _0x4f893e=_0x42b81f;this[_0x4f893e(0x18d)]?.[_0x4f893e(0x12e)](_0xb3c904(this[_0x4f893e(0x137)][_0x4f893e(0x120)],_0x4f893e(0x134)));}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x18e),(_0x15e9ec,_0x341de3)=>{const _0x519bd1=_0x42b81f;this[_0x519bd1(0x18d)]?.[_0x519bd1(0xfb)](Array[_0x519bd1(0xdb)](_0x341de3));}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x1eb),(_0x335f13,_0x46acb1)=>{const _0x12ac38=_0x42b81f;this[_0x12ac38(0x18d)]?.[_0x12ac38(0x1eb)](_0x46acb1);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xe7),(_0x1d193a,_0x5513b1)=>{const _0x26f53c=_0x42b81f;this[_0x26f53c(0x18d)]?.[_0x26f53c(0xe7)](_0x5513b1[_0x26f53c(0xb5)],_0x5513b1[_0x26f53c(0x189)]);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x140),(_0x3dd2c5,_0x3c7763)=>{const _0x3c8de1=_0x42b81f;this[_0x3c8de1(0xd5)](_0x3c7763);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xb1),(_0x209bcd,_0x29c02e)=>{const _0x2d9ee4=_0x42b81f;this[_0x2d9ee4(0x18d)]?.[_0x2d9ee4(0xb1)](_0x29c02e[_0x2d9ee4(0x1cb)],_0x29c02e[_0x2d9ee4(0x196)],_0x29c02e[_0x2d9ee4(0x186)]);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xef),()=>{const _0x407fdc=_0x42b81f;this[_0x407fdc(0xe9)]();}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x210),()=>{const _0x151df7=_0x42b81f;this[_0x151df7(0x16c)]();}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x1df),(_0x2f8a45,_0x39674f)=>{const _0x375f2d=_0x42b81f;this[_0x375f2d(0x18d)]?.[_0x375f2d(0x1c1)](_0x39674f);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x129),(_0x13f48b,{replyId:_0xff4581})=>{const _0x1f0966=_0x42b81f;console[_0x1f0966(0xb6)](_0x1f0966(0x1b2),_0xff4581);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x183),(_0xf8bebe,{replyId:_0x32142e})=>{const _0x284f88=_0x42b81f;console[_0x284f88(0xb6)](_0x284f88(0x10e),_0x32142e);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x1dc),(_0x4dfc98,_0x10b9a6)=>{const _0x1c204c=_0x42b81f;this[_0x1c204c(0x137)][_0x1c204c(0x20b)][_0x1c204c(0xf3)](_0x3b7279)[_0x1c204c(0xc6)](),this[_0x1c204c(0x14f)](_0x10b9a6);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x20a),(_0x59d6e6,{replyId:_0x23ac1f,partIndex:_0x32d918})=>{const _0x2fe390=_0x42b81f;this[_0x2fe390(0x1a4)]=this[_0x2fe390(0x1fb)][_0x2fe390(0x15d)],this[_0x2fe390(0xf5)](_0x23ac1f,_0x32d918);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x1d6),(_0x465fc0,{replyId:_0x3c939c,partIndex:_0xfbe7bf})=>{const _0x78237d=_0x42b81f,_0x2ed629=this[_0x78237d(0xb2)](_0x3c939c,_0xfbe7bf);_0x2ed629&&_0x78237d(0xd3)!=_0x2ed629[_0x78237d(0x190)][_0x78237d(0x11b)][_0x78237d(0x191)]&&this[_0x78237d(0x126)][_0x78237d(0x174)]([_0x2ed629[_0x78237d(0x190)]],_0x78237d(0x13b));}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xe3),()=>{const _0x29c85d=_0x42b81f;this[_0x29c85d(0x126)][_0x29c85d(0x15a)](_0x29c85d(0x13b));}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0x201),(_0x2c1d7b,_0x485927)=>{const _0x7f57e=_0x42b81f;this[_0x7f57e(0x137)][_0x7f57e(0x20b)][_0x7f57e(0xf3)](_0x3b7279)[_0x7f57e(0xc6)](),this[_0x7f57e(0x121)](_0x485927);}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xcf),async(_0x21b545,{replyId:_0x1ae5a2,showDiff:_0x5cc7a3})=>{const _0x18d3b8=_0x42b81f,{reply:_0x37c3b3}=this[_0x18d3b8(0xc4)](_0x1ae5a2),_0x32a6f3=_0x37c3b3[_0x18d3b8(0xe5)]({'showDiff':_0x5cc7a3});await this[_0x18d3b8(0x1fb)][_0x18d3b8(0x113)]({'id':_0x37c3b3['id'],'parts':_0x32a6f3,'renderingStrategy':_0x18d3b8(0x131)});}),this[_0x42b81f(0x14c)](this[_0x42b81f(0x1fb)],_0x42b81f(0xd6),(_0x290f6e,{replyId:_0x756e2c,partIndex:_0x381ffd})=>{const _0x164c71=_0x42b81f;this[_0x164c71(0x157)]?.[_0x164c71(0xce)]==_0x756e2c&&this[_0x164c71(0x157)]?.[_0x164c71(0x1d3)]==_0x381ffd&&this[_0x164c71(0x137)][_0x164c71(0x20b)][_0x164c71(0xf3)](_0x3b7279)[_0x164c71(0xc6)]();const {reply:_0x319b9d}=this[_0x164c71(0xc4)](_0x756e2c);_0x319b9d[_0x164c71(0xf7)](_0x381ffd,_0x164c71(0x16e)),this[_0x164c71(0x126)][_0x164c71(0x15a)](_0x164c71(0x13b));});}async[_0x316803(0x128)](){const _0x2efcda=_0x316803;this[_0x2efcda(0x137)]instanceof _0x7dca67?this[_0x2efcda(0x1c3)](this[_0x2efcda(0x137)]):this[_0x2efcda(0x14c)](this[_0x2efcda(0x137)][_0x2efcda(0x105)],_0x2efcda(0x1d0),(_0x395f93,_0x36273a)=>{const _0x38c928=_0x2efcda;_0x36273a['on'](_0x38c928(0x1de),()=>{const _0x4178a1=_0x38c928;this[_0x4178a1(0x1c3)](_0x36273a);});}),await this[_0x2efcda(0x14e)]();}[_0x316803(0x14f)](_0x433b50){const _0x1c55a3=_0x316803,_0x4a79b3=_0x3a18a5(this[_0x1c55a3(0x137)]);if(!_0x4a79b3[_0x1c55a3(0x20b)][_0x1c55a3(0x1cc)](_0x1c55a3(0xbe)))throw new _0x321c9c(_0x1c55a3(0x17b),null);const _0x26bfc3=this[_0x1c55a3(0x137)][_0x1c55a3(0x20b)][_0x1c55a3(0xf3)](_0x1c55a3(0x1e9)),{reply:_0x3a06fa,interaction:_0x2025e9}=this[_0x1c55a3(0xc4)](_0x433b50[_0x1c55a3(0xce)]),_0x5122bc=this[_0x1c55a3(0xb2)](_0x433b50[_0x1c55a3(0xce)],_0x433b50[_0x1c55a3(0x1d3)]),_0x35cd52=void 0x0!==_0x433b50[_0x1c55a3(0x1d3)]?[_0x3a06fa[_0x1c55a3(0x135)][_0x433b50[_0x1c55a3(0x1d3)]]]:_0x3a06fa[_0x1c55a3(0x135)][_0x1c55a3(0x1a7)](_0x55cce1=>_0x1c55a3(0x20d)==_0x55cce1[_0x1c55a3(0xb9)]),_0x126514=_0x35cd52[_0x1c55a3(0x1b3)](_0x38d374=>_0x3a06fa[_0x1c55a3(0x135)][_0x1c55a3(0x112)](_0x38d374));if(!_0x5122bc||_0x1c55a3(0xd3)==_0x5122bc[_0x1c55a3(0x190)][_0x1c55a3(0x11b)][_0x1c55a3(0x191)])return void _0x126514[_0x1c55a3(0x119)](_0x5aec32=>_0x3a06fa[_0x1c55a3(0xf7)](_0x5aec32,_0x1c55a3(0xcd)));_0x126514[_0x1c55a3(0x119)](_0x551df9=>_0x3a06fa[_0x1c55a3(0xf7)](_0x551df9,_0x1c55a3(0x122)));const _0x3cca9d=_0x3c839e({'editor':_0x4a79b3,'reply':_0x3a06fa,'interaction':_0x2025e9,'groups':_0x35cd52,'transform':!0x0,'documentCompare':_0x26bfc3,'documentCompareOptions':{'anchor':_0x1c55a3(0xb8),'markDeletions':!0x0}});let _0x5254bc;_0x5122bc&&this[_0x1c55a3(0x16b)](_0x5122bc[_0x1c55a3(0x190)]),_0x4a79b3[_0x1c55a3(0x141)][_0x1c55a3(0x1f2)](_0x35468b=>{const _0x58b0b6=_0x1c55a3;_0x5254bc=_0x35468b[_0x58b0b6(0x1a6)],_0x4a79b3[_0x58b0b6(0x20b)][_0x58b0b6(0xf3)](_0x58b0b6(0x13f))[_0x58b0b6(0x12d)](_0x3cca9d),this[_0x58b0b6(0x126)][_0x58b0b6(0x15a)](_0x58b0b6(0x13b));}),this[_0x1c55a3(0x164)][_0x1c55a3(0x171)](_0x5254bc,{'interactionId':_0x2025e9['id'],'replyId':_0x3a06fa['id'],'indexes':_0x126514[_0x1c55a3(0x175)]()}),this[_0x1c55a3(0x159)](_0x3a06fa);}[_0x316803(0x121)](_0x514459){const _0x27f6f8=_0x316803,_0x4771ea=_0x3a18a5(this[_0x27f6f8(0x137)]),_0x52a014=this[_0x27f6f8(0x137)][_0x27f6f8(0x20b)][_0x27f6f8(0xf3)](_0x334543),{reply:_0x3f2c6f,interaction:_0x53b921}=this[_0x27f6f8(0xc4)](_0x514459[_0x27f6f8(0xce)]),_0xb7f90b=this[_0x27f6f8(0xb2)](_0x514459[_0x27f6f8(0xce)],_0x514459[_0x27f6f8(0x1d3)]),_0x49a134=void 0x0!==_0x514459[_0x27f6f8(0x1d3)]?[_0x3f2c6f[_0x27f6f8(0x135)][_0x514459[_0x27f6f8(0x1d3)]]]:_0x3f2c6f[_0x27f6f8(0x135)][_0x27f6f8(0x1a7)](_0x461000=>_0x27f6f8(0x20d)==_0x461000[_0x27f6f8(0xb9)]),_0x1ad115=_0x49a134[_0x27f6f8(0x1b3)](_0x103715=>_0x3f2c6f[_0x27f6f8(0x135)][_0x27f6f8(0x112)](_0x103715));if(!_0xb7f90b||_0x27f6f8(0xd3)==_0xb7f90b[_0x27f6f8(0x190)][_0x27f6f8(0x11b)][_0x27f6f8(0x191)])return void _0x1ad115[_0x27f6f8(0x119)](_0x14e4b2=>_0x3f2c6f[_0x27f6f8(0xf7)](_0x14e4b2,_0x27f6f8(0xcd)));_0x1ad115[_0x27f6f8(0x119)](_0x53e769=>_0x3f2c6f[_0x27f6f8(0xf7)](_0x53e769,_0x27f6f8(0x122)));const _0x5349b0=_0x3c839e({'editor':_0x4771ea,'reply':_0x3f2c6f,'interaction':_0x53b921,'groups':_0x49a134,'transform':!0x0,'documentCompare':_0x52a014,'documentCompareOptions':{'anchor':_0x27f6f8(0xb8),'markDeletions':!0x1}});let _0x2b2181;_0xb7f90b&&this[_0x27f6f8(0x16b)](_0xb7f90b[_0x27f6f8(0x190)]),_0x4771ea[_0x27f6f8(0x141)][_0x27f6f8(0x1f2)](_0x5d47bd=>{const _0x1e84a1=_0x27f6f8;_0x2b2181=_0x5d47bd[_0x1e84a1(0x1a6)];for(const _0x3f32ab of _0x5349b0)_0x3f32ab[_0x1e84a1(0x153)]=_0x4771ea[_0x1e84a1(0x141)][_0x1e84a1(0x1b4)][_0x1e84a1(0x199)],_0x2688ec(_0x4771ea,_0x3f32ab),_0x5d47bd[_0x1e84a1(0x1a6)][_0x1e84a1(0xd8)](_0x3f32ab),_0x4771ea[_0x1e84a1(0x141)][_0x1e84a1(0x1a0)](_0x3f32ab);}),this[_0x27f6f8(0x164)][_0x27f6f8(0x171)](_0x2b2181,{'interactionId':_0x53b921['id'],'replyId':_0x3f2c6f['id'],'indexes':_0x1ad115[_0x27f6f8(0x175)]()}),this[_0x27f6f8(0x159)](_0x3f2c6f);}[_0x316803(0xf5)](_0x57e905,_0x58c86c){const _0x5dbb46=_0x316803,_0x378d19=_0x3a18a5(this[_0x5dbb46(0x137)]),_0x3a1bb2=this[_0x5dbb46(0xb2)](_0x57e905,_0x58c86c),_0x49c4d1=this[_0x5dbb46(0x137)][_0x5dbb46(0x20b)][_0x5dbb46(0xf3)](_0x3b7279);if(!_0x3a1bb2)return void _0x49c4d1[_0x5dbb46(0xc6)]();const {range:_0x1179a9,currentIndex:_0x20bfe6}=_0x3a1bb2;if(_0x5dbb46(0xd3)==_0x1179a9[_0x5dbb46(0x11b)][_0x5dbb46(0x191)]){const {reply:_0x2c44ca}=this[_0x5dbb46(0xc4)](_0x57e905);return _0x2c44ca[_0x5dbb46(0xf7)](_0x20bfe6,_0x5dbb46(0xcd)),void _0x49c4d1[_0x5dbb46(0xc6)]();}if(this[_0x5dbb46(0x157)]?.[_0x5dbb46(0xce)]==_0x57e905&&this[_0x5dbb46(0x157)]?.[_0x5dbb46(0x1d3)]==_0x20bfe6)return;this[_0x5dbb46(0x103)](_0x49c4d1),this[_0x5dbb46(0x157)]={'replyId':_0x57e905,'partIndex':_0x20bfe6};let _0x36acdc=_0x378d19[_0x5dbb46(0x124)][_0x5dbb46(0xf3)](_0x5dbb46(0xed))||[..._0x2e1736];_0x378d19[_0x5dbb46(0x20b)][_0x5dbb46(0x1cc)](_0x5dbb46(0xbe))||(_0x36acdc=_0x36acdc[_0x5dbb46(0x1a7)](_0x27f77c=>_0x5dbb46(0x1dc)!=_0x27f77c));const _0x54d9ac=new _0x4b554b(_0x378d19[_0x5dbb46(0x120)],{'showDiff':this[_0x5dbb46(0x1a4)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x5dbb46(0x149)},'hideHeader':!0x0,'availableActions':_0x36acdc});this[_0x5dbb46(0x103)](_0x54d9ac);const {reply:_0x4a292a}=this[_0x5dbb46(0xc4)](_0x57e905),_0x4ddeb9=_0x4a292a[_0x5dbb46(0xe5)]({'showDiff':this[_0x5dbb46(0x1a4)]})[_0x5dbb46(0x1a7)](_0x3aac6b=>_0x3aac6b[_0x5dbb46(0xba)]),_0x95f0ff=_0x4ddeb9[_0x5dbb46(0x1ee)](_0x115270=>_0x115270[_0x5dbb46(0x146)]==_0x20bfe6);if(-0x1==_0x95f0ff)return;const _0x38581a=_0x4ddeb9[_0x95f0ff],_0x1910cb=_0x4ddeb9['at']((_0x95f0ff-0x1)%_0x4ddeb9[_0x5dbb46(0x18c)])?.[_0x5dbb46(0x146)],_0x260f86=_0x4ddeb9['at']((_0x95f0ff+0x1)%_0x4ddeb9[_0x5dbb46(0x18c)])?.[_0x5dbb46(0x146)];_0x54d9ac[_0x5dbb46(0x188)]({'parts':[_0x38581a],'renderingStrategy':_0x5dbb46(0x131)});const _0x5cd224=_0x20bfe6!==_0x1910cb;this[_0x5dbb46(0x16b)](_0x1179a9,!0x0),_0x49c4d1[_0x5dbb46(0x200)]({'index':_0x20bfe6,'title':_0xb3c904(this[_0x5dbb46(0x137)][_0x5dbb46(0x120)],_0x5dbb46(0x1c8),(_0x95f0ff+0x1)[_0x5dbb46(0x162)]()),'icon':_0x586ed1,'mainView':_0x54d9ac,'showRotator':_0x5cd224,'showApplyButton':!0x0,'showSuggestButton':_0x378d19[_0x5dbb46(0x20b)][_0x5dbb46(0x1cc)](_0x5dbb46(0xbe)),'ranges':[_0x1179a9]}),this[_0x5dbb46(0x1fb)][_0x5dbb46(0xe1)](_0x57e905,_0x20bfe6),this[_0x5dbb46(0x14c)](_0x54d9ac,_0x5dbb46(0xcf),(_0x30b45d,{showDiff:_0x1f9969})=>{const _0x6f9456=_0x5dbb46;this[_0x6f9456(0x1a4)]=_0x1f9969;const {reply:_0x329c7f}=this[_0x6f9456(0xc4)](_0x57e905),_0x2a78c6=_0x329c7f[_0x6f9456(0xe5)]({'showDiff':_0x1f9969,'groupIndex':_0x20bfe6});_0x54d9ac[_0x6f9456(0x188)]({'parts':_0x2a78c6,'renderingStrategy':_0x6f9456(0x131)});}),this[_0x5dbb46(0x14c)](_0x49c4d1,_0x5dbb46(0x201),()=>{const _0xcd8e9c=_0x5dbb46;this[_0xcd8e9c(0x121)]({'replyId':_0x57e905,'partIndex':_0x20bfe6}),_0x5cd224?this[_0xcd8e9c(0xf5)](_0x57e905,_0x260f86):_0x49c4d1[_0xcd8e9c(0xc6)]();}),this[_0x5dbb46(0x14c)](_0x49c4d1,_0x5dbb46(0x1dc),()=>{const _0x319405=_0x5dbb46;this[_0x319405(0x14f)]({'replyId':_0x57e905,'partIndex':_0x20bfe6}),_0x5cd224?this[_0x319405(0xf5)](_0x57e905,_0x260f86):_0x49c4d1[_0x319405(0xc6)]();}),_0x5cd224&&(this[_0x5dbb46(0x14c)](_0x49c4d1,_0x5dbb46(0x193),()=>{const _0x40ff9e=_0x5dbb46;this[_0x40ff9e(0xf5)](_0x57e905,_0x260f86);}),this[_0x5dbb46(0x14c)](_0x49c4d1,_0x5dbb46(0xf8),()=>{const _0x34415b=_0x5dbb46;this[_0x34415b(0xf5)](_0x57e905,_0x1910cb);})),this[_0x5dbb46(0x14c)](_0x49c4d1,_0x5dbb46(0x11d),()=>{const _0x3609c8=_0x5dbb46;this[_0x3609c8(0x103)](_0x49c4d1),this[_0x3609c8(0x103)](_0x54d9ac),this[_0x3609c8(0x157)]=null;});}[_0x316803(0xb2)](_0x58692e,_0x4457a4){const _0x1018f7=_0x316803,_0x18a2d3=_0x3a18a5(this[_0x1018f7(0x137)]),{reply:_0x279712,interaction:_0x530810}=this[_0x1018f7(0xc4)](_0x58692e),_0xce11e3=_0x279712[_0x1018f7(0x135)][_0x1018f7(0x1a7)](_0x5cfcd4=>_0x1018f7(0x20d)==_0x5cfcd4[_0x1018f7(0xb9)]),_0x4a8e12=_0xce11e3[_0x1018f7(0x1b3)](_0x2f4039=>_0x279712[_0x1018f7(0x135)][_0x1018f7(0x112)](_0x2f4039));void 0x0===_0x4457a4&&(_0x4457a4=_0x4a8e12[0x0]);const _0x54d169=_0x4a8e12[_0x1018f7(0x112)](_0x4457a4);if(-0x1==_0x54d169)return null;const _0x2e1574=_0xce11e3[_0x54d169],_0xea394d=new _0x9c5f3f([]),_0x173e42=new _0x9c5f3f([]);for(const _0xe4c0f0 of _0x2e1574[_0x1018f7(0xf2)])if(_0x1018f7(0x1f0)!=_0xe4c0f0[_0x1018f7(0x1ed)]&&_0x173e42[_0x1018f7(0xc7)][_0x1018f7(0x12c)](_0xe4c0f0[_0x1018f7(0xc8)][_0x1018f7(0x1b8)](!0x0)),_0x1018f7(0x1b5)!=_0xe4c0f0[_0x1018f7(0x1ed)]){const _0x3dd45d=_0x327d91(_0x5e622f=>_0x51989f(_0x5e622f,_0x1018f7(0xda))==_0xe4c0f0['id'],_0x279712[_0x1018f7(0x156)],!0x0);_0xea394d[_0x1018f7(0xc7)][_0x1018f7(0x12c)](_0x3dd45d[_0x1018f7(0x1b8)](!0x0));}if(0x0==_0xea394d[_0x1018f7(0xc7)][_0x1018f7(0x18c)]){if(_0x2e1574[_0x1018f7(0xf2)][0x0][_0x1018f7(0x154)]){const _0x594d54=_0x2f0654(_0x1018f7(0xda),_0x2e1574[_0x1018f7(0xf2)][0x0][_0x1018f7(0x154)],_0x279712[_0x1018f7(0x156)]);_0xea394d[_0x1018f7(0xc7)][_0x1018f7(0x139)](_0x594d54[_0x1018f7(0x1b8)](!0x0)),_0x173e42[_0x1018f7(0xc7)][_0x1018f7(0x139)](_0x594d54[_0x1018f7(0x1b8)](!0x0)),_0x594d54[_0x1018f7(0x1cf)]&&(_0xea394d[_0x1018f7(0xc7)][_0x1018f7(0x12c)](_0x594d54[_0x1018f7(0x1cf)][_0x1018f7(0x1b8)](!0x0)),_0x173e42[_0x1018f7(0xc7)][_0x1018f7(0x12c)](_0x594d54[_0x1018f7(0x1cf)][_0x1018f7(0x1b8)](!0x0)));}else{const _0x1423c2=_0x279712[_0x1018f7(0x156)][_0x1018f7(0xc7)][0x0];if(!_0x1423c2)return null;_0xea394d[_0x1018f7(0xc7)][_0x1018f7(0x12c)](_0x1423c2[_0x1018f7(0x1b8)](!0x0)),_0x173e42[_0x1018f7(0xc7)][_0x1018f7(0x12c)](_0x1423c2[_0x1018f7(0x1b8)](!0x0));}}const _0x739beb=_0x530810[_0x1018f7(0x1fa)](),_0x247612=_0x18a2d3[_0x1018f7(0xbc)][_0x1018f7(0x1f4)](_0x739beb[_0x1018f7(0x204)]),_0x39b38b=_0x4f403c(_0xea394d),_0xc2e765=_0x18a2d3[_0x1018f7(0xbc)][_0x1018f7(0x1f4)](_0x39b38b),_0x54b5b5=_0x18a2d3[_0x1018f7(0xbc)][_0x1018f7(0x1f4)](_0x39b38b),_0x19ff07=_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x111)](_0xc2e765,0x0),_0x3e1755=_0x4f403c(_0x173e42),_0x15aab9={'anchor':_0x19ff07,'markDeletions':!0x1},_0x1c6ad3=_0x18a2d3[_0x1018f7(0x20b)][_0x1018f7(0xf3)](_0x334543)[_0x1018f7(0x1d9)](_0x39b38b,_0x3e1755,_0x15aab9)[_0x1018f7(0x148)]();if(!_0x1c6ad3[_0x1018f7(0x18c)])return null;_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x1f2)](_0x550796=>{const _0x2c2330=_0x1018f7;for(const _0xa4facf of _0x1c6ad3)if(_0x2c2330(0xea)==_0xa4facf[_0x2c2330(0x1ed)]){const _0x3815db=_0xa4facf[_0x2c2330(0x1bc)],_0x1362de=_0xa4facf[_0x2c2330(0x1a1)],_0x14e58c=new _0x3003e9(_0x3815db,_0x1362de);_0x550796[_0x2c2330(0x1a6)][_0x2c2330(0xd8)](_0x14e58c),_0x18a2d3[_0x2c2330(0x141)][_0x2c2330(0x1a0)](_0x14e58c);}else _0x2c2330(0x167)!==_0xa4facf[_0x2c2330(0x1ed)]&&(_0xa4facf[_0x2c2330(0x153)]=null,_0xa4facf[_0x2c2330(0xc1)]=!0x1,_0x550796[_0x2c2330(0x1a6)][_0x2c2330(0xd8)](_0xa4facf),_0x18a2d3[_0x2c2330(0x141)][_0x2c2330(0x1a0)](_0xa4facf));});const _0x3f5181=_0x30c20c(_0x18a2d3,_0x1c6ad3,_0xc2e765);_0x127042(_0x18a2d3[_0x1018f7(0x141)],_0x3f5181);const _0x2bcdcb=_0x3f5181[_0x1018f7(0xbb)]()[_0x1018f7(0x1e7)][_0x1018f7(0xec)][_0x1018f7(0x175)](),_0x1556ae=_0x3f5181[_0x1018f7(0xbb)]()[_0x1018f7(0x127)][_0x1018f7(0xec)][_0x1018f7(0x175)](),_0x57549f=[];let _0x30c0fb=_0xc2e765,_0x1cd3fe=_0x54b5b5;for(let _0x597e8a=0x0;_0x597e8a<_0x1556ae[_0x1018f7(0x18c)];_0x597e8a++){const _0x131c0=_0x30c0fb[_0x1018f7(0x1c2)]-_0x1556ae[_0x597e8a];_0x57549f[_0x597e8a]=_0x1cd3fe[_0x1018f7(0x1c2)]-_0x131c0,_0x30c0fb=_0x30c0fb[_0x1018f7(0x104)](_0x1556ae[_0x597e8a]),_0x1cd3fe=_0x1cd3fe[_0x1018f7(0x104)](_0x57549f[_0x597e8a]);}const _0x455c17=_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x1c0)](_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x13a)](_0x54b5b5,_0x2bcdcb),_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x13a)](_0x54b5b5,_0x57549f)),_0xb3fe01=_0x54b5b5[_0x1018f7(0xb7)](0x0)[_0x1018f7(0x207)](_0x2849b9),_0x1c7a3a=Array[_0x1018f7(0xdb)](_0x247612[_0x1018f7(0x15e)]())[_0x1018f7(0x1f6)](_0x21451a=>_0x21451a[_0x1018f7(0x207)](_0x2849b9)==_0xb3fe01)[_0x1018f7(0x108)](),_0x14d653=_0x455c17[_0x1018f7(0x1e7)][_0x1018f7(0xec)][_0x1018f7(0x175)](),_0x28ac2c=_0x455c17[_0x1018f7(0x127)][_0x1018f7(0xec)][_0x1018f7(0x175)]();_0x14d653[0x0]=_0x1c7a3a[0x0]+_0x14d653[0x0],_0x28ac2c[0x0]=_0x1c7a3a[0x0]+_0x28ac2c[0x0];let _0x2d39c5=_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x1c0)](_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x13a)](_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x1b4)][_0x1018f7(0x1d8)](),_0x14d653),_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x13a)](_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x1b4)][_0x1018f7(0x1d8)](),_0x28ac2c));const _0x2196c6=_0x18a2d3[_0x1018f7(0x141)][_0x1018f7(0x1b4)][_0x1018f7(0x15f)][_0x1018f7(0x148)](_0x739beb[_0x1018f7(0x199)]);for(const _0x5bfc08 of _0x2196c6)_0x2d39c5=_0x293d09[_0x1018f7(0xfa)](_0x2d39c5[_0x1018f7(0xc0)](_0x5bfc08));return{'range':_0x2d39c5,'currentIndex':_0x4457a4};}[_0x316803(0x1c3)](_0x2192b0){const _0x46ee18=_0x316803;if(!_0x2192b0[_0x46ee18(0x20b)][_0x46ee18(0x1cc)](_0x46ee18(0x14a)))return;const _0x8d2860=_0x2192b0[_0x46ee18(0x206)][_0x46ee18(0xf3)](_0x46ee18(0x14d)),_0xff44f2=_0x2192b0[_0x46ee18(0x206)][_0x46ee18(0xf3)](_0x46ee18(0x133));this[_0x46ee18(0x14c)](_0x8d2860,_0x46ee18(0x151),(_0x292a57,_0x24c46b,_0x2a8c81)=>{const _0x1e24ec=_0x46ee18,_0x1827a0=this[_0x1e24ec(0x164)][_0x1e24ec(0xf3)](_0x24c46b);if(!_0x1827a0)return;const _0x2b3660=this[_0x1e24ec(0x18d)][_0x1e24ec(0x1ac)](_0x1827a0[_0x1e24ec(0x20f)])[_0x1e24ec(0xbf)](_0x1827a0[_0x1e24ec(0xce)]);_0x1827a0[_0x1e24ec(0xca)][_0x1e24ec(0x119)](_0x605600=>_0x2b3660[_0x1e24ec(0xf7)](_0x605600,_0x1e24ec(0x20d))),this[_0x1e24ec(0x164)][_0x1e24ec(0x1aa)](_0x24c46b),this[_0x1e24ec(0x164)][_0x1e24ec(0x171)](_0x2a8c81,_0x1827a0);}),this[_0x46ee18(0x14c)](_0xff44f2,_0x46ee18(0x151),(_0x5e2c9f,_0x7285fd,_0x525590)=>{const _0x242f84=_0x46ee18,_0x18a4e8=this[_0x242f84(0x164)][_0x242f84(0xf3)](_0x7285fd);if(!_0x18a4e8)return;const _0x2fbc9c=this[_0x242f84(0x18d)][_0x242f84(0x1ac)](_0x18a4e8[_0x242f84(0x20f)])[_0x242f84(0xbf)](_0x18a4e8[_0x242f84(0xce)]);_0x18a4e8[_0x242f84(0xca)][_0x242f84(0x119)](_0x45e9e6=>_0x2fbc9c[_0x242f84(0xf7)](_0x45e9e6,_0x242f84(0x122))),this[_0x242f84(0x164)][_0x242f84(0x1aa)](_0x7285fd),this[_0x242f84(0x164)][_0x242f84(0x171)](_0x525590,_0x18a4e8);});}async[_0x316803(0xe6)](_0x276366){const _0x19384b=_0x316803;this[_0x19384b(0x137)][_0x19384b(0x20b)][_0x19384b(0xf3)](_0x3b7279)[_0x19384b(0xc6)](),this[_0x19384b(0x1fb)][_0x19384b(0xc3)](_0x19384b(0x131)),this[_0x19384b(0x1fb)][_0x19384b(0x165)](!0x0),await this[_0x19384b(0x17d)]();try{const _0x2b61d9=this[_0x19384b(0x137)][_0x19384b(0x20b)][_0x19384b(0xf3)](_0xf5ec44);this[_0x19384b(0x10f)]('\x20'),_0x2b61d9[_0x19384b(0x17f)][_0x19384b(0xd4)](_0x19384b(0x1b1)),await this[_0x19384b(0x14e)](_0x276366);const {sessionId:_0x4c99e5}=this[_0x19384b(0x126)][_0x19384b(0x117)]();await this[_0x19384b(0x18d)][_0x19384b(0xe0)](_0x276366,_0x4c99e5),this[_0x19384b(0x18d)][_0x19384b(0x1fc)]()&&this[_0x19384b(0x18d)][_0x19384b(0x12e)](_0xb3c904(this[_0x19384b(0x137)][_0x19384b(0x120)],_0x19384b(0x134)));}catch(_0x3bdbea){console[_0x19384b(0xd9)](_0x19384b(0x177),_0x3bdbea);}finally{this[_0x19384b(0x1fb)][_0x19384b(0x1ef)](),this[_0x19384b(0x1fb)][_0x19384b(0xc3)](_0x19384b(0x147)),this[_0x19384b(0x1fb)][_0x19384b(0x165)](!0x1);}}[_0x316803(0x1e5)](_0x448431){const _0x58044a=_0x316803;this[_0x58044a(0x18d)]['id']===_0x448431&&this[_0x58044a(0x14e)]();}async[_0x316803(0x1c4)](){const _0x3ba830=_0x316803,_0x3a6498=this[_0x3ba830(0x126)][_0x3ba830(0xd7)]();this[_0x3ba830(0x18d)]?.[_0x3ba830(0x1e1)](_0x3a6498),this[_0x3ba830(0x18d)]?.[_0x3ba830(0x12e)](_0xb3c904(this[_0x3ba830(0x137)][_0x3ba830(0x120)],_0x3ba830(0x134)));}[_0x316803(0x10c)](){const _0x2c7957=_0x316803;this[_0x2c7957(0x18d)]?.[_0x2c7957(0x20e)]();}[_0x316803(0x102)](){const _0xb9a0a7=_0x316803;this[_0xb9a0a7(0x1fb)][_0xb9a0a7(0x102)]();}async[_0x316803(0xdd)](){const _0x16286f=_0x316803;await this[_0x16286f(0x14e)]();}async[_0x316803(0x17c)]({message:_0x2ea791,quickActionData:_0x1f63bf}){const _0x16ed13=_0x316803;await this[_0x16ed13(0x143)]({'userMessage':_0x2ea791,'quickActionData':_0x1f63bf});}[_0x316803(0x11c)](){const _0x3585f6=_0x316803,_0x46c61c=this[_0x3585f6(0x137)][_0x3585f6(0x124)][_0x3585f6(0xf3)](_0x3585f6(0x1ae));if(!_0x46c61c)throw new _0x321c9c(_0x3585f6(0x1c6),this);return _0x46c61c;}async[_0x316803(0x14e)](_0x50bc84){const _0x2381b0=_0x316803;try{this[_0x2381b0(0x1fb)][_0x2381b0(0xe2)](),await this[_0x2381b0(0x110)](_0x50bc84);}catch(_0x49ee82){_0x704787(_0x2381b0(0x1ec),_0x49ee82),this[_0x2381b0(0x18d)]=void 0x0,this[_0x2381b0(0x1fb)][_0x2381b0(0x163)]();}}async[_0x316803(0x110)](_0x1c7c2e){const _0x5a6f65=_0x316803,_0x56ead9=this[_0x5a6f65(0x137)][_0x5a6f65(0x20b)][_0x5a6f65(0xf3)](_0x3b7279);let _0x2c7abb;_0x56ead9[_0x5a6f65(0x19f)]&&_0x56ead9[_0x5a6f65(0xc6)](),_0x1c7c2e||!this[_0x5a6f65(0x18d)]?_0x2c7abb=this[_0x5a6f65(0x137)][_0x5a6f65(0x124)][_0x5a6f65(0xf3)](_0x5a6f65(0xeb)):this[_0x5a6f65(0x1fb)][_0x5a6f65(0x16a)]&&(_0x2c7abb=this[_0x5a6f65(0x18d)][_0x5a6f65(0x1f9)]['id']),await this[_0x5a6f65(0x17d)]();const _0x1cf512=this[_0x5a6f65(0x11c)](),_0x23c6da=_0x1c7c2e||_0x5473e9();this[_0x5a6f65(0x18d)]=new _0x25ae50({'connector':this[_0x5a6f65(0x1ab)],'chatModels':this[_0x5a6f65(0xdc)],'selectedModelId':_0x2c7abb,'conversationId':_0x23c6da,'group':_0x1cf512,'getEditor':()=>_0x3a18a5(this[_0x5a6f65(0x137)])}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x208),(_0x48fd26,_0x2d473d)=>{const _0x4947a4=_0x5a6f65;this[_0x4947a4(0x1fb)][_0x4947a4(0x109)](_0x2d473d),this[_0x4947a4(0x1fb)][_0x4947a4(0x194)](),this[_0x4947a4(0x1fb)][_0x4947a4(0x169)](),this[_0x4947a4(0x1fb)][_0x4947a4(0x195)](),_0x1c7c2e||(this[_0x4947a4(0x1fb)][_0x4947a4(0x1e2)](),this[_0x4947a4(0x18d)]?.[_0x4947a4(0x12e)](_0xb3c904(this[_0x4947a4(0x137)][_0x4947a4(0x120)],_0x4947a4(0x134))));}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1ad),(_0x5684b0,_0x4b27e8)=>{const _0x4479f2=_0x5a6f65;this[_0x4479f2(0x1fb)][_0x4479f2(0x1ce)](_0x4b27e8[_0x4479f2(0xde)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x16d),(_0x5d6b4a,_0x1fad0a)=>{const _0x38a1cd=_0x5a6f65;this[_0x38a1cd(0x1fb)][_0x38a1cd(0x1cd)](_0x1fad0a);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1af),()=>{const _0x1fac9e=_0x5a6f65;this[_0x1fac9e(0x1fb)][_0x1fac9e(0x1f5)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x20c),()=>{const _0x33b711=_0x5a6f65;this[_0x33b711(0x1fb)][_0x33b711(0x1f5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x100),(_0x1db061,_0x566271)=>{const _0x1e0304=_0x5a6f65;this[_0x1e0304(0x1fb)][_0x1e0304(0x12a)](_0x566271,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0xf1),(_0x34af37,_0x314acc)=>{const _0x1abca0=_0x5a6f65;this[_0x1abca0(0x1fb)][_0x1abca0(0x12a)](_0x314acc,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1e4),()=>{const _0x28fbd7=_0x5a6f65;this[_0x28fbd7(0x1fb)][_0x28fbd7(0x176)]();}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1b6),async()=>{const _0xc363e5=_0x5a6f65;await this[_0xc363e5(0x1fb)][_0xc363e5(0xf4)]();}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x182),(_0x2110f4,_0x277fef)=>{const _0x3ec056=_0x5a6f65;this[_0x3ec056(0x1fb)][_0x3ec056(0x12f)](_0x277fef['id']);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1da),(_0x56b347,_0x5467e6,_0x3c7a5b)=>{const _0x4ec1d2=_0x5a6f65;this[_0x4ec1d2(0x10f)](_0x5467e6,_0x3c7a5b);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1ba),(_0x6acf2,_0x4e7ab6)=>{const _0x1a0a70=_0x5a6f65;_0x1a0a70(0xe8)===_0x4e7ab6[_0x1a0a70(0x1ed)]?this[_0x1a0a70(0x1fb)][_0x1a0a70(0x10d)](_0x4e7ab6):this[_0x1a0a70(0x1fb)][_0x1a0a70(0x1c5)](_0x4e7ab6);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x138),async(_0x284d54,_0x48ded5)=>{const _0x572c8f=_0x5a6f65;await this[_0x572c8f(0x1dd)]({'reply':_0x48ded5});}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1f7),(_0x1c3e79,{reply:_0x419254,index:_0x40d64c,state:_0x221907})=>{const _0x4b2e99=_0x5a6f65;this[_0x4b2e99(0x1fb)][_0x4b2e99(0x166)]({'id':_0x419254['id'],'index':_0x40d64c,'state':_0x221907});}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x116),(_0x4c8c49,_0x205690)=>{const _0x2c5217=_0x5a6f65;if(this[_0x2c5217(0x1fb)][_0x2c5217(0xd0)](_0x205690[_0x2c5217(0x17e)],_0x205690[_0x2c5217(0x1e3)]),_0x2c5217(0x1d5)===_0x205690[_0x2c5217(0x17e)][_0x2c5217(0x1ed)]){const _0x2a1661=[..._0x3a18a5(this[_0x2c5217(0x137)])[_0x2c5217(0x141)][_0x2c5217(0x1b4)][_0x2c5217(0x1d5)][_0x2c5217(0x180)]()];this[_0x2c5217(0x126)][_0x2c5217(0x174)](_0x2a1661,_0x2c5217(0x10b)+this[_0x2c5217(0x18d)]?.['id']);}}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x209),(_0x1d6cc1,_0x50aa21)=>{const _0x4edd1f=_0x5a6f65;this[_0x4edd1f(0x1fb)][_0x4edd1f(0x140)](_0x50aa21[_0x4edd1f(0x1be)]),_0x4edd1f(0x202)==_0x50aa21[_0x4edd1f(0x1be)]&&this[_0x4edd1f(0x10c)](),_0x4edd1f(0x1d5)===_0x50aa21[_0x4edd1f(0x1ed)]&&this[_0x4edd1f(0x126)][_0x4edd1f(0x15a)](_0x4edd1f(0x10b)+this[_0x4edd1f(0x18d)]?.['id']);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0xdf),(_0x184440,_0x32d732)=>{const _0x3fea73=_0x5a6f65;this[_0x3fea73(0x1fb)][_0x3fea73(0x1ea)](_0x32d732[_0x3fea73(0x17e)][_0x3fea73(0x1be)],_0x32d732[_0x3fea73(0x1e3)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1d7),(_0x167361,_0x1b5a81)=>{const _0x5d059c=_0x5a6f65;this[_0x5d059c(0x1fb)][_0x5d059c(0x1a5)](_0x1b5a81[_0x5d059c(0x10a)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x1e6),(_0x16c859,_0x53ddce)=>{const _0x60e75=_0x5a6f65;this[_0x60e75(0x1fb)][_0x60e75(0x1b7)](_0x53ddce[_0x60e75(0x150)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x115),(_0x54dae1,_0x503c1a)=>{const _0x4f834c=_0x5a6f65;this[_0x4f834c(0x1fb)][_0x4f834c(0x18f)](_0x503c1a[_0x4f834c(0x1cb)],_0x503c1a[_0x4f834c(0xb5)],_0x503c1a[_0x4f834c(0x18b)],_0x503c1a[_0x4f834c(0x186)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0x114),(_0x52a167,_0x59efff)=>{const _0x580a51=_0x5a6f65;this[_0x580a51(0x1fb)][_0x580a51(0x15b)](_0x59efff[_0x580a51(0x1cb)],_0x59efff[_0x580a51(0x1a3)],_0x59efff[_0x580a51(0x14b)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0xcc),(_0x6278d7,_0x58a5db)=>{const _0xf8f368=_0x5a6f65;this[_0xf8f368(0x1fb)][_0xf8f368(0xfc)](_0x58a5db);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0xff),(_0x5597cd,_0x245d29)=>{const _0x29fff5=_0x5a6f65;this[_0x29fff5(0x1fb)][_0x29fff5(0x1bd)](_0x245d29[_0x29fff5(0x1f9)],_0x245d29[_0x29fff5(0x1e0)]);}),this[_0x5a6f65(0x18d)]['on'](_0x5a6f65(0xd9),(_0x1fe6d3,{error:_0x3c700f,interactionId:_0x199c9b,fileName:_0x2934ab,url:_0x32bc27,sourceId:_0x51fa95,sourceLabel:_0x27526e})=>{const _0x33041a=_0x5a6f65,_0x3e9b9f=_0x199c9b?_0x199c9b+':'+_0x5473e9():_0x5473e9();_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x18a))?this[_0x33041a(0x1fb)][_0x33041a(0x12b)]({'staticMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x1fe)),'id':_0x3e9b9f}):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x161))||_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x1ec))?(this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x15c)),'id':_0x3e9b9f}),this[_0x33041a(0xfe)](_0x3c700f)):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x1d4))?this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x19e),_0x2934ab),'id':_0x3e9b9f}):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x178))?this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x11e),_0x32bc27),'id':_0x3e9b9f}):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x203))?this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0xc9)),'id':_0x3e9b9f}):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0xf0))?this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x1ca)),'id':_0x3e9b9f}):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x1c9))?(_0x51fa95&&this[_0x33041a(0x1fb)][_0x33041a(0x101)](_0x51fa95),this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x19b),_0x27526e||_0x33041a(0xb5)),'id':_0x3e9b9f}),this[_0x33041a(0xfe)](_0x3c700f)):_0x3c700f[_0x33041a(0x1fd)][_0x33041a(0x13e)](_0x33041a(0x1a2))?(this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x107)),'id':_0x3e9b9f}),this[_0x33041a(0xfe)](_0x3c700f)):(this[_0x33041a(0x1fb)][_0x33041a(0x17a)]({'errorMessage':_0xb3c904(this[_0x33041a(0x137)][_0x33041a(0x120)],_0x33041a(0x125)),'id':_0x3e9b9f}),this[_0x33041a(0xfe)](_0x3c700f));}),await this[_0x5a6f65(0x18d)][_0x5a6f65(0x1b0)](this[_0x5a6f65(0x137)][_0x5a6f65(0x124)][_0x5a6f65(0xf3)](_0x5a6f65(0x19d))),_0x1c7c2e||await this[_0x5a6f65(0x18d)][_0x5a6f65(0x1e7)]();}async[_0x316803(0x143)]({userMessage:_0x385822,quickActionData:_0x3e3364}){const _0x48ed94=_0x316803;if(!this[_0x48ed94(0x18d)])throw new _0x321c9c(_0x48ed94(0xd2));this[_0x48ed94(0x18d)][_0x48ed94(0x1d2)]()&&await this[_0x48ed94(0x18d)][_0x48ed94(0x13c)](this[_0x48ed94(0x126)][_0x48ed94(0x117)]()),this[_0x48ed94(0x18d)]['id']&&this[_0x48ed94(0x18d)][_0x48ed94(0xee)]&&await this[_0x48ed94(0x18d)][_0x48ed94(0x132)]({'userMessage':_0x385822,'quickActionData':_0x3e3364}),this[_0x48ed94(0x170)]();}[_0x316803(0x170)](){const _0x5ab993=_0x316803,_0x516291=_0x3a18a5(this[_0x5ab993(0x137)])[_0x5ab993(0x141)],_0x4d6f27=Array[_0x5ab993(0xdb)](_0x516291[_0x5ab993(0x168)][_0x5ab993(0x185)](_0x5c5027));_0x516291[_0x5ab993(0x1f2)](_0x82e213=>{const _0x4a2841=_0x5ab993;_0x4d6f27[_0x4a2841(0x119)](_0x5d2b7a=>_0x82e213[_0x4a2841(0x1d1)](_0x5d2b7a));});}[_0x316803(0x1bf)](){const _0x5dc374=_0x316803;console[_0x5dc374(0xb6)](_0x5dc374(0xb3));}[_0x316803(0x1f3)](_0x50bb80){const _0x399788=_0x316803;this[_0x399788(0x1fb)][_0x399788(0x118)](_0x50bb80);}[_0x316803(0xfe)](_0x5cddc8){const _0x165e16=_0x316803;_0x704787(_0x5cddc8[_0x165e16(0x1fd)]);}[_0x316803(0xd5)](_0x3e15be){const _0x2ae96f=_0x316803;this[_0x2ae96f(0x18d)]?.[_0x2ae96f(0x179)](_0x3e15be);}[_0x316803(0xe9)](){const _0x5d4445=_0x316803;this[_0x5d4445(0x18d)]?.[_0x5d4445(0xef)]();}[_0x316803(0x16c)](){const _0xa48e25=_0x316803;this[_0xa48e25(0x18d)]?.[_0xa48e25(0x210)]();}[_0x316803(0xc4)](_0x92f09b){const _0x3e7815=_0x316803,[_0x1537d1,_0x3869f4]=_0x92f09b[_0x3e7815(0x16f)](':'),_0x16bf9a=this[_0x3e7815(0x18d)][_0x3e7815(0x1ac)](_0x1537d1),_0x25a25d=_0x16bf9a[_0x3e7815(0xbf)](_0x3869f4);return{'interaction':_0x16bf9a,'reply':_0x25a25d};}[_0x316803(0x16b)](_0x505967,_0x3f7e63=!0x1){const _0x32f9df=_0x316803,_0x512779=_0x3a18a5(this[_0x32f9df(0x137)]),_0x4e8081={'target':_0x512779[_0x32f9df(0x1a9)][_0x32f9df(0x17f)][_0x32f9df(0xfd)][_0x32f9df(0x13d)](_0x512779[_0x32f9df(0x1a9)][_0x32f9df(0xb4)][_0x32f9df(0x19a)](_0x505967)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3f7e63};_0x3f7e63&&(_0x4e8081[_0x32f9df(0x1a8)]=!0x0),_0x632af4(_0x4e8081);}[_0x316803(0x10f)](_0x9cdbdf,_0x3f1a56=!0x1){const _0x3eeb86=_0x316803;this[_0x3eeb86(0x1fb)][_0x3eeb86(0x1da)](_0x9cdbdf||_0xb3c904(this[_0x3eeb86(0x137)][_0x3eeb86(0x120)],_0x3eeb86(0x173)),_0x3f1a56);}async[_0x316803(0x1dd)]({reply:_0x4c764c,renderingStrategy:_0x362e72}){const _0x5ec209=_0x316803,{id:_0x2e612f,isDone:_0x54a7f5,type:_0x40c5fc,parsedContent:_0x42ab07}=_0x4c764c;if(_0x5ec209(0x106)===_0x40c5fc){const _0x4b77d9=_0x4c764c[_0x5ec209(0xe5)]({'showDiff':this[_0x5ec209(0x1fb)][_0x5ec209(0x15d)]});await this[_0x5ec209(0x1fb)][_0x5ec209(0x113)]({'id':_0x2e612f,'parts':_0x4b77d9,'renderingStrategy':_0x362e72,'isDone':_0x54a7f5});}else _0x5ec209(0xe8)===_0x40c5fc&&await this[_0x5ec209(0x1fb)][_0x5ec209(0x172)]({'id':_0x2e612f,'parsedContent':_0x42ab07,'renderingStrategy':_0x362e72,'isDone':_0x54a7f5});_0x54a7f5&&_0x4c764c[_0x5ec209(0x184)][_0x5ec209(0x18c)]>0x0&&this[_0x5ec209(0x1fb)][_0x5ec209(0x130)](_0x2e612f,_0x4c764c[_0x5ec209(0x184)]);}async[_0x316803(0x17d)](){const _0x164d3c=_0x316803,_0x180f29=this[_0x164d3c(0x18d)]?.[_0x164d3c(0x211)];_0x180f29&&(_0x180f29[_0x164d3c(0x144)](),this[_0x164d3c(0x1fb)][_0x164d3c(0x197)](_0x180f29));}async[_0x316803(0x1f1)](){const _0x165959=_0x316803,_0x4fcba2=this[_0x165959(0x18d)]?.[_0x165959(0x211)];if(_0x4fcba2){for await(const _0x271bbd of _0x4fcba2[_0x165959(0xc2)])await this[_0x165959(0x1dd)]({'reply':_0x271bbd,'renderingStrategy':_0x165959(0x131)});}}[_0x316803(0x159)](_0x3dd9e6){const _0x158661=_0x316803,_0x3dcb74={'positiveCount':_0x3dd9e6[_0x158661(0x135)][_0x158661(0x1a7)](_0x426c74=>_0x158661(0x122)===_0x426c74[_0x158661(0xb9)])[_0x158661(0x18c)],'totalCount':_0x3dd9e6[_0x158661(0x135)][_0x158661(0x18c)],'modificationId':_0x3dd9e6['id']},_0xa0e0cf=this[_0x158661(0x18d)][_0x158661(0x1ac)](_0x3dd9e6[_0x158661(0x20f)])[_0x158661(0xf9)];this[_0x158661(0x1ab)][_0x158661(0x11a)](this[_0x158661(0x18d)]['id'],_0xa0e0cf,_0x3dcb74);}}
23
+ const _0xbf8f99=_0x46d3;(function(_0x41797a,_0x2d4e6b){const _0x427fad=_0x46d3,_0x19468b=_0x41797a();while(!![]){try{const _0x5e329b=parseInt(_0x427fad(0x15c))/0x1+-parseInt(_0x427fad(0x1bc))/0x2+-parseInt(_0x427fad(0x1a2))/0x3+-parseInt(_0x427fad(0x7a))/0x4*(parseInt(_0x427fad(0xec))/0x5)+-parseInt(_0x427fad(0x1c0))/0x6*(parseInt(_0x427fad(0xb0))/0x7)+-parseInt(_0x427fad(0x7d))/0x8+-parseInt(_0x427fad(0x17a))/0x9*(-parseInt(_0x427fad(0xdf))/0xa);if(_0x5e329b===_0x2d4e6b)break;else _0x19468b['push'](_0x19468b['shift']());}catch(_0x3e5d63){_0x19468b['push'](_0x19468b['shift']());}}}(_0x39fd,0x6d7f7));import{ContextPlugin as _0x4525bd,Editor as _0x32512b}from'ckeditor5/src/core.js';import{CKEditorError as _0x171ebd,logError as _0x158057,scrollViewportToShowTarget as _0xa2a93,uid as _0xc12830}from'ckeditor5/src/utils.js';import{AIConnector as _0x3b5244}from'../aicore/aiconnector.js';import{AITabs as _0x569d58}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3ad74e}from'./model/aichatconversation.js';import{getTranslation as _0x346777}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2bf65f}from'../aicore/aiediting.js';function _0x46d3(_0x51a688,_0xa7cef2){const _0x39fde7=_0x39fd();return _0x46d3=function(_0x46d3dc,_0x526ba0){_0x46d3dc=_0x46d3dc-0x72;let _0x28a9a0=_0x39fde7[_0x46d3dc];return _0x28a9a0;},_0x46d3(_0x51a688,_0xa7cef2);}import{AI_REPLY_ACTIONS as _0x2c6fcf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x2290a0}from'./model/aichatmodels.js';import{getEditorFromContext as _0x4f2299}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x275d94,DATA_ID_MODEL_ATTRIBUTE as _0x5d70c2}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4b455e,getOperationsFromReply as _0x544e06}from'../aicore/utils/getoperationsfromreply.js';function _0x39fd(){const _0x5391ed=['removeContextItem','close','startAutoScroll','updateFeedItemAIReplyContent','getRoot','startsWith','14826SdJjOO','plugins','howMany','setConversationTitle','interactionCreated','ai-chat-controller-no-active-conversation','_logError','AI_CHAT_CONTEXT_INVALID_DATA','selectModel','domConverter','_handleStartConversation','stop','toggleReasoning','full','ai-chat-controller-mouse-over','messageId','enableControls','replies','commands','setLoadingMessage','_toggleReasoning','toggleLoadingSkeleton','change','_balloonShowDiff','replyId','addUrlToContext','length','setFeedItemRenderingStrategy','indexes','isPremiumPlugin','Disliked\x20response','DocumentCompare','_aiChatModels','AIEditing','maxOffset','toggleWebSearch','from','addSelectionToContext','createRange','sendMessage','isStarted','getChildAtOffset','sources','addDocumentToContext','reasoningStarted','setSelectedModel','query','10LBqplM','selection','AI_CHAT_UNTITLED_CONVERSATION','delete','setAddContextOptions','contextItemAdded','version','message','getInteraction','log','updateFeedItemAIReplySuggestionContent','lastInteraction','undo','180eGYuNY','state','selectedModel','addContextItem','toggleSuggestionDisplayMode','abortPromptStream','AI_CHAT_GENERIC_ERROR','anchorId','AIChatUI','getRanges','resourceId','range','contextItems','text-delta','static','isUploadInProgress','pending','addCurrentDocumentToContext','Failed\x20to\x20load\x20conversation','slice','insertSuggestion','split','streaming','like','_startConversationSafely','loadSourceResources','isCurrentDocumentInContext','_updateReplyContent','new','handleRemovedConversation','indexOf','applySuggestion','removeSelectionFromChatContext','ai-chat-file-upload-failed','unshift','scrollFeedToSuggestion','getGroupId','getFirstRange','hasChanges','ai-chat-source-resources-load-failed','_createFromRanges','Liked\x20response','options','loadConversation','_previewedChangeGroup','removed','editing','addFileToContext','forEach','getAttribute','AI_BALLOON_HEADER_TITLE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','changeGroups','stopInteraction','_setIsMaximized','_scrollToSuggestionRange','Showing\x20conversation\x20history...','showChangeInText','ready','config','removeSelectionFromContext','parse','_applyOperationsAsSuggestions','end','TrackChanges','_removeFromContext','showFakeVisualSelection','setContextItemLoading','source','set','reasoningFinished','activateTab','redo','addContextOptionsChanged','_aiConnector','getChildren','contextItemLoadingEnded','webSearchFinished','AIConnector','activeConversation','contextItemRemoved','capabilitiesUpdated','addFeedItemAISuggestion','root','clearConversationContextUI','replyChangeGroupStateUpdated','replyContentUpdated','locale','stopListening','getDocumentData','ai-chat-context-unsupported-type','resourceStateChanged','isOpen','toString','baseVersion','editors','rejected','addFeedItemError','init','_insertSuggestion','isOfficialPlugin','open','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','setConversationContext','_toggleWebSearch','_getDocumentRangeForReplyChanges','rootName','setIsMaximized','rejectSuggestion','_integrateEditor','cloneNode','toViewRange','405637UKQgaf','accepted','_handleUIUserMessage','resource','createConversation','ai.availableReplyActions','modification-delta','getTransformedByOperation','node','sourceId','outdated','error','resetConversationTitle','data','showNext','context','ai-request-aborted','has','mapper','batch','markers','isDisabled','main','push','map','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','changes','_flushLastInteractionUI','find','ai-chat-missing-channel-id','31076577eWzzpp','current-document','conversationInitialized','interactionFinished','setIsUploadInProgress','_batchToChanges','interactionStarted','AI_CHAT_UNABLE_TO_START_CONVERSATION','modelSelected','filter','isLoading','requires','ai-chat-url-upload-failed','handleUserInteraction','hideFakeVisualSelection','clearPendingContextUI','view','isCurrentDocumentInConversation','isDocumentOperation','uid','alignToTop','updateContent','marker','AITabs','index','getMarkersGroup','_openBalloonFor','ai.chat.context','showDiff','resizedTabs','interactionDestroyed','afterInit','pluginName','addResourceToContext','chat','model','updateCurrentDocumentInContext','document','contextSent','collaboration.channelId','1114986dRmult','listenTo','resetMessageInput','data-id','disableControls','mouseOverSuggestion','history','findIndex','interactionId','populateSourceResourceBalloon','AI_CHAT_ABORTED_MESSAGE','focusPromptInput','ai.chat.models.displayedModels','startInteraction','_applySuggestion','addFeedItemUserMessage','getDocumentContext','isInContext','getContentParts','_updateRatings','sourcePosition','updateResourceState','resizeTabs','viewRangeToDom','start','_aiEditing','1699524JiHWBB','_stopLastInteraction','ai-chat-resource-load-failed','dialogClosed','2538RsAtBK','partIndex','upsertAIChatRating','setChangeGroupState','addFilesToContext','updateConversationTitle','updateCapabilities','add','_removeAISelectionMarkers','removeMarker','ai-chat-conversation-init-failed','mouseLeaveSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','createPositionFromPath','get','ai-chat-conversation-start-failed','finishInteraction','documentContextContent','createPositionAt','ai.chat.models.defaultModelId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyCreated','getChild','showPrevious','addOperation','77232ZHQtjf','updateFeedItemAIReplySources','content','4781288PuzsJT','webSearchStarted','removeFeedInteraction','path','getInteractionAndReplyById','resize','startConversation','getSelectionText','sendUserMessage','setModel','addSelectionToChatContext','TrackChangesEditing','updateFeedItemAIReplySuggestionPartState','load','remove','getOperations','revert','addFeedInteractionHeader','$graveyard','resources','AIChatController','contextItem','ai-chat-context-invalid-data','AI_CHAT_RESOURCE_LOAD_FAILED','children','uploadProgressChanged','applyOperation','_aiChatUi','removeFromContext','addFeedItemAIReply','getReply','ai-conversation-','uiId','isModelAvailable','getPath','dislike','nextSibling','addFeedItemStaticMessage','ai-no-track-changes','Undo','sourceResourcesLoaded','closeSourceResourceBalloon','getDiff','type','_showConversationHistory'];_0x39fd=function(){return _0x5391ed;};return _0x39fd();}import{expandSelectionWithContext as _0x17a8e5,getMinimalSelection as _0x2a4135}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4e54e6,_DetachOperation as _0x2513c6}from'ckeditor5/src/engine.js';import{findOne as _0x25a715,getAttribute as _0x52bed0,serialize as _0x1ffb56,Document as _0x14ed9d,findByAttribute as _0x787a1d}from'../aicore/utils/htmlparser.js';import{IconAI as _0x31e731}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x119aa3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x123c2c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x4525bd{[_0xbf8f99(0x1bb)];[_0xbf8f99(0x136)];[_0xbf8f99(0x98)];[_0xbf8f99(0xd0)];[_0xbf8f99(0x17f)]=new Map();[_0xbf8f99(0x118)]=null;[_0xbf8f99(0xc7)]=!0x1;static get[_0xbf8f99(0x185)](){return[_0x3b5244,_0x123c2c,_0x275d94];}static get[_0xbf8f99(0x19a)](){const _0x38211c=_0xbf8f99;return _0x38211c(0x91);}static get[_0xbf8f99(0x150)](){return!0x0;}static get[_0xbf8f99(0xcd)](){return!0x0;}[_0xbf8f99(0x14e)](){const _0x50e0d3=_0xbf8f99;this[_0x50e0d3(0x136)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0x13a)),this[_0x50e0d3(0x98)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0xf4)),this[_0x50e0d3(0x1bb)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0xd1)),this[_0x50e0d3(0xd0)]=new _0x2290a0({'connector':this[_0x50e0d3(0x136)],'availableModels':this[_0x50e0d3(0x16b)][_0x50e0d3(0x127)][_0x50e0d3(0x1ce)](_0x50e0d3(0x1ae)),'defaultModelId':this[_0x50e0d3(0x16b)][_0x50e0d3(0x127)][_0x50e0d3(0x1ce)](_0x50e0d3(0x74))});const _0x50621d=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0x191));this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x83),()=>{const _0x208d85=_0x50e0d3;this[_0x208d85(0x104)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x85),(_0x5890bd,_0x2b6d74)=>{const _0x57c3a6=_0x50e0d3;this[_0x57c3a6(0x15e)]({'userMessage':_0x2b6d74});}),this[_0x50e0d3(0x1a3)](_0x50621d,_0x50e0d3(0x197),(_0x5e6f72,_0x340d33)=>{const _0x1895ad=_0x50e0d3;this[_0x1895ad(0x122)](_0x340d33);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1b8),()=>{const _0x273e46=_0x50e0d3;_0x50621d[_0x273e46(0x82)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xf1),async()=>{const _0x1ef066=_0x50e0d3;await this[_0x1ef066(0x1bd)](),await this[_0x1ef066(0x177)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xdb),()=>{const _0x261482=_0x50e0d3;this[_0x261482(0x13b)]?.[_0x261482(0xfd)](_0x346777(this[_0x261482(0x16b)][_0x261482(0x143)],_0x261482(0x1cc)));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x11b),(_0x75c32a,_0x5abdf5)=>{const _0x418648=_0x50e0d3;this[_0x418648(0x13b)]?.[_0x418648(0x1c4)](Array[_0x418648(0xd4)](_0x5abdf5));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xc9),(_0x48e059,_0x51b45f)=>{const _0x4cd70e=_0x50e0d3;this[_0x4cd70e(0x13b)]?.[_0x4cd70e(0xc9)](_0x51b45f);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x19b),(_0x2bad10,_0xb3ffbb)=>{const _0x48bcd3=_0x50e0d3;this[_0x48bcd3(0x13b)]?.[_0x48bcd3(0x19b)](_0xb3ffbb[_0x48bcd3(0x130)],_0xb3ffbb[_0x48bcd3(0x15f)]);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xaa),(_0x31e0a0,_0x284e33)=>{const _0x4d9319=_0x50e0d3;this[_0x4d9319(0x12d)](_0x284e33);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x105),(_0x32d986,_0x317e17)=>{const _0x4e82b6=_0x50e0d3;this[_0x4e82b6(0x13b)]?.[_0x4e82b6(0x105)](_0x317e17[_0x4e82b6(0x165)],_0x317e17[_0x4e82b6(0xde)],_0x317e17[_0x4e82b6(0x18d)]);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xd3),()=>{const _0x395cb4=_0x50e0d3;this[_0x395cb4(0x154)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xbc),()=>{const _0x32630c=_0x50e0d3;this[_0x32630c(0xc4)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xb8),(_0x3cbb47,_0x51880f)=>{const _0x3fcc3a=_0x50e0d3;this[_0x3fcc3a(0x13b)]?.[_0x3fcc3a(0x86)](_0x51880f);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x103),(_0x5d1472,{replyId:_0x25c408})=>{const _0x13469b=_0x50e0d3;console[_0x13469b(0xe8)](_0x13469b(0x115),_0x25c408);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xa0),(_0x115f35,{replyId:_0x263b7d})=>{const _0x4602c8=_0x50e0d3;console[_0x4602c8(0xe8)](_0x4602c8(0xce),_0x263b7d);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x100),(_0x5a8c43,_0x241b1d)=>{const _0x1f19a5=_0x50e0d3;this[_0x1f19a5(0x16b)][_0x1f19a5(0xb1)][_0x1f19a5(0x1ce)](_0x123c2c)[_0x1f19a5(0xab)](),this[_0x1f19a5(0x14f)](_0x241b1d);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x125),(_0xad1d3c,{replyId:_0x5ef852,partIndex:_0x1063ca})=>{const _0x3b7884=_0x50e0d3;this[_0x3b7884(0xc7)]=this[_0x3b7884(0x98)][_0x3b7884(0x196)],this[_0x3b7884(0x194)](_0x5ef852,_0x1063ca);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1a7),(_0x48ca3f,{replyId:_0x770bb8,partIndex:_0x4485b4})=>{const _0x58675d=_0x50e0d3,_0x3fb030=this[_0x58675d(0x155)](_0x770bb8,_0x4485b4);_0x3fb030&&_0x58675d(0x8f)!=_0x3fb030[_0x58675d(0xf7)][_0x58675d(0x13f)][_0x58675d(0x156)]&&this[_0x58675d(0x1bb)][_0x58675d(0x12e)]([_0x3fb030[_0x58675d(0xf7)]],_0x58675d(0xbe));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1cb),()=>{const _0x105f63=_0x50e0d3;this[_0x105f63(0x1bb)][_0x105f63(0x188)](_0x105f63(0xbe));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x10b),(_0x3a2267,_0x578fb7)=>{const _0x3d8439=_0x50e0d3;this[_0x3d8439(0x16b)][_0x3d8439(0xb1)][_0x3d8439(0x1ce)](_0x123c2c)[_0x3d8439(0xab)](),this[_0x3d8439(0x1b0)](_0x578fb7);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xf0),async(_0x5d06a1,{replyId:_0x32e933,showDiff:_0x521b62})=>{const _0x125454=_0x50e0d3,{reply:_0x5fe252}=this[_0x125454(0x81)](_0x32e933),_0x4c13f6=_0x5fe252[_0x125454(0x1b4)]({'showDiff':_0x521b62});await this[_0x125454(0x98)][_0x125454(0xe9)]({'id':_0x5fe252['id'],'parts':_0x4c13f6,'renderingStrategy':_0x125454(0xfa)});}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x158),(_0x1364c6,{replyId:_0xdcefa6,partIndex:_0x553be8})=>{const _0xd4d4e2=_0x50e0d3;this[_0xd4d4e2(0x118)]?.[_0xd4d4e2(0xc8)]==_0xdcefa6&&this[_0xd4d4e2(0x118)]?.[_0xd4d4e2(0x1c1)]==_0x553be8&&this[_0xd4d4e2(0x16b)][_0xd4d4e2(0xb1)][_0xd4d4e2(0x1ce)](_0x123c2c)[_0xd4d4e2(0xab)]();const {reply:_0x464d49}=this[_0xd4d4e2(0x81)](_0xdcefa6);_0x464d49[_0xd4d4e2(0x1c3)](_0x553be8,_0xd4d4e2(0x14c)),this[_0xd4d4e2(0x1bb)][_0xd4d4e2(0x188)](_0xd4d4e2(0xbe));});}async[_0xbf8f99(0x199)](){const _0x422605=_0xbf8f99;this[_0x422605(0x16b)]instanceof _0x32512b?this[_0x422605(0x159)](this[_0x422605(0x16b)]):this[_0x422605(0x1a3)](this[_0x422605(0x16b)][_0x422605(0x14b)],_0x422605(0x1c7),(_0x215477,_0x4d9840)=>{const _0x5a6a48=_0x422605;_0x4d9840['on'](_0x5a6a48(0x126),()=>{const _0x2e0773=_0x5a6a48;this[_0x2e0773(0x159)](_0x4d9840);});}),await this[_0x422605(0x104)]();}[_0xbf8f99(0x14f)](_0x22d1ec){const _0x7a302c=_0xbf8f99,_0x3395c4=_0x4f2299(this[_0x7a302c(0x16b)]);if(!_0x3395c4[_0x7a302c(0xb1)][_0x7a302c(0x16d)](_0x7a302c(0x12c)))throw new _0x171ebd(_0x7a302c(0xa3),null);const _0x2a5c86=this[_0x7a302c(0x16b)][_0x7a302c(0xb1)][_0x7a302c(0x1ce)](_0x7a302c(0xcf)),{reply:_0x3ffee2,interaction:_0x53a190}=this[_0x7a302c(0x81)](_0x22d1ec[_0x7a302c(0xc8)]),_0x397b02=this[_0x7a302c(0x155)](_0x22d1ec[_0x7a302c(0xc8)],_0x22d1ec[_0x7a302c(0x1c1)]),_0x17ccbb=void 0x0!==_0x22d1ec[_0x7a302c(0x1c1)]?[_0x3ffee2[_0x7a302c(0x120)][_0x22d1ec[_0x7a302c(0x1c1)]]]:_0x3ffee2[_0x7a302c(0x120)][_0x7a302c(0x183)](_0x443006=>_0x7a302c(0xfc)==_0x443006[_0x7a302c(0xed)]),_0x5eab81=_0x17ccbb[_0x7a302c(0x174)](_0x460b69=>_0x3ffee2[_0x7a302c(0x120)][_0x7a302c(0x10a)](_0x460b69));if(!_0x397b02||_0x7a302c(0x8f)==_0x397b02[_0x7a302c(0xf7)][_0x7a302c(0x13f)][_0x7a302c(0x156)])return void _0x5eab81[_0x7a302c(0x11c)](_0x2fb686=>_0x3ffee2[_0x7a302c(0x1c3)](_0x2fb686,_0x7a302c(0x166)));_0x5eab81[_0x7a302c(0x11c)](_0x21333c=>_0x3ffee2[_0x7a302c(0x1c3)](_0x21333c,_0x7a302c(0x15d)));const _0x1df9e3=_0x544e06({'editor':_0x3395c4,'reply':_0x3ffee2,'interaction':_0x53a190,'groups':_0x17ccbb,'transform':!0x0,'documentCompare':_0x2a5c86,'documentCompareOptions':{'anchor':_0x7a302c(0x172),'markDeletions':!0x0}});let _0x38d3f4;_0x397b02&&this[_0x7a302c(0x123)](_0x397b02[_0x7a302c(0xf7)]),_0x3395c4[_0x7a302c(0x19d)][_0x7a302c(0xc6)](_0x4142a2=>{const _0x14af44=_0x7a302c;_0x38d3f4=_0x4142a2[_0x14af44(0x16f)],_0x3395c4[_0x14af44(0xb1)][_0x14af44(0x1ce)](_0x14af44(0x88))[_0x14af44(0x12a)](_0x1df9e3),this[_0x14af44(0x1bb)][_0x14af44(0x188)](_0x14af44(0xbe));}),this[_0x7a302c(0x17f)][_0x7a302c(0x131)](_0x38d3f4,{'interactionId':_0x53a190['id'],'replyId':_0x3ffee2['id'],'indexes':_0x5eab81[_0x7a302c(0xff)]()}),this[_0x7a302c(0x1b5)](_0x3ffee2);}[_0xbf8f99(0x1b0)](_0x50c425){const _0x21d069=_0xbf8f99,_0x512c80=_0x4f2299(this[_0x21d069(0x16b)]),_0x2fbc62=this[_0x21d069(0x16b)][_0x21d069(0xb1)][_0x21d069(0x1ce)](_0x275d94),{reply:_0x110853,interaction:_0x231c2e}=this[_0x21d069(0x81)](_0x50c425[_0x21d069(0xc8)]),_0x2a4a5d=this[_0x21d069(0x155)](_0x50c425[_0x21d069(0xc8)],_0x50c425[_0x21d069(0x1c1)]),_0x4ac3f2=void 0x0!==_0x50c425[_0x21d069(0x1c1)]?[_0x110853[_0x21d069(0x120)][_0x50c425[_0x21d069(0x1c1)]]]:_0x110853[_0x21d069(0x120)][_0x21d069(0x183)](_0x17ac88=>_0x21d069(0xfc)==_0x17ac88[_0x21d069(0xed)]),_0x300041=_0x4ac3f2[_0x21d069(0x174)](_0x50752d=>_0x110853[_0x21d069(0x120)][_0x21d069(0x10a)](_0x50752d));if(!_0x2a4a5d||_0x21d069(0x8f)==_0x2a4a5d[_0x21d069(0xf7)][_0x21d069(0x13f)][_0x21d069(0x156)])return void _0x300041[_0x21d069(0x11c)](_0x3d96a6=>_0x110853[_0x21d069(0x1c3)](_0x3d96a6,_0x21d069(0x166)));_0x300041[_0x21d069(0x11c)](_0x58e80f=>_0x110853[_0x21d069(0x1c3)](_0x58e80f,_0x21d069(0x15d)));const _0x40b7e6=_0x544e06({'editor':_0x512c80,'reply':_0x110853,'interaction':_0x231c2e,'groups':_0x4ac3f2,'transform':!0x0,'documentCompare':_0x2fbc62,'documentCompareOptions':{'anchor':_0x21d069(0x172),'markDeletions':!0x1}});let _0x37bebe;_0x2a4a5d&&this[_0x21d069(0x123)](_0x2a4a5d[_0x21d069(0xf7)]),_0x512c80[_0x21d069(0x19d)][_0x21d069(0xc6)](_0x3a6ea9=>{const _0x29c03c=_0x21d069;_0x37bebe=_0x3a6ea9[_0x29c03c(0x16f)];for(const _0x533d1c of _0x40b7e6)_0x533d1c[_0x29c03c(0x14a)]=_0x512c80[_0x29c03c(0x19d)][_0x29c03c(0x19f)][_0x29c03c(0xe5)],_0x4b455e(_0x512c80,_0x533d1c),_0x3a6ea9[_0x29c03c(0x16f)][_0x29c03c(0x79)](_0x533d1c),_0x512c80[_0x29c03c(0x19d)][_0x29c03c(0x97)](_0x533d1c);}),this[_0x21d069(0x17f)][_0x21d069(0x131)](_0x37bebe,{'interactionId':_0x231c2e['id'],'replyId':_0x110853['id'],'indexes':_0x300041[_0x21d069(0xff)]()}),this[_0x21d069(0x1b5)](_0x110853);}[_0xbf8f99(0x194)](_0x57a4f5,_0x55734a){const _0x2cd926=_0xbf8f99,_0x551d14=_0x4f2299(this[_0x2cd926(0x16b)]),_0x1ed161=this[_0x2cd926(0x155)](_0x57a4f5,_0x55734a),_0x3bd440=this[_0x2cd926(0x16b)][_0x2cd926(0xb1)][_0x2cd926(0x1ce)](_0x123c2c);if(!_0x1ed161)return void _0x3bd440[_0x2cd926(0xab)]();const {range:_0x11fddd,currentIndex:_0x2f587e}=_0x1ed161;if(_0x2cd926(0x8f)==_0x11fddd[_0x2cd926(0x13f)][_0x2cd926(0x156)]){const {reply:_0x4fb674}=this[_0x2cd926(0x81)](_0x57a4f5);return _0x4fb674[_0x2cd926(0x1c3)](_0x2f587e,_0x2cd926(0x166)),void _0x3bd440[_0x2cd926(0xab)]();}if(this[_0x2cd926(0x118)]?.[_0x2cd926(0xc8)]==_0x57a4f5&&this[_0x2cd926(0x118)]?.[_0x2cd926(0x1c1)]==_0x2f587e)return;this[_0x2cd926(0x144)](_0x3bd440),this[_0x2cd926(0x118)]={'replyId':_0x57a4f5,'partIndex':_0x2f587e};let _0x7e2b57=_0x551d14[_0x2cd926(0x127)][_0x2cd926(0x1ce)](_0x2cd926(0x161))||[..._0x2c6fcf];_0x551d14[_0x2cd926(0xb1)][_0x2cd926(0x16d)](_0x2cd926(0x12c))||(_0x7e2b57=_0x7e2b57[_0x2cd926(0x183)](_0x38c46b=>_0x2cd926(0x100)!=_0x38c46b));const _0x5bf19c=new _0x119aa3(_0x551d14[_0x2cd926(0x143)],{'showDiff':this[_0x2cd926(0xc7)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2cd926(0xbd)},'hideHeader':!0x0,'availableActions':_0x7e2b57});this[_0x2cd926(0x144)](_0x5bf19c);const {reply:_0x127e9f}=this[_0x2cd926(0x81)](_0x57a4f5),_0xb2283c=_0x127e9f[_0x2cd926(0x1b4)]({'showDiff':this[_0x2cd926(0xc7)]})[_0x2cd926(0x183)](_0x3059d7=>_0x3059d7[_0x2cd926(0x112)]),_0x5afa89=_0xb2283c[_0x2cd926(0x1a9)](_0x5e2c6d=>_0x5e2c6d[_0x2cd926(0x192)]==_0x2f587e);if(-0x1==_0x5afa89)return;const _0xb9fb7e=_0xb2283c[_0x5afa89],_0x3d1fbe=_0xb2283c['at']((_0x5afa89-0x1)%_0xb2283c[_0x2cd926(0xca)])?.[_0x2cd926(0x192)],_0x5068b9=_0xb2283c['at']((_0x5afa89+0x1)%_0xb2283c[_0x2cd926(0xca)])?.[_0x2cd926(0x192)];_0x5bf19c[_0x2cd926(0x18f)]({'parts':[_0xb9fb7e],'renderingStrategy':_0x2cd926(0xfa)});const _0x3ae06a=_0x2f587e!==_0x3d1fbe;this[_0x2cd926(0x123)](_0x11fddd,!0x0),_0x3bd440[_0x2cd926(0x151)]({'index':_0x2f587e,'title':_0x346777(this[_0x2cd926(0x16b)][_0x2cd926(0x143)],_0x2cd926(0x11e),(_0x5afa89+0x1)[_0x2cd926(0x149)]()),'icon':_0x31e731,'mainView':_0x5bf19c,'showRotator':_0x3ae06a,'showApplyButton':!0x0,'showSuggestButton':_0x551d14[_0x2cd926(0xb1)][_0x2cd926(0x16d)](_0x2cd926(0x12c)),'ranges':[_0x11fddd]}),this[_0x2cd926(0x98)][_0x2cd926(0x10f)](_0x57a4f5,_0x2f587e),this[_0x2cd926(0x1a3)](_0x5bf19c,_0x2cd926(0xf0),(_0x436800,{showDiff:_0x3a3c62})=>{const _0xc0eab3=_0x2cd926;this[_0xc0eab3(0xc7)]=_0x3a3c62;const {reply:_0x1c9820}=this[_0xc0eab3(0x81)](_0x57a4f5),_0x340dfb=_0x1c9820[_0xc0eab3(0x1b4)]({'showDiff':_0x3a3c62,'groupIndex':_0x2f587e});_0x5bf19c[_0xc0eab3(0x18f)]({'parts':_0x340dfb,'renderingStrategy':_0xc0eab3(0xfa)});}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x10b),()=>{const _0x4b3b09=_0x2cd926;this[_0x4b3b09(0x1b0)]({'replyId':_0x57a4f5,'partIndex':_0x2f587e}),_0x3ae06a?this[_0x4b3b09(0x194)](_0x57a4f5,_0x5068b9):_0x3bd440[_0x4b3b09(0xab)]();}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x100),()=>{const _0x109f4d=_0x2cd926;this[_0x109f4d(0x14f)]({'replyId':_0x57a4f5,'partIndex':_0x2f587e}),_0x3ae06a?this[_0x109f4d(0x194)](_0x57a4f5,_0x5068b9):_0x3bd440[_0x109f4d(0xab)]();}),_0x3ae06a&&(this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x16a),()=>{const _0x38bca1=_0x2cd926;this[_0x38bca1(0x194)](_0x57a4f5,_0x5068b9);}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x78),()=>{const _0x12d8de=_0x2cd926;this[_0x12d8de(0x194)](_0x57a4f5,_0x3d1fbe);})),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x1bf),()=>{const _0x3e7806=_0x2cd926;this[_0x3e7806(0x144)](_0x3bd440),this[_0x3e7806(0x144)](_0x5bf19c),this[_0x3e7806(0x118)]=null;});}[_0xbf8f99(0x155)](_0x23507e,_0x19c680){const _0x4e8d4a=_0xbf8f99,_0x153520=_0x4f2299(this[_0x4e8d4a(0x16b)]),{reply:_0x113997,interaction:_0x551c02}=this[_0x4e8d4a(0x81)](_0x23507e),_0x4431a7=_0x113997[_0x4e8d4a(0x120)][_0x4e8d4a(0x183)](_0x166b8a=>_0x4e8d4a(0xfc)==_0x166b8a[_0x4e8d4a(0xed)]),_0x5e0b52=_0x4431a7[_0x4e8d4a(0x174)](_0x1c78c7=>_0x113997[_0x4e8d4a(0x120)][_0x4e8d4a(0x10a)](_0x1c78c7));void 0x0===_0x19c680&&(_0x19c680=_0x5e0b52[0x0]);const _0x3deb9b=_0x5e0b52[_0x4e8d4a(0x10a)](_0x19c680);if(-0x1==_0x3deb9b)return null;const _0x35a5c0=_0x4431a7[_0x3deb9b],_0x489715=new _0x14ed9d([]),_0x40dd7d=new _0x14ed9d([]);for(const _0x5d3865 of _0x35a5c0[_0x4e8d4a(0x176)])if(_0x4e8d4a(0x119)!=_0x5d3865[_0x4e8d4a(0xa8)]&&_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x5d3865[_0x4e8d4a(0x164)][_0x4e8d4a(0x15a)](!0x0)),_0x4e8d4a(0x108)!=_0x5d3865[_0x4e8d4a(0xa8)]){const _0x32cd85=_0x25a715(_0x1e5f8c=>_0x52bed0(_0x1e5f8c,_0x4e8d4a(0x1a5))==_0x5d3865['id'],_0x113997[_0x4e8d4a(0x72)],!0x0);_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x32cd85[_0x4e8d4a(0x15a)](!0x0));}if(0x0==_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0xca)]){if(_0x35a5c0[_0x4e8d4a(0x176)][0x0][_0x4e8d4a(0xf3)]){const _0x3aac4f=_0x787a1d(_0x4e8d4a(0x1a5),_0x35a5c0[_0x4e8d4a(0x176)][0x0][_0x4e8d4a(0xf3)],_0x113997[_0x4e8d4a(0x72)]);_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x10e)](_0x3aac4f[_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x10e)](_0x3aac4f[_0x4e8d4a(0x15a)](!0x0)),_0x3aac4f[_0x4e8d4a(0xa1)]&&(_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x3aac4f[_0x4e8d4a(0xa1)][_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x3aac4f[_0x4e8d4a(0xa1)][_0x4e8d4a(0x15a)](!0x0)));}else{const _0x18328b=_0x113997[_0x4e8d4a(0x72)][_0x4e8d4a(0x95)][0x0];if(!_0x18328b)return null;_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x18328b[_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x18328b[_0x4e8d4a(0x15a)](!0x0));}}const _0x318767=_0x551c02[_0x4e8d4a(0x1b2)](),_0x578734=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x318767[_0x4e8d4a(0x7c)]),_0x3731db=_0x1ffb56(_0x489715),_0x5bb208=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x3731db),_0x174bfa=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x3731db),_0x4a90e4=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x73)](_0x5bb208,0x0),_0x48371e=_0x1ffb56(_0x40dd7d),_0x55423c={'anchor':_0x4a90e4,'markDeletions':!0x1},_0xfa1739=_0x153520[_0x4e8d4a(0xb1)][_0x4e8d4a(0x1ce)](_0x275d94)[_0x4e8d4a(0xa7)](_0x3731db,_0x48371e,_0x55423c)[_0x4e8d4a(0x8c)]();if(!_0xfa1739[_0x4e8d4a(0xca)])return null;_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xc6)](_0x3318c9=>{const _0x2ab168=_0x4e8d4a;for(const _0x361f15 of _0xfa1739)if(_0x2ab168(0x8b)==_0x361f15[_0x2ab168(0xa8)]){const _0x2c1bbf=_0x361f15[_0x2ab168(0x1b6)],_0x4d55e8=_0x361f15[_0x2ab168(0xb2)],_0x70e1ae=new _0x2513c6(_0x2c1bbf,_0x4d55e8);_0x3318c9[_0x2ab168(0x16f)][_0x2ab168(0x79)](_0x70e1ae),_0x153520[_0x2ab168(0x19d)][_0x2ab168(0x97)](_0x70e1ae);}else _0x2ab168(0x190)!==_0x361f15[_0x2ab168(0xa8)]&&(_0x361f15[_0x2ab168(0x14a)]=null,_0x361f15[_0x2ab168(0x18c)]=!0x1,_0x3318c9[_0x2ab168(0x16f)][_0x2ab168(0x79)](_0x361f15),_0x153520[_0x2ab168(0x19d)][_0x2ab168(0x97)](_0x361f15));});const _0x3269a2=_0x2a4135(_0x153520,_0xfa1739,_0x5bb208);_0x17a8e5(_0x153520[_0x4e8d4a(0x19d)],_0x3269a2);const _0x1f20be=_0x3269a2[_0x4e8d4a(0x111)]()[_0x4e8d4a(0x1ba)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x590962=_0x3269a2[_0x4e8d4a(0x111)]()[_0x4e8d4a(0x12b)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x5a74d5=[];let _0x8ed621=_0x5bb208,_0x186ca5=_0x174bfa;for(let _0x5e83f5=0x0;_0x5e83f5<_0x590962[_0x4e8d4a(0xca)];_0x5e83f5++){const _0x1d80e2=_0x8ed621[_0x4e8d4a(0xd2)]-_0x590962[_0x5e83f5];_0x5a74d5[_0x5e83f5]=_0x186ca5[_0x4e8d4a(0xd2)]-_0x1d80e2,_0x8ed621=_0x8ed621[_0x4e8d4a(0xd9)](_0x590962[_0x5e83f5]),_0x186ca5=_0x186ca5[_0x4e8d4a(0xd9)](_0x5a74d5[_0x5e83f5]);}const _0x24caac=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xd6)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x174bfa,_0x1f20be),_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x174bfa,_0x5a74d5)),_0x3cc925=_0x174bfa[_0x4e8d4a(0x77)](0x0)[_0x4e8d4a(0x11d)](_0x5d70c2),_0x3586de=Array[_0x4e8d4a(0xd4)](_0x578734[_0x4e8d4a(0x137)]())[_0x4e8d4a(0x178)](_0x3627de=>_0x3627de[_0x4e8d4a(0x11d)](_0x5d70c2)==_0x3cc925)[_0x4e8d4a(0x9f)](),_0x2ca2c5=_0x24caac[_0x4e8d4a(0x1ba)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x1e56fe=_0x24caac[_0x4e8d4a(0x12b)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)]();_0x2ca2c5[0x0]=_0x3586de[0x0]+_0x2ca2c5[0x0],_0x1e56fe[0x0]=_0x3586de[0x0]+_0x1e56fe[0x0];let _0x1c7d2f=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xd6)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0xae)](),_0x2ca2c5),_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0xae)](),_0x1e56fe));const _0xfa7cb8=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0x1a8)][_0x4e8d4a(0x8c)](_0x318767[_0x4e8d4a(0xe5)]);for(const _0x579e9f of _0xfa7cb8)_0x1c7d2f=_0x4e54e6[_0x4e8d4a(0x114)](_0x1c7d2f[_0x4e8d4a(0x163)](_0x579e9f));return{'range':_0x1c7d2f,'currentIndex':_0x19c680};}[_0xbf8f99(0x159)](_0x3b8110){const _0x98fef5=_0xbf8f99;if(!_0x3b8110[_0x98fef5(0xb1)][_0x98fef5(0x16d)](_0x98fef5(0xa4)))return;const _0x5a7e2b=_0x3b8110[_0x98fef5(0xc2)][_0x98fef5(0x1ce)](_0x98fef5(0xeb)),_0xefbbdf=_0x3b8110[_0x98fef5(0xc2)][_0x98fef5(0x1ce)](_0x98fef5(0x134));this[_0x98fef5(0x1a3)](_0x5a7e2b,_0x98fef5(0x8d),(_0x33ca13,_0x319b87,_0x280d63)=>{const _0x30dc4=_0x98fef5,_0x20b2bc=this[_0x30dc4(0x17f)][_0x30dc4(0x1ce)](_0x319b87);if(!_0x20b2bc)return;const _0x58eed3=this[_0x30dc4(0x13b)][_0x30dc4(0xe7)](_0x20b2bc[_0x30dc4(0x1aa)])[_0x30dc4(0x9b)](_0x20b2bc[_0x30dc4(0xc8)]);_0x20b2bc[_0x30dc4(0xcc)][_0x30dc4(0x11c)](_0x54e40f=>_0x58eed3[_0x30dc4(0x1c3)](_0x54e40f,_0x30dc4(0xfc))),this[_0x30dc4(0x17f)][_0x30dc4(0xe2)](_0x319b87),this[_0x30dc4(0x17f)][_0x30dc4(0x131)](_0x280d63,_0x20b2bc);}),this[_0x98fef5(0x1a3)](_0xefbbdf,_0x98fef5(0x8d),(_0x506f25,_0x542b7a,_0x255fbd)=>{const _0x48901a=_0x98fef5,_0x15f5ea=this[_0x48901a(0x17f)][_0x48901a(0x1ce)](_0x542b7a);if(!_0x15f5ea)return;const _0x5cff8c=this[_0x48901a(0x13b)][_0x48901a(0xe7)](_0x15f5ea[_0x48901a(0x1aa)])[_0x48901a(0x9b)](_0x15f5ea[_0x48901a(0xc8)]);_0x15f5ea[_0x48901a(0xcc)][_0x48901a(0x11c)](_0x585bad=>_0x5cff8c[_0x48901a(0x1c3)](_0x585bad,_0x48901a(0x15d))),this[_0x48901a(0x17f)][_0x48901a(0xe2)](_0x542b7a),this[_0x48901a(0x17f)][_0x48901a(0x131)](_0x255fbd,_0x15f5ea);});}async[_0xbf8f99(0x117)](_0x3fe3df){const _0x3d7194=_0xbf8f99;this[_0x3d7194(0x16b)][_0x3d7194(0xb1)][_0x3d7194(0x1ce)](_0x123c2c)[_0x3d7194(0xab)](),this[_0x3d7194(0x98)][_0x3d7194(0xcb)](_0x3d7194(0xfa)),this[_0x3d7194(0x98)][_0x3d7194(0xc5)](!0x0),await this[_0x3d7194(0x1bd)]();try{const _0x25d373=this[_0x3d7194(0x16b)][_0x3d7194(0xb1)][_0x3d7194(0x1ce)](_0x569d58);this[_0x3d7194(0x1c5)]('\x20'),_0x25d373[_0x3d7194(0x18a)][_0x3d7194(0x133)](_0x3d7194(0x19c)),await this[_0x3d7194(0x104)](_0x3fe3df);const {sessionId:_0x434664}=this[_0x3d7194(0x1bb)][_0x3d7194(0x145)]();await this[_0x3d7194(0x13b)][_0x3d7194(0x8a)](_0x3fe3df,_0x434664),this[_0x3d7194(0x13b)][_0x3d7194(0x18b)]()&&this[_0x3d7194(0x13b)][_0x3d7194(0xfd)](_0x346777(this[_0x3d7194(0x16b)][_0x3d7194(0x143)],_0x3d7194(0x1cc)));}catch(_0x222aa8){console[_0x3d7194(0x167)](_0x3d7194(0xfe),_0x222aa8);}finally{this[_0x3d7194(0x98)][_0x3d7194(0xac)](),this[_0x3d7194(0x98)][_0x3d7194(0xcb)](_0x3d7194(0x102)),this[_0x3d7194(0x98)][_0x3d7194(0xc5)](!0x1);}}[_0xbf8f99(0x109)](_0x266dd4){const _0x45376a=_0xbf8f99;this[_0x45376a(0x13b)]['id']===_0x266dd4&&this[_0x45376a(0x104)]();}async[_0xbf8f99(0x87)](){const _0x31d2c6=_0xbf8f99,_0x25da04=this[_0x31d2c6(0x1bb)][_0x31d2c6(0x84)]();this[_0x31d2c6(0x13b)]?.[_0x31d2c6(0xd5)](_0x25da04),this[_0x31d2c6(0x13b)]?.[_0x31d2c6(0xfd)](_0x346777(this[_0x31d2c6(0x16b)][_0x31d2c6(0x143)],_0x31d2c6(0x1cc)));}[_0xbf8f99(0x10c)](){const _0x3f2015=_0xbf8f99;this[_0x3f2015(0x13b)]?.[_0x3f2015(0x128)]();}[_0xbf8f99(0x1ad)](){const _0x2a9971=_0xbf8f99;this[_0x2a9971(0x98)][_0x2a9971(0x1ad)]();}async[_0xbf8f99(0x83)](){const _0x3e600b=_0xbf8f99;await this[_0x3e600b(0x104)]();}async[_0xbf8f99(0xd7)]({message:_0x2b5eba,quickActionData:_0x450ee6}){const _0x4af750=_0xbf8f99;await this[_0x4af750(0x15e)]({'userMessage':_0x2b5eba,'quickActionData':_0x450ee6});}[_0xbf8f99(0x110)](){const _0x30a7db=_0xbf8f99,_0x526bc8=this[_0x30a7db(0x16b)][_0x30a7db(0x127)][_0x30a7db(0x1ce)](_0x30a7db(0x1a1));if(!_0x526bc8)throw new _0x171ebd(_0x30a7db(0x179),this);return _0x526bc8;}async[_0xbf8f99(0x104)](_0x2df5c1){const _0x4aa70c=_0xbf8f99;try{this[_0x4aa70c(0x98)][_0x4aa70c(0xc0)](),await this[_0x4aa70c(0xba)](_0x2df5c1);}catch(_0xb08861){_0x158057(_0x4aa70c(0x1cf),_0xb08861),this[_0x4aa70c(0x13b)]=void 0x0,this[_0x4aa70c(0x98)][_0x4aa70c(0x1a6)]();}}async[_0xbf8f99(0xba)](_0x4fbb4f){const _0x2641ca=_0xbf8f99,_0x30ee5c=this[_0x2641ca(0x16b)][_0x2641ca(0xb1)][_0x2641ca(0x1ce)](_0x123c2c);let _0x230439;_0x30ee5c[_0x2641ca(0x148)]&&_0x30ee5c[_0x2641ca(0xab)](),_0x4fbb4f||!this[_0x2641ca(0x13b)]?_0x230439=this[_0x2641ca(0x16b)][_0x2641ca(0x127)][_0x2641ca(0x1ce)](_0x2641ca(0x74)):this[_0x2641ca(0x98)][_0x2641ca(0x9e)]&&(_0x230439=this[_0x2641ca(0x13b)][_0x2641ca(0xee)]['id']),await this[_0x2641ca(0x1bd)]();const _0x585b07=this[_0x2641ca(0x110)](),_0x5b4143=_0x4fbb4f||_0xc12830();this[_0x2641ca(0x13b)]=new _0x3ad74e({'connector':this[_0x2641ca(0x136)],'chatModels':this[_0x2641ca(0xd0)],'selectedModelId':_0x230439,'conversationId':_0x5b4143,'group':_0x585b07,'getEditor':()=>_0x4f2299(this[_0x2641ca(0x16b)])}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x17c),(_0x2c7a19,_0x149f3b)=>{const _0x38576d=_0x2641ca;this[_0x38576d(0x98)][_0x38576d(0x160)](_0x149f3b),this[_0x38576d(0x98)][_0x38576d(0x1a4)](),this[_0x38576d(0x98)][_0x38576d(0x189)](),this[_0x38576d(0x98)][_0x38576d(0x140)](),_0x4fbb4f||(this[_0x38576d(0x98)][_0x38576d(0x168)](),this[_0x38576d(0x13b)]?.[_0x38576d(0xfd)](_0x346777(this[_0x38576d(0x16b)][_0x38576d(0x143)],_0x38576d(0x1cc))));}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x96),(_0x2bf282,_0x480cfc)=>{const _0x139213=_0x2641ca;this[_0x139213(0x98)][_0x139213(0x17e)](_0x480cfc[_0x139213(0xfb)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xb4),(_0x354975,_0x1e0e4b)=>{const _0x332575=_0x2641ca;this[_0x332575(0x98)][_0x332575(0x1b1)](_0x1e0e4b);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x7e),()=>{const _0x140694=_0x2641ca;this[_0x140694(0x98)][_0x140694(0xc3)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xdc),()=>{const _0x543012=_0x2641ca;this[_0x543012(0x98)][_0x543012(0xc3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x139),(_0x4b5b8f,_0x902d6f)=>{const _0x1c69e4=_0x2641ca;this[_0x1c69e4(0x98)][_0x1c69e4(0x8e)](_0x902d6f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x132),(_0x39c07a,_0x586732)=>{const _0x23d977=_0x2641ca;this[_0x23d977(0x98)][_0x23d977(0x8e)](_0x586732,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x180),()=>{const _0x3a6c97=_0x2641ca;this[_0x3a6c97(0x98)][_0x3a6c97(0x1af)]();}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x17d),async()=>{const _0x580f39=_0x2641ca;await this[_0x580f39(0x98)][_0x580f39(0x1d0)]();}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x198),(_0x1bd5d1,_0x143498)=>{const _0x268f5e=_0x2641ca;this[_0x268f5e(0x98)][_0x268f5e(0x7f)](_0x143498['id']);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xb3),(_0x2717e2,_0x10deec,_0x1c5b0a)=>{const _0x2eb23c=_0x2641ca;this[_0x2eb23c(0x1c5)](_0x10deec,_0x1c5b0a);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x76),(_0x2c4cb2,_0x85e1bb)=>{const _0x8630e8=_0x2641ca;_0x8630e8(0xf9)===_0x85e1bb[_0x8630e8(0xa8)]?this[_0x8630e8(0x98)][_0x8630e8(0x9a)](_0x85e1bb):this[_0x8630e8(0x98)][_0x8630e8(0x13e)](_0x85e1bb);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x142),async(_0x5332c1,_0x5a4e07)=>{const _0x4c335a=_0x2641ca;await this[_0x4c335a(0x107)]({'reply':_0x5a4e07});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x141),(_0xcba882,{reply:_0x577065,index:_0x3d88c3,state:_0x5aca1c})=>{const _0x2c2de5=_0x2641ca;this[_0x2c2de5(0x98)][_0x2c2de5(0x89)]({'id':_0x577065['id'],'index':_0x3d88c3,'state':_0x5aca1c});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xe4),(_0x28d54c,_0x55c5be)=>{const _0x5d04dc=_0x2641ca;if(this[_0x5d04dc(0x98)][_0x5d04dc(0xef)](_0x55c5be[_0x5d04dc(0x92)],_0x55c5be[_0x5d04dc(0x184)]),_0x5d04dc(0xe0)===_0x55c5be[_0x5d04dc(0x92)][_0x5d04dc(0xa8)]){const _0x51863b=[..._0x4f2299(this[_0x5d04dc(0x16b)])[_0x5d04dc(0x19d)][_0x5d04dc(0x19f)][_0x5d04dc(0xe0)][_0x5d04dc(0xf5)]()];this[_0x5d04dc(0x1bb)][_0x5d04dc(0x12e)](_0x51863b,_0x5d04dc(0x9c)+this[_0x5d04dc(0x13b)]?.['id']);}}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x13c),(_0x5dc347,_0x403e5c)=>{const _0x4677a9=_0x2641ca;this[_0x4677a9(0x98)][_0x4677a9(0xaa)](_0x403e5c[_0x4677a9(0x9d)]),_0x4677a9(0x17b)==_0x403e5c[_0x4677a9(0x9d)]&&this[_0x4677a9(0x10c)](),_0x4677a9(0xe0)===_0x403e5c[_0x4677a9(0xa8)]&&this[_0x4677a9(0x1bb)][_0x4677a9(0x188)](_0x4677a9(0x9c)+this[_0x4677a9(0x13b)]?.['id']);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x138),(_0x4c4e12,_0x36b7f0)=>{const _0x47bae6=_0x2641ca;this[_0x47bae6(0x98)][_0x47bae6(0x12f)](_0x36b7f0[_0x47bae6(0x92)][_0x47bae6(0x9d)],_0x36b7f0[_0x47bae6(0x184)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x1a0),(_0x26deba,_0x29d7b8)=>{const _0x4eeabc=_0x2641ca;this[_0x4eeabc(0x98)][_0x4eeabc(0x153)](_0x29d7b8[_0x4eeabc(0xf8)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x135),(_0x59de76,_0x2e0fe1)=>{const _0x34fdfb=_0x2641ca;this[_0x34fdfb(0x98)][_0x34fdfb(0xe3)](_0x2e0fe1[_0x34fdfb(0x116)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xa5),(_0x432050,_0x30fd10)=>{const _0xf9c4be=_0x2641ca;this[_0xf9c4be(0x98)][_0xf9c4be(0x1ab)](_0x30fd10[_0xf9c4be(0x165)],_0x30fd10[_0xf9c4be(0x130)],_0x30fd10[_0xf9c4be(0x90)],_0x30fd10[_0xf9c4be(0x18d)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x147),(_0x741e0,_0x1f90d8)=>{const _0x3e6287=_0x2641ca;this[_0x3e6287(0x98)][_0x3e6287(0x1b7)](_0x1f90d8[_0x3e6287(0x165)],_0x1f90d8[_0x3e6287(0xf6)],_0x1f90d8[_0x3e6287(0x1b3)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x13d),(_0xdbbb1e,_0x2201d4)=>{const _0x5f5797=_0x2641ca;this[_0x5f5797(0x98)][_0x5f5797(0x1c6)](_0x2201d4);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x182),(_0x1607c7,_0x289f7c)=>{const _0x537151=_0x2641ca;this[_0x537151(0x98)][_0x537151(0xdd)](_0x289f7c[_0x537151(0xee)],_0x289f7c[_0x537151(0x171)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x167),(_0x18850e,{error:_0x570120,interactionId:_0x29488c,fileName:_0x17df22,url:_0x258698,sourceId:_0x58dd3d,sourceLabel:_0x1f511b})=>{const _0x29d14e=_0x2641ca,_0x4c6a44=_0x29488c?_0x29488c+':'+_0xc12830():_0xc12830();_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x16c))?this[_0x29d14e(0x98)][_0x29d14e(0xa2)]({'staticMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x1ac)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1ca))||_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1cf))?(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x181)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x10d))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x75),_0x17df22),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x186))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x11f),_0x258698),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x93))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0xb7)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x146))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x175)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x113))?(_0x58dd3d&&this[_0x29d14e(0x98)][_0x29d14e(0xa6)](_0x58dd3d),this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x152),_0x1f511b||_0x29d14e(0x130)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1be))?(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x94)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0xf2)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120));}),await this[_0x2641ca(0x13b)][_0x2641ca(0x14e)](this[_0x2641ca(0x16b)][_0x2641ca(0x127)][_0x2641ca(0x1ce)](_0x2641ca(0x195))),_0x4fbb4f||await this[_0x2641ca(0x13b)][_0x2641ca(0x1ba)]();}async[_0xbf8f99(0x15e)]({userMessage:_0x3d2e51,quickActionData:_0x3ecb21}){const _0x3d1eed=_0xbf8f99;if(!this[_0x3d1eed(0x13b)])throw new _0x171ebd(_0x3d1eed(0xb5));this[_0x3d1eed(0x13b)][_0x3d1eed(0x106)]()&&await this[_0x3d1eed(0x13b)][_0x3d1eed(0x19e)](this[_0x3d1eed(0x1bb)][_0x3d1eed(0x145)]()),this[_0x3d1eed(0x13b)]['id']&&this[_0x3d1eed(0x13b)][_0x3d1eed(0xd8)]&&await this[_0x3d1eed(0x13b)][_0x3d1eed(0x187)]({'userMessage':_0x3d2e51,'quickActionData':_0x3ecb21}),this[_0x3d1eed(0x1c8)]();}[_0xbf8f99(0x1c8)](){const _0x2a58bc=_0xbf8f99,_0x43dc95=_0x4f2299(this[_0x2a58bc(0x16b)])[_0x2a58bc(0x19d)],_0x3886ea=Array[_0x2a58bc(0xd4)](_0x43dc95[_0x2a58bc(0x170)][_0x2a58bc(0x193)](_0x2bf65f));_0x43dc95[_0x2a58bc(0xc6)](_0x55a2fa=>{const _0x1e707d=_0x2a58bc;_0x3886ea[_0x1e707d(0x11c)](_0x5edac7=>_0x55a2fa[_0x1e707d(0x1c9)](_0x5edac7));});}[_0xbf8f99(0xa9)](){const _0x1586a3=_0xbf8f99;console[_0x1586a3(0xe8)](_0x1586a3(0x124));}[_0xbf8f99(0x122)](_0x49ea86){const _0x1e85f4=_0xbf8f99;this[_0x1e85f4(0x98)][_0x1e85f4(0x157)](_0x49ea86);}[_0xbf8f99(0xb6)](_0x49fc68){const _0x1eab4b=_0xbf8f99;_0x158057(_0x49fc68[_0x1eab4b(0xe6)]);}[_0xbf8f99(0x12d)](_0x87c3d1){const _0x3893eb=_0xbf8f99;this[_0x3893eb(0x13b)]?.[_0x3893eb(0x99)](_0x87c3d1);}[_0xbf8f99(0x154)](){const _0x200bf4=_0xbf8f99;this[_0x200bf4(0x13b)]?.[_0x200bf4(0xd3)]();}[_0xbf8f99(0xc4)](){const _0x3c8c87=_0xbf8f99;this[_0x3c8c87(0x13b)]?.[_0x3c8c87(0xbc)]();}[_0xbf8f99(0x81)](_0x31ec65){const _0x277abe=_0xbf8f99,[_0x1998ce,_0x5bfc84]=_0x31ec65[_0x277abe(0x101)](':'),_0xfaa857=this[_0x277abe(0x13b)][_0x277abe(0xe7)](_0x1998ce),_0x2c7638=_0xfaa857[_0x277abe(0x9b)](_0x5bfc84);return{'interaction':_0xfaa857,'reply':_0x2c7638};}[_0xbf8f99(0x123)](_0x469d6a,_0x3f45cd=!0x1){const _0x771d7b=_0xbf8f99,_0x4137ed=_0x4f2299(this[_0x771d7b(0x16b)]),_0x1bee3f={'target':_0x4137ed[_0x771d7b(0x11a)][_0x771d7b(0x18a)][_0x771d7b(0xb9)][_0x771d7b(0x1b9)](_0x4137ed[_0x771d7b(0x11a)][_0x771d7b(0x16e)][_0x771d7b(0x15b)](_0x469d6a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3f45cd};_0x3f45cd&&(_0x1bee3f[_0x771d7b(0x18e)]=!0x0),_0xa2a93(_0x1bee3f);}[_0xbf8f99(0x1c5)](_0x587587,_0x4c7ce6=!0x1){const _0x2265cb=_0xbf8f99;this[_0x2265cb(0x98)][_0x2265cb(0xb3)](_0x587587||_0x346777(this[_0x2265cb(0x16b)][_0x2265cb(0x143)],_0x2265cb(0xe1)),_0x4c7ce6);}async[_0xbf8f99(0x107)]({reply:_0x5c40f1,renderingStrategy:_0x428bfa}){const _0x3c4bc5=_0xbf8f99,{id:_0x1d2862,isDone:_0x469906,type:_0x43d139,parsedContent:_0x11c2f0}=_0x5c40f1;if(_0x3c4bc5(0x162)===_0x43d139){const _0x54fb2b=_0x5c40f1[_0x3c4bc5(0x1b4)]({'showDiff':this[_0x3c4bc5(0x98)][_0x3c4bc5(0x196)]});await this[_0x3c4bc5(0x98)][_0x3c4bc5(0xe9)]({'id':_0x1d2862,'parts':_0x54fb2b,'renderingStrategy':_0x428bfa,'isDone':_0x469906});}else _0x3c4bc5(0xf9)===_0x43d139&&await this[_0x3c4bc5(0x98)][_0x3c4bc5(0xad)]({'id':_0x1d2862,'parsedContent':_0x11c2f0,'renderingStrategy':_0x428bfa,'isDone':_0x469906});_0x469906&&_0x5c40f1[_0x3c4bc5(0xda)][_0x3c4bc5(0xca)]>0x0&&this[_0x3c4bc5(0x98)][_0x3c4bc5(0x7b)](_0x1d2862,_0x5c40f1[_0x3c4bc5(0xda)]);}async[_0xbf8f99(0x1bd)](){const _0x458252=_0xbf8f99,_0x1598e7=this[_0x458252(0x13b)]?.[_0x458252(0xea)];_0x1598e7&&(_0x1598e7[_0x458252(0xbb)](),this[_0x458252(0x98)][_0x458252(0x121)](_0x1598e7));}async[_0xbf8f99(0x177)](){const _0x42b966=_0xbf8f99,_0x4aff5e=this[_0x42b966(0x13b)]?.[_0x42b966(0xea)];if(_0x4aff5e){for await(const _0x423062 of _0x4aff5e[_0x42b966(0xc1)])await this[_0x42b966(0x107)]({'reply':_0x423062,'renderingStrategy':_0x42b966(0xfa)});}}[_0xbf8f99(0x1b5)](_0x29ad71){const _0x49b40e=_0xbf8f99,_0xb22ab0={'positiveCount':_0x29ad71[_0x49b40e(0x120)][_0x49b40e(0x183)](_0x5ca97a=>_0x49b40e(0x15d)===_0x5ca97a[_0x49b40e(0xed)])[_0x49b40e(0xca)],'totalCount':_0x29ad71[_0x49b40e(0x120)][_0x49b40e(0xca)],'modificationId':_0x29ad71['id']},_0x14cb89=this[_0x49b40e(0x13b)][_0x49b40e(0xe7)](_0x29ad71[_0x49b40e(0x1aa)])[_0x49b40e(0xbf)];this[_0x49b40e(0x136)][_0x49b40e(0x1c2)](this[_0x49b40e(0x13b)]['id'],_0x14cb89,_0xb22ab0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbdee2c=_0x4d1f;(function(_0x5e03b5,_0x2495e2){const _0x43807d=_0x4d1f,_0x3f3d32=_0x5e03b5();while(!![]){try{const _0x3ca13d=-parseInt(_0x43807d(0x17b))/0x1+-parseInt(_0x43807d(0x19f))/0x2+-parseInt(_0x43807d(0x18a))/0x3+-parseInt(_0x43807d(0x1d0))/0x4+-parseInt(_0x43807d(0x17c))/0x5*(-parseInt(_0x43807d(0x1af))/0x6)+-parseInt(_0x43807d(0x1b5))/0x7*(parseInt(_0x43807d(0x1e1))/0x8)+parseInt(_0x43807d(0x18e))/0x9;if(_0x3ca13d===_0x2495e2)break;else _0x3f3d32['push'](_0x3f3d32['shift']());}catch(_0x112287){_0x3f3d32['push'](_0x3f3d32['shift']());}}}(_0x3624,0xd087e));import{ContextPlugin as _0xf173a2}from'ckeditor5/src/core.js';function _0x4d1f(_0x3113be,_0x3baec1){const _0x36248e=_0x3624();return _0x4d1f=function(_0x4d1f3c,_0x2a53d1){_0x4d1f3c=_0x4d1f3c-0x174;let _0x5d17d8=_0x36248e[_0x4d1f3c];return _0x5d17d8;},_0x4d1f(_0x3113be,_0x3baec1);}import{_isMotionReduced as _0x24f5d8}from'ckeditor5/src/utils.js';import{AIChatView as _0x228520}from'./ui/aichatview.js';import{AITabs as _0x199f1b}from'../aitabs/aitabs.js';import{getTranslation as _0x3430ba}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2e9d86}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x19f5f4}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x4e14b3}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x342062}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x1967c9}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xdd0503}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xf173a2{static get[_0xbdee2c(0x1b3)](){return[_0x199f1b];}[_0xbdee2c(0x210)];static get[_0xbdee2c(0x1cf)](){const _0x10b190=_0xbdee2c;return _0x10b190(0x17d);}static get[_0xbdee2c(0x20d)](){return!0x0;}static get[_0xbdee2c(0x1fc)](){return!0x0;}[_0xbdee2c(0x1e0)]=_0xbdee2c(0x1f3);[_0xbdee2c(0x1f9)]=!0x0;[_0xbdee2c(0x1ee)];[_0xbdee2c(0x19c)];[_0xbdee2c(0x205)]=void 0x0;[_0xbdee2c(0x1bc)]=!0x1;constructor(_0x24dd4e){const _0x3e7962=_0xbdee2c;super(_0x24dd4e);const _0x484199=this[_0x3e7962(0x176)][_0x3e7962(0x1c8)][_0x3e7962(0x198)](_0x3e7962(0x19b));this[_0x3e7962(0x203)](_0x3e7962(0x1b7),!0x1),this[_0x3e7962(0x1ee)]=new _0x4e14b3(),this[_0x3e7962(0x210)]=new _0x228520(this[_0x3e7962(0x176)][_0x3e7962(0x1bd)],{'showResizeButton':_0x484199[_0x3e7962(0x17e)],'contextResourcesSearchInputVisibleFrom':this[_0x3e7962(0x176)][_0x3e7962(0x20e)][_0x3e7962(0x198)](_0x3e7962(0x202))}),this[_0x3e7962(0x210)][_0x3e7962(0x1ff)](..._0x342062)['to'](this),this[_0x3e7962(0x210)]['on'](_0x3e7962(0x1ea),(_0x2ec3bd,{showDiff:_0x1ac8cb})=>{const _0x28d84e=_0x3e7962;this[_0x28d84e(0x1f9)]=_0x1ac8cb;}),_0x484199[_0x3e7962(0x1ec)][_0x3e7962(0x1db)]({'id':_0x3e7962(0x188),'buttonLabel':_0x3430ba(this[_0x3e7962(0x176)][_0x3e7962(0x1bd)],_0x3e7962(0x209)),'buttonIcon':_0x2e9d86,'order':0x0,'content':this[_0x3e7962(0x210)]}),this[_0x3e7962(0x210)][_0x3e7962(0x1cd)][_0x3e7962(0x18c)](_0x3e7962(0x20b))['to'](this,_0x3e7962(0x1b7),_0x6e3cda=>_0x6e3cda),this[_0x3e7962(0x210)][_0x3e7962(0x1fd)][_0x3e7962(0x18c)](_0x3e7962(0x1c5))['to'](this,_0x3e7962(0x1b7),_0x225dae=>_0x225dae),this[_0x3e7962(0x210)][_0x3e7962(0x1cd)][_0x3e7962(0x214)](this[_0x3e7962(0x1f4)]()),this[_0x3e7962(0x18c)](_0x3e7962(0x1a1))['to'](this[_0x3e7962(0x210)][_0x3e7962(0x1cd)],_0x3e7962(0x1a1));}[_0xbdee2c(0x1a5)](){const _0x22791f=_0xbdee2c;super[_0x22791f(0x1a5)](),this[_0x22791f(0x205)]&&clearInterval(this[_0x22791f(0x205)]);}[_0xbdee2c(0x1a0)](_0xca8c84){const _0x5e80ee=_0xbdee2c;this[_0x5e80ee(0x210)][_0x5e80ee(0x1fd)][_0x5e80ee(0x217)](),this[_0x5e80ee(0x210)][_0x5e80ee(0x1cd)][_0x5e80ee(0x183)](),this[_0x5e80ee(0x210)][_0x5e80ee(0x1cd)][_0x5e80ee(0x1d3)](_0xca8c84[_0x5e80ee(0x206)],!this[_0x5e80ee(0x176)][_0x5e80ee(0x20e)][_0x5e80ee(0x198)](_0x5e80ee(0x194))),this[_0x5e80ee(0x1c2)]({'id':_0x5e80ee(0x1bb),'staticMessage':_0x3430ba(this[_0x5e80ee(0x176)][_0x5e80ee(0x1bd)],_0x5e80ee(0x207))});}[_0xbdee2c(0x1c2)]({id:_0x5dc882,staticMessage:_0x31a6aa}){const _0x1e76cd=_0xbdee2c;this[_0x1e76cd(0x210)][_0x1e76cd(0x1fd)][_0x1e76cd(0x1fe)](_0x1e76cd(0x1f7),{'id':_0x5dc882,'initialContent':_0x1e76cd(0x1f0)+_0x31a6aa+_0x1e76cd(0x17f)});}[_0xbdee2c(0x213)](_0x2ee7a7){const _0x112a82=_0xbdee2c,_0x2305b0=_0x2ee7a7[_0x112a82(0x204)]?.[_0x112a82(0x1e3)]||_0x2ee7a7[_0x112a82(0x190)];this[_0x112a82(0x210)][_0x112a82(0x1fd)][_0x112a82(0x1fe)](_0x112a82(0x1e5),{'contextItems':Array[_0x112a82(0x179)](_0x2ee7a7[_0x112a82(0x1d8)][_0x112a82(0x17a)]()),'initialContent':_0x112a82(0x1f0)+_0x2305b0+_0x112a82(0x17f),'id':_0x2ee7a7['id']});}[_0xbdee2c(0x1b4)]({errorMessage:_0x242637,id:_0x1cd252}){const _0xd3bb24=_0xbdee2c;this[_0xd3bb24(0x210)][_0xd3bb24(0x1fd)][_0xd3bb24(0x1fe)](_0xd3bb24(0x1a8),{'initialContent':_0xd3bb24(0x1f0)+_0x242637+_0xd3bb24(0x17f),'id':_0x1cd252});}[_0xbdee2c(0x177)](_0x44eb00){const _0x58b5c4=_0xbdee2c;return this[_0x58b5c4(0x1ee)][_0x58b5c4(0x19a)](async()=>{const _0x40ca9a=_0x58b5c4;this[_0x40ca9a(0x210)][_0x40ca9a(0x1fd)][_0x40ca9a(0x1fe)](_0x40ca9a(0x1f7),{'id':_0x44eb00[_0x40ca9a(0x1b2)]+':'+_0x44eb00['id']}),this[_0x40ca9a(0x1d4)](null);});}async[_0xbdee2c(0x1d2)](_0x148a43){const _0x296b47=_0xbdee2c,_0x2ebaf0=_0x1967c9(this[_0x296b47(0x176)]);let _0x412ee8=_0x2ebaf0[_0x296b47(0x20e)][_0x296b47(0x198)](_0x296b47(0x197))||[..._0xdd0503];if(_0x2ebaf0[_0x296b47(0x1c8)][_0x296b47(0x1f8)](_0x296b47(0x1c4))){if(!this[_0x296b47(0x1bc)]){this[_0x296b47(0x1bc)]=!0x0;const _0x443b7e=_0x2ebaf0[_0x296b47(0x1b1)][_0x296b47(0x198)](_0x296b47(0x208));this[_0x296b47(0x210)][_0x296b47(0x1fd)][_0x296b47(0x18c)](_0x296b47(0x174))['to'](_0x443b7e,_0x296b47(0x1fb));}}else _0x412ee8=_0x412ee8[_0x296b47(0x218)](_0x48537c=>_0x296b47(0x200)!=_0x48537c);return this[_0x296b47(0x1ee)][_0x296b47(0x19a)](async()=>{const _0x3ba862=_0x296b47;this[_0x3ba862(0x210)][_0x3ba862(0x1fd)][_0x3ba862(0x1fe)](_0x3ba862(0x1cb),{'id':_0x148a43[_0x3ba862(0x1b2)]+':'+_0x148a43['id'],'areActionsDisabled':_0x148a43[_0x3ba862(0x1b8)],'showDiff':this[_0x3ba862(0x1f9)],'availableActions':_0x412ee8}),this[_0x3ba862(0x1d4)](null);});}[_0xbdee2c(0x18d)](_0x4635c7,_0xaf81c0){const _0x3f280b=_0xbdee2c,_0x32bbc1=this[_0x3f280b(0x210)][_0x3f280b(0x1fd)][_0x3f280b(0x1e9)][_0x3f280b(0x180)];if(_0x32bbc1 instanceof _0x19f5f4)return this[_0x3f280b(0x210)][_0x3f280b(0x1fd)][_0x3f280b(0x1e9)][_0x3f280b(0x1eb)](_0x32bbc1),void this[_0x3f280b(0x210)][_0x3f280b(0x1fd)][_0x3f280b(0x1fe)](_0x3f280b(0x199),{'id':_0x4635c7['id'],'capabilities':{'isWebSearchEnabled':_0x32bbc1[_0x3f280b(0x184)][_0x3f280b(0x19e)]||_0xaf81c0[_0x3f280b(0x19e)],'isReasoningEnabled':_0x32bbc1[_0x3f280b(0x184)][_0x3f280b(0x1c6)]||_0xaf81c0[_0x3f280b(0x1c6)]}});this[_0x3f280b(0x210)][_0x3f280b(0x1fd)][_0x3f280b(0x1fe)](_0x3f280b(0x199),{'id':_0x4635c7['id'],'capabilities':_0xaf81c0});}[_0xbdee2c(0x1e6)](_0x3360c7){const _0x312a7e=_0xbdee2c,_0x3a1a59=this[_0x312a7e(0x210)][_0x312a7e(0x1fd)][_0x312a7e(0x1e9)][_0x312a7e(0x1a2)](_0x5af5cc=>_0x5af5cc[_0x312a7e(0x1d6)]['id']==_0x3360c7['id']&&_0x5af5cc instanceof _0x19f5f4);_0x3a1a59&&_0x3a1a59[_0x312a7e(0x203)](_0x312a7e(0x1be),_0x3360c7[_0x312a7e(0x1be)]);}async[_0xbdee2c(0x1c0)](_0x20b0dc){const _0xa3fa0b=_0xbdee2c,_0x401e4c=_0x20b0dc[_0xa3fa0b(0x191)]||this[_0xa3fa0b(0x1e0)];return this[_0xa3fa0b(0x1ee)][_0xa3fa0b(0x19a)](async _0x3110f7=>{const _0x1f1da3=_0xa3fa0b;await this[_0x1f1da3(0x210)][_0x1f1da3(0x1fd)][_0x1f1da3(0x186)]({..._0x20b0dc,'abortSignal':_0x3110f7,'renderingStrategy':_0x401e4c}),_0x20b0dc[_0x1f1da3(0x1ce)]&&this[_0x1f1da3(0x1c1)](_0x20b0dc['id']);});}[_0xbdee2c(0x1c9)](_0x4ed981,_0x5189c8){const _0x8a1bc4=_0xbdee2c;this[_0x8a1bc4(0x210)][_0x8a1bc4(0x1fd)][_0x8a1bc4(0x1ca)](_0x4ed981,_0x5189c8);}async[_0xbdee2c(0x18f)](_0x5e3127){const _0x5b8df0=_0xbdee2c,_0x599ad2=_0x5e3127[_0x5b8df0(0x191)]||this[_0x5b8df0(0x1e0)];return this[_0x5b8df0(0x1ee)][_0x5b8df0(0x19a)](async _0x5f1582=>{const _0x4ccace=_0x5b8df0;await this[_0x4ccace(0x210)][_0x4ccace(0x1fd)][_0x4ccace(0x1f1)]({..._0x5e3127,'abortSignal':_0x5f1582,'renderingStrategy':_0x599ad2}),_0x5e3127[_0x4ccace(0x1ce)]&&this[_0x4ccace(0x1c1)](_0x5e3127['id']);});}[_0xbdee2c(0x1dc)](_0x3c8046){const _0x57401c=_0xbdee2c;this[_0x57401c(0x210)][_0x57401c(0x1fd)][_0x57401c(0x20a)](_0x3c8046);}[_0xbdee2c(0x1c1)](_0x519ba1){const _0x1eb318=_0xbdee2c;this[_0x1eb318(0x210)][_0x1eb318(0x1fd)][_0x1eb318(0x1bf)](_0x519ba1);}[_0xbdee2c(0x1d1)](_0x5eea53){const _0x762c39=_0xbdee2c;this[_0x762c39(0x210)][_0x762c39(0x1fd)][_0x762c39(0x1d9)]()[_0x762c39(0x218)](_0x341d21=>_0x341d21[_0x762c39(0x1e7)](_0x5eea53))[_0x762c39(0x1e2)](_0x43724a=>this[_0x762c39(0x210)][_0x762c39(0x1fd)][_0x762c39(0x1aa)](_0x43724a));}[_0xbdee2c(0x175)](){const _0x43aa06=_0xbdee2c;this[_0x43aa06(0x1d4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x43aa06(0x210)][_0x43aa06(0x1cd)][_0x43aa06(0x1f5)](!this[_0x43aa06(0x176)][_0x43aa06(0x20e)][_0x43aa06(0x198)](_0x43aa06(0x194))),this[_0x43aa06(0x1b7)]=!0x0,this[_0x43aa06(0x210)][_0x43aa06(0x1fd)][_0x43aa06(0x1f2)]();}[_0xbdee2c(0x201)](_0x302dee){const _0x13083b=_0xbdee2c;this[_0x13083b(0x1ee)][_0x13083b(0x1a6)](),this[_0x13083b(0x210)][_0x13083b(0x1fd)][_0x13083b(0x1d9)]()[_0x13083b(0x218)](_0x37d057=>_0x37d057[_0x13083b(0x1e7)](_0x302dee['id']))[_0x13083b(0x1e2)](_0x3d2b5f=>this[_0x13083b(0x1c1)](_0x3d2b5f)),this[_0x13083b(0x1b7)]=!0x1,this[_0x13083b(0x210)][_0x13083b(0x1fd)][_0x13083b(0x1a9)]();}async[_0xbdee2c(0x20c)](){const _0x415c59=_0xbdee2c;return this[_0x415c59(0x1ee)][_0x415c59(0x1a4)][_0x415c59(0x195)](()=>{const _0x518ecd=_0x415c59;this[_0x518ecd(0x1b7)]=!0x1,this[_0x518ecd(0x210)][_0x518ecd(0x1fd)][_0x518ecd(0x1a9)]();});}[_0xbdee2c(0x215)](_0x16af45,_0x2c189e){const _0x590748=_0xbdee2c;this[_0x590748(0x210)][_0x590748(0x1cd)][_0x590748(0x215)](_0x16af45,_0x2c189e);}[_0xbdee2c(0x1d7)](_0x32224a){const _0x2aca3c=_0xbdee2c;this[_0x2aca3c(0x210)][_0x2aca3c(0x1cd)][_0x2aca3c(0x1d7)](_0x32224a);}[_0xbdee2c(0x212)](_0x3a94d5,_0x63f184){const _0x1d779e=_0xbdee2c;this[_0x1d779e(0x210)][_0x1d779e(0x1cd)][_0x1d779e(0x212)](_0x3a94d5,_0x63f184);}[_0xbdee2c(0x1a3)](_0x33669a){const _0x503bb7=_0xbdee2c;this[_0x503bb7(0x210)][_0x503bb7(0x1cd)][_0x503bb7(0x1a3)](_0x33669a);}[_0xbdee2c(0x1ad)](_0x5d9167){const _0x39bfae=_0xbdee2c;this[_0x39bfae(0x210)][_0x39bfae(0x1cd)][_0x39bfae(0x1ad)](_0x5d9167);}[_0xbdee2c(0x18b)](){const _0x573a8b=_0xbdee2c;this[_0x573a8b(0x210)][_0x573a8b(0x1cd)][_0x573a8b(0x18b)]();}[_0xbdee2c(0x1d5)](){const _0xeea1f=_0xbdee2c;this[_0xeea1f(0x210)][_0xeea1f(0x1cd)][_0xeea1f(0x1d5)]();}[_0xbdee2c(0x192)](_0x43bf55,_0x4616b1,_0x2ff8a9){const _0x1a40b1=_0xbdee2c;this[_0x1a40b1(0x210)][_0x1a40b1(0x1cd)][_0x1a40b1(0x192)](_0x43bf55,_0x4616b1,_0x2ff8a9);}[_0xbdee2c(0x1fa)](){const _0xc1ee9b=_0xbdee2c;this[_0xc1ee9b(0x210)][_0xc1ee9b(0x1cd)][_0xc1ee9b(0x1fa)](),this[_0xc1ee9b(0x210)][_0xc1ee9b(0x1cd)][_0xc1ee9b(0x214)](this[_0xc1ee9b(0x1f4)]());}[_0xbdee2c(0x1ba)](_0x4af342){const _0x5911bb=_0xbdee2c;this[_0x5911bb(0x210)][_0x5911bb(0x1cd)][_0x5911bb(0x1ba)](_0x4af342);}[_0xbdee2c(0x211)](_0x2989cb){const _0x5c5265=_0xbdee2c;this[_0x5c5265(0x210)][_0x5c5265(0x1cd)][_0x5c5265(0x185)](_0x2989cb[_0x5c5265(0x19e)]),this[_0x5c5265(0x210)][_0x5c5265(0x1cd)][_0x5c5265(0x216)](_0x2989cb[_0x5c5265(0x1c6)]),this[_0x5c5265(0x210)][_0x5c5265(0x1cd)][_0x5c5265(0x214)](this[_0x5c5265(0x1f4)](_0x2989cb));}[_0xbdee2c(0x1c3)](_0x5528e7,_0x33b15d){const _0x159cd7=_0xbdee2c;this[_0x159cd7(0x210)][_0x159cd7(0x1cd)][_0x159cd7(0x1e8)](_0x5528e7),_0x33b15d&&this[_0x159cd7(0x210)][_0x159cd7(0x1cd)][_0x159cd7(0x1f5)](!0x1);}[_0xbdee2c(0x1cc)](_0x56564a){const _0x39b390=_0xbdee2c;this[_0x39b390(0x1e0)]=_0x56564a;}[_0xbdee2c(0x181)](_0x24ab13){const _0x2a53e3=_0xbdee2c;this[_0x2a53e3(0x210)][_0x2a53e3(0x1fd)][_0x2a53e3(0x181)](_0x24ab13);}[_0xbdee2c(0x219)](){const _0x4afd97=_0xbdee2c;this[_0x4afd97(0x1ed)](_0x3430ba(this[_0x4afd97(0x176)][_0x4afd97(0x1bd)],_0x4afd97(0x209)));}[_0xbdee2c(0x1ed)](_0x2061bb,_0x532392=!0x1){const _0x447147=_0xbdee2c;if(_0x532392&&!_0x24f5d8()&&_0x2061bb[_0x447147(0x196)])return this[_0x447147(0x210)][_0x447147(0x1b9)][_0x447147(0x193)]='',void this[_0x447147(0x1da)](_0x2061bb);this[_0x447147(0x210)][_0x447147(0x1b9)][_0x447147(0x193)]=_0x2061bb;}[_0xbdee2c(0x1d4)](_0x320cca){const _0x20f83f=_0xbdee2c,_0x58dba0=this[_0x20f83f(0x1f6)](_0x320cca);this[_0x20f83f(0x210)][_0x20f83f(0x1fd)][_0x20f83f(0x1d4)](_0x58dba0);}[_0xbdee2c(0x1da)](_0x5ab647){const _0x3d2646=_0xbdee2c;let _0x165591=0x0;clearInterval(this[_0x3d2646(0x205)]),this[_0x3d2646(0x205)]=setInterval(()=>{const _0x169407=_0x3d2646;this[_0x169407(0x210)][_0x169407(0x1b9)][_0x169407(0x193)]=this[_0x169407(0x210)][_0x169407(0x1b9)][_0x169407(0x193)]+_0x5ab647[_0x165591],_0x165591++,_0x165591===_0x5ab647[_0x169407(0x196)]&&clearInterval(this[_0x169407(0x205)]);},0x1e);}[_0xbdee2c(0x1ac)](_0x16c061){const _0x5e343d=_0xbdee2c;this[_0x5e343d(0x210)][_0x5e343d(0x1b9)][_0x5e343d(0x187)]=_0x16c061;}[_0xbdee2c(0x1f6)](_0x4e0200){const _0x4b15b0=_0xbdee2c;return _0x4e0200?_0x4e0200[_0x4b15b0(0x19e)]&&_0x4e0200[_0x4b15b0(0x1c6)]?_0x3430ba(this[_0x4b15b0(0x176)][_0x4b15b0(0x1bd)],_0x4b15b0(0x1de)):_0x4e0200[_0x4b15b0(0x19e)]?_0x3430ba(this[_0x4b15b0(0x176)][_0x4b15b0(0x1bd)],_0x4b15b0(0x1ae)):_0x4e0200[_0x4b15b0(0x1c6)]?_0x3430ba(this[_0x4b15b0(0x176)][_0x4b15b0(0x1bd)],_0x4b15b0(0x1b0)):_0x3430ba(this[_0x4b15b0(0x176)][_0x4b15b0(0x1bd)],_0x4b15b0(0x182)):'';}[_0xbdee2c(0x1f4)](_0x5321c2){const _0x1ea3c2=_0xbdee2c;return _0x5321c2?_0x5321c2[_0x1ea3c2(0x19e)]&&_0x5321c2[_0x1ea3c2(0x1c6)]?_0x3430ba(this[_0x1ea3c2(0x176)][_0x1ea3c2(0x1bd)],_0x1ea3c2(0x20f)):_0x5321c2[_0x1ea3c2(0x19e)]?_0x3430ba(this[_0x1ea3c2(0x176)][_0x1ea3c2(0x1bd)],_0x1ea3c2(0x1e4)):_0x5321c2[_0x1ea3c2(0x1c6)]?_0x3430ba(this[_0x1ea3c2(0x176)][_0x1ea3c2(0x1bd)],_0x1ea3c2(0x19d)):_0x3430ba(this[_0x1ea3c2(0x176)][_0x1ea3c2(0x1bd)],_0x1ea3c2(0x178)):_0x3430ba(this[_0x1ea3c2(0x176)][_0x1ea3c2(0x1bd)],_0x1ea3c2(0x178));}[_0xbdee2c(0x1c7)](_0xdb7fcd,_0x515739,_0x34b34e,_0x49257d){const _0x2a148e=_0xbdee2c;this[_0x2a148e(0x210)][_0x2a148e(0x1c7)](_0xdb7fcd,_0x515739,_0x34b34e,_0x49257d);}[_0xbdee2c(0x1b6)](_0x4ebc7e){const _0x4f42f7=_0xbdee2c;this[_0x4f42f7(0x210)][_0x4f42f7(0x1b6)](_0x4ebc7e);}[_0xbdee2c(0x1ef)](){const _0xd4da=_0xbdee2c;this[_0xd4da(0x210)][_0xd4da(0x1cd)][_0xd4da(0x1ef)]();}[_0xbdee2c(0x1dd)](_0x573344,_0x3816c4){const _0x1f362e=_0xbdee2c;this[_0x1f362e(0x210)][_0x1f362e(0x1fd)][_0x1f362e(0x1df)](_0x573344,_0x3816c4);}[_0xbdee2c(0x1f2)](){const _0x2eb793=_0xbdee2c;this[_0x2eb793(0x210)][_0x2eb793(0x1fd)][_0x2eb793(0x1f2)]();}[_0xbdee2c(0x1a7)](){const _0x40ca88=_0xbdee2c;this[_0x40ca88(0x210)][_0x40ca88(0x1cd)][_0x40ca88(0x1ab)]=!0x0;}[_0xbdee2c(0x189)](){const _0x13fbd2=_0xbdee2c;this[_0x13fbd2(0x210)][_0x13fbd2(0x1cd)][_0x13fbd2(0x1ab)]=!0x1;}}function _0x3624(){const _0x1d2f79=['isPending','isReasoningEnabled','populateSourceResourceBalloon','plugins','updateFeedItemAIReplySources','updateWebSources','ai-suggestion-reply','setFeedItemRenderingStrategy','chatControls','isDone','pluginName','119728AzFZGr','removeFeedInteraction','addFeedItemAISuggestion','setModelList','setLoadingMessage','clearConversationContextUI','options','removeContextItem','contextItems','getItemIds','_animateConversationTitle','addTab','updateFeedItemAIReplySuggestionPartState','scrollFeedToSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','scrollToSuggestion','feedItemRenderingStrategy','13227856MRyhil','forEach','displayedPrompt','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','user-message','updateFeedInteractionHeader','startsWith','setModel','children','toggleSuggestionDisplayMode','remove','view','setConversationTitle','_promiseQueue','focusPromptInput','<p>','updateSuggestionItem','startAutoScroll','streaming','_getInputPlaceholder','disableModelSelector','_getLoadingMessage','ai-reply','has','showDiff','resetMessageInput','value','isPremiumPlugin','chatFeed','addItem','delegate','insertSuggestion','stopInteraction','ai.chat.context.searchInputVisibleFrom','set','quickActionData','_titleAnimationInterval','availableModels','AI_CHAT_WELCOME_MESSAGE','trackChanges','AI_CHAT_HEADING','updateSuggestionPartState','isLoading','finishInteraction','isOfficialPlugin','config','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','_view','updateCapabilities','setContextItemLoading','addFeedItemUserMessage','setInputPlaceholder','addContextItem','setReasoning','clear','filter','resetConversationTitle','isTrackChangesOn','startInteraction','context','addFeedItemAIReply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','from','values','1283049pPHMlG','55thXjFG','AIChatUI','showResizeButton','</p>','last','toggleLoadingSkeleton','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','enableModelSelector','capabilities','setWebSearch','updateReplyItem','isMaximized','chat','enableControls','4935744qPKmlU','clearPendingContextUI','bind','addFeedInteractionHeader','57990456tYkyGC','updateFeedItemAIReplySuggestionContent','userMessage','renderingStrategy','updateResourceState','label','ai.chat.models.modelSelectorAlwaysVisible','then','length','ai.availableReplyActions','get','interaction-header','enqueue','AITabs','_interactionPromiseResolver','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isWebSearchEnabled','3285908OSfdGa','createConversation','isModelAvailable','find','setIsUploadInProgress','queueEmptyPromise','destroy','abort','disableControls','error-message','stopAutoScroll','removeItem','isDisabled','setIsMaximized','setConversationContext','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','362958AmXoHl','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','commands','interactionId','requires','addFeedItemError','7KbKFlj','closeSourceResourceBalloon','isBusy','areActionsDisabled','chatHeader','setAddContextOptions','conversation-start','_isTrackChangesCommandValueBound','locale','isVisible','markItemAsDone','updateFeedItemAIReplyContent','markFeedItemAsDone','addFeedItemStaticMessage','setSelectedModel','TrackChanges'];_0x3624=function(){return _0x1d2f79;};return _0x3624();}
23
+ const _0xf9347=_0x2ab3;function _0x2ab3(_0x4cb7f6,_0x44c075){const _0x5cca04=_0x5cca();return _0x2ab3=function(_0x2ab32d,_0x39b265){_0x2ab32d=_0x2ab32d-0x76;let _0x5d0c3b=_0x5cca04[_0x2ab32d];return _0x5d0c3b;},_0x2ab3(_0x4cb7f6,_0x44c075);}function _0x5cca(){const _0x31afdd=['get','setContextItemLoading','forEach','conversation-start','options','AI_CHAT_WELCOME_MESSAGE','isModelAvailable','capabilities','scrollFeedToSuggestion','setLoadingMessage','interaction-header','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','removeItem','set','1GclAvV','markFeedItemAsDone','updateSuggestionPartState','isDisabled','from','displayedPrompt','chatFeed','commands','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','config','updateCapabilities','children','removeContextItem','setInputPlaceholder','chat','AITabs','addContextItem','updateFeedItemAIReplySuggestionContent','last','ai-suggestion-reply','setConversationContext','find','label','setIsMaximized','interactionId','updateReplyItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','addFeedItemAIReply','focusPromptInput','toggleLoadingSkeleton','markItemAsDone','isWebSearchEnabled','_titleAnimationInterval','userMessage','pluginName','setIsUploadInProgress','addFeedInteractionHeader','AI_CHAT_HEADING','resetConversationTitle','createConversation','clear','getItemIds','_promiseQueue','enableModelSelector','isBusy','availableModels','feedItemRenderingStrategy','startInteraction','finishInteraction','isPending','resetMessageInput','error-message','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','remove','ai.chat.context.searchInputVisibleFrom','startAutoScroll','then','70960trCbhU','showDiff','addFeedItemUserMessage','user-message','setSelectedModel','addFeedItemAISuggestion','trackChanges','length','_getLoadingMessage','<p>','values','isReasoningEnabled','isVisible','updateFeedItemAIReplyContent','264645ibVHfK','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','57xiHCBp','40zRkMdj','1647564BXeJUS','_animateConversationTitle','setWebSearch','view','isPremiumPlugin','populateSourceResourceBalloon','disableModelSelector','streaming','setModel','_view','setModelList','isMaximized','51716zkSjsP','_getInputPlaceholder','contextItems','insertSuggestion','destroy','value','has','AIChatUI','areActionsDisabled','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','4823767Hdlcux','_interactionPromiseResolver','showResizeButton','790678OLjPxp','</p>','delegate','TrackChanges','queueEmptyPromise','_isTrackChangesCommandValueBound','context','addFeedItemError','abort','closeSourceResourceBalloon','133GVeNhd','ai-reply','isLoading','addItem','startsWith','isTrackChangesOn','updateFeedItemAIReplySuggestionPartState','updateFeedInteractionHeader','clearPendingContextUI','chatHeader','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.availableReplyActions','quickActionData','setConversationTitle','isDone','requires','locale','stopInteraction','12zwDSkb','isOfficialPlugin','stopAutoScroll','addFeedItemStaticMessage','filter','1028753jpprWi','updateFeedItemAIReplySources','plugins','scrollToSuggestion','setFeedItemRenderingStrategy','toggleSuggestionDisplayMode','enableControls','chatControls','updateResourceState','updateWebSources','5tcjKmb','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','addTab','bind','setAddContextOptions','ai.chat.models.modelSelectorAlwaysVisible','enqueue','setReasoning','removeFeedInteraction','clearConversationContextUI'];_0x5cca=function(){return _0x31afdd;};return _0x5cca();}(function(_0x3a6977,_0x2d3008){const _0x3021dc=_0x2ab3,_0x14e660=_0x3a6977();while(!![]){try{const _0x236711=-parseInt(_0x3021dc(0xb9))/0x1*(-parseInt(_0x3021dc(0x11e))/0x2)+-parseInt(_0x3021dc(0x103))/0x3*(parseInt(_0x3021dc(0x111))/0x4)+parseInt(_0x3021dc(0xa0))/0x5*(parseInt(_0x3021dc(0x105))/0x6)+parseInt(_0x3021dc(0x7e))/0x7*(parseInt(_0x3021dc(0xf3))/0x8)+parseInt(_0x3021dc(0x101))/0x9*(parseInt(_0x3021dc(0x104))/0xa)+parseInt(_0x3021dc(0x96))/0xb*(-parseInt(_0x3021dc(0x91))/0xc)+-parseInt(_0x3021dc(0x11b))/0xd;if(_0x236711===_0x2d3008)break;else _0x14e660['push'](_0x14e660['shift']());}catch(_0x43f86a){_0x14e660['push'](_0x14e660['shift']());}}}(_0x5cca,0x3c05a));import{ContextPlugin as _0x568026}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2e8485}from'ckeditor5/src/utils.js';import{AIChatView as _0x2759c1}from'./ui/aichatview.js';import{AITabs as _0x44d1fa}from'../aitabs/aitabs.js';import{getTranslation as _0x3c3c88}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x35182f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x316173}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x4a5093}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xb0a303}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x345e50}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1654c6}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x568026{static get[_0xf9347(0x8e)](){return[_0x44d1fa];}[_0xf9347(0x10e)];static get[_0xf9347(0xdb)](){const _0x1ce4f3=_0xf9347;return _0x1ce4f3(0x118);}static get[_0xf9347(0x92)](){return!0x0;}static get[_0xf9347(0x109)](){return!0x0;}[_0xf9347(0xe7)]=_0xf9347(0x10c);[_0xf9347(0xf4)]=!0x0;[_0xf9347(0xe3)];[_0xf9347(0x11c)];[_0xf9347(0xd9)]=void 0x0;[_0xf9347(0x79)]=!0x1;constructor(_0x287833){const _0x4ae24c=_0xf9347;super(_0x287833);const _0x4058a0=this[_0x4ae24c(0x7a)][_0x4ae24c(0x98)][_0x4ae24c(0xaa)](_0x4ae24c(0xc8));this[_0x4ae24c(0xb8)](_0x4ae24c(0xe5),!0x1),this[_0x4ae24c(0xe3)]=new _0x4a5093(),this[_0x4ae24c(0x10e)]=new _0x2759c1(this[_0x4ae24c(0x7a)][_0x4ae24c(0x8f)],{'showResizeButton':_0x4058a0[_0x4ae24c(0x11d)],'contextResourcesSearchInputVisibleFrom':this[_0x4ae24c(0x7a)][_0x4ae24c(0xc2)][_0x4ae24c(0xaa)](_0x4ae24c(0xf0))}),this[_0x4ae24c(0x10e)][_0x4ae24c(0x76)](..._0xb0a303)['to'](this),this[_0x4ae24c(0x10e)]['on'](_0x4ae24c(0x9b),(_0x56927e,{showDiff:_0x28ac5d})=>{const _0x3c628a=_0x4ae24c;this[_0x3c628a(0xf4)]=_0x28ac5d;}),_0x4058a0[_0x4ae24c(0x108)][_0x4ae24c(0xa2)]({'id':_0x4ae24c(0xc7),'buttonLabel':_0x3c3c88(this[_0x4ae24c(0x7a)][_0x4ae24c(0x8f)],_0x4ae24c(0xde)),'buttonIcon':_0x35182f,'order':0x0,'content':this[_0x4ae24c(0x10e)]}),this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)][_0x4ae24c(0xa3)](_0x4ae24c(0x80))['to'](this,_0x4ae24c(0xe5),_0x2c8796=>_0x2c8796),this[_0x4ae24c(0x10e)][_0x4ae24c(0xbf)][_0x4ae24c(0xa3)](_0x4ae24c(0xea))['to'](this,_0x4ae24c(0xe5),_0x1b627d=>_0x1b627d),this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)][_0x4ae24c(0xc6)](this[_0x4ae24c(0x112)]()),this[_0x4ae24c(0xa3)](_0x4ae24c(0xb0))['to'](this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)],_0x4ae24c(0xb0));}[_0xf9347(0x115)](){const _0x3b033c=_0xf9347;super[_0x3b033c(0x115)](),this[_0x3b033c(0xd9)]&&clearInterval(this[_0x3b033c(0xd9)]);}[_0xf9347(0xe0)](_0x34907f){const _0x51b84a=_0xf9347;this[_0x51b84a(0x10e)][_0x51b84a(0xbf)][_0x51b84a(0xe1)](),this[_0x51b84a(0x10e)][_0x51b84a(0x9d)][_0x51b84a(0xe4)](),this[_0x51b84a(0x10e)][_0x51b84a(0x9d)][_0x51b84a(0x10f)](_0x34907f[_0x51b84a(0xe6)],!this[_0x51b84a(0x7a)][_0x51b84a(0xc2)][_0x51b84a(0xaa)](_0x51b84a(0xa5))),this[_0x51b84a(0x94)]({'id':_0x51b84a(0xad),'staticMessage':_0x3c3c88(this[_0x51b84a(0x7a)][_0x51b84a(0x8f)],_0x51b84a(0xaf))});}[_0xf9347(0x94)]({id:_0x1b5720,staticMessage:_0x51c8f6}){const _0x535da0=_0xf9347;this[_0x535da0(0x10e)][_0x535da0(0xbf)][_0x535da0(0x81)](_0x535da0(0x7f),{'id':_0x1b5720,'initialContent':_0x535da0(0xfc)+_0x51c8f6+_0x535da0(0x11f)});}[_0xf9347(0xf5)](_0x1ef993){const _0x17f278=_0xf9347,_0x179d34=_0x1ef993[_0x17f278(0x8b)]?.[_0x17f278(0xbe)]||_0x1ef993[_0x17f278(0xda)];this[_0x17f278(0x10e)][_0x17f278(0xbf)][_0x17f278(0x81)](_0x17f278(0xf6),{'contextItems':Array[_0x17f278(0xbd)](_0x1ef993[_0x17f278(0x113)][_0x17f278(0xfd)]()),'initialContent':_0x17f278(0xfc)+_0x179d34+_0x17f278(0x11f),'id':_0x1ef993['id']});}[_0xf9347(0x7b)]({errorMessage:_0x9390e2,id:_0x1bcc52}){const _0x45ae25=_0xf9347;this[_0x45ae25(0x10e)][_0x45ae25(0xbf)][_0x45ae25(0x81)](_0x45ae25(0xec),{'initialContent':_0x45ae25(0xfc)+_0x9390e2+_0x45ae25(0x11f),'id':_0x1bcc52});}[_0xf9347(0xd4)](_0x25478a){const _0x4ead2e=_0xf9347;return this[_0x4ead2e(0xe3)][_0x4ead2e(0xa6)](async()=>{const _0xc34e4=_0x4ead2e;this[_0xc34e4(0x10e)][_0xc34e4(0xbf)][_0xc34e4(0x81)](_0xc34e4(0x7f),{'id':_0x25478a[_0xc34e4(0xd1)]+':'+_0x25478a['id']}),this[_0xc34e4(0xb3)](null);});}async[_0xf9347(0xf8)](_0x977b08){const _0x5dfc3d=_0xf9347,_0x55f1f4=_0x345e50(this[_0x5dfc3d(0x7a)]);let _0x26d264=_0x55f1f4[_0x5dfc3d(0xc2)][_0x5dfc3d(0xaa)](_0x5dfc3d(0x8a))||[..._0x1654c6];if(_0x55f1f4[_0x5dfc3d(0x98)][_0x5dfc3d(0x117)](_0x5dfc3d(0x77))){if(!this[_0x5dfc3d(0x79)]){this[_0x5dfc3d(0x79)]=!0x0;const _0x5d0227=_0x55f1f4[_0x5dfc3d(0xc0)][_0x5dfc3d(0xaa)](_0x5dfc3d(0xf9));this[_0x5dfc3d(0x10e)][_0x5dfc3d(0xbf)][_0x5dfc3d(0xa3)](_0x5dfc3d(0x83))['to'](_0x5d0227,_0x5dfc3d(0x116));}}else _0x26d264=_0x26d264[_0x5dfc3d(0x95)](_0x3055a9=>_0x5dfc3d(0x114)!=_0x3055a9);return this[_0x5dfc3d(0xe3)][_0x5dfc3d(0xa6)](async()=>{const _0x425c77=_0x5dfc3d;this[_0x425c77(0x10e)][_0x425c77(0xbf)][_0x425c77(0x81)](_0x425c77(0xcc),{'id':_0x977b08[_0x425c77(0xd1)]+':'+_0x977b08['id'],'areActionsDisabled':_0x977b08[_0x425c77(0x119)],'showDiff':this[_0x425c77(0xf4)],'availableActions':_0x26d264}),this[_0x425c77(0xb3)](null);});}[_0xf9347(0xdd)](_0x1d3a3f,_0x121fff){const _0x9dc131=_0xf9347,_0x5df4d9=this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0xc4)][_0x9dc131(0xcb)];if(_0x5df4d9 instanceof _0x316173)return this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0xc4)][_0x9dc131(0xef)](_0x5df4d9),void this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0x81)](_0x9dc131(0xb4),{'id':_0x1d3a3f['id'],'capabilities':{'isWebSearchEnabled':_0x5df4d9[_0x9dc131(0xb1)][_0x9dc131(0xd8)]||_0x121fff[_0x9dc131(0xd8)],'isReasoningEnabled':_0x5df4d9[_0x9dc131(0xb1)][_0x9dc131(0xfe)]||_0x121fff[_0x9dc131(0xfe)]}});this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0x81)](_0x9dc131(0xb4),{'id':_0x1d3a3f['id'],'capabilities':_0x121fff});}[_0xf9347(0x85)](_0x583078){const _0x4465c7=_0xf9347,_0x23e2c8=this[_0x4465c7(0x10e)][_0x4465c7(0xbf)][_0x4465c7(0xc4)][_0x4465c7(0xce)](_0x124461=>_0x124461[_0x4465c7(0xae)]['id']==_0x583078['id']&&_0x124461 instanceof _0x316173);_0x23e2c8&&_0x23e2c8[_0x4465c7(0xb8)](_0x4465c7(0xff),_0x583078[_0x4465c7(0xff)]);}async[_0xf9347(0x100)](_0x326961){const _0x484e96=_0xf9347,_0x54826f=_0x326961[_0x484e96(0xb5)]||this[_0x484e96(0xe7)];return this[_0x484e96(0xe3)][_0x484e96(0xa6)](async _0x4a08e4=>{const _0x225e11=_0x484e96;await this[_0x225e11(0x10e)][_0x225e11(0xbf)][_0x225e11(0xd2)]({..._0x326961,'abortSignal':_0x4a08e4,'renderingStrategy':_0x54826f}),_0x326961[_0x225e11(0x8d)]&&this[_0x225e11(0xba)](_0x326961['id']);});}[_0xf9347(0x97)](_0x1061e4,_0xb99189){const _0x2888d2=_0xf9347;this[_0x2888d2(0x10e)][_0x2888d2(0xbf)][_0x2888d2(0x9f)](_0x1061e4,_0xb99189);}async[_0xf9347(0xca)](_0x4eaf3f){const _0x15cf01=_0xf9347,_0x462285=_0x4eaf3f[_0x15cf01(0xb5)]||this[_0x15cf01(0xe7)];return this[_0x15cf01(0xe3)][_0x15cf01(0xa6)](async _0x2c999c=>{const _0x220fc7=_0x15cf01;await this[_0x220fc7(0x10e)][_0x220fc7(0xbf)][_0x220fc7(0x88)]({..._0x4eaf3f,'abortSignal':_0x2c999c,'renderingStrategy':_0x462285}),_0x4eaf3f[_0x220fc7(0x8d)]&&this[_0x220fc7(0xba)](_0x4eaf3f['id']);});}[_0xf9347(0x84)](_0x32d625){const _0x17990c=_0xf9347;this[_0x17990c(0x10e)][_0x17990c(0xbf)][_0x17990c(0xbb)](_0x32d625);}[_0xf9347(0xba)](_0x1cd491){const _0xfac0b4=_0xf9347;this[_0xfac0b4(0x10e)][_0xfac0b4(0xbf)][_0xfac0b4(0xd7)](_0x1cd491);}[_0xf9347(0xa8)](_0x274842){const _0x23c8d6=_0xf9347;this[_0x23c8d6(0x10e)][_0x23c8d6(0xbf)][_0x23c8d6(0xe2)]()[_0x23c8d6(0x95)](_0x3c16ac=>_0x3c16ac[_0x23c8d6(0x82)](_0x274842))[_0x23c8d6(0xac)](_0x1d27c1=>this[_0x23c8d6(0x10e)][_0x23c8d6(0xbf)][_0x23c8d6(0xb7)](_0x1d27c1));}[_0xf9347(0xe8)](){const _0x1e9502=_0xf9347;this[_0x1e9502(0xb3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1e9502(0x10e)][_0x1e9502(0x9d)][_0x1e9502(0x10b)](!this[_0x1e9502(0x7a)][_0x1e9502(0xc2)][_0x1e9502(0xaa)](_0x1e9502(0xa5))),this[_0x1e9502(0xe5)]=!0x0,this[_0x1e9502(0x10e)][_0x1e9502(0xbf)][_0x1e9502(0xf1)]();}[_0xf9347(0x90)](_0x29e2f9){const _0x47985f=_0xf9347;this[_0x47985f(0xe3)][_0x47985f(0x7c)](),this[_0x47985f(0x10e)][_0x47985f(0xbf)][_0x47985f(0xe2)]()[_0x47985f(0x95)](_0x99910d=>_0x99910d[_0x47985f(0x82)](_0x29e2f9['id']))[_0x47985f(0xac)](_0x3fa925=>this[_0x47985f(0xba)](_0x3fa925)),this[_0x47985f(0xe5)]=!0x1,this[_0x47985f(0x10e)][_0x47985f(0xbf)][_0x47985f(0x93)]();}async[_0xf9347(0xe9)](){const _0x1fa928=_0xf9347;return this[_0x1fa928(0xe3)][_0x1fa928(0x78)][_0x1fa928(0xf2)](()=>{const _0x48ea4a=_0x1fa928;this[_0x48ea4a(0xe5)]=!0x1,this[_0x48ea4a(0x10e)][_0x48ea4a(0xbf)][_0x48ea4a(0x93)]();});}[_0xf9347(0xc9)](_0x3ed892,_0x3f0c73){const _0x349100=_0xf9347;this[_0x349100(0x10e)][_0x349100(0x9d)][_0x349100(0xc9)](_0x3ed892,_0x3f0c73);}[_0xf9347(0xc5)](_0x473ef2){const _0x2a6a8f=_0xf9347;this[_0x2a6a8f(0x10e)][_0x2a6a8f(0x9d)][_0x2a6a8f(0xc5)](_0x473ef2);}[_0xf9347(0xab)](_0x1dc0d7,_0x593f51){const _0x117530=_0xf9347;this[_0x117530(0x10e)][_0x117530(0x9d)][_0x117530(0xab)](_0x1dc0d7,_0x593f51);}[_0xf9347(0xdc)](_0x18f419){const _0x598cc9=_0xf9347;this[_0x598cc9(0x10e)][_0x598cc9(0x9d)][_0x598cc9(0xdc)](_0x18f419);}[_0xf9347(0xcd)](_0x28c33){const _0x3f3924=_0xf9347;this[_0x3f3924(0x10e)][_0x3f3924(0x9d)][_0x3f3924(0xcd)](_0x28c33);}[_0xf9347(0x86)](){const _0x20758f=_0xf9347;this[_0x20758f(0x10e)][_0x20758f(0x9d)][_0x20758f(0x86)]();}[_0xf9347(0xa9)](){const _0xe79641=_0xf9347;this[_0xe79641(0x10e)][_0xe79641(0x9d)][_0xe79641(0xa9)]();}[_0xf9347(0x9e)](_0x4d8747,_0xf3bb39,_0x28abd7){const _0x3c92eb=_0xf9347;this[_0x3c92eb(0x10e)][_0x3c92eb(0x9d)][_0x3c92eb(0x9e)](_0x4d8747,_0xf3bb39,_0x28abd7);}[_0xf9347(0xeb)](){const _0x596ca1=_0xf9347;this[_0x596ca1(0x10e)][_0x596ca1(0x9d)][_0x596ca1(0xeb)](),this[_0x596ca1(0x10e)][_0x596ca1(0x9d)][_0x596ca1(0xc6)](this[_0x596ca1(0x112)]());}[_0xf9347(0xa4)](_0x3839db){const _0x4831a2=_0xf9347;this[_0x4831a2(0x10e)][_0x4831a2(0x9d)][_0x4831a2(0xa4)](_0x3839db);}[_0xf9347(0xc3)](_0x1947cc){const _0x48cd3a=_0xf9347;this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0x107)](_0x1947cc[_0x48cd3a(0xd8)]),this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0xa7)](_0x1947cc[_0x48cd3a(0xfe)]),this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0xc6)](this[_0x48cd3a(0x112)](_0x1947cc));}[_0xf9347(0xf7)](_0x253892,_0x208fa0){const _0x4b9c39=_0xf9347;this[_0x4b9c39(0x10e)][_0x4b9c39(0x9d)][_0x4b9c39(0x10d)](_0x253892),_0x208fa0&&this[_0x4b9c39(0x10e)][_0x4b9c39(0x9d)][_0x4b9c39(0x10b)](!0x1);}[_0xf9347(0x9a)](_0x5ef5d8){const _0x5056b0=_0xf9347;this[_0x5056b0(0xe7)]=_0x5ef5d8;}[_0xf9347(0xd6)](_0x5bcaa9){const _0x294d1c=_0xf9347;this[_0x294d1c(0x10e)][_0x294d1c(0xbf)][_0x294d1c(0xd6)](_0x5bcaa9);}[_0xf9347(0xdf)](){const _0x458be8=_0xf9347;this[_0x458be8(0x8c)](_0x3c3c88(this[_0x458be8(0x7a)][_0x458be8(0x8f)],_0x458be8(0xde)));}[_0xf9347(0x8c)](_0x121881,_0x342bdb=!0x1){const _0x2c5789=_0xf9347;if(_0x342bdb&&!_0x2e8485()&&_0x121881[_0x2c5789(0xfa)])return this[_0x2c5789(0x10e)][_0x2c5789(0x87)][_0x2c5789(0xcf)]='',void this[_0x2c5789(0x106)](_0x121881);this[_0x2c5789(0x10e)][_0x2c5789(0x87)][_0x2c5789(0xcf)]=_0x121881;}[_0xf9347(0xb3)](_0x5bd635){const _0x21bdce=_0xf9347,_0x3b0da5=this[_0x21bdce(0xfb)](_0x5bd635);this[_0x21bdce(0x10e)][_0x21bdce(0xbf)][_0x21bdce(0xb3)](_0x3b0da5);}[_0xf9347(0x106)](_0x50dfa3){const _0x3453fe=_0xf9347;let _0x38b3d6=0x0;clearInterval(this[_0x3453fe(0xd9)]),this[_0x3453fe(0xd9)]=setInterval(()=>{const _0x3842d6=_0x3453fe;this[_0x3842d6(0x10e)][_0x3842d6(0x87)][_0x3842d6(0xcf)]=this[_0x3842d6(0x10e)][_0x3842d6(0x87)][_0x3842d6(0xcf)]+_0x50dfa3[_0x38b3d6],_0x38b3d6++,_0x38b3d6===_0x50dfa3[_0x3842d6(0xfa)]&&clearInterval(this[_0x3842d6(0xd9)]);},0x1e);}[_0xf9347(0xd0)](_0x5ef7c7){const _0x435944=_0xf9347;this[_0x435944(0x10e)][_0x435944(0x87)][_0x435944(0x110)]=_0x5ef7c7;}[_0xf9347(0xfb)](_0x23cce5){const _0x259d32=_0xf9347;return _0x23cce5?_0x23cce5[_0x259d32(0xd8)]&&_0x23cce5[_0x259d32(0xfe)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0x102)):_0x23cce5[_0x259d32(0xd8)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0xa1)):_0x23cce5[_0x259d32(0xfe)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0x11a)):_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0xee)):'';}[_0xf9347(0x112)](_0x3e9723){const _0x58554c=_0xf9347;return _0x3e9723?_0x3e9723[_0x58554c(0xd8)]&&_0x3e9723[_0x58554c(0xfe)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xd3)):_0x3e9723[_0x58554c(0xd8)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0x89)):_0x3e9723[_0x58554c(0xfe)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xb6)):_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xc1)):_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xc1));}[_0xf9347(0x10a)](_0x474f44,_0x216c09,_0x403aff,_0x29e08e){const _0x2da7d4=_0xf9347;this[_0x2da7d4(0x10e)][_0x2da7d4(0x10a)](_0x474f44,_0x216c09,_0x403aff,_0x29e08e);}[_0xf9347(0x7d)](_0x583fcd){const _0x3c5d53=_0xf9347;this[_0x3c5d53(0x10e)][_0x3c5d53(0x7d)](_0x583fcd);}[_0xf9347(0xd5)](){const _0x24370f=_0xf9347;this[_0x24370f(0x10e)][_0x24370f(0x9d)][_0x24370f(0xd5)]();}[_0xf9347(0xb2)](_0x1d36a2,_0x226d52){const _0x30c17e=_0xf9347;this[_0x30c17e(0x10e)][_0x30c17e(0xbf)][_0x30c17e(0x99)](_0x1d36a2,_0x226d52);}[_0xf9347(0xf1)](){const _0x1fd116=_0xf9347;this[_0x1fd116(0x10e)][_0x1fd116(0xbf)][_0x1fd116(0xf1)]();}[_0xf9347(0xed)](){const _0x5105d8=_0xf9347;this[_0x5105d8(0x10e)][_0x5105d8(0x9d)][_0x5105d8(0xbc)]=!0x0;}[_0xf9347(0x9c)](){const _0x4a70fb=_0xf9347;this[_0x4a70fb(0x10e)][_0x4a70fb(0x9d)][_0x4a70fb(0xbc)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2161dd=_0x21a3;(function(_0x271165,_0x24fe00){const _0x53fbd0=_0x21a3,_0x57912f=_0x271165();while(!![]){try{const _0x68c285=-parseInt(_0x53fbd0(0x21e))/0x1*(parseInt(_0x53fbd0(0x1ff))/0x2)+parseInt(_0x53fbd0(0x1e3))/0x3+-parseInt(_0x53fbd0(0x1e7))/0x4+-parseInt(_0x53fbd0(0x1ae))/0x5+parseInt(_0x53fbd0(0x211))/0x6*(parseInt(_0x53fbd0(0x1a8))/0x7)+-parseInt(_0x53fbd0(0x1cb))/0x8*(parseInt(_0x53fbd0(0x227))/0x9)+parseInt(_0x53fbd0(0x1c4))/0xa;if(_0x68c285===_0x24fe00)break;else _0x57912f['push'](_0x57912f['shift']());}catch(_0x3c7716){_0x57912f['push'](_0x57912f['shift']());}}}(_0x4d1e,0xef704));function _0x4d1e(){const _0x2e17c9=['sessionId','SELECTION','MARKDOWN','4256240jmfZIK','_connector','uploadDocument','populateFromMessage','ai-chat-resource-no-data','sources','error','file-','startsWith','get','text/markdown','_removeContextItem','getDocument','_createContextItemFromContent','getSentContextItems','ai-chat-file-upload-failed','url','TEXT','isCurrentDocumentInContext','has','filter','isSelectionInContext','object\x20with\x20content\x20and\x20type\x20properties','File','4rQfDnJ','_updateResourceInContextState','hidden','HTML','resourceId','addSelectionToContext','_ownerId','_conversationContextItems','addCurrentDocumentToContext','isInContext','DOCUMENT','init','addContextOptionsChanged','label','_getCustomSourcesInitialState','_finishUploadOperation','forEach','current-document','2312214EpsgkD','getResources','loadSourceResources','version','enabled','_pendingContextItems','_ongoingUploads','ai-chat-context-invalid-data','find','attributes','getData','isHidden','url-','494562bEUfHI','push','addResourceToContext','Current\x20document','uploadFile','clearPendingContextItems','delete','message','addToConversationContext','6403338IBPcgY','contextItemAdded','resourceStateChanged','length','updateCurrentDocument','sourceResourcesLoaded','text/html','selection','contextItemLoadingEnded','ai-chat-context-unsupported-type','isCurrentDocumentInConversation','abort','ai-chat-document-upload-failed','fire','uploadUrl','35serFVm','removeSelectionFromContext','stack','_addToConversationContextItem','fetchDocument','name','2535280pDfVLG','_ongoingUploadOperations','content','ai-request-aborted','addFilesToContext','abortController','isReadOnly','_convertTextResourceToFile','URL','_finishContextItemLoading','FILE','type','_addContextItem','size','ai-chat-source-not-found','data','_isResourceInContext','files-','map','end','files','uploadProgressChanged','4585110LcYGoq','document','_toggleAddCurrentDocumentOptionVisibility','_setAddContextOptionsDefaultState','removeFromContext','ai-chat-source-resources-load-failed','set','8QMkXwQ','text/plain','_startUploadOperation','mapContextItemsToRequestData','_findSourceIdsByResourceId','all','resources','start','_mapContextItemToRequestData','from','_addContextOptionsState','addUrlToContext','string','contextItemRemoved','values','ai-chat-resource-load-failed','contextSent','_config','urls','ai-chat-url-upload-failed','getPendingContextItems','uiId','object','getId','5601318TcgxvL'];_0x4d1e=function(){return _0x2e17c9;};return _0x4d1e();}import{CKEditorError as _0x4b5ac4,ObservableMixin as _0x5bb4b3,uid as _0x10684e}from'ckeditor5/src/utils.js';function _0x21a3(_0x27c1fa,_0x300749){const _0x4d1ea7=_0x4d1e();return _0x21a3=function(_0x21a3e6,_0x5b6d9b){_0x21a3e6=_0x21a3e6-0x19e;let _0x18a076=_0x4d1ea7[_0x21a3e6];return _0x18a076;},_0x21a3(_0x27c1fa,_0x300749);}import{AIContextItemType as _0x4be24e,AIContextTextResourceType as _0xafee88}from'../../aicore/model/aicontext.js';import{escape as _0x3caebf}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x2161dd(0x228),_0x2161dd(0x1d8),_0x2161dd(0x1a1),_0x2161dd(0x1db),_0x2161dd(0x1ed),_0x2161dd(0x20b),_0x2161dd(0x19e),_0x2161dd(0x229),_0x2161dd(0x1c3)];export class AIChatContext extends _0x5bb4b3(){[_0x2161dd(0x1e8)];[_0x2161dd(0x1dc)];[_0x2161dd(0x205)];constructor({connector:_0x5425f7,config:_0x2d9ef0,ownerId:_0x422616}){const _0x32edb6=_0x2161dd;super(),this[_0x32edb6(0x1e8)]=_0x5425f7,this[_0x32edb6(0x1dc)]=_0x2d9ef0,this[_0x32edb6(0x205)]=_0x422616;}[_0x2161dd(0x20a)](){const _0x1909a7=_0x2161dd;this[_0x1909a7(0x216)]=new Map(),this[_0x1909a7(0x206)]=new Map(),this[_0x1909a7(0x217)]=new Map(),this[_0x1909a7(0x1af)]=new Map(),this[_0x1909a7(0x1c7)]();}[_0x2161dd(0x1df)](){const _0x2a62d0=_0x2161dd;return this[_0x2a62d0(0x216)];}async[_0x2161dd(0x1ea)](_0x49fbd6){const _0x1b9165=_0x2161dd,_0x30b797=await this[_0x1b9165(0x1f4)](_0x49fbd6);return this[_0x1b9165(0x1ab)](_0x30b797),_0x1b9165(0x210)===_0x30b797[_0x1b9165(0x1e0)]&&this[_0x1b9165(0x1c6)](),_0x30b797;}async[_0x2161dd(0x1f4)](_0x48b69a){const _0x4b626d=_0x2161dd;if(_0x48b69a[_0x4b626d(0x1b9)]===_0x4be24e[_0x4b626d(0x209)]){const _0xb9652d=await this[_0x4b626d(0x1e8)][_0x4b626d(0x1ac)](this[_0x4b626d(0x205)],_0x48b69a['id'])[_0x4b626d(0x1f3)]();return{'id':_0x4b626d(0x210),'uiId':_0x4b626d(0x210),'label':_0x4b626d(0x221),'type':_0x48b69a[_0x4b626d(0x1b9)],'content':_0xb9652d[_0x4b626d(0x1b0)],'hidden':this[_0x4b626d(0x206)][_0x4b626d(0x1fa)](_0x4b626d(0x210)),'version':_0xb9652d[_0x4b626d(0x21a)]?.[_0x4b626d(0x214)],'sessionId':_0xb9652d[_0x4b626d(0x21a)]?.[_0x4b626d(0x1e4)]};}return{'id':_0x48b69a['id'],'uiId':_0x48b69a['id'],'label':_0x48b69a[_0x4b626d(0x21a)]?.[_0x4b626d(0x20c)]||_0x48b69a[_0x4b626d(0x1ad)]||_0x48b69a[_0x4b626d(0x1f7)]||_0x48b69a['id'],'type':_0x48b69a[_0x4b626d(0x1b9)],..._0x48b69a?.[_0x4b626d(0x21a)]?.[_0x4b626d(0x203)]?{'resourceId':_0x48b69a[_0x4b626d(0x21a)]?.[_0x4b626d(0x203)]}:{}};}[_0x2161dd(0x1f5)](){const _0x2b859e=_0x2161dd;return new Map(this[_0x2b859e(0x206)]);}[_0x2161dd(0x1c8)](_0x1a7e43){const _0x5d8eb0=_0x2161dd,_0x7b878a=this[_0x5d8eb0(0x216)][_0x5d8eb0(0x1f0)](_0x1a7e43);_0x7b878a?.[_0x5d8eb0(0x1b4)]||this[_0x5d8eb0(0x1f2)](_0x1a7e43);}[_0x2161dd(0x223)](){const _0x1357b7=_0x2161dd;if(0x0===this[_0x1357b7(0x216)][_0x1357b7(0x1bb)])return;for(const _0x2fc4ad of this[_0x1357b7(0x216)][_0x1357b7(0x1d9)]())this[_0x1357b7(0x1f2)](_0x2fc4ad[_0x1357b7(0x1e0)]);const _0x240d4a=this[_0x1357b7(0x206)][_0x1357b7(0x1f0)](_0x1357b7(0x210))||this[_0x1357b7(0x216)][_0x1357b7(0x1f0)](_0x1357b7(0x210));_0x240d4a&&this[_0x1357b7(0x1ba)]({..._0x240d4a,'isReadOnly':!0x0,'hidden':!0x0});}[_0x2161dd(0x226)](_0x2ac705){const _0xc05920=_0x2161dd;for(const _0x538ce3 of _0x2ac705[_0xc05920(0x1d9)]())this[_0xc05920(0x1ab)](_0x538ce3);this[_0xc05920(0x223)](),this[_0xc05920(0x1a6)](_0xc05920(0x1db),{'contextItems':Array[_0xc05920(0x1d4)](this[_0xc05920(0x1f5)]()[_0xc05920(0x1d9)]())});}[_0x2161dd(0x1f9)](){const _0x5f39d8=_0x2161dd;return this[_0x5f39d8(0x216)][_0x5f39d8(0x1fa)](_0x5f39d8(0x210));}[_0x2161dd(0x1fc)](){const _0x376f7f=_0x2161dd;return this[_0x376f7f(0x216)][_0x376f7f(0x1fa)](_0x376f7f(0x1a0));}[_0x2161dd(0x1a3)](){const _0x16eddf=_0x2161dd;return this[_0x16eddf(0x206)][_0x16eddf(0x1fa)](_0x16eddf(0x210));}static[_0x2161dd(0x1ce)](_0x192397){const _0x5329e1=_0x2161dd;return Array[_0x5329e1(0x1d4)](_0x192397[_0x5329e1(0x1d9)]())[_0x5329e1(0x1c0)](_0x13a2cc=>this[_0x5329e1(0x1d3)](_0x13a2cc))[_0x5329e1(0x1fb)](_0x5772f4=>null!==_0x5772f4);}async[_0x2161dd(0x1b2)](_0x939988,_0xef1680,_0x4187b3=_0x4be24e[_0x2161dd(0x1b8)]){const _0x225252=_0x2161dd,_0x12bebc=_0x225252(0x1bf)+_0x10684e();this[_0x225252(0x1cd)](_0x12bebc);try{await Promise[_0x225252(0x1d0)](_0x939988[_0x225252(0x1c0)](async _0x84004=>{const _0x2e0d41=_0x225252,_0x5ca068=_0x2e0d41(0x1ee)+_0x10684e(),_0x322b2a=_0x3caebf(_0x84004[_0x2e0d41(0x1ad)]);try{this[_0x2e0d41(0x1ba)]({'type':_0x4187b3,'label':_0xef1680?.[_0x2e0d41(0x20c)]||_0x322b2a,'uiId':_0x5ca068,'resourceId':_0xef1680?.[_0x2e0d41(0x203)]},!0x0);const _0x2bef57=this[_0x2e0d41(0x1e8)][_0x2e0d41(0x222)](this[_0x2e0d41(0x205)],_0x84004,_0xef1680);this[_0x2e0d41(0x217)][_0x2e0d41(0x1ca)](_0x5ca068,_0x2bef57[_0x2e0d41(0x1b3)]);const {id:_0x52df5f}=await _0x2bef57[_0x2e0d41(0x1e2)]();this[_0x2e0d41(0x217)][_0x2e0d41(0x224)](_0x5ca068),this[_0x2e0d41(0x1b7)]({'type':_0x4187b3,'id':_0x52df5f,'label':_0xef1680?.[_0x2e0d41(0x20c)]||_0x322b2a,'uiId':_0x5ca068,'resourceId':_0xef1680?.[_0x2e0d41(0x203)]},!0x1);}catch(_0x125308){this[_0x2e0d41(0x217)][_0x2e0d41(0x224)](_0x5ca068);if(!_0x125308[_0x2e0d41(0x225)][_0x2e0d41(0x1ef)](_0x2e0d41(0x1b1))){const _0x1f7133=new _0x4b5ac4(_0x2e0d41(0x1f6),null,{'fileName':_0x322b2a});_0x1f7133[_0x2e0d41(0x1aa)]=_0x125308[_0x2e0d41(0x1aa)],this[_0x2e0d41(0x1a6)](_0x2e0d41(0x1ed),{'error':_0x1f7133,'fileName':_0x322b2a});}this[_0x2e0d41(0x1f2)](_0x5ca068);}}));}finally{this[_0x225252(0x20e)](_0x12bebc);}}[_0x2161dd(0x207)](_0x3b59ea){const _0x233129=_0x2161dd;if(this[_0x233129(0x1f9)]())return;const _0x360e90={'type':_0x4be24e[_0x233129(0x209)],'uiId':_0x233129(0x210),'label':_0x3b59ea,'isReadOnly':this[_0x233129(0x206)][_0x233129(0x1fa)](_0x233129(0x210)),'hidden':this[_0x233129(0x206)][_0x233129(0x1fa)](_0x233129(0x210))};this[_0x233129(0x1ba)](_0x360e90);}async[_0x2161dd(0x22b)](_0x581d5f,_0x367f90,_0x2c15b6,_0xe254b3){const _0x1236ae=_0x2161dd,_0x202667=this[_0x1236ae(0x216)][_0x1236ae(0x1f0)](_0x1236ae(0x210));if(_0x202667&&_0x581d5f){_0x202667[_0x1236ae(0x1a0)]=_0xe254b3?_0xe254b3[_0x1236ae(0x1c0)](_0x4b375e=>({'start':_0x4b375e[_0x1236ae(0x1d2)],'end':_0x4b375e[_0x1236ae(0x1c1)]})):[];try{if(_0x202667[_0x1236ae(0x214)]===_0x367f90)return;const {id:_0x39c82b}=await this[_0x1236ae(0x1e8)][_0x1236ae(0x1e9)](this[_0x1236ae(0x205)],_0x581d5f,{'version':_0x367f90,'sessionId':_0x2c15b6})[_0x1236ae(0x1e2)]();_0x202667['id']=_0x39c82b,_0x202667[_0x1236ae(0x1b0)]=_0x581d5f,_0x202667[_0x1236ae(0x214)]=_0x367f90,_0x202667[_0x1236ae(0x1e4)]=_0x2c15b6;}catch(_0x545faa){const _0x17df4e=new _0x4b5ac4(_0x1236ae(0x1a5),null);_0x17df4e[_0x1236ae(0x1aa)]=_0x545faa[_0x1236ae(0x1aa)],this[_0x1236ae(0x1a6)](_0x1236ae(0x1ed),{'error':_0x17df4e});}}}[_0x2161dd(0x204)](_0xab7614){const _0x433411=_0x2161dd;this[_0x433411(0x1ba)]({'type':_0x4be24e[_0x433411(0x1e5)],'label':_0xab7614,'uiId':_0x433411(0x1a0),'content':_0xab7614});}[_0x2161dd(0x1a9)](){const _0x1011d2=_0x2161dd;this[_0x1011d2(0x1f2)](_0x1011d2(0x1a0));}async[_0x2161dd(0x1d6)](_0x296e75,_0x5e35bd){const _0x329be0=_0x2161dd,_0x4e6b66=_0x329be0(0x21d)+_0x10684e();this[_0x329be0(0x1cd)](_0x4e6b66);const _0x25efee=_0x329be0(0x21d)+_0x10684e();try{this[_0x329be0(0x1ba)]({'type':_0x4be24e[_0x329be0(0x1b6)],'label':_0x5e35bd?.[_0x329be0(0x20c)]||_0x296e75,'uiId':_0x25efee,'resourceId':_0x5e35bd?.[_0x329be0(0x203)]},!0x0);const _0x27d5a1=this[_0x329be0(0x1e8)][_0x329be0(0x1a7)](this[_0x329be0(0x205)],_0x296e75,_0x5e35bd);this[_0x329be0(0x217)][_0x329be0(0x1ca)](_0x25efee,_0x27d5a1[_0x329be0(0x1b3)]);const {id:_0x195757}=await _0x27d5a1[_0x329be0(0x1e2)]();this[_0x329be0(0x217)][_0x329be0(0x224)](_0x25efee),this[_0x329be0(0x1b7)]({'type':_0x4be24e[_0x329be0(0x1b6)],'id':_0x195757,'label':_0x5e35bd?.[_0x329be0(0x20c)]||_0x296e75,'uiId':_0x25efee,'resourceId':_0x5e35bd?.[_0x329be0(0x203)]},!0x1);}catch(_0x3a7ec0){this[_0x329be0(0x217)][_0x329be0(0x224)](_0x25efee),(_0x3a7ec0[_0x329be0(0x225)][_0x329be0(0x1ef)](_0x329be0(0x1b1))||this[_0x329be0(0x1a6)](_0x329be0(0x1ed),{'error':new _0x4b5ac4(_0x329be0(0x1de),this,{'url':_0x296e75,'originalError':_0x3a7ec0}),'url':_0x296e75}),this[_0x329be0(0x1f2)](_0x25efee));}finally{this[_0x329be0(0x20e)](_0x4e6b66);}}async[_0x2161dd(0x213)](_0x182386,_0x51b9b2,_0x158bb9){const _0x1acff3=_0x2161dd,_0x5a01de=this[_0x1acff3(0x1d5)][_0x1acff3(0x1ec)][_0x1acff3(0x219)](_0x510153=>_0x510153['id']===_0x182386);if(!_0x5a01de)return this[_0x1acff3(0x1a6)](_0x1acff3(0x1ed),{'error':new _0x4b5ac4(_0x1acff3(0x1bc),this,{'sourceId':_0x182386}),'sourceId':_0x182386}),[];try{const _0x48d219=(await _0x5a01de[_0x1acff3(0x212)](_0x51b9b2))[_0x1acff3(0x1c0)](_0x85f5fb=>{const _0x1a680f=_0x1acff3,_0x5a727c=this[_0x1a680f(0x1be)](_0x85f5fb['id']);return{..._0x85f5fb,'isInContext':_0x5a727c};});return _0x5a01de[_0x1acff3(0x1d1)]=_0x48d219,this[_0x1acff3(0x1a6)](_0x1acff3(0x19e),{'sourceId':_0x182386,'source':_0x5a01de,'resources':_0x48d219,'uid':_0x158bb9}),_0x48d219;}catch(_0x546207){return this[_0x1acff3(0x1a6)](_0x1acff3(0x1ed),{'error':new _0x4b5ac4(_0x1acff3(0x1c9),this,{'sourceId':_0x182386,'originalError':_0x546207}),'sourceId':_0x182386,'sourceLabel':_0x5a01de[_0x1acff3(0x20c)]}),[];}}async[_0x2161dd(0x220)](_0xad8f82,_0x268922){const _0x388c17=_0x2161dd;if(this[_0x388c17(0x1be)](_0x268922['id']))return;let _0x537948=_0x268922[_0x388c17(0x1bd)];if(!_0x537948&&_0xad8f82[_0x388c17(0x21b)])try{_0x537948=await _0xad8f82[_0x388c17(0x21b)](_0x268922['id']);}catch(_0x4572cd){return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x1da),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'originalError':_0x4572cd}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});}if(_0x537948)switch(_0x268922[_0x388c17(0x1b9)]){case _0x4be24e[_0x388c17(0x1b6)]:if(_0x388c17(0x1d7)!=typeof _0x537948)return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x218),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'expectedType':_0x388c17(0x1d7),'actualType':typeof _0x537948}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});await this[_0x388c17(0x1d6)](_0x537948,{'label':_0x268922[_0x388c17(0x20c)],'resourceId':_0x268922['id']});break;case _0x4be24e[_0x388c17(0x1b8)]:if(!(_0x537948 instanceof File))return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x218),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'expectedType':_0x388c17(0x1fe),'actualType':typeof _0x537948}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});await this[_0x388c17(0x1b2)]([_0x537948],{'label':_0x268922[_0x388c17(0x20c)],'resourceId':_0x268922['id']});break;case _0x4be24e[_0x388c17(0x1f8)]:if(_0x388c17(0x1e1)!=typeof _0x537948||!(_0x388c17(0x1b0)in _0x537948)||!(_0x388c17(0x1b9)in _0x537948))return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x218),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'expectedType':_0x388c17(0x1fd),'actualType':typeof _0x537948}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});_0x537948=AIChatContext[_0x388c17(0x1b5)](_0x537948,_0x268922[_0x388c17(0x20c)]),await this[_0x388c17(0x1b2)]([_0x537948],{'label':_0x268922[_0x388c17(0x20c)],'resourceId':_0x268922['id']},_0x4be24e[_0x388c17(0x1f8)]);break;default:this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x1a2),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'resourceType':_0x268922[_0x388c17(0x1b9)]}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});}else this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x1eb),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});}static[_0x2161dd(0x1b5)](_0x5c85de,_0xac0fb0){const _0x4e8112=_0x2161dd;switch(_0x5c85de[_0x4e8112(0x1b9)]){case _0xafee88[_0x4e8112(0x1e6)]:return new File([_0x5c85de[_0x4e8112(0x1b0)]],_0xac0fb0,{'type':_0x4e8112(0x1f1)});case _0xafee88[_0x4e8112(0x202)]:return new File([_0x5c85de[_0x4e8112(0x1b0)]],_0xac0fb0,{'type':_0x4e8112(0x19f)});default:return new File([_0x5c85de[_0x4e8112(0x1b0)]],_0xac0fb0,{'type':_0x4e8112(0x1cc)});}}static[_0x2161dd(0x1d3)](_0x4bb66e){const _0x5f25de=_0x2161dd;switch(_0x4bb66e[_0x5f25de(0x1b9)]){case _0x4be24e[_0x5f25de(0x1b8)]:return{'type':_0x4be24e[_0x5f25de(0x1b8)],'id':_0x4bb66e['id']};case _0x4be24e[_0x5f25de(0x1b6)]:return{'type':_0x4be24e[_0x5f25de(0x1b6)],'id':_0x4bb66e['id']};case _0x4be24e[_0x5f25de(0x209)]:return{'type':_0x4be24e[_0x5f25de(0x209)],'id':_0x4bb66e['id'],..._0x4bb66e[_0x5f25de(0x1a0)]?.[_0x5f25de(0x22a)]&&{'selection':_0x4bb66e[_0x5f25de(0x1a0)]}};case _0x4be24e[_0x5f25de(0x1f8)]:return{'type':_0x4be24e[_0x5f25de(0x1b8)],'id':_0x4bb66e['id']};default:return null;}}[_0x2161dd(0x1ba)](_0x3eb18a,_0x3edda1=!0x1){const _0x330172=_0x2161dd;if(this[_0x330172(0x216)][_0x330172(0x1ca)](_0x3eb18a[_0x330172(0x1e0)],_0x3eb18a),_0x3eb18a[_0x330172(0x201)]||this[_0x330172(0x1a6)](_0x330172(0x228),{'contextItem':_0x3eb18a,'isLoading':_0x3edda1}),_0x330172(0x210)===_0x3eb18a[_0x330172(0x1e0)]&&this[_0x330172(0x1c6)](),_0x3eb18a[_0x330172(0x203)]){const _0x3c8c96=this[_0x330172(0x1cf)](_0x3eb18a[_0x330172(0x203)]);_0x3c8c96&&_0x3c8c96[_0x330172(0x20f)](_0x59f56d=>{const _0x252866=_0x330172;this[_0x252866(0x200)](_0x59f56d,_0x3eb18a[_0x252866(0x203)],!0x0);});}}[_0x2161dd(0x1f2)](_0x4d3613){const _0x3f1df6=_0x2161dd,_0x3bedf3=this[_0x3f1df6(0x216)][_0x3f1df6(0x1f0)](_0x4d3613),_0x2cc969=this[_0x3f1df6(0x217)][_0x3f1df6(0x1f0)](_0x4d3613);if(_0x2cc969&&(_0x2cc969[_0x3f1df6(0x1a4)](),this[_0x3f1df6(0x217)][_0x3f1df6(0x224)](_0x4d3613)),_0x3bedf3?.[_0x3f1df6(0x203)]){const _0x10bb54=this[_0x3f1df6(0x1cf)](_0x3bedf3[_0x3f1df6(0x203)]);_0x10bb54&&_0x10bb54[_0x3f1df6(0x20f)](_0x296970=>{const _0x7f26dc=_0x3f1df6;this[_0x7f26dc(0x200)](_0x296970,_0x3bedf3[_0x7f26dc(0x203)],!0x1);});}this[_0x3f1df6(0x216)][_0x3f1df6(0x224)](_0x4d3613),this[_0x3f1df6(0x1a6)](_0x3f1df6(0x1d8),{'uiId':_0x4d3613,'type':_0x3bedf3?.[_0x3f1df6(0x1b9)]}),_0x3f1df6(0x210)===_0x4d3613&&this[_0x3f1df6(0x1c6)]();}[_0x2161dd(0x1b7)](_0x5a00a4,_0x53c0ff){const _0x22f186=_0x2161dd;if(this[_0x22f186(0x216)][_0x22f186(0x1fa)](_0x5a00a4[_0x22f186(0x1e0)])&&(this[_0x22f186(0x216)][_0x22f186(0x1ca)](_0x5a00a4[_0x22f186(0x1e0)],_0x5a00a4),this[_0x22f186(0x1a6)](_0x22f186(0x1a1),{'contextItem':_0x5a00a4,'isLoading':_0x53c0ff}),_0x5a00a4[_0x22f186(0x203)])){const _0x4517ed=this[_0x22f186(0x1cf)](_0x5a00a4[_0x22f186(0x203)]);_0x4517ed&&_0x4517ed[_0x22f186(0x20f)](_0x3873fa=>{const _0x7c2896=_0x22f186;this[_0x7c2896(0x200)](_0x3873fa,_0x5a00a4[_0x7c2896(0x203)],!0x0);});}}[_0x2161dd(0x1ab)](_0x1d799a){const _0x38a752=_0x2161dd;this[_0x38a752(0x206)][_0x38a752(0x1ca)](_0x1d799a[_0x38a752(0x1e0)],_0x1d799a);}[_0x2161dd(0x1c7)](){const _0x5c123c=_0x2161dd;this[_0x5c123c(0x1d5)]={'document':{'enabled':!0x1!==this[_0x5c123c(0x1dc)]?.[_0x5c123c(0x1c5)]?.[_0x5c123c(0x215)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5c123c(0x1dc)]?.[_0x5c123c(0x1dd)]?.[_0x5c123c(0x215)]},'files':{'enabled':!0x1!==this[_0x5c123c(0x1dc)]?.[_0x5c123c(0x1c2)]?.[_0x5c123c(0x215)]},'sources':this[_0x5c123c(0x20d)]()},this[_0x5c123c(0x1a6)](_0x5c123c(0x20b),{'options':this[_0x5c123c(0x1d5)]});}[_0x2161dd(0x20d)](){const _0x355789=_0x2161dd;return this[_0x355789(0x1dc)]?.[_0x355789(0x1ec)]?.[_0x355789(0x1c0)](_0x580759=>({..._0x580759,'resources':[]}))??[];}[_0x2161dd(0x1c6)](){const _0x105dc9=_0x2161dd,_0x2bdc8b=this[_0x105dc9(0x1f9)]()||this[_0x105dc9(0x1a3)]();this[_0x105dc9(0x1d5)][_0x105dc9(0x1c5)][_0x105dc9(0x21c)]=_0x2bdc8b,this[_0x105dc9(0x1a6)](_0x105dc9(0x20b),{'options':this[_0x105dc9(0x1d5)]});}[_0x2161dd(0x1be)](_0x284678){const _0x17ba50=_0x2161dd;for(const _0x35ed57 of this[_0x17ba50(0x216)][_0x17ba50(0x1d9)]())if(_0x35ed57[_0x17ba50(0x203)]===_0x284678)return!0x0;for(const _0x2c0b5f of this[_0x17ba50(0x206)][_0x17ba50(0x1d9)]())if(_0x2c0b5f[_0x17ba50(0x203)]===_0x284678)return!0x0;return!0x1;}[_0x2161dd(0x1cf)](_0x54b941){const _0x579027=_0x2161dd,_0x29780d=[];for(const _0x26849b of this[_0x579027(0x1d5)][_0x579027(0x1ec)]){_0x26849b[_0x579027(0x1d1)][_0x579027(0x219)](_0x11f7a6=>_0x11f7a6['id']===_0x54b941)&&_0x29780d[_0x579027(0x21f)](_0x26849b['id']);}return 0x0===_0x29780d[_0x579027(0x22a)]?null:_0x29780d;}[_0x2161dd(0x200)](_0x215134,_0xad55af,_0x44e874){const _0x4314b1=_0x2161dd,_0x51f081=this[_0x4314b1(0x1d5)][_0x4314b1(0x1ec)][_0x4314b1(0x219)](_0xf30dc7=>_0xf30dc7['id']===_0x215134);if(!_0x51f081)return;const _0x2e82f3=_0x51f081[_0x4314b1(0x1d1)][_0x4314b1(0x219)](_0x229142=>_0x229142['id']===_0xad55af);_0x2e82f3&&(_0x2e82f3[_0x4314b1(0x208)]=_0x44e874,this[_0x4314b1(0x1a6)](_0x4314b1(0x229),{'sourceId':_0x215134,'resourceId':_0xad55af,'isInContext':_0x44e874}));}[_0x2161dd(0x1cd)](_0x94654e){const _0x1fd8de=_0x2161dd;this[_0x1fd8de(0x1af)][_0x1fd8de(0x1ca)](_0x94654e,!0x0),this[_0x1fd8de(0x1af)][_0x1fd8de(0x1bb)]&&this[_0x1fd8de(0x1a6)](_0x1fd8de(0x1c3),{'isUploadInProgress':!0x0});}[_0x2161dd(0x20e)](_0x33496f){const _0x4448ec=_0x2161dd;this[_0x4448ec(0x1af)][_0x4448ec(0x224)](_0x33496f),0x0===this[_0x4448ec(0x1af)][_0x4448ec(0x1bb)]&&this[_0x4448ec(0x1a6)](_0x4448ec(0x1c3),{'isUploadInProgress':!0x1});}}
23
+ const _0x535928=_0x411c;function _0x3046(){const _0x55aedd=['_toggleAddCurrentDocumentOptionVisibility','addSelectionToContext','document','_addContextOptionsState','FILE','object\x20with\x20content\x20and\x20type\x20properties','resources','_connector','HTML','filter','_addContextItem','data','addFilesToContext','text/html','URL','abortController','message','_updateResourceInContextState','error','start','type','_finishUploadOperation','3LdElwK','getPendingContextItems','url-','length','_mapContextItemToRequestData','addContextOptionsChanged','loadSourceResources','_isResourceInContext','MARKDOWN','files-','ai-chat-file-upload-failed','169438XrgAHz','8275700pdOWOo','_finishContextItemLoading','content','label','_removeContextItem','ai-chat-context-invalid-data','mapContextItemsToRequestData','Current\x20document','ai-chat-source-resources-load-failed','object','_ongoingUploads','get','startsWith','hidden','_addToConversationContextItem','24uZybdp','delete','isSelectionInContext','uploadProgressChanged','_convertTextResourceToFile','end','set','_conversationContextItems','find','ai-chat-document-upload-failed','stack','text/plain','getData','_ongoingUploadOperations','getResources','738164FUNHAU','forEach','_pendingContextItems','all','_createContextItemFromContent','addCurrentDocumentToContext','9PxNatN','size','getDocument','TEXT','_getCustomSourcesInitialState','fire','111235FmZdHN','url','from','addToConversationContext','string','populateFromMessage','File','file-','isCurrentDocumentInContext','removeSelectionFromContext','fetchDocument','attributes','525030AINTQI','1117312DtEbMF','push','values','_ownerId','updateCurrentDocument','map','DOCUMENT','ai-chat-resource-load-failed','sourceResourcesLoaded','_startUploadOperation','contextItemAdded','uploadUrl','isCurrentDocumentInConversation','sources','getId','uploadFile','init','ai-request-aborted','SELECTION','resourceId','has','resourceStateChanged','version','isReadOnly','files','clearPendingContextItems','isInContext','text/markdown','urls','contextItemRemoved','uploadDocument','uiId','ai-chat-context-unsupported-type','sessionId','contextItemLoadingEnded','308322uZAXei','getSentContextItems','selection','addUrlToContext','ai-chat-resource-no-data','contextSent','removeFromContext','abort','_config','_findSourceIdsByResourceId','addResourceToContext','_setAddContextOptionsDefaultState','name','isHidden','ai-chat-source-not-found','enabled','current-document','ai-chat-url-upload-failed'];_0x3046=function(){return _0x55aedd;};return _0x3046();}(function(_0x171fe2,_0x3124aa){const _0x51ddc4=_0x411c,_0x158fbb=_0x171fe2();while(!![]){try{const _0x19ce12=-parseInt(_0x51ddc4(0x155))/0x1+-parseInt(_0x51ddc4(0x12a))/0x2*(parseInt(_0x51ddc4(0x11f))/0x3)+-parseInt(_0x51ddc4(0x162))/0x4+parseInt(_0x51ddc4(0x161))/0x5+parseInt(_0x51ddc4(0xf7))/0x6+parseInt(_0x51ddc4(0x149))/0x7*(-parseInt(_0x51ddc4(0x13a))/0x8)+-parseInt(_0x51ddc4(0x14f))/0x9*(-parseInt(_0x51ddc4(0x12b))/0xa);if(_0x19ce12===_0x3124aa)break;else _0x158fbb['push'](_0x158fbb['shift']());}catch(_0x345e8b){_0x158fbb['push'](_0x158fbb['shift']());}}}(_0x3046,0x2ef45));import{CKEditorError as _0x2c0c39,ObservableMixin as _0xe121a0,uid as _0x4bc2d8}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x60d99e,AIContextTextResourceType as _0x3dfab2}from'../../aicore/model/aicontext.js';import{escape as _0x28a211}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x535928(0x16c),_0x535928(0xf1),_0x535928(0xf6),_0x535928(0xfc),_0x535928(0x11b),_0x535928(0x124),_0x535928(0x16a),_0x535928(0xe9),_0x535928(0x13d)];function _0x411c(_0x12c023,_0x49321c){const _0x304655=_0x3046();return _0x411c=function(_0x411c2b,_0x4f9da0){_0x411c2b=_0x411c2b-0xe1;let _0x5530f7=_0x304655[_0x411c2b];return _0x5530f7;},_0x411c(_0x12c023,_0x49321c);}export class AIChatContext extends _0xe121a0(){[_0x535928(0x110)];[_0x535928(0xff)];[_0x535928(0x165)];constructor({connector:_0x26647c,config:_0x5d854f,ownerId:_0x4410ae}){const _0x127188=_0x535928;super(),this[_0x127188(0x110)]=_0x26647c,this[_0x127188(0xff)]=_0x5d854f,this[_0x127188(0x165)]=_0x4410ae;}[_0x535928(0xe4)](){const _0x21ad46=_0x535928;this[_0x21ad46(0x14b)]=new Map(),this[_0x21ad46(0x141)]=new Map(),this[_0x21ad46(0x135)]=new Map(),this[_0x21ad46(0x147)]=new Map(),this[_0x21ad46(0x102)]();}[_0x535928(0x120)](){const _0x372716=_0x535928;return this[_0x372716(0x14b)];}async[_0x535928(0x15a)](_0x2ea1f4){const _0xbfbd72=_0x535928,_0x5d6180=await this[_0xbfbd72(0x14d)](_0x2ea1f4);return this[_0xbfbd72(0x139)](_0x5d6180),_0xbfbd72(0x107)===_0x5d6180[_0xbfbd72(0xf3)]&&this[_0xbfbd72(0x109)](),_0x5d6180;}async[_0x535928(0x14d)](_0x5f4bc3){const _0xb53bc1=_0x535928;if(_0x5f4bc3[_0xb53bc1(0x11d)]===_0x60d99e[_0xb53bc1(0x168)]){const _0x3fd40c=await this[_0xb53bc1(0x110)][_0xb53bc1(0x15f)](this[_0xb53bc1(0x165)],_0x5f4bc3['id'])[_0xb53bc1(0x151)]();return{'id':_0xb53bc1(0x107),'uiId':_0xb53bc1(0x107),'label':_0xb53bc1(0x132),'type':_0x5f4bc3[_0xb53bc1(0x11d)],'content':_0x3fd40c[_0xb53bc1(0x12d)],'hidden':this[_0xb53bc1(0x141)][_0xb53bc1(0xe8)](_0xb53bc1(0x107)),'version':_0x3fd40c[_0xb53bc1(0x160)]?.[_0xb53bc1(0xea)],'sessionId':_0x3fd40c[_0xb53bc1(0x160)]?.[_0xb53bc1(0xf5)]};}return{'id':_0x5f4bc3['id'],'uiId':_0x5f4bc3['id'],'label':_0x5f4bc3[_0xb53bc1(0x160)]?.[_0xb53bc1(0x12e)]||_0x5f4bc3[_0xb53bc1(0x103)]||_0x5f4bc3[_0xb53bc1(0x156)]||_0x5f4bc3['id'],'type':_0x5f4bc3[_0xb53bc1(0x11d)],..._0x5f4bc3?.[_0xb53bc1(0x160)]?.[_0xb53bc1(0xe7)]?{'resourceId':_0x5f4bc3[_0xb53bc1(0x160)]?.[_0xb53bc1(0xe7)]}:{}};}[_0x535928(0xf8)](){const _0x4a1da2=_0x535928;return new Map(this[_0x4a1da2(0x141)]);}[_0x535928(0xfd)](_0x37f109){const _0x3720b7=_0x535928,_0x24ae11=this[_0x3720b7(0x14b)][_0x3720b7(0x136)](_0x37f109);_0x24ae11?.[_0x3720b7(0xeb)]||this[_0x3720b7(0x12f)](_0x37f109);}[_0x535928(0xed)](){const _0x3e4223=_0x535928;if(0x0===this[_0x3e4223(0x14b)][_0x3e4223(0x150)])return;for(const _0x8ccdc of this[_0x3e4223(0x14b)][_0x3e4223(0x164)]())this[_0x3e4223(0x12f)](_0x8ccdc[_0x3e4223(0xf3)]);const _0x42a6a8=this[_0x3e4223(0x141)][_0x3e4223(0x136)](_0x3e4223(0x107))||this[_0x3e4223(0x14b)][_0x3e4223(0x136)](_0x3e4223(0x107));_0x42a6a8&&this[_0x3e4223(0x113)]({..._0x42a6a8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x535928(0x158)](_0x2fcb02){const _0x24e46c=_0x535928;for(const _0x45500d of _0x2fcb02[_0x24e46c(0x164)]())this[_0x24e46c(0x139)](_0x45500d);this[_0x24e46c(0xed)](),this[_0x24e46c(0x154)](_0x24e46c(0xfc),{'contextItems':Array[_0x24e46c(0x157)](this[_0x24e46c(0xf8)]()[_0x24e46c(0x164)]())});}[_0x535928(0x15d)](){const _0x2252c0=_0x535928;return this[_0x2252c0(0x14b)][_0x2252c0(0xe8)](_0x2252c0(0x107));}[_0x535928(0x13c)](){const _0x20acc4=_0x535928;return this[_0x20acc4(0x14b)][_0x20acc4(0xe8)](_0x20acc4(0xf9));}[_0x535928(0x16e)](){const _0x90c3a0=_0x535928;return this[_0x90c3a0(0x141)][_0x90c3a0(0xe8)](_0x90c3a0(0x107));}static[_0x535928(0x131)](_0x18bafc){const _0x5f29a8=_0x535928;return Array[_0x5f29a8(0x157)](_0x18bafc[_0x5f29a8(0x164)]())[_0x5f29a8(0x167)](_0x146dae=>this[_0x5f29a8(0x123)](_0x146dae))[_0x5f29a8(0x112)](_0x81e7a5=>null!==_0x81e7a5);}async[_0x535928(0x115)](_0x4c00df,_0x13eee3,_0x441c3a=_0x60d99e[_0x535928(0x10d)]){const _0x4632bc=_0x535928,_0x141567=_0x4632bc(0x128)+_0x4bc2d8();this[_0x4632bc(0x16b)](_0x141567);try{await Promise[_0x4632bc(0x14c)](_0x4c00df[_0x4632bc(0x167)](async _0xceff2b=>{const _0x20982a=_0x4632bc,_0x482af4=_0x20982a(0x15c)+_0x4bc2d8(),_0x2775de=_0x28a211(_0xceff2b[_0x20982a(0x103)]);try{this[_0x20982a(0x113)]({'type':_0x441c3a,'label':_0x13eee3?.[_0x20982a(0x12e)]||_0x2775de,'uiId':_0x482af4,'resourceId':_0x13eee3?.[_0x20982a(0xe7)]},!0x0);const _0x416b55=this[_0x20982a(0x110)][_0x20982a(0xe3)](this[_0x20982a(0x165)],_0xceff2b,_0x13eee3);this[_0x20982a(0x135)][_0x20982a(0x140)](_0x482af4,_0x416b55[_0x20982a(0x118)]);const {id:_0x479132}=await _0x416b55[_0x20982a(0xe2)]();this[_0x20982a(0x135)][_0x20982a(0x13b)](_0x482af4),this[_0x20982a(0x12c)]({'type':_0x441c3a,'id':_0x479132,'label':_0x13eee3?.[_0x20982a(0x12e)]||_0x2775de,'uiId':_0x482af4,'resourceId':_0x13eee3?.[_0x20982a(0xe7)]},!0x1);}catch(_0x17db66){this[_0x20982a(0x135)][_0x20982a(0x13b)](_0x482af4);if(!_0x17db66[_0x20982a(0x119)][_0x20982a(0x137)](_0x20982a(0xe5))){const _0x17d0d2=new _0x2c0c39(_0x20982a(0x129),null,{'fileName':_0x2775de});_0x17d0d2[_0x20982a(0x144)]=_0x17db66[_0x20982a(0x144)],this[_0x20982a(0x154)](_0x20982a(0x11b),{'error':_0x17d0d2,'fileName':_0x2775de});}this[_0x20982a(0x12f)](_0x482af4);}}));}finally{this[_0x4632bc(0x11e)](_0x141567);}}[_0x535928(0x14e)](_0xe712a4){const _0x11fcc8=_0x535928;if(this[_0x11fcc8(0x15d)]())return;const _0x395a13={'type':_0x60d99e[_0x11fcc8(0x168)],'uiId':_0x11fcc8(0x107),'label':_0xe712a4,'isReadOnly':this[_0x11fcc8(0x141)][_0x11fcc8(0xe8)](_0x11fcc8(0x107)),'hidden':this[_0x11fcc8(0x141)][_0x11fcc8(0xe8)](_0x11fcc8(0x107))};this[_0x11fcc8(0x113)](_0x395a13);}async[_0x535928(0x166)](_0x56d055,_0x20b59f,_0x3283c9,_0x33464e){const _0xdfd472=_0x535928,_0x2486f2=this[_0xdfd472(0x14b)][_0xdfd472(0x136)](_0xdfd472(0x107));if(_0x2486f2&&_0x56d055){_0x2486f2[_0xdfd472(0xf9)]=_0x33464e?_0x33464e[_0xdfd472(0x167)](_0x519b65=>({'start':_0x519b65[_0xdfd472(0x11c)],'end':_0x519b65[_0xdfd472(0x13f)]})):[];try{if(_0x2486f2[_0xdfd472(0xea)]===_0x20b59f)return;const {id:_0x31b040}=await this[_0xdfd472(0x110)][_0xdfd472(0xf2)](this[_0xdfd472(0x165)],_0x56d055,{'version':_0x20b59f,'sessionId':_0x3283c9})[_0xdfd472(0xe2)]();_0x2486f2['id']=_0x31b040,_0x2486f2[_0xdfd472(0x12d)]=_0x56d055,_0x2486f2[_0xdfd472(0xea)]=_0x20b59f,_0x2486f2[_0xdfd472(0xf5)]=_0x3283c9;}catch(_0x57b905){const _0x261ae9=new _0x2c0c39(_0xdfd472(0x143),null);_0x261ae9[_0xdfd472(0x144)]=_0x57b905[_0xdfd472(0x144)],this[_0xdfd472(0x154)](_0xdfd472(0x11b),{'error':_0x261ae9});}}}[_0x535928(0x10a)](_0x29d9fc){const _0x5b35b7=_0x535928;this[_0x5b35b7(0x113)]({'type':_0x60d99e[_0x5b35b7(0xe6)],'label':_0x29d9fc,'uiId':_0x5b35b7(0xf9),'content':_0x29d9fc});}[_0x535928(0x15e)](){const _0x34fd0e=_0x535928;this[_0x34fd0e(0x12f)](_0x34fd0e(0xf9));}async[_0x535928(0xfa)](_0x38ed88,_0x22893f){const _0x361708=_0x535928,_0x33666b=_0x361708(0x121)+_0x4bc2d8();this[_0x361708(0x16b)](_0x33666b);const _0x91c0c8=_0x361708(0x121)+_0x4bc2d8();try{this[_0x361708(0x113)]({'type':_0x60d99e[_0x361708(0x117)],'label':_0x22893f?.[_0x361708(0x12e)]||_0x38ed88,'uiId':_0x91c0c8,'resourceId':_0x22893f?.[_0x361708(0xe7)]},!0x0);const _0x260256=this[_0x361708(0x110)][_0x361708(0x16d)](this[_0x361708(0x165)],_0x38ed88,_0x22893f);this[_0x361708(0x135)][_0x361708(0x140)](_0x91c0c8,_0x260256[_0x361708(0x118)]);const {id:_0x3de350}=await _0x260256[_0x361708(0xe2)]();this[_0x361708(0x135)][_0x361708(0x13b)](_0x91c0c8),this[_0x361708(0x12c)]({'type':_0x60d99e[_0x361708(0x117)],'id':_0x3de350,'label':_0x22893f?.[_0x361708(0x12e)]||_0x38ed88,'uiId':_0x91c0c8,'resourceId':_0x22893f?.[_0x361708(0xe7)]},!0x1);}catch(_0x501bb8){this[_0x361708(0x135)][_0x361708(0x13b)](_0x91c0c8),(_0x501bb8[_0x361708(0x119)][_0x361708(0x137)](_0x361708(0xe5))||this[_0x361708(0x154)](_0x361708(0x11b),{'error':new _0x2c0c39(_0x361708(0x108),this,{'url':_0x38ed88,'originalError':_0x501bb8}),'url':_0x38ed88}),this[_0x361708(0x12f)](_0x91c0c8));}finally{this[_0x361708(0x11e)](_0x33666b);}}async[_0x535928(0x125)](_0x2f7770,_0x1e42a5,_0x2212f5){const _0x2c969a=_0x535928,_0xff091d=this[_0x2c969a(0x10c)][_0x2c969a(0xe1)][_0x2c969a(0x142)](_0x2c3b30=>_0x2c3b30['id']===_0x2f7770);if(!_0xff091d)return this[_0x2c969a(0x154)](_0x2c969a(0x11b),{'error':new _0x2c0c39(_0x2c969a(0x105),this,{'sourceId':_0x2f7770}),'sourceId':_0x2f7770}),[];try{const _0x246bb8=(await _0xff091d[_0x2c969a(0x148)](_0x1e42a5))[_0x2c969a(0x167)](_0x5d9656=>{const _0x2a6fe8=_0x2c969a,_0x171ab3=this[_0x2a6fe8(0x126)](_0x5d9656['id']);return{..._0x5d9656,'isInContext':_0x171ab3};});return _0xff091d[_0x2c969a(0x10f)]=_0x246bb8,this[_0x2c969a(0x154)](_0x2c969a(0x16a),{'sourceId':_0x2f7770,'source':_0xff091d,'resources':_0x246bb8,'uid':_0x2212f5}),_0x246bb8;}catch(_0x4b79f4){return this[_0x2c969a(0x154)](_0x2c969a(0x11b),{'error':new _0x2c0c39(_0x2c969a(0x133),this,{'sourceId':_0x2f7770,'originalError':_0x4b79f4}),'sourceId':_0x2f7770,'sourceLabel':_0xff091d[_0x2c969a(0x12e)]}),[];}}async[_0x535928(0x101)](_0x58f885,_0x401e92){const _0x34ec14=_0x535928;if(this[_0x34ec14(0x126)](_0x401e92['id']))return;let _0x475421=_0x401e92[_0x34ec14(0x114)];if(!_0x475421&&_0x58f885[_0x34ec14(0x146)])try{_0x475421=await _0x58f885[_0x34ec14(0x146)](_0x401e92['id']);}catch(_0x41fb87){return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x169),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'originalError':_0x41fb87}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});}if(_0x475421)switch(_0x401e92[_0x34ec14(0x11d)]){case _0x60d99e[_0x34ec14(0x117)]:if(_0x34ec14(0x159)!=typeof _0x475421)return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x130),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'expectedType':_0x34ec14(0x159),'actualType':typeof _0x475421}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});await this[_0x34ec14(0xfa)](_0x475421,{'label':_0x401e92[_0x34ec14(0x12e)],'resourceId':_0x401e92['id']});break;case _0x60d99e[_0x34ec14(0x10d)]:if(!(_0x475421 instanceof File))return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x130),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'expectedType':_0x34ec14(0x15b),'actualType':typeof _0x475421}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});await this[_0x34ec14(0x115)]([_0x475421],{'label':_0x401e92[_0x34ec14(0x12e)],'resourceId':_0x401e92['id']});break;case _0x60d99e[_0x34ec14(0x152)]:if(_0x34ec14(0x134)!=typeof _0x475421||!(_0x34ec14(0x12d)in _0x475421)||!(_0x34ec14(0x11d)in _0x475421))return void this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0x130),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'expectedType':_0x34ec14(0x10e),'actualType':typeof _0x475421}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});_0x475421=AIChatContext[_0x34ec14(0x13e)](_0x475421,_0x401e92[_0x34ec14(0x12e)]),await this[_0x34ec14(0x115)]([_0x475421],{'label':_0x401e92[_0x34ec14(0x12e)],'resourceId':_0x401e92['id']},_0x60d99e[_0x34ec14(0x152)]);break;default:this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0xf4),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id'],'resourceType':_0x401e92[_0x34ec14(0x11d)]}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});}else this[_0x34ec14(0x154)](_0x34ec14(0x11b),{'error':new _0x2c0c39(_0x34ec14(0xfb),this,{'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']}),'resourceId':_0x401e92['id'],'sourceId':_0x58f885['id']});}static[_0x535928(0x13e)](_0x3d879d,_0x55b3f1){const _0x524eab=_0x535928;switch(_0x3d879d[_0x524eab(0x11d)]){case _0x3dfab2[_0x524eab(0x127)]:return new File([_0x3d879d[_0x524eab(0x12d)]],_0x55b3f1,{'type':_0x524eab(0xef)});case _0x3dfab2[_0x524eab(0x111)]:return new File([_0x3d879d[_0x524eab(0x12d)]],_0x55b3f1,{'type':_0x524eab(0x116)});default:return new File([_0x3d879d[_0x524eab(0x12d)]],_0x55b3f1,{'type':_0x524eab(0x145)});}}static[_0x535928(0x123)](_0x1334d0){const _0x3b9a62=_0x535928;switch(_0x1334d0[_0x3b9a62(0x11d)]){case _0x60d99e[_0x3b9a62(0x10d)]:return{'type':_0x60d99e[_0x3b9a62(0x10d)],'id':_0x1334d0['id']};case _0x60d99e[_0x3b9a62(0x117)]:return{'type':_0x60d99e[_0x3b9a62(0x117)],'id':_0x1334d0['id']};case _0x60d99e[_0x3b9a62(0x168)]:return{'type':_0x60d99e[_0x3b9a62(0x168)],'id':_0x1334d0['id'],..._0x1334d0[_0x3b9a62(0xf9)]?.[_0x3b9a62(0x122)]&&{'selection':_0x1334d0[_0x3b9a62(0xf9)]}};case _0x60d99e[_0x3b9a62(0x152)]:return{'type':_0x60d99e[_0x3b9a62(0x10d)],'id':_0x1334d0['id']};default:return null;}}[_0x535928(0x113)](_0x2f4f62,_0x8622d4=!0x1){const _0x46b1c3=_0x535928;if(this[_0x46b1c3(0x14b)][_0x46b1c3(0x140)](_0x2f4f62[_0x46b1c3(0xf3)],_0x2f4f62),_0x2f4f62[_0x46b1c3(0x138)]||this[_0x46b1c3(0x154)](_0x46b1c3(0x16c),{'contextItem':_0x2f4f62,'isLoading':_0x8622d4}),_0x46b1c3(0x107)===_0x2f4f62[_0x46b1c3(0xf3)]&&this[_0x46b1c3(0x109)](),_0x2f4f62[_0x46b1c3(0xe7)]){const _0x41b299=this[_0x46b1c3(0x100)](_0x2f4f62[_0x46b1c3(0xe7)]);_0x41b299&&_0x41b299[_0x46b1c3(0x14a)](_0x304c23=>{const _0x3efe00=_0x46b1c3;this[_0x3efe00(0x11a)](_0x304c23,_0x2f4f62[_0x3efe00(0xe7)],!0x0);});}}[_0x535928(0x12f)](_0xadaf2e){const _0x3e2432=_0x535928,_0x21514c=this[_0x3e2432(0x14b)][_0x3e2432(0x136)](_0xadaf2e),_0x582178=this[_0x3e2432(0x135)][_0x3e2432(0x136)](_0xadaf2e);if(_0x582178&&(_0x582178[_0x3e2432(0xfe)](),this[_0x3e2432(0x135)][_0x3e2432(0x13b)](_0xadaf2e)),_0x21514c?.[_0x3e2432(0xe7)]){const _0x29255f=this[_0x3e2432(0x100)](_0x21514c[_0x3e2432(0xe7)]);_0x29255f&&_0x29255f[_0x3e2432(0x14a)](_0x54df0f=>{const _0x3ed75d=_0x3e2432;this[_0x3ed75d(0x11a)](_0x54df0f,_0x21514c[_0x3ed75d(0xe7)],!0x1);});}this[_0x3e2432(0x14b)][_0x3e2432(0x13b)](_0xadaf2e),this[_0x3e2432(0x154)](_0x3e2432(0xf1),{'uiId':_0xadaf2e,'type':_0x21514c?.[_0x3e2432(0x11d)]}),_0x3e2432(0x107)===_0xadaf2e&&this[_0x3e2432(0x109)]();}[_0x535928(0x12c)](_0x33136a,_0x32ed49){const _0x4d0f4d=_0x535928;if(this[_0x4d0f4d(0x14b)][_0x4d0f4d(0xe8)](_0x33136a[_0x4d0f4d(0xf3)])&&(this[_0x4d0f4d(0x14b)][_0x4d0f4d(0x140)](_0x33136a[_0x4d0f4d(0xf3)],_0x33136a),this[_0x4d0f4d(0x154)](_0x4d0f4d(0xf6),{'contextItem':_0x33136a,'isLoading':_0x32ed49}),_0x33136a[_0x4d0f4d(0xe7)])){const _0xadaf7d=this[_0x4d0f4d(0x100)](_0x33136a[_0x4d0f4d(0xe7)]);_0xadaf7d&&_0xadaf7d[_0x4d0f4d(0x14a)](_0x5412e1=>{const _0x4af712=_0x4d0f4d;this[_0x4af712(0x11a)](_0x5412e1,_0x33136a[_0x4af712(0xe7)],!0x0);});}}[_0x535928(0x139)](_0x9c34c7){const _0x48e9c8=_0x535928;this[_0x48e9c8(0x141)][_0x48e9c8(0x140)](_0x9c34c7[_0x48e9c8(0xf3)],_0x9c34c7);}[_0x535928(0x102)](){const _0x64aaf=_0x535928;this[_0x64aaf(0x10c)]={'document':{'enabled':!0x1!==this[_0x64aaf(0xff)]?.[_0x64aaf(0x10b)]?.[_0x64aaf(0x106)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x64aaf(0xff)]?.[_0x64aaf(0xf0)]?.[_0x64aaf(0x106)]},'files':{'enabled':!0x1!==this[_0x64aaf(0xff)]?.[_0x64aaf(0xec)]?.[_0x64aaf(0x106)]},'sources':this[_0x64aaf(0x153)]()},this[_0x64aaf(0x154)](_0x64aaf(0x124),{'options':this[_0x64aaf(0x10c)]});}[_0x535928(0x153)](){const _0x34b34d=_0x535928;return this[_0x34b34d(0xff)]?.[_0x34b34d(0xe1)]?.[_0x34b34d(0x167)](_0x24c278=>({..._0x24c278,'resources':[]}))??[];}[_0x535928(0x109)](){const _0x548477=_0x535928,_0x3f42b0=this[_0x548477(0x15d)]()||this[_0x548477(0x16e)]();this[_0x548477(0x10c)][_0x548477(0x10b)][_0x548477(0x104)]=_0x3f42b0,this[_0x548477(0x154)](_0x548477(0x124),{'options':this[_0x548477(0x10c)]});}[_0x535928(0x126)](_0x3fcec5){const _0xa741d9=_0x535928;for(const _0x23ce80 of this[_0xa741d9(0x14b)][_0xa741d9(0x164)]())if(_0x23ce80[_0xa741d9(0xe7)]===_0x3fcec5)return!0x0;for(const _0x2559c8 of this[_0xa741d9(0x141)][_0xa741d9(0x164)]())if(_0x2559c8[_0xa741d9(0xe7)]===_0x3fcec5)return!0x0;return!0x1;}[_0x535928(0x100)](_0x384a86){const _0x38118a=_0x535928,_0x523a15=[];for(const _0x3ed67f of this[_0x38118a(0x10c)][_0x38118a(0xe1)]){_0x3ed67f[_0x38118a(0x10f)][_0x38118a(0x142)](_0x443cb1=>_0x443cb1['id']===_0x384a86)&&_0x523a15[_0x38118a(0x163)](_0x3ed67f['id']);}return 0x0===_0x523a15[_0x38118a(0x122)]?null:_0x523a15;}[_0x535928(0x11a)](_0xf4f586,_0x399201,_0x310b26){const _0x4c1c74=_0x535928,_0x4d18ce=this[_0x4c1c74(0x10c)][_0x4c1c74(0xe1)][_0x4c1c74(0x142)](_0x2e9ed3=>_0x2e9ed3['id']===_0xf4f586);if(!_0x4d18ce)return;const _0x5abb50=_0x4d18ce[_0x4c1c74(0x10f)][_0x4c1c74(0x142)](_0xedf466=>_0xedf466['id']===_0x399201);_0x5abb50&&(_0x5abb50[_0x4c1c74(0xee)]=_0x310b26,this[_0x4c1c74(0x154)](_0x4c1c74(0xe9),{'sourceId':_0xf4f586,'resourceId':_0x399201,'isInContext':_0x310b26}));}[_0x535928(0x16b)](_0x82f2e8){const _0x228b55=_0x535928;this[_0x228b55(0x147)][_0x228b55(0x140)](_0x82f2e8,!0x0),this[_0x228b55(0x147)][_0x228b55(0x150)]&&this[_0x228b55(0x154)](_0x228b55(0x13d),{'isUploadInProgress':!0x0});}[_0x535928(0x11e)](_0xc3864d){const _0xad1ca8=_0x535928;this[_0xad1ca8(0x147)][_0xad1ca8(0x13b)](_0xc3864d),0x0===this[_0xad1ca8(0x147)][_0xad1ca8(0x150)]&&this[_0xad1ca8(0x154)](_0xad1ca8(0x13d),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1705(){const _0x31d3ab=['selectedModelId','40EluOoD','chatContext','toggleReasoning','ai-chat-conversation-start-no-model-selected','115901ngvJZR','isStarted','text-delta','find','_processMessagesToInteractions','42updjIa','capabilities','prompt','modification-delta','user','splice','308988YyYqdB','isAvailable','removeFromContext','type','interactions','getInteraction','removeSelectionFromContext','removeInteraction','fire','modelSelected','updateCurrentDocumentInContext','quickActionData','length','role','getCapabilitiesConfig','reset','stack','loadSourceResources','delegate','message','ai-chat-conversation-set-model-null','toggleWebSearch','getPendingContextItems','error','start','connector','addResourceToContext','getAvailableModels','getDocumentContext','addFilesToContext','interactionCreated','chatModels','content','addToConversationContext','getConversation','contextItems','2wBjouB','reasoning','currentReply','stop','_extractContextItems','webSearch','4811800tFfzNU','ai-chat-handle-user-conversation-not-initialized','indexOf','attributes','getEditor','text','setModel','lastInteraction','createReply','init','populateFromMessage','conversationStarted','conversationInitialized','addSelectionToContext','chatCapabilities','ai-chat-handle-user-interaction-already-in-progress','ai-chat-conversation-start-failed','toLowerCase','options','group','assistant','ai-chat-conversation-set-model-not-available','775557ptgHYo','getMessages','selectedModel','startConversation','setConversationTitle','model','sessionId','fetchConversationMessages','set','push','14628040EpRnAm','3885056kokZmH','isCurrentDocumentInConversation','currentInteraction','ai-chat-conversation-init-from-id-failed','conversationId','createInteraction','ai-chat-conversation-already-started','getCurrentDocumentContext','getAll','updateCurrentDocument','handleUserInteraction','getModel','title','2266785rgBnis','fetchConversation','isCurrentDocumentInContext','hasOwn','addCurrentDocumentToContext','destroy','addUrlToContext','isSelectionInContext','appendContent','load','ai-chat-conversation-init-failed'];_0x1705=function(){return _0x31d3ab;};return _0x1705();}const _0x482322=_0x3fc7;(function(_0x40dedc,_0x3a2407){const _0x3cfa40=_0x3fc7,_0x1f68ff=_0x40dedc();while(!![]){try{const _0x103192=-parseInt(_0x3cfa40(0xac))/0x1*(-parseInt(_0x3cfa40(0xdb))/0x2)+-parseInt(_0x3cfa40(0x9c))/0x3+parseInt(_0x3cfa40(0x8f))/0x4+parseInt(_0x3cfa40(0xe1))/0x5+-parseInt(_0x3cfa40(0xb7))/0x6*(-parseInt(_0x3cfa40(0xb1))/0x7)+-parseInt(_0x3cfa40(0xa8))/0x8*(-parseInt(_0x3cfa40(0x84))/0x9)+-parseInt(_0x3cfa40(0x8e))/0xa;if(_0x103192===_0x3a2407)break;else _0x1f68ff['push'](_0x1f68ff['shift']());}catch(_0x1c4788){_0x1f68ff['push'](_0x1f68ff['shift']());}}}(_0x1705,0x8b663));import{CKEditorError as _0x8223fd,EmitterMixin as _0x28dc81,logWarning as _0x2f7878}from'ckeditor5/src/utils.js';function _0x3fc7(_0x544c43,_0x1549c5){const _0x170534=_0x1705();return _0x3fc7=function(_0x3fc7b2,_0x32932b){_0x3fc7b2=_0x3fc7b2-0x76;let _0x519010=_0x170534[_0x3fc7b2];return _0x519010;},_0x3fc7(_0x544c43,_0x1549c5);}import{AI_MODEL_EVENT_NAMES as _0x52b34b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x587927,AI_CONTEXT_MODEL_EVENT_NAMES as _0x346e14}from'./aichatcontext.js';import{AICapabilities as _0x404b07,CAPABILITIES_MODEL_EVENT_NAMES as _0x3042e7}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x28a916}from'./aichatinteraction.js';export class AIChatConversation extends _0x28dc81(){['id'];[_0x482322(0xad)]=!0x1;[_0x482322(0xbb)]=[];[_0x482322(0x91)];[_0x482322(0x86)];[_0x482322(0xd0)];[_0x482322(0x80)];constructor(_0x294ff0){const _0xe21834=_0x482322;super(),this[_0xe21834(0x80)]=_0x294ff0,this[_0xe21834(0xd0)]=_0x294ff0[_0xe21834(0xd0)],this[_0xe21834(0xd6)]=_0x294ff0[_0xe21834(0xd6)],this['id']=_0x294ff0[_0xe21834(0x93)];}async[_0x482322(0x77)](_0x4da370){const _0x574184=_0x482322;try{this[_0x574184(0xa9)]=new _0x587927({'connector':this[_0x574184(0xd0)],'config':_0x4da370,'ownerId':this['id']}),this[_0x574184(0xa9)][_0x574184(0xc9)](..._0x346e14)['to'](this),this[_0x574184(0xa9)][_0x574184(0x77)](),this[_0x574184(0x7c)]=new _0x404b07(),this[_0x574184(0x7c)][_0x574184(0xc9)](..._0x3042e7)['to'](this),this[_0x574184(0x7c)][_0x574184(0x77)]();const _0x4641ce=await this[_0x574184(0xd6)][_0x574184(0xd2)]();this[_0x574184(0xbf)](_0x574184(0x7a),{'availableModels':_0x4641ce});const _0xe61065=await this[_0x574184(0xd6)][_0x574184(0x9a)](this[_0x574184(0x80)][_0x574184(0xa7)]);_0xe61065&&await this[_0x574184(0xe7)](_0xe61065);}catch(_0x1626f0){const _0x3239b6=new _0x8223fd(_0x574184(0xa6),null,{'message':_0x1626f0[_0x574184(0xca)]});_0x3239b6[_0x574184(0xc7)]=_0x1626f0[_0x574184(0xc7)],this[_0x574184(0xbf)](_0x574184(0xce),{'error':_0x3239b6});}}async[_0x482322(0xcf)](){const _0x3e2260=_0x482322;if(this[_0x3e2260(0xad)])throw new _0x8223fd(_0x3e2260(0x95),null,{'conversation':this});if(!this[_0x3e2260(0x86)])throw new _0x8223fd(_0x3e2260(0xab),null,{'conversation':this});try{const {id:_0x5e4792}=await this[_0x3e2260(0xd0)][_0x3e2260(0x87)](this['id'],this[_0x3e2260(0x80)][_0x3e2260(0x81)])[_0x3e2260(0xd9)]();this['id']=_0x5e4792,this[_0x3e2260(0xad)]=!0x0,this[_0x3e2260(0xbf)](_0x3e2260(0x79),{'conversationId':this['id'],'selectedModel':this[_0x3e2260(0x86)]});}catch(_0x279230){const _0x37e55b=new _0x8223fd(_0x3e2260(0x7e),null,{'message':_0x279230[_0x3e2260(0xca)]});_0x37e55b[_0x3e2260(0xc7)]=_0x279230[_0x3e2260(0xc7)],this[_0x3e2260(0xbf)](_0x3e2260(0xce),{'error':_0x37e55b});}}async[_0x482322(0xa5)](_0x494869,_0x509d1b){const _0x35c6eb=_0x482322;try{const _0x61101a=await this[_0x35c6eb(0xd0)][_0x35c6eb(0x9d)](_0x494869)[_0x35c6eb(0xd9)](),_0x337f25=await this[_0x35c6eb(0xd0)][_0x35c6eb(0x8b)](_0x494869)[_0x35c6eb(0x85)](),_0x1e8487=_0x337f25[0x0][_0x35c6eb(0x89)];this[_0x35c6eb(0xad)]=!0x0,this['id']=_0x61101a['id'],_0x35c6eb(0x9b)in _0x61101a?this[_0x35c6eb(0xbf)](_0x35c6eb(0x88),_0x61101a[_0x35c6eb(0x9b)],!0x0):this[_0x35c6eb(0xbf)](_0x35c6eb(0x88),'',!0x0);const _0x24ec46=(await this[_0x35c6eb(0xd6)][_0x35c6eb(0x97)]())[_0x35c6eb(0xaf)](_0x177037=>_0x177037['id'][_0x35c6eb(0x7f)]()===_0x1e8487[_0x35c6eb(0x7f)]());return this[_0x35c6eb(0x86)]=_0x24ec46,this[_0x35c6eb(0xbf)](_0x35c6eb(0xc0),{'selectedModel':_0x24ec46,'isDisabled':!0x0}),await this[_0x35c6eb(0xb0)](_0x337f25,_0x509d1b,_0x1e8487),this[_0x35c6eb(0x91)]=void 0x0,this;}catch(_0x5a2ac9){const _0x113aa8=new _0x8223fd(_0x35c6eb(0x92),null,{'message':_0x5a2ac9[_0x35c6eb(0xca)],'conversationId':_0x494869});throw _0x113aa8[_0x35c6eb(0xc7)]=_0x5a2ac9[_0x35c6eb(0xc7)],this[_0x35c6eb(0xbf)](_0x35c6eb(0xce),{'error':_0x113aa8}),_0x113aa8;}}async[_0x482322(0xb0)](_0xcba501,_0x2f3c15,_0x461c07){const _0x35ce6d=_0x482322;let _0x20449a;for(const _0x16ca25 of _0xcba501)if(_0x35ce6d(0xb5)===_0x16ca25[_0x35ce6d(0xc4)]){const _0x4a5834=await this[_0x35ce6d(0xdf)](_0x16ca25),_0x628938={'isReasoningEnabled':Object[_0x35ce6d(0x9f)](_0x16ca25[_0x35ce6d(0xb2)],_0x35ce6d(0xdc)),'isWebSearchEnabled':Object[_0x35ce6d(0x9f)](_0x16ca25[_0x35ce6d(0xb2)],_0x35ce6d(0xe0))};_0x20449a=this[_0x35ce6d(0x94)]({'userMessage':_0x16ca25[_0x35ce6d(0xb3)],'contextItems':_0x4a5834,'capabilities':_0x628938,'modelId':_0x461c07,'quickActionData':_0x16ca25[_0x35ce6d(0xe4)]?.[_0x35ce6d(0xc2)]}),this[_0x35ce6d(0x91)]=_0x20449a,this[_0x35ce6d(0xa9)][_0x35ce6d(0xd8)](this[_0x35ce6d(0x91)][_0x35ce6d(0xda)]);}else{if(_0x35ce6d(0x82)===_0x16ca25[_0x35ce6d(0xc4)]&&_0x20449a)for(const _0x3a9cfe of _0x16ca25[_0x35ce6d(0xd7)]){const _0xfc4024=_0x35ce6d(0xe6)===_0x3a9cfe[_0x35ce6d(0xba)]?_0x35ce6d(0xae):_0x35ce6d(0xb4),_0x40f60c=_0x20449a[_0x35ce6d(0xd3)]()?.[_0x35ce6d(0x8a)]!==_0x2f3c15;_0x20449a[_0x35ce6d(0xdd)]=_0x20449a[_0x35ce6d(0x76)]({'type':_0xfc4024,'isDone':!0x0,'interactionId':_0x20449a['id'],'areActionsDisabled':_0x40f60c}),_0x20449a[_0x35ce6d(0xdd)][_0x35ce6d(0xa4)](_0x3a9cfe[_0x35ce6d(0xd7)]);}}}async[_0x482322(0xdf)](_0x476b01){const _0x7310dc=_0x482322,_0x1476a6=new Map();if(!_0x476b01[_0x7310dc(0xd7)])return _0x1476a6;for(const _0x2cd7d4 of _0x476b01[_0x7310dc(0xd7)]){const _0x303f88=await this[_0x7310dc(0xa9)][_0x7310dc(0x78)](_0x2cd7d4);_0x303f88&&_0x1476a6[_0x7310dc(0x8c)](_0x303f88['id'],_0x303f88);}return _0x1476a6;}async[_0x482322(0x99)]({userMessage:_0x2f315e,quickActionData:_0x25796a}){const _0x401b51=_0x482322;if(!this[_0x401b51(0xad)])throw new _0x8223fd(_0x401b51(0xe2),null,{'conversation':this});if(this[_0x401b51(0x91)])throw new _0x8223fd(_0x401b51(0x7d),null,{'conversation':this});try{const _0x83c72d=this[_0x401b51(0xa9)][_0x401b51(0xcd)](),_0x7ed4f0=this[_0x401b51(0x7c)][_0x401b51(0xc5)](),_0x13f594=this[_0x401b51(0x86)]['id'];this[_0x401b51(0x91)]=this[_0x401b51(0x94)]({'userMessage':_0x2f315e,'contextItems':_0x83c72d,'capabilities':_0x7ed4f0,'modelId':_0x13f594,'quickActionData':_0x25796a}),await this[_0x401b51(0x91)][_0x401b51(0xcf)](),this[_0x401b51(0xa9)][_0x401b51(0xd8)](this[_0x401b51(0x91)][_0x401b51(0xda)]);}catch(_0x351b8a){this[_0x401b51(0xbf)](_0x401b51(0xce),{'interactionId':this[_0x401b51(0x91)]?this[_0x401b51(0x91)]['id']:void 0x0,'error':_0x351b8a});}finally{this[_0x401b51(0x91)]?.[_0x401b51(0xde)](),this[_0x401b51(0x91)]=void 0x0;}}[_0x482322(0x94)]({userMessage:_0x143140,contextItems:_0x1e6300,capabilities:_0xd30c2f,modelId:_0x105f72,quickActionData:_0x2a846a}){const _0x12a37e=_0x482322,_0x29e326=new _0x28a916({'userMessage':_0x143140,'contextItems':_0x1e6300,'capabilities':_0xd30c2f,'conversationId':this['id'],'connector':this[_0x12a37e(0xd0)],'editor':this[_0x12a37e(0x80)][_0x12a37e(0xe5)]&&this[_0x12a37e(0x80)][_0x12a37e(0xe5)](),'model':_0x105f72,'quickActionData':_0x2a846a});return _0x29e326[_0x12a37e(0xc9)](..._0x52b34b)['to'](this),this[_0x12a37e(0xbb)][_0x12a37e(0x8d)](_0x29e326),this[_0x12a37e(0xbf)](_0x12a37e(0xd5),_0x29e326),_0x29e326;}[_0x482322(0xbc)](_0x554291){const _0x137805=_0x482322;return this[_0x137805(0xbb)][_0x137805(0xaf)](_0x590210=>_0x590210['id']===_0x554291);}[_0x482322(0xbe)](_0x41c104){const _0x234770=_0x482322,_0x6d4b71=this[_0x234770(0xbc)](_0x41c104);_0x6d4b71&&(_0x6d4b71[_0x234770(0xa1)](),this[_0x234770(0xbb)][_0x234770(0xb6)](this[_0x234770(0xbb)][_0x234770(0xe3)](_0x6d4b71),0x1));}get[_0x482322(0xe8)](){const _0x4acbcf=_0x482322;return this[_0x4acbcf(0xbb)][this[_0x4acbcf(0xbb)][_0x4acbcf(0xc3)]-0x1];}[_0x482322(0xa0)](_0x2f9a53){const _0x1c838f=_0x482322;this[_0x1c838f(0xa9)][_0x1c838f(0xa0)](_0x2f9a53);}async[_0x482322(0xc1)]({content:_0x4ec592,version:_0x57672d,sessionId:_0x20ddfd,selections:_0x3d094d}){const _0x352127=_0x482322;await this[_0x352127(0xa9)][_0x352127(0x98)](_0x4ec592,_0x57672d,_0x20ddfd,_0x3d094d);}[_0x482322(0x96)](){const _0x5ae24f=_0x482322;return this[_0x5ae24f(0x91)]?.[_0x5ae24f(0xd3)]()?.[_0x5ae24f(0xd7)]||'';}[_0x482322(0x7b)](_0x3805b7){const _0x4ba425=_0x482322;this[_0x4ba425(0xa9)][_0x4ba425(0x7b)](_0x3805b7);}[_0x482322(0xbd)](){const _0x26e175=_0x482322;this[_0x26e175(0xa9)][_0x26e175(0xbd)]();}[_0x482322(0xd4)](_0x4a3400){const _0x24b45f=_0x482322;this[_0x24b45f(0xa9)][_0x24b45f(0xd4)](_0x4a3400);}[_0x482322(0xa2)](_0x455011){const _0x2cc758=_0x482322;this[_0x2cc758(0xa9)][_0x2cc758(0xa2)](_0x455011);}[_0x482322(0xd1)](_0x2504ad,_0x33adb4){const _0x3bdaeb=_0x482322;this[_0x3bdaeb(0xa9)][_0x3bdaeb(0xd1)](_0x2504ad,_0x33adb4);}[_0x482322(0xc8)](_0xca1d4e,_0x35d370,_0x2bfaa1){const _0x57a6e6=_0x482322;return this[_0x57a6e6(0xa9)][_0x57a6e6(0xc8)](_0xca1d4e,_0x35d370,_0x2bfaa1);}[_0x482322(0xb9)](_0x3cbedd){const _0x200f15=_0x482322;this[_0x200f15(0xa9)][_0x200f15(0xb9)](_0x3cbedd);}[_0x482322(0xcc)](){const _0x14b097=_0x482322;this[_0x14b097(0x7c)][_0x14b097(0xcc)]();}[_0x482322(0xaa)](){const _0x182bb9=_0x482322;this[_0x182bb9(0x7c)][_0x182bb9(0xaa)]();}[_0x482322(0x9e)](){const _0x267ec8=_0x482322;return this[_0x267ec8(0xa9)][_0x267ec8(0x9e)]();}[_0x482322(0x90)](){const _0x227c8d=_0x482322;return this[_0x227c8d(0xa9)][_0x227c8d(0x90)]();}[_0x482322(0xa3)](){const _0x186f71=_0x482322;return this[_0x186f71(0xa9)][_0x186f71(0xa3)]();}async[_0x482322(0xe7)](_0x5a3715){const _0x5526fc=_0x482322;_0x5a3715?!0x1===await this[_0x5526fc(0xd6)][_0x5526fc(0xb8)](_0x5a3715)&&(_0x2f7878(_0x5526fc(0x83),{'conversation':this,'model':_0x5a3715}),_0x5a3715=(await this[_0x5526fc(0xd6)][_0x5526fc(0xd2)]())[0x0]):(_0x2f7878(_0x5526fc(0xcb),{'conversation':this}),_0x5a3715=(await this[_0x5526fc(0xd6)][_0x5526fc(0xd2)]())[0x0]),_0x5a3715['id']!==this[_0x5526fc(0x86)]?.['id']&&(this[_0x5526fc(0x86)]=_0x5a3715,this[_0x5526fc(0x7c)][_0x5526fc(0xc6)](),this[_0x5526fc(0xbf)](_0x5526fc(0xc0),{'selectedModel':_0x5a3715}));}}
23
+ function _0x59eb(){const _0x1aba50=['webSearch','createReply','destroy','getEditor','start','isSelectionInContext','modification-delta','selectedModelId','lastInteraction','8276634FXADOi','text-delta','7adxqhR','getCapabilitiesConfig','currentReply','reasoning','addToConversationContext','conversationInitialized','user','ai-chat-handle-user-interaction-already-in-progress','interactions','interactionCreated','removeFromContext','getAvailableModels','isCurrentDocumentInContext','type','group','ai-chat-conversation-already-started','chatContext','addResourceToContext','splice','fire','text','fetchConversation','load','setModel','getDocumentContext','getModel','init','3844750UKsSWt','toggleReasoning','ai-chat-conversation-init-failed','ai-chat-conversation-init-from-id-failed','contextItems','createInteraction','capabilities','loadSourceResources','length','quickActionData','modelSelected','stop','addFilesToContext','hasOwn','removeInteraction','message','_processMessagesToInteractions','conversationId','appendContent','attributes','currentInteraction','421249IkzKLp','getInteraction','prompt','sessionId','addCurrentDocumentToContext','selectedModel','ai-chat-conversation-start-failed','populateFromMessage','error','addSelectionToContext','startConversation','isStarted','964844fBZmbQ','6841416IxsluK','chatModels','conversationStarted','1285293qdzGWf','ai-chat-conversation-set-model-not-available','set','stack','getConversation','getCurrentDocumentContext','find','handleUserInteraction','title','connector','ai-chat-conversation-set-model-null','role','assistant','ai-chat-handle-user-conversation-not-initialized','content','updateCurrentDocument','reset','removeSelectionFromContext','5920gwiJHt','getPendingContextItems','chatCapabilities','setConversationTitle','options','1038Yzbcgq','toLowerCase','getAll','indexOf','isAvailable','addUrlToContext','getMessages','2OFaOXa','toggleWebSearch','isCurrentDocumentInConversation','delegate','ai-chat-conversation-start-no-model-selected','updateCurrentDocumentInContext','_extractContextItems','push','model','fetchConversationMessages'];_0x59eb=function(){return _0x1aba50;};return _0x59eb();}const _0x2fba7c=_0xc252;(function(_0x4b8fcc,_0x29dc19){const _0x197183=_0xc252,_0x37b5f9=_0x4b8fcc();while(!![]){try{const _0x9d8616=-parseInt(_0x197183(0x17a))/0x1*(parseInt(_0x197183(0x1a8))/0x2)+-parseInt(_0x197183(0x18a))/0x3+-parseInt(_0x197183(0x186))/0x4+-parseInt(_0x197183(0x19c))/0x5*(-parseInt(_0x197183(0x1a1))/0x6)+-parseInt(_0x197183(0x1bd))/0x7*(-parseInt(_0x197183(0x187))/0x8)+parseInt(_0x197183(0x1bb))/0x9+-parseInt(_0x197183(0x1d8))/0xa;if(_0x9d8616===_0x29dc19)break;else _0x37b5f9['push'](_0x37b5f9['shift']());}catch(_0x596601){_0x37b5f9['push'](_0x37b5f9['shift']());}}}(_0x59eb,0x7b1cd));import{CKEditorError as _0x1f034b,EmitterMixin as _0x17fb45,logWarning as _0x259867}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x10e7c1}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4ce1d2,AI_CONTEXT_MODEL_EVENT_NAMES as _0x392f8b}from'./aichatcontext.js';import{AICapabilities as _0x567a83,CAPABILITIES_MODEL_EVENT_NAMES as _0xbfd602}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3d7046}from'./aichatinteraction.js';function _0xc252(_0x813860,_0x693d51){const _0x59eb5e=_0x59eb();return _0xc252=function(_0xc2525e,_0x33ebc0){_0xc2525e=_0xc2525e-0x16e;let _0x23ac09=_0x59eb5e[_0xc2525e];return _0x23ac09;},_0xc252(_0x813860,_0x693d51);}export class AIChatConversation extends _0x17fb45(){['id'];[_0x2fba7c(0x185)]=!0x1;[_0x2fba7c(0x1c5)]=[];[_0x2fba7c(0x179)];[_0x2fba7c(0x17f)];[_0x2fba7c(0x193)];[_0x2fba7c(0x1a0)];constructor(_0x2e0ab3){const _0xe006b8=_0x2fba7c;super(),this[_0xe006b8(0x1a0)]=_0x2e0ab3,this[_0xe006b8(0x193)]=_0x2e0ab3[_0xe006b8(0x193)],this[_0xe006b8(0x188)]=_0x2e0ab3[_0xe006b8(0x188)],this['id']=_0x2e0ab3[_0xe006b8(0x176)];}async[_0x2fba7c(0x1d7)](_0x292141){const _0x1140c2=_0x2fba7c;try{this[_0x1140c2(0x1cd)]=new _0x4ce1d2({'connector':this[_0x1140c2(0x193)],'config':_0x292141,'ownerId':this['id']}),this[_0x1140c2(0x1cd)][_0x1140c2(0x1ab)](..._0x392f8b)['to'](this),this[_0x1140c2(0x1cd)][_0x1140c2(0x1d7)](),this[_0x1140c2(0x19e)]=new _0x567a83(),this[_0x1140c2(0x19e)][_0x1140c2(0x1ab)](..._0xbfd602)['to'](this),this[_0x1140c2(0x19e)][_0x1140c2(0x1d7)]();const _0x28eb55=await this[_0x1140c2(0x188)][_0x1140c2(0x1c8)]();this[_0x1140c2(0x1d0)](_0x1140c2(0x1c2),{'availableModels':_0x28eb55});const _0x1d05c1=await this[_0x1140c2(0x188)][_0x1140c2(0x1d6)](this[_0x1140c2(0x1a0)][_0x1140c2(0x1b9)]);_0x1d05c1&&await this[_0x1140c2(0x1d4)](_0x1d05c1);}catch(_0x9334a5){const _0x2f6f14=new _0x1f034b(_0x1140c2(0x1da),null,{'message':_0x9334a5[_0x1140c2(0x174)]});_0x2f6f14[_0x1140c2(0x18d)]=_0x9334a5[_0x1140c2(0x18d)],this[_0x1140c2(0x1d0)](_0x1140c2(0x182),{'error':_0x2f6f14});}}async[_0x2fba7c(0x1b6)](){const _0x169d69=_0x2fba7c;if(this[_0x169d69(0x185)])throw new _0x1f034b(_0x169d69(0x1cc),null,{'conversation':this});if(!this[_0x169d69(0x17f)])throw new _0x1f034b(_0x169d69(0x1ac),null,{'conversation':this});try{const {id:_0x214c89}=await this[_0x169d69(0x193)][_0x169d69(0x184)](this['id'],this[_0x169d69(0x1a0)][_0x169d69(0x1cb)])[_0x169d69(0x18e)]();this['id']=_0x214c89,this[_0x169d69(0x185)]=!0x0,this[_0x169d69(0x1d0)](_0x169d69(0x189),{'conversationId':this['id'],'selectedModel':this[_0x169d69(0x17f)]});}catch(_0x400fa0){const _0x9f6dcb=new _0x1f034b(_0x169d69(0x180),null,{'message':_0x400fa0[_0x169d69(0x174)]});_0x9f6dcb[_0x169d69(0x18d)]=_0x400fa0[_0x169d69(0x18d)],this[_0x169d69(0x1d0)](_0x169d69(0x182),{'error':_0x9f6dcb});}}async[_0x2fba7c(0x1d3)](_0x425f7d,_0x68d649){const _0x347891=_0x2fba7c;try{const _0x89b5f5=await this[_0x347891(0x193)][_0x347891(0x1d2)](_0x425f7d)[_0x347891(0x18e)](),_0x42080a=await this[_0x347891(0x193)][_0x347891(0x1b1)](_0x425f7d)[_0x347891(0x1a7)](),_0x2a36b3=_0x42080a[0x0][_0x347891(0x1b0)];this[_0x347891(0x185)]=!0x0,this['id']=_0x89b5f5['id'],_0x347891(0x192)in _0x89b5f5?this[_0x347891(0x1d0)](_0x347891(0x19f),_0x89b5f5[_0x347891(0x192)],!0x0):this[_0x347891(0x1d0)](_0x347891(0x19f),'',!0x0);const _0x11af5a=(await this[_0x347891(0x188)][_0x347891(0x1a3)]())[_0x347891(0x190)](_0x31fbf3=>_0x31fbf3['id'][_0x347891(0x1a2)]()===_0x2a36b3[_0x347891(0x1a2)]());return this[_0x347891(0x17f)]=_0x11af5a,this[_0x347891(0x1d0)](_0x347891(0x16f),{'selectedModel':_0x11af5a,'isDisabled':!0x0}),await this[_0x347891(0x175)](_0x42080a,_0x68d649,_0x2a36b3),this[_0x347891(0x179)]=void 0x0,this;}catch(_0x13653a){const _0x48e95a=new _0x1f034b(_0x347891(0x1db),null,{'message':_0x13653a[_0x347891(0x174)],'conversationId':_0x425f7d});throw _0x48e95a[_0x347891(0x18d)]=_0x13653a[_0x347891(0x18d)],this[_0x347891(0x1d0)](_0x347891(0x182),{'error':_0x48e95a}),_0x48e95a;}}async[_0x2fba7c(0x175)](_0x2d2180,_0x361b3d,_0x5c9213){const _0x3cc41e=_0x2fba7c;let _0x53901d;for(const _0x823cf8 of _0x2d2180)if(_0x3cc41e(0x1c3)===_0x823cf8[_0x3cc41e(0x195)]){const _0x1f522f=await this[_0x3cc41e(0x1ae)](_0x823cf8),_0xc3f51={'isReasoningEnabled':Object[_0x3cc41e(0x172)](_0x823cf8[_0x3cc41e(0x1de)],_0x3cc41e(0x1c0)),'isWebSearchEnabled':Object[_0x3cc41e(0x172)](_0x823cf8[_0x3cc41e(0x1de)],_0x3cc41e(0x1b2))};_0x53901d=this[_0x3cc41e(0x1dd)]({'userMessage':_0x823cf8[_0x3cc41e(0x17c)],'contextItems':_0x1f522f,'capabilities':_0xc3f51,'modelId':_0x5c9213,'quickActionData':_0x823cf8[_0x3cc41e(0x178)]?.[_0x3cc41e(0x16e)]}),this[_0x3cc41e(0x179)]=_0x53901d,this[_0x3cc41e(0x1cd)][_0x3cc41e(0x1c1)](this[_0x3cc41e(0x179)][_0x3cc41e(0x1dc)]);}else{if(_0x3cc41e(0x196)===_0x823cf8[_0x3cc41e(0x195)]&&_0x53901d)for(const _0x327b0c of _0x823cf8[_0x3cc41e(0x198)]){const _0x2732d8=_0x3cc41e(0x1d1)===_0x327b0c[_0x3cc41e(0x1ca)]?_0x3cc41e(0x1bc):_0x3cc41e(0x1b8),_0x5afae6=_0x53901d[_0x3cc41e(0x1d5)]()?.[_0x3cc41e(0x17d)]!==_0x361b3d;_0x53901d[_0x3cc41e(0x1bf)]=_0x53901d[_0x3cc41e(0x1b3)]({'type':_0x2732d8,'isDone':!0x0,'interactionId':_0x53901d['id'],'areActionsDisabled':_0x5afae6}),_0x53901d[_0x3cc41e(0x1bf)][_0x3cc41e(0x177)](_0x327b0c[_0x3cc41e(0x198)]);}}}async[_0x2fba7c(0x1ae)](_0x5c8a97){const _0x1c71bc=_0x2fba7c,_0x4cf577=new Map();if(!_0x5c8a97[_0x1c71bc(0x198)])return _0x4cf577;for(const _0xa72772 of _0x5c8a97[_0x1c71bc(0x198)]){const _0x22e1ec=await this[_0x1c71bc(0x1cd)][_0x1c71bc(0x181)](_0xa72772);_0x22e1ec&&_0x4cf577[_0x1c71bc(0x18c)](_0x22e1ec['id'],_0x22e1ec);}return _0x4cf577;}async[_0x2fba7c(0x191)]({userMessage:_0x5274eb,quickActionData:_0x44f487}){const _0x4d454d=_0x2fba7c;if(!this[_0x4d454d(0x185)])throw new _0x1f034b(_0x4d454d(0x197),null,{'conversation':this});if(this[_0x4d454d(0x179)])throw new _0x1f034b(_0x4d454d(0x1c4),null,{'conversation':this});try{const _0x122c3d=this[_0x4d454d(0x1cd)][_0x4d454d(0x19d)](),_0x70a431=this[_0x4d454d(0x19e)][_0x4d454d(0x1be)](),_0xd92566=this[_0x4d454d(0x17f)]['id'];this[_0x4d454d(0x179)]=this[_0x4d454d(0x1dd)]({'userMessage':_0x5274eb,'contextItems':_0x122c3d,'capabilities':_0x70a431,'modelId':_0xd92566,'quickActionData':_0x44f487}),await this[_0x4d454d(0x179)][_0x4d454d(0x1b6)](),this[_0x4d454d(0x1cd)][_0x4d454d(0x1c1)](this[_0x4d454d(0x179)][_0x4d454d(0x1dc)]);}catch(_0x17639e){this[_0x4d454d(0x1d0)](_0x4d454d(0x182),{'interactionId':this[_0x4d454d(0x179)]?this[_0x4d454d(0x179)]['id']:void 0x0,'error':_0x17639e});}finally{this[_0x4d454d(0x179)]?.[_0x4d454d(0x170)](),this[_0x4d454d(0x179)]=void 0x0;}}[_0x2fba7c(0x1dd)]({userMessage:_0x1a7536,contextItems:_0xd69497,capabilities:_0x3fb8e6,modelId:_0x3fe781,quickActionData:_0x48c2d9}){const _0x2e0ce9=_0x2fba7c,_0x394505=new _0x3d7046({'userMessage':_0x1a7536,'contextItems':_0xd69497,'capabilities':_0x3fb8e6,'conversationId':this['id'],'connector':this[_0x2e0ce9(0x193)],'editor':this[_0x2e0ce9(0x1a0)][_0x2e0ce9(0x1b5)]&&this[_0x2e0ce9(0x1a0)][_0x2e0ce9(0x1b5)](),'model':_0x3fe781,'quickActionData':_0x48c2d9});return _0x394505[_0x2e0ce9(0x1ab)](..._0x10e7c1)['to'](this),this[_0x2e0ce9(0x1c5)][_0x2e0ce9(0x1af)](_0x394505),this[_0x2e0ce9(0x1d0)](_0x2e0ce9(0x1c6),_0x394505),_0x394505;}[_0x2fba7c(0x17b)](_0x4cf329){const _0xeb423d=_0x2fba7c;return this[_0xeb423d(0x1c5)][_0xeb423d(0x190)](_0x507e99=>_0x507e99['id']===_0x4cf329);}[_0x2fba7c(0x173)](_0x5dc850){const _0x19c951=_0x2fba7c,_0x5e3891=this[_0x19c951(0x17b)](_0x5dc850);_0x5e3891&&(_0x5e3891[_0x19c951(0x1b4)](),this[_0x19c951(0x1c5)][_0x19c951(0x1cf)](this[_0x19c951(0x1c5)][_0x19c951(0x1a4)](_0x5e3891),0x1));}get[_0x2fba7c(0x1ba)](){const _0x4fa6ec=_0x2fba7c;return this[_0x4fa6ec(0x1c5)][this[_0x4fa6ec(0x1c5)][_0x4fa6ec(0x1e0)]-0x1];}[_0x2fba7c(0x17e)](_0x3d6df8){const _0xf22621=_0x2fba7c;this[_0xf22621(0x1cd)][_0xf22621(0x17e)](_0x3d6df8);}async[_0x2fba7c(0x1ad)]({content:_0x58327d,version:_0x5e8ca2,sessionId:_0x5d78b6,selections:_0x28f475}){const _0x273824=_0x2fba7c;await this[_0x273824(0x1cd)][_0x273824(0x199)](_0x58327d,_0x5e8ca2,_0x5d78b6,_0x28f475);}[_0x2fba7c(0x18f)](){const _0xcaeb04=_0x2fba7c;return this[_0xcaeb04(0x179)]?.[_0xcaeb04(0x1d5)]()?.[_0xcaeb04(0x198)]||'';}[_0x2fba7c(0x183)](_0xf5f46e){const _0x50d31a=_0x2fba7c;this[_0x50d31a(0x1cd)][_0x50d31a(0x183)](_0xf5f46e);}[_0x2fba7c(0x19b)](){const _0x3cb621=_0x2fba7c;this[_0x3cb621(0x1cd)][_0x3cb621(0x19b)]();}[_0x2fba7c(0x171)](_0x436650){const _0x2ab9f3=_0x2fba7c;this[_0x2ab9f3(0x1cd)][_0x2ab9f3(0x171)](_0x436650);}[_0x2fba7c(0x1a6)](_0xdbb9b5){const _0xf8280=_0x2fba7c;this[_0xf8280(0x1cd)][_0xf8280(0x1a6)](_0xdbb9b5);}[_0x2fba7c(0x1ce)](_0x2ccdb2,_0x5be301){const _0x52a6e9=_0x2fba7c;this[_0x52a6e9(0x1cd)][_0x52a6e9(0x1ce)](_0x2ccdb2,_0x5be301);}[_0x2fba7c(0x1df)](_0x42a845,_0x121184,_0xcc6014){const _0x5f2ee1=_0x2fba7c;return this[_0x5f2ee1(0x1cd)][_0x5f2ee1(0x1df)](_0x42a845,_0x121184,_0xcc6014);}[_0x2fba7c(0x1c7)](_0x55da48){const _0x689d9a=_0x2fba7c;this[_0x689d9a(0x1cd)][_0x689d9a(0x1c7)](_0x55da48);}[_0x2fba7c(0x1a9)](){const _0xf2f297=_0x2fba7c;this[_0xf2f297(0x19e)][_0xf2f297(0x1a9)]();}[_0x2fba7c(0x1d9)](){const _0x37b71e=_0x2fba7c;this[_0x37b71e(0x19e)][_0x37b71e(0x1d9)]();}[_0x2fba7c(0x1c9)](){const _0x5c9b6b=_0x2fba7c;return this[_0x5c9b6b(0x1cd)][_0x5c9b6b(0x1c9)]();}[_0x2fba7c(0x1aa)](){const _0x3de9a5=_0x2fba7c;return this[_0x3de9a5(0x1cd)][_0x3de9a5(0x1aa)]();}[_0x2fba7c(0x1b7)](){const _0x10ba90=_0x2fba7c;return this[_0x10ba90(0x1cd)][_0x10ba90(0x1b7)]();}async[_0x2fba7c(0x1d4)](_0x38c7de){const _0x35b5f5=_0x2fba7c;_0x38c7de?!0x1===await this[_0x35b5f5(0x188)][_0x35b5f5(0x1a5)](_0x38c7de)&&(_0x259867(_0x35b5f5(0x18b),{'conversation':this,'model':_0x38c7de}),_0x38c7de=(await this[_0x35b5f5(0x188)][_0x35b5f5(0x1c8)]())[0x0]):(_0x259867(_0x35b5f5(0x194),{'conversation':this}),_0x38c7de=(await this[_0x35b5f5(0x188)][_0x35b5f5(0x1c8)]())[0x0]),_0x38c7de['id']!==this[_0x35b5f5(0x17f)]?.['id']&&(this[_0x35b5f5(0x17f)]=_0x38c7de,this[_0x35b5f5(0x19e)][_0x35b5f5(0x19a)](),this[_0x35b5f5(0x1d0)](_0x35b5f5(0x16f),{'selectedModel':_0x38c7de}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1849(_0x182080,_0x51323c){var _0x280167=_0x2801();return _0x1849=function(_0x184966,_0x1cc72e){_0x184966=_0x184966-0xa1;var _0x41f6b7=_0x280167[_0x184966];return _0x41f6b7;},_0x1849(_0x182080,_0x51323c);}var _0xe4120e=_0x1849;(function(_0x32cd2d,_0x5c94df){var _0x39b48b=_0x1849,_0x280d99=_0x32cd2d();while(!![]){try{var _0x19f8b5=-parseInt(_0x39b48b(0xb5))/0x1+-parseInt(_0x39b48b(0xa6))/0x2+parseInt(_0x39b48b(0xaa))/0x3*(-parseInt(_0x39b48b(0xb0))/0x4)+-parseInt(_0x39b48b(0xb6))/0x5+-parseInt(_0x39b48b(0xad))/0x6*(parseInt(_0x39b48b(0xb8))/0x7)+-parseInt(_0x39b48b(0xa4))/0x8+-parseInt(_0x39b48b(0xb1))/0x9*(-parseInt(_0x39b48b(0xb7))/0xa);if(_0x19f8b5===_0x5c94df)break;else _0x280d99['push'](_0x280d99['shift']());}catch(_0x6368e8){_0x280d99['push'](_0x280d99['shift']());}}}(_0x2801,0xbd3b3));import{AICapabilities as _0x12b924}from'../../aicore/model/aicapabilities.js';function _0x2801(){var _0x133b2a=['21JQjFVp','get','mapContextItemsToRequestData','contextItems','5398912CNrppU','sendRequest','1463682rxcznz','capabilities','userMessage','model','27OBMlAF','getDocumentContext','current-document','671172BpALvj','connector','conversationId','133820nXUZhC','43003773CRuOoV','getCapabilitiesRequestData','quickActionData','queryAssistant','829749LBrUJD','5649855QTOatC','10RsivWt'];_0x2801=function(){return _0x133b2a;};return _0x2801();}import{AIInteraction as _0x12c695}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x55cfdc}from'./aichatcontext.js';export class AIChatInteraction extends _0x12c695{[_0xe4120e(0xa8)];[_0xe4120e(0xaf)];[_0xe4120e(0xa3)]=new Map();[_0xe4120e(0xa9)];[_0xe4120e(0xb3)];constructor(_0x37c6c5){var _0x7393c7=_0xe4120e;super(_0x37c6c5),this[_0x7393c7(0xaf)]=_0x37c6c5[_0x7393c7(0xaf)],this[_0x7393c7(0xa3)]=_0x37c6c5[_0x7393c7(0xa3)],this[_0x7393c7(0xa7)]=_0x37c6c5[_0x7393c7(0xa7)],this[_0x7393c7(0xa8)]=_0x37c6c5[_0x7393c7(0xa8)],this[_0x7393c7(0xa9)]=_0x37c6c5[_0x7393c7(0xa9)],this[_0x7393c7(0xb3)]=_0x37c6c5[_0x7393c7(0xb3)];}async[_0xe4120e(0xa5)](){var _0x58150f=_0xe4120e;return this[_0x58150f(0xae)][_0x58150f(0xb4)]({'message':this[_0x58150f(0xa8)],'conversationId':this[_0x58150f(0xaf)],'parts':_0x55cfdc[_0x58150f(0xa2)](this[_0x58150f(0xa3)]),'capabilities':_0x12b924[_0x58150f(0xb2)](this[_0x58150f(0xa7)]),'model':this[_0x58150f(0xa9)],'quickActionData':this[_0x58150f(0xb3)]});}[_0xe4120e(0xab)](){var _0x5b02ba=_0xe4120e;return this[_0x5b02ba(0xa3)][_0x5b02ba(0xa1)](_0x5b02ba(0xac));}}
23
+ function _0x7c2e(){var _0x498b11=['540626VwtDsh','1366376dACzAz','quickActionData','get','12IBorzO','current-document','queryAssistant','7819630dqoDik','userMessage','1477205pcAsfZ','9AjOAWD','sendRequest','75654IUhJwR','mapContextItemsToRequestData','getDocumentContext','capabilities','7puGMtp','model','getCapabilitiesRequestData','contextItems','31220431uEsOgz','2kWizrf','conversationId','connector','508707oaeycb'];_0x7c2e=function(){return _0x498b11;};return _0x7c2e();}var _0x5e56bf=_0x408e;(function(_0xd75e4c,_0x4f950f){var _0x34c2db=_0x408e,_0x50a050=_0xd75e4c();while(!![]){try{var _0xb89248=-parseInt(_0x34c2db(0x1a7))/0x1*(parseInt(_0x34c2db(0x1ab))/0x2)+parseInt(_0x34c2db(0x1aa))/0x3+-parseInt(_0x34c2db(0x1af))/0x4*(parseInt(_0x34c2db(0x19b))/0x5)+parseInt(_0x34c2db(0x19e))/0x6*(parseInt(_0x34c2db(0x1a2))/0x7)+parseInt(_0x34c2db(0x1ac))/0x8*(-parseInt(_0x34c2db(0x19c))/0x9)+-parseInt(_0x34c2db(0x1b2))/0xa+parseInt(_0x34c2db(0x1a6))/0xb;if(_0xb89248===_0x4f950f)break;else _0x50a050['push'](_0x50a050['shift']());}catch(_0x4dadd6){_0x50a050['push'](_0x50a050['shift']());}}}(_0x7c2e,0x9c6b2));function _0x408e(_0x5b4a13,_0x42dd19){var _0x7c2e43=_0x7c2e();return _0x408e=function(_0x408eb7,_0x81a8ef){_0x408eb7=_0x408eb7-0x19b;var _0x4f5da6=_0x7c2e43[_0x408eb7];return _0x4f5da6;},_0x408e(_0x5b4a13,_0x42dd19);}import{AICapabilities as _0x1414a3}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xf25eeb}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3fd16f}from'./aichatcontext.js';export class AIChatInteraction extends _0xf25eeb{[_0x5e56bf(0x1b3)];[_0x5e56bf(0x1a8)];[_0x5e56bf(0x1a5)]=new Map();[_0x5e56bf(0x1a3)];[_0x5e56bf(0x1ad)];constructor(_0x308f43){var _0x20ece7=_0x5e56bf;super(_0x308f43),this[_0x20ece7(0x1a8)]=_0x308f43[_0x20ece7(0x1a8)],this[_0x20ece7(0x1a5)]=_0x308f43[_0x20ece7(0x1a5)],this[_0x20ece7(0x1a1)]=_0x308f43[_0x20ece7(0x1a1)],this[_0x20ece7(0x1b3)]=_0x308f43[_0x20ece7(0x1b3)],this[_0x20ece7(0x1a3)]=_0x308f43[_0x20ece7(0x1a3)],this[_0x20ece7(0x1ad)]=_0x308f43[_0x20ece7(0x1ad)];}async[_0x5e56bf(0x19d)](){var _0x7a394b=_0x5e56bf;return this[_0x7a394b(0x1a9)][_0x7a394b(0x1b1)]({'message':this[_0x7a394b(0x1b3)],'conversationId':this[_0x7a394b(0x1a8)],'parts':_0x3fd16f[_0x7a394b(0x19f)](this[_0x7a394b(0x1a5)]),'capabilities':_0x1414a3[_0x7a394b(0x1a4)](this[_0x7a394b(0x1a1)]),'model':this[_0x7a394b(0x1a3)],'quickActionData':this[_0x7a394b(0x1ad)]});}[_0x5e56bf(0x1a0)](){var _0x2e18eb=_0x5e56bf;return this[_0x2e18eb(0x1a5)][_0x2e18eb(0x1ae)](_0x2e18eb(0x1b0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15141c=_0x32f4;function _0x32f4(_0x3bd7d1,_0x2fb833){const _0x9e09f8=_0x9e09();return _0x32f4=function(_0x32f467,_0x34ebb6){_0x32f467=_0x32f467-0x1b0;let _0x56d06f=_0x9e09f8[_0x32f467];return _0x56d06f;},_0x32f4(_0x3bd7d1,_0x2fb833);}function _0x9e09(){const _0x51b634=['values','length','21130fJPBLC','168NZgXRU','getAll','1066365cmuOzd','972391hFRUoP','4830008dfNCJd','filter','363453XFFJOz','sort','332254yGcuLo','enabled','20211930aCJfdW','24rTAWxT','capabilities'];_0x9e09=function(){return _0x51b634;};return _0x9e09();}(function(_0x5d5dc3,_0x3a5b6e){const _0x37d1be=_0x32f4,_0x3a77e7=_0x5d5dc3();while(!![]){try{const _0x1a1245=-parseInt(_0x37d1be(0x1bc))/0x1+parseInt(_0x37d1be(0x1be))/0x2+-parseInt(_0x37d1be(0x1b8))/0x3+-parseInt(_0x37d1be(0x1b6))/0x4*(parseInt(_0x37d1be(0x1b5))/0x5)+-parseInt(_0x37d1be(0x1b1))/0x6*(parseInt(_0x37d1be(0x1b9))/0x7)+-parseInt(_0x37d1be(0x1ba))/0x8+parseInt(_0x37d1be(0x1b0))/0x9;if(_0x1a1245===_0x3a5b6e)break;else _0x3a77e7['push'](_0x3a77e7['shift']());}catch(_0x2b2bac){_0x3a77e7['push'](_0x3a77e7['shift']());}}}(_0x9e09,0x56efe));import{AIModels as _0x5610d3}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x5610d3{async[_0x15141c(0x1b7)](){const _0x2d378f=_0x15141c;return(await super[_0x2d378f(0x1b7)]())[_0x2d378f(0x1bd)]((_0x49daeb,_0x122f3e)=>{const _0x22c1e8=_0x2d378f,_0x587232=Object[_0x22c1e8(0x1b3)](_0x49daeb[_0x22c1e8(0x1b2)])[_0x22c1e8(0x1bb)](_0xaaaab1=>_0xaaaab1[_0x22c1e8(0x1bf)])[_0x22c1e8(0x1b4)];return Object[_0x22c1e8(0x1b3)](_0x122f3e[_0x22c1e8(0x1b2)])[_0x22c1e8(0x1bb)](_0xd8b56=>_0xd8b56[_0x22c1e8(0x1bf)])[_0x22c1e8(0x1b4)]-_0x587232;});}}
23
+ const _0x1ecc36=_0x27d8;(function(_0x14492d,_0x142fb3){const _0x378997=_0x27d8,_0x46d046=_0x14492d();while(!![]){try{const _0x41ffa8=-parseInt(_0x378997(0x184))/0x1+-parseInt(_0x378997(0x183))/0x2*(-parseInt(_0x378997(0x180))/0x3)+-parseInt(_0x378997(0x179))/0x4*(-parseInt(_0x378997(0x17c))/0x5)+parseInt(_0x378997(0x17e))/0x6+parseInt(_0x378997(0x177))/0x7+parseInt(_0x378997(0x181))/0x8*(parseInt(_0x378997(0x176))/0x9)+-parseInt(_0x378997(0x186))/0xa;if(_0x41ffa8===_0x142fb3)break;else _0x46d046['push'](_0x46d046['shift']());}catch(_0x213aae){_0x46d046['push'](_0x46d046['shift']());}}}(_0x2003,0xc0739));import{AIModels as _0x493f07}from'../../aicore/model/aimodels.js';function _0x27d8(_0x1f0198,_0x42a4e8){const _0x2003e3=_0x2003();return _0x27d8=function(_0x27d8e6,_0x291960){_0x27d8e6=_0x27d8e6-0x176;let _0x37311d=_0x2003e3[_0x27d8e6];return _0x37311d;},_0x27d8(_0x1f0198,_0x42a4e8);}function _0x2003(){const _0x564084=['6DINZyC','19240IUboGo','enabled','546458SuhxLu','683079lwKMct','length','16400720PqlsSM','1557IwOjdK','5390763lsNvVv','filter','56mOfIUj','values','getAll','376420KUKvZw','capabilities','1948944JxidDu','sort'];_0x2003=function(){return _0x564084;};return _0x2003();}export class AIChatModels extends _0x493f07{async[_0x1ecc36(0x17b)](){const _0x204b1d=_0x1ecc36;return(await super[_0x204b1d(0x17b)]())[_0x204b1d(0x17f)]((_0x20c4c8,_0x4e9091)=>{const _0x4f9fc4=_0x204b1d,_0x7f96eb=Object[_0x4f9fc4(0x17a)](_0x20c4c8[_0x4f9fc4(0x17d)])[_0x4f9fc4(0x178)](_0x1f0ab0=>_0x1f0ab0[_0x4f9fc4(0x182)])[_0x4f9fc4(0x185)];return Object[_0x4f9fc4(0x17a)](_0x4e9091[_0x4f9fc4(0x17d)])[_0x4f9fc4(0x178)](_0x13b01b=>_0x13b01b[_0x4f9fc4(0x182)])[_0x4f9fc4(0x185)]-_0x7f96eb;});}}