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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.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 _0x3f0e4e=_0x5873;(function(_0x22dd5b,_0x299a7c){const _0x2c6ab7=_0x5873,_0x59aaf3=_0x22dd5b();while(!![]){try{const _0x4bce80=-parseInt(_0x2c6ab7(0x1b7))/0x1+-parseInt(_0x2c6ab7(0x254))/0x2*(-parseInt(_0x2c6ab7(0x241))/0x3)+parseInt(_0x2c6ab7(0x24f))/0x4+-parseInt(_0x2c6ab7(0x249))/0x5*(-parseInt(_0x2c6ab7(0x2b9))/0x6)+-parseInt(_0x2c6ab7(0x1d4))/0x7+-parseInt(_0x2c6ab7(0x1d3))/0x8*(-parseInt(_0x2c6ab7(0x1b6))/0x9)+parseInt(_0x2c6ab7(0x27e))/0xa;if(_0x4bce80===_0x299a7c)break;else _0x59aaf3['push'](_0x59aaf3['shift']());}catch(_0x479c56){_0x59aaf3['push'](_0x59aaf3['shift']());}}}(_0x101f,0xab9fc));function _0x5873(_0x228c82,_0x543c4e){const _0x101fb4=_0x101f();return _0x5873=function(_0x58738b,_0x2dbba2){_0x58738b=_0x58738b-0x195;let _0x130ee6=_0x101fb4[_0x58738b];return _0x130ee6;},_0x5873(_0x228c82,_0x543c4e);}import{ContextPlugin as _0x3d5196,Editor as _0xf7fefe}from'ckeditor5/src/core.js';import{CKEditorError as _0x1e9b3b,logError as _0x3c1905,scrollViewportToShowTarget as _0x1596df,uid as _0x416d88}from'ckeditor5/src/utils.js';import{AIConnector as _0x369b38}from'../aicore/aiconnector.js';import{AITabs as _0x2a1897}from'../aitabs/aitabs.js';import{AIChatConversation as _0x470ab6}from'./model/aichatconversation.js';function _0x101f(){const _0x46ab82=['slice','addFeedItemAISuggestion','AI_CHAT_CONTEXT_INVALID_DATA','error','isStarted','ai.chat.models.defaultModelId','redo','marker','AIEditing','addFeedItemUserMessage','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_handleStartConversation','AIConnector','ai-chat-missing-channel-id','root','_getDocumentRangeForReplyChanges','requires','createRange','outdated','showPrevious','createPositionAt','addSelectionToChatContext','_openBalloonFor','loadSourceResources','contextItem','lastInteraction','log','setContextItemLoading','76600lFnIAa','ai-chat-controller-mouse-over','parse','ai-request-aborted','data','editors','modelSelected','context','content','updateResourceState','addContextOptionsChanged','$graveyard','updateCurrentDocumentInContext','changeGroups','setChangeGroupState','AIChatUI','getAttribute','AI_CHAT_UNABLE_TO_START_CONVERSATION','toViewRange','toggleWebSearch','open','addFeedItemError','sourcePosition','isInContext','stop','getChild','_showConversationHistory','interactionFinished','replies','addResourceToContext','finishInteraction','replyContentUpdated','addCurrentDocumentToContext','pending','addFilesToContext','uid','rejectSuggestion','delete','_handleUIUserMessage','getInteractionAndReplyById','removeFromContext','contextSent','capabilitiesUpdated','main','document','mouseLeaveSuggestion','messageId','has','contextItemAdded','_toggleReasoning','isCurrentDocumentInContext','createConversation','showChangeInText','current-document','query','ai-chat-conversation-init-failed','scrollFeedToSuggestion','ai-chat-context-invalid-data','howMany','6HPQgTf','set','_insertSuggestion','removed','ai-chat-file-upload-failed','getRoot','get','uiId','TrackChanges','mapper','changes','addSelectionToContext','_removeAISelectionMarkers','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addContextItem','type','_aiChatUi','maxOffset','startInteraction','activeConversation','sources','updateFeedItemAIReplyContent','init','contextItems','interactionId','ai-chat-context-unsupported-type','toggleReasoning','abortPromptStream','upsertAIChatRating','showFakeVisualSelection','DocumentCompare','state','ai-chat-conversation-start-failed','interactionCreated','find','setFeedItemRenderingStrategy','chat','updateFeedItemAIReplySuggestionContent','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','revert','_previewedChangeGroup','setConversationTitle','contextItemLoadingEnded','isCurrentDocumentInConversation','load','mouseOverSuggestion','resourceId','rootName','resizedTabs','clearPendingContextUI','view','getChildren','createPositionFromPath','text-delta','ai.availableReplyActions','conversationInitialized','length','replyId','_toggleWebSearch','_integrateEditor','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_updateRatings','hideFakeVisualSelection','undo','_aiChatModels','webSearchStarted','_batchToChanges','ready','sendUserMessage','options','AI_BALLOON_HEADER_TITLE','removeContextItem','replyChangeGroupStateUpdated','getPath','viewRangeToDom','showNext','_aiConnector','setIsMaximized','map','resetMessageInput','accepted','reasoningStarted','findIndex','full','_balloonShowDiff','isOfficialPlugin','stopListening','new','disableControls','node','end','baseVersion','1507302UbgqxT','579342DPEhUa','updateFeedItemAIReplySources','activateTab','contextItemRemoved','resetConversationTitle','addFeedItemAIReply','getInteraction','clearConversationContextUI','getDocumentData','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_setIsMaximized','forEach','children','Failed\x20to\x20load\x20conversation','partIndex','getGroupId','startsWith','_logError','documentContextContent','afterInit','sendMessage','unshift','webSearchFinished','closeSourceResourceBalloon','like','sourceResourcesLoaded','setLoadingMessage','addFeedItemStaticMessage','40STyLrH','6242831NBlkGM','selectModel','addFeedInteractionHeader','isUploadInProgress','version','getDocumentContext','toggleLoadingSkeleton','isPremiumPlugin','message','isLoading','remove','_startConversationSafely','resize','index','modification-delta','AI_CHAT_UNTITLED_CONVERSATION','source','split','ai-no-track-changes','cloneNode','ai-chat-url-upload-failed','commands','selection','listenTo','selectedModel','addUrlToContext','applyOperation','reasoningFinished','nextSibling','getMarkersGroup','_createFromRanges','getTransformedByOperation','collaboration.channelId','interactionStarted','data-id','indexes','change','AI_CHAT_GENERIC_ERROR','addDocumentToContext','Undo','ai-conversation-','resource','stopInteraction','isModelAvailable','startAutoScroll','AIChatController','resourceStateChanged','replyCreated','updateCapabilities','toggleSuggestionDisplayMode','getChildAtOffset','start','showDiff','ai.chat.context','streaming','enableControls','AI_CHAT_RESOURCE_LOAD_FAILED','ai.chat.models.displayedModels','alignToTop','getRanges','removeFeedInteraction','getFirstRange','pluginName','updateConversationTitle','batch','resources','history','isDisabled','getSelectionText','domConverter','getReply','anchorId','plugins','Liked\x20response','_flushLastInteractionUI','resizeTabs','static','Showing\x20conversation\x20history...','getContentParts','updateContent','editing','Disliked\x20response','path','applySuggestion','dialogClosed','getOperations','removeSelectionFromChatContext','startConversation','focusPromptInput','add','AI_CHAT_ABORTED_MESSAGE','ai-chat-controller-no-active-conversation','loadConversation','indexOf','_applySuggestion','_aiEditing','_scrollToSuggestionRange','markers','from','setModel','model','sourceId','isOpen','handleUserInteraction','_removeFromContext','populateSourceResourceBalloon','dislike','_stopLastInteraction','_updateReplyContent','3AIlEWr','filter','hasChanges','updateFeedItemAIReplySuggestionPartState','locale','range','setAddContextOptions','_applyOperationsAsSuggestions','1150405jmbrHr','uploadProgressChanged','interactionDestroyed','TrackChangesEditing','push','setIsUploadInProgress','3584312ayiQjy','close','addOperation','toString','ai-chat-resource-load-failed','405876MUcbAM','config','removeMarker','addFileToContext','insertSuggestion','isDocumentOperation','handleRemovedConversation','ai-chat-source-resources-load-failed','removeSelectionFromContext','getDiff','setSelectedModel','rejected','setConversationContext','AITabs'];_0x101f=function(){return _0x46ab82;};return _0x101f();}import{getTranslation as _0x3610a1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x823a86}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54b317}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x226989}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2b4fc0}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x3de2e6,DATA_ID_MODEL_ATTRIBUTE as _0x55edee}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5b162f,getOperationsFromReply as _0x4671bd}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xc37610,getMinimalSelection as _0x11bb9a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xd0bcd1,_DetachOperation as _0x5382b6}from'ckeditor5/src/engine.js';import{findOne as _0x2b4cab,getAttribute as _0x310d02,serialize as _0x1354a1,Document as _0x30c88d,findByAttribute as _0x5e155c}from'../aicore/utils/htmlparser.js';import{IconAI as _0xba88b9}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x535f23}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x50f6b4}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3d5196{[_0x3f0e4e(0x233)];[_0x3f0e4e(0x1a6)];[_0x3f0e4e(0x2c9)];[_0x3f0e4e(0x19a)];[_0x3f0e4e(0x19c)]=new Map();[_0x3f0e4e(0x2e1)]=null;[_0x3f0e4e(0x1ae)]=!0x1;static get[_0x3f0e4e(0x272)](){return[_0x369b38,_0x50f6b4,_0x3de2e6];}static get[_0x3f0e4e(0x212)](){const _0x41b896=_0x3f0e4e;return _0x41b896(0x201);}static get[_0x3f0e4e(0x1af)](){return!0x0;}static get[_0x3f0e4e(0x1db)](){return!0x0;}[_0x3f0e4e(0x2cf)](){const _0x5b1a15=_0x3f0e4e;this[_0x5b1a15(0x1a6)]=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x26e)),this[_0x5b1a15(0x2c9)]=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x28d)),this[_0x5b1a15(0x233)]=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x26a)),this[_0x5b1a15(0x19a)]=new _0x226989({'connector':this[_0x5b1a15(0x1a6)],'availableModels':this[_0x5b1a15(0x285)][_0x5b1a15(0x255)][_0x5b1a15(0x2bf)](_0x5b1a15(0x20d)),'defaultModelId':this[_0x5b1a15(0x285)][_0x5b1a15(0x255)][_0x5b1a15(0x2bf)](_0x5b1a15(0x267))});const _0x40e646=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x261));this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x22b),()=>{const _0x95a55e=_0x5b1a15;this[_0x95a55e(0x1df)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x19e),(_0x54b908,_0x55be1d)=>{const _0x48c3a2=_0x5b1a15;this[_0x48c3a2(0x2a4)]({'userMessage':_0x55be1d});}),this[_0x5b1a15(0x1eb)](_0x40e646,_0x5b1a15(0x2e9),(_0x3ece01,_0x4ab6fe)=>{const _0x3ad249=_0x5b1a15;this[_0x3ad249(0x1c1)](_0x4ab6fe);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x21f),()=>{const _0x63af7=_0x5b1a15;_0x40e646[_0x63af7(0x1e0)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2d4),async()=>{const _0x37764c=_0x5b1a15;await this[_0x37764c(0x23f)](),await this[_0x37764c(0x21e)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1fa),()=>{const _0x11c484=_0x5b1a15;this[_0x11c484(0x2cc)]?.[_0x11c484(0x29e)](_0x3610a1(this[_0x11c484(0x285)][_0x11c484(0x245)],_0x11c484(0x2df)));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x257),(_0x1fc0a4,_0x473e9b)=>{const _0x40cfbc=_0x5b1a15;this[_0x40cfbc(0x2cc)]?.[_0x40cfbc(0x2a0)](Array[_0x40cfbc(0x236)](_0x473e9b));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1ed),(_0x296f47,_0x52ab85)=>{const _0x2faffa=_0x5b1a15;this[_0x2faffa(0x2cc)]?.[_0x2faffa(0x1ed)](_0x52ab85);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x29b),(_0x2c510d,_0x10a589)=>{const _0x3d5c93=_0x5b1a15;this[_0x3d5c93(0x2cc)]?.[_0x3d5c93(0x29b)](_0x10a589[_0x3d5c93(0x1e4)],_0x10a589[_0x3d5c93(0x1fd)]);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1a1),(_0x5d86a2,_0x481c31)=>{const _0x3c0f39=_0x5b1a15;this[_0x3c0f39(0x23c)](_0x481c31);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x279),(_0xd3d71e,_0x4488ac)=>{const _0x5b4da3=_0x5b1a15;this[_0x5b4da3(0x2cc)]?.[_0x5b4da3(0x279)](_0x4488ac[_0x5b4da3(0x239)],_0x4488ac[_0x5b4da3(0x2b4)],_0x4488ac[_0x5b4da3(0x2a1)]);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x291),()=>{const _0x514c09=_0x5b1a15;this[_0x514c09(0x2f3)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2d3),()=>{const _0x5cc652=_0x5b1a15;this[_0x5cc652(0x2af)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1d5),(_0x59e777,_0x17c9c2)=>{const _0x4e21c2=_0x5b1a15;this[_0x4e21c2(0x2cc)]?.[_0x4e21c2(0x237)](_0x17c9c2);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1cf),(_0x2a8f61,{replyId:_0x55487b})=>{const _0x3e4613=_0x5b1a15;console[_0x3e4613(0x27c)](_0x3e4613(0x21d),_0x55487b);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x23e),(_0x39e800,{replyId:_0x9e461c})=>{const _0x278355=_0x5b1a15;console[_0x278355(0x27c)](_0x278355(0x225),_0x9e461c);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x258),(_0x46e277,_0x336b4c)=>{const _0x39a5bf=_0x5b1a15;this[_0x39a5bf(0x285)][_0x39a5bf(0x21c)][_0x39a5bf(0x2bf)](_0x50f6b4)[_0x39a5bf(0x250)](),this[_0x39a5bf(0x2bb)](_0x336b4c);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2b2),(_0x462055,{replyId:_0x13ccf1,partIndex:_0x4aa634})=>{const _0x1378ef=_0x5b1a15;this[_0x1378ef(0x1ae)]=this[_0x1378ef(0x2c9)][_0x1378ef(0x208)],this[_0x1378ef(0x278)](_0x13ccf1,_0x4aa634);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2e6),(_0x4529cf,{replyId:_0x2d44e3,partIndex:_0x73e591})=>{const _0x2f47e5=_0x5b1a15,_0x28d448=this[_0x2f47e5(0x271)](_0x2d44e3,_0x73e591);_0x28d448&&_0x2f47e5(0x289)!=_0x28d448[_0x2f47e5(0x246)][_0x2f47e5(0x270)][_0x2f47e5(0x2e8)]&&this[_0x2f47e5(0x233)][_0x2f47e5(0x2d6)]([_0x28d448[_0x2f47e5(0x246)]],_0x2f47e5(0x27f));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2ab),()=>{const _0x248c75=_0x5b1a15;this[_0x248c75(0x233)][_0x248c75(0x198)](_0x248c75(0x27f));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x227),(_0x4db84c,_0xb2c0ef)=>{const _0x440fc9=_0x5b1a15;this[_0x440fc9(0x285)][_0x440fc9(0x21c)][_0x440fc9(0x2bf)](_0x50f6b4)[_0x440fc9(0x250)](),this[_0x440fc9(0x232)](_0xb2c0ef);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x205),async(_0x176add,{replyId:_0x1f0ff2,showDiff:_0x203d87})=>{const _0x433c62=_0x5b1a15,{reply:_0x325fcf}=this[_0x433c62(0x2a5)](_0x1f0ff2),_0xc7565=_0x325fcf[_0x433c62(0x222)]({'showDiff':_0x203d87});await this[_0x433c62(0x2c9)][_0x433c62(0x2de)]({'id':_0x325fcf['id'],'parts':_0xc7565,'renderingStrategy':_0x433c62(0x220)});}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2a2),(_0x393edf,{replyId:_0x23b9e5,partIndex:_0x4b90a7})=>{const _0x34a16a=_0x5b1a15;this[_0x34a16a(0x2e1)]?.[_0x34a16a(0x2f2)]==_0x23b9e5&&this[_0x34a16a(0x2e1)]?.[_0x34a16a(0x1c5)]==_0x4b90a7&&this[_0x34a16a(0x285)][_0x34a16a(0x21c)][_0x34a16a(0x2bf)](_0x50f6b4)[_0x34a16a(0x250)]();const {reply:_0x1f43ba}=this[_0x34a16a(0x2a5)](_0x23b9e5);_0x1f43ba[_0x34a16a(0x28c)](_0x4b90a7,_0x34a16a(0x25f)),this[_0x34a16a(0x233)][_0x34a16a(0x198)](_0x34a16a(0x27f));});}async[_0x3f0e4e(0x1ca)](){const _0x4ac25c=_0x3f0e4e;this[_0x4ac25c(0x285)]instanceof _0xf7fefe?this[_0x4ac25c(0x195)](this[_0x4ac25c(0x285)]):this[_0x4ac25c(0x1eb)](this[_0x4ac25c(0x285)][_0x4ac25c(0x283)],_0x4ac25c(0x22d),(_0x441134,_0x2824d1)=>{const _0x200f7a=_0x4ac25c;_0x2824d1['on'](_0x200f7a(0x19d),()=>{const _0x36bb77=_0x200f7a;this[_0x36bb77(0x195)](_0x2824d1);});}),await this[_0x4ac25c(0x1df)]();}[_0x3f0e4e(0x2bb)](_0x3a4aad){const _0x2d8d04=_0x3f0e4e,_0x3d573c=_0x2b4fc0(this[_0x2d8d04(0x285)]);if(!_0x3d573c[_0x2d8d04(0x21c)][_0x2d8d04(0x2ad)](_0x2d8d04(0x2c1)))throw new _0x1e9b3b(_0x2d8d04(0x1e6),null);const _0x541b70=this[_0x2d8d04(0x285)][_0x2d8d04(0x21c)][_0x2d8d04(0x2bf)](_0x2d8d04(0x2d7)),{reply:_0x3de5db,interaction:_0x35001c}=this[_0x2d8d04(0x2a5)](_0x3a4aad[_0x2d8d04(0x2f2)]),_0x2cf1d2=this[_0x2d8d04(0x271)](_0x3a4aad[_0x2d8d04(0x2f2)],_0x3a4aad[_0x2d8d04(0x1c5)]),_0x1269a3=void 0x0!==_0x3a4aad[_0x2d8d04(0x1c5)]?[_0x3de5db[_0x2d8d04(0x28b)][_0x3a4aad[_0x2d8d04(0x1c5)]]]:_0x3de5db[_0x2d8d04(0x28b)][_0x2d8d04(0x242)](_0x51bca3=>_0x2d8d04(0x29f)==_0x51bca3[_0x2d8d04(0x2d8)]),_0x5d507a=_0x1269a3[_0x2d8d04(0x1a8)](_0x1779a1=>_0x3de5db[_0x2d8d04(0x28b)][_0x2d8d04(0x231)](_0x1779a1));if(!_0x2cf1d2||_0x2d8d04(0x289)==_0x2cf1d2[_0x2d8d04(0x246)][_0x2d8d04(0x270)][_0x2d8d04(0x2e8)])return void _0x5d507a[_0x2d8d04(0x1c2)](_0x5cba89=>_0x3de5db[_0x2d8d04(0x28c)](_0x5cba89,_0x2d8d04(0x274)));_0x5d507a[_0x2d8d04(0x1c2)](_0x5581bb=>_0x3de5db[_0x2d8d04(0x28c)](_0x5581bb,_0x2d8d04(0x1aa)));const _0x1098a4=_0x4671bd({'editor':_0x3d573c,'reply':_0x3de5db,'interaction':_0x35001c,'groups':_0x1269a3,'transform':!0x0,'documentCompare':_0x541b70,'documentCompareOptions':{'anchor':_0x2d8d04(0x2a9),'markDeletions':!0x0}});let _0x121036;_0x2cf1d2&&this[_0x2d8d04(0x234)](_0x2cf1d2[_0x2d8d04(0x246)]),_0x3d573c[_0x2d8d04(0x238)][_0x2d8d04(0x1f8)](_0x4d6821=>{const _0x2313fc=_0x2d8d04;_0x121036=_0x4d6821[_0x2313fc(0x214)],_0x3d573c[_0x2313fc(0x21c)][_0x2313fc(0x2bf)](_0x2313fc(0x24c))[_0x2313fc(0x248)](_0x1098a4),this[_0x2313fc(0x233)][_0x2313fc(0x198)](_0x2313fc(0x27f));}),this[_0x2d8d04(0x19c)][_0x2d8d04(0x2ba)](_0x121036,{'interactionId':_0x35001c['id'],'replyId':_0x3de5db['id'],'indexes':_0x5d507a[_0x2d8d04(0x262)]()}),this[_0x2d8d04(0x197)](_0x3de5db);}[_0x3f0e4e(0x232)](_0x34028f){const _0x140835=_0x3f0e4e,_0x26c6ba=_0x2b4fc0(this[_0x140835(0x285)]),_0x43d874=this[_0x140835(0x285)][_0x140835(0x21c)][_0x140835(0x2bf)](_0x3de2e6),{reply:_0x4ee179,interaction:_0x4e37f9}=this[_0x140835(0x2a5)](_0x34028f[_0x140835(0x2f2)]),_0x4621ff=this[_0x140835(0x271)](_0x34028f[_0x140835(0x2f2)],_0x34028f[_0x140835(0x1c5)]),_0x245aad=void 0x0!==_0x34028f[_0x140835(0x1c5)]?[_0x4ee179[_0x140835(0x28b)][_0x34028f[_0x140835(0x1c5)]]]:_0x4ee179[_0x140835(0x28b)][_0x140835(0x242)](_0x3a4603=>_0x140835(0x29f)==_0x3a4603[_0x140835(0x2d8)]),_0x25e927=_0x245aad[_0x140835(0x1a8)](_0x441018=>_0x4ee179[_0x140835(0x28b)][_0x140835(0x231)](_0x441018));if(!_0x4621ff||_0x140835(0x289)==_0x4621ff[_0x140835(0x246)][_0x140835(0x270)][_0x140835(0x2e8)])return void _0x25e927[_0x140835(0x1c2)](_0x52ec59=>_0x4ee179[_0x140835(0x28c)](_0x52ec59,_0x140835(0x274)));_0x25e927[_0x140835(0x1c2)](_0x33dec2=>_0x4ee179[_0x140835(0x28c)](_0x33dec2,_0x140835(0x1aa)));const _0x2d63f4=_0x4671bd({'editor':_0x26c6ba,'reply':_0x4ee179,'interaction':_0x4e37f9,'groups':_0x245aad,'transform':!0x0,'documentCompare':_0x43d874,'documentCompareOptions':{'anchor':_0x140835(0x2a9),'markDeletions':!0x1}});let _0x138ed1;_0x4621ff&&this[_0x140835(0x234)](_0x4621ff[_0x140835(0x246)]),_0x26c6ba[_0x140835(0x238)][_0x140835(0x1f8)](_0x2d5e39=>{const _0x3a7c35=_0x140835;_0x138ed1=_0x2d5e39[_0x3a7c35(0x214)];for(const _0x2a7669 of _0x2d63f4)_0x2a7669[_0x3a7c35(0x1b5)]=_0x26c6ba[_0x3a7c35(0x238)][_0x3a7c35(0x2aa)][_0x3a7c35(0x1d8)],_0x5b162f(_0x26c6ba,_0x2a7669),_0x2d5e39[_0x3a7c35(0x214)][_0x3a7c35(0x251)](_0x2a7669),_0x26c6ba[_0x3a7c35(0x238)][_0x3a7c35(0x1ee)](_0x2a7669);}),this[_0x140835(0x19c)][_0x140835(0x2ba)](_0x138ed1,{'interactionId':_0x4e37f9['id'],'replyId':_0x4ee179['id'],'indexes':_0x25e927[_0x140835(0x262)]()}),this[_0x140835(0x197)](_0x4ee179);}[_0x3f0e4e(0x278)](_0x15b25b,_0x425ec2){const _0x132c1b=_0x3f0e4e,_0x49ea59=_0x2b4fc0(this[_0x132c1b(0x285)]),_0x872fbd=this[_0x132c1b(0x271)](_0x15b25b,_0x425ec2),_0x120997=this[_0x132c1b(0x285)][_0x132c1b(0x21c)][_0x132c1b(0x2bf)](_0x50f6b4);if(!_0x872fbd)return void _0x120997[_0x132c1b(0x250)]();const {range:_0x14139d,currentIndex:_0x4a30f3}=_0x872fbd;if(_0x132c1b(0x289)==_0x14139d[_0x132c1b(0x270)][_0x132c1b(0x2e8)]){const {reply:_0x4f2186}=this[_0x132c1b(0x2a5)](_0x15b25b);return _0x4f2186[_0x132c1b(0x28c)](_0x4a30f3,_0x132c1b(0x274)),void _0x120997[_0x132c1b(0x250)]();}if(this[_0x132c1b(0x2e1)]?.[_0x132c1b(0x2f2)]==_0x15b25b&&this[_0x132c1b(0x2e1)]?.[_0x132c1b(0x1c5)]==_0x4a30f3)return;this[_0x132c1b(0x1b0)](_0x120997),this[_0x132c1b(0x2e1)]={'replyId':_0x15b25b,'partIndex':_0x4a30f3};let _0x22b66e=_0x49ea59[_0x132c1b(0x255)][_0x132c1b(0x2bf)](_0x132c1b(0x2ef))||[..._0x54b317];_0x49ea59[_0x132c1b(0x21c)][_0x132c1b(0x2ad)](_0x132c1b(0x2c1))||(_0x22b66e=_0x22b66e[_0x132c1b(0x242)](_0x5d8c92=>_0x132c1b(0x258)!=_0x5d8c92));const _0x6f2597=new _0x535f23(_0x49ea59[_0x132c1b(0x245)],{'showDiff':this[_0x132c1b(0x1ae)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x132c1b(0x1ad)},'hideHeader':!0x0,'availableActions':_0x22b66e});this[_0x132c1b(0x1b0)](_0x6f2597);const {reply:_0x4c0c09}=this[_0x132c1b(0x2a5)](_0x15b25b),_0x410f4d=_0x4c0c09[_0x132c1b(0x222)]({'showDiff':this[_0x132c1b(0x1ae)]})[_0x132c1b(0x242)](_0x21e6f3=>_0x21e6f3[_0x132c1b(0x243)]),_0x38c515=_0x410f4d[_0x132c1b(0x1ac)](_0x1597b9=>_0x1597b9[_0x132c1b(0x1e1)]==_0x4a30f3);if(-0x1==_0x38c515)return;const _0x2488fe=_0x410f4d[_0x38c515],_0x37b2b3=_0x410f4d['at']((_0x38c515-0x1)%_0x410f4d[_0x132c1b(0x2f1)])?.[_0x132c1b(0x1e1)],_0x3f240d=_0x410f4d['at']((_0x38c515+0x1)%_0x410f4d[_0x132c1b(0x2f1)])?.[_0x132c1b(0x1e1)];_0x6f2597[_0x132c1b(0x223)]({'parts':[_0x2488fe],'renderingStrategy':_0x132c1b(0x220)});const _0x1cbb3a=_0x4a30f3!==_0x37b2b3;this[_0x132c1b(0x234)](_0x14139d,!0x0),_0x120997[_0x132c1b(0x292)]({'index':_0x4a30f3,'title':_0x3610a1(this[_0x132c1b(0x285)][_0x132c1b(0x245)],_0x132c1b(0x1a0),(_0x38c515+0x1)[_0x132c1b(0x252)]()),'icon':_0xba88b9,'mainView':_0x6f2597,'showRotator':_0x1cbb3a,'showApplyButton':!0x0,'showSuggestButton':_0x49ea59[_0x132c1b(0x21c)][_0x132c1b(0x2ad)](_0x132c1b(0x2c1)),'ranges':[_0x14139d]}),this[_0x132c1b(0x2c9)][_0x132c1b(0x2b6)](_0x15b25b,_0x4a30f3),this[_0x132c1b(0x1eb)](_0x6f2597,_0x132c1b(0x205),(_0x44ca28,{showDiff:_0xca1edf})=>{const _0x2c94e1=_0x132c1b;this[_0x2c94e1(0x1ae)]=_0xca1edf;const {reply:_0x57ca4e}=this[_0x2c94e1(0x2a5)](_0x15b25b),_0x25c9aa=_0x57ca4e[_0x2c94e1(0x222)]({'showDiff':_0xca1edf,'groupIndex':_0x4a30f3});_0x6f2597[_0x2c94e1(0x223)]({'parts':_0x25c9aa,'renderingStrategy':_0x2c94e1(0x220)});}),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x227),()=>{const _0x42e8b0=_0x132c1b;this[_0x42e8b0(0x232)]({'replyId':_0x15b25b,'partIndex':_0x4a30f3}),_0x1cbb3a?this[_0x42e8b0(0x278)](_0x15b25b,_0x3f240d):_0x120997[_0x42e8b0(0x250)]();}),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x258),()=>{const _0x5245aa=_0x132c1b;this[_0x5245aa(0x2bb)]({'replyId':_0x15b25b,'partIndex':_0x4a30f3}),_0x1cbb3a?this[_0x5245aa(0x278)](_0x15b25b,_0x3f240d):_0x120997[_0x5245aa(0x250)]();}),_0x1cbb3a&&(this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x1a5),()=>{const _0x1b615b=_0x132c1b;this[_0x1b615b(0x278)](_0x15b25b,_0x3f240d);}),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x275),()=>{const _0x437e2=_0x132c1b;this[_0x437e2(0x278)](_0x15b25b,_0x37b2b3);})),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x228),()=>{const _0x22265c=_0x132c1b;this[_0x22265c(0x1b0)](_0x120997),this[_0x22265c(0x1b0)](_0x6f2597),this[_0x22265c(0x2e1)]=null;});}[_0x3f0e4e(0x271)](_0x3bb684,_0x153951){const _0x976dd9=_0x3f0e4e,_0x170c88=_0x2b4fc0(this[_0x976dd9(0x285)]),{reply:_0x4509a8,interaction:_0x3aa603}=this[_0x976dd9(0x2a5)](_0x3bb684),_0x3c85c8=_0x4509a8[_0x976dd9(0x28b)][_0x976dd9(0x242)](_0x5846a2=>_0x976dd9(0x29f)==_0x5846a2[_0x976dd9(0x2d8)]),_0x1faf68=_0x3c85c8[_0x976dd9(0x1a8)](_0x13ad27=>_0x4509a8[_0x976dd9(0x28b)][_0x976dd9(0x231)](_0x13ad27));void 0x0===_0x153951&&(_0x153951=_0x1faf68[0x0]);const _0x41081d=_0x1faf68[_0x976dd9(0x231)](_0x153951);if(-0x1==_0x41081d)return null;const _0x330712=_0x3c85c8[_0x41081d],_0xd601ba=new _0x30c88d([]),_0x3a745a=new _0x30c88d([]);for(const _0x4aace9 of _0x330712[_0x976dd9(0x2c3)])if(_0x976dd9(0x2bc)!=_0x4aace9[_0x976dd9(0x2c8)]&&_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x4aace9[_0x976dd9(0x1b3)][_0x976dd9(0x1e7)](!0x0)),_0x976dd9(0x1b1)!=_0x4aace9[_0x976dd9(0x2c8)]){const _0x29e458=_0x2b4cab(_0x2ce4b5=>_0x310d02(_0x2ce4b5,_0x976dd9(0x1f6))==_0x4aace9['id'],_0x4509a8[_0x976dd9(0x1c9)],!0x0);_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x29e458[_0x976dd9(0x1e7)](!0x0));}if(0x0==_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x2f1)]){if(_0x330712[_0x976dd9(0x2c3)][0x0][_0x976dd9(0x21b)]){const _0x2cd5fb=_0x5e155c(_0x976dd9(0x1f6),_0x330712[_0x976dd9(0x2c3)][0x0][_0x976dd9(0x21b)],_0x4509a8[_0x976dd9(0x1c9)]);_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x1cc)](_0x2cd5fb[_0x976dd9(0x1e7)](!0x0)),_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x1cc)](_0x2cd5fb[_0x976dd9(0x1e7)](!0x0)),_0x2cd5fb[_0x976dd9(0x1f0)]&&(_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x2cd5fb[_0x976dd9(0x1f0)][_0x976dd9(0x1e7)](!0x0)),_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x2cd5fb[_0x976dd9(0x1f0)][_0x976dd9(0x1e7)](!0x0)));}else{const _0x547c7f=_0x4509a8[_0x976dd9(0x1c9)][_0x976dd9(0x1c3)][0x0];if(!_0x547c7f)return null;_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x547c7f[_0x976dd9(0x1e7)](!0x0)),_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x547c7f[_0x976dd9(0x1e7)](!0x0));}}const _0x4e7a23=_0x3aa603[_0x976dd9(0x1d9)](),_0x215a88=_0x170c88[_0x976dd9(0x282)][_0x976dd9(0x280)](_0x4e7a23[_0x976dd9(0x286)]),_0x13ecde=_0x1354a1(_0xd601ba),_0x449030=_0x170c88[_0x976dd9(0x282)][_0x976dd9(0x280)](_0x13ecde),_0x3f9fdb=_0x170c88[_0x976dd9(0x282)][_0x976dd9(0x280)](_0x13ecde),_0x5c92dc=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x276)](_0x449030,0x0),_0x55fe11=_0x1354a1(_0x3a745a),_0x1ef840={'anchor':_0x5c92dc,'markDeletions':!0x1},_0x3ef76b=_0x170c88[_0x976dd9(0x21c)][_0x976dd9(0x2bf)](_0x3de2e6)[_0x976dd9(0x25d)](_0x13ecde,_0x55fe11,_0x1ef840)[_0x976dd9(0x229)]();if(!_0x3ef76b[_0x976dd9(0x2f1)])return null;_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x1f8)](_0x40491f=>{const _0x4e611c=_0x976dd9;for(const _0x469d35 of _0x3ef76b)if(_0x4e611c(0x1de)==_0x469d35[_0x4e611c(0x2c8)]){const _0x3bfd4a=_0x469d35[_0x4e611c(0x294)],_0x2e25ec=_0x469d35[_0x4e611c(0x2b8)],_0x4d2fc7=new _0x5382b6(_0x3bfd4a,_0x2e25ec);_0x40491f[_0x4e611c(0x214)][_0x4e611c(0x251)](_0x4d2fc7),_0x170c88[_0x4e611c(0x238)][_0x4e611c(0x1ee)](_0x4d2fc7);}else _0x4e611c(0x269)!==_0x469d35[_0x4e611c(0x2c8)]&&(_0x469d35[_0x4e611c(0x1b5)]=null,_0x469d35[_0x4e611c(0x259)]=!0x1,_0x40491f[_0x4e611c(0x214)][_0x4e611c(0x251)](_0x469d35),_0x170c88[_0x4e611c(0x238)][_0x4e611c(0x1ee)](_0x469d35));});const _0xf5060a=_0x11bb9a(_0x170c88,_0x3ef76b,_0x449030);_0xc37610(_0x170c88[_0x976dd9(0x238)],_0xf5060a);const _0x2ef283=_0xf5060a[_0x976dd9(0x211)]()[_0x976dd9(0x207)][_0x976dd9(0x226)][_0x976dd9(0x262)](),_0x4c3460=_0xf5060a[_0x976dd9(0x211)]()[_0x976dd9(0x1b4)][_0x976dd9(0x226)][_0x976dd9(0x262)](),_0x3b5953=[];let _0x9b6944=_0x449030,_0x4f97a7=_0x3f9fdb;for(let _0x30a22d=0x0;_0x30a22d<_0x4c3460[_0x976dd9(0x2f1)];_0x30a22d++){const _0x39a073=_0x9b6944[_0x976dd9(0x2ca)]-_0x4c3460[_0x30a22d];_0x3b5953[_0x30a22d]=_0x4f97a7[_0x976dd9(0x2ca)]-_0x39a073,_0x9b6944=_0x9b6944[_0x976dd9(0x206)](_0x4c3460[_0x30a22d]),_0x4f97a7=_0x4f97a7[_0x976dd9(0x206)](_0x3b5953[_0x30a22d]);}const _0x4b3212=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x273)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x3f9fdb,_0x2ef283),_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x3f9fdb,_0x3b5953)),_0x54f8fb=_0x3f9fdb[_0x976dd9(0x297)](0x0)[_0x976dd9(0x28e)](_0x55edee),_0x5cd48a=Array[_0x976dd9(0x236)](_0x215a88[_0x976dd9(0x2ec)]())[_0x976dd9(0x2db)](_0x2bc36a=>_0x2bc36a[_0x976dd9(0x28e)](_0x55edee)==_0x54f8fb)[_0x976dd9(0x1a3)](),_0x2c3f9d=_0x4b3212[_0x976dd9(0x207)][_0x976dd9(0x226)][_0x976dd9(0x262)](),_0x26e8ea=_0x4b3212[_0x976dd9(0x1b4)][_0x976dd9(0x226)][_0x976dd9(0x262)]();_0x2c3f9d[0x0]=_0x5cd48a[0x0]+_0x2c3f9d[0x0],_0x26e8ea[0x0]=_0x5cd48a[0x0]+_0x26e8ea[0x0];let _0x2054a6=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x273)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2aa)][_0x976dd9(0x2be)](),_0x2c3f9d),_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2aa)][_0x976dd9(0x2be)](),_0x26e8ea));const _0xf8243d=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2aa)][_0x976dd9(0x216)][_0x976dd9(0x229)](_0x4e7a23[_0x976dd9(0x1d8)]);for(const _0x4e00b8 of _0xf8243d)_0x2054a6=_0xd0bcd1[_0x976dd9(0x1f2)](_0x2054a6[_0x976dd9(0x1f3)](_0x4e00b8));return{'range':_0x2054a6,'currentIndex':_0x153951};}[_0x3f0e4e(0x195)](_0xb8ccc6){const _0xc09294=_0x3f0e4e;if(!_0xb8ccc6[_0xc09294(0x21c)][_0xc09294(0x2ad)](_0xc09294(0x1fb)))return;const _0x2c8f2c=_0xb8ccc6[_0xc09294(0x1e9)][_0xc09294(0x2bf)](_0xc09294(0x199)),_0x39377f=_0xb8ccc6[_0xc09294(0x1e9)][_0xc09294(0x2bf)](_0xc09294(0x268));this[_0xc09294(0x1eb)](_0x2c8f2c,_0xc09294(0x2e0),(_0x46b262,_0x3d4288,_0x56051e)=>{const _0x22d940=_0xc09294,_0x18e4f8=this[_0x22d940(0x19c)][_0x22d940(0x2bf)](_0x3d4288);if(!_0x18e4f8)return;const _0x2eda80=this[_0x22d940(0x2cc)][_0x22d940(0x1bd)](_0x18e4f8[_0x22d940(0x2d1)])[_0x22d940(0x21a)](_0x18e4f8[_0x22d940(0x2f2)]);_0x18e4f8[_0x22d940(0x1f7)][_0x22d940(0x1c2)](_0x5beb9d=>_0x2eda80[_0x22d940(0x28c)](_0x5beb9d,_0x22d940(0x29f))),this[_0x22d940(0x19c)][_0x22d940(0x2a3)](_0x3d4288),this[_0x22d940(0x19c)][_0x22d940(0x2ba)](_0x56051e,_0x18e4f8);}),this[_0xc09294(0x1eb)](_0x39377f,_0xc09294(0x2e0),(_0x593150,_0x1e2192,_0x26c5e9)=>{const _0x22658f=_0xc09294,_0x48cc12=this[_0x22658f(0x19c)][_0x22658f(0x2bf)](_0x1e2192);if(!_0x48cc12)return;const _0x3f5174=this[_0x22658f(0x2cc)][_0x22658f(0x1bd)](_0x48cc12[_0x22658f(0x2d1)])[_0x22658f(0x21a)](_0x48cc12[_0x22658f(0x2f2)]);_0x48cc12[_0x22658f(0x1f7)][_0x22658f(0x1c2)](_0x1dd1f1=>_0x3f5174[_0x22658f(0x28c)](_0x1dd1f1,_0x22658f(0x1aa))),this[_0x22658f(0x19c)][_0x22658f(0x2a3)](_0x1e2192),this[_0x22658f(0x19c)][_0x22658f(0x2ba)](_0x26c5e9,_0x48cc12);});}async[_0x3f0e4e(0x230)](_0x3f9a39){const _0x4c2bd5=_0x3f0e4e;this[_0x4c2bd5(0x285)][_0x4c2bd5(0x21c)][_0x4c2bd5(0x2bf)](_0x50f6b4)[_0x4c2bd5(0x250)](),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x2dc)](_0x4c2bd5(0x220)),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x1da)](!0x0),await this[_0x4c2bd5(0x23f)]();try{const _0x5cae3f=this[_0x4c2bd5(0x285)][_0x4c2bd5(0x21c)][_0x4c2bd5(0x2bf)](_0x2a1897);this[_0x4c2bd5(0x213)]('\x20'),_0x5cae3f[_0x4c2bd5(0x2eb)][_0x4c2bd5(0x1b9)](_0x4c2bd5(0x2dd)),await this[_0x4c2bd5(0x1df)](_0x3f9a39);const {sessionId:_0x4b2dc5}=this[_0x4c2bd5(0x233)][_0x4c2bd5(0x1bf)]();await this[_0x4c2bd5(0x2cc)][_0x4c2bd5(0x2e5)](_0x3f9a39,_0x4b2dc5),this[_0x4c2bd5(0x2cc)][_0x4c2bd5(0x2e4)]()&&this[_0x4c2bd5(0x2cc)][_0x4c2bd5(0x29e)](_0x3610a1(this[_0x4c2bd5(0x285)][_0x4c2bd5(0x245)],_0x4c2bd5(0x2df)));}catch(_0x18f23c){console[_0x4c2bd5(0x265)](_0x4c2bd5(0x1c4),_0x18f23c);}finally{this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x200)](),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x2dc)](_0x4c2bd5(0x20a)),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x1da)](!0x1);}}[_0x3f0e4e(0x25a)](_0x27a105){const _0xc6e0d8=_0x3f0e4e;this[_0xc6e0d8(0x2cc)]['id']===_0x27a105&&this[_0xc6e0d8(0x1df)]();}async[_0x3f0e4e(0x277)](){const _0x4fa143=_0x3f0e4e,_0x1c2334=this[_0x4fa143(0x233)][_0x4fa143(0x218)]();this[_0x4fa143(0x2cc)]?.[_0x4fa143(0x2c4)](_0x1c2334),this[_0x4fa143(0x2cc)]?.[_0x4fa143(0x29e)](_0x3610a1(this[_0x4fa143(0x285)][_0x4fa143(0x245)],_0x4fa143(0x2df)));}[_0x3f0e4e(0x22a)](){const _0x1a3f92=_0x3f0e4e;this[_0x1a3f92(0x2cc)]?.[_0x1a3f92(0x25c)]();}[_0x3f0e4e(0x22c)](){const _0x2f4bb3=_0x3f0e4e;this[_0x2f4bb3(0x2c9)][_0x2f4bb3(0x22c)]();}async[_0x3f0e4e(0x22b)](){const _0x4dd2cb=_0x3f0e4e;await this[_0x4dd2cb(0x1df)]();}async[_0x3f0e4e(0x1cb)]({message:_0x455d48,quickActionData:_0xe4d124}){const _0x2ed823=_0x3f0e4e;await this[_0x2ed823(0x2a4)]({'userMessage':_0x455d48,'quickActionData':_0xe4d124});}[_0x3f0e4e(0x1c6)](){const _0x417e05=_0x3f0e4e,_0x4bf5c9=this[_0x417e05(0x285)][_0x417e05(0x255)][_0x417e05(0x2bf)](_0x417e05(0x1f4));if(!_0x4bf5c9)throw new _0x1e9b3b(_0x417e05(0x26f),this);return _0x4bf5c9;}async[_0x3f0e4e(0x1df)](_0x52af05){const _0x3c3874=_0x3f0e4e;try{this[_0x3c3874(0x2c9)][_0x3c3874(0x20b)](),await this[_0x3c3874(0x26d)](_0x52af05);}catch(_0x6913ee){_0x3c1905(_0x3c3874(0x2d9),_0x6913ee),this[_0x3c3874(0x2cc)]=void 0x0,this[_0x3c3874(0x2c9)][_0x3c3874(0x1b2)]();}}async[_0x3f0e4e(0x26d)](_0x2a30ac){const _0x29bce0=_0x3f0e4e,_0x236aa7=this[_0x29bce0(0x285)][_0x29bce0(0x21c)][_0x29bce0(0x2bf)](_0x50f6b4);let _0x47dd6e;_0x236aa7[_0x29bce0(0x23a)]&&_0x236aa7[_0x29bce0(0x250)](),_0x2a30ac||!this[_0x29bce0(0x2cc)]?_0x47dd6e=this[_0x29bce0(0x285)][_0x29bce0(0x255)][_0x29bce0(0x2bf)](_0x29bce0(0x267)):this[_0x29bce0(0x2c9)][_0x29bce0(0x1ff)]&&(_0x47dd6e=this[_0x29bce0(0x2cc)][_0x29bce0(0x1ec)]['id']),await this[_0x29bce0(0x23f)]();const _0x4f4c14=this[_0x29bce0(0x1c6)](),_0x5ab168=_0x2a30ac||_0x416d88();this[_0x29bce0(0x2cc)]=new _0x470ab6({'connector':this[_0x29bce0(0x1a6)],'chatModels':this[_0x29bce0(0x19a)],'selectedModelId':_0x47dd6e,'conversationId':_0x5ab168,'group':_0x4f4c14,'getEditor':()=>_0x2b4fc0(this[_0x29bce0(0x285)])}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2f0),(_0x196632,_0x9bfe2)=>{const _0x5c31e9=_0x29bce0;this[_0x5c31e9(0x2c9)][_0x5c31e9(0x2b1)](_0x9bfe2),this[_0x5c31e9(0x2c9)][_0x5c31e9(0x1a9)](),this[_0x5c31e9(0x2c9)][_0x5c31e9(0x2ea)](),this[_0x5c31e9(0x2c9)][_0x5c31e9(0x1be)](),_0x2a30ac||(this[_0x5c31e9(0x2c9)][_0x5c31e9(0x1bb)](),this[_0x5c31e9(0x2cc)]?.[_0x5c31e9(0x29e)](_0x3610a1(this[_0x5c31e9(0x285)][_0x5c31e9(0x245)],_0x5c31e9(0x2df))));}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x24a),(_0x329918,_0x2db6ee)=>{const _0x50bf07=_0x29bce0;this[_0x50bf07(0x2c9)][_0x50bf07(0x24e)](_0x2db6ee[_0x50bf07(0x1d7)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2da),(_0x3f605d,_0x5d0be7)=>{const _0x3c4efa=_0x29bce0;this[_0x3c4efa(0x2c9)][_0x3c4efa(0x26b)](_0x5d0be7);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x19b),()=>{const _0x2b7c84=_0x29bce0;this[_0x2b7c84(0x2c9)][_0x2b7c84(0x1d1)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1ab),()=>{const _0x9bb521=_0x29bce0;this[_0x9bb521(0x2c9)][_0x9bb521(0x1d1)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1cd),(_0x45845b,_0x41e123)=>{const _0x4ef361=_0x29bce0;this[_0x4ef361(0x2c9)][_0x4ef361(0x1d6)](_0x41e123,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1ef),(_0x2576f7,_0x44d7c8)=>{const _0xc6b023=_0x29bce0;this[_0xc6b023(0x2c9)][_0xc6b023(0x1d6)](_0x44d7c8,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1f5),()=>{const _0xa64fcb=_0x29bce0;this[_0xa64fcb(0x2c9)][_0xa64fcb(0x2cb)]();}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x299),async()=>{const _0x232106=_0x29bce0;await this[_0x232106(0x2c9)][_0x232106(0x29c)]();}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x24b),(_0x115928,_0x3122e2)=>{const _0x18e642=_0x29bce0;this[_0x18e642(0x2c9)][_0x18e642(0x210)](_0x3122e2['id']);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2e2),(_0x5319bb,_0x21d951,_0x5890be)=>{const _0x53f73b=_0x29bce0;this[_0x53f73b(0x213)](_0x21d951,_0x5890be);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x203),(_0x489106,_0x39ea70)=>{const _0x33b430=_0x29bce0;_0x33b430(0x2ee)===_0x39ea70[_0x33b430(0x2c8)]?this[_0x33b430(0x2c9)][_0x33b430(0x1bc)](_0x39ea70):this[_0x33b430(0x2c9)][_0x33b430(0x263)](_0x39ea70);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x29d),async(_0x54e584,_0x111fe0)=>{const _0x48d4b7=_0x29bce0;await this[_0x48d4b7(0x240)]({'reply':_0x111fe0});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1a2),(_0x279d2d,{reply:_0x5ae758,index:_0x5563a6,state:_0x11854a})=>{const _0x5b7cff=_0x29bce0;this[_0x5b7cff(0x2c9)][_0x5b7cff(0x244)]({'id':_0x5ae758['id'],'index':_0x5563a6,'state':_0x11854a});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2ae),(_0x4dbb20,_0x53ee8f)=>{const _0x244e5e=_0x29bce0;if(this[_0x244e5e(0x2c9)][_0x244e5e(0x2c7)](_0x53ee8f[_0x244e5e(0x27a)],_0x53ee8f[_0x244e5e(0x1dd)]),_0x244e5e(0x1ea)===_0x53ee8f[_0x244e5e(0x27a)][_0x244e5e(0x2c8)]){const _0x8361dd=[..._0x2b4fc0(this[_0x244e5e(0x285)])[_0x244e5e(0x238)][_0x244e5e(0x2aa)][_0x244e5e(0x1ea)][_0x244e5e(0x20f)]()];this[_0x244e5e(0x233)][_0x244e5e(0x2d6)](_0x8361dd,_0x244e5e(0x1fc)+this[_0x244e5e(0x2cc)]?.['id']);}}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1ba),(_0x2e34a6,_0x3fc187)=>{const _0x1306b8=_0x29bce0;this[_0x1306b8(0x2c9)][_0x1306b8(0x1a1)](_0x3fc187[_0x1306b8(0x2c0)]),_0x1306b8(0x2b3)==_0x3fc187[_0x1306b8(0x2c0)]&&this[_0x1306b8(0x22a)](),_0x1306b8(0x1ea)===_0x3fc187[_0x1306b8(0x2c8)]&&this[_0x1306b8(0x233)][_0x1306b8(0x198)](_0x1306b8(0x1fc)+this[_0x1306b8(0x2cc)]?.['id']);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2e3),(_0x230dbf,_0x3950b4)=>{const _0x1df037=_0x29bce0;this[_0x1df037(0x2c9)][_0x1df037(0x27d)](_0x3950b4[_0x1df037(0x27a)][_0x1df037(0x2c0)],_0x3950b4[_0x1df037(0x1dd)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2a7),(_0x522571,_0xfc81d0)=>{const _0x24681a=_0x29bce0;this[_0x24681a(0x2c9)][_0x24681a(0x260)](_0xfc81d0[_0x24681a(0x2d0)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x288),(_0x124214,_0x5ec354)=>{const _0x2f3c6d=_0x29bce0;this[_0x2f3c6d(0x2c9)][_0x2f3c6d(0x247)](_0x5ec354[_0x2f3c6d(0x19f)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1d0),(_0x1907f1,_0x5e4c48)=>{const _0x59ed5f=_0x29bce0;this[_0x59ed5f(0x2c9)][_0x59ed5f(0x23d)](_0x5e4c48[_0x59ed5f(0x239)],_0x5e4c48[_0x59ed5f(0x1e4)],_0x5e4c48[_0x59ed5f(0x215)],_0x5e4c48[_0x59ed5f(0x2a1)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x202),(_0x3e499c,_0x26740d)=>{const _0x566397=_0x29bce0;this[_0x566397(0x2c9)][_0x566397(0x287)](_0x26740d[_0x566397(0x239)],_0x26740d[_0x566397(0x2e7)],_0x26740d[_0x566397(0x295)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2a8),(_0x5afa3e,_0x51fe82)=>{const _0x3d2077=_0x29bce0;this[_0x3d2077(0x2c9)][_0x3d2077(0x204)](_0x51fe82);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x284),(_0x1de380,_0x3204a3)=>{const _0x13a2d9=_0x29bce0;this[_0x13a2d9(0x2c9)][_0x13a2d9(0x25e)](_0x3204a3[_0x13a2d9(0x1ec)],_0x3204a3[_0x13a2d9(0x217)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x265),(_0x11b2fc,{error:_0x42957b,interactionId:_0x418983,fileName:_0x5e7a51,url:_0x364ec7,sourceId:_0x28617d,sourceLabel:_0x48779a})=>{const _0x53f9bf=_0x29bce0,_0x34b7f9=_0x418983?_0x418983+':'+_0x416d88():_0x416d88();_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x281))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x1d2)]({'staticMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x22e)),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2b5))||_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2d9))?(this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x28f)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b)):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2bd))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x196),_0x5e7a51),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x1e8))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x1c0),_0x364ec7),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2b7))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x264)),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2d2))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x2c6)),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x25b))?(_0x28617d&&this[_0x53f9bf(0x2c9)][_0x53f9bf(0x1ce)](_0x28617d),this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x26c),_0x48779a||_0x53f9bf(0x1e4)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b)):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x253))?(this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x20c)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b)):(this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x1f9)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b));}),await this[_0x29bce0(0x2cc)][_0x29bce0(0x2cf)](this[_0x29bce0(0x285)][_0x29bce0(0x255)][_0x29bce0(0x2bf)](_0x29bce0(0x209))),_0x2a30ac||await this[_0x29bce0(0x2cc)][_0x29bce0(0x207)]();}async[_0x3f0e4e(0x2a4)]({userMessage:_0x1aff3a,quickActionData:_0x228b60}){const _0x4cb89e=_0x3f0e4e;if(!this[_0x4cb89e(0x2cc)])throw new _0x1e9b3b(_0x4cb89e(0x22f));this[_0x4cb89e(0x2cc)][_0x4cb89e(0x2b0)]()&&await this[_0x4cb89e(0x2cc)][_0x4cb89e(0x28a)](this[_0x4cb89e(0x233)][_0x4cb89e(0x1bf)]()),this[_0x4cb89e(0x2cc)]['id']&&this[_0x4cb89e(0x2cc)][_0x4cb89e(0x266)]&&await this[_0x4cb89e(0x2cc)][_0x4cb89e(0x23b)]({'userMessage':_0x1aff3a,'quickActionData':_0x228b60}),this[_0x4cb89e(0x2c5)]();}[_0x3f0e4e(0x2c5)](){const _0x13a24d=_0x3f0e4e,_0xc24d12=_0x2b4fc0(this[_0x13a24d(0x285)])[_0x13a24d(0x238)],_0x11d824=Array[_0x13a24d(0x236)](_0xc24d12[_0x13a24d(0x235)][_0x13a24d(0x1f1)](_0x823a86));_0xc24d12[_0x13a24d(0x1f8)](_0x1330ac=>{const _0x3378b0=_0x13a24d;_0x11d824[_0x3378b0(0x1c2)](_0x3e1049=>_0x1330ac[_0x3378b0(0x256)](_0x3e1049));});}[_0x3f0e4e(0x298)](){const _0x240d65=_0x3f0e4e;console[_0x240d65(0x27c)](_0x240d65(0x221));}[_0x3f0e4e(0x1c1)](_0x4a1c7b){const _0x58fdae=_0x3f0e4e;this[_0x58fdae(0x2c9)][_0x58fdae(0x1a7)](_0x4a1c7b);}[_0x3f0e4e(0x1c8)](_0x3c7559){const _0x88e550=_0x3f0e4e;_0x3c1905(_0x3c7559[_0x88e550(0x1dc)]);}[_0x3f0e4e(0x23c)](_0x2fd3d7){const _0x2c533a=_0x3f0e4e;this[_0x2c533a(0x2cc)]?.[_0x2c533a(0x2a6)](_0x2fd3d7);}[_0x3f0e4e(0x2f3)](){const _0x3b29a6=_0x3f0e4e;this[_0x3b29a6(0x2cc)]?.[_0x3b29a6(0x291)]();}[_0x3f0e4e(0x2af)](){const _0x389fbd=_0x3f0e4e;this[_0x389fbd(0x2cc)]?.[_0x389fbd(0x2d3)]();}[_0x3f0e4e(0x2a5)](_0x59e075){const _0xc57b8e=_0x3f0e4e,[_0x1280cf,_0x2cf66e]=_0x59e075[_0xc57b8e(0x1e5)](':'),_0xa5ff1f=this[_0xc57b8e(0x2cc)][_0xc57b8e(0x1bd)](_0x1280cf),_0x134318=_0xa5ff1f[_0xc57b8e(0x21a)](_0x2cf66e);return{'interaction':_0xa5ff1f,'reply':_0x134318};}[_0x3f0e4e(0x234)](_0x11e5bb,_0x47b532=!0x1){const _0x3bd37a=_0x3f0e4e,_0x12ab49=_0x2b4fc0(this[_0x3bd37a(0x285)]),_0xc2d86b={'target':_0x12ab49[_0x3bd37a(0x224)][_0x3bd37a(0x2eb)][_0x3bd37a(0x219)][_0x3bd37a(0x1a4)](_0x12ab49[_0x3bd37a(0x224)][_0x3bd37a(0x2c2)][_0x3bd37a(0x290)](_0x11e5bb)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x47b532};_0x47b532&&(_0xc2d86b[_0x3bd37a(0x20e)]=!0x0),_0x1596df(_0xc2d86b);}[_0x3f0e4e(0x213)](_0x5213a5,_0x4b45a5=!0x1){const _0x3553e6=_0x3f0e4e;this[_0x3553e6(0x2c9)][_0x3553e6(0x2e2)](_0x5213a5||_0x3610a1(this[_0x3553e6(0x285)][_0x3553e6(0x245)],_0x3553e6(0x1e3)),_0x4b45a5);}async[_0x3f0e4e(0x240)]({reply:_0x1ab284,renderingStrategy:_0x4610b7}){const _0x2bee50=_0x3f0e4e,{id:_0x1f48ed,isDone:_0x21bc9b,type:_0x4ca68b,parsedContent:_0x57298f}=_0x1ab284;if(_0x2bee50(0x1e2)===_0x4ca68b){const _0x2e9d0b=_0x1ab284[_0x2bee50(0x222)]({'showDiff':this[_0x2bee50(0x2c9)][_0x2bee50(0x208)]});await this[_0x2bee50(0x2c9)][_0x2bee50(0x2de)]({'id':_0x1f48ed,'parts':_0x2e9d0b,'renderingStrategy':_0x4610b7,'isDone':_0x21bc9b});}else _0x2bee50(0x2ee)===_0x4ca68b&&await this[_0x2bee50(0x2c9)][_0x2bee50(0x2ce)]({'id':_0x1f48ed,'parsedContent':_0x57298f,'renderingStrategy':_0x4610b7,'isDone':_0x21bc9b});_0x21bc9b&&_0x1ab284[_0x2bee50(0x2cd)][_0x2bee50(0x2f1)]>0x0&&this[_0x2bee50(0x2c9)][_0x2bee50(0x1b8)](_0x1f48ed,_0x1ab284[_0x2bee50(0x2cd)]);}async[_0x3f0e4e(0x23f)](){const _0x5f4240=_0x3f0e4e,_0x9ad1d3=this[_0x5f4240(0x2cc)]?.[_0x5f4240(0x27b)];_0x9ad1d3&&(_0x9ad1d3[_0x5f4240(0x296)](),this[_0x5f4240(0x2c9)][_0x5f4240(0x1fe)](_0x9ad1d3));}async[_0x3f0e4e(0x21e)](){const _0x5a599a=_0x3f0e4e,_0x37582d=this[_0x5a599a(0x2cc)]?.[_0x5a599a(0x27b)];if(_0x37582d){for await(const _0xc4a0b6 of _0x37582d[_0x5a599a(0x29a)])await this[_0x5a599a(0x240)]({'reply':_0xc4a0b6,'renderingStrategy':_0x5a599a(0x220)});}}[_0x3f0e4e(0x197)](_0x248e03){const _0x56c426=_0x3f0e4e,_0x3cbb00={'positiveCount':_0x248e03[_0x56c426(0x28b)][_0x56c426(0x242)](_0x4ec366=>_0x56c426(0x1aa)===_0x4ec366[_0x56c426(0x2d8)])[_0x56c426(0x2f1)],'totalCount':_0x248e03[_0x56c426(0x28b)][_0x56c426(0x2f1)],'modificationId':_0x248e03['id']},_0x4b833a=this[_0x56c426(0x2cc)][_0x56c426(0x1bd)](_0x248e03[_0x56c426(0x2d1)])[_0x56c426(0x2ac)];this[_0x56c426(0x1a6)][_0x56c426(0x2d5)](this[_0x56c426(0x2cc)]['id'],_0x4b833a,_0x3cbb00);}}
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);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5462(_0x11a472,_0x1be880){const _0x66a5bd=_0x66a5();return _0x5462=function(_0x546269,_0x3b9eef){_0x546269=_0x546269-0x1ec;let _0x28e2ae=_0x66a5bd[_0x546269];return _0x28e2ae;},_0x5462(_0x11a472,_0x1be880);}const _0x4c0c2f=_0x5462;(function(_0x292fa4,_0xe9e480){const _0x4d4c64=_0x5462,_0x424ec5=_0x292fa4();while(!![]){try{const _0x511b8a=-parseInt(_0x4d4c64(0x21e))/0x1+-parseInt(_0x4d4c64(0x20a))/0x2+parseInt(_0x4d4c64(0x1f7))/0x3*(-parseInt(_0x4d4c64(0x211))/0x4)+parseInt(_0x4d4c64(0x287))/0x5+-parseInt(_0x4d4c64(0x21d))/0x6*(-parseInt(_0x4d4c64(0x223))/0x7)+parseInt(_0x4d4c64(0x265))/0x8*(parseInt(_0x4d4c64(0x283))/0x9)+parseInt(_0x4d4c64(0x259))/0xa;if(_0x511b8a===_0xe9e480)break;else _0x424ec5['push'](_0x424ec5['shift']());}catch(_0x36dd94){_0x424ec5['push'](_0x424ec5['shift']());}}}(_0x66a5,0xdbc4f));import{ContextPlugin as _0x29c7e0}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x34055f}from'ckeditor5/src/utils.js';import{AIChatView as _0x3cba1f}from'./ui/aichatview.js';import{AITabs as _0x5839cd}from'../aitabs/aitabs.js';import{getTranslation as _0xd99c66}from'../aicore/utils/common-translations.js';function _0x66a5(){const _0x72ea18=['values','streaming','_getInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','78638cbyykw','clearConversationContextUI','setSelectedModel','availableModels','_view','addFeedItemUserMessage','TrackChanges','_interactionPromiseResolver','enqueue','disableModelSelector','bind','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','clearPendingContextUI','isBusy','isPending','setAddContextOptions','ai.availableReplyActions','abort','_getLoadingMessage','filter','resetMessageInput','last','setFeedItemRenderingStrategy','addContextItem','focusPromptInput','isReasoningEnabled','setWebSearch','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','has','removeItem','enableControls','setConversationContext','clear','AI_CHAT_WELCOME_MESSAGE','isDisabled','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplyContent','feedItemRenderingStrategy','closeSourceResourceBalloon','get','ai.chat.context.searchInputVisibleFrom','queueEmptyPromise','setModel','updateFeedInteractionHeader','user-message','error-message','updateCapabilities','label','set','stopInteraction','setReasoning','createConversation','destroy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','22906010zeuLby','plugins','isVisible','isPremiumPlugin','renderingStrategy','updateSuggestionItem','<p>','toggleSuggestionDisplayMode','setLoadingMessage','ai-suggestion-reply','conversation-start','pluginName','344CKbynn','isMaximized','displayedPrompt','length','chat','setConversationTitle','find','_isTrackChangesCommandValueBound','interaction-header','resetConversationTitle','removeContextItem','ai-reply','stopAutoScroll','_animateConversationTitle','_promiseQueue','quickActionData','markFeedItemAsDone','updateFeedItemAIReplySuggestionPartState','AIChatUI','delegate','remove','chatControls','isModelAvailable','locale','addItem','showDiff','AITabs','finishInteraction','updateResourceState','setIsUploadInProgress','297639WrMwaf','setIsMaximized','</p>','populateSourceResourceBalloon','11060XbBDKG','addFeedItemAISuggestion','chatFeed','insertSuggestion','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemAIReply','updateSuggestionPartState','addFeedItemStaticMessage','AI_CHAT_HEADING','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','contextItems','isLoading','isOfficialPlugin','toggleLoadingSkeleton','requires','startAutoScroll','startsWith','addFeedInteractionHeader','_titleAnimationInterval','disableControls','context','isTrackChangesOn','view','333NxkJqH','setInputPlaceholder','config','getItemIds','from','interactionId','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','scrollFeedToSuggestion','chatHeader','updateFeedItemAIReplySources','addFeedItemError','removeFeedInteraction','scrollToSuggestion','value','isDone','markItemAsDone','setModelList','capabilities','startInteraction','2024666ShZGrg','isWebSearchEnabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','forEach','updateReplyItem','updateWebSources','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','25364cmPUMc','options','addTab','areActionsDisabled','commands','children','showResizeButton','enableModelSelector','setContextItemLoading','trackChanges','userMessage','then','366TXNYYc','1783781cjdknZ'];_0x66a5=function(){return _0x72ea18;};return _0x66a5();}import{IconAIChat as _0x32615d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f1eb9}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5b4db5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x54c5e5}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x1563ee}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xe07d54}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x29c7e0{static get[_0x4c0c2f(0x1ee)](){return[_0x5839cd];}[_0x4c0c2f(0x227)];static get[_0x4c0c2f(0x264)](){const _0x223d9a=_0x4c0c2f;return _0x223d9a(0x277);}static get[_0x4c0c2f(0x1ec)](){return!0x0;}static get[_0x4c0c2f(0x25c)](){return!0x0;}[_0x4c0c2f(0x248)]=_0x4c0c2f(0x220);[_0x4c0c2f(0x27e)]=!0x0;[_0x4c0c2f(0x273)];[_0x4c0c2f(0x22a)];[_0x4c0c2f(0x1f2)]=void 0x0;[_0x4c0c2f(0x26c)]=!0x1;constructor(_0x3c41cb){const _0x2b5490=_0x4c0c2f;super(_0x3c41cb);const _0x175086=this[_0x2b5490(0x1f4)][_0x2b5490(0x25a)][_0x2b5490(0x24a)](_0x2b5490(0x27f));this[_0x2b5490(0x253)](_0x2b5490(0x230),!0x1),this[_0x2b5490(0x273)]=new _0x5b4db5(),this[_0x2b5490(0x227)]=new _0x3cba1f(this[_0x2b5490(0x1f4)][_0x2b5490(0x27c)],{'showResizeButton':_0x175086[_0x2b5490(0x217)],'contextResourcesSearchInputVisibleFrom':this[_0x2b5490(0x1f4)][_0x2b5490(0x1f9)][_0x2b5490(0x24a)](_0x2b5490(0x24b))}),this[_0x2b5490(0x227)][_0x2b5490(0x278)](..._0x54c5e5)['to'](this),this[_0x2b5490(0x227)]['on'](_0x2b5490(0x260),(_0x5b1c3a,{showDiff:_0x4b60c7})=>{const _0x66764c=_0x2b5490;this[_0x66764c(0x27e)]=_0x4b60c7;}),_0x175086[_0x2b5490(0x1f6)][_0x2b5490(0x213)]({'id':_0x2b5490(0x269),'buttonLabel':_0xd99c66(this[_0x2b5490(0x1f4)][_0x2b5490(0x27c)],_0x2b5490(0x28f)),'buttonIcon':_0x32615d,'order':0x0,'content':this[_0x2b5490(0x227)]}),this[_0x2b5490(0x227)][_0x2b5490(0x27a)][_0x2b5490(0x22d)](_0x2b5490(0x292))['to'](this,_0x2b5490(0x230),_0x5dbcda=>_0x5dbcda),this[_0x2b5490(0x227)][_0x2b5490(0x289)][_0x2b5490(0x22d)](_0x2b5490(0x231))['to'](this,_0x2b5490(0x230),_0x3cb5b1=>_0x3cb5b1),this[_0x2b5490(0x227)][_0x2b5490(0x27a)][_0x2b5490(0x1f8)](this[_0x2b5490(0x221)]()),this[_0x2b5490(0x22d)](_0x2b5490(0x27b))['to'](this[_0x2b5490(0x227)][_0x2b5490(0x27a)],_0x2b5490(0x27b));}[_0x4c0c2f(0x257)](){const _0x4d475e=_0x4c0c2f;super[_0x4d475e(0x257)](),this[_0x4d475e(0x1f2)]&&clearInterval(this[_0x4d475e(0x1f2)]);}[_0x4c0c2f(0x256)](_0x24d8dc){const _0x52e5a0=_0x4c0c2f;this[_0x52e5a0(0x227)][_0x52e5a0(0x289)][_0x52e5a0(0x243)](),this[_0x52e5a0(0x227)][_0x52e5a0(0x27a)][_0x52e5a0(0x218)](),this[_0x52e5a0(0x227)][_0x52e5a0(0x27a)][_0x52e5a0(0x207)](_0x24d8dc[_0x52e5a0(0x226)],!this[_0x52e5a0(0x1f4)][_0x52e5a0(0x1f9)][_0x52e5a0(0x24a)](_0x52e5a0(0x28b))),this[_0x52e5a0(0x28e)]({'id':_0x52e5a0(0x263),'staticMessage':_0xd99c66(this[_0x52e5a0(0x1f4)][_0x52e5a0(0x27c)],_0x52e5a0(0x244))});}[_0x4c0c2f(0x28e)]({id:_0x51f3da,staticMessage:_0x2af47e}){const _0x680c1f=_0x4c0c2f;this[_0x680c1f(0x227)][_0x680c1f(0x289)][_0x680c1f(0x27d)](_0x680c1f(0x270),{'id':_0x51f3da,'initialContent':_0x680c1f(0x25f)+_0x2af47e+_0x680c1f(0x285)});}[_0x4c0c2f(0x228)](_0x356b7d){const _0x3e1682=_0x4c0c2f,_0xd7480=_0x356b7d[_0x3e1682(0x274)]?.[_0x3e1682(0x267)]||_0x356b7d[_0x3e1682(0x21b)];this[_0x3e1682(0x227)][_0x3e1682(0x289)][_0x3e1682(0x27d)](_0x3e1682(0x24f),{'contextItems':Array[_0x3e1682(0x1fb)](_0x356b7d[_0x3e1682(0x291)][_0x3e1682(0x21f)]()),'initialContent':_0x3e1682(0x25f)+_0xd7480+_0x3e1682(0x285),'id':_0x356b7d['id']});}[_0x4c0c2f(0x201)]({errorMessage:_0x2c3892,id:_0xdb33dd}){const _0x4d15a2=_0x4c0c2f;this[_0x4d15a2(0x227)][_0x4d15a2(0x289)][_0x4d15a2(0x27d)](_0x4d15a2(0x250),{'initialContent':_0x4d15a2(0x25f)+_0x2c3892+_0x4d15a2(0x285),'id':_0xdb33dd});}[_0x4c0c2f(0x28c)](_0x4c4d97){const _0x1d8d82=_0x4c0c2f;return this[_0x1d8d82(0x273)][_0x1d8d82(0x22b)](async()=>{const _0x39c930=_0x1d8d82;this[_0x39c930(0x227)][_0x39c930(0x289)][_0x39c930(0x27d)](_0x39c930(0x270),{'id':_0x4c4d97[_0x39c930(0x1fc)]+':'+_0x4c4d97['id']}),this[_0x39c930(0x261)](null);});}async[_0x4c0c2f(0x288)](_0x2a9230){const _0x1e10db=_0x4c0c2f,_0x268c43=_0x1563ee(this[_0x1e10db(0x1f4)]);let _0xfc3891=_0x268c43[_0x1e10db(0x1f9)][_0x1e10db(0x24a)](_0x1e10db(0x233))||[..._0xe07d54];if(_0x268c43[_0x1e10db(0x25a)][_0x1e10db(0x23f)](_0x1e10db(0x229))){if(!this[_0x1e10db(0x26c)]){this[_0x1e10db(0x26c)]=!0x0;const _0xd38915=_0x268c43[_0x1e10db(0x215)][_0x1e10db(0x24a)](_0x1e10db(0x21a));this[_0x1e10db(0x227)][_0x1e10db(0x289)][_0x1e10db(0x22d)](_0x1e10db(0x1f5))['to'](_0xd38915,_0x1e10db(0x204));}}else _0xfc3891=_0xfc3891[_0x1e10db(0x236)](_0x1c51f1=>_0x1e10db(0x28a)!=_0x1c51f1);return this[_0x1e10db(0x273)][_0x1e10db(0x22b)](async()=>{const _0x1e9d5d=_0x1e10db;this[_0x1e9d5d(0x227)][_0x1e9d5d(0x289)][_0x1e9d5d(0x27d)](_0x1e9d5d(0x262),{'id':_0x2a9230[_0x1e9d5d(0x1fc)]+':'+_0x2a9230['id'],'areActionsDisabled':_0x2a9230[_0x1e9d5d(0x214)],'showDiff':this[_0x1e9d5d(0x27e)],'availableActions':_0xfc3891}),this[_0x1e9d5d(0x261)](null);});}[_0x4c0c2f(0x1f1)](_0x1c0c05,_0x13e3fd){const _0x533447=_0x4c0c2f,_0x18ef3e=this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x216)][_0x533447(0x238)];if(_0x18ef3e instanceof _0x4f1eb9)return this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x216)][_0x533447(0x279)](_0x18ef3e),void this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x27d)](_0x533447(0x26d),{'id':_0x1c0c05['id'],'capabilities':{'isWebSearchEnabled':_0x18ef3e[_0x533447(0x208)][_0x533447(0x20b)]||_0x13e3fd[_0x533447(0x20b)],'isReasoningEnabled':_0x18ef3e[_0x533447(0x208)][_0x533447(0x23c)]||_0x13e3fd[_0x533447(0x23c)]}});this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x27d)](_0x533447(0x26d),{'id':_0x1c0c05['id'],'capabilities':_0x13e3fd});}[_0x4c0c2f(0x24e)](_0x19fe63){const _0x1493d8=_0x4c0c2f,_0x8e5fd6=this[_0x1493d8(0x227)][_0x1493d8(0x289)][_0x1493d8(0x216)][_0x1493d8(0x26b)](_0x2ed906=>_0x2ed906[_0x1493d8(0x212)]['id']==_0x19fe63['id']&&_0x2ed906 instanceof _0x4f1eb9);_0x8e5fd6&&_0x8e5fd6[_0x1493d8(0x253)](_0x1493d8(0x25b),_0x19fe63[_0x1493d8(0x25b)]);}async[_0x4c0c2f(0x247)](_0x46f3f5){const _0x53fd05=_0x4c0c2f,_0x422cc2=_0x46f3f5[_0x53fd05(0x25d)]||this[_0x53fd05(0x248)];return this[_0x53fd05(0x273)][_0x53fd05(0x22b)](async _0x5a4bea=>{const _0xc6106f=_0x53fd05;await this[_0xc6106f(0x227)][_0xc6106f(0x289)][_0xc6106f(0x20e)]({..._0x46f3f5,'abortSignal':_0x5a4bea,'renderingStrategy':_0x422cc2}),_0x46f3f5[_0xc6106f(0x205)]&&this[_0xc6106f(0x275)](_0x46f3f5['id']);});}[_0x4c0c2f(0x200)](_0x2c980a,_0xdcaaef){const _0x38742b=_0x4c0c2f;this[_0x38742b(0x227)][_0x38742b(0x289)][_0x38742b(0x20f)](_0x2c980a,_0xdcaaef);}async[_0x4c0c2f(0x246)](_0x10e7a6){const _0x20e3dd=_0x4c0c2f,_0x3234b6=_0x10e7a6[_0x20e3dd(0x25d)]||this[_0x20e3dd(0x248)];return this[_0x20e3dd(0x273)][_0x20e3dd(0x22b)](async _0xa69024=>{const _0x128472=_0x20e3dd;await this[_0x128472(0x227)][_0x128472(0x289)][_0x128472(0x25e)]({..._0x10e7a6,'abortSignal':_0xa69024,'renderingStrategy':_0x3234b6}),_0x10e7a6[_0x128472(0x205)]&&this[_0x128472(0x275)](_0x10e7a6['id']);});}[_0x4c0c2f(0x276)](_0x4e6ed2){const _0x263f59=_0x4c0c2f;this[_0x263f59(0x227)][_0x263f59(0x289)][_0x263f59(0x28d)](_0x4e6ed2);}[_0x4c0c2f(0x275)](_0x1bca8f){const _0x4408ec=_0x4c0c2f;this[_0x4408ec(0x227)][_0x4408ec(0x289)][_0x4408ec(0x206)](_0x1bca8f);}[_0x4c0c2f(0x202)](_0x1270e1){const _0x2574e4=_0x4c0c2f;this[_0x2574e4(0x227)][_0x2574e4(0x289)][_0x2574e4(0x1fa)]()[_0x2574e4(0x236)](_0xb40419=>_0xb40419[_0x2574e4(0x1f0)](_0x1270e1))[_0x2574e4(0x20d)](_0x6ccfd7=>this[_0x2574e4(0x227)][_0x2574e4(0x289)][_0x2574e4(0x240)](_0x6ccfd7));}[_0x4c0c2f(0x209)](){const _0x2868ba=_0x4c0c2f;this[_0x2868ba(0x261)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2868ba(0x227)][_0x2868ba(0x27a)][_0x2868ba(0x22c)](!this[_0x2868ba(0x1f4)][_0x2868ba(0x1f9)][_0x2868ba(0x24a)](_0x2868ba(0x28b))),this[_0x2868ba(0x230)]=!0x0,this[_0x2868ba(0x227)][_0x2868ba(0x289)][_0x2868ba(0x1ef)]();}[_0x4c0c2f(0x254)](_0x12f113){const _0x511a0f=_0x4c0c2f;this[_0x511a0f(0x273)][_0x511a0f(0x234)](),this[_0x511a0f(0x227)][_0x511a0f(0x289)][_0x511a0f(0x1fa)]()[_0x511a0f(0x236)](_0x42d44e=>_0x42d44e[_0x511a0f(0x1f0)](_0x12f113['id']))[_0x511a0f(0x20d)](_0x457ee6=>this[_0x511a0f(0x275)](_0x457ee6)),this[_0x511a0f(0x230)]=!0x1,this[_0x511a0f(0x227)][_0x511a0f(0x289)][_0x511a0f(0x271)]();}async[_0x4c0c2f(0x280)](){const _0x52f496=_0x4c0c2f;return this[_0x52f496(0x273)][_0x52f496(0x24c)][_0x52f496(0x21c)](()=>{const _0x26a962=_0x52f496;this[_0x26a962(0x230)]=!0x1,this[_0x26a962(0x227)][_0x26a962(0x289)][_0x26a962(0x271)]();});}[_0x4c0c2f(0x23a)](_0x1f075e,_0x2b15bd){const _0x413552=_0x4c0c2f;this[_0x413552(0x227)][_0x413552(0x27a)][_0x413552(0x23a)](_0x1f075e,_0x2b15bd);}[_0x4c0c2f(0x26f)](_0x15018d){const _0x536ce4=_0x4c0c2f;this[_0x536ce4(0x227)][_0x536ce4(0x27a)][_0x536ce4(0x26f)](_0x15018d);}[_0x4c0c2f(0x219)](_0x3b67a2,_0x14d4b6){const _0xbe759f=_0x4c0c2f;this[_0xbe759f(0x227)][_0xbe759f(0x27a)][_0xbe759f(0x219)](_0x3b67a2,_0x14d4b6);}[_0x4c0c2f(0x282)](_0x4bd22f){const _0x3a49de=_0x4c0c2f;this[_0x3a49de(0x227)][_0x3a49de(0x27a)][_0x3a49de(0x282)](_0x4bd22f);}[_0x4c0c2f(0x242)](_0x3aa154){const _0x1fab4a=_0x4c0c2f;this[_0x1fab4a(0x227)][_0x1fab4a(0x27a)][_0x1fab4a(0x242)](_0x3aa154);}[_0x4c0c2f(0x22f)](){const _0x578874=_0x4c0c2f;this[_0x578874(0x227)][_0x578874(0x27a)][_0x578874(0x22f)]();}[_0x4c0c2f(0x224)](){const _0x4dffc9=_0x4c0c2f;this[_0x4dffc9(0x227)][_0x4dffc9(0x27a)][_0x4dffc9(0x224)]();}[_0x4c0c2f(0x281)](_0x23c8d3,_0x5c6556,_0x4bfcf5){const _0x2153d1=_0x4c0c2f;this[_0x2153d1(0x227)][_0x2153d1(0x27a)][_0x2153d1(0x281)](_0x23c8d3,_0x5c6556,_0x4bfcf5);}[_0x4c0c2f(0x237)](){const _0x5055ff=_0x4c0c2f;this[_0x5055ff(0x227)][_0x5055ff(0x27a)][_0x5055ff(0x237)](),this[_0x5055ff(0x227)][_0x5055ff(0x27a)][_0x5055ff(0x1f8)](this[_0x5055ff(0x221)]());}[_0x4c0c2f(0x232)](_0x21d0a4){const _0xf31120=_0x4c0c2f;this[_0xf31120(0x227)][_0xf31120(0x27a)][_0xf31120(0x232)](_0x21d0a4);}[_0x4c0c2f(0x251)](_0x14cc4a){const _0x4f0245=_0x4c0c2f;this[_0x4f0245(0x227)][_0x4f0245(0x27a)][_0x4f0245(0x23d)](_0x14cc4a[_0x4f0245(0x20b)]),this[_0x4f0245(0x227)][_0x4f0245(0x27a)][_0x4f0245(0x255)](_0x14cc4a[_0x4f0245(0x23c)]),this[_0x4f0245(0x227)][_0x4f0245(0x27a)][_0x4f0245(0x1f8)](this[_0x4f0245(0x221)](_0x14cc4a));}[_0x4c0c2f(0x225)](_0x186792,_0x4bf40d){const _0x1c112c=_0x4c0c2f;this[_0x1c112c(0x227)][_0x1c112c(0x27a)][_0x1c112c(0x24d)](_0x186792),_0x4bf40d&&this[_0x1c112c(0x227)][_0x1c112c(0x27a)][_0x1c112c(0x22c)](!0x1);}[_0x4c0c2f(0x239)](_0x17b348){const _0x1cdd36=_0x4c0c2f;this[_0x1cdd36(0x248)]=_0x17b348;}[_0x4c0c2f(0x1ed)](_0x283343){const _0x54d6fa=_0x4c0c2f;this[_0x54d6fa(0x227)][_0x54d6fa(0x289)][_0x54d6fa(0x1ed)](_0x283343);}[_0x4c0c2f(0x26e)](){const _0x4d7d3c=_0x4c0c2f;this[_0x4d7d3c(0x26a)](_0xd99c66(this[_0x4d7d3c(0x1f4)][_0x4d7d3c(0x27c)],_0x4d7d3c(0x28f)));}[_0x4c0c2f(0x26a)](_0x6e1abe,_0x5b1425=!0x1){const _0x29982=_0x4c0c2f;if(_0x5b1425&&!_0x34055f()&&_0x6e1abe[_0x29982(0x268)])return this[_0x29982(0x227)][_0x29982(0x1ff)][_0x29982(0x252)]='',void this[_0x29982(0x272)](_0x6e1abe);this[_0x29982(0x227)][_0x29982(0x1ff)][_0x29982(0x252)]=_0x6e1abe;}[_0x4c0c2f(0x261)](_0x2c530e){const _0x37f3e0=_0x4c0c2f,_0x10ff3d=this[_0x37f3e0(0x235)](_0x2c530e);this[_0x37f3e0(0x227)][_0x37f3e0(0x289)][_0x37f3e0(0x261)](_0x10ff3d);}[_0x4c0c2f(0x272)](_0xf2f1eb){const _0x30ba41=_0x4c0c2f;let _0xaeac66=0x0;clearInterval(this[_0x30ba41(0x1f2)]),this[_0x30ba41(0x1f2)]=setInterval(()=>{const _0x135cd7=_0x30ba41;this[_0x135cd7(0x227)][_0x135cd7(0x1ff)][_0x135cd7(0x252)]=this[_0x135cd7(0x227)][_0x135cd7(0x1ff)][_0x135cd7(0x252)]+_0xf2f1eb[_0xaeac66],_0xaeac66++,_0xaeac66===_0xf2f1eb[_0x135cd7(0x268)]&&clearInterval(this[_0x135cd7(0x1f2)]);},0x1e);}[_0x4c0c2f(0x284)](_0x2f9594){const _0x1403a7=_0x4c0c2f;this[_0x1403a7(0x227)][_0x1403a7(0x1ff)][_0x1403a7(0x266)]=_0x2f9594;}[_0x4c0c2f(0x235)](_0x1d7c1a){const _0x169270=_0x4c0c2f;return _0x1d7c1a?_0x1d7c1a[_0x169270(0x20b)]&&_0x1d7c1a[_0x169270(0x23c)]?_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x222)):_0x1d7c1a[_0x169270(0x20b)]?_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x23e)):_0x1d7c1a[_0x169270(0x23c)]?_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x290)):_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x22e)):'';}[_0x4c0c2f(0x221)](_0xda1f3a){const _0x253c5c=_0x4c0c2f;return _0xda1f3a?_0xda1f3a[_0x253c5c(0x20b)]&&_0xda1f3a[_0x253c5c(0x23c)]?_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x210)):_0xda1f3a[_0x253c5c(0x20b)]?_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x1fd)):_0xda1f3a[_0x253c5c(0x23c)]?_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x20c)):_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x258)):_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x258));}[_0x4c0c2f(0x286)](_0x22823a,_0x1d8693,_0x16ae9b,_0xfa114f){const _0x390dc2=_0x4c0c2f;this[_0x390dc2(0x227)][_0x390dc2(0x286)](_0x22823a,_0x1d8693,_0x16ae9b,_0xfa114f);}[_0x4c0c2f(0x249)](_0x583a18){const _0x2876df=_0x4c0c2f;this[_0x2876df(0x227)][_0x2876df(0x249)](_0x583a18);}[_0x4c0c2f(0x23b)](){const _0x81d9de=_0x4c0c2f;this[_0x81d9de(0x227)][_0x81d9de(0x27a)][_0x81d9de(0x23b)]();}[_0x4c0c2f(0x1fe)](_0x47cd03,_0x293e73){const _0x8975e8=_0x4c0c2f;this[_0x8975e8(0x227)][_0x8975e8(0x289)][_0x8975e8(0x203)](_0x47cd03,_0x293e73);}[_0x4c0c2f(0x1ef)](){const _0xdf82e4=_0x4c0c2f;this[_0xdf82e4(0x227)][_0xdf82e4(0x289)][_0xdf82e4(0x1ef)]();}[_0x4c0c2f(0x1f3)](){const _0x33fde3=_0x4c0c2f;this[_0x33fde3(0x227)][_0x33fde3(0x27a)][_0x33fde3(0x245)]=!0x0;}[_0x4c0c2f(0x241)](){const _0x8ca0ed=_0x4c0c2f;this[_0x8ca0ed(0x227)][_0x8ca0ed(0x27a)][_0x8ca0ed(0x245)]=!0x1;}}
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();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ec3(_0x433b10,_0x4499fe){const _0x3daedb=_0x3dae();return _0x2ec3=function(_0x2ec3f2,_0x3273be){_0x2ec3f2=_0x2ec3f2-0x18e;let _0x2b041a=_0x3daedb[_0x2ec3f2];return _0x2b041a;},_0x2ec3(_0x433b10,_0x4499fe);}const _0x453b6d=_0x2ec3;(function(_0x522e03,_0x3d5405){const _0x447386=_0x2ec3,_0x425b08=_0x522e03();while(!![]){try{const _0x260df9=-parseInt(_0x447386(0x1f6))/0x1*(-parseInt(_0x447386(0x1fe))/0x2)+parseInt(_0x447386(0x1e8))/0x3+-parseInt(_0x447386(0x1b9))/0x4*(-parseInt(_0x447386(0x1a3))/0x5)+-parseInt(_0x447386(0x192))/0x6+-parseInt(_0x447386(0x1e6))/0x7*(parseInt(_0x447386(0x201))/0x8)+parseInt(_0x447386(0x1ec))/0x9*(-parseInt(_0x447386(0x214))/0xa)+-parseInt(_0x447386(0x1db))/0xb*(parseInt(_0x447386(0x209))/0xc);if(_0x260df9===_0x3d5405)break;else _0x425b08['push'](_0x425b08['shift']());}catch(_0x382016){_0x425b08['push'](_0x425b08['shift']());}}}(_0x3dae,0x8142b));import{CKEditorError as _0x5a252e,ObservableMixin as _0x2c3e1b,uid as _0x5c3674}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x209a0c,AIContextTextResourceType as _0xf7701a}from'../../aicore/model/aicontext.js';import{escape as _0x437800}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x453b6d(0x19c),_0x453b6d(0x1e7),_0x453b6d(0x1fc),_0x453b6d(0x1c2),_0x453b6d(0x1f7),_0x453b6d(0x19a),_0x453b6d(0x1ea),_0x453b6d(0x1c6),_0x453b6d(0x1eb)];export class AIChatContext extends _0x2c3e1b(){[_0x453b6d(0x1d8)];[_0x453b6d(0x18f)];[_0x453b6d(0x1a1)];constructor({connector:_0x4c9fb5,config:_0x266dcb,ownerId:_0x1f431d}){const _0x253bb0=_0x453b6d;super(),this[_0x253bb0(0x1d8)]=_0x4c9fb5,this[_0x253bb0(0x18f)]=_0x266dcb,this[_0x253bb0(0x1a1)]=_0x1f431d;}[_0x453b6d(0x20e)](){const _0x48dfb9=_0x453b6d;this[_0x48dfb9(0x1c8)]=new Map(),this[_0x48dfb9(0x202)]=new Map(),this[_0x48dfb9(0x1f2)]=new Map(),this[_0x48dfb9(0x1fd)]=new Map(),this[_0x48dfb9(0x1d2)]();}[_0x453b6d(0x20f)](){const _0x424095=_0x453b6d;return this[_0x424095(0x1c8)];}async[_0x453b6d(0x19d)](_0x12923d){const _0x1d3d49=_0x453b6d,_0x10db1b=await this[_0x1d3d49(0x1ab)](_0x12923d);return this[_0x1d3d49(0x197)](_0x10db1b),_0x1d3d49(0x1c5)===_0x10db1b[_0x1d3d49(0x193)]&&this[_0x1d3d49(0x1d7)](),_0x10db1b;}async[_0x453b6d(0x1ab)](_0x4f0b24){const _0x4d2e82=_0x453b6d;if(_0x4f0b24[_0x4d2e82(0x213)]===_0x209a0c[_0x4d2e82(0x20d)]){const _0x52c14f=await this[_0x4d2e82(0x1d8)][_0x4d2e82(0x1ca)](this[_0x4d2e82(0x1a1)],_0x4f0b24['id'])[_0x4d2e82(0x1e1)]();return{'id':_0x4d2e82(0x1c5),'uiId':_0x4d2e82(0x1c5),'label':_0x4d2e82(0x1c1),'type':_0x4f0b24[_0x4d2e82(0x213)],'content':_0x52c14f[_0x4d2e82(0x1e2)],'hidden':this[_0x4d2e82(0x202)][_0x4d2e82(0x1bd)](_0x4d2e82(0x1c5)),'version':_0x52c14f[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x18e)],'sessionId':_0x52c14f[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x1a9)]};}return{'id':_0x4f0b24['id'],'uiId':_0x4f0b24['id'],'label':_0x4f0b24[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x191)]||_0x4f0b24[_0x4d2e82(0x204)]||_0x4f0b24[_0x4d2e82(0x210)]||_0x4f0b24['id'],'type':_0x4f0b24[_0x4d2e82(0x213)],..._0x4f0b24?.[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x1b3)]?{'resourceId':_0x4f0b24[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x1b3)]}:{}};}[_0x453b6d(0x1e3)](){const _0x18e8a2=_0x453b6d;return new Map(this[_0x18e8a2(0x202)]);}[_0x453b6d(0x1e9)](_0x4c8d14){const _0x430c84=_0x453b6d,_0xf68a8e=this[_0x430c84(0x1c8)][_0x430c84(0x203)](_0x4c8d14);_0xf68a8e?.[_0x430c84(0x211)]||this[_0x430c84(0x21d)](_0x4c8d14);}[_0x453b6d(0x207)](){const _0x24d7a8=_0x453b6d;if(0x0===this[_0x24d7a8(0x1c8)][_0x24d7a8(0x1ff)])return;for(const _0x65c889 of this[_0x24d7a8(0x1c8)][_0x24d7a8(0x1cc)]())this[_0x24d7a8(0x21d)](_0x65c889[_0x24d7a8(0x193)]);const _0x828bd1=this[_0x24d7a8(0x202)][_0x24d7a8(0x203)](_0x24d7a8(0x1c5))||this[_0x24d7a8(0x1c8)][_0x24d7a8(0x203)](_0x24d7a8(0x1c5));_0x828bd1&&this[_0x24d7a8(0x1dc)]({..._0x828bd1,'isReadOnly':!0x0,'hidden':!0x0});}[_0x453b6d(0x1a8)](_0x4291c7){const _0xb72b9b=_0x453b6d;for(const _0x3d980b of _0x4291c7[_0xb72b9b(0x1cc)]())this[_0xb72b9b(0x197)](_0x3d980b);this[_0xb72b9b(0x207)](),this[_0xb72b9b(0x1b2)](_0xb72b9b(0x1c2),{'contextItems':Array[_0xb72b9b(0x1b7)](this[_0xb72b9b(0x1e3)]()[_0xb72b9b(0x1cc)]())});}[_0x453b6d(0x194)](){const _0x58b56d=_0x453b6d;return this[_0x58b56d(0x1c8)][_0x58b56d(0x1bd)](_0x58b56d(0x1c5));}[_0x453b6d(0x1d3)](){const _0x255a5a=_0x453b6d;return this[_0x255a5a(0x1c8)][_0x255a5a(0x1bd)](_0x255a5a(0x1de));}[_0x453b6d(0x1f1)](){const _0x3cfbd7=_0x453b6d;return this[_0x3cfbd7(0x202)][_0x3cfbd7(0x1bd)](_0x3cfbd7(0x1c5));}static[_0x453b6d(0x1ef)](_0x158b66){const _0x192326=_0x453b6d;return Array[_0x192326(0x1b7)](_0x158b66[_0x192326(0x1cc)]())[_0x192326(0x19f)](_0x502ce3=>this[_0x192326(0x198)](_0x502ce3))[_0x192326(0x217)](_0x48df45=>null!==_0x48df45);}async[_0x453b6d(0x1d0)](_0x177145,_0x596a89,_0x2889cf=_0x209a0c[_0x453b6d(0x1dd)]){const _0x2af0f3=_0x453b6d,_0xf388f2=_0x2af0f3(0x219)+_0x5c3674();this[_0x2af0f3(0x1b8)](_0xf388f2);try{await Promise[_0x2af0f3(0x1a0)](_0x177145[_0x2af0f3(0x19f)](async _0x4a8e36=>{const _0x27a0d6=_0x2af0f3,_0x3c8705=_0x27a0d6(0x1c7)+_0x5c3674(),_0x693db8=_0x437800(_0x4a8e36[_0x27a0d6(0x204)]);try{this[_0x27a0d6(0x1dc)]({'type':_0x2889cf,'label':_0x596a89?.[_0x27a0d6(0x191)]||_0x693db8,'uiId':_0x3c8705,'resourceId':_0x596a89?.[_0x27a0d6(0x1b3)]},!0x0);const _0x20416c=this[_0x27a0d6(0x1d8)][_0x27a0d6(0x1ce)](this[_0x27a0d6(0x1a1)],_0x4a8e36,_0x596a89);this[_0x27a0d6(0x1f2)][_0x27a0d6(0x20a)](_0x3c8705,_0x20416c[_0x27a0d6(0x1ba)]);const {id:_0x19201d}=await _0x20416c[_0x27a0d6(0x1a2)]();this[_0x27a0d6(0x1f2)][_0x27a0d6(0x1f8)](_0x3c8705),this[_0x27a0d6(0x218)]({'type':_0x2889cf,'id':_0x19201d,'label':_0x596a89?.[_0x27a0d6(0x191)]||_0x693db8,'uiId':_0x3c8705,'resourceId':_0x596a89?.[_0x27a0d6(0x1b3)]},!0x1);}catch(_0x2c14b4){this[_0x27a0d6(0x1f2)][_0x27a0d6(0x1f8)](_0x3c8705);if(!_0x2c14b4[_0x27a0d6(0x1ae)][_0x27a0d6(0x206)](_0x27a0d6(0x1da))){const _0x41d3c6=new _0x5a252e(_0x27a0d6(0x1a4),null,{'fileName':_0x693db8});_0x41d3c6[_0x27a0d6(0x20b)]=_0x2c14b4[_0x27a0d6(0x20b)],this[_0x27a0d6(0x1b2)](_0x27a0d6(0x1f7),{'error':_0x41d3c6,'fileName':_0x693db8});}this[_0x27a0d6(0x21d)](_0x3c8705);}}));}finally{this[_0x2af0f3(0x1d6)](_0xf388f2);}}[_0x453b6d(0x205)](_0x26926c){const _0x358d92=_0x453b6d;if(this[_0x358d92(0x194)]())return;const _0x403d30={'type':_0x209a0c[_0x358d92(0x20d)],'uiId':_0x358d92(0x1c5),'label':_0x26926c,'isReadOnly':this[_0x358d92(0x202)][_0x358d92(0x1bd)](_0x358d92(0x1c5)),'hidden':this[_0x358d92(0x202)][_0x358d92(0x1bd)](_0x358d92(0x1c5))};this[_0x358d92(0x1dc)](_0x403d30);}async[_0x453b6d(0x1d1)](_0x5d817d,_0x10e3e8,_0x9d6972,_0x84bf02){const _0x42f332=_0x453b6d,_0x47c9f2=this[_0x42f332(0x1c8)][_0x42f332(0x203)](_0x42f332(0x1c5));if(_0x47c9f2&&_0x5d817d){_0x47c9f2[_0x42f332(0x1de)]=_0x84bf02?_0x84bf02[_0x42f332(0x19f)](_0x13c174=>({'start':_0x13c174[_0x42f332(0x19e)],'end':_0x13c174[_0x42f332(0x1bc)]})):[];try{if(_0x47c9f2[_0x42f332(0x18e)]===_0x10e3e8)return;const {id:_0x4226e9}=await this[_0x42f332(0x1d8)][_0x42f332(0x1b0)](this[_0x42f332(0x1a1)],_0x5d817d,{'version':_0x10e3e8,'sessionId':_0x9d6972})[_0x42f332(0x1a2)]();_0x47c9f2['id']=_0x4226e9,_0x47c9f2[_0x42f332(0x1e2)]=_0x5d817d,_0x47c9f2[_0x42f332(0x18e)]=_0x10e3e8,_0x47c9f2[_0x42f332(0x1a9)]=_0x9d6972;}catch(_0x546b72){const _0x20254f=new _0x5a252e(_0x42f332(0x21c),null);_0x20254f[_0x42f332(0x20b)]=_0x546b72[_0x42f332(0x20b)],this[_0x42f332(0x1b2)](_0x42f332(0x1f7),{'error':_0x20254f});}}}[_0x453b6d(0x196)](_0x11b0fb){const _0x5aee3d=_0x453b6d;this[_0x5aee3d(0x1dc)]({'type':_0x209a0c[_0x5aee3d(0x1af)],'label':_0x11b0fb,'uiId':_0x5aee3d(0x1de),'content':_0x11b0fb});}[_0x453b6d(0x1e4)](){const _0x59a1d0=_0x453b6d;this[_0x59a1d0(0x21d)](_0x59a1d0(0x1de));}async[_0x453b6d(0x1e5)](_0x454c21,_0x3ee8be){const _0x437405=_0x453b6d,_0x2dc46e=_0x437405(0x1b6)+_0x5c3674();this[_0x437405(0x1b8)](_0x2dc46e);const _0xbedb2=_0x437405(0x1b6)+_0x5c3674();try{this[_0x437405(0x1dc)]({'type':_0x209a0c[_0x437405(0x1ed)],'label':_0x3ee8be?.[_0x437405(0x191)]||_0x454c21,'uiId':_0xbedb2,'resourceId':_0x3ee8be?.[_0x437405(0x1b3)]},!0x0);const _0x12ad45=this[_0x437405(0x1d8)][_0x437405(0x1b4)](this[_0x437405(0x1a1)],_0x454c21,_0x3ee8be);this[_0x437405(0x1f2)][_0x437405(0x20a)](_0xbedb2,_0x12ad45[_0x437405(0x1ba)]);const {id:_0x25a91b}=await _0x12ad45[_0x437405(0x1a2)]();this[_0x437405(0x1f2)][_0x437405(0x1f8)](_0xbedb2),this[_0x437405(0x218)]({'type':_0x209a0c[_0x437405(0x1ed)],'id':_0x25a91b,'label':_0x3ee8be?.[_0x437405(0x191)]||_0x454c21,'uiId':_0xbedb2,'resourceId':_0x3ee8be?.[_0x437405(0x1b3)]},!0x1);}catch(_0x169dbb){this[_0x437405(0x1f2)][_0x437405(0x1f8)](_0xbedb2),(_0x169dbb[_0x437405(0x1ae)][_0x437405(0x206)](_0x437405(0x1da))||this[_0x437405(0x1b2)](_0x437405(0x1f7),{'error':new _0x5a252e(_0x437405(0x1f3),this,{'url':_0x454c21,'originalError':_0x169dbb}),'url':_0x454c21}),this[_0x437405(0x21d)](_0xbedb2));}finally{this[_0x437405(0x1d6)](_0x2dc46e);}}async[_0x453b6d(0x1bb)](_0x1604a4,_0x4a4ac2,_0x4851aa){const _0x1e3a10=_0x453b6d,_0x1582ac=this[_0x1e3a10(0x1aa)][_0x1e3a10(0x1ad)][_0x1e3a10(0x1df)](_0x1adf97=>_0x1adf97['id']===_0x1604a4);if(!_0x1582ac)return this[_0x1e3a10(0x1b2)](_0x1e3a10(0x1f7),{'error':new _0x5a252e(_0x1e3a10(0x1fb),this,{'sourceId':_0x1604a4}),'sourceId':_0x1604a4}),[];try{const _0x1ed7a9=(await _0x1582ac[_0x1e3a10(0x199)](_0x4a4ac2))[_0x1e3a10(0x19f)](_0xcdb581=>{const _0xb11d81=_0x1e3a10,_0x14f395=this[_0xb11d81(0x1f4)](_0xcdb581['id']);return{..._0xcdb581,'isInContext':_0x14f395};});return _0x1582ac[_0x1e3a10(0x1b1)]=_0x1ed7a9,this[_0x1e3a10(0x1b2)](_0x1e3a10(0x1ea),{'sourceId':_0x1604a4,'source':_0x1582ac,'resources':_0x1ed7a9,'uid':_0x4851aa}),_0x1ed7a9;}catch(_0x29f82c){return this[_0x1e3a10(0x1b2)](_0x1e3a10(0x1f7),{'error':new _0x5a252e(_0x1e3a10(0x1c9),this,{'sourceId':_0x1604a4,'originalError':_0x29f82c}),'sourceId':_0x1604a4,'sourceLabel':_0x1582ac[_0x1e3a10(0x191)]}),[];}}async[_0x453b6d(0x1a6)](_0x179aea,_0x48f1c0){const _0x168e78=_0x453b6d;if(this[_0x168e78(0x1f4)](_0x48f1c0['id']))return;let _0x126cd4=_0x48f1c0[_0x168e78(0x1bf)];if(!_0x126cd4&&_0x179aea[_0x168e78(0x1f0)])try{_0x126cd4=await _0x179aea[_0x168e78(0x1f0)](_0x48f1c0['id']);}catch(_0x3eb077){return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1f5),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'originalError':_0x3eb077}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});}if(_0x126cd4)switch(_0x48f1c0[_0x168e78(0x213)]){case _0x209a0c[_0x168e78(0x1ed)]:if(_0x168e78(0x212)!=typeof _0x126cd4)return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1ee),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'expectedType':_0x168e78(0x212),'actualType':typeof _0x126cd4}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});await this[_0x168e78(0x1e5)](_0x126cd4,{'label':_0x48f1c0[_0x168e78(0x191)],'resourceId':_0x48f1c0['id']});break;case _0x209a0c[_0x168e78(0x1dd)]:if(!(_0x126cd4 instanceof File))return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1ee),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'expectedType':_0x168e78(0x1c0),'actualType':typeof _0x126cd4}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});await this[_0x168e78(0x1d0)]([_0x126cd4],{'label':_0x48f1c0[_0x168e78(0x191)],'resourceId':_0x48f1c0['id']});break;case _0x209a0c[_0x168e78(0x208)]:if(_0x168e78(0x216)!=typeof _0x126cd4||!(_0x168e78(0x1e2)in _0x126cd4)||!(_0x168e78(0x213)in _0x126cd4))return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1ee),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'expectedType':_0x168e78(0x1a5),'actualType':typeof _0x126cd4}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});_0x126cd4=AIChatContext[_0x168e78(0x20c)](_0x126cd4,_0x48f1c0[_0x168e78(0x191)]),await this[_0x168e78(0x1d0)]([_0x126cd4],{'label':_0x48f1c0[_0x168e78(0x191)],'resourceId':_0x48f1c0['id']},_0x209a0c[_0x168e78(0x208)]);break;default:this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1f9),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'resourceType':_0x48f1c0[_0x168e78(0x213)]}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});}else this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1cf),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});}static[_0x453b6d(0x20c)](_0x1b4b92,_0x53e095){const _0x2df4de=_0x453b6d;switch(_0x1b4b92[_0x2df4de(0x213)]){case _0xf7701a[_0x2df4de(0x21a)]:return new File([_0x1b4b92[_0x2df4de(0x1e2)]],_0x53e095,{'type':_0x2df4de(0x1cb)});case _0xf7701a[_0x2df4de(0x1ac)]:return new File([_0x1b4b92[_0x2df4de(0x1e2)]],_0x53e095,{'type':_0x2df4de(0x1c3)});default:return new File([_0x1b4b92[_0x2df4de(0x1e2)]],_0x53e095,{'type':_0x2df4de(0x1be)});}}static[_0x453b6d(0x198)](_0x385ba7){const _0x26c7f8=_0x453b6d;switch(_0x385ba7[_0x26c7f8(0x213)]){case _0x209a0c[_0x26c7f8(0x1dd)]:return{'type':_0x209a0c[_0x26c7f8(0x1dd)],'id':_0x385ba7['id']};case _0x209a0c[_0x26c7f8(0x1ed)]:return{'type':_0x209a0c[_0x26c7f8(0x1ed)],'id':_0x385ba7['id']};case _0x209a0c[_0x26c7f8(0x20d)]:return{'type':_0x209a0c[_0x26c7f8(0x20d)],'id':_0x385ba7['id'],..._0x385ba7[_0x26c7f8(0x1de)]?.[_0x26c7f8(0x200)]&&{'selection':_0x385ba7[_0x26c7f8(0x1de)]}};case _0x209a0c[_0x26c7f8(0x208)]:return{'type':_0x209a0c[_0x26c7f8(0x1dd)],'id':_0x385ba7['id']};default:return null;}}[_0x453b6d(0x1dc)](_0x3f29b7,_0x52f336=!0x1){const _0x5a1faf=_0x453b6d;if(this[_0x5a1faf(0x1c8)][_0x5a1faf(0x20a)](_0x3f29b7[_0x5a1faf(0x193)],_0x3f29b7),_0x3f29b7[_0x5a1faf(0x1e0)]||this[_0x5a1faf(0x1b2)](_0x5a1faf(0x19c),{'contextItem':_0x3f29b7,'isLoading':_0x52f336}),_0x5a1faf(0x1c5)===_0x3f29b7[_0x5a1faf(0x193)]&&this[_0x5a1faf(0x1d7)](),_0x3f29b7[_0x5a1faf(0x1b3)]){const _0x131672=this[_0x5a1faf(0x1a7)](_0x3f29b7[_0x5a1faf(0x1b3)]);_0x131672&&_0x131672[_0x5a1faf(0x19b)](_0x4c0d8f=>{const _0x492764=_0x5a1faf;this[_0x492764(0x215)](_0x4c0d8f,_0x3f29b7[_0x492764(0x1b3)],!0x0);});}}[_0x453b6d(0x21d)](_0x24014e){const _0x57614b=_0x453b6d,_0x53b4da=this[_0x57614b(0x1c8)][_0x57614b(0x203)](_0x24014e),_0x4eae77=this[_0x57614b(0x1f2)][_0x57614b(0x203)](_0x24014e);if(_0x4eae77&&(_0x4eae77[_0x57614b(0x1b5)](),this[_0x57614b(0x1f2)][_0x57614b(0x1f8)](_0x24014e)),_0x53b4da?.[_0x57614b(0x1b3)]){const _0x30dd92=this[_0x57614b(0x1a7)](_0x53b4da[_0x57614b(0x1b3)]);_0x30dd92&&_0x30dd92[_0x57614b(0x19b)](_0xa89ee2=>{const _0x415a5b=_0x57614b;this[_0x415a5b(0x215)](_0xa89ee2,_0x53b4da[_0x415a5b(0x1b3)],!0x1);});}this[_0x57614b(0x1c8)][_0x57614b(0x1f8)](_0x24014e),this[_0x57614b(0x1b2)](_0x57614b(0x1e7),{'uiId':_0x24014e,'type':_0x53b4da?.[_0x57614b(0x213)]}),_0x57614b(0x1c5)===_0x24014e&&this[_0x57614b(0x1d7)]();}[_0x453b6d(0x218)](_0x45badc,_0x141b71){const _0x5096e9=_0x453b6d;if(this[_0x5096e9(0x1c8)][_0x5096e9(0x1bd)](_0x45badc[_0x5096e9(0x193)])&&(this[_0x5096e9(0x1c8)][_0x5096e9(0x20a)](_0x45badc[_0x5096e9(0x193)],_0x45badc),this[_0x5096e9(0x1b2)](_0x5096e9(0x1fc),{'contextItem':_0x45badc,'isLoading':_0x141b71}),_0x45badc[_0x5096e9(0x1b3)])){const _0x4dbc8c=this[_0x5096e9(0x1a7)](_0x45badc[_0x5096e9(0x1b3)]);_0x4dbc8c&&_0x4dbc8c[_0x5096e9(0x19b)](_0x1ba508=>{const _0x46e7d6=_0x5096e9;this[_0x46e7d6(0x215)](_0x1ba508,_0x45badc[_0x46e7d6(0x1b3)],!0x0);});}}[_0x453b6d(0x197)](_0x26ea88){const _0x40b8eb=_0x453b6d;this[_0x40b8eb(0x202)][_0x40b8eb(0x20a)](_0x26ea88[_0x40b8eb(0x193)],_0x26ea88);}[_0x453b6d(0x1d2)](){const _0x39e461=_0x453b6d;this[_0x39e461(0x1aa)]={'document':{'enabled':!0x1!==this[_0x39e461(0x18f)]?.[_0x39e461(0x195)]?.[_0x39e461(0x1cd)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x39e461(0x18f)]?.[_0x39e461(0x1fa)]?.[_0x39e461(0x1cd)]},'files':{'enabled':!0x1!==this[_0x39e461(0x18f)]?.[_0x39e461(0x1c4)]?.[_0x39e461(0x1cd)]},'sources':this[_0x39e461(0x190)]()},this[_0x39e461(0x1b2)](_0x39e461(0x19a),{'options':this[_0x39e461(0x1aa)]});}[_0x453b6d(0x190)](){const _0x22b458=_0x453b6d;return this[_0x22b458(0x18f)]?.[_0x22b458(0x1ad)]?.[_0x22b458(0x19f)](_0x2428e3=>({..._0x2428e3,'resources':[]}))??[];}[_0x453b6d(0x1d7)](){const _0x4b9a31=_0x453b6d,_0x55bd3c=this[_0x4b9a31(0x194)]()||this[_0x4b9a31(0x1f1)]();this[_0x4b9a31(0x1aa)][_0x4b9a31(0x195)][_0x4b9a31(0x21b)]=_0x55bd3c,this[_0x4b9a31(0x1b2)](_0x4b9a31(0x19a),{'options':this[_0x4b9a31(0x1aa)]});}[_0x453b6d(0x1f4)](_0x441d94){const _0x626b24=_0x453b6d;for(const _0x82af46 of this[_0x626b24(0x1c8)][_0x626b24(0x1cc)]())if(_0x82af46[_0x626b24(0x1b3)]===_0x441d94)return!0x0;for(const _0x411cf4 of this[_0x626b24(0x202)][_0x626b24(0x1cc)]())if(_0x411cf4[_0x626b24(0x1b3)]===_0x441d94)return!0x0;return!0x1;}[_0x453b6d(0x1a7)](_0x4c4951){const _0x104ce4=_0x453b6d,_0x58452e=[];for(const _0x349aaf of this[_0x104ce4(0x1aa)][_0x104ce4(0x1ad)]){_0x349aaf[_0x104ce4(0x1b1)][_0x104ce4(0x1df)](_0x11e4ff=>_0x11e4ff['id']===_0x4c4951)&&_0x58452e[_0x104ce4(0x1d9)](_0x349aaf['id']);}return 0x0===_0x58452e[_0x104ce4(0x200)]?null:_0x58452e;}[_0x453b6d(0x215)](_0x45c26e,_0x1ca956,_0x3703ef){const _0x4f333e=_0x453b6d,_0x42592d=this[_0x4f333e(0x1aa)][_0x4f333e(0x1ad)][_0x4f333e(0x1df)](_0x3a67e2=>_0x3a67e2['id']===_0x45c26e);if(!_0x42592d)return;const _0x11e1f3=_0x42592d[_0x4f333e(0x1b1)][_0x4f333e(0x1df)](_0xde2d91=>_0xde2d91['id']===_0x1ca956);_0x11e1f3&&(_0x11e1f3[_0x4f333e(0x1d5)]=_0x3703ef,this[_0x4f333e(0x1b2)](_0x4f333e(0x1c6),{'sourceId':_0x45c26e,'resourceId':_0x1ca956,'isInContext':_0x3703ef}));}[_0x453b6d(0x1b8)](_0x125127){const _0x27bec3=_0x453b6d;this[_0x27bec3(0x1fd)][_0x27bec3(0x20a)](_0x125127,!0x0),this[_0x27bec3(0x1fd)][_0x27bec3(0x1ff)]&&this[_0x27bec3(0x1b2)](_0x27bec3(0x1eb),{'isUploadInProgress':!0x0});}[_0x453b6d(0x1d6)](_0xef9e9b){const _0x3b10d6=_0x453b6d;this[_0x3b10d6(0x1fd)][_0x3b10d6(0x1f8)](_0xef9e9b),0x0===this[_0x3b10d6(0x1fd)][_0x3b10d6(0x1ff)]&&this[_0x3b10d6(0x1b2)](_0x3b10d6(0x1eb),{'isUploadInProgress':!0x1});}}function _0x3dae(){const _0x505867=['resourceStateChanged','file-','_pendingContextItems','ai-chat-source-resources-load-failed','fetchDocument','text/markdown','values','enabled','uploadFile','ai-chat-resource-no-data','addFilesToContext','updateCurrentDocument','_setAddContextOptionsDefaultState','isSelectionInContext','attributes','isInContext','_finishUploadOperation','_toggleAddCurrentDocumentOptionVisibility','_connector','push','ai-request-aborted','6645144PTvTMz','_addContextItem','FILE','selection','find','hidden','getDocument','content','getSentContextItems','removeSelectionFromContext','addUrlToContext','14kAxXYT','contextItemRemoved','1703292PpVXDu','removeFromContext','sourceResourcesLoaded','uploadProgressChanged','2394KAOkmq','URL','ai-chat-context-invalid-data','mapContextItemsToRequestData','getData','isCurrentDocumentInConversation','_ongoingUploads','ai-chat-url-upload-failed','_isResourceInContext','ai-chat-resource-load-failed','44570heHedu','error','delete','ai-chat-context-unsupported-type','urls','ai-chat-source-not-found','contextItemLoadingEnded','_ongoingUploadOperations','34edyevy','size','length','1576016BBymUY','_conversationContextItems','get','name','addCurrentDocumentToContext','startsWith','clearPendingContextItems','TEXT','12eAzyxt','set','stack','_convertTextResourceToFile','DOCUMENT','init','getPendingContextItems','url','isReadOnly','string','type','12500andKbe','_updateResourceInContextState','object','filter','_finishContextItemLoading','files-','MARKDOWN','isHidden','ai-chat-document-upload-failed','_removeContextItem','version','_config','_getCustomSourcesInitialState','label','1433862IXUJkz','uiId','isCurrentDocumentInContext','document','addSelectionToContext','_addToConversationContextItem','_mapContextItemToRequestData','getResources','addContextOptionsChanged','forEach','contextItemAdded','populateFromMessage','start','map','all','_ownerId','getId','7705CbuHLV','ai-chat-file-upload-failed','object\x20with\x20content\x20and\x20type\x20properties','addResourceToContext','_findSourceIdsByResourceId','addToConversationContext','sessionId','_addContextOptionsState','_createContextItemFromContent','HTML','sources','message','SELECTION','uploadDocument','resources','fire','resourceId','uploadUrl','abort','url-','from','_startUploadOperation','2008qGLtdp','abortController','loadSourceResources','end','has','text/plain','data','File','Current\x20document','contextSent','text/html','files','current-document'];_0x3dae=function(){return _0x505867;};return _0x3dae();}
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});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10b59d=_0x30ee;(function(_0x5b248a,_0xf72f46){const _0x4d8b7f=_0x30ee,_0x313f06=_0x5b248a();while(!![]){try{const _0x399641=parseInt(_0x4d8b7f(0x188))/0x1+-parseInt(_0x4d8b7f(0x191))/0x2*(-parseInt(_0x4d8b7f(0x1ad))/0x3)+parseInt(_0x4d8b7f(0x18a))/0x4*(parseInt(_0x4d8b7f(0x18d))/0x5)+parseInt(_0x4d8b7f(0x189))/0x6*(-parseInt(_0x4d8b7f(0x1b0))/0x7)+-parseInt(_0x4d8b7f(0x1ab))/0x8+parseInt(_0x4d8b7f(0x1cd))/0x9*(-parseInt(_0x4d8b7f(0x1f2))/0xa)+parseInt(_0x4d8b7f(0x1a0))/0xb;if(_0x399641===_0xf72f46)break;else _0x313f06['push'](_0x313f06['shift']());}catch(_0x380791){_0x313f06['push'](_0x313f06['shift']());}}}(_0x4fea,0x8f8b6));function _0x30ee(_0x2168e9,_0x1a7f72){const _0x4fea50=_0x4fea();return _0x30ee=function(_0x30eec0,_0x322dbc){_0x30eec0=_0x30eec0-0x181;let _0x4d1a71=_0x4fea50[_0x30eec0];return _0x4d1a71;},_0x30ee(_0x2168e9,_0x1a7f72);}import{CKEditorError as _0x2c60c8,EmitterMixin as _0xa0818c,logWarning as _0x307623}from'ckeditor5/src/utils.js';function _0x4fea(){const _0x15488c=['getInteraction','start','createInteraction','addToConversationContext','interactions','490259zREhgC','253554Wscoaa','8NTUVtR','_processMessagesToInteractions','splice','1853405krmcAm','connector','length','set','2UoBlAq','stack','isAvailable','prompt','chatCapabilities','appendContent','init','addUrlToContext','contextItems','isCurrentDocumentInConversation','user','removeSelectionFromContext','chatModels','lastInteraction','ai-chat-handle-user-conversation-not-initialized','7990257HCLFjI','content','setModel','isCurrentDocumentInContext','updateCurrentDocument','chatContext','capabilities','modification-delta','conversationInitialized','reasoning','options','8183792xCOtAm','type','2259567AHMbOx','getCurrentDocumentContext','removeFromContext','7TkxGrV','load','addSelectionToContext','ai-chat-conversation-init-failed','error','ai-chat-conversation-set-model-not-available','reset','currentInteraction','removeInteraction','ai-chat-conversation-set-model-null','getEditor','conversationStarted','startConversation','addCurrentDocumentToContext','role','getCapabilitiesConfig','attributes','assistant','currentReply','interactionCreated','getModel','fetchConversationMessages','ai-chat-conversation-init-from-id-failed','handleUserInteraction','toLowerCase','webSearch','sessionId','toggleReasoning','loadSourceResources','18XzWLpR','ai-chat-handle-user-interaction-already-in-progress','indexOf','text-delta','toggleWebSearch','getAvailableModels','setConversationTitle','isSelectionInContext','push','ai-chat-conversation-already-started','populateFromMessage','fetchConversation','getPendingContextItems','delegate','message','getAll','_extractContextItems','destroy','getDocumentContext','getConversation','modelSelected','title','conversationId','addResourceToContext','fire','model','find','isStarted','createReply','selectedModel','addFilesToContext','ai-chat-conversation-start-no-model-selected','group','selectedModelId','quickActionData','hasOwn','ai-chat-conversation-start-failed','5290030SgYXSp','stop','text','getMessages','updateCurrentDocumentInContext'];_0x4fea=function(){return _0x15488c;};return _0x4fea();}import{AI_MODEL_EVENT_NAMES as _0x1dbe0e}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4f0a99,AI_CONTEXT_MODEL_EVENT_NAMES as _0x20f1d2}from'./aichatcontext.js';import{AICapabilities as _0x3a5d2b,CAPABILITIES_MODEL_EVENT_NAMES as _0x2f8447}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4a0e78}from'./aichatinteraction.js';export class AIChatConversation extends _0xa0818c(){['id'];[_0x10b59d(0x1e8)]=!0x1;[_0x10b59d(0x187)]=[];[_0x10b59d(0x1b7)];[_0x10b59d(0x1ea)];[_0x10b59d(0x18e)];[_0x10b59d(0x1aa)];constructor(_0x4e09fc){const _0xd53eb2=_0x10b59d;super(),this[_0xd53eb2(0x1aa)]=_0x4e09fc,this[_0xd53eb2(0x18e)]=_0x4e09fc[_0xd53eb2(0x18e)],this[_0xd53eb2(0x19d)]=_0x4e09fc[_0xd53eb2(0x19d)],this['id']=_0x4e09fc[_0xd53eb2(0x1e3)];}async[_0x10b59d(0x197)](_0x113c7a){const _0x1ca0de=_0x10b59d;try{this[_0x1ca0de(0x1a5)]=new _0x4f0a99({'connector':this[_0x1ca0de(0x18e)],'config':_0x113c7a,'ownerId':this['id']}),this[_0x1ca0de(0x1a5)][_0x1ca0de(0x1da)](..._0x20f1d2)['to'](this),this[_0x1ca0de(0x1a5)][_0x1ca0de(0x197)](),this[_0x1ca0de(0x195)]=new _0x3a5d2b(),this[_0x1ca0de(0x195)][_0x1ca0de(0x1da)](..._0x2f8447)['to'](this),this[_0x1ca0de(0x195)][_0x1ca0de(0x197)]();const _0x44d768=await this[_0x1ca0de(0x19d)][_0x1ca0de(0x1d2)]();this[_0x1ca0de(0x1e5)](_0x1ca0de(0x1a8),{'availableModels':_0x44d768});const _0x271046=await this[_0x1ca0de(0x19d)][_0x1ca0de(0x1c4)](this[_0x1ca0de(0x1aa)][_0x1ca0de(0x1ee)]);_0x271046&&await this[_0x1ca0de(0x1a2)](_0x271046);}catch(_0x3d5e5a){const _0x114c75=new _0x2c60c8(_0x1ca0de(0x1b3),null,{'message':_0x3d5e5a[_0x1ca0de(0x1db)]});_0x114c75[_0x1ca0de(0x192)]=_0x3d5e5a[_0x1ca0de(0x192)],this[_0x1ca0de(0x1e5)](_0x1ca0de(0x1b4),{'error':_0x114c75});}}async[_0x10b59d(0x184)](){const _0x4049=_0x10b59d;if(this[_0x4049(0x1e8)])throw new _0x2c60c8(_0x4049(0x1d6),null,{'conversation':this});if(!this[_0x4049(0x1ea)])throw new _0x2c60c8(_0x4049(0x1ec),null,{'conversation':this});try{const {id:_0x24fcba}=await this[_0x4049(0x18e)][_0x4049(0x1bc)](this['id'],this[_0x4049(0x1aa)][_0x4049(0x1ed)])[_0x4049(0x1e0)]();this['id']=_0x24fcba,this[_0x4049(0x1e8)]=!0x0,this[_0x4049(0x1e5)](_0x4049(0x1bb),{'conversationId':this['id'],'selectedModel':this[_0x4049(0x1ea)]});}catch(_0x5f586a){const _0x230afc=new _0x2c60c8(_0x4049(0x1f1),null,{'message':_0x5f586a[_0x4049(0x1db)]});_0x230afc[_0x4049(0x192)]=_0x5f586a[_0x4049(0x192)],this[_0x4049(0x1e5)](_0x4049(0x1b4),{'error':_0x230afc});}}async[_0x10b59d(0x1b1)](_0x308a48,_0x18bb7a){const _0x4d95c6=_0x10b59d;try{const _0x3a7651=await this[_0x4d95c6(0x18e)][_0x4d95c6(0x1d8)](_0x308a48)[_0x4d95c6(0x1e0)](),_0x498168=await this[_0x4d95c6(0x18e)][_0x4d95c6(0x1c5)](_0x308a48)[_0x4d95c6(0x181)](),_0xf27d77=_0x498168[0x0][_0x4d95c6(0x1e6)];this[_0x4d95c6(0x1e8)]=!0x0,this['id']=_0x3a7651['id'],_0x4d95c6(0x1e2)in _0x3a7651?this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1d3),_0x3a7651[_0x4d95c6(0x1e2)],!0x0):this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1d3),'',!0x0);const _0x386cea=(await this[_0x4d95c6(0x19d)][_0x4d95c6(0x1dc)]())[_0x4d95c6(0x1e7)](_0x147074=>_0x147074['id'][_0x4d95c6(0x1c8)]()===_0xf27d77[_0x4d95c6(0x1c8)]());return this[_0x4d95c6(0x1ea)]=_0x386cea,this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1e1),{'selectedModel':_0x386cea,'isDisabled':!0x0}),await this[_0x4d95c6(0x18b)](_0x498168,_0x18bb7a,_0xf27d77),this[_0x4d95c6(0x1b7)]=void 0x0,this;}catch(_0x206358){const _0x566b11=new _0x2c60c8(_0x4d95c6(0x1c6),null,{'message':_0x206358[_0x4d95c6(0x1db)],'conversationId':_0x308a48});throw _0x566b11[_0x4d95c6(0x192)]=_0x206358[_0x4d95c6(0x192)],this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1b4),{'error':_0x566b11}),_0x566b11;}}async[_0x10b59d(0x18b)](_0x389a6a,_0x3b3374,_0x16e9f7){const _0x2b77cc=_0x10b59d;let _0x54f235;for(const _0x149c7f of _0x389a6a)if(_0x2b77cc(0x19b)===_0x149c7f[_0x2b77cc(0x1be)]){const _0x68c37d=await this[_0x2b77cc(0x1dd)](_0x149c7f),_0x35d076={'isReasoningEnabled':Object[_0x2b77cc(0x1f0)](_0x149c7f[_0x2b77cc(0x1a6)],_0x2b77cc(0x1a9)),'isWebSearchEnabled':Object[_0x2b77cc(0x1f0)](_0x149c7f[_0x2b77cc(0x1a6)],_0x2b77cc(0x1c9))};_0x54f235=this[_0x2b77cc(0x185)]({'userMessage':_0x149c7f[_0x2b77cc(0x194)],'contextItems':_0x68c37d,'capabilities':_0x35d076,'modelId':_0x16e9f7,'quickActionData':_0x149c7f[_0x2b77cc(0x1c0)]?.[_0x2b77cc(0x1ef)]}),this[_0x2b77cc(0x1b7)]=_0x54f235,this[_0x2b77cc(0x1a5)][_0x2b77cc(0x186)](this[_0x2b77cc(0x1b7)][_0x2b77cc(0x199)]);}else{if(_0x2b77cc(0x1c1)===_0x149c7f[_0x2b77cc(0x1be)]&&_0x54f235)for(const _0x25bd47 of _0x149c7f[_0x2b77cc(0x1a1)]){const _0x19143b=_0x2b77cc(0x1f4)===_0x25bd47[_0x2b77cc(0x1ac)]?_0x2b77cc(0x1d0):_0x2b77cc(0x1a7),_0x282310=_0x54f235[_0x2b77cc(0x1df)]()?.[_0x2b77cc(0x1ca)]!==_0x3b3374;_0x54f235[_0x2b77cc(0x1c2)]=_0x54f235[_0x2b77cc(0x1e9)]({'type':_0x19143b,'isDone':!0x0,'interactionId':_0x54f235['id'],'areActionsDisabled':_0x282310}),_0x54f235[_0x2b77cc(0x1c2)][_0x2b77cc(0x196)](_0x25bd47[_0x2b77cc(0x1a1)]);}}}async[_0x10b59d(0x1dd)](_0x4b1b6e){const _0xf98e8f=_0x10b59d,_0x158f69=new Map();if(!_0x4b1b6e[_0xf98e8f(0x1a1)])return _0x158f69;for(const _0xc6bb64 of _0x4b1b6e[_0xf98e8f(0x1a1)]){const _0x2be008=await this[_0xf98e8f(0x1a5)][_0xf98e8f(0x1d7)](_0xc6bb64);_0x2be008&&_0x158f69[_0xf98e8f(0x190)](_0x2be008['id'],_0x2be008);}return _0x158f69;}async[_0x10b59d(0x1c7)]({userMessage:_0x4b37f8,quickActionData:_0x2f4b96}){const _0x3de978=_0x10b59d;if(!this[_0x3de978(0x1e8)])throw new _0x2c60c8(_0x3de978(0x19f),null,{'conversation':this});if(this[_0x3de978(0x1b7)])throw new _0x2c60c8(_0x3de978(0x1ce),null,{'conversation':this});try{const _0x2e0dc1=this[_0x3de978(0x1a5)][_0x3de978(0x1d9)](),_0x41c132=this[_0x3de978(0x195)][_0x3de978(0x1bf)](),_0x346856=this[_0x3de978(0x1ea)]['id'];this[_0x3de978(0x1b7)]=this[_0x3de978(0x185)]({'userMessage':_0x4b37f8,'contextItems':_0x2e0dc1,'capabilities':_0x41c132,'modelId':_0x346856,'quickActionData':_0x2f4b96}),await this[_0x3de978(0x1b7)][_0x3de978(0x184)](),this[_0x3de978(0x1a5)][_0x3de978(0x186)](this[_0x3de978(0x1b7)][_0x3de978(0x199)]);}catch(_0x2c6c90){this[_0x3de978(0x1e5)](_0x3de978(0x1b4),{'interactionId':this[_0x3de978(0x1b7)]?this[_0x3de978(0x1b7)]['id']:void 0x0,'error':_0x2c6c90});}finally{this[_0x3de978(0x1b7)]?.[_0x3de978(0x1f3)](),this[_0x3de978(0x1b7)]=void 0x0;}}[_0x10b59d(0x185)]({userMessage:_0x3e96d5,contextItems:_0x9be780,capabilities:_0xd01c39,modelId:_0x2ac113,quickActionData:_0x2e9473}){const _0x1c4b93=_0x10b59d,_0xe6ea82=new _0x4a0e78({'userMessage':_0x3e96d5,'contextItems':_0x9be780,'capabilities':_0xd01c39,'conversationId':this['id'],'connector':this[_0x1c4b93(0x18e)],'editor':this[_0x1c4b93(0x1aa)][_0x1c4b93(0x1ba)]&&this[_0x1c4b93(0x1aa)][_0x1c4b93(0x1ba)](),'model':_0x2ac113,'quickActionData':_0x2e9473});return _0xe6ea82[_0x1c4b93(0x1da)](..._0x1dbe0e)['to'](this),this[_0x1c4b93(0x187)][_0x1c4b93(0x1d5)](_0xe6ea82),this[_0x1c4b93(0x1e5)](_0x1c4b93(0x1c3),_0xe6ea82),_0xe6ea82;}[_0x10b59d(0x183)](_0x21a9d6){const _0x4670e2=_0x10b59d;return this[_0x4670e2(0x187)][_0x4670e2(0x1e7)](_0x555f8d=>_0x555f8d['id']===_0x21a9d6);}[_0x10b59d(0x1b8)](_0x1eff6a){const _0x4b4406=_0x10b59d,_0x64fa3c=this[_0x4b4406(0x183)](_0x1eff6a);_0x64fa3c&&(_0x64fa3c[_0x4b4406(0x1de)](),this[_0x4b4406(0x187)][_0x4b4406(0x18c)](this[_0x4b4406(0x187)][_0x4b4406(0x1cf)](_0x64fa3c),0x1));}get[_0x10b59d(0x19e)](){const _0x453069=_0x10b59d;return this[_0x453069(0x187)][this[_0x453069(0x187)][_0x453069(0x18f)]-0x1];}[_0x10b59d(0x1bd)](_0x3844a2){const _0x4d9541=_0x10b59d;this[_0x4d9541(0x1a5)][_0x4d9541(0x1bd)](_0x3844a2);}async[_0x10b59d(0x182)]({content:_0x5ec104,version:_0x22c3a4,sessionId:_0x16f783,selections:_0x10de68}){const _0x401ebb=_0x10b59d;await this[_0x401ebb(0x1a5)][_0x401ebb(0x1a4)](_0x5ec104,_0x22c3a4,_0x16f783,_0x10de68);}[_0x10b59d(0x1ae)](){const _0xbe2dd0=_0x10b59d;return this[_0xbe2dd0(0x1b7)]?.[_0xbe2dd0(0x1df)]()?.[_0xbe2dd0(0x1a1)]||'';}[_0x10b59d(0x1b2)](_0x16aa5d){const _0x4b0b64=_0x10b59d;this[_0x4b0b64(0x1a5)][_0x4b0b64(0x1b2)](_0x16aa5d);}[_0x10b59d(0x19c)](){const _0x42d9db=_0x10b59d;this[_0x42d9db(0x1a5)][_0x42d9db(0x19c)]();}[_0x10b59d(0x1eb)](_0x25a1fa){const _0x3cebd1=_0x10b59d;this[_0x3cebd1(0x1a5)][_0x3cebd1(0x1eb)](_0x25a1fa);}[_0x10b59d(0x198)](_0x2caf56){const _0x1137b5=_0x10b59d;this[_0x1137b5(0x1a5)][_0x1137b5(0x198)](_0x2caf56);}[_0x10b59d(0x1e4)](_0x3644cb,_0x2c25d2){const _0xcf97aa=_0x10b59d;this[_0xcf97aa(0x1a5)][_0xcf97aa(0x1e4)](_0x3644cb,_0x2c25d2);}[_0x10b59d(0x1cc)](_0x5540fc,_0x21f806,_0x2f8e7d){const _0xfbec71=_0x10b59d;return this[_0xfbec71(0x1a5)][_0xfbec71(0x1cc)](_0x5540fc,_0x21f806,_0x2f8e7d);}[_0x10b59d(0x1af)](_0x2cb1c8){const _0x1a8501=_0x10b59d;this[_0x1a8501(0x1a5)][_0x1a8501(0x1af)](_0x2cb1c8);}[_0x10b59d(0x1d1)](){const _0x9b2e77=_0x10b59d;this[_0x9b2e77(0x195)][_0x9b2e77(0x1d1)]();}[_0x10b59d(0x1cb)](){const _0x2842b1=_0x10b59d;this[_0x2842b1(0x195)][_0x2842b1(0x1cb)]();}[_0x10b59d(0x1a3)](){const _0x415206=_0x10b59d;return this[_0x415206(0x1a5)][_0x415206(0x1a3)]();}[_0x10b59d(0x19a)](){const _0x54dcba=_0x10b59d;return this[_0x54dcba(0x1a5)][_0x54dcba(0x19a)]();}[_0x10b59d(0x1d4)](){const _0x3f4ba3=_0x10b59d;return this[_0x3f4ba3(0x1a5)][_0x3f4ba3(0x1d4)]();}async[_0x10b59d(0x1a2)](_0x49ac73){const _0x20c863=_0x10b59d;_0x49ac73?!0x1===await this[_0x20c863(0x19d)][_0x20c863(0x193)](_0x49ac73)&&(_0x307623(_0x20c863(0x1b5),{'conversation':this,'model':_0x49ac73}),_0x49ac73=(await this[_0x20c863(0x19d)][_0x20c863(0x1d2)]())[0x0]):(_0x307623(_0x20c863(0x1b9),{'conversation':this}),_0x49ac73=(await this[_0x20c863(0x19d)][_0x20c863(0x1d2)]())[0x0]),_0x49ac73['id']!==this[_0x20c863(0x1ea)]?.['id']&&(this[_0x20c863(0x1ea)]=_0x49ac73,this[_0x20c863(0x195)][_0x20c863(0x1b6)](),this[_0x20c863(0x1e5)](_0x20c863(0x1e1),{'selectedModel':_0x49ac73}));}}
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}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x198813=_0x2b39;(function(_0x4a16a9,_0x3c89a9){var _0x1846a6=_0x2b39,_0x7eb6d0=_0x4a16a9();while(!![]){try{var _0x155542=parseInt(_0x1846a6(0x1ac))/0x1+parseInt(_0x1846a6(0x1b8))/0x2+parseInt(_0x1846a6(0x1af))/0x3*(-parseInt(_0x1846a6(0x1b0))/0x4)+-parseInt(_0x1846a6(0x1b7))/0x5+-parseInt(_0x1846a6(0x1b4))/0x6*(parseInt(_0x1846a6(0x1b9))/0x7)+parseInt(_0x1846a6(0x1b6))/0x8*(-parseInt(_0x1846a6(0x1b2))/0x9)+parseInt(_0x1846a6(0x1bb))/0xa;if(_0x155542===_0x3c89a9)break;else _0x7eb6d0['push'](_0x7eb6d0['shift']());}catch(_0x1ca3bc){_0x7eb6d0['push'](_0x7eb6d0['shift']());}}}(_0x1da2,0x2caed));function _0x2b39(_0x5b13fc,_0x55cdea){var _0x1da281=_0x1da2();return _0x2b39=function(_0x2b391e,_0x5263d0){_0x2b391e=_0x2b391e-0x1ab;var _0x30b5b2=_0x1da281[_0x2b391e];return _0x30b5b2;},_0x2b39(_0x5b13fc,_0x55cdea);}import{AICapabilities as _0x85eb}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x3ac3f6}from'../../aicore/model/aiinteraction.js';function _0x1da2(){var _0x4aea1a=['connector','getDocumentContext','187837uoRPIL','getCapabilitiesRequestData','userMessage','205680WBMFWW','4EKRRKU','contextItems','619002ziEsZc','get','324xFAEvH','queryAssistant','24jbpkID','1755620JYFtHZ','574012SgCwMY','22323hkXcTS','sendRequest','5064020GxFZjb','quickActionData','current-document','mapContextItemsToRequestData','model','conversationId','capabilities'];_0x1da2=function(){return _0x4aea1a;};return _0x1da2();}import{AIChatContext as _0x13de9a}from'./aichatcontext.js';export class AIChatInteraction extends _0x3ac3f6{[_0x198813(0x1ae)];[_0x198813(0x1c0)];[_0x198813(0x1b1)]=new Map();[_0x198813(0x1bf)];[_0x198813(0x1bc)];constructor(_0x1c423d){var _0x12d148=_0x198813;super(_0x1c423d),this[_0x12d148(0x1c0)]=_0x1c423d[_0x12d148(0x1c0)],this[_0x12d148(0x1b1)]=_0x1c423d[_0x12d148(0x1b1)],this[_0x12d148(0x1c1)]=_0x1c423d[_0x12d148(0x1c1)],this[_0x12d148(0x1ae)]=_0x1c423d[_0x12d148(0x1ae)],this[_0x12d148(0x1bf)]=_0x1c423d[_0x12d148(0x1bf)],this[_0x12d148(0x1bc)]=_0x1c423d[_0x12d148(0x1bc)];}async[_0x198813(0x1ba)](){var _0x1526e9=_0x198813;return this[_0x1526e9(0x1c2)][_0x1526e9(0x1b5)]({'message':this[_0x1526e9(0x1ae)],'conversationId':this[_0x1526e9(0x1c0)],'parts':_0x13de9a[_0x1526e9(0x1be)](this[_0x1526e9(0x1b1)]),'capabilities':_0x85eb[_0x1526e9(0x1ad)](this[_0x1526e9(0x1c1)]),'model':this[_0x1526e9(0x1bf)],'quickActionData':this[_0x1526e9(0x1bc)]});}[_0x198813(0x1ab)](){var _0x278366=_0x198813;return this[_0x278366(0x1b1)][_0x278366(0x1b3)](_0x278366(0x1bd));}}
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));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf86c(_0x13711d,_0x13febf){const _0x2175d4=_0x2175();return _0xf86c=function(_0xf86c2,_0x17dbf7){_0xf86c2=_0xf86c2-0xda;let _0x2742ee=_0x2175d4[_0xf86c2];return _0x2742ee;},_0xf86c(_0x13711d,_0x13febf);}const _0xa62ea1=_0xf86c;(function(_0x19c3e4,_0x3284d6){const _0x3eaca3=_0xf86c,_0x470435=_0x19c3e4();while(!![]){try{const _0x319a7e=-parseInt(_0x3eaca3(0xe4))/0x1*(parseInt(_0x3eaca3(0xda))/0x2)+-parseInt(_0x3eaca3(0xe6))/0x3+-parseInt(_0x3eaca3(0xe1))/0x4+-parseInt(_0x3eaca3(0xe7))/0x5+-parseInt(_0x3eaca3(0xe5))/0x6+-parseInt(_0x3eaca3(0xde))/0x7*(parseInt(_0x3eaca3(0xdf))/0x8)+parseInt(_0x3eaca3(0xe2))/0x9;if(_0x319a7e===_0x3284d6)break;else _0x470435['push'](_0x470435['shift']());}catch(_0x5d801a){_0x470435['push'](_0x470435['shift']());}}}(_0x2175,0x54ee1));import{AIModels as _0x265d58}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x265d58{async[_0xa62ea1(0xe3)](){const _0x5a63a7=_0xa62ea1;return(await super[_0x5a63a7(0xe3)]())[_0x5a63a7(0xdb)]((_0x41cbb2,_0x36ab02)=>{const _0x312533=_0x5a63a7,_0x3b356=Object[_0x312533(0xdd)](_0x41cbb2[_0x312533(0xe8)])[_0x312533(0xe0)](_0x58d6cd=>_0x58d6cd[_0x312533(0xe9)])[_0x312533(0xdc)];return Object[_0x312533(0xdd)](_0x36ab02[_0x312533(0xe8)])[_0x312533(0xe0)](_0x4f5666=>_0x4f5666[_0x312533(0xe9)])[_0x312533(0xdc)]-_0x3b356;});}}function _0x2175(){const _0x3d4161=['capabilities','enabled','16TGTBKe','sort','length','values','8351DMrBvH','3800UvvuAt','filter','730792obKhwr','23440365vatEyp','getAll','27578HxtiAL','1356144MjPvSN','1264314YXNlpS','3195765uyHplm'];_0x2175=function(){return _0x3d4161;};return _0x2175();}
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;});}}