@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.2.0

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 (127) 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/aichathistory/aichathistory.js +1 -1
  63. package/src/aichathistory/aichathistorycontroller.js +1 -1
  64. package/src/aichathistory/aichathistoryui.js +1 -1
  65. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  66. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  68. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.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/aireviewchecklist.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  112. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  122. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  124. package/src/aitabs/aitabs.js +1 -1
  125. package/src/aitabs/tabs/aitabsview.js +1 -1
  126. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  127. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eff34=_0x5b39;(function(_0x536b25,_0x40f198){const _0x266aae=_0x5b39,_0xe27935=_0x536b25();while(!![]){try{const _0x243bc6=parseInt(_0x266aae(0xad))/0x1+-parseInt(_0x266aae(0x1e8))/0x2*(parseInt(_0x266aae(0x176))/0x3)+-parseInt(_0x266aae(0x108))/0x4*(-parseInt(_0x266aae(0x151))/0x5)+parseInt(_0x266aae(0x157))/0x6*(-parseInt(_0x266aae(0x1b4))/0x7)+-parseInt(_0x266aae(0x9d))/0x8*(parseInt(_0x266aae(0x1d0))/0x9)+-parseInt(_0x266aae(0x19b))/0xa+parseInt(_0x266aae(0xf6))/0xb*(parseInt(_0x266aae(0xed))/0xc);if(_0x243bc6===_0x40f198)break;else _0xe27935['push'](_0xe27935['shift']());}catch(_0x3303cf){_0xe27935['push'](_0xe27935['shift']());}}}(_0x17db,0x845c1));import{ContextPlugin as _0x2db343,Editor as _0x598e4f}from'ckeditor5/src/core.js';import{CKEditorError as _0x28a58b,logError as _0x283934,scrollViewportToShowTarget as _0x2ddcb3,uid as _0x3728dc}from'ckeditor5/src/utils.js';import{AIConnector as _0x1885fc}from'../aicore/aiconnector.js';import{AITabs as _0x9c5646}from'../aitabs/aitabs.js';import{AIChatConversation as _0x33dcbb}from'./model/aichatconversation.js';import{getTranslation as _0xf28a5b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x447b84}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x57839b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x5478c2}from'./model/aichatmodels.js';import{getEditorFromContext as _0x5226e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x25a5f9,DATA_ID_MODEL_ATTRIBUTE as _0x336395}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x32446d,getOperationsFromReply as _0x396b8d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51024a,getMinimalSelection as _0x4307ed}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x17db(){const _0x4c99e7=['createConversation','loadSourceResources','removeContextItem','data-id','AI_CHAT_GENERIC_ERROR','_aiChatModels','replyCreated','context','version','_updateRatings','message','anchorId','chat','text-delta','map','contextItemAdded','dislike','uploadProgressChanged','like','toViewRange','partIndex','upsertAIChatRating','applyOperation','resetMessageInput','load','isPremiumPlugin','sources','type','getRoot','addResourceToContext','full','ai-chat-conversation-start-failed','selectedModel','indexes','getOperations','alignToTop','init','ai-chat-file-upload-failed','showDiff','mapper','505ChZNjn','AI_CHAT_UNABLE_TO_START_CONVERSATION','_showConversationHistory','add','lastInteraction','setIsUploadInProgress','198996cSLVmg','getFirstRange','updateCapabilities','setConversationTitle','_balloonShowDiff','_removeFromContext','addSelectionToChatContext','_aiEditing','remove','locale','replyId','applySuggestion','replyContentUpdated','addFeedItemAIReply','conversationInitialized','undo','updateFeedItemAIReplySources','_setIsMaximized','updateCurrentDocumentInContext','config','createPositionAt','open','_aiConnector','handleRemovedConversation','stopInteraction','outdated','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','children','sourceResourcesLoaded','isLoading','36390wNIASC','Showing\x20conversation\x20history...','setConversationContext','model','$graveyard','sourcePosition','path','getContentParts','interactionDestroyed','isOfficialPlugin','unshift','createPositionFromPath','requires','resize','_insertSuggestion','createRange','editors','getChild','cloneNode','addContextOptionsChanged','current-document','interactionFinished','showPrevious','abortPromptStream','addFeedItemUserMessage','setModel','getChildren','_openBalloonFor','populateSourceResourceBalloon','ai-conversation-','getPath','removed','filter','listenTo','resizeTabs','push','setContextItemLoading','2770320ejjeFB','isDocumentOperation','AIChatUI','changes','changeGroups','startConversation','has','messageId','revert','updateConversationTitle','error','finishInteraction','ai-chat-controller-no-active-conversation','close','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','forEach','start','getMarkersGroup','activeConversation','DocumentCompare','findIndex','capabilitiesUpdated','updateFeedItemAIReplySuggestionContent','ai-no-track-changes','_previewedChangeGroup','14iOzLgW','find','_aiChatUi','_applySuggestion','AI_CHAT_RESOURCE_LOAD_FAILED','getDocumentContext','options','scrollFeedToSuggestion','nextSibling','hasChanges','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNTITLED_CONVERSATION','plugins','_flushLastInteractionUI','ai-chat-context-invalid-data','setFeedItemRenderingStrategy','isOpen','sourceId','Disliked\x20response','addFeedItemError','getInteraction','isCurrentDocumentInConversation','streaming','delete','query','isUploadInProgress','_toggleReasoning','toggleWebSearch','18KsgweY','contextSent','Failed\x20to\x20load\x20conversation','node','AIEditing','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','closeSourceResourceBalloon','indexOf','getReply','addUrlToContext','removeSelectionFromChatContext','index','addFeedItemAISuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','activateTab','mouseLeaveSuggestion','AIConnector','addFeedItemStaticMessage','AITabs','data','TrackChanges','sendMessage','addFilesToContext','selectModel','24CfzBFC','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-source-resources-load-failed','focusPromptInput','getTransformedByOperation','history','setSelectedModel','webSearchFinished','selection','_batchToChanges','startsWith','_applyOperationsAsSuggestions','replyChangeGroupStateUpdated','resourceStateChanged','getGroupId','collaboration.channelId','_startConversationSafely','interactionCreated','range','rootName','_handleUIUserMessage','updateFeedItemAIReplyContent','4196840pJNFiw','showChangeInText','from','enableControls','_getDocumentRangeForReplyChanges','mouseOverSuggestion','addCurrentDocumentToContext','replies','resourceId','ai.chat.models.displayedModels','ready','view','removeSelectionFromContext','disableControls','batch','state','710302KzSLed','ai-request-aborted','_removeAISelectionMarkers','editing','howMany','loadConversation','pluginName','rejected','isStarted','toString','root','getSelectionText','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','insertSuggestion','getChildAtOffset','redo','documentContextContent','stop','ai-chat-controller-mouse-over','updateContent','pending','isCurrentDocumentInContext','updateFeedItemAIReplySuggestionPartState','resources','ai.chat.context','_logError','uiId','TrackChangesEditing','viewRangeToDom','removeFromContext','clearPendingContextUI','handleUserInteraction','showNext','markers','addFileToContext','toggleSuggestionDisplayMode','contextItems','ai.availableReplyActions','resetConversationTitle','afterInit','webSearchStarted','main','toggleReasoning','isDisabled','getDocumentData','setIsMaximized','dialogClosed','addOperation','domConverter','getDiff','reasoningFinished','_scrollToSuggestionRange','hideFakeVisualSelection','resizedTabs','isInContext','uid','showFakeVisualSelection','_toggleWebSearch','Undo','sendUserMessage','addFeedInteractionHeader','reasoningStarted','ai-chat-url-upload-failed','interactionId','1764408ZyIggs','source','rejectSuggestion','ai-chat-conversation-init-failed','log','setChangeGroupState','modelSelected','addContextItem','getAttribute','44puFTxG','split','new','_integrateEditor','contextItem','AIChatController','_updateReplyContent','AI_BALLOON_HEADER_TITLE','getInteractionAndReplyById','resource','modification-delta','ai-chat-missing-channel-id','addDocumentToContext','slice','toggleLoadingSkeleton','removeMarker','_handleStartConversation','clearConversationContextUI','30964OonTaX','end','length','_stopLastInteraction','contextItemRemoved','accepted','Liked\x20response','get','change','contextItemLoadingEnded','setLoadingMessage','baseVersion','getRanges','content','startAutoScroll','ai.chat.models.defaultModelId','parse','static','removeFeedInteraction','stopListening','updateResourceState','maxOffset','_createFromRanges','addSelectionToContext','setAddContextOptions','document','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','marker','isModelAvailable','interactionStarted','commands','startInteraction','set'];_0x17db=function(){return _0x4c99e7;};return _0x17db();}import{ModelRange as _0x5aebe5,_DetachOperation as _0x4ebe0e}from'ckeditor5/src/engine.js';import{findOne as _0xe31386,getAttribute as _0x4ed15a,serialize as _0x394252,Document as _0xc54126,findByAttribute as _0x2102a5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x57825b}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x1ee013}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x15895c}from'../aiballoon/aiballoon.js';function _0x5b39(_0x1d7405,_0x370131){const _0x17db48=_0x17db();return _0x5b39=function(_0x5b398d,_0x547d49){_0x5b398d=_0x5b398d-0x8c;let _0x2ccb98=_0x17db48[_0x5b398d];return _0x2ccb98;},_0x5b39(_0x1d7405,_0x370131);}export class AIChatController extends _0x2db343{[_0x3eff34(0x15e)];[_0x3eff34(0x16d)];[_0x3eff34(0x1b6)];[_0x3eff34(0x12e)];[_0x3eff34(0x90)]=new Map();[_0x3eff34(0x1b3)]=null;[_0x3eff34(0x15b)]=!0x1;static get[_0x3eff34(0x182)](){return[_0x1885fc,_0x15895c,_0x25a5f9];}static get[_0x3eff34(0xb3)](){const _0x3f50bf=_0x3eff34;return _0x3f50bf(0xfb);}static get[_0x3eff34(0x17f)](){return!0x0;}static get[_0x3eff34(0x142)](){return!0x0;}[_0x3eff34(0x14d)](){const _0xe50db7=_0x3eff34;this[_0xe50db7(0x16d)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e0)),this[_0xe50db7(0x1b6)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x19d)),this[_0xe50db7(0x15e)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1d4)),this[_0xe50db7(0x12e)]=new _0x5478c2({'connector':this[_0xe50db7(0x16d)],'availableModels':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0xa6)),'defaultModelId':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0x117))});const _0x7c87c8=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e2));this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1a0),()=>{const _0x6e06f1=_0xe50db7;this[_0x6e06f1(0x97)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xe8),(_0x395bf2,_0x329df1)=>{const _0x11a9fb=_0xe50db7;this[_0x11a9fb(0x9b)]({'userMessage':_0x329df1});}),this[_0xe50db7(0x197)](_0x7c87c8,_0xe50db7(0xe2),(_0x1984d4,_0x1d34e7)=>{const _0x499b5b=_0xe50db7;this[_0x499b5b(0x168)](_0x1d34e7);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x198),()=>{const _0x2e773f=_0xe50db7;_0x7c87c8[_0x2e773f(0x183)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x18d),async()=>{const _0x1b67b6=_0xe50db7;await this[_0x1b67b6(0x10b)](),await this[_0x1b67b6(0x1c1)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x102),()=>{const _0x416e3b=_0xe50db7;this[_0x416e3b(0x1ad)]?.[_0x416e3b(0xa3)](_0xf28a5b(this[_0x416e3b(0x130)][_0x416e3b(0x160)],_0x416e3b(0x1a9)));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xcf),(_0x22e9c9,_0x55c81a)=>{const _0x3246e7=_0xe50db7;this[_0x3246e7(0x1ad)]?.[_0x3246e7(0x1e6)](Array[_0x3246e7(0x9f)](_0x55c81a));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1d9),(_0x4a3db4,_0x160553)=>{const _0xc528a4=_0xe50db7;this[_0xc528a4(0x1ad)]?.[_0xc528a4(0x1d9)](_0x160553);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x146),(_0x3d0a31,_0x1a53e7)=>{const _0x266de3=_0xe50db7;this[_0x266de3(0x1ad)]?.[_0x266de3(0x146)](_0x1a53e7[_0x266de3(0xee)],_0x1a53e7[_0x266de3(0xff)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12b),(_0x414c83,_0x1a734b)=>{const _0x4537ef=_0xe50db7;this[_0x4537ef(0x15c)](_0x1a734b);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12a),(_0x13c4d9,_0x598729)=>{const _0x47f3f6=_0xe50db7;this[_0x47f3f6(0x1ad)]?.[_0x47f3f6(0x12a)](_0x598729[_0x47f3f6(0x1c5)],_0x598729[_0x47f3f6(0x1cc)],_0x598729[_0x47f3f6(0xe4)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1cf),()=>{const _0x2963bf=_0xe50db7;this[_0x2963bf(0xe6)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd7),()=>{const _0x4962d8=_0xe50db7;this[_0x4962d8(0x1ce)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1e7),(_0x2f5454,_0x826e4e)=>{const _0x55f4c2=_0xe50db7;this[_0x55f4c2(0x1ad)]?.[_0x55f4c2(0x18f)](_0x826e4e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x13b),(_0x777d64,{replyId:_0x4b5b0e})=>{const _0x5f3ca9=_0xe50db7;console[_0x5f3ca9(0xf1)](_0x5f3ca9(0x10e),_0x4b5b0e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x139),(_0x1eab10,{replyId:_0x1e4fc5})=>{const _0x132dad=_0xe50db7;console[_0x132dad(0xf1)](_0x132dad(0x1c6),_0x1e4fc5);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xba),(_0x25eca3,_0x1c6078)=>{const _0x1f3199=_0xe50db7;this[_0x1f3199(0x130)][_0x1f3199(0x1c0)][_0x1f3199(0x10f)](_0x15895c)[_0x1f3199(0x1a8)](),this[_0x1f3199(0x184)](_0x1c6078);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x9e),(_0x2ebb82,{replyId:_0x22fe1b,partIndex:_0x2666d9})=>{const _0x40b149=_0xe50db7;this[_0x40b149(0x15b)]=this[_0x40b149(0x1b6)][_0x40b149(0x14f)],this[_0x40b149(0x191)](_0x22fe1b,_0x2666d9);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xa2),(_0x12735c,{replyId:_0x30be5e,partIndex:_0x698001})=>{const _0x350b5a=_0xe50db7,_0x273a85=this[_0x350b5a(0xa1)](_0x30be5e,_0x698001);_0x273a85&&_0x350b5a(0x17a)!=_0x273a85[_0x350b5a(0x99)][_0x350b5a(0xb7)][_0x350b5a(0x9a)]&&this[_0x350b5a(0x15e)][_0x350b5a(0xe5)]([_0x273a85[_0x350b5a(0x99)]],_0x350b5a(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1df),()=>{const _0x28883b=_0xe50db7;this[_0x28883b(0x15e)][_0x28883b(0xe1)](_0x28883b(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x162),(_0x1c1420,_0x536037)=>{const _0x522c6d=_0xe50db7;this[_0x522c6d(0x130)][_0x522c6d(0x1c0)][_0x522c6d(0x10f)](_0x15895c)[_0x522c6d(0x1a8)](),this[_0x522c6d(0x1b7)](_0x536037);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd0),async(_0x4bd625,{replyId:_0x280a16,showDiff:_0x235f38})=>{const _0x3fa501=_0xe50db7,{reply:_0x41aac4}=this[_0x3fa501(0xfe)](_0x280a16),_0x1fa0d3=_0x41aac4[_0x3fa501(0x17d)]({'showDiff':_0x235f38});await this[_0x3fa501(0x1b6)][_0x3fa501(0x1b1)]({'id':_0x41aac4['id'],'parts':_0x1fa0d3,'renderingStrategy':_0x3fa501(0x119)});}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xef),(_0x20914e,{replyId:_0x2f1d91,partIndex:_0x4b334b})=>{const _0x43d8d2=_0xe50db7;this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x161)]==_0x2f1d91&&this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x13d)]==_0x4b334b&&this[_0x43d8d2(0x130)][_0x43d8d2(0x1c0)][_0x43d8d2(0x10f)](_0x15895c)[_0x43d8d2(0x1a8)]();const {reply:_0x5a6085}=this[_0x43d8d2(0xfe)](_0x2f1d91);_0x5a6085[_0x43d8d2(0xf2)](_0x4b334b,_0x43d8d2(0xb4)),this[_0x43d8d2(0x15e)][_0x43d8d2(0xe1)](_0x43d8d2(0xbf));});}async[_0x3eff34(0xd4)](){const _0x40c715=_0x3eff34;this[_0x40c715(0x130)]instanceof _0x598e4f?this[_0x40c715(0xf9)](this[_0x40c715(0x130)]):this[_0x40c715(0x197)](this[_0x40c715(0x130)][_0x40c715(0x186)],_0x40c715(0x154),(_0x54c836,_0x5e0426)=>{const _0x112d2b=_0x40c715;_0x5e0426['on'](_0x112d2b(0xa7),()=>{const _0x1b86dd=_0x112d2b;this[_0x1b86dd(0xf9)](_0x5e0426);});}),await this[_0x40c715(0x97)]();}[_0x3eff34(0x184)](_0x2662cd){const _0x407fab=_0x3eff34,_0x8ddf77=_0x5226e4(this[_0x407fab(0x130)]);if(!_0x8ddf77[_0x407fab(0x1c0)][_0x407fab(0x1a1)](_0x407fab(0x1e4)))throw new _0x28a58b(_0x407fab(0x1b2),null);const _0x23b812=this[_0x407fab(0x130)][_0x407fab(0x1c0)][_0x407fab(0x10f)](_0x407fab(0x1ae)),{reply:_0xee138f,interaction:_0xb3c894}=this[_0x407fab(0xfe)](_0x2662cd[_0x407fab(0x161)]),_0x27a8e=this[_0x407fab(0xa1)](_0x2662cd[_0x407fab(0x161)],_0x2662cd[_0x407fab(0x13d)]),_0x519fe9=void 0x0!==_0x2662cd[_0x407fab(0x13d)]?[_0xee138f[_0x407fab(0x19f)][_0x2662cd[_0x407fab(0x13d)]]]:_0xee138f[_0x407fab(0x19f)][_0x407fab(0x196)](_0x33eb8c=>_0x407fab(0xc1)==_0x33eb8c[_0x407fab(0xac)]),_0x54a94a=_0x519fe9[_0x407fab(0x137)](_0x3d736d=>_0xee138f[_0x407fab(0x19f)][_0x407fab(0x1d7)](_0x3d736d));if(!_0x27a8e||_0x407fab(0x17a)==_0x27a8e[_0x407fab(0x99)][_0x407fab(0xb7)][_0x407fab(0x9a)])return void _0x54a94a[_0x407fab(0x1aa)](_0xf90db6=>_0xee138f[_0x407fab(0xf2)](_0xf90db6,_0x407fab(0x170)));_0x54a94a[_0x407fab(0x1aa)](_0x3c7059=>_0xee138f[_0x407fab(0xf2)](_0x3c7059,_0x407fab(0x10d)));const _0x3543b4=_0x396b8d({'editor':_0x8ddf77,'reply':_0xee138f,'interaction':_0xb3c894,'groups':_0x519fe9,'transform':!0x0,'documentCompare':_0x23b812,'documentCompareOptions':{'anchor':_0x407fab(0xd6),'markDeletions':!0x0}});let _0x3f5601;_0x27a8e&&this[_0x407fab(0xe0)](_0x27a8e[_0x407fab(0x99)]),_0x8ddf77[_0x407fab(0x179)][_0x407fab(0x110)](_0x55b92b=>{const _0x3577eb=_0x407fab;_0x3f5601=_0x55b92b[_0x3577eb(0xab)],_0x8ddf77[_0x3577eb(0x1c0)][_0x3577eb(0x10f)](_0x3577eb(0xc8))[_0x3577eb(0x92)](_0x3543b4),this[_0x3577eb(0x15e)][_0x3577eb(0xe1)](_0x3577eb(0xbf));}),this[_0x407fab(0x90)][_0x407fab(0x128)](_0x3f5601,{'interactionId':_0xb3c894['id'],'replyId':_0xee138f['id'],'indexes':_0x54a94a[_0x407fab(0x103)]()}),this[_0x407fab(0x132)](_0xee138f);}[_0x3eff34(0x1b7)](_0x31861e){const _0x17e854=_0x3eff34,_0x665495=_0x5226e4(this[_0x17e854(0x130)]),_0x4b7815=this[_0x17e854(0x130)][_0x17e854(0x1c0)][_0x17e854(0x10f)](_0x25a5f9),{reply:_0x4192eb,interaction:_0x4ac77f}=this[_0x17e854(0xfe)](_0x31861e[_0x17e854(0x161)]),_0x2caed0=this[_0x17e854(0xa1)](_0x31861e[_0x17e854(0x161)],_0x31861e[_0x17e854(0x13d)]),_0x1eeb1e=void 0x0!==_0x31861e[_0x17e854(0x13d)]?[_0x4192eb[_0x17e854(0x19f)][_0x31861e[_0x17e854(0x13d)]]]:_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x196)](_0x4d8a84=>_0x17e854(0xc1)==_0x4d8a84[_0x17e854(0xac)]),_0x17d54b=_0x1eeb1e[_0x17e854(0x137)](_0x238feb=>_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x1d7)](_0x238feb));if(!_0x2caed0||_0x17e854(0x17a)==_0x2caed0[_0x17e854(0x99)][_0x17e854(0xb7)][_0x17e854(0x9a)])return void _0x17d54b[_0x17e854(0x1aa)](_0x6f2296=>_0x4192eb[_0x17e854(0xf2)](_0x6f2296,_0x17e854(0x170)));_0x17d54b[_0x17e854(0x1aa)](_0x3f51b3=>_0x4192eb[_0x17e854(0xf2)](_0x3f51b3,_0x17e854(0x10d)));const _0x3b123e=_0x396b8d({'editor':_0x665495,'reply':_0x4192eb,'interaction':_0x4ac77f,'groups':_0x1eeb1e,'transform':!0x0,'documentCompare':_0x4b7815,'documentCompareOptions':{'anchor':_0x17e854(0xd6),'markDeletions':!0x1}});let _0x4ea5cf;_0x2caed0&&this[_0x17e854(0xe0)](_0x2caed0[_0x17e854(0x99)]),_0x665495[_0x17e854(0x179)][_0x17e854(0x110)](_0x3595c0=>{const _0x121218=_0x17e854;_0x4ea5cf=_0x3595c0[_0x121218(0xab)];for(const _0x275fb2 of _0x3b123e)_0x275fb2[_0x121218(0x113)]=_0x665495[_0x121218(0x179)][_0x121218(0x121)][_0x121218(0x131)],_0x32446d(_0x665495,_0x275fb2),_0x3595c0[_0x121218(0xab)][_0x121218(0xdc)](_0x275fb2),_0x665495[_0x121218(0x179)][_0x121218(0x13f)](_0x275fb2);}),this[_0x17e854(0x90)][_0x17e854(0x128)](_0x4ea5cf,{'interactionId':_0x4ac77f['id'],'replyId':_0x4192eb['id'],'indexes':_0x17d54b[_0x17e854(0x103)]()}),this[_0x17e854(0x132)](_0x4192eb);}[_0x3eff34(0x191)](_0x247e7c,_0x15952e){const _0x33d9af=_0x3eff34,_0x58d38d=_0x5226e4(this[_0x33d9af(0x130)]),_0x24e94f=this[_0x33d9af(0xa1)](_0x247e7c,_0x15952e),_0x5b4fdd=this[_0x33d9af(0x130)][_0x33d9af(0x1c0)][_0x33d9af(0x10f)](_0x15895c);if(!_0x24e94f)return void _0x5b4fdd[_0x33d9af(0x1a8)]();const {range:_0x197429,currentIndex:_0x467123}=_0x24e94f;if(_0x33d9af(0x17a)==_0x197429[_0x33d9af(0xb7)][_0x33d9af(0x9a)]){const {reply:_0x497ff2}=this[_0x33d9af(0xfe)](_0x247e7c);return _0x497ff2[_0x33d9af(0xf2)](_0x467123,_0x33d9af(0x170)),void _0x5b4fdd[_0x33d9af(0x1a8)]();}if(this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x161)]==_0x247e7c&&this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x13d)]==_0x467123)return;this[_0x33d9af(0x11b)](_0x5b4fdd),this[_0x33d9af(0x1b3)]={'replyId':_0x247e7c,'partIndex':_0x467123};let _0x4ff260=_0x58d38d[_0x33d9af(0x16a)][_0x33d9af(0x10f)](_0x33d9af(0xd2))||[..._0x57839b];_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4))||(_0x4ff260=_0x4ff260[_0x33d9af(0x196)](_0x116175=>_0x33d9af(0xba)!=_0x116175));const _0x301838=new _0x1ee013(_0x58d38d[_0x33d9af(0x160)],{'showDiff':this[_0x33d9af(0x15b)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x33d9af(0x147)},'hideHeader':!0x0,'availableActions':_0x4ff260});this[_0x33d9af(0x11b)](_0x301838);const {reply:_0x197a7b}=this[_0x33d9af(0xfe)](_0x247e7c),_0x1fd030=_0x197a7b[_0x33d9af(0x17d)]({'showDiff':this[_0x33d9af(0x15b)]})[_0x33d9af(0x196)](_0x477f47=>_0x477f47[_0x33d9af(0x1bd)]),_0x48bc1b=_0x1fd030[_0x33d9af(0x1af)](_0x330099=>_0x330099[_0x33d9af(0x1db)]==_0x467123);if(-0x1==_0x48bc1b)return;const _0x22c373=_0x1fd030[_0x48bc1b],_0x4dc57e=_0x1fd030['at']((_0x48bc1b-0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)],_0x32b6da=_0x1fd030['at']((_0x48bc1b+0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)];_0x301838[_0x33d9af(0xc0)]({'parts':[_0x22c373],'renderingStrategy':_0x33d9af(0x119)});const _0x48c63c=_0x467123!==_0x4dc57e;this[_0x33d9af(0xe0)](_0x197429,!0x0),_0x5b4fdd[_0x33d9af(0x16c)]({'index':_0x467123,'title':_0xf28a5b(this[_0x33d9af(0x130)][_0x33d9af(0x160)],_0x33d9af(0xfd),(_0x48bc1b+0x1)[_0x33d9af(0xb6)]()),'icon':_0x57825b,'mainView':_0x301838,'showRotator':_0x48c63c,'showApplyButton':!0x0,'showSuggestButton':_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4)),'ranges':[_0x197429]}),this[_0x33d9af(0x1b6)][_0x33d9af(0x1bb)](_0x247e7c,_0x467123),this[_0x33d9af(0x197)](_0x301838,_0x33d9af(0xd0),(_0x3772e7,{showDiff:_0x399c4e})=>{const _0x44b66e=_0x33d9af;this[_0x44b66e(0x15b)]=_0x399c4e;const {reply:_0x13b7ca}=this[_0x44b66e(0xfe)](_0x247e7c),_0x5f31cc=_0x13b7ca[_0x44b66e(0x17d)]({'showDiff':_0x399c4e,'groupIndex':_0x467123});_0x301838[_0x44b66e(0xc0)]({'parts':_0x5f31cc,'renderingStrategy':_0x44b66e(0x119)});}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x162),()=>{const _0x2fbf00=_0x33d9af;this[_0x2fbf00(0x1b7)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x2fbf00(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x2fbf00(0x1a8)]();}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xba),()=>{const _0x44b970=_0x33d9af;this[_0x44b970(0x184)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x44b970(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x44b970(0x1a8)]();}),_0x48c63c&&(this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xcd),()=>{const _0x41d416=_0x33d9af;this[_0x41d416(0x191)](_0x247e7c,_0x32b6da);}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x18c),()=>{const _0x19e045=_0x33d9af;this[_0x19e045(0x191)](_0x247e7c,_0x4dc57e);})),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xdb),()=>{const _0x12b166=_0x33d9af;this[_0x12b166(0x11b)](_0x5b4fdd),this[_0x12b166(0x11b)](_0x301838),this[_0x12b166(0x1b3)]=null;});}[_0x3eff34(0xa1)](_0x51a1b4,_0x464bab){const _0x3befd8=_0x3eff34,_0x2a01c5=_0x5226e4(this[_0x3befd8(0x130)]),{reply:_0x57a614,interaction:_0x4da4c7}=this[_0x3befd8(0xfe)](_0x51a1b4),_0x400097=_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x196)](_0x47cd9f=>_0x3befd8(0xc1)==_0x47cd9f[_0x3befd8(0xac)]),_0x5d2629=_0x400097[_0x3befd8(0x137)](_0x22ff03=>_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x1d7)](_0x22ff03));void 0x0===_0x464bab&&(_0x464bab=_0x5d2629[0x0]);const _0x57784e=_0x5d2629[_0x3befd8(0x1d7)](_0x464bab);if(-0x1==_0x57784e)return null;const _0x549c8a=_0x400097[_0x57784e],_0x47f2c4=new _0xc54126([]),_0x1b95fc=new _0xc54126([]);for(const _0x2a7b2e of _0x549c8a[_0x3befd8(0x19e)])if(_0x3befd8(0x195)!=_0x2a7b2e[_0x3befd8(0x144)]&&_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x2a7b2e[_0x3befd8(0x1d3)][_0x3befd8(0x188)](!0x0)),_0x3befd8(0xf8)!=_0x2a7b2e[_0x3befd8(0x144)]){const _0x1b9dea=_0xe31386(_0x5f04e6=>_0x4ed15a(_0x5f04e6,_0x3befd8(0x12c))==_0x2a7b2e['id'],_0x57a614[_0x3befd8(0xbd)],!0x0);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x1b9dea[_0x3befd8(0x188)](!0x0));}if(0x0==_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x10a)]){if(_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)]){const _0x57a03e=_0x2102a5(_0x3befd8(0x12c),_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)],_0x57a614[_0x3befd8(0xbd)]);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x57a03e[_0x3befd8(0x1bc)]&&(_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)));}else{const _0x4e3783=_0x57a614[_0x3befd8(0xbd)][_0x3befd8(0x173)][0x0];if(!_0x4e3783)return null;_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0));}}const _0x1fc74e=_0x4da4c7[_0x3befd8(0x1b9)](),_0x3268cf=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x1fc74e[_0x3befd8(0x115)]),_0x4735e9=_0x394252(_0x47f2c4),_0x545825=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x1e05b8=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x6f8584=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x16b)](_0x545825,0x0),_0x2333e8=_0x394252(_0x1b95fc),_0x4af19b={'anchor':_0x6f8584,'markDeletions':!0x1},_0x308eeb=_0x2a01c5[_0x3befd8(0x1c0)][_0x3befd8(0x10f)](_0x25a5f9)[_0x3befd8(0xde)](_0x4735e9,_0x2333e8,_0x4af19b)[_0x3befd8(0x14b)]();if(!_0x308eeb[_0x3befd8(0x10a)])return null;_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x110)](_0x5099d6=>{const _0x1eb2e4=_0x3befd8;for(const _0x3b5f49 of _0x308eeb)if(_0x1eb2e4(0x15f)==_0x3b5f49[_0x1eb2e4(0x144)]){const _0x4d9b95=_0x3b5f49[_0x1eb2e4(0x17b)],_0x24b1e2=_0x3b5f49[_0x1eb2e4(0xb1)],_0x3f0689=new _0x4ebe0e(_0x4d9b95,_0x24b1e2);_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3f0689),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3f0689);}else _0x1eb2e4(0x123)!==_0x3b5f49[_0x1eb2e4(0x144)]&&(_0x3b5f49[_0x1eb2e4(0x113)]=null,_0x3b5f49[_0x1eb2e4(0x19c)]=!0x1,_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3b5f49),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3b5f49));});const _0x26aec8=_0x4307ed(_0x2a01c5,_0x308eeb,_0x545825);_0x51024a(_0x2a01c5[_0x3befd8(0x179)],_0x26aec8);const _0x201e69=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x2670ee=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x5ccbfe=[];let _0x4037c1=_0x545825,_0x36bf85=_0x1e05b8;for(let _0x19a143=0x0;_0x19a143<_0x2670ee[_0x3befd8(0x10a)];_0x19a143++){const _0x46470a=_0x4037c1[_0x3befd8(0x11d)]-_0x2670ee[_0x19a143];_0x5ccbfe[_0x19a143]=_0x36bf85[_0x3befd8(0x11d)]-_0x46470a,_0x4037c1=_0x4037c1[_0x3befd8(0xbb)](_0x2670ee[_0x19a143]),_0x36bf85=_0x36bf85[_0x3befd8(0xbb)](_0x5ccbfe[_0x19a143]);}const _0xaa03d6=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x201e69),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x5ccbfe)),_0x4a7be8=_0x1e05b8[_0x3befd8(0x187)](0x0)[_0x3befd8(0xf5)](_0x336395),_0x4882cd=Array[_0x3befd8(0x9f)](_0x3268cf[_0x3befd8(0x190)]())[_0x3befd8(0x1b5)](_0x3c3a28=>_0x3c3a28[_0x3befd8(0xf5)](_0x336395)==_0x4a7be8)[_0x3befd8(0x194)](),_0x4aebe4=_0xaa03d6[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x23df3a=_0xaa03d6[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)]();_0x4aebe4[0x0]=_0x4882cd[0x0]+_0x4aebe4[0x0],_0x23df3a[0x0]=_0x4882cd[0x0]+_0x23df3a[0x0];let _0x441c2d=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x4aebe4),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x23df3a));const _0x1f9e58=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x8c)][_0x3befd8(0x14b)](_0x1fc74e[_0x3befd8(0x131)]);for(const _0x436778 of _0x1f9e58)_0x441c2d=_0x5aebe5[_0x3befd8(0x11e)](_0x441c2d[_0x3befd8(0x1ec)](_0x436778));return{'range':_0x441c2d,'currentIndex':_0x464bab};}[_0x3eff34(0xf9)](_0x12453c){const _0x84acd6=_0x3eff34;if(!_0x12453c[_0x84acd6(0x1c0)][_0x84acd6(0x1a1)](_0x84acd6(0xe7)))return;const _0x34c53a=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0x166)),_0x2d9f30=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0xbc));this[_0x84acd6(0x197)](_0x34c53a,_0x84acd6(0x1a3),(_0xb84d5d,_0x1be876,_0x175c6d)=>{const _0x3d1a27=_0x84acd6,_0x3bfe8a=this[_0x3d1a27(0x90)][_0x3d1a27(0x10f)](_0x1be876);if(!_0x3bfe8a)return;const _0x38e967=this[_0x3d1a27(0x1ad)][_0x3d1a27(0x1c8)](_0x3bfe8a[_0x3d1a27(0xec)])[_0x3d1a27(0x1d8)](_0x3bfe8a[_0x3d1a27(0x161)]);_0x3bfe8a[_0x3d1a27(0x14a)][_0x3d1a27(0x1aa)](_0x283372=>_0x38e967[_0x3d1a27(0xf2)](_0x283372,_0x3d1a27(0xc1))),this[_0x3d1a27(0x90)][_0x3d1a27(0x1cb)](_0x1be876),this[_0x3d1a27(0x90)][_0x3d1a27(0x128)](_0x175c6d,_0x3bfe8a);}),this[_0x84acd6(0x197)](_0x2d9f30,_0x84acd6(0x1a3),(_0x526c09,_0x225b94,_0x23d72b)=>{const _0x126d77=_0x84acd6,_0xa65c2e=this[_0x126d77(0x90)][_0x126d77(0x10f)](_0x225b94);if(!_0xa65c2e)return;const _0x289af2=this[_0x126d77(0x1ad)][_0x126d77(0x1c8)](_0xa65c2e[_0x126d77(0xec)])[_0x126d77(0x1d8)](_0xa65c2e[_0x126d77(0x161)]);_0xa65c2e[_0x126d77(0x14a)][_0x126d77(0x1aa)](_0x5a9845=>_0x289af2[_0x126d77(0xf2)](_0x5a9845,_0x126d77(0x10d))),this[_0x126d77(0x90)][_0x126d77(0x1cb)](_0x225b94),this[_0x126d77(0x90)][_0x126d77(0x128)](_0x23d72b,_0xa65c2e);});}async[_0x3eff34(0xb2)](_0x902aca){const _0x5c0837=_0x3eff34;this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x15895c)[_0x5c0837(0x1a8)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x119)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x0),await this[_0x5c0837(0x10b)]();try{const _0x2c48b6=this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x9c5646);this[_0x5c0837(0x1a4)]('\x20'),_0x2c48b6[_0x5c0837(0xa8)][_0x5c0837(0x1de)](_0x5c0837(0x135)),await this[_0x5c0837(0x97)](_0x902aca);const {sessionId:_0x2879e5}=this[_0x5c0837(0x15e)][_0x5c0837(0xd9)]();await this[_0x5c0837(0x1ad)][_0x5c0837(0x141)](_0x902aca,_0x2879e5),this[_0x5c0837(0x1ad)][_0x5c0837(0x1c9)]()&&this[_0x5c0837(0x1ad)][_0x5c0837(0xa3)](_0xf28a5b(this[_0x5c0837(0x130)][_0x5c0837(0x160)],_0x5c0837(0x1a9)));}catch(_0x1509e9){console[_0x5c0837(0x1a5)](_0x5c0837(0x1d2),_0x1509e9);}finally{this[_0x5c0837(0x1b6)][_0x5c0837(0x116)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x1ca)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x1);}}[_0x3eff34(0x16e)](_0x5cff5c){const _0x5f178e=_0x3eff34;this[_0x5f178e(0x1ad)]['id']===_0x5cff5c&&this[_0x5f178e(0x97)]();}async[_0x3eff34(0x15d)](){const _0x206a44=_0x3eff34,_0x57db0c=this[_0x206a44(0x15e)][_0x206a44(0xb8)]();this[_0x206a44(0x1ad)]?.[_0x206a44(0x11f)](_0x57db0c),this[_0x206a44(0x1ad)]?.[_0x206a44(0xa3)](_0xf28a5b(this[_0x206a44(0x130)][_0x206a44(0x160)],_0x206a44(0x1a9)));}[_0x3eff34(0x1da)](){const _0x17e056=_0x3eff34;this[_0x17e056(0x1ad)]?.[_0x17e056(0xa9)]();}[_0x3eff34(0x1eb)](){const _0x253d66=_0x3eff34;this[_0x253d66(0x1b6)][_0x253d66(0x1eb)]();}async[_0x3eff34(0x1a0)](){const _0xdd06bb=_0x3eff34;await this[_0xdd06bb(0x97)]();}async[_0x3eff34(0x1e5)]({message:_0x200c9a,quickActionData:_0x444a3d}){const _0x50886d=_0x3eff34;await this[_0x50886d(0x9b)]({'userMessage':_0x200c9a,'quickActionData':_0x444a3d});}[_0x3eff34(0x95)](){const _0x55c164=_0x3eff34,_0x3b8582=this[_0x55c164(0x130)][_0x55c164(0x16a)][_0x55c164(0x10f)](_0x55c164(0x96));if(!_0x3b8582)throw new _0x28a58b(_0x55c164(0x101),this);return _0x3b8582;}async[_0x3eff34(0x97)](_0x191313){const _0x53b68e=_0x3eff34;try{this[_0x53b68e(0x1b6)][_0x53b68e(0xa0)](),await this[_0x53b68e(0x106)](_0x191313);}catch(_0x567a0c){_0x283934(_0x53b68e(0x148),_0x567a0c),this[_0x53b68e(0x1ad)]=void 0x0,this[_0x53b68e(0x1b6)][_0x53b68e(0xaa)]();}}async[_0x3eff34(0x106)](_0x3e2797){const _0x346f06=_0x3eff34,_0x5bc748=this[_0x346f06(0x130)][_0x346f06(0x1c0)][_0x346f06(0x10f)](_0x15895c);let _0x24e562;_0x5bc748[_0x346f06(0x1c4)]&&_0x5bc748[_0x346f06(0x1a8)](),_0x3e2797||!this[_0x346f06(0x1ad)]?_0x24e562=this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0x117)):this[_0x346f06(0x1b6)][_0x346f06(0x124)]&&(_0x24e562=this[_0x346f06(0x1ad)][_0x346f06(0x149)]['id']),await this[_0x346f06(0x10b)]();const _0x36c6fb=this[_0x346f06(0x95)](),_0x5a3e85=_0x3e2797||_0x3728dc();this[_0x346f06(0x1ad)]=new _0x33dcbb({'connector':this[_0x346f06(0x16d)],'chatModels':this[_0x346f06(0x12e)],'selectedModelId':_0x24e562,'conversationId':_0x5a3e85,'group':_0x36c6fb,'getEditor':()=>_0x5226e4(this[_0x346f06(0x130)])}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x165),(_0x5973bd,_0x1cf62a)=>{const _0x17212a=_0x346f06;this[_0x17212a(0x1b6)][_0x17212a(0x129)](_0x1cf62a),this[_0x17212a(0x1b6)][_0x17212a(0x140)](),this[_0x17212a(0x1b6)][_0x17212a(0xcb)](),this[_0x17212a(0x1b6)][_0x17212a(0x107)](),_0x3e2797||(this[_0x17212a(0x1b6)][_0x17212a(0xd3)](),this[_0x17212a(0x1ad)]?.[_0x17212a(0xa3)](_0xf28a5b(this[_0x17212a(0x130)][_0x17212a(0x160)],_0x17212a(0x1a9))));}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x13a),(_0x1bc27f,_0x1f87b7)=>{const _0x4d006f=_0x346f06;this[_0x4d006f(0x1b6)][_0x4d006f(0x156)](_0x1f87b7[_0x4d006f(0x1cd)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x98),(_0x758de8,_0x14a597)=>{const _0x33b896=_0x346f06;this[_0x33b896(0x1b6)][_0x33b896(0x18e)](_0x14a597);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xd5),()=>{const _0x557d36=_0x346f06;this[_0x557d36(0x1b6)][_0x557d36(0x112)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xea),()=>{const _0x146282=_0x346f06;this[_0x146282(0x1b6)][_0x146282(0x112)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x8e),(_0x4ce616,_0x5b256c)=>{const _0x4c5c27=_0x346f06;this[_0x4c5c27(0x1b6)][_0x4c5c27(0xe9)](_0x5b256c,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xdf),(_0x212adf,_0x1c2ff1)=>{const _0x5c78b4=_0x346f06;this[_0x5c78b4(0x1b6)][_0x5c78b4(0xe9)](_0x1c2ff1,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x125),()=>{const _0xbc6a84=_0x346f06;this[_0xbc6a84(0x1b6)][_0xbc6a84(0x127)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x18b),async()=>{const _0x444925=_0x346f06;await this[_0x444925(0x1b6)][_0x444925(0x1a6)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x17e),(_0x25c9f4,_0x5e5e33)=>{const _0x5c401c=_0x346f06;this[_0x5c401c(0x1b6)][_0x5c401c(0x11a)](_0x5e5e33['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x15a),(_0x2b6945,_0x497ec8,_0x1bde43)=>{const _0x4d1d7a=_0x346f06;this[_0x4d1d7a(0x1a4)](_0x497ec8,_0x1bde43);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x12f),(_0x382d1d,_0x381f46)=>{const _0x2d17c2=_0x346f06;_0x2d17c2(0x136)===_0x381f46[_0x2d17c2(0x144)]?this[_0x2d17c2(0x1b6)][_0x2d17c2(0x164)](_0x381f46):this[_0x2d17c2(0x1b6)][_0x2d17c2(0x1dc)](_0x381f46);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x163),async(_0x53985e,_0x2bebc1)=>{const _0x3fd448=_0x346f06;await this[_0x3fd448(0xfc)]({'reply':_0x2bebc1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x93),(_0x71e78c,{reply:_0x3561d1,index:_0x4ab065,state:_0x4399d2})=>{const _0x12a16c=_0x346f06;this[_0x12a16c(0x1b6)][_0x12a16c(0xc3)]({'id':_0x3561d1['id'],'index':_0x4ab065,'state':_0x4399d2});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x138),(_0x11b7c8,_0x4b3d9b)=>{const _0x14e77c=_0x346f06;if(this[_0x14e77c(0x1b6)][_0x14e77c(0xf4)](_0x4b3d9b[_0x14e77c(0xfa)],_0x4b3d9b[_0x14e77c(0x175)]),_0x14e77c(0x8f)===_0x4b3d9b[_0x14e77c(0xfa)][_0x14e77c(0x144)]){const _0x509f04=[..._0x5226e4(this[_0x14e77c(0x130)])[_0x14e77c(0x179)][_0x14e77c(0x121)][_0x14e77c(0x8f)][_0x14e77c(0x114)]()];this[_0x14e77c(0x15e)][_0x14e77c(0xe5)](_0x509f04,_0x14e77c(0x193)+this[_0x14e77c(0x1ad)]?.['id']);}}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x10c),(_0x41aedd,_0xd321cb)=>{const _0x2f5df2=_0x346f06;this[_0x2f5df2(0x1b6)][_0x2f5df2(0x12b)](_0xd321cb[_0x2f5df2(0xc7)]),_0x2f5df2(0x18a)==_0xd321cb[_0x2f5df2(0xc7)]&&this[_0x2f5df2(0x1da)](),_0x2f5df2(0x8f)===_0xd321cb[_0x2f5df2(0x144)]&&this[_0x2f5df2(0x15e)][_0x2f5df2(0xe1)](_0x2f5df2(0x193)+this[_0x2f5df2(0x1ad)]?.['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x111),(_0x184661,_0x28572a)=>{const _0x4f49d4=_0x346f06;this[_0x4f49d4(0x1b6)][_0x4f49d4(0x19a)](_0x28572a[_0x4f49d4(0xfa)][_0x4f49d4(0xc7)],_0x28572a[_0x4f49d4(0x175)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1d1),(_0x399076,_0x95e53b)=>{const _0x524bca=_0x346f06;this[_0x524bca(0x1b6)][_0x524bca(0x178)](_0x95e53b[_0x524bca(0xd1)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x189),(_0xf9bc68,_0x4b738f)=>{const _0x23371a=_0x346f06;this[_0x23371a(0x1b6)][_0x23371a(0x120)](_0x4b738f[_0x23371a(0x1ba)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x174),(_0x44d8fc,_0x1b9664)=>{const _0x26f571=_0x346f06;this[_0x26f571(0x1b6)][_0x26f571(0x192)](_0x1b9664[_0x26f571(0x1c5)],_0x1b9664[_0x26f571(0xee)],_0x1b9664[_0x26f571(0xc4)],_0x1b9664[_0x26f571(0xe4)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x94),(_0x5d4143,_0x12a67a)=>{const _0x477064=_0x346f06;this[_0x477064(0x1b6)][_0x477064(0x11c)](_0x12a67a[_0x477064(0x1c5)],_0x12a67a[_0x477064(0xa5)],_0x12a67a[_0x477064(0xe3)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1b0),(_0x339d32,_0x419a40)=>{const _0x816425=_0x346f06;this[_0x816425(0x1b6)][_0x816425(0x159)](_0x419a40);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xf3),(_0x308fc5,_0x3f89f2)=>{const _0x4a03ed=_0x346f06;this[_0x4a03ed(0x1b6)][_0x4a03ed(0x8d)](_0x3f89f2[_0x4a03ed(0x149)],_0x3f89f2[_0x4a03ed(0xd8)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1a5),(_0x552122,{error:_0xdf2453,interactionId:_0x2ce81e,fileName:_0x58eaaf,url:_0x71f46e,sourceId:_0x9a9fe9,sourceLabel:_0x1490cc})=>{const _0x2930dd=_0x346f06,_0x1a18fe=_0x2ce81e?_0x2ce81e+':'+_0x3728dc():_0x3728dc();_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xae))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1e1)]({'staticMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1be)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xf0))||_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x148))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x152)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x14e))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0xb9),_0x58eaaf),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xeb))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1dd),_0x71f46e),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1c2))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1e9)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x172))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1d5)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1ea))?(_0x9a9fe9&&this[_0x2930dd(0x1b6)][_0x2930dd(0x1d6)](_0x9a9fe9),this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x122),_0x1490cc||_0x2930dd(0xee)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x171))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1b8)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x12d)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453));}),await this[_0x346f06(0x1ad)][_0x346f06(0x14d)](this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0xc5))),_0x3e2797||await this[_0x346f06(0x1ad)][_0x346f06(0x1ab)]();}async[_0x3eff34(0x9b)]({userMessage:_0x2478c0,quickActionData:_0x21eaca}){const _0x429099=_0x3eff34;if(!this[_0x429099(0x1ad)])throw new _0x28a58b(_0x429099(0x1a7));this[_0x429099(0x1ad)][_0x429099(0xc2)]()&&await this[_0x429099(0x1ad)][_0x429099(0x169)](this[_0x429099(0x15e)][_0x429099(0xd9)]()),this[_0x429099(0x1ad)]['id']&&this[_0x429099(0x1ad)][_0x429099(0xb5)]&&await this[_0x429099(0x1ad)][_0x429099(0xcc)]({'userMessage':_0x2478c0,'quickActionData':_0x21eaca}),this[_0x429099(0xaf)]();}[_0x3eff34(0xaf)](){const _0x5849e6=_0x3eff34,_0x9b69c4=_0x5226e4(this[_0x5849e6(0x130)])[_0x5849e6(0x179)],_0x50537a=Array[_0x5849e6(0x9f)](_0x9b69c4[_0x5849e6(0xce)][_0x5849e6(0x1ac)](_0x447b84));_0x9b69c4[_0x5849e6(0x110)](_0x59d6e1=>{const _0x26b653=_0x5849e6;_0x50537a[_0x26b653(0x1aa)](_0xdabd40=>_0x59d6e1[_0x26b653(0x105)](_0xdabd40));});}[_0x3eff34(0x153)](){const _0x21464c=_0x3eff34;console[_0x21464c(0xf1)](_0x21464c(0x177));}[_0x3eff34(0x168)](_0x5bb26b){const _0x9c4167=_0x3eff34;this[_0x9c4167(0x1b6)][_0x9c4167(0xda)](_0x5bb26b);}[_0x3eff34(0xc6)](_0x2afc5b){const _0x297c1b=_0x3eff34;_0x283934(_0x2afc5b[_0x297c1b(0x133)]);}[_0x3eff34(0x15c)](_0x35bca7){const _0x341e3f=_0x3eff34;this[_0x341e3f(0x1ad)]?.[_0x341e3f(0xca)](_0x35bca7);}[_0x3eff34(0xe6)](){const _0x2b1914=_0x3eff34;this[_0x2b1914(0x1ad)]?.[_0x2b1914(0x1cf)]();}[_0x3eff34(0x1ce)](){const _0x4b1f9e=_0x3eff34;this[_0x4b1f9e(0x1ad)]?.[_0x4b1f9e(0xd7)]();}[_0x3eff34(0xfe)](_0x479e46){const _0x4a3025=_0x3eff34,[_0x4af365,_0x27194e]=_0x479e46[_0x4a3025(0xf7)](':'),_0xa26729=this[_0x4a3025(0x1ad)][_0x4a3025(0x1c8)](_0x4af365),_0x47ea81=_0xa26729[_0x4a3025(0x1d8)](_0x27194e);return{'interaction':_0xa26729,'reply':_0x47ea81};}[_0x3eff34(0xe0)](_0x34ec4c,_0x2061fb=!0x1){const _0x3d2de1=_0x3eff34,_0x5cdc89=_0x5226e4(this[_0x3d2de1(0x130)]),_0x5d1023={'target':_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0xa8)][_0x3d2de1(0xdd)][_0x3d2de1(0xc9)](_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0x150)][_0x3d2de1(0x13c)](_0x34ec4c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2061fb};_0x2061fb&&(_0x5d1023[_0x3d2de1(0x14c)]=!0x0),_0x2ddcb3(_0x5d1023);}[_0x3eff34(0x1a4)](_0x14077e,_0x450389=!0x1){const _0x31da76=_0x3eff34;this[_0x31da76(0x1b6)][_0x31da76(0x15a)](_0x14077e||_0xf28a5b(this[_0x31da76(0x130)][_0x31da76(0x160)],_0x31da76(0x1bf)),_0x450389);}async[_0x3eff34(0xfc)]({reply:_0x2f26a1,renderingStrategy:_0x53d1b1}){const _0x249989=_0x3eff34,{id:_0x4f8355,isDone:_0x4c8731,type:_0x5f23cb,parsedContent:_0xc0481}=_0x2f26a1;if(_0x249989(0x100)===_0x5f23cb){const _0x2b0a92=_0x2f26a1[_0x249989(0x17d)]({'showDiff':this[_0x249989(0x1b6)][_0x249989(0x14f)]});await this[_0x249989(0x1b6)][_0x249989(0x1b1)]({'id':_0x4f8355,'parts':_0x2b0a92,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});}else _0x249989(0x136)===_0x5f23cb&&await this[_0x249989(0x1b6)][_0x249989(0x9c)]({'id':_0x4f8355,'parsedContent':_0xc0481,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});_0x4c8731&&_0x2f26a1[_0x249989(0x143)][_0x249989(0x10a)]>0x0&&this[_0x249989(0x1b6)][_0x249989(0x167)](_0x4f8355,_0x2f26a1[_0x249989(0x143)]);}async[_0x3eff34(0x10b)](){const _0x5a0448=_0x3eff34,_0x38caf6=this[_0x5a0448(0x1ad)]?.[_0x5a0448(0x155)];_0x38caf6&&(_0x38caf6[_0x5a0448(0xbe)](),this[_0x5a0448(0x1b6)][_0x5a0448(0x16f)](_0x38caf6));}async[_0x3eff34(0x1c1)](){const _0xfbce0c=_0x3eff34,_0x5f8fb8=this[_0xfbce0c(0x1ad)]?.[_0xfbce0c(0x155)];if(_0x5f8fb8){for await(const _0x1de35c of _0x5f8fb8[_0xfbce0c(0xa4)])await this[_0xfbce0c(0xfc)]({'reply':_0x1de35c,'renderingStrategy':_0xfbce0c(0x119)});}}[_0x3eff34(0x132)](_0x45a2be){const _0x4896d7=_0x3eff34,_0x5e73ce={'positiveCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x196)](_0x28caa3=>_0x4896d7(0x10d)===_0x28caa3[_0x4896d7(0xac)])[_0x4896d7(0x10a)],'totalCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x10a)],'modificationId':_0x45a2be['id']},_0x350c8a=this[_0x4896d7(0x1ad)][_0x4896d7(0x1c8)](_0x45a2be[_0x4896d7(0xec)])[_0x4896d7(0x1a2)];this[_0x4896d7(0x16d)][_0x4896d7(0x13e)](this[_0x4896d7(0x1ad)]['id'],_0x350c8a,_0x5e73ce);}}
23
+ const _0x8ef9ee=_0x5b27;(function(_0x5b07ba,_0x3227cc){const _0x20e83a=_0x5b27,_0x53091f=_0x5b07ba();while(!![]){try{const _0x525132=-parseInt(_0x20e83a(0x147))/0x1*(parseInt(_0x20e83a(0x245))/0x2)+parseInt(_0x20e83a(0x1c4))/0x3*(-parseInt(_0x20e83a(0x24a))/0x4)+-parseInt(_0x20e83a(0x16c))/0x5+-parseInt(_0x20e83a(0x1cc))/0x6*(parseInt(_0x20e83a(0x121))/0x7)+parseInt(_0x20e83a(0x122))/0x8*(-parseInt(_0x20e83a(0x125))/0x9)+parseInt(_0x20e83a(0x22d))/0xa*(-parseInt(_0x20e83a(0xfb))/0xb)+parseInt(_0x20e83a(0x1da))/0xc;if(_0x525132===_0x3227cc)break;else _0x53091f['push'](_0x53091f['shift']());}catch(_0x3846b4){_0x53091f['push'](_0x53091f['shift']());}}}(_0x4f72,0x5c70e));function _0x5b27(_0xb165af,_0x206dfd){const _0x4f7255=_0x4f72();return _0x5b27=function(_0x5b2792,_0x45dc3a){_0x5b2792=_0x5b2792-0xf6;let _0x3181b6=_0x4f7255[_0x5b2792];return _0x3181b6;},_0x5b27(_0xb165af,_0x206dfd);}import{ContextPlugin as _0x7ece9c,Editor as _0x3cb8bb}from'ckeditor5/src/core.js';import{CKEditorError as _0x485b74,logError as _0x1ba115,scrollViewportToShowTarget as _0xdadee6,uid as _0xe5a092}from'ckeditor5/src/utils.js';import{AIConnector as _0x23ca6e}from'../aicore/aiconnector.js';function _0x4f72(){const _0x57c5c8=['isOpen','children','Showing\x20conversation\x20history...','getFirstRange','handleUserInteraction','updateFeedItemAIReplySources','selectedModel','sendUserMessage','addUrlToContext','history','interactionCreated','isDocumentOperation','getAttribute','isModelAvailable','_toggleWebSearch','sources','interactionStarted','has','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','clearPendingContextUI','getOperations','hasChanges','unshift','toViewRange','root','ai-chat-file-upload-failed','resizedTabs','sourceResourcesLoaded','AI_CHAT_ABORTED_MESSAGE','updateFeedItemAIReplySuggestionPartState','end','stopListening','startAutoScroll','_aiConnector','replyContentUpdated','_stopLastInteraction','setChangeGroupState','add','replies','pluginName','modification-delta','indexes','AI_CHAT_GENERIC_ERROR','resources','open','setIsUploadInProgress','documentContextContent','20WdgYWq','enableControls','getSelectionText','remove','ai.chat.models.defaultModelId','finishInteraction','_setIsMaximized','getRanges','stopInteraction','changeGroups','addFileToContext','getDiff','dialogClosed','focusPromptInput','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai.chat.context','get','_updateRatings','AI_CHAT_RESOURCE_LOAD_FAILED','removeSelectionFromChatContext','Failed\x20to\x20load\x20conversation','source','AIEditing','createRange','144WpyCnf','_updateReplyContent','node','revert','partIndex','387816svhNJs','addResourceToContext','_scrollToSuggestionRange','anchorId','getChildren','startInteraction','rootName','chat','addFeedItemStaticMessage','_previewedChangeGroup','isLoading','AITabs','editing','error','removeSelectionFromContext','locale','updateFeedItemAIReplySuggestionContent','closeSourceResourceBalloon','1559063OAJbeY','start','undo','toggleReasoning','ai-chat-conversation-init-failed','query','replyCreated','config','log','startConversation','_toggleReasoning','createPositionFromPath','getInteraction','markers','view','resourceId','_showConversationHistory','type','index','removeContextItem','addFeedItemAISuggestion','showNext','updateConversationTitle','_integrateEditor','Disliked\x20response','ai.availableReplyActions','isCurrentDocumentInContext','static','load','activeConversation','requires','ai-conversation-','getReply','mouseLeaveSuggestion','_applySuggestion','maxOffset','webSearchFinished','ai-chat-resource-load-failed','487536kNgduX','8izncNz','modelSelected','new','2281455HuIYUC','interactionId','showFakeVisualSelection','TrackChangesEditing','_removeAISelectionMarkers','getChild','setFeedItemRenderingStrategy','setConversationContext','mapper','isUploadInProgress','addSelectionToContext','AI_CHAT_CONTEXT_INVALID_DATA','contextItems','reasoningFinished','getGroupId','_createFromRanges','DocumentCompare','ai-request-aborted','sourcePosition','outdated','disableControls','data-id','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','addContextItem','capabilitiesUpdated','addDocumentToContext','insertSuggestion','current-document','collaboration.channelId','loadSourceResources','toString','hideFakeVisualSelection','messageId','removeFeedInteraction','7179fdlQwH','setIsMaximized','resourceStateChanged','init','addFeedInteractionHeader','applySuggestion','reasoningStarted','TrackChanges','rejectSuggestion','_applyOperationsAsSuggestions','updateResourceState','like','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','resource','find','AIConnector','getContentParts','context','alignToTop','pending','_balloonShowDiff','getChildAtOffset','$graveyard','_logError','version','editors','plugins','filter','ai-chat-url-upload-failed','commands','isInContext','ai-chat-missing-channel-id','createPositionAt','ready','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','isCurrentDocumentInConversation','addCurrentDocumentToContext','1289840HFOnti','updateCapabilities','rejected','selection','addContextOptionsChanged','setConversationTitle','isOfficialPlugin','data','toggleLoadingSkeleton','handleRemovedConversation','afterInit','isPremiumPlugin','AIChatUI','parse','replyId','split','resizeTabs','contextItemAdded','listenTo','Undo','Liked\x20response','resetConversationTitle','populateSourceResourceBalloon','forEach','change','addOperation','batch','slice','ai-chat-context-unsupported-type','setModel','toggleWebSearch','interactionDestroyed','contextItem','map','showDiff','howMany','setAddContextOptions','getDocumentContext','setContextItemLoading','delete','contextItemRemoved','isDisabled','dislike','abortPromptStream','removeMarker','sendMessage','addFilesToContext','removeFromContext','sourceId','applyOperation','nextSibling','contextItemLoadingEnded','cloneNode','getPath','removed','getTransformedByOperation','_aiChatUi','ai.chat.models.displayedModels','updateFeedItemAIReplyContent','addFeedItemAIReply','path','_flushLastInteractionUI','changes','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','baseVersion','uiId','domConverter','length','message','_startConversationSafely','resize','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','ai-no-track-changes','conversationInitialized','_removeFromContext','showPrevious','_batchToChanges','set','setLoadingMessage','getMarkersGroup','options','resetMessageInput','_aiEditing','_handleUIUserMessage','accepted','scrollFeedToSuggestion','interactionFinished','6qnEcan','addFeedItemError','setSelectedModel','lastInteraction','_openBalloonFor','content','_getDocumentRangeForReplyChanges','showChangeInText','36gOmrIY','activateTab','_insertSuggestion','redo','updateContent','isStarted','marker','uid','uploadProgressChanged','range','push','mouseOverSuggestion','selectModel','ai-chat-controller-no-active-conversation','27627012KRQruq','updateCurrentDocumentInContext','getRoot','indexOf','AIChatController','state','ai-chat-conversation-start-failed','toggleSuggestionDisplayMode','from','streaming','full','createConversation','findIndex','text-delta','stop','replyChangeGroupStateUpdated','clearConversationContextUI','ai-chat-source-resources-load-failed','ai-chat-controller-mouse-over','contextSent','ai-chat-context-invalid-data','addFeedItemUserMessage','AI_BALLOON_HEADER_TITLE','document','_handleStartConversation','addSelectionToChatContext','webSearchStarted','getDocumentData','close','viewRangeToDom','startsWith','_aiChatModels','model','getInteractionAndReplyById','loadConversation','main'];_0x4f72=function(){return _0x57c5c8;};return _0x4f72();}import{AITabs as _0x2ebd23}from'../aitabs/aitabs.js';import{AIChatConversation as _0xe2641e}from'./model/aichatconversation.js';import{getTranslation as _0x559272}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x7f8b76}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x4c8896}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x2315c6}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2399ad}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2570c3,DATA_ID_MODEL_ATTRIBUTE as _0x3a16e1}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xbf4cb1,getOperationsFromReply as _0x3b5393}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1e73a5,getMinimalSelection as _0x4584e7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2a3d4e,_DetachOperation as _0xef762f}from'ckeditor5/src/engine.js';import{findOne as _0x30cfd9,getAttribute as _0x59b3f4,serialize as _0x4b4dd6,Document as _0x3e5f76,findByAttribute as _0x2bbac6}from'../aicore/utils/htmlparser.js';import{IconAI as _0x469274}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x1f18d3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0xd58c44}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x7ece9c{[_0x8ef9ee(0x1bf)];[_0x8ef9ee(0x21f)];[_0x8ef9ee(0x1a4)];[_0x8ef9ee(0x1f9)];[_0x8ef9ee(0x1b9)]=new Map();[_0x8ef9ee(0x253)]=null;[_0x8ef9ee(0x15b)]=!0x1;static get[_0x8ef9ee(0x119)](){return[_0x23ca6e,_0xd58c44,_0x2570c3];}static get[_0x8ef9ee(0x225)](){const _0x264c6f=_0x8ef9ee;return _0x264c6f(0x1de);}static get[_0x8ef9ee(0x172)](){return!0x0;}static get[_0x8ef9ee(0x177)](){return!0x0;}[_0x8ef9ee(0x14a)](){const _0x596093=_0x8ef9ee;this[_0x596093(0x21f)]=this[_0x596093(0x158)][_0x596093(0x161)][_0x596093(0x23d)](_0x596093(0x156)),this[_0x596093(0x1a4)]=this[_0x596093(0x158)][_0x596093(0x161)][_0x596093(0x23d)](_0x596093(0x178)),this[_0x596093(0x1bf)]=this[_0x596093(0x158)][_0x596093(0x161)][_0x596093(0x23d)](_0x596093(0x243)),this[_0x596093(0x1f9)]=new _0x2315c6({'connector':this[_0x596093(0x21f)],'availableModels':this[_0x596093(0x158)][_0x596093(0x102)][_0x596093(0x23d)](_0x596093(0x1a5)),'defaultModelId':this[_0x596093(0x158)][_0x596093(0x102)][_0x596093(0x23d)](_0x596093(0x231))});const _0x51d927=this[_0x596093(0x158)][_0x596093(0x161)][_0x596093(0x23d)](_0x596093(0x255));this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x104),()=>{const _0x522949=_0x596093;this[_0x522949(0x1b1)]();}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x205),(_0x13d5ce,_0x4f8aca)=>{const _0x27cd1e=_0x596093;this[_0x27cd1e(0x1c0)]({'userMessage':_0x4f8aca});}),this[_0x596093(0x17e)](_0x51d927,_0x596093(0x218),(_0x327db3,_0x445471)=>{const _0x53322f=_0x596093;this[_0x53322f(0x233)](_0x445471);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x17c),()=>{const _0x36565a=_0x596093;_0x51d927[_0x36565a(0x1b2)]();}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x197),async()=>{const _0x36416a=_0x596093;await this[_0x36416a(0x221)](),await this[_0x36416a(0x1a9)]();}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x13e),()=>{const _0x4f47b5=_0x596093;this[_0x4f47b5(0x118)]?.[_0x4f47b5(0x16b)](_0x559272(this[_0x4f47b5(0x158)][_0x4f47b5(0xf8)],_0x4f47b5(0x1ab)));}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x237),(_0xf141c6,_0x56c83b)=>{const _0x18f907=_0x596093;this[_0x18f907(0x118)]?.[_0x18f907(0x19a)](Array[_0x18f907(0x1e2)](_0x56c83b));}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x206),(_0x32aa52,_0xb3a06c)=>{const _0x1c5b90=_0x596093;this[_0x1c5b90(0x118)]?.[_0x1c5b90(0x206)](_0xb3a06c);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x24b),(_0xcb2c2a,_0x4f3607)=>{const _0x82ada5=_0x596093;this[_0x82ada5(0x118)]?.[_0x82ada5(0x24b)](_0x4f3607[_0x82ada5(0x242)],_0x4f3607[_0x82ada5(0x154)]);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x10e),(_0x3529bf,_0x4a0efa)=>{const _0xe4b405=_0x596093;this[_0xe4b405(0x1b7)](_0x4a0efa);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x142),(_0x4c4d99,_0x4bc2b0)=>{const _0x5e5a05=_0x596093;this[_0x5e5a05(0x118)]?.[_0x5e5a05(0x142)](_0x4bc2b0[_0x5e5a05(0x19c)],_0x4bc2b0[_0x5e5a05(0x100)],_0x4bc2b0[_0x5e5a05(0x1d3)]);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x18a),()=>{const _0x4b9ab4=_0x596093;this[_0x4b9ab4(0x20c)]();}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0xfe),()=>{const _0x59138a=_0x596093;this[_0x59138a(0x105)]();}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x1d8),(_0x4b3089,_0xe951a6)=>{const _0x19d96f=_0x596093;this[_0x19d96f(0x118)]?.[_0x19d96f(0x189)](_0xe951a6);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x152),(_0xd5583d,{replyId:_0x42ca51})=>{const _0x53899a=_0x596093;console[_0x53899a(0x103)](_0x53899a(0x180),_0x42ca51);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x196),(_0x55d67f,{replyId:_0x4eb4df})=>{const _0x569236=_0x596093;console[_0x569236(0x103)](_0x569236(0x113),_0x4eb4df);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x13f),(_0x325236,_0xa176e)=>{const _0x287dd7=_0x596093;this[_0x287dd7(0x158)][_0x287dd7(0x161)][_0x287dd7(0x23d)](_0xd58c44)[_0x287dd7(0x1f6)](),this[_0x287dd7(0x1ce)](_0xa176e);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x1cb),(_0x42265a,{replyId:_0x3ac253,partIndex:_0x219965})=>{const _0x292bd4=_0x596093;this[_0x292bd4(0x15b)]=this[_0x292bd4(0x1a4)][_0x292bd4(0x18e)],this[_0x292bd4(0x1c8)](_0x3ac253,_0x219965);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x1d7),(_0x499347,{replyId:_0x55d58c,partIndex:_0x222b77})=>{const _0x38a302=_0x596093,_0x44e1bb=this[_0x38a302(0x1ca)](_0x55d58c,_0x222b77);_0x44e1bb&&_0x38a302(0x15d)!=_0x44e1bb[_0x38a302(0x1d5)][_0x38a302(0x216)][_0x38a302(0x250)]&&this[_0x38a302(0x1bf)][_0x38a302(0x127)]([_0x44e1bb[_0x38a302(0x1d5)]],_0x38a302(0x1ec));}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x11c),()=>{const _0x2f08c9=_0x596093;this[_0x2f08c9(0x1bf)][_0x2f08c9(0x144)](_0x2f08c9(0x1ec));}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x14c),(_0x2f08f8,_0x5541bb)=>{const _0x3b634a=_0x596093;this[_0x3b634a(0x158)][_0x3b634a(0x161)][_0x3b634a(0x23d)](_0xd58c44)[_0x3b634a(0x1f6)](),this[_0x3b634a(0x11d)](_0x5541bb);}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x1e1),async(_0x394043,{replyId:_0x9fabf8,showDiff:_0x1f35f9})=>{const _0x280c7a=_0x596093,{reply:_0x4512fe}=this[_0x280c7a(0x1fb)](_0x9fabf8),_0x48b97b=_0x4512fe[_0x280c7a(0x157)]({'showDiff':_0x1f35f9});await this[_0x280c7a(0x1a4)][_0x280c7a(0xf9)]({'id':_0x4512fe['id'],'parts':_0x48b97b,'renderingStrategy':_0x280c7a(0x116)});}),this[_0x596093(0x17e)](this[_0x596093(0x1a4)],_0x596093(0x14f),(_0x1e8bc2,{replyId:_0x43886c,partIndex:_0x3c6645})=>{const _0x1c1042=_0x596093;this[_0x1c1042(0x253)]?.[_0x1c1042(0x17a)]==_0x43886c&&this[_0x1c1042(0x253)]?.[_0x1c1042(0x249)]==_0x3c6645&&this[_0x1c1042(0x158)][_0x1c1042(0x161)][_0x1c1042(0x23d)](_0xd58c44)[_0x1c1042(0x1f6)]();const {reply:_0xd90131}=this[_0x1c1042(0x1fb)](_0x43886c);_0xd90131[_0x1c1042(0x222)](_0x3c6645,_0x1c1042(0x16e)),this[_0x1c1042(0x1bf)][_0x1c1042(0x144)](_0x1c1042(0x1ec));});}async[_0x8ef9ee(0x176)](){const _0x527e5c=_0x8ef9ee;this[_0x527e5c(0x158)]instanceof _0x3cb8bb?this[_0x527e5c(0x112)](this[_0x527e5c(0x158)]):this[_0x527e5c(0x17e)](this[_0x527e5c(0x158)][_0x527e5c(0x160)],_0x527e5c(0x223),(_0x4eb257,_0x23a601)=>{const _0x5a5c94=_0x527e5c;_0x23a601['on'](_0x5a5c94(0x168),()=>{const _0x1c5f30=_0x5a5c94;this[_0x1c5f30(0x112)](_0x23a601);});}),await this[_0x527e5c(0x1b1)]();}[_0x8ef9ee(0x1ce)](_0x1f7d3d){const _0xfa6354=_0x8ef9ee,_0x47362b=_0x2399ad(this[_0xfa6354(0x158)]);if(!_0x47362b[_0xfa6354(0x161)][_0xfa6354(0x20f)](_0xfa6354(0x14e)))throw new _0x485b74(_0xfa6354(0x1b5),null);const _0x440487=this[_0xfa6354(0x158)][_0xfa6354(0x161)][_0xfa6354(0x23d)](_0xfa6354(0x135)),{reply:_0x9d33d0,interaction:_0x34388e}=this[_0xfa6354(0x1fb)](_0x1f7d3d[_0xfa6354(0x17a)]),_0x1cfc43=this[_0xfa6354(0x1ca)](_0x1f7d3d[_0xfa6354(0x17a)],_0x1f7d3d[_0xfa6354(0x249)]),_0x61bb11=void 0x0!==_0x1f7d3d[_0xfa6354(0x249)]?[_0x9d33d0[_0xfa6354(0x236)][_0x1f7d3d[_0xfa6354(0x249)]]]:_0x9d33d0[_0xfa6354(0x236)][_0xfa6354(0x162)](_0x231172=>_0xfa6354(0x15a)==_0x231172[_0xfa6354(0x1df)]),_0x3c267e=_0x61bb11[_0xfa6354(0x18d)](_0x343e23=>_0x9d33d0[_0xfa6354(0x236)][_0xfa6354(0x1dd)](_0x343e23));if(!_0x1cfc43||_0xfa6354(0x15d)==_0x1cfc43[_0xfa6354(0x1d5)][_0xfa6354(0x216)][_0xfa6354(0x250)])return void _0x3c267e[_0xfa6354(0x183)](_0x3162d4=>_0x9d33d0[_0xfa6354(0x222)](_0x3162d4,_0xfa6354(0x138)));_0x3c267e[_0xfa6354(0x183)](_0x226044=>_0x9d33d0[_0xfa6354(0x222)](_0x226044,_0xfa6354(0x1c1)));const _0xf093b9=_0x3b5393({'editor':_0x47362b,'reply':_0x9d33d0,'interaction':_0x34388e,'groups':_0x61bb11,'transform':!0x0,'documentCompare':_0x440487,'documentCompareOptions':{'anchor':_0xfa6354(0x1fd),'markDeletions':!0x0}});let _0x1ff478;_0x1cfc43&&this[_0xfa6354(0x24c)](_0x1cfc43[_0xfa6354(0x1d5)]),_0x47362b[_0xfa6354(0x1fa)][_0xfa6354(0x184)](_0x2a5874=>{const _0x5a0091=_0xfa6354;_0x1ff478=_0x2a5874[_0x5a0091(0x186)],_0x47362b[_0x5a0091(0x161)][_0x5a0091(0x23d)](_0x5a0091(0x128))[_0x5a0091(0x150)](_0xf093b9),this[_0x5a0091(0x1bf)][_0x5a0091(0x144)](_0x5a0091(0x1ec));}),this[_0xfa6354(0x1b9)][_0xfa6354(0x1ba)](_0x1ff478,{'interactionId':_0x34388e['id'],'replyId':_0x9d33d0['id'],'indexes':_0x3c267e[_0xfa6354(0x187)]()}),this[_0xfa6354(0x23e)](_0x9d33d0);}[_0x8ef9ee(0x11d)](_0x216234){const _0x3476e5=_0x8ef9ee,_0x362442=_0x2399ad(this[_0x3476e5(0x158)]),_0x127c5a=this[_0x3476e5(0x158)][_0x3476e5(0x161)][_0x3476e5(0x23d)](_0x2570c3),{reply:_0x374b0d,interaction:_0x2240bf}=this[_0x3476e5(0x1fb)](_0x216234[_0x3476e5(0x17a)]),_0xefe3b3=this[_0x3476e5(0x1ca)](_0x216234[_0x3476e5(0x17a)],_0x216234[_0x3476e5(0x249)]),_0x5285de=void 0x0!==_0x216234[_0x3476e5(0x249)]?[_0x374b0d[_0x3476e5(0x236)][_0x216234[_0x3476e5(0x249)]]]:_0x374b0d[_0x3476e5(0x236)][_0x3476e5(0x162)](_0x18504b=>_0x3476e5(0x15a)==_0x18504b[_0x3476e5(0x1df)]),_0x43f2ba=_0x5285de[_0x3476e5(0x18d)](_0x39e2f4=>_0x374b0d[_0x3476e5(0x236)][_0x3476e5(0x1dd)](_0x39e2f4));if(!_0xefe3b3||_0x3476e5(0x15d)==_0xefe3b3[_0x3476e5(0x1d5)][_0x3476e5(0x216)][_0x3476e5(0x250)])return void _0x43f2ba[_0x3476e5(0x183)](_0x307be3=>_0x374b0d[_0x3476e5(0x222)](_0x307be3,_0x3476e5(0x138)));_0x43f2ba[_0x3476e5(0x183)](_0x57bc15=>_0x374b0d[_0x3476e5(0x222)](_0x57bc15,_0x3476e5(0x1c1)));const _0x309913=_0x3b5393({'editor':_0x362442,'reply':_0x374b0d,'interaction':_0x2240bf,'groups':_0x5285de,'transform':!0x0,'documentCompare':_0x127c5a,'documentCompareOptions':{'anchor':_0x3476e5(0x1fd),'markDeletions':!0x1}});let _0x46284f;_0xefe3b3&&this[_0x3476e5(0x24c)](_0xefe3b3[_0x3476e5(0x1d5)]),_0x362442[_0x3476e5(0x1fa)][_0x3476e5(0x184)](_0x2a836f=>{const _0x108d08=_0x3476e5;_0x46284f=_0x2a836f[_0x108d08(0x186)];for(const _0x1a103d of _0x309913)_0x1a103d[_0x108d08(0x1ac)]=_0x362442[_0x108d08(0x1fa)][_0x108d08(0x1f1)][_0x108d08(0x15f)],_0xbf4cb1(_0x362442,_0x1a103d),_0x2a836f[_0x108d08(0x186)][_0x108d08(0x185)](_0x1a103d),_0x362442[_0x108d08(0x1fa)][_0x108d08(0x19d)](_0x1a103d);}),this[_0x3476e5(0x1b9)][_0x3476e5(0x1ba)](_0x46284f,{'interactionId':_0x2240bf['id'],'replyId':_0x374b0d['id'],'indexes':_0x43f2ba[_0x3476e5(0x187)]()}),this[_0x3476e5(0x23e)](_0x374b0d);}[_0x8ef9ee(0x1c8)](_0x876cc0,_0x4ca43a){const _0x3a28d4=_0x8ef9ee,_0x176511=_0x2399ad(this[_0x3a28d4(0x158)]),_0x33b3c3=this[_0x3a28d4(0x1ca)](_0x876cc0,_0x4ca43a),_0xe4e098=this[_0x3a28d4(0x158)][_0x3a28d4(0x161)][_0x3a28d4(0x23d)](_0xd58c44);if(!_0x33b3c3)return void _0xe4e098[_0x3a28d4(0x1f6)]();const {range:_0x21898f,currentIndex:_0x549872}=_0x33b3c3;if(_0x3a28d4(0x15d)==_0x21898f[_0x3a28d4(0x216)][_0x3a28d4(0x250)]){const {reply:_0x5b205d}=this[_0x3a28d4(0x1fb)](_0x876cc0);return _0x5b205d[_0x3a28d4(0x222)](_0x549872,_0x3a28d4(0x138)),void _0xe4e098[_0x3a28d4(0x1f6)]();}if(this[_0x3a28d4(0x253)]?.[_0x3a28d4(0x17a)]==_0x876cc0&&this[_0x3a28d4(0x253)]?.[_0x3a28d4(0x249)]==_0x549872)return;this[_0x3a28d4(0x21d)](_0xe4e098),this[_0x3a28d4(0x253)]={'replyId':_0x876cc0,'partIndex':_0x549872};let _0x465092=_0x176511[_0x3a28d4(0x102)][_0x3a28d4(0x23d)](_0x3a28d4(0x114))||[..._0x4c8896];_0x176511[_0x3a28d4(0x161)][_0x3a28d4(0x20f)](_0x3a28d4(0x14e))||(_0x465092=_0x465092[_0x3a28d4(0x162)](_0x5ddfc5=>_0x3a28d4(0x13f)!=_0x5ddfc5));const _0x479c90=new _0x1f18d3(_0x176511[_0x3a28d4(0xf8)],{'showDiff':this[_0x3a28d4(0x15b)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3a28d4(0x1e4)},'hideHeader':!0x0,'availableActions':_0x465092});this[_0x3a28d4(0x21d)](_0x479c90);const {reply:_0xf8b636}=this[_0x3a28d4(0x1fb)](_0x876cc0),_0x5e7a96=_0xf8b636[_0x3a28d4(0x157)]({'showDiff':this[_0x3a28d4(0x15b)]})[_0x3a28d4(0x162)](_0x3c9c63=>_0x3c9c63[_0x3a28d4(0x213)]),_0x8b5d89=_0x5e7a96[_0x3a28d4(0x1e6)](_0x2c7838=>_0x2c7838[_0x3a28d4(0x10d)]==_0x549872);if(-0x1==_0x8b5d89)return;const _0x3b64d6=_0x5e7a96[_0x8b5d89],_0x40764f=_0x5e7a96['at']((_0x8b5d89-0x1)%_0x5e7a96[_0x3a28d4(0x1af)])?.[_0x3a28d4(0x10d)],_0x37b419=_0x5e7a96['at']((_0x8b5d89+0x1)%_0x5e7a96[_0x3a28d4(0x1af)])?.[_0x3a28d4(0x10d)];_0x479c90[_0x3a28d4(0x1d0)]({'parts':[_0x3b64d6],'renderingStrategy':_0x3a28d4(0x116)});const _0xf0020a=_0x549872!==_0x40764f;this[_0x3a28d4(0x24c)](_0x21898f,!0x0),_0xe4e098[_0x3a28d4(0x22a)]({'index':_0x549872,'title':_0x559272(this[_0x3a28d4(0x158)][_0x3a28d4(0xf8)],_0x3a28d4(0x1f0),(_0x8b5d89+0x1)[_0x3a28d4(0x143)]()),'icon':_0x469274,'mainView':_0x479c90,'showRotator':_0xf0020a,'showApplyButton':!0x0,'showSuggestButton':_0x176511[_0x3a28d4(0x161)][_0x3a28d4(0x20f)](_0x3a28d4(0x14e)),'ranges':[_0x21898f]}),this[_0x3a28d4(0x1a4)][_0x3a28d4(0x1c2)](_0x876cc0,_0x549872),this[_0x3a28d4(0x17e)](_0x479c90,_0x3a28d4(0x1e1),(_0x2e38b0,{showDiff:_0x3c6ea2})=>{const _0x2e4e17=_0x3a28d4;this[_0x2e4e17(0x15b)]=_0x3c6ea2;const {reply:_0x5bdfab}=this[_0x2e4e17(0x1fb)](_0x876cc0),_0x398f23=_0x5bdfab[_0x2e4e17(0x157)]({'showDiff':_0x3c6ea2,'groupIndex':_0x549872});_0x479c90[_0x2e4e17(0x1d0)]({'parts':_0x398f23,'renderingStrategy':_0x2e4e17(0x116)});}),this[_0x3a28d4(0x17e)](_0xe4e098,_0x3a28d4(0x14c),()=>{const _0x412ea8=_0x3a28d4;this[_0x412ea8(0x11d)]({'replyId':_0x876cc0,'partIndex':_0x549872}),_0xf0020a?this[_0x412ea8(0x1c8)](_0x876cc0,_0x37b419):_0xe4e098[_0x412ea8(0x1f6)]();}),this[_0x3a28d4(0x17e)](_0xe4e098,_0x3a28d4(0x13f),()=>{const _0x51bdc9=_0x3a28d4;this[_0x51bdc9(0x1ce)]({'replyId':_0x876cc0,'partIndex':_0x549872}),_0xf0020a?this[_0x51bdc9(0x1c8)](_0x876cc0,_0x37b419):_0xe4e098[_0x51bdc9(0x1f6)]();}),_0xf0020a&&(this[_0x3a28d4(0x17e)](_0xe4e098,_0x3a28d4(0x110),()=>{const _0x4ad3ca=_0x3a28d4;this[_0x4ad3ca(0x1c8)](_0x876cc0,_0x37b419);}),this[_0x3a28d4(0x17e)](_0xe4e098,_0x3a28d4(0x1b8),()=>{const _0x1036ff=_0x3a28d4;this[_0x1036ff(0x1c8)](_0x876cc0,_0x40764f);})),this[_0x3a28d4(0x17e)](_0xe4e098,_0x3a28d4(0x239),()=>{const _0x5615eb=_0x3a28d4;this[_0x5615eb(0x21d)](_0xe4e098),this[_0x5615eb(0x21d)](_0x479c90),this[_0x5615eb(0x253)]=null;});}[_0x8ef9ee(0x1ca)](_0x2558e8,_0x28074a){const _0x3871d4=_0x8ef9ee,_0x42bd12=_0x2399ad(this[_0x3871d4(0x158)]),{reply:_0x4e3aa4,interaction:_0x4a05a6}=this[_0x3871d4(0x1fb)](_0x2558e8),_0x16108f=_0x4e3aa4[_0x3871d4(0x236)][_0x3871d4(0x162)](_0x520609=>_0x3871d4(0x15a)==_0x520609[_0x3871d4(0x1df)]),_0x308115=_0x16108f[_0x3871d4(0x18d)](_0x295d2f=>_0x4e3aa4[_0x3871d4(0x236)][_0x3871d4(0x1dd)](_0x295d2f));void 0x0===_0x28074a&&(_0x28074a=_0x308115[0x0]);const _0x59b0c0=_0x308115[_0x3871d4(0x1dd)](_0x28074a);if(-0x1==_0x59b0c0)return null;const _0x33dd8f=_0x16108f[_0x59b0c0],_0x48e78f=new _0x3e5f76([]),_0xb92487=new _0x3e5f76([]);for(const _0x13726e of _0x33dd8f[_0x3871d4(0x1aa)])if(_0x3871d4(0x1a2)!=_0x13726e[_0x3871d4(0x10c)]&&_0xb92487[_0x3871d4(0x1ff)][_0x3871d4(0x1d6)](_0x13726e[_0x3871d4(0x247)][_0x3871d4(0x1a0)](!0x0)),_0x3871d4(0x124)!=_0x13726e[_0x3871d4(0x10c)]){const _0x25f754=_0x30cfd9(_0xab391d=>_0x59b3f4(_0xab391d,_0x3871d4(0x13a))==_0x13726e['id'],_0x4e3aa4[_0x3871d4(0x22c)],!0x0);_0x48e78f[_0x3871d4(0x1ff)][_0x3871d4(0x1d6)](_0x25f754[_0x3871d4(0x1a0)](!0x0));}if(0x0==_0x48e78f[_0x3871d4(0x1ff)][_0x3871d4(0x1af)]){if(_0x33dd8f[_0x3871d4(0x1aa)][0x0][_0x3871d4(0x24d)]){const _0x143212=_0x2bbac6(_0x3871d4(0x13a),_0x33dd8f[_0x3871d4(0x1aa)][0x0][_0x3871d4(0x24d)],_0x4e3aa4[_0x3871d4(0x22c)]);_0x48e78f[_0x3871d4(0x1ff)][_0x3871d4(0x214)](_0x143212[_0x3871d4(0x1a0)](!0x0)),_0xb92487[_0x3871d4(0x1ff)][_0x3871d4(0x214)](_0x143212[_0x3871d4(0x1a0)](!0x0)),_0x143212[_0x3871d4(0x19e)]&&(_0x48e78f[_0x3871d4(0x1ff)][_0x3871d4(0x1d6)](_0x143212[_0x3871d4(0x19e)][_0x3871d4(0x1a0)](!0x0)),_0xb92487[_0x3871d4(0x1ff)][_0x3871d4(0x1d6)](_0x143212[_0x3871d4(0x19e)][_0x3871d4(0x1a0)](!0x0)));}else{const _0x131b9f=_0x4e3aa4[_0x3871d4(0x22c)][_0x3871d4(0x1ff)][0x0];if(!_0x131b9f)return null;_0x48e78f[_0x3871d4(0x1ff)][_0x3871d4(0x1d6)](_0x131b9f[_0x3871d4(0x1a0)](!0x0)),_0xb92487[_0x3871d4(0x1ff)][_0x3871d4(0x1d6)](_0x131b9f[_0x3871d4(0x1a0)](!0x0));}}const _0xadfd4e=_0x4a05a6[_0x3871d4(0x191)](),_0x308093=_0x42bd12[_0x3871d4(0x173)][_0x3871d4(0x179)](_0xadfd4e[_0x3871d4(0x1c9)]),_0x25676c=_0x4b4dd6(_0x48e78f),_0x59cb36=_0x42bd12[_0x3871d4(0x173)][_0x3871d4(0x179)](_0x25676c),_0x51bc20=_0x42bd12[_0x3871d4(0x173)][_0x3871d4(0x179)](_0x25676c),_0x30b3ff=_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x167)](_0x59cb36,0x0),_0x1aee95=_0x4b4dd6(_0xb92487),_0x212bb6={'anchor':_0x30b3ff,'markDeletions':!0x1},_0x214026=_0x42bd12[_0x3871d4(0x161)][_0x3871d4(0x23d)](_0x2570c3)[_0x3871d4(0x238)](_0x25676c,_0x1aee95,_0x212bb6)[_0x3871d4(0x212)]();if(!_0x214026[_0x3871d4(0x1af)])return null;_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x184)](_0x1fa422=>{const _0x51054c=_0x3871d4;for(const _0x2284f4 of _0x214026)if(_0x51054c(0x230)==_0x2284f4[_0x51054c(0x10c)]){const _0x4c2bfc=_0x2284f4[_0x51054c(0x137)],_0xc85e43=_0x2284f4[_0x51054c(0x18f)],_0x5f1f01=new _0xef762f(_0x4c2bfc,_0xc85e43);_0x1fa422[_0x51054c(0x186)][_0x51054c(0x185)](_0x5f1f01),_0x42bd12[_0x51054c(0x1fa)][_0x51054c(0x19d)](_0x5f1f01);}else _0x51054c(0x1d2)!==_0x2284f4[_0x51054c(0x10c)]&&(_0x2284f4[_0x51054c(0x1ac)]=null,_0x2284f4[_0x51054c(0x209)]=!0x1,_0x1fa422[_0x51054c(0x186)][_0x51054c(0x185)](_0x2284f4),_0x42bd12[_0x51054c(0x1fa)][_0x51054c(0x19d)](_0x2284f4));});const _0x8fe6a5=_0x4584e7(_0x42bd12,_0x214026,_0x59cb36);_0x1e73a5(_0x42bd12[_0x3871d4(0x1fa)],_0x8fe6a5);const _0x47655a=_0x8fe6a5[_0x3871d4(0x201)]()[_0x3871d4(0xfc)][_0x3871d4(0x1a8)][_0x3871d4(0x187)](),_0x320170=_0x8fe6a5[_0x3871d4(0x201)]()[_0x3871d4(0x21c)][_0x3871d4(0x1a8)][_0x3871d4(0x187)](),_0x8cfffb=[];let _0x456db6=_0x59cb36,_0x53bf51=_0x51bc20;for(let _0xb9662c=0x0;_0xb9662c<_0x320170[_0x3871d4(0x1af)];_0xb9662c++){const _0x3267f8=_0x456db6[_0x3871d4(0x11e)]-_0x320170[_0xb9662c];_0x8cfffb[_0xb9662c]=_0x53bf51[_0x3871d4(0x11e)]-_0x3267f8,_0x456db6=_0x456db6[_0x3871d4(0x15c)](_0x320170[_0xb9662c]),_0x53bf51=_0x53bf51[_0x3871d4(0x15c)](_0x8cfffb[_0xb9662c]);}const _0x541edc=_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x244)](_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x106)](_0x51bc20,_0x47655a),_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x106)](_0x51bc20,_0x8cfffb)),_0x39a4cc=_0x51bc20[_0x3871d4(0x12a)](0x0)[_0x3871d4(0x20a)](_0x3a16e1),_0x449b59=Array[_0x3871d4(0x1e2)](_0x308093[_0x3871d4(0x24e)]())[_0x3871d4(0x155)](_0x43eca8=>_0x43eca8[_0x3871d4(0x20a)](_0x3a16e1)==_0x39a4cc)[_0x3871d4(0x1a1)](),_0x5eefde=_0x541edc[_0x3871d4(0xfc)][_0x3871d4(0x1a8)][_0x3871d4(0x187)](),_0x3cecbb=_0x541edc[_0x3871d4(0x21c)][_0x3871d4(0x1a8)][_0x3871d4(0x187)]();_0x5eefde[0x0]=_0x449b59[0x0]+_0x5eefde[0x0],_0x3cecbb[0x0]=_0x449b59[0x0]+_0x3cecbb[0x0];let _0xe12e7a=_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x244)](_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x106)](_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x1f1)][_0x3871d4(0x1dc)](),_0x5eefde),_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x106)](_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x1f1)][_0x3871d4(0x1dc)](),_0x3cecbb));const _0x17b822=_0x42bd12[_0x3871d4(0x1fa)][_0x3871d4(0x1f1)][_0x3871d4(0x207)][_0x3871d4(0x212)](_0xadfd4e[_0x3871d4(0x15f)]);for(const _0x32fb89 of _0x17b822)_0xe12e7a=_0x2a3d4e[_0x3871d4(0x134)](_0xe12e7a[_0x3871d4(0x1a3)](_0x32fb89));return{'range':_0xe12e7a,'currentIndex':_0x28074a};}[_0x8ef9ee(0x112)](_0x413c88){const _0x2b3cb5=_0x8ef9ee;if(!_0x413c88[_0x2b3cb5(0x161)][_0x2b3cb5(0x20f)](_0x2b3cb5(0x17f)))return;const _0x334291=_0x413c88[_0x2b3cb5(0x164)][_0x2b3cb5(0x23d)](_0x2b3cb5(0xfd)),_0x1dbf71=_0x413c88[_0x2b3cb5(0x164)][_0x2b3cb5(0x23d)](_0x2b3cb5(0x1cf));this[_0x2b3cb5(0x17e)](_0x334291,_0x2b3cb5(0x248),(_0x593ed7,_0x2dd71e,_0x2d16ad)=>{const _0x5ae584=_0x2b3cb5,_0x299ae1=this[_0x5ae584(0x1b9)][_0x5ae584(0x23d)](_0x2dd71e);if(!_0x299ae1)return;const _0x893e44=this[_0x5ae584(0x118)][_0x5ae584(0x107)](_0x299ae1[_0x5ae584(0x126)])[_0x5ae584(0x11b)](_0x299ae1[_0x5ae584(0x17a)]);_0x299ae1[_0x5ae584(0x227)][_0x5ae584(0x183)](_0x19ff83=>_0x893e44[_0x5ae584(0x222)](_0x19ff83,_0x5ae584(0x15a))),this[_0x5ae584(0x1b9)][_0x5ae584(0x193)](_0x2dd71e),this[_0x5ae584(0x1b9)][_0x5ae584(0x1ba)](_0x2d16ad,_0x299ae1);}),this[_0x2b3cb5(0x17e)](_0x1dbf71,_0x2b3cb5(0x248),(_0x19997e,_0x5c1048,_0x5ed544)=>{const _0x29b0b7=_0x2b3cb5,_0x38067a=this[_0x29b0b7(0x1b9)][_0x29b0b7(0x23d)](_0x5c1048);if(!_0x38067a)return;const _0x354ca2=this[_0x29b0b7(0x118)][_0x29b0b7(0x107)](_0x38067a[_0x29b0b7(0x126)])[_0x29b0b7(0x11b)](_0x38067a[_0x29b0b7(0x17a)]);_0x38067a[_0x29b0b7(0x227)][_0x29b0b7(0x183)](_0x1fc8d6=>_0x354ca2[_0x29b0b7(0x222)](_0x1fc8d6,_0x29b0b7(0x1c1))),this[_0x29b0b7(0x1b9)][_0x29b0b7(0x193)](_0x5c1048),this[_0x29b0b7(0x1b9)][_0x29b0b7(0x1ba)](_0x5ed544,_0x38067a);});}async[_0x8ef9ee(0x1fc)](_0x3332a6){const _0x281900=_0x8ef9ee;this[_0x281900(0x158)][_0x281900(0x161)][_0x281900(0x23d)](_0xd58c44)[_0x281900(0x1f6)](),this[_0x281900(0x1a4)][_0x281900(0x12b)](_0x281900(0x116)),this[_0x281900(0x1a4)][_0x281900(0x174)](!0x0),await this[_0x281900(0x221)]();try{const _0x2f08f0=this[_0x281900(0x158)][_0x281900(0x161)][_0x281900(0x23d)](_0x2ebd23);this[_0x281900(0x111)]('\x20'),_0x2f08f0[_0x281900(0x109)][_0x281900(0x1cd)](_0x281900(0x251)),await this[_0x281900(0x1b1)](_0x3332a6);const {sessionId:_0x187588}=this[_0x281900(0x1bf)][_0x281900(0x1f5)]();await this[_0x281900(0x118)][_0x281900(0x117)](_0x3332a6,_0x187588),this[_0x281900(0x118)][_0x281900(0x16a)]()&&this[_0x281900(0x118)][_0x281900(0x16b)](_0x559272(this[_0x281900(0x158)][_0x281900(0xf8)],_0x281900(0x1ab)));}catch(_0x3494e8){console[_0x281900(0xf6)](_0x281900(0x241),_0x3494e8);}finally{this[_0x281900(0x1a4)][_0x281900(0x21e)](),this[_0x281900(0x1a4)][_0x281900(0x12b)](_0x281900(0x1e3)),this[_0x281900(0x1a4)][_0x281900(0x174)](!0x1);}}[_0x8ef9ee(0x175)](_0x5f05da){const _0x21e85c=_0x8ef9ee;this[_0x21e85c(0x118)]['id']===_0x5f05da&&this[_0x21e85c(0x1b1)]();}async[_0x8ef9ee(0x1f3)](){const _0x3f00f8=_0x8ef9ee,_0x42fd1b=this[_0x3f00f8(0x1bf)][_0x3f00f8(0x22f)]();this[_0x3f00f8(0x118)]?.[_0x3f00f8(0x12f)](_0x42fd1b),this[_0x3f00f8(0x118)]?.[_0x3f00f8(0x16b)](_0x559272(this[_0x3f00f8(0x158)][_0x3f00f8(0xf8)],_0x3f00f8(0x1ab)));}[_0x8ef9ee(0x240)](){const _0xa08d3c=_0x8ef9ee;this[_0xa08d3c(0x118)]?.[_0xa08d3c(0xf7)]();}[_0x8ef9ee(0x23a)](){const _0x271e9d=_0x8ef9ee;this[_0x271e9d(0x1a4)][_0x271e9d(0x23a)]();}async[_0x8ef9ee(0x104)](){const _0x2ea3b1=_0x8ef9ee;await this[_0x2ea3b1(0x1b1)]();}async[_0x8ef9ee(0x199)]({message:_0x24c5b0,quickActionData:_0x59ad81}){const _0x5c8980=_0x8ef9ee;await this[_0x5c8980(0x1c0)]({'userMessage':_0x24c5b0,'quickActionData':_0x59ad81});}[_0x8ef9ee(0x133)](){const _0x58a07a=_0x8ef9ee,_0x5dc9cb=this[_0x58a07a(0x158)][_0x58a07a(0x102)][_0x58a07a(0x23d)](_0x58a07a(0x141));if(!_0x5dc9cb)throw new _0x485b74(_0x58a07a(0x166),this);return _0x5dc9cb;}async[_0x8ef9ee(0x1b1)](_0x1487c2){const _0x37fb59=_0x8ef9ee;try{this[_0x37fb59(0x1a4)][_0x37fb59(0x22e)](),await this[_0x37fb59(0x1f2)](_0x1487c2);}catch(_0x5db124){_0x1ba115(_0x37fb59(0x1e0),_0x5db124),this[_0x37fb59(0x118)]=void 0x0,this[_0x37fb59(0x1a4)][_0x37fb59(0x139)]();}}async[_0x8ef9ee(0x1f2)](_0x3daf5c){const _0x5b055a=_0x8ef9ee,_0x33ed5a=this[_0x5b055a(0x158)][_0x5b055a(0x161)][_0x5b055a(0x23d)](_0xd58c44);let _0x21f446;_0x33ed5a[_0x5b055a(0x1fe)]&&_0x33ed5a[_0x5b055a(0x1f6)](),_0x3daf5c||!this[_0x5b055a(0x118)]?_0x21f446=this[_0x5b055a(0x158)][_0x5b055a(0x102)][_0x5b055a(0x23d)](_0x5b055a(0x231)):this[_0x5b055a(0x1a4)][_0x5b055a(0x20b)]&&(_0x21f446=this[_0x5b055a(0x118)][_0x5b055a(0x204)]['id']),await this[_0x5b055a(0x221)]();const _0x425086=this[_0x5b055a(0x133)](),_0x23d4bb=_0x3daf5c||_0xe5a092();this[_0x5b055a(0x118)]=new _0xe2641e({'connector':this[_0x5b055a(0x21f)],'chatModels':this[_0x5b055a(0x1f9)],'selectedModelId':_0x21f446,'conversationId':_0x23d4bb,'group':_0x425086,'getEditor':()=>_0x2399ad(this[_0x5b055a(0x158)])}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x1b6),(_0x26c30d,_0x26eec7)=>{const _0x3d216b=_0x5b055a;this[_0x3d216b(0x1a4)][_0x3d216b(0x1e5)](_0x26eec7),this[_0x3d216b(0x1a4)][_0x3d216b(0x1be)](),this[_0x3d216b(0x1a4)][_0x3d216b(0x211)](),this[_0x3d216b(0x1a4)][_0x3d216b(0x1ea)](),_0x3daf5c||(this[_0x3d216b(0x1a4)][_0x3d216b(0x181)](),this[_0x3d216b(0x118)]?.[_0x3d216b(0x16b)](_0x559272(this[_0x3d216b(0x158)][_0x3d216b(0xf8)],_0x3d216b(0x1ab))));}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x1d4),(_0x31d43e,_0x57dced)=>{const _0xe395a7=_0x5b055a;this[_0xe395a7(0x1a4)][_0xe395a7(0x22b)](_0x57dced[_0xe395a7(0x12e)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x208),(_0x80fe1c,_0x3c4fe8)=>{const _0x39406f=_0x5b055a;this[_0x39406f(0x1a4)][_0x39406f(0x1ef)](_0x3c4fe8);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x1f4),()=>{const _0x45003a=_0x5b055a;this[_0x45003a(0x1a4)][_0x45003a(0x1bb)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x14d),()=>{const _0xf7192b=_0x5b055a;this[_0xf7192b(0x1a4)][_0xf7192b(0x1bb)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x11f),(_0x4cf864,_0x3365c9)=>{const _0xf877c8=_0x5b055a;this[_0xf877c8(0x1a4)][_0xf877c8(0x14b)](_0x3365c9,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x132),(_0x1becd5,_0x215789)=>{const _0x1964ee=_0x5b055a;this[_0x1964ee(0x1a4)][_0x1964ee(0x14b)](_0x215789,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x20e),()=>{const _0x34f2ea=_0x5b055a;this[_0x34f2ea(0x1a4)][_0x34f2ea(0x24f)]();}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x1c3),async()=>{const _0x1dc581=_0x5b055a;await this[_0x1dc581(0x1a4)][_0x1dc581(0x232)]();}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x18b),(_0x375081,_0x293862)=>{const _0x57385c=_0x5b055a;this[_0x57385c(0x1a4)][_0x57385c(0x146)](_0x293862['id']);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x171),(_0x768529,_0x5a8dcc,_0x461020)=>{const _0x3b7235=_0x5b055a;this[_0x3b7235(0x111)](_0x5a8dcc,_0x461020);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x101),(_0x6798a2,_0x54fbc3)=>{const _0x3fee70=_0x5b055a;_0x3fee70(0x1e7)===_0x54fbc3[_0x3fee70(0x10c)]?this[_0x3fee70(0x1a4)][_0x3fee70(0x1a7)](_0x54fbc3):this[_0x3fee70(0x1a4)][_0x3fee70(0x10f)](_0x54fbc3);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x220),async(_0x4c6e2d,_0xc4f0c9)=>{const _0x188ec3=_0x5b055a;await this[_0x188ec3(0x246)]({'reply':_0xc4f0c9});}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x1e9),(_0x4159e9,{reply:_0x140138,index:_0x28dafe,state:_0x23a825})=>{const _0x2210aa=_0x5b055a;this[_0x2210aa(0x1a4)][_0x2210aa(0x21b)]({'id':_0x140138['id'],'index':_0x28dafe,'state':_0x23a825});}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x17d),(_0x10ef11,_0x54f460)=>{const _0x374b2a=_0x5b055a;if(this[_0x374b2a(0x1a4)][_0x374b2a(0x13c)](_0x54f460[_0x374b2a(0x18c)],_0x54f460[_0x374b2a(0x254)]),_0x374b2a(0x16f)===_0x54f460[_0x374b2a(0x18c)][_0x374b2a(0x10c)]){const _0x1d2c29=[..._0x2399ad(this[_0x374b2a(0x158)])[_0x374b2a(0x1fa)][_0x374b2a(0x1f1)][_0x374b2a(0x16f)][_0x374b2a(0x234)]()];this[_0x374b2a(0x1bf)][_0x374b2a(0x127)](_0x1d2c29,_0x374b2a(0x11a)+this[_0x374b2a(0x118)]?.['id']);}}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x194),(_0x457e84,_0xa2b1ff)=>{const _0x3196e5=_0x5b055a;this[_0x3196e5(0x1a4)][_0x3196e5(0x10e)](_0xa2b1ff[_0x3196e5(0x1ad)]),_0x3196e5(0x140)==_0xa2b1ff[_0x3196e5(0x1ad)]&&this[_0x3196e5(0x240)](),_0x3196e5(0x16f)===_0xa2b1ff[_0x3196e5(0x10c)]&&this[_0x3196e5(0x1bf)][_0x3196e5(0x144)](_0x3196e5(0x11a)+this[_0x3196e5(0x118)]?.['id']);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x19f),(_0x14cebb,_0xc8cbd2)=>{const _0x246e91=_0x5b055a;this[_0x246e91(0x1a4)][_0x246e91(0x192)](_0xc8cbd2[_0x246e91(0x18c)][_0x246e91(0x1ad)],_0xc8cbd2[_0x246e91(0x254)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x1ed),(_0x25388e,_0x50d9d9)=>{const _0x17996c=_0x5b055a;this[_0x17996c(0x1a4)][_0x17996c(0x12c)](_0x50d9d9[_0x17996c(0x131)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x170),(_0x479f25,_0x2071f5)=>{const _0x119fe4=_0x5b055a;this[_0x119fe4(0x1a4)][_0x119fe4(0x190)](_0x2071f5[_0x119fe4(0x1bd)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x219),(_0x36b903,_0x25fdfa)=>{const _0x483708=_0x5b055a;this[_0x483708(0x1a4)][_0x483708(0x182)](_0x25fdfa[_0x483708(0x19c)],_0x25fdfa[_0x483708(0x242)],_0x25fdfa[_0x483708(0x229)],_0x25fdfa[_0x483708(0x1d3)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x149),(_0x2d1f30,_0x5a33f5)=>{const _0x3c0648=_0x5b055a;this[_0x3c0648(0x1a4)][_0x3c0648(0x151)](_0x5a33f5[_0x3c0648(0x19c)],_0x5a33f5[_0x3c0648(0x10a)],_0x5a33f5[_0x3c0648(0x165)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x13d),(_0x143087,_0x18dea8)=>{const _0x106f3c=_0x5b055a;this[_0x106f3c(0x1a4)][_0x106f3c(0x16d)](_0x18dea8);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0x123),(_0x589e8c,_0xa7062c)=>{const _0x27b7dc=_0x5b055a;this[_0x27b7dc(0x1a4)][_0x27b7dc(0x1c6)](_0xa7062c[_0x27b7dc(0x204)],_0xa7062c[_0x27b7dc(0x195)]);}),this[_0x5b055a(0x118)]['on'](_0x5b055a(0xf6),(_0x5e2321,{error:_0x3f93ee,interactionId:_0x58714f,fileName:_0x317742,url:_0x31d62a,sourceId:_0x43f14c,sourceLabel:_0x22519d})=>{const _0x5dd503=_0x5b055a,_0x461f0a=_0x58714f?_0x58714f+':'+_0xe5a092():_0xe5a092();_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x136))?this[_0x5dd503(0x1a4)][_0x5dd503(0x252)]({'staticMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x21a)),'id':_0x461f0a}):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0xff))||_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x1e0))?(this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x23b)),'id':_0x461f0a}),this[_0x5dd503(0x15e)](_0x3f93ee)):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x217))?this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x13b),_0x317742),'id':_0x461f0a}):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x163))?this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x210),_0x31d62a),'id':_0x461f0a}):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x1ee))?this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x130)),'id':_0x461f0a}):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x188))?this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x169)),'id':_0x461f0a}):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x1eb))?(_0x43f14c&&this[_0x5dd503(0x1a4)][_0x5dd503(0xfa)](_0x43f14c),this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x153),_0x22519d||_0x5dd503(0x242)),'id':_0x461f0a}),this[_0x5dd503(0x15e)](_0x3f93ee)):_0x3f93ee[_0x5dd503(0x1b0)][_0x5dd503(0x1f8)](_0x5dd503(0x120))?(this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x23f)),'id':_0x461f0a}),this[_0x5dd503(0x15e)](_0x3f93ee)):(this[_0x5dd503(0x1a4)][_0x5dd503(0x1c5)]({'errorMessage':_0x559272(this[_0x5dd503(0x158)][_0x5dd503(0xf8)],_0x5dd503(0x228)),'id':_0x461f0a}),this[_0x5dd503(0x15e)](_0x3f93ee));}),await this[_0x5b055a(0x118)][_0x5b055a(0x14a)](this[_0x5b055a(0x158)][_0x5b055a(0x102)][_0x5b055a(0x23d)](_0x5b055a(0x23c))),_0x3daf5c||await this[_0x5b055a(0x118)][_0x5b055a(0xfc)]();}async[_0x8ef9ee(0x1c0)]({userMessage:_0x3ea651,quickActionData:_0x19ff33}){const _0x5f3f02=_0x8ef9ee;if(!this[_0x5f3f02(0x118)])throw new _0x485b74(_0x5f3f02(0x1d9));this[_0x5f3f02(0x118)][_0x5f3f02(0x115)]()&&await this[_0x5f3f02(0x118)][_0x5f3f02(0x1db)](this[_0x5f3f02(0x1bf)][_0x5f3f02(0x1f5)]()),this[_0x5f3f02(0x118)]['id']&&this[_0x5f3f02(0x118)][_0x5f3f02(0x1d1)]&&await this[_0x5f3f02(0x118)][_0x5f3f02(0x202)]({'userMessage':_0x3ea651,'quickActionData':_0x19ff33}),this[_0x5f3f02(0x129)]();}[_0x8ef9ee(0x129)](){const _0x4add50=_0x8ef9ee,_0x520ee0=_0x2399ad(this[_0x4add50(0x158)])[_0x4add50(0x1fa)],_0x137d82=Array[_0x4add50(0x1e2)](_0x520ee0[_0x4add50(0x108)][_0x4add50(0x1bc)](_0x7f8b76));_0x520ee0[_0x4add50(0x184)](_0x523bbc=>{const _0x320b32=_0x4add50;_0x137d82[_0x320b32(0x183)](_0x3c24d1=>_0x523bbc[_0x320b32(0x198)](_0x3c24d1));});}[_0x8ef9ee(0x10b)](){const _0x56fcce=_0x8ef9ee;console[_0x56fcce(0x103)](_0x56fcce(0x200));}[_0x8ef9ee(0x233)](_0x277c47){const _0xb4efa1=_0x8ef9ee;this[_0xb4efa1(0x1a4)][_0xb4efa1(0x148)](_0x277c47);}[_0x8ef9ee(0x15e)](_0xa19c78){const _0x2e5c35=_0x8ef9ee;_0x1ba115(_0xa19c78[_0x2e5c35(0x1b0)]);}[_0x8ef9ee(0x1b7)](_0x16f583){const _0x680165=_0x8ef9ee;this[_0x680165(0x118)]?.[_0x680165(0x19b)](_0x16f583);}[_0x8ef9ee(0x20c)](){const _0x59173d=_0x8ef9ee;this[_0x59173d(0x118)]?.[_0x59173d(0x18a)]();}[_0x8ef9ee(0x105)](){const _0x41ef04=_0x8ef9ee;this[_0x41ef04(0x118)]?.[_0x41ef04(0xfe)]();}[_0x8ef9ee(0x1fb)](_0x16f611){const _0x8a6fc2=_0x8ef9ee,[_0x1ac8b7,_0x2fa401]=_0x16f611[_0x8a6fc2(0x17b)](':'),_0x405d53=this[_0x8a6fc2(0x118)][_0x8a6fc2(0x107)](_0x1ac8b7),_0x5c8d79=_0x405d53[_0x8a6fc2(0x11b)](_0x2fa401);return{'interaction':_0x405d53,'reply':_0x5c8d79};}[_0x8ef9ee(0x24c)](_0x5ae017,_0x3dff7b=!0x1){const _0x818c58=_0x8ef9ee,_0x32a510=_0x2399ad(this[_0x818c58(0x158)]),_0x1ab7c1={'target':_0x32a510[_0x818c58(0x256)][_0x818c58(0x109)][_0x818c58(0x1ae)][_0x818c58(0x1f7)](_0x32a510[_0x818c58(0x256)][_0x818c58(0x12d)][_0x818c58(0x215)](_0x5ae017)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3dff7b};_0x3dff7b&&(_0x1ab7c1[_0x818c58(0x159)]=!0x0),_0xdadee6(_0x1ab7c1);}[_0x8ef9ee(0x111)](_0x63435,_0x330ae2=!0x1){const _0x1209a7=_0x8ef9ee;this[_0x1209a7(0x1a4)][_0x1209a7(0x171)](_0x63435||_0x559272(this[_0x1209a7(0x158)][_0x1209a7(0xf8)],_0x1209a7(0x1b3)),_0x330ae2);}async[_0x8ef9ee(0x246)]({reply:_0x25690c,renderingStrategy:_0x27862e}){const _0xd9fc48=_0x8ef9ee,{id:_0x44c15b,isDone:_0x806bd6,type:_0x5527f9,parsedContent:_0xcf05e9}=_0x25690c;if(_0xd9fc48(0x226)===_0x5527f9){const _0x56048f=_0x25690c[_0xd9fc48(0x157)]({'showDiff':this[_0xd9fc48(0x1a4)][_0xd9fc48(0x18e)]});await this[_0xd9fc48(0x1a4)][_0xd9fc48(0xf9)]({'id':_0x44c15b,'parts':_0x56048f,'renderingStrategy':_0x27862e,'isDone':_0x806bd6});}else _0xd9fc48(0x1e7)===_0x5527f9&&await this[_0xd9fc48(0x1a4)][_0xd9fc48(0x1a6)]({'id':_0x44c15b,'parsedContent':_0xcf05e9,'renderingStrategy':_0x27862e,'isDone':_0x806bd6});_0x806bd6&&_0x25690c[_0xd9fc48(0x20d)][_0xd9fc48(0x1af)]>0x0&&this[_0xd9fc48(0x1a4)][_0xd9fc48(0x203)](_0x44c15b,_0x25690c[_0xd9fc48(0x20d)]);}async[_0x8ef9ee(0x221)](){const _0x21760b=_0x8ef9ee,_0x5cdb61=this[_0x21760b(0x118)]?.[_0x21760b(0x1c7)];_0x5cdb61&&(_0x5cdb61[_0x21760b(0x1e8)](),this[_0x21760b(0x1a4)][_0x21760b(0x235)](_0x5cdb61));}async[_0x8ef9ee(0x1a9)](){const _0x1cf94f=_0x8ef9ee,_0x3a07b2=this[_0x1cf94f(0x118)]?.[_0x1cf94f(0x1c7)];if(_0x3a07b2){for await(const _0x37159c of _0x3a07b2[_0x1cf94f(0x224)])await this[_0x1cf94f(0x246)]({'reply':_0x37159c,'renderingStrategy':_0x1cf94f(0x116)});}}[_0x8ef9ee(0x23e)](_0x3f1194){const _0x348497=_0x8ef9ee,_0x44da50={'positiveCount':_0x3f1194[_0x348497(0x236)][_0x348497(0x162)](_0x16af79=>_0x348497(0x1c1)===_0x16af79[_0x348497(0x1df)])[_0x348497(0x1af)],'totalCount':_0x3f1194[_0x348497(0x236)][_0x348497(0x1af)],'modificationId':_0x3f1194['id']},_0x550f97=this[_0x348497(0x118)][_0x348497(0x107)](_0x3f1194[_0x348497(0x126)])[_0x348497(0x145)];this[_0x348497(0x21f)][_0x348497(0x1b4)](this[_0x348497(0x118)]['id'],_0x550f97,_0x44da50);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57d517=_0x5858;(function(_0x4dc0d8,_0x55df08){const _0x4195d1=_0x5858,_0x1e1fb6=_0x4dc0d8();while(!![]){try{const _0x2ee3e9=parseInt(_0x4195d1(0xf2))/0x1+-parseInt(_0x4195d1(0x11e))/0x2*(parseInt(_0x4195d1(0xb5))/0x3)+parseInt(_0x4195d1(0xa9))/0x4+parseInt(_0x4195d1(0x96))/0x5*(parseInt(_0x4195d1(0x91))/0x6)+-parseInt(_0x4195d1(0xb4))/0x7*(-parseInt(_0x4195d1(0xf8))/0x8)+parseInt(_0x4195d1(0xef))/0x9*(-parseInt(_0x4195d1(0xd5))/0xa)+-parseInt(_0x4195d1(0x107))/0xb*(parseInt(_0x4195d1(0xf7))/0xc);if(_0x2ee3e9===_0x55df08)break;else _0x1e1fb6['push'](_0x1e1fb6['shift']());}catch(_0x240fac){_0x1e1fb6['push'](_0x1e1fb6['shift']());}}}(_0x32c7,0xb4f6b));import{ContextPlugin as _0x2537a1}from'ckeditor5/src/core.js';function _0x32c7(){const _0x2e0164=['812210bSQNjW','showResizeButton','bind','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setContextItemLoading','addFeedInteractionHeader','then','toggleSuggestionDisplayMode','removeContextItem','enableModelSelector','stopInteraction','removeFeedInteraction','addContextItem','stopAutoScroll','isReasoningEnabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','has','setSelectedModel','4680452QfwlnI','userMessage','feedItemRenderingStrategy','availableModels','addTab','clearConversationContextUI','_view','interaction-header','queueEmptyPromise','isTrackChangesOn','delegate','7QFdgPz','3MbYVPH','ai-reply','markItemAsDone','quickActionData','disableControls','error-message','filter','children','updateFeedItemAIReplyContent','context','scrollFeedToSuggestion','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','focusPromptInput','closeSourceResourceBalloon','chatControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','scrollToSuggestion','_promiseQueue','isDisabled','values','TrackChanges','_animateConversationTitle','length','chatFeed','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_isTrackChangesCommandValueBound','</p>','startsWith','isDone','addItem','finishInteraction','10myLqfr','streaming','addFeedItemAIReply','view','chat','isPending','updateFeedItemAIReplySources','_getLoadingMessage','addFeedItemError','setInputPlaceholder','<p>','ai.chat.context.searchInputVisibleFrom','clearPendingContextUI','label','isOfficialPlugin','AI_CHAT_HEADING','updateWebSources','set','last','find','commands','setFeedItemRenderingStrategy','ai.availableReplyActions','addFeedItemUserMessage','conversation-start','_interactionPromiseResolver','6817707UstWbt','displayedPrompt','insertSuggestion','351219udJWtq','enableControls','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedItemAISuggestion','1644PZDZHU','3740048rKeLzX','resetConversationTitle','isModelAvailable','setLoadingMessage','showDiff','abort','isMaximized','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','forEach','_getInputPlaceholder','AI_CHAT_WELCOME_MESSAGE','updateSuggestionPartState','isVisible','119097VRWpir','requires','setReasoning','setModelList','markFeedItemAsDone','updateResourceState','pluginName','interactionId','setConversationTitle','startAutoScroll','addFeedItemStaticMessage','from','enqueue','isPremiumPlugin','populateSourceResourceBalloon','removeItem','startInteraction','value','plugins','ai-suggestion-reply','updateFeedItemAIReplySuggestionContent','updateReplyItem','setConversationContext','612650IDziYM','options','setIsMaximized','_titleAnimationInterval','get','areActionsDisabled','isBusy','clear','createConversation','setIsUploadInProgress','updateFeedInteractionHeader','setModel','AITabs','AIChatUI','chatHeader','locale','updateFeedItemAIReplySuggestionPartState','ai.chat.models.modelSelectorAlwaysVisible','isWebSearchEnabled','setAddContextOptions','updateCapabilities','config','user-message','toggleLoadingSkeleton','destroy','trackChanges','isLoading','disableModelSelector','48FMvEJm','resetMessageInput','remove','contextItems','setWebSearch'];_0x32c7=function(){return _0x2e0164;};return _0x32c7();}import{_isMotionReduced as _0x273781}from'ckeditor5/src/utils.js';import{AIChatView as _0x60ff05}from'./ui/aichatview.js';import{AITabs as _0x2959ad}from'../aitabs/aitabs.js';function _0x5858(_0x80ccc4,_0x4f085c){const _0x32c7db=_0x32c7();return _0x5858=function(_0x585891,_0x3a7cb3){_0x585891=_0x585891-0x7c;let _0x5f1819=_0x32c7db[_0x585891];return _0x5f1819;},_0x5858(_0x80ccc4,_0x4f085c);}import{getTranslation as _0x2f2911}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x158aee}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x35ba7a}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x48b59a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43a607}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x149006}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x416fd8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2537a1{static get[_0x57d517(0x108)](){return[_0x2959ad];}[_0x57d517(0xaf)];static get[_0x57d517(0x10d)](){const _0x174277=_0x57d517;return _0x174277(0x82);}static get[_0x57d517(0xe3)](){return!0x0;}static get[_0x57d517(0x114)](){return!0x0;}[_0x57d517(0xab)]=_0x57d517(0xd6);[_0x57d517(0xfc)]=!0x0;[_0x57d517(0xc7)];[_0x57d517(0xee)];[_0x57d517(0x121)]=void 0x0;[_0x57d517(0xcf)]=!0x1;constructor(_0x3e5f72){const _0xf73cd5=_0x57d517;super(_0x3e5f72);const _0x4f98aa=this[_0xf73cd5(0xbe)][_0xf73cd5(0x119)][_0xf73cd5(0x122)](_0xf73cd5(0x81));this[_0xf73cd5(0xe6)](_0xf73cd5(0x124),!0x1),this[_0xf73cd5(0xc7)]=new _0x48b59a(),this[_0xf73cd5(0xaf)]=new _0x60ff05(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],{'showResizeButton':_0x4f98aa[_0xf73cd5(0x97)],'contextResourcesSearchInputVisibleFrom':this[_0xf73cd5(0xbe)][_0xf73cd5(0x8a)][_0xf73cd5(0x122)](_0xf73cd5(0xe0))}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xb3)](..._0x43a607)['to'](this),this[_0xf73cd5(0xaf)]['on'](_0xf73cd5(0x9e),(_0x5d500d,{showDiff:_0xec250})=>{const _0x3248ea=_0xf73cd5;this[_0x3248ea(0xfc)]=_0xec250;}),_0x4f98aa[_0xf73cd5(0xd8)][_0xf73cd5(0xad)]({'id':_0xf73cd5(0xd9),'buttonLabel':_0x2f2911(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],_0xf73cd5(0xe4)),'buttonIcon':_0x158aee,'order':0x0,'content':this[_0xf73cd5(0xaf)]}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0x98)](_0xf73cd5(0x8f))['to'](this,_0xf73cd5(0x124),_0x551d81=>_0x551d81),this[_0xf73cd5(0xaf)][_0xf73cd5(0xcd)][_0xf73cd5(0x98)](_0xf73cd5(0xda))['to'](this,_0xf73cd5(0x124),_0x4261ab=>_0x4261ab),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0xde)](this[_0xf73cd5(0x103)]()),this[_0xf73cd5(0x98)](_0xf73cd5(0xfa))['to'](this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)],_0xf73cd5(0xfa));}[_0x57d517(0x8d)](){const _0xcb3b03=_0x57d517;super[_0xcb3b03(0x8d)](),this[_0xcb3b03(0x121)]&&clearInterval(this[_0xcb3b03(0x121)]);}[_0x57d517(0x7d)](_0x3ebe54){const _0x28806e=_0x57d517;this[_0x28806e(0xaf)][_0x28806e(0xcd)][_0x28806e(0x7c)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0xa0)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0x10a)](_0x3ebe54[_0x28806e(0xac)],!this[_0x28806e(0xbe)][_0x28806e(0x8a)][_0x28806e(0x122)](_0x28806e(0x86))),this[_0x28806e(0x111)]({'id':_0x28806e(0xed),'staticMessage':_0x2f2911(this[_0x28806e(0xbe)][_0x28806e(0x84)],_0x28806e(0x104))});}[_0x57d517(0x111)]({id:_0x43bb10,staticMessage:_0x2228e4}){const _0x7c5e06=_0x57d517;this[_0x7c5e06(0xaf)][_0x7c5e06(0xcd)][_0x7c5e06(0xd3)](_0x7c5e06(0xb6),{'id':_0x43bb10,'initialContent':_0x7c5e06(0xdf)+_0x2228e4+_0x7c5e06(0xd0)});}[_0x57d517(0xec)](_0x554242){const _0x1769a9=_0x57d517,_0x5c5979=_0x554242[_0x1769a9(0xb8)]?.[_0x1769a9(0xf0)]||_0x554242[_0x1769a9(0xaa)];this[_0x1769a9(0xaf)][_0x1769a9(0xcd)][_0x1769a9(0xd3)](_0x1769a9(0x8b),{'contextItems':Array[_0x1769a9(0x112)](_0x554242[_0x1769a9(0x94)][_0x1769a9(0xc9)]()),'initialContent':_0x1769a9(0xdf)+_0x5c5979+_0x1769a9(0xd0),'id':_0x554242['id']});}[_0x57d517(0xdd)]({errorMessage:_0x172ee1,id:_0x34f6}){const _0x5160b9=_0x57d517;this[_0x5160b9(0xaf)][_0x5160b9(0xcd)][_0x5160b9(0xd3)](_0x5160b9(0xba),{'initialContent':_0x5160b9(0xdf)+_0x172ee1+_0x5160b9(0xd0),'id':_0x34f6});}[_0x57d517(0xd7)](_0x24d12c){const _0x1238f6=_0x57d517;return this[_0x1238f6(0xc7)][_0x1238f6(0x113)](async()=>{const _0x10eaa4=_0x1238f6;this[_0x10eaa4(0xaf)][_0x10eaa4(0xcd)][_0x10eaa4(0xd3)](_0x10eaa4(0xb6),{'id':_0x24d12c[_0x10eaa4(0x10e)]+':'+_0x24d12c['id']}),this[_0x10eaa4(0xfb)](null);});}async[_0x57d517(0xf6)](_0xdf766b){const _0x560d22=_0x57d517,_0xc405b7=_0x149006(this[_0x560d22(0xbe)]);let _0x72c0ac=_0xc405b7[_0x560d22(0x8a)][_0x560d22(0x122)](_0x560d22(0xeb))||[..._0x416fd8];if(_0xc405b7[_0x560d22(0x119)][_0x560d22(0xa7)](_0x560d22(0xca))){if(!this[_0x560d22(0xcf)]){this[_0x560d22(0xcf)]=!0x0;const _0x187708=_0xc405b7[_0x560d22(0xe9)][_0x560d22(0x122)](_0x560d22(0x8e));this[_0x560d22(0xaf)][_0x560d22(0xcd)][_0x560d22(0x98)](_0x560d22(0xb2))['to'](_0x187708,_0x560d22(0x118));}}else _0x72c0ac=_0x72c0ac[_0x560d22(0xbb)](_0x48196c=>_0x560d22(0xf1)!=_0x48196c);return this[_0x560d22(0xc7)][_0x560d22(0x113)](async()=>{const _0x3e808a=_0x560d22;this[_0x3e808a(0xaf)][_0x3e808a(0xcd)][_0x3e808a(0xd3)](_0x3e808a(0x11a),{'id':_0xdf766b[_0x3e808a(0x10e)]+':'+_0xdf766b['id'],'areActionsDisabled':_0xdf766b[_0x3e808a(0x123)],'showDiff':this[_0x3e808a(0xfc)],'availableActions':_0x72c0ac}),this[_0x3e808a(0xfb)](null);});}[_0x57d517(0x9c)](_0x14bb26,_0x3bd6f5){const _0x57677f=_0x57d517,_0x19d6a0=this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0xe7)];if(_0x19d6a0 instanceof _0x35ba7a)return this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0x93)](_0x19d6a0),void this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':{'isWebSearchEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0x87)]||_0x3bd6f5[_0x57677f(0x87)],'isReasoningEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0xa5)]||_0x3bd6f5[_0x57677f(0xa5)]}});this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':_0x3bd6f5});}[_0x57d517(0x7f)](_0x4cee3d){const _0x2c3325=_0x57d517,_0x49b66d=this[_0x2c3325(0xaf)][_0x2c3325(0xcd)][_0x2c3325(0xbc)][_0x2c3325(0xe8)](_0x482de4=>_0x482de4[_0x2c3325(0x11f)]['id']==_0x4cee3d['id']&&_0x482de4 instanceof _0x35ba7a);_0x49b66d&&_0x49b66d[_0x2c3325(0xe6)](_0x2c3325(0x106),_0x4cee3d[_0x2c3325(0x106)]);}async[_0x57d517(0xbd)](_0x3af041){const _0x52f593=_0x57d517,_0x221982=_0x3af041[_0x52f593(0xff)]||this[_0x52f593(0xab)];return this[_0x52f593(0xc7)][_0x52f593(0x113)](async _0x2fc90a=>{const _0x1b11f7=_0x52f593;await this[_0x1b11f7(0xaf)][_0x1b11f7(0xcd)][_0x1b11f7(0x11c)]({..._0x3af041,'abortSignal':_0x2fc90a,'renderingStrategy':_0x221982}),_0x3af041[_0x1b11f7(0xd2)]&&this[_0x1b11f7(0x10b)](_0x3af041['id']);});}[_0x57d517(0xdb)](_0x12788d,_0x179105){const _0x115b95=_0x57d517;this[_0x115b95(0xaf)][_0x115b95(0xcd)][_0x115b95(0xe5)](_0x12788d,_0x179105);}async[_0x57d517(0x11b)](_0x4fff99){const _0x3da720=_0x57d517,_0x89d411=_0x4fff99[_0x3da720(0xff)]||this[_0x3da720(0xab)];return this[_0x3da720(0xc7)][_0x3da720(0x113)](async _0x58c20d=>{const _0x424041=_0x3da720;await this[_0x424041(0xaf)][_0x424041(0xcd)][_0x424041(0x99)]({..._0x4fff99,'abortSignal':_0x58c20d,'renderingStrategy':_0x89d411}),_0x4fff99[_0x424041(0xd2)]&&this[_0x424041(0x10b)](_0x4fff99['id']);});}[_0x57d517(0x85)](_0x399c98){const _0x2c0f7a=_0x57d517;this[_0x2c0f7a(0xaf)][_0x2c0f7a(0xcd)][_0x2c0f7a(0x105)](_0x399c98);}[_0x57d517(0x10b)](_0x555e86){const _0x17053e=_0x57d517;this[_0x17053e(0xaf)][_0x17053e(0xcd)][_0x17053e(0xb7)](_0x555e86);}[_0x57d517(0xa2)](_0x25bf84){const _0x14e527=_0x57d517;this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0xf4)]()[_0x14e527(0xbb)](_0xa64901=>_0xa64901[_0x14e527(0xd1)](_0x25bf84))[_0x14e527(0x102)](_0x72f709=>this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0x116)](_0x72f709));}[_0x57d517(0x117)](){const _0x4bc009=_0x57d517;this[_0x4bc009(0xfb)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x4bc009(0xaf)][_0x4bc009(0xc4)][_0x4bc009(0x90)](!this[_0x4bc009(0xbe)][_0x4bc009(0x8a)][_0x4bc009(0x122)](_0x4bc009(0x86))),this[_0x4bc009(0x124)]=!0x0,this[_0x4bc009(0xaf)][_0x4bc009(0xcd)][_0x4bc009(0x110)]();}[_0x57d517(0xa1)](_0xf16f2c){const _0x84f258=_0x57d517;this[_0x84f258(0xc7)][_0x84f258(0xfd)](),this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xf4)]()[_0x84f258(0xbb)](_0x1c9e71=>_0x1c9e71[_0x84f258(0xd1)](_0xf16f2c['id']))[_0x84f258(0x102)](_0x297c42=>this[_0x84f258(0x10b)](_0x297c42)),this[_0x84f258(0x124)]=!0x1,this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xa4)]();}async[_0x57d517(0xd4)](){const _0x56fb7c=_0x57d517;return this[_0x56fb7c(0xc7)][_0x56fb7c(0xb1)][_0x56fb7c(0x9d)](()=>{const _0x7f1e0c=_0x56fb7c;this[_0x7f1e0c(0x124)]=!0x1,this[_0x7f1e0c(0xaf)][_0x7f1e0c(0xcd)][_0x7f1e0c(0xa4)]();});}[_0x57d517(0xa3)](_0x3cabaf,_0x5a184f){const _0x44b38a=_0x57d517;this[_0x44b38a(0xaf)][_0x44b38a(0xc4)][_0x44b38a(0xa3)](_0x3cabaf,_0x5a184f);}[_0x57d517(0x9f)](_0x21ff59){const _0x5c47a9=_0x57d517;this[_0x5c47a9(0xaf)][_0x5c47a9(0xc4)][_0x5c47a9(0x9f)](_0x21ff59);}[_0x57d517(0x9b)](_0x4791f8,_0x5b0544){const _0x2d8174=_0x57d517;this[_0x2d8174(0xaf)][_0x2d8174(0xc4)][_0x2d8174(0x9b)](_0x4791f8,_0x5b0544);}[_0x57d517(0x7e)](_0x2cc9fe){const _0x225c86=_0x57d517;this[_0x225c86(0xaf)][_0x225c86(0xc4)][_0x225c86(0x7e)](_0x2cc9fe);}[_0x57d517(0x11d)](_0x4f8891){const _0x5629dd=_0x57d517;this[_0x5629dd(0xaf)][_0x5629dd(0xc4)][_0x5629dd(0x11d)](_0x4f8891);}[_0x57d517(0xe1)](){const _0x474528=_0x57d517;this[_0x474528(0xaf)][_0x474528(0xc4)][_0x474528(0xe1)]();}[_0x57d517(0xae)](){const _0x86edbe=_0x57d517;this[_0x86edbe(0xaf)][_0x86edbe(0xc4)][_0x86edbe(0xae)]();}[_0x57d517(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9){const _0x118aa8=_0x57d517;this[_0x118aa8(0xaf)][_0x118aa8(0xc4)][_0x118aa8(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9);}[_0x57d517(0x92)](){const _0x2bfe2f=_0x57d517;this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0x92)](),this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0xde)](this[_0x2bfe2f(0x103)]());}[_0x57d517(0x88)](_0x940a16){const _0x369a60=_0x57d517;this[_0x369a60(0xaf)][_0x369a60(0xc4)][_0x369a60(0x88)](_0x940a16);}[_0x57d517(0x89)](_0x30b03b){const _0x157270=_0x57d517;this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x95)](_0x30b03b[_0x157270(0x87)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x109)](_0x30b03b[_0x157270(0xa5)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0xde)](this[_0x157270(0x103)](_0x30b03b));}[_0x57d517(0xa8)](_0x32c596,_0x34a7de){const _0x5a0307=_0x57d517;this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x80)](_0x32c596),_0x34a7de&&this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x90)](!0x1);}[_0x57d517(0xea)](_0x4bdafc){const _0x878fb2=_0x57d517;this[_0x878fb2(0xab)]=_0x4bdafc;}[_0x57d517(0x8c)](_0x8d9e1f){const _0x3c2d54=_0x57d517;this[_0x3c2d54(0xaf)][_0x3c2d54(0xcd)][_0x3c2d54(0x8c)](_0x8d9e1f);}[_0x57d517(0xf9)](){const _0x269998=_0x57d517;this[_0x269998(0x10f)](_0x2f2911(this[_0x269998(0xbe)][_0x269998(0x84)],_0x269998(0xe4)));}[_0x57d517(0x10f)](_0x5c5797,_0x5f1893=!0x1){const _0x437349=_0x57d517;if(_0x5f1893&&!_0x273781()&&_0x5c5797[_0x437349(0xcc)])return this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]='',void this[_0x437349(0xcb)](_0x5c5797);this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]=_0x5c5797;}[_0x57d517(0xfb)](_0x267e41){const _0x4b2e60=_0x57d517,_0x21842d=this[_0x4b2e60(0xdc)](_0x267e41);this[_0x4b2e60(0xaf)][_0x4b2e60(0xcd)][_0x4b2e60(0xfb)](_0x21842d);}[_0x57d517(0xcb)](_0x500aaa){const _0x417251=_0x57d517;let _0x5951cd=0x0;clearInterval(this[_0x417251(0x121)]),this[_0x417251(0x121)]=setInterval(()=>{const _0x27c1da=_0x417251;this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]=this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]+_0x500aaa[_0x5951cd],_0x5951cd++,_0x5951cd===_0x500aaa[_0x27c1da(0xcc)]&&clearInterval(this[_0x27c1da(0x121)]);},0x1e);}[_0x57d517(0x120)](_0x4379d7){const _0x3e9b65=_0x57d517;this[_0x3e9b65(0xaf)][_0x3e9b65(0x83)][_0x3e9b65(0xfe)]=_0x4379d7;}[_0x57d517(0xdc)](_0x1dc7fd){const _0x29083e=_0x57d517;return _0x1dc7fd?_0x1dc7fd[_0x29083e(0x87)]&&_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xc1)):_0x1dc7fd[_0x29083e(0x87)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0x101)):_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xce)):_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xf5)):'';}[_0x57d517(0x103)](_0xf30f55){const _0x2780ae=_0x57d517;return _0xf30f55?_0xf30f55[_0x2780ae(0x87)]&&_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xa6)):_0xf30f55[_0x2780ae(0x87)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x9a)):_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x100)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5));}[_0x57d517(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660){const _0xaa097b=_0x57d517;this[_0xaa097b(0xaf)][_0xaa097b(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660);}[_0x57d517(0xc3)](_0x1c6432){const _0x404a00=_0x57d517;this[_0x404a00(0xaf)][_0x404a00(0xc3)](_0x1c6432);}[_0x57d517(0xc2)](){const _0x1c3abb=_0x57d517;this[_0x1c3abb(0xaf)][_0x1c3abb(0xc4)][_0x1c3abb(0xc2)]();}[_0x57d517(0xbf)](_0x30a14e,_0x29f8cd){const _0x45a0c8=_0x57d517;this[_0x45a0c8(0xaf)][_0x45a0c8(0xcd)][_0x45a0c8(0xc6)](_0x30a14e,_0x29f8cd);}[_0x57d517(0x110)](){const _0x1a68cf=_0x57d517;this[_0x1a68cf(0xaf)][_0x1a68cf(0xcd)][_0x1a68cf(0x110)]();}[_0x57d517(0xb9)](){const _0x119c59=_0x57d517;this[_0x119c59(0xaf)][_0x119c59(0xc4)][_0x119c59(0xc8)]=!0x0;}[_0x57d517(0xf3)](){const _0x236302=_0x57d517;this[_0x236302(0xaf)][_0x236302(0xc4)][_0x236302(0xc8)]=!0x1;}}
23
+ const _0x122ca7=_0x243e;(function(_0x4cf96c,_0x4a6ef5){const _0x341636=_0x243e,_0x5e6728=_0x4cf96c();while(!![]){try{const _0x448a14=parseInt(_0x341636(0xc4))/0x1+-parseInt(_0x341636(0xd6))/0x2+-parseInt(_0x341636(0xfb))/0x3*(parseInt(_0x341636(0xe9))/0x4)+-parseInt(_0x341636(0xd1))/0x5*(-parseInt(_0x341636(0x13f))/0x6)+-parseInt(_0x341636(0xca))/0x7*(parseInt(_0x341636(0x107))/0x8)+-parseInt(_0x341636(0xaa))/0x9*(parseInt(_0x341636(0x135))/0xa)+parseInt(_0x341636(0xbc))/0xb*(parseInt(_0x341636(0xe6))/0xc);if(_0x448a14===_0x4a6ef5)break;else _0x5e6728['push'](_0x5e6728['shift']());}catch(_0x2ef252){_0x5e6728['push'](_0x5e6728['shift']());}}}(_0x2cc1,0x57b27));import{ContextPlugin as _0x3bca90}from'ckeditor5/src/core.js';function _0x243e(_0x5c2981,_0x337a70){const _0x2cc1d8=_0x2cc1();return _0x243e=function(_0x243e40,_0x17f773){_0x243e40=_0x243e40-0x9d;let _0x44ac1b=_0x2cc1d8[_0x243e40];return _0x44ac1b;},_0x243e(_0x5c2981,_0x337a70);}import{_isMotionReduced as _0x56ac7f}from'ckeditor5/src/utils.js';import{AIChatView as _0x3b8739}from'./ui/aichatview.js';import{AITabs as _0x2c3cec}from'../aitabs/aitabs.js';function _0x2cc1(){const _0x415301=['setLoadingMessage','scrollToSuggestion','updateReplyItem','focusPromptInput','updateFeedInteractionHeader','forEach','commands','enqueue','set','clearConversationContextUI','closeSourceResourceBalloon','resetConversationTitle','isModelAvailable','from','isVisible','context','18931QOzpiW','AI_CHAT_HEADING','addFeedItemUserMessage','length','_promiseQueue','renderingStrategy','conversation-start','interaction-header','320076gjJgnE','_isTrackChangesCommandValueBound','addTab','removeFeedInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','stopInteraction','27041IoudHe','requires','quickActionData','updateCapabilities','startAutoScroll','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','addContextItem','5zygGYD','get','filter','queueEmptyPromise','isLoading','148394HzQIgo','view','user-message','disableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','chat','updateResourceState','then','bind','TrackChanges','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','insertSuggestion','markItemAsDone','chatControls','getItemIds','config','2628rLHApv','addItem','isMaximized','44YutuFI','showResizeButton','updateFeedItemAIReplySources','chatHeader','capabilities','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','last','_animateConversationTitle','setInputPlaceholder','contextItems','locale','abort','setReasoning','values','isOfficialPlugin','enableModelSelector','isBusy','setConversationContext','70593jwlHeA','setIsMaximized','interactionId','remove','startsWith','plugins','scrollFeedToSuggestion','ai.availableReplyActions','isPending','createConversation','removeItem','AI_CHAT_WELCOME_MESSAGE','680JqnYwk','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','label','resetMessageInput','enableControls','setWebSearch','value','showDiff','error-message','<p>','markFeedItemAsDone','areActionsDisabled','updateFeedItemAIReplySuggestionPartState','ai-reply','find','removeContextItem','ai.chat.context.searchInputVisibleFrom','setSelectedModel','isReasoningEnabled','setFeedItemRenderingStrategy','addFeedInteractionHeader','_titleAnimationInterval','disableControls','toggleLoadingSkeleton','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','</p>','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplyContent','populateSourceResourceBalloon','feedItemRenderingStrategy','_getLoadingMessage','finishInteraction','updateWebSources','updateSuggestionPartState','startInteraction','_getInputPlaceholder','isPremiumPlugin','_view','isDone','isDisabled','addFeedItemError','addFeedItemStaticMessage','setIsUploadInProgress','ai-suggestion-reply','updateSuggestionItem','10gamxJS','AIChatUI','stopAutoScroll','has','userMessage','setModelList','delegate','ai.chat.models.modelSelectorAlwaysVisible','children','setConversationTitle','4214532YmWKeQ','AITabs','setAddContextOptions','clear','trackChanges','setModel','isWebSearchEnabled','setContextItemLoading','chatFeed','availableModels','pluginName','addFeedItemAIReply','options','streaming','toggleSuggestionDisplayMode','_interactionPromiseResolver','displayedPrompt','clearPendingContextUI','isTrackChangesOn','addFeedItemAISuggestion','3409173OsWfqi','destroy'];_0x2cc1=function(){return _0x415301;};return _0x2cc1();}import{getTranslation as _0x27ff45}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x14104c}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4b18c2}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x86e6d7}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2e375e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xf13701}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4c92a9}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x3bca90{static get[_0x122ca7(0xcb)](){return[_0x2c3cec];}[_0x122ca7(0x12d)];static get[_0x122ca7(0xa0)](){const _0x53387a=_0x122ca7;return _0x53387a(0x136);}static get[_0x122ca7(0xf7)](){return!0x0;}static get[_0x122ca7(0x12c)](){return!0x0;}[_0x122ca7(0x125)]=_0x122ca7(0xa3);[_0x122ca7(0x10f)]=!0x0;[_0x122ca7(0xc0)];[_0x122ca7(0xa5)];[_0x122ca7(0x11d)]=void 0x0;[_0x122ca7(0xc5)]=!0x1;constructor(_0x4d201f){const _0x375419=_0x122ca7;super(_0x4d201f);const _0x5ab3f4=this[_0x375419(0xbb)][_0x375419(0x100)][_0x375419(0xd2)](_0x375419(0x140));this[_0x375419(0xb4)](_0x375419(0xf9),!0x1),this[_0x375419(0xc0)]=new _0x86e6d7(),this[_0x375419(0x12d)]=new _0x3b8739(this[_0x375419(0xbb)][_0x375419(0xf3)],{'showResizeButton':_0x5ab3f4[_0x375419(0xea)],'contextResourcesSearchInputVisibleFrom':this[_0x375419(0xbb)][_0x375419(0xe5)][_0x375419(0xd2)](_0x375419(0x118))}),this[_0x375419(0x12d)][_0x375419(0x13b)](..._0x2e375e)['to'](this),this[_0x375419(0x12d)]['on'](_0x375419(0xa4),(_0x40172c,{showDiff:_0x391e62})=>{const _0x1cb508=_0x375419;this[_0x1cb508(0x10f)]=_0x391e62;}),_0x5ab3f4[_0x375419(0xd7)][_0x375419(0xc6)]({'id':_0x375419(0xdb),'buttonLabel':_0x27ff45(this[_0x375419(0xbb)][_0x375419(0xf3)],_0x375419(0xbd)),'buttonIcon':_0x14104c,'order':0x0,'content':this[_0x375419(0x12d)]}),this[_0x375419(0x12d)][_0x375419(0xe3)][_0x375419(0xde)](_0x375419(0xd5))['to'](this,_0x375419(0xf9),_0x28b649=>_0x28b649),this[_0x375419(0x12d)][_0x375419(0x9e)][_0x375419(0xde)](_0x375419(0x103))['to'](this,_0x375419(0xf9),_0x13e366=>_0x13e366),this[_0x375419(0x12d)][_0x375419(0xe3)][_0x375419(0xf1)](this[_0x375419(0x12b)]()),this[_0x375419(0xde)](_0x375419(0xb8))['to'](this[_0x375419(0x12d)][_0x375419(0xe3)],_0x375419(0xb8));}[_0x122ca7(0xab)](){const _0x42beab=_0x122ca7;super[_0x42beab(0xab)](),this[_0x42beab(0x11d)]&&clearInterval(this[_0x42beab(0x11d)]);}[_0x122ca7(0x104)](_0x3ba24a){const _0x42b50a=_0x122ca7;this[_0x42b50a(0x12d)][_0x42b50a(0x9e)][_0x42b50a(0x142)](),this[_0x42b50a(0x12d)][_0x42b50a(0xe3)][_0x42b50a(0xf8)](),this[_0x42b50a(0x12d)][_0x42b50a(0xe3)][_0x42b50a(0x13a)](_0x3ba24a[_0x42b50a(0x9f)],!this[_0x42b50a(0xbb)][_0x42b50a(0xe5)][_0x42b50a(0xd2)](_0x42b50a(0x13c))),this[_0x42b50a(0x131)]({'id':_0x42b50a(0xc2),'staticMessage':_0x27ff45(this[_0x42b50a(0xbb)][_0x42b50a(0xf3)],_0x42b50a(0x106))});}[_0x122ca7(0x131)]({id:_0x15dba0,staticMessage:_0x42c808}){const _0x67a121=_0x122ca7;this[_0x67a121(0x12d)][_0x67a121(0x9e)][_0x67a121(0xe7)](_0x67a121(0x115),{'id':_0x15dba0,'initialContent':_0x67a121(0x111)+_0x42c808+_0x67a121(0x121)});}[_0x122ca7(0xbe)](_0x14a61f){const _0x526b01=_0x122ca7,_0x555e17=_0x14a61f[_0x526b01(0xcc)]?.[_0x526b01(0xa6)]||_0x14a61f[_0x526b01(0x139)];this[_0x526b01(0x12d)][_0x526b01(0x9e)][_0x526b01(0xe7)](_0x526b01(0xd8),{'contextItems':Array[_0x526b01(0xb9)](_0x14a61f[_0x526b01(0xf2)][_0x526b01(0xf6)]()),'initialContent':_0x526b01(0x111)+_0x555e17+_0x526b01(0x121),'id':_0x14a61f['id']});}[_0x122ca7(0x130)]({errorMessage:_0x2592e4,id:_0x3bb3b1}){const _0x2903c6=_0x122ca7;this[_0x2903c6(0x12d)][_0x2903c6(0x9e)][_0x2903c6(0xe7)](_0x2903c6(0x110),{'initialContent':_0x2903c6(0x111)+_0x2592e4+_0x2903c6(0x121),'id':_0x3bb3b1});}[_0x122ca7(0xa1)](_0x2b7d20){const _0x2b37c0=_0x122ca7;return this[_0x2b37c0(0xc0)][_0x2b37c0(0xb3)](async()=>{const _0x3a3dc4=_0x2b37c0;this[_0x3a3dc4(0x12d)][_0x3a3dc4(0x9e)][_0x3a3dc4(0xe7)](_0x3a3dc4(0x115),{'id':_0x2b7d20[_0x3a3dc4(0xfd)]+':'+_0x2b7d20['id']}),this[_0x3a3dc4(0xac)](null);});}async[_0x122ca7(0xa9)](_0x189d1e){const _0x1164a0=_0x122ca7,_0x291b1b=_0xf13701(this[_0x1164a0(0xbb)]);let _0x332e9d=_0x291b1b[_0x1164a0(0xe5)][_0x1164a0(0xd2)](_0x1164a0(0x102))||[..._0x4c92a9];if(_0x291b1b[_0x1164a0(0x100)][_0x1164a0(0x138)](_0x1164a0(0xdf))){if(!this[_0x1164a0(0xc5)]){this[_0x1164a0(0xc5)]=!0x0;const _0x458dd3=_0x291b1b[_0x1164a0(0xb2)][_0x1164a0(0xd2)](_0x1164a0(0x143));this[_0x1164a0(0x12d)][_0x1164a0(0x9e)][_0x1164a0(0xde)](_0x1164a0(0xa8))['to'](_0x458dd3,_0x1164a0(0x10e));}}else _0x332e9d=_0x332e9d[_0x1164a0(0xd3)](_0xa61e17=>_0x1164a0(0xe1)!=_0xa61e17);return this[_0x1164a0(0xc0)][_0x1164a0(0xb3)](async()=>{const _0x1a85c0=_0x1164a0;this[_0x1a85c0(0x12d)][_0x1a85c0(0x9e)][_0x1a85c0(0xe7)](_0x1a85c0(0x133),{'id':_0x189d1e[_0x1a85c0(0xfd)]+':'+_0x189d1e['id'],'areActionsDisabled':_0x189d1e[_0x1a85c0(0x113)],'showDiff':this[_0x1a85c0(0x10f)],'availableActions':_0x332e9d}),this[_0x1a85c0(0xac)](null);});}[_0x122ca7(0x11c)](_0x4732b6,_0xb34f22){const _0x2e880b=_0x122ca7,_0x3e0b2f=this[_0x2e880b(0x12d)][_0x2e880b(0x9e)][_0x2e880b(0x13d)][_0x2e880b(0xef)];if(_0x3e0b2f instanceof _0x4b18c2)return this[_0x2e880b(0x12d)][_0x2e880b(0x9e)][_0x2e880b(0x13d)][_0x2e880b(0xfe)](_0x3e0b2f),void this[_0x2e880b(0x12d)][_0x2e880b(0x9e)][_0x2e880b(0xe7)](_0x2e880b(0xc3),{'id':_0x4732b6['id'],'capabilities':{'isWebSearchEnabled':_0x3e0b2f[_0x2e880b(0xed)][_0x2e880b(0x145)]||_0xb34f22[_0x2e880b(0x145)],'isReasoningEnabled':_0x3e0b2f[_0x2e880b(0xed)][_0x2e880b(0x11a)]||_0xb34f22[_0x2e880b(0x11a)]}});this[_0x2e880b(0x12d)][_0x2e880b(0x9e)][_0x2e880b(0xe7)](_0x2e880b(0xc3),{'id':_0x4732b6['id'],'capabilities':_0xb34f22});}[_0x122ca7(0xb0)](_0x200022){const _0x4b02c2=_0x122ca7,_0x1ae61a=this[_0x4b02c2(0x12d)][_0x4b02c2(0x9e)][_0x4b02c2(0x13d)][_0x4b02c2(0x116)](_0x11c2bf=>_0x11c2bf[_0x4b02c2(0xa2)]['id']==_0x200022['id']&&_0x11c2bf instanceof _0x4b18c2);_0x1ae61a&&_0x1ae61a[_0x4b02c2(0xb4)](_0x4b02c2(0xba),_0x200022[_0x4b02c2(0xba)]);}async[_0x122ca7(0x123)](_0x31c3eb){const _0xdca8b6=_0x122ca7,_0x54527d=_0x31c3eb[_0xdca8b6(0xc1)]||this[_0xdca8b6(0x125)];return this[_0xdca8b6(0xc0)][_0xdca8b6(0xb3)](async _0xfaf8eb=>{const _0x2503a5=_0xdca8b6;await this[_0x2503a5(0x12d)][_0x2503a5(0x9e)][_0x2503a5(0xae)]({..._0x31c3eb,'abortSignal':_0xfaf8eb,'renderingStrategy':_0x54527d}),_0x31c3eb[_0x2503a5(0x12e)]&&this[_0x2503a5(0x112)](_0x31c3eb['id']);});}[_0x122ca7(0xeb)](_0x497863,_0x12f08d){const _0x6f98b8=_0x122ca7;this[_0x6f98b8(0x12d)][_0x6f98b8(0x9e)][_0x6f98b8(0x128)](_0x497863,_0x12f08d);}async[_0x122ca7(0x122)](_0x55ba18){const _0xcc9f08=_0x122ca7,_0x5e62c2=_0x55ba18[_0xcc9f08(0xc1)]||this[_0xcc9f08(0x125)];return this[_0xcc9f08(0xc0)][_0xcc9f08(0xb3)](async _0x377ab4=>{const _0x14bac8=_0xcc9f08;await this[_0x14bac8(0x12d)][_0x14bac8(0x9e)][_0x14bac8(0x134)]({..._0x55ba18,'abortSignal':_0x377ab4,'renderingStrategy':_0x5e62c2}),_0x55ba18[_0x14bac8(0x12e)]&&this[_0x14bac8(0x112)](_0x55ba18['id']);});}[_0x122ca7(0x114)](_0x448449){const _0x492547=_0x122ca7;this[_0x492547(0x12d)][_0x492547(0x9e)][_0x492547(0x129)](_0x448449);}[_0x122ca7(0x112)](_0x21ed23){const _0x38324e=_0x122ca7;this[_0x38324e(0x12d)][_0x38324e(0x9e)][_0x38324e(0xe2)](_0x21ed23);}[_0x122ca7(0xc7)](_0x553ba7){const _0x4621ac=_0x122ca7;this[_0x4621ac(0x12d)][_0x4621ac(0x9e)][_0x4621ac(0xe4)]()[_0x4621ac(0xd3)](_0x42d596=>_0x42d596[_0x4621ac(0xff)](_0x553ba7))[_0x4621ac(0xb1)](_0x45ec76=>this[_0x4621ac(0x12d)][_0x4621ac(0x9e)][_0x4621ac(0x105)](_0x45ec76));}[_0x122ca7(0x12a)](){const _0x2517bf=_0x122ca7;this[_0x2517bf(0xac)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2517bf(0x12d)][_0x2517bf(0xe3)][_0x2517bf(0xd9)](!this[_0x2517bf(0xbb)][_0x2517bf(0xe5)][_0x2517bf(0xd2)](_0x2517bf(0x13c))),this[_0x2517bf(0xf9)]=!0x0,this[_0x2517bf(0x12d)][_0x2517bf(0x9e)][_0x2517bf(0xce)]();}[_0x122ca7(0xc9)](_0x575a8a){const _0x23188a=_0x122ca7;this[_0x23188a(0xc0)][_0x23188a(0xf4)](),this[_0x23188a(0x12d)][_0x23188a(0x9e)][_0x23188a(0xe4)]()[_0x23188a(0xd3)](_0x46eafc=>_0x46eafc[_0x23188a(0xff)](_0x575a8a['id']))[_0x23188a(0xb1)](_0x4ebbd7=>this[_0x23188a(0x112)](_0x4ebbd7)),this[_0x23188a(0xf9)]=!0x1,this[_0x23188a(0x12d)][_0x23188a(0x9e)][_0x23188a(0x137)]();}async[_0x122ca7(0x127)](){const _0x5b2ab7=_0x122ca7;return this[_0x5b2ab7(0xc0)][_0x5b2ab7(0xd4)][_0x5b2ab7(0xdd)](()=>{const _0x291b34=_0x5b2ab7;this[_0x291b34(0xf9)]=!0x1,this[_0x291b34(0x12d)][_0x291b34(0x9e)][_0x291b34(0x137)]();});}[_0x122ca7(0xd0)](_0x5ec6a9,_0x651f04){const _0x4a678f=_0x122ca7;this[_0x4a678f(0x12d)][_0x4a678f(0xe3)][_0x4a678f(0xd0)](_0x5ec6a9,_0x651f04);}[_0x122ca7(0x117)](_0x3ad1d7){const _0x2cfc27=_0x122ca7;this[_0x2cfc27(0x12d)][_0x2cfc27(0xe3)][_0x2cfc27(0x117)](_0x3ad1d7);}[_0x122ca7(0x9d)](_0x4eadc8,_0x45e78b){const _0x255458=_0x122ca7;this[_0x255458(0x12d)][_0x255458(0xe3)][_0x255458(0x9d)](_0x4eadc8,_0x45e78b);}[_0x122ca7(0x132)](_0x3465d8){const _0x2baa5a=_0x122ca7;this[_0x2baa5a(0x12d)][_0x2baa5a(0xe3)][_0x2baa5a(0x132)](_0x3465d8);}[_0x122ca7(0xfa)](_0x3b4bfb){const _0x3126ce=_0x122ca7;this[_0x3126ce(0x12d)][_0x3126ce(0xe3)][_0x3126ce(0xfa)](_0x3b4bfb);}[_0x122ca7(0xa7)](){const _0x250074=_0x122ca7;this[_0x250074(0x12d)][_0x250074(0xe3)][_0x250074(0xa7)]();}[_0x122ca7(0xb5)](){const _0x791bc9=_0x122ca7;this[_0x791bc9(0x12d)][_0x791bc9(0xe3)][_0x791bc9(0xb5)]();}[_0x122ca7(0xdc)](_0x307fb9,_0x334aa7,_0x5aa236){const _0x40a5bf=_0x122ca7;this[_0x40a5bf(0x12d)][_0x40a5bf(0xe3)][_0x40a5bf(0xdc)](_0x307fb9,_0x334aa7,_0x5aa236);}[_0x122ca7(0x10b)](){const _0x333887=_0x122ca7;this[_0x333887(0x12d)][_0x333887(0xe3)][_0x333887(0x10b)](),this[_0x333887(0x12d)][_0x333887(0xe3)][_0x333887(0xf1)](this[_0x333887(0x12b)]());}[_0x122ca7(0x141)](_0x4f6ea7){const _0xe9d1cb=_0x122ca7;this[_0xe9d1cb(0x12d)][_0xe9d1cb(0xe3)][_0xe9d1cb(0x141)](_0x4f6ea7);}[_0x122ca7(0xcd)](_0x25a015){const _0x4b1c98=_0x122ca7;this[_0x4b1c98(0x12d)][_0x4b1c98(0xe3)][_0x4b1c98(0x10d)](_0x25a015[_0x4b1c98(0x145)]),this[_0x4b1c98(0x12d)][_0x4b1c98(0xe3)][_0x4b1c98(0xf5)](_0x25a015[_0x4b1c98(0x11a)]),this[_0x4b1c98(0x12d)][_0x4b1c98(0xe3)][_0x4b1c98(0xf1)](this[_0x4b1c98(0x12b)](_0x25a015));}[_0x122ca7(0x119)](_0x2b24da,_0x39c1b0){const _0x299d81=_0x122ca7;this[_0x299d81(0x12d)][_0x299d81(0xe3)][_0x299d81(0x144)](_0x2b24da),_0x39c1b0&&this[_0x299d81(0x12d)][_0x299d81(0xe3)][_0x299d81(0xd9)](!0x1);}[_0x122ca7(0x11b)](_0x33d9fa){const _0x55034b=_0x122ca7;this[_0x55034b(0x125)]=_0x33d9fa;}[_0x122ca7(0x11f)](_0x2b0614){const _0x40a8ff=_0x122ca7;this[_0x40a8ff(0x12d)][_0x40a8ff(0x9e)][_0x40a8ff(0x11f)](_0x2b0614);}[_0x122ca7(0xb7)](){const _0xaba562=_0x122ca7;this[_0xaba562(0x13e)](_0x27ff45(this[_0xaba562(0xbb)][_0xaba562(0xf3)],_0xaba562(0xbd)));}[_0x122ca7(0x13e)](_0x5d3245,_0x42c6fd=!0x1){const _0x5b4c93=_0x122ca7;if(_0x42c6fd&&!_0x56ac7f()&&_0x5d3245[_0x5b4c93(0xbf)])return this[_0x5b4c93(0x12d)][_0x5b4c93(0xec)][_0x5b4c93(0x10a)]='',void this[_0x5b4c93(0xf0)](_0x5d3245);this[_0x5b4c93(0x12d)][_0x5b4c93(0xec)][_0x5b4c93(0x10a)]=_0x5d3245;}[_0x122ca7(0xac)](_0x24244c){const _0x50f8d4=_0x122ca7,_0x4f121a=this[_0x50f8d4(0x126)](_0x24244c);this[_0x50f8d4(0x12d)][_0x50f8d4(0x9e)][_0x50f8d4(0xac)](_0x4f121a);}[_0x122ca7(0xf0)](_0x567cab){const _0x5291a9=_0x122ca7;let _0x3a007d=0x0;clearInterval(this[_0x5291a9(0x11d)]),this[_0x5291a9(0x11d)]=setInterval(()=>{const _0x55576f=_0x5291a9;this[_0x55576f(0x12d)][_0x55576f(0xec)][_0x55576f(0x10a)]=this[_0x55576f(0x12d)][_0x55576f(0xec)][_0x55576f(0x10a)]+_0x567cab[_0x3a007d],_0x3a007d++,_0x3a007d===_0x567cab[_0x55576f(0xbf)]&&clearInterval(this[_0x55576f(0x11d)]);},0x1e);}[_0x122ca7(0xfc)](_0x3efdc9){const _0x2fd9a2=_0x122ca7;this[_0x2fd9a2(0x12d)][_0x2fd9a2(0xec)][_0x2fd9a2(0xe8)]=_0x3efdc9;}[_0x122ca7(0x126)](_0xe8da01){const _0xbe3f14=_0x122ca7;return _0xe8da01?_0xe8da01[_0xbe3f14(0x145)]&&_0xe8da01[_0xbe3f14(0x11a)]?_0x27ff45(this[_0xbe3f14(0xbb)][_0xbe3f14(0xf3)],_0xbe3f14(0x108)):_0xe8da01[_0xbe3f14(0x145)]?_0x27ff45(this[_0xbe3f14(0xbb)][_0xbe3f14(0xf3)],_0xbe3f14(0x109)):_0xe8da01[_0xbe3f14(0x11a)]?_0x27ff45(this[_0xbe3f14(0xbb)][_0xbe3f14(0xf3)],_0xbe3f14(0xc8)):_0x27ff45(this[_0xbe3f14(0xbb)][_0xbe3f14(0xf3)],_0xbe3f14(0xe0)):'';}[_0x122ca7(0x12b)](_0x267f1d){const _0x376759=_0x122ca7;return _0x267f1d?_0x267f1d[_0x376759(0x145)]&&_0x267f1d[_0x376759(0x11a)]?_0x27ff45(this[_0x376759(0xbb)][_0x376759(0xf3)],_0x376759(0xcf)):_0x267f1d[_0x376759(0x145)]?_0x27ff45(this[_0x376759(0xbb)][_0x376759(0xf3)],_0x376759(0x120)):_0x267f1d[_0x376759(0x11a)]?_0x27ff45(this[_0x376759(0xbb)][_0x376759(0xf3)],_0x376759(0xee)):_0x27ff45(this[_0x376759(0xbb)][_0x376759(0xf3)],_0x376759(0xda)):_0x27ff45(this[_0x376759(0xbb)][_0x376759(0xf3)],_0x376759(0xda));}[_0x122ca7(0x124)](_0x147be9,_0x1ec703,_0x58cba2,_0xdbb2c2){const _0x781e0a=_0x122ca7;this[_0x781e0a(0x12d)][_0x781e0a(0x124)](_0x147be9,_0x1ec703,_0x58cba2,_0xdbb2c2);}[_0x122ca7(0xb6)](_0x46055c){const _0x3c12be=_0x122ca7;this[_0x3c12be(0x12d)][_0x3c12be(0xb6)](_0x46055c);}[_0x122ca7(0xaf)](){const _0x5d30f7=_0x122ca7;this[_0x5d30f7(0x12d)][_0x5d30f7(0xe3)][_0x5d30f7(0xaf)]();}[_0x122ca7(0x101)](_0x5c9c5c,_0x2e41ff){const _0x26046b=_0x122ca7;this[_0x26046b(0x12d)][_0x26046b(0x9e)][_0x26046b(0xad)](_0x5c9c5c,_0x2e41ff);}[_0x122ca7(0xce)](){const _0x8db68b=_0x122ca7;this[_0x8db68b(0x12d)][_0x8db68b(0x9e)][_0x8db68b(0xce)]();}[_0x122ca7(0x11e)](){const _0x55b55e=_0x122ca7;this[_0x55b55e(0x12d)][_0x55b55e(0xe3)][_0x55b55e(0x12f)]=!0x0;}[_0x122ca7(0x10c)](){const _0x4c83d4=_0x122ca7;this[_0x4c83d4(0x12d)][_0x4c83d4(0xe3)][_0x4c83d4(0x12f)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x271efb=_0x3369;(function(_0x290c70,_0x149317){const _0x451d6a=_0x3369,_0x437152=_0x290c70();while(!![]){try{const _0x31ae62=-parseInt(_0x451d6a(0xf8))/0x1*(-parseInt(_0x451d6a(0xee))/0x2)+-parseInt(_0x451d6a(0xd5))/0x3*(-parseInt(_0x451d6a(0xdc))/0x4)+-parseInt(_0x451d6a(0x11b))/0x5+parseInt(_0x451d6a(0xd8))/0x6*(parseInt(_0x451d6a(0xc3))/0x7)+parseInt(_0x451d6a(0xc1))/0x8*(-parseInt(_0x451d6a(0x10a))/0x9)+-parseInt(_0x451d6a(0xb4))/0xa*(-parseInt(_0x451d6a(0xb1))/0xb)+-parseInt(_0x451d6a(0xb8))/0xc*(parseInt(_0x451d6a(0xd0))/0xd);if(_0x31ae62===_0x149317)break;else _0x437152['push'](_0x437152['shift']());}catch(_0x2066e7){_0x437152['push'](_0x437152['shift']());}}}(_0x4893,0x61659));function _0x4893(){const _0x10e81a=['ai-chat-url-upload-failed','selection','uploadFile','getId','length','getData','isSelectionInContext','getResources','ai-chat-context-invalid-data','size','isHidden','string','forEach','File','end','getPendingContextItems','type','ai-chat-resource-no-data','MARKDOWN','files-','_setAddContextOptionsDefaultState','_ownerId','fetchDocument','_toggleAddCurrentDocumentOptionVisibility','data','_ongoingUploadOperations','_addContextOptionsState','enabled','_ongoingUploads','FILE','_conversationContextItems','clearPendingContextItems','11UaFGsq','addFilesToContext','map','3076870ndhKGt','contextItemAdded','Current\x20document','message','12cptrvR','addResourceToContext','resourceId','HTML','URL','addToConversationContext','_removeContextItem','abortController','ai-chat-file-upload-failed','1156232pAZYlW','populateFromMessage','38297fPYilk','content','urls','hidden','abort','init','uploadUrl','mapContextItemsToRequestData','isCurrentDocumentInContext','resources','document','_createContextItemFromContent','_convertTextResourceToFile','6664164ycUpmk','resourceStateChanged','_mapContextItemToRequestData','TEXT','DOCUMENT','651933OBjsBK','sessionId','updateCurrentDocument','642gjEfPi','_addContextItem','filter','_isResourceInContext','12JCHhHK','uploadProgressChanged','get','fire','_startUploadOperation','ai-chat-document-upload-failed','object','_finishContextItemLoading','attributes','url','_updateResourceInContextState','ai-chat-source-not-found','file-','uiId','_getCustomSourcesInitialState','find','stack','_finishUploadOperation','230JSIDLc','getDocument','sources','push','uploadDocument','removeFromContext','version','_connector','isReadOnly','text/plain','1693gBenyY','from','contextItemRemoved','ai-request-aborted','sourceResourcesLoaded','contextSent','error','start','_pendingContextItems','addContextOptionsChanged','addUrlToContext','addCurrentDocumentToContext','isCurrentDocumentInConversation','has','_addToConversationContextItem','SELECTION','_findSourceIdsByResourceId','all','36iBFvMN','ai-chat-resource-load-failed','delete','files','ai-chat-context-unsupported-type','set','values','getSentContextItems','text/markdown','isInContext','loadSourceResources','_config','label','url-','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','current-document','1250155WGxekG','startsWith','text/html','name','addSelectionToContext','removeSelectionFromContext','ai-chat-source-resources-load-failed'];_0x4893=function(){return _0x10e81a;};return _0x4893();}function _0x3369(_0x30403f,_0x58ee1d){const _0x489334=_0x4893();return _0x3369=function(_0x336994,_0x45f3ae){_0x336994=_0x336994-0xaf;let _0x26e242=_0x489334[_0x336994];return _0x26e242;},_0x3369(_0x30403f,_0x58ee1d);}import{CKEditorError as _0x15d81b,ObservableMixin as _0x13cac4,uid as _0x5c57c1}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x15f526,AIContextTextResourceType as _0x566476}from'../../aicore/model/aicontext.js';import{escape as _0x3bdac7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x271efb(0xb5),_0x271efb(0xfa),_0x271efb(0x118),_0x271efb(0xfd),_0x271efb(0xfe),_0x271efb(0x101),_0x271efb(0xfc),_0x271efb(0xd1),_0x271efb(0xdd)];export class AIChatContext extends _0x13cac4(){[_0x271efb(0xf5)];[_0x271efb(0x115)];[_0x271efb(0x137)];constructor({connector:_0x2c5fb1,config:_0x14965b,ownerId:_0x4539d4}){const _0x45ca73=_0x271efb;super(),this[_0x45ca73(0xf5)]=_0x2c5fb1,this[_0x45ca73(0x115)]=_0x14965b,this[_0x45ca73(0x137)]=_0x4539d4;}[_0x271efb(0xc8)](){const _0xacf21f=_0x271efb;this[_0xacf21f(0x100)]=new Map(),this[_0xacf21f(0xaf)]=new Map(),this[_0xacf21f(0x13e)]=new Map(),this[_0xacf21f(0x13b)]=new Map(),this[_0xacf21f(0x136)]();}[_0x271efb(0x131)](){const _0xcef379=_0x271efb;return this[_0xcef379(0x100)];}async[_0x271efb(0xc2)](_0xd79b1d){const _0x281451=_0x271efb,_0x3566b2=await this[_0x281451(0xce)](_0xd79b1d);return this[_0x281451(0x106)](_0x3566b2),_0x281451(0x11a)===_0x3566b2[_0x281451(0xe9)]&&this[_0x281451(0x139)](),_0x3566b2;}async[_0x271efb(0xce)](_0x4cc012){const _0x2a42b7=_0x271efb;if(_0x4cc012[_0x2a42b7(0x132)]===_0x15f526[_0x2a42b7(0xd4)]){const _0x624b19=await this[_0x2a42b7(0xf5)][_0x2a42b7(0x138)](this[_0x2a42b7(0x137)],_0x4cc012['id'])[_0x2a42b7(0xef)]();return{'id':_0x2a42b7(0x11a),'uiId':_0x2a42b7(0x11a),'label':_0x2a42b7(0xb6),'type':_0x4cc012[_0x2a42b7(0x132)],'content':_0x624b19[_0x2a42b7(0xc4)],'hidden':this[_0x2a42b7(0xaf)][_0x2a42b7(0x105)](_0x2a42b7(0x11a)),'version':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xf4)],'sessionId':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xd6)]};}return{'id':_0x4cc012['id'],'uiId':_0x4cc012['id'],'label':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0x116)]||_0x4cc012[_0x2a42b7(0x11e)]||_0x4cc012[_0x2a42b7(0xe5)]||_0x4cc012['id'],'type':_0x4cc012[_0x2a42b7(0x132)],..._0x4cc012?.[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]?{'resourceId':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]}:{}};}[_0x271efb(0x111)](){const _0xba5ca9=_0x271efb;return new Map(this[_0xba5ca9(0xaf)]);}[_0x271efb(0xf3)](_0x3e0e3e){const _0x51a22f=_0x271efb,_0x278d33=this[_0x51a22f(0x100)][_0x51a22f(0xde)](_0x3e0e3e);_0x278d33?.[_0x51a22f(0xf6)]||this[_0x51a22f(0xbe)](_0x3e0e3e);}[_0x271efb(0xb0)](){const _0x3388c9=_0x271efb;if(0x0===this[_0x3388c9(0x100)][_0x3388c9(0x12b)])return;for(const _0x5f4a9b of this[_0x3388c9(0x100)][_0x3388c9(0x110)]())this[_0x3388c9(0xbe)](_0x5f4a9b[_0x3388c9(0xe9)]);const _0x2470d8=this[_0x3388c9(0xaf)][_0x3388c9(0xde)](_0x3388c9(0x11a))||this[_0x3388c9(0x100)][_0x3388c9(0xde)](_0x3388c9(0x11a));_0x2470d8&&this[_0x3388c9(0xd9)]({..._0x2470d8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x271efb(0xbd)](_0x2d4da5){const _0x3151e7=_0x271efb;for(const _0xecb01 of _0x2d4da5[_0x3151e7(0x110)]())this[_0x3151e7(0x106)](_0xecb01);this[_0x3151e7(0xb0)](),this[_0x3151e7(0xdf)](_0x3151e7(0xfd),{'contextItems':Array[_0x3151e7(0xf9)](this[_0x3151e7(0x111)]()[_0x3151e7(0x110)]())});}[_0x271efb(0xcb)](){const _0x26923c=_0x271efb;return this[_0x26923c(0x100)][_0x26923c(0x105)](_0x26923c(0x11a));}[_0x271efb(0x128)](){const _0x325dc5=_0x271efb;return this[_0x325dc5(0x100)][_0x325dc5(0x105)](_0x325dc5(0x123));}[_0x271efb(0x104)](){const _0x19390e=_0x271efb;return this[_0x19390e(0xaf)][_0x19390e(0x105)](_0x19390e(0x11a));}static[_0x271efb(0xca)](_0x52a1ae){const _0x588719=_0x271efb;return Array[_0x588719(0xf9)](_0x52a1ae[_0x588719(0x110)]())[_0x588719(0xb3)](_0x5b6c36=>this[_0x588719(0xd2)](_0x5b6c36))[_0x588719(0xda)](_0x19b3f9=>null!==_0x19b3f9);}async[_0x271efb(0xb2)](_0x223c08,_0x439d4b,_0x306149=_0x15f526[_0x271efb(0x13f)]){const _0x1a5642=_0x271efb,_0x1a4561=_0x1a5642(0x135)+_0x5c57c1();this[_0x1a5642(0xe0)](_0x1a4561);try{await Promise[_0x1a5642(0x109)](_0x223c08[_0x1a5642(0xb3)](async _0x492eda=>{const _0x1c59f8=_0x1a5642,_0x11af76=_0x1c59f8(0xe8)+_0x5c57c1(),_0x26cac6=_0x3bdac7(_0x492eda[_0x1c59f8(0x11e)]);try{this[_0x1c59f8(0xd9)]({'type':_0x306149,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x0);const _0x49ec97=this[_0x1c59f8(0xf5)][_0x1c59f8(0x124)](this[_0x1c59f8(0x137)],_0x492eda,_0x439d4b);this[_0x1c59f8(0x13e)][_0x1c59f8(0x10f)](_0x11af76,_0x49ec97[_0x1c59f8(0xbf)]);const {id:_0x1eb148}=await _0x49ec97[_0x1c59f8(0x125)]();this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76),this[_0x1c59f8(0xe3)]({'type':_0x306149,'id':_0x1eb148,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x1);}catch(_0x4f2b77){this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76);if(!_0x4f2b77[_0x1c59f8(0xb7)][_0x1c59f8(0x11c)](_0x1c59f8(0xfb))){const _0x508bea=new _0x15d81b(_0x1c59f8(0xc0),null,{'fileName':_0x26cac6});_0x508bea[_0x1c59f8(0xec)]=_0x4f2b77[_0x1c59f8(0xec)],this[_0x1c59f8(0xdf)](_0x1c59f8(0xfe),{'error':_0x508bea,'fileName':_0x26cac6});}this[_0x1c59f8(0xbe)](_0x11af76);}}));}finally{this[_0x1a5642(0xed)](_0x1a4561);}}[_0x271efb(0x103)](_0x1d0418){const _0x44004d=_0x271efb;if(this[_0x44004d(0xcb)]())return;const _0x2ec486={'type':_0x15f526[_0x44004d(0xd4)],'uiId':_0x44004d(0x11a),'label':_0x1d0418,'isReadOnly':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a)),'hidden':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a))};this[_0x44004d(0xd9)](_0x2ec486);}async[_0x271efb(0xd7)](_0x5dde5e,_0x3e9816,_0x226c9b,_0xb0c700){const _0x1e7a96=_0x271efb,_0x2f5677=this[_0x1e7a96(0x100)][_0x1e7a96(0xde)](_0x1e7a96(0x11a));if(_0x2f5677&&_0x5dde5e){_0x2f5677[_0x1e7a96(0x123)]=_0xb0c700?_0xb0c700[_0x1e7a96(0xb3)](_0x31c0cf=>({'start':_0x31c0cf[_0x1e7a96(0xff)],'end':_0x31c0cf[_0x1e7a96(0x130)]})):[];try{if(_0x2f5677[_0x1e7a96(0xf4)]===_0x3e9816)return;const {id:_0xa04804}=await this[_0x1e7a96(0xf5)][_0x1e7a96(0xf2)](this[_0x1e7a96(0x137)],_0x5dde5e,{'version':_0x3e9816,'sessionId':_0x226c9b})[_0x1e7a96(0x125)]();_0x2f5677['id']=_0xa04804,_0x2f5677[_0x1e7a96(0xc4)]=_0x5dde5e,_0x2f5677[_0x1e7a96(0xf4)]=_0x3e9816,_0x2f5677[_0x1e7a96(0xd6)]=_0x226c9b;}catch(_0x1927b2){const _0x3cc330=new _0x15d81b(_0x1e7a96(0xe1),null);_0x3cc330[_0x1e7a96(0xec)]=_0x1927b2[_0x1e7a96(0xec)],this[_0x1e7a96(0xdf)](_0x1e7a96(0xfe),{'error':_0x3cc330});}}}[_0x271efb(0x11f)](_0x51a704){const _0x368578=_0x271efb;this[_0x368578(0xd9)]({'type':_0x15f526[_0x368578(0x107)],'label':_0x51a704,'uiId':_0x368578(0x123),'content':_0x51a704});}[_0x271efb(0x120)](){const _0x2b3492=_0x271efb;this[_0x2b3492(0xbe)](_0x2b3492(0x123));}async[_0x271efb(0x102)](_0x58e557,_0x27016f){const _0x11298c=_0x271efb,_0x4604ce=_0x11298c(0x117)+_0x5c57c1();this[_0x11298c(0xe0)](_0x4604ce);const _0x184f81=_0x11298c(0x117)+_0x5c57c1();try{this[_0x11298c(0xd9)]({'type':_0x15f526[_0x11298c(0xbc)],'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x0);const _0x19567a=this[_0x11298c(0xf5)][_0x11298c(0xc9)](this[_0x11298c(0x137)],_0x58e557,_0x27016f);this[_0x11298c(0x13e)][_0x11298c(0x10f)](_0x184f81,_0x19567a[_0x11298c(0xbf)]);const {id:_0xe5a2ff}=await _0x19567a[_0x11298c(0x125)]();this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),this[_0x11298c(0xe3)]({'type':_0x15f526[_0x11298c(0xbc)],'id':_0xe5a2ff,'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x1);}catch(_0x2ae12d){this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),(_0x2ae12d[_0x11298c(0xb7)][_0x11298c(0x11c)](_0x11298c(0xfb))||this[_0x11298c(0xdf)](_0x11298c(0xfe),{'error':new _0x15d81b(_0x11298c(0x122),this,{'url':_0x58e557,'originalError':_0x2ae12d}),'url':_0x58e557}),this[_0x11298c(0xbe)](_0x184f81));}finally{this[_0x11298c(0xed)](_0x4604ce);}}async[_0x271efb(0x114)](_0x7ed02f,_0x379aa1,_0x22e5b){const _0x63f8eb=_0x271efb,_0xc20965=this[_0x63f8eb(0x13c)][_0x63f8eb(0xf0)][_0x63f8eb(0xeb)](_0x574203=>_0x574203['id']===_0x7ed02f);if(!_0xc20965)return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0xe7),this,{'sourceId':_0x7ed02f}),'sourceId':_0x7ed02f}),[];try{const _0x11238c=(await _0xc20965[_0x63f8eb(0x129)](_0x379aa1))[_0x63f8eb(0xb3)](_0xa82321=>{const _0x52a787=_0x63f8eb,_0x2f3840=this[_0x52a787(0xdb)](_0xa82321['id']);return{..._0xa82321,'isInContext':_0x2f3840};});return _0xc20965[_0x63f8eb(0xcc)]=_0x11238c,this[_0x63f8eb(0xdf)](_0x63f8eb(0xfc),{'sourceId':_0x7ed02f,'source':_0xc20965,'resources':_0x11238c,'uid':_0x22e5b}),_0x11238c;}catch(_0x1ec224){return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0x121),this,{'sourceId':_0x7ed02f,'originalError':_0x1ec224}),'sourceId':_0x7ed02f,'sourceLabel':_0xc20965[_0x63f8eb(0x116)]}),[];}}async[_0x271efb(0xb9)](_0x3d624b,_0x58ca0c){const _0x477de9=_0x271efb;if(this[_0x477de9(0xdb)](_0x58ca0c['id']))return;let _0x3d4051=_0x58ca0c[_0x477de9(0x13a)];if(!_0x3d4051&&_0x3d624b[_0x477de9(0x127)])try{_0x3d4051=await _0x3d624b[_0x477de9(0x127)](_0x58ca0c['id']);}catch(_0x51ec10){return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10b),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'originalError':_0x51ec10}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}if(_0x3d4051)switch(_0x58ca0c[_0x477de9(0x132)]){case _0x15f526[_0x477de9(0xbc)]:if(_0x477de9(0x12d)!=typeof _0x3d4051)return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12d),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0x102)](_0x3d4051,{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0x13f)]:if(!(_0x3d4051 instanceof File))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12f),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0xd3)]:if(_0x477de9(0xe2)!=typeof _0x3d4051||!(_0x477de9(0xc4)in _0x3d4051)||!(_0x477de9(0x132)in _0x3d4051))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x119),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});_0x3d4051=AIChatContext[_0x477de9(0xcf)](_0x3d4051,_0x58ca0c[_0x477de9(0x116)]),await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']},_0x15f526[_0x477de9(0xd3)]);break;default:this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10e),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'resourceType':_0x58ca0c[_0x477de9(0x132)]}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}else this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x133),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}static[_0x271efb(0xcf)](_0x121e1c,_0xfe25bb){const _0x4c92c2=_0x271efb;switch(_0x121e1c[_0x4c92c2(0x132)]){case _0x566476[_0x4c92c2(0x134)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x112)});case _0x566476[_0x4c92c2(0xbb)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x11d)});default:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0xf7)});}}static[_0x271efb(0xd2)](_0x3d5cb8){const _0x1062c6=_0x271efb;switch(_0x3d5cb8[_0x1062c6(0x132)]){case _0x15f526[_0x1062c6(0x13f)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xbc)]:return{'type':_0x15f526[_0x1062c6(0xbc)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xd4)]:return{'type':_0x15f526[_0x1062c6(0xd4)],'id':_0x3d5cb8['id'],..._0x3d5cb8[_0x1062c6(0x123)]?.[_0x1062c6(0x126)]&&{'selection':_0x3d5cb8[_0x1062c6(0x123)]}};case _0x15f526[_0x1062c6(0xd3)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};default:return null;}}[_0x271efb(0xd9)](_0x73a7a,_0x4308f2=!0x1){const _0xc4df98=_0x271efb;if(this[_0xc4df98(0x100)][_0xc4df98(0x10f)](_0x73a7a[_0xc4df98(0xe9)],_0x73a7a),_0x73a7a[_0xc4df98(0xc6)]||this[_0xc4df98(0xdf)](_0xc4df98(0xb5),{'contextItem':_0x73a7a,'isLoading':_0x4308f2}),_0xc4df98(0x11a)===_0x73a7a[_0xc4df98(0xe9)]&&this[_0xc4df98(0x139)](),_0x73a7a[_0xc4df98(0xba)]){const _0x330047=this[_0xc4df98(0x108)](_0x73a7a[_0xc4df98(0xba)]);_0x330047&&_0x330047[_0xc4df98(0x12e)](_0xf3c0ad=>{const _0x20994e=_0xc4df98;this[_0x20994e(0xe6)](_0xf3c0ad,_0x73a7a[_0x20994e(0xba)],!0x0);});}}[_0x271efb(0xbe)](_0x6a3026){const _0x5d88c1=_0x271efb,_0xc9683b=this[_0x5d88c1(0x100)][_0x5d88c1(0xde)](_0x6a3026),_0xc7a036=this[_0x5d88c1(0x13e)][_0x5d88c1(0xde)](_0x6a3026);if(_0xc7a036&&(_0xc7a036[_0x5d88c1(0xc7)](),this[_0x5d88c1(0x13e)][_0x5d88c1(0x10c)](_0x6a3026)),_0xc9683b?.[_0x5d88c1(0xba)]){const _0x3f70fb=this[_0x5d88c1(0x108)](_0xc9683b[_0x5d88c1(0xba)]);_0x3f70fb&&_0x3f70fb[_0x5d88c1(0x12e)](_0xda8fc5=>{const _0x3489d5=_0x5d88c1;this[_0x3489d5(0xe6)](_0xda8fc5,_0xc9683b[_0x3489d5(0xba)],!0x1);});}this[_0x5d88c1(0x100)][_0x5d88c1(0x10c)](_0x6a3026),this[_0x5d88c1(0xdf)](_0x5d88c1(0xfa),{'uiId':_0x6a3026,'type':_0xc9683b?.[_0x5d88c1(0x132)]}),_0x5d88c1(0x11a)===_0x6a3026&&this[_0x5d88c1(0x139)]();}[_0x271efb(0xe3)](_0x5c20cf,_0xbdc7a3){const _0x3bd718=_0x271efb;if(this[_0x3bd718(0x100)][_0x3bd718(0x105)](_0x5c20cf[_0x3bd718(0xe9)])&&(this[_0x3bd718(0x100)][_0x3bd718(0x10f)](_0x5c20cf[_0x3bd718(0xe9)],_0x5c20cf),this[_0x3bd718(0xdf)](_0x3bd718(0x118),{'contextItem':_0x5c20cf,'isLoading':_0xbdc7a3}),_0x5c20cf[_0x3bd718(0xba)])){const _0xd1af6d=this[_0x3bd718(0x108)](_0x5c20cf[_0x3bd718(0xba)]);_0xd1af6d&&_0xd1af6d[_0x3bd718(0x12e)](_0x18c880=>{const _0x450bf8=_0x3bd718;this[_0x450bf8(0xe6)](_0x18c880,_0x5c20cf[_0x450bf8(0xba)],!0x0);});}}[_0x271efb(0x106)](_0x3d3175){const _0x1b4649=_0x271efb;this[_0x1b4649(0xaf)][_0x1b4649(0x10f)](_0x3d3175[_0x1b4649(0xe9)],_0x3d3175);}[_0x271efb(0x136)](){const _0x2e39ab=_0x271efb;this[_0x2e39ab(0x13c)]={'document':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xcd)]?.[_0x2e39ab(0x13d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xc5)]?.[_0x2e39ab(0x13d)]},'files':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0x10d)]?.[_0x2e39ab(0x13d)]},'sources':this[_0x2e39ab(0xea)]()},this[_0x2e39ab(0xdf)](_0x2e39ab(0x101),{'options':this[_0x2e39ab(0x13c)]});}[_0x271efb(0xea)](){const _0x434091=_0x271efb;return this[_0x434091(0x115)]?.[_0x434091(0xf0)]?.[_0x434091(0xb3)](_0x3b3a8f=>({..._0x3b3a8f,'resources':[]}))??[];}[_0x271efb(0x139)](){const _0x1c4e60=_0x271efb,_0x1f21c1=this[_0x1c4e60(0xcb)]()||this[_0x1c4e60(0x104)]();this[_0x1c4e60(0x13c)][_0x1c4e60(0xcd)][_0x1c4e60(0x12c)]=_0x1f21c1,this[_0x1c4e60(0xdf)](_0x1c4e60(0x101),{'options':this[_0x1c4e60(0x13c)]});}[_0x271efb(0xdb)](_0xb0839b){const _0x55f606=_0x271efb;for(const _0x21974b of this[_0x55f606(0x100)][_0x55f606(0x110)]())if(_0x21974b[_0x55f606(0xba)]===_0xb0839b)return!0x0;for(const _0x3097c4 of this[_0x55f606(0xaf)][_0x55f606(0x110)]())if(_0x3097c4[_0x55f606(0xba)]===_0xb0839b)return!0x0;return!0x1;}[_0x271efb(0x108)](_0x593a4b){const _0x3aab44=_0x271efb,_0x526b16=[];for(const _0x6e2596 of this[_0x3aab44(0x13c)][_0x3aab44(0xf0)]){_0x6e2596[_0x3aab44(0xcc)][_0x3aab44(0xeb)](_0x19367a=>_0x19367a['id']===_0x593a4b)&&_0x526b16[_0x3aab44(0xf1)](_0x6e2596['id']);}return 0x0===_0x526b16[_0x3aab44(0x126)]?null:_0x526b16;}[_0x271efb(0xe6)](_0x3bcfe2,_0x276e9b,_0x555f0e){const _0x242721=_0x271efb,_0x25e095=this[_0x242721(0x13c)][_0x242721(0xf0)][_0x242721(0xeb)](_0x1ea521=>_0x1ea521['id']===_0x3bcfe2);if(!_0x25e095)return;const _0x170b73=_0x25e095[_0x242721(0xcc)][_0x242721(0xeb)](_0x10e162=>_0x10e162['id']===_0x276e9b);_0x170b73&&(_0x170b73[_0x242721(0x113)]=_0x555f0e,this[_0x242721(0xdf)](_0x242721(0xd1),{'sourceId':_0x3bcfe2,'resourceId':_0x276e9b,'isInContext':_0x555f0e}));}[_0x271efb(0xe0)](_0x2a0738){const _0x3b5546=_0x271efb;this[_0x3b5546(0x13b)][_0x3b5546(0x10f)](_0x2a0738,!0x0),this[_0x3b5546(0x13b)][_0x3b5546(0x12b)]&&this[_0x3b5546(0xdf)](_0x3b5546(0xdd),{'isUploadInProgress':!0x0});}[_0x271efb(0xed)](_0x387ec8){const _0x56fece=_0x271efb;this[_0x56fece(0x13b)][_0x56fece(0x10c)](_0x387ec8),0x0===this[_0x56fece(0x13b)][_0x56fece(0x12b)]&&this[_0x56fece(0xdf)](_0x56fece(0xdd),{'isUploadInProgress':!0x1});}}
23
+ function _0x1c4a(){const _0xd6c659=['label','start','getSentContextItems','_isResourceInContext','contextSent','_setAddContextOptionsDefaultState','ai-chat-source-not-found','end','_addContextOptionsState','text/markdown','get','forEach','file-','URL','data','SELECTION','_addToConversationContextItem','isReadOnly','ai-chat-resource-no-data','loadSourceResources','current-document','getId','addContextOptionsChanged','uploadUrl','addResourceToContext','_findSourceIdsByResourceId','addUrlToContext','addFilesToContext','ai-chat-url-upload-failed','_connector','enabled','ai-chat-document-upload-failed','set','sessionId','610440zWbtTx','_getCustomSourcesInitialState','contextItemRemoved','_createContextItemFromContent','urls','contextItemAdded','FILE','DOCUMENT','57875oNugVY','startsWith','1657054HUqEKf','_toggleAddCurrentDocumentOptionVisibility','uploadFile','push','init','492734TJSxTv','_startUploadOperation','1562yelLBC','text/html','isCurrentDocumentInConversation','66EBjtku','getDocument','_conversationContextItems','files','12zzemIA','values','525132grgJrn','ai-chat-context-invalid-data','mapContextItemsToRequestData','_removeContextItem','sourceResourcesLoaded','sources','_config','ai-chat-source-resources-load-failed','contextItemLoadingEnded','_pendingContextItems','Current\x20document','abortController','addCurrentDocumentToContext','_finishContextItemLoading','files-','url-','ai-chat-context-unsupported-type','isCurrentDocumentInContext','all','uploadProgressChanged','version','ai-chat-file-upload-failed','type','has','message','document','fetchDocument','filter','_ongoingUploadOperations','name','size','MARKDOWN','find','_updateResourceInContextState','uploadDocument','File','removeSelectionFromContext','isSelectionInContext','TEXT','_ownerId','clearPendingContextItems','_ongoingUploads','string','isHidden','content','updateCurrentDocument','_mapContextItemToRequestData','populateFromMessage','selection','from','isInContext','attributes','getResources','ai-chat-resource-load-failed','hidden','stack','abort','fire','url','object\x20with\x20content\x20and\x20type\x20properties','uiId','HTML','delete','addToConversationContext','length','_addContextItem','addSelectionToContext','resourceId','getData','resourceStateChanged','ai-request-aborted','text/plain','63561gUdEaz','error','_convertTextResourceToFile','getPendingContextItems','map','resources','removeFromContext','_finishUploadOperation','object'];_0x1c4a=function(){return _0xd6c659;};return _0x1c4a();}const _0x268a51=_0x16f6;(function(_0x2e47f4,_0x460b26){const _0x29f037=_0x16f6,_0x2089e4=_0x2e47f4();while(!![]){try{const _0x13cbd5=-parseInt(_0x29f037(0x1e3))/0x1+parseInt(_0x29f037(0x1e1))/0x2+-parseInt(_0x29f037(0x1a7))/0x3*(parseInt(_0x29f037(0x1ea))/0x4)+-parseInt(_0x29f037(0x1da))/0x5*(parseInt(_0x29f037(0x1e6))/0x6)+parseInt(_0x29f037(0x1dc))/0x7+-parseInt(_0x29f037(0x1d2))/0x8+-parseInt(_0x29f037(0x1ec))/0x9;if(_0x13cbd5===_0x460b26)break;else _0x2089e4['push'](_0x2089e4['shift']());}catch(_0x2b15f3){_0x2089e4['push'](_0x2089e4['shift']());}}}(_0x1c4a,0x26154));function _0x16f6(_0x5d1ab0,_0x1eb93b){const _0x1c4ae3=_0x1c4a();return _0x16f6=function(_0x16f614,_0x580ce2){_0x16f614=_0x16f614-0x18c;let _0x4f7186=_0x1c4ae3[_0x16f614];return _0x4f7186;},_0x16f6(_0x5d1ab0,_0x1eb93b);}import{CKEditorError as _0x41ad2a,ObservableMixin as _0x15707c,uid as _0x29eaeb}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3a882d,AIContextTextResourceType as _0x318472}from'../../aicore/model/aicontext.js';import{escape as _0x3ef161}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x268a51(0x1d7),_0x268a51(0x1d4),_0x268a51(0x1f4),_0x268a51(0x1b4),_0x268a51(0x1a8),_0x268a51(0x1c6),_0x268a51(0x1f0),_0x268a51(0x1a4),_0x268a51(0x1ff)];export class AIChatContext extends _0x15707c(){[_0x268a51(0x1cd)];[_0x268a51(0x1f2)];[_0x268a51(0x213)];constructor({connector:_0x11163a,config:_0x1a851a,ownerId:_0x488398}){const _0x1b7602=_0x268a51;super(),this[_0x1b7602(0x1cd)]=_0x11163a,this[_0x1b7602(0x1f2)]=_0x1a851a,this[_0x1b7602(0x213)]=_0x488398;}[_0x268a51(0x1e0)](){const _0x397fda=_0x268a51;this[_0x397fda(0x1f5)]=new Map(),this[_0x397fda(0x1e8)]=new Map(),this[_0x397fda(0x215)]=new Map(),this[_0x397fda(0x208)]=new Map(),this[_0x397fda(0x1b5)]();}[_0x268a51(0x1aa)](){const _0x29e184=_0x268a51;return this[_0x29e184(0x1f5)];}async[_0x268a51(0x18e)](_0x40bbe6){const _0x30865c=_0x268a51,_0x4c2206=await this[_0x30865c(0x1d5)](_0x40bbe6);return this[_0x30865c(0x1c0)](_0x4c2206),_0x30865c(0x1c4)===_0x4c2206[_0x30865c(0x19b)]&&this[_0x30865c(0x1dd)](),_0x4c2206;}async[_0x268a51(0x1d5)](_0x166be0){const _0x4e79aa=_0x268a51;if(_0x166be0[_0x4e79aa(0x202)]===_0x3a882d[_0x4e79aa(0x1d9)]){const _0x2d91e2=await this[_0x4e79aa(0x1cd)][_0x4e79aa(0x206)](this[_0x4e79aa(0x213)],_0x166be0['id'])[_0x4e79aa(0x1e7)]();return{'id':_0x4e79aa(0x1c4),'uiId':_0x4e79aa(0x1c4),'label':_0x4e79aa(0x1f6),'type':_0x166be0[_0x4e79aa(0x202)],'content':_0x2d91e2[_0x4e79aa(0x218)],'hidden':this[_0x4e79aa(0x1e8)][_0x4e79aa(0x203)](_0x4e79aa(0x1c4)),'version':_0x2d91e2[_0x4e79aa(0x192)]?.[_0x4e79aa(0x200)],'sessionId':_0x2d91e2[_0x4e79aa(0x192)]?.[_0x4e79aa(0x1d1)]};}return{'id':_0x166be0['id'],'uiId':_0x166be0['id'],'label':_0x166be0[_0x4e79aa(0x192)]?.[_0x4e79aa(0x1b0)]||_0x166be0[_0x4e79aa(0x209)]||_0x166be0[_0x4e79aa(0x199)]||_0x166be0['id'],'type':_0x166be0[_0x4e79aa(0x202)],..._0x166be0?.[_0x4e79aa(0x192)]?.[_0x4e79aa(0x1a2)]?{'resourceId':_0x166be0[_0x4e79aa(0x192)]?.[_0x4e79aa(0x1a2)]}:{}};}[_0x268a51(0x1b2)](){const _0x4ffe75=_0x268a51;return new Map(this[_0x4ffe75(0x1e8)]);}[_0x268a51(0x1ad)](_0x1903c4){const _0x33d9de=_0x268a51,_0x598f70=this[_0x33d9de(0x1f5)][_0x33d9de(0x1ba)](_0x1903c4);_0x598f70?.[_0x33d9de(0x1c1)]||this[_0x33d9de(0x1ef)](_0x1903c4);}[_0x268a51(0x214)](){const _0x53e802=_0x268a51;if(0x0===this[_0x53e802(0x1f5)][_0x53e802(0x20a)])return;for(const _0x3287b3 of this[_0x53e802(0x1f5)][_0x53e802(0x1eb)]())this[_0x53e802(0x1ef)](_0x3287b3[_0x53e802(0x19b)]);const _0x43a76e=this[_0x53e802(0x1e8)][_0x53e802(0x1ba)](_0x53e802(0x1c4))||this[_0x53e802(0x1f5)][_0x53e802(0x1ba)](_0x53e802(0x1c4));_0x43a76e&&this[_0x53e802(0x1a0)]({..._0x43a76e,'isReadOnly':!0x0,'hidden':!0x0});}[_0x268a51(0x19e)](_0x3c18d5){const _0x15ed46=_0x268a51;for(const _0x511048 of _0x3c18d5[_0x15ed46(0x1eb)]())this[_0x15ed46(0x1c0)](_0x511048);this[_0x15ed46(0x214)](),this[_0x15ed46(0x198)](_0x15ed46(0x1b4),{'contextItems':Array[_0x15ed46(0x190)](this[_0x15ed46(0x1b2)]()[_0x15ed46(0x1eb)]())});}[_0x268a51(0x1fd)](){const _0x531485=_0x268a51;return this[_0x531485(0x1f5)][_0x531485(0x203)](_0x531485(0x1c4));}[_0x268a51(0x211)](){const _0x213054=_0x268a51;return this[_0x213054(0x1f5)][_0x213054(0x203)](_0x213054(0x18f));}[_0x268a51(0x1e5)](){const _0x2a6753=_0x268a51;return this[_0x2a6753(0x1e8)][_0x2a6753(0x203)](_0x2a6753(0x1c4));}static[_0x268a51(0x1ee)](_0x5c590f){const _0x20f487=_0x268a51;return Array[_0x20f487(0x190)](_0x5c590f[_0x20f487(0x1eb)]())[_0x20f487(0x1ab)](_0x26027a=>this[_0x20f487(0x18d)](_0x26027a))[_0x20f487(0x207)](_0x5e0889=>null!==_0x5e0889);}async[_0x268a51(0x1cb)](_0x120e1e,_0x57bda2,_0x4d72a5=_0x3a882d[_0x268a51(0x1d8)]){const _0x435b07=_0x268a51,_0x16237c=_0x435b07(0x1fa)+_0x29eaeb();this[_0x435b07(0x1e2)](_0x16237c);try{await Promise[_0x435b07(0x1fe)](_0x120e1e[_0x435b07(0x1ab)](async _0x595ef8=>{const _0x5cc541=_0x435b07,_0x426890=_0x5cc541(0x1bc)+_0x29eaeb(),_0x4ba2de=_0x3ef161(_0x595ef8[_0x5cc541(0x209)]);try{this[_0x5cc541(0x1a0)]({'type':_0x4d72a5,'label':_0x57bda2?.[_0x5cc541(0x1b0)]||_0x4ba2de,'uiId':_0x426890,'resourceId':_0x57bda2?.[_0x5cc541(0x1a2)]},!0x0);const _0x1b51d8=this[_0x5cc541(0x1cd)][_0x5cc541(0x1de)](this[_0x5cc541(0x213)],_0x595ef8,_0x57bda2);this[_0x5cc541(0x215)][_0x5cc541(0x1d0)](_0x426890,_0x1b51d8[_0x5cc541(0x1f7)]);const {id:_0x5193a2}=await _0x1b51d8[_0x5cc541(0x1c5)]();this[_0x5cc541(0x215)][_0x5cc541(0x19d)](_0x426890),this[_0x5cc541(0x1f9)]({'type':_0x4d72a5,'id':_0x5193a2,'label':_0x57bda2?.[_0x5cc541(0x1b0)]||_0x4ba2de,'uiId':_0x426890,'resourceId':_0x57bda2?.[_0x5cc541(0x1a2)]},!0x1);}catch(_0x1f61c4){this[_0x5cc541(0x215)][_0x5cc541(0x19d)](_0x426890);if(!_0x1f61c4[_0x5cc541(0x204)][_0x5cc541(0x1db)](_0x5cc541(0x1a5))){const _0x5ddd24=new _0x41ad2a(_0x5cc541(0x201),null,{'fileName':_0x4ba2de});_0x5ddd24[_0x5cc541(0x196)]=_0x1f61c4[_0x5cc541(0x196)],this[_0x5cc541(0x198)](_0x5cc541(0x1a8),{'error':_0x5ddd24,'fileName':_0x4ba2de});}this[_0x5cc541(0x1ef)](_0x426890);}}));}finally{this[_0x435b07(0x1ae)](_0x16237c);}}[_0x268a51(0x1f8)](_0x180aa3){const _0x4bdf74=_0x268a51;if(this[_0x4bdf74(0x1fd)]())return;const _0x46e548={'type':_0x3a882d[_0x4bdf74(0x1d9)],'uiId':_0x4bdf74(0x1c4),'label':_0x180aa3,'isReadOnly':this[_0x4bdf74(0x1e8)][_0x4bdf74(0x203)](_0x4bdf74(0x1c4)),'hidden':this[_0x4bdf74(0x1e8)][_0x4bdf74(0x203)](_0x4bdf74(0x1c4))};this[_0x4bdf74(0x1a0)](_0x46e548);}async[_0x268a51(0x18c)](_0x130a7b,_0x3444e6,_0x38f8ac,_0x2af04c){const _0x2395a5=_0x268a51,_0x448a32=this[_0x2395a5(0x1f5)][_0x2395a5(0x1ba)](_0x2395a5(0x1c4));if(_0x448a32&&_0x130a7b){_0x448a32[_0x2395a5(0x18f)]=_0x2af04c?_0x2af04c[_0x2395a5(0x1ab)](_0x5b15d0=>({'start':_0x5b15d0[_0x2395a5(0x1b1)],'end':_0x5b15d0[_0x2395a5(0x1b7)]})):[];try{if(_0x448a32[_0x2395a5(0x200)]===_0x3444e6)return;const {id:_0x31e970}=await this[_0x2395a5(0x1cd)][_0x2395a5(0x20e)](this[_0x2395a5(0x213)],_0x130a7b,{'version':_0x3444e6,'sessionId':_0x38f8ac})[_0x2395a5(0x1c5)]();_0x448a32['id']=_0x31e970,_0x448a32[_0x2395a5(0x218)]=_0x130a7b,_0x448a32[_0x2395a5(0x200)]=_0x3444e6,_0x448a32[_0x2395a5(0x1d1)]=_0x38f8ac;}catch(_0x3beeb6){const _0x23cfe3=new _0x41ad2a(_0x2395a5(0x1cf),null);_0x23cfe3[_0x2395a5(0x196)]=_0x3beeb6[_0x2395a5(0x196)],this[_0x2395a5(0x198)](_0x2395a5(0x1a8),{'error':_0x23cfe3});}}}[_0x268a51(0x1a1)](_0x49e249){const _0x187124=_0x268a51;this[_0x187124(0x1a0)]({'type':_0x3a882d[_0x187124(0x1bf)],'label':_0x49e249,'uiId':_0x187124(0x18f),'content':_0x49e249});}[_0x268a51(0x210)](){const _0x2e644e=_0x268a51;this[_0x2e644e(0x1ef)](_0x2e644e(0x18f));}async[_0x268a51(0x1ca)](_0x4221b6,_0x202aa7){const _0x1af97c=_0x268a51,_0x3cbe28=_0x1af97c(0x1fb)+_0x29eaeb();this[_0x1af97c(0x1e2)](_0x3cbe28);const _0x3e4303=_0x1af97c(0x1fb)+_0x29eaeb();try{this[_0x1af97c(0x1a0)]({'type':_0x3a882d[_0x1af97c(0x1bd)],'label':_0x202aa7?.[_0x1af97c(0x1b0)]||_0x4221b6,'uiId':_0x3e4303,'resourceId':_0x202aa7?.[_0x1af97c(0x1a2)]},!0x0);const _0x1f6a4f=this[_0x1af97c(0x1cd)][_0x1af97c(0x1c7)](this[_0x1af97c(0x213)],_0x4221b6,_0x202aa7);this[_0x1af97c(0x215)][_0x1af97c(0x1d0)](_0x3e4303,_0x1f6a4f[_0x1af97c(0x1f7)]);const {id:_0x2f9e23}=await _0x1f6a4f[_0x1af97c(0x1c5)]();this[_0x1af97c(0x215)][_0x1af97c(0x19d)](_0x3e4303),this[_0x1af97c(0x1f9)]({'type':_0x3a882d[_0x1af97c(0x1bd)],'id':_0x2f9e23,'label':_0x202aa7?.[_0x1af97c(0x1b0)]||_0x4221b6,'uiId':_0x3e4303,'resourceId':_0x202aa7?.[_0x1af97c(0x1a2)]},!0x1);}catch(_0x3c647e){this[_0x1af97c(0x215)][_0x1af97c(0x19d)](_0x3e4303),(_0x3c647e[_0x1af97c(0x204)][_0x1af97c(0x1db)](_0x1af97c(0x1a5))||this[_0x1af97c(0x198)](_0x1af97c(0x1a8),{'error':new _0x41ad2a(_0x1af97c(0x1cc),this,{'url':_0x4221b6,'originalError':_0x3c647e}),'url':_0x4221b6}),this[_0x1af97c(0x1ef)](_0x3e4303));}finally{this[_0x1af97c(0x1ae)](_0x3cbe28);}}async[_0x268a51(0x1c3)](_0x6f4d0d,_0x333966,_0x3a7951){const _0x3c5736=_0x268a51,_0x14c3a2=this[_0x3c5736(0x1b8)][_0x3c5736(0x1f1)][_0x3c5736(0x20c)](_0x3c89ba=>_0x3c89ba['id']===_0x6f4d0d);if(!_0x14c3a2)return this[_0x3c5736(0x198)](_0x3c5736(0x1a8),{'error':new _0x41ad2a(_0x3c5736(0x1b6),this,{'sourceId':_0x6f4d0d}),'sourceId':_0x6f4d0d}),[];try{const _0x1de018=(await _0x14c3a2[_0x3c5736(0x193)](_0x333966))[_0x3c5736(0x1ab)](_0x468e8a=>{const _0x1aa23f=_0x3c5736,_0x1924b6=this[_0x1aa23f(0x1b3)](_0x468e8a['id']);return{..._0x468e8a,'isInContext':_0x1924b6};});return _0x14c3a2[_0x3c5736(0x1ac)]=_0x1de018,this[_0x3c5736(0x198)](_0x3c5736(0x1f0),{'sourceId':_0x6f4d0d,'source':_0x14c3a2,'resources':_0x1de018,'uid':_0x3a7951}),_0x1de018;}catch(_0x1f0734){return this[_0x3c5736(0x198)](_0x3c5736(0x1a8),{'error':new _0x41ad2a(_0x3c5736(0x1f3),this,{'sourceId':_0x6f4d0d,'originalError':_0x1f0734}),'sourceId':_0x6f4d0d,'sourceLabel':_0x14c3a2[_0x3c5736(0x1b0)]}),[];}}async[_0x268a51(0x1c8)](_0x324004,_0x52d202){const _0x547efb=_0x268a51;if(this[_0x547efb(0x1b3)](_0x52d202['id']))return;let _0x2ad364=_0x52d202[_0x547efb(0x1be)];if(!_0x2ad364&&_0x324004[_0x547efb(0x1a3)])try{_0x2ad364=await _0x324004[_0x547efb(0x1a3)](_0x52d202['id']);}catch(_0x57338d){return void this[_0x547efb(0x198)](_0x547efb(0x1a8),{'error':new _0x41ad2a(_0x547efb(0x194),this,{'resourceId':_0x52d202['id'],'sourceId':_0x324004['id'],'originalError':_0x57338d}),'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']});}if(_0x2ad364)switch(_0x52d202[_0x547efb(0x202)]){case _0x3a882d[_0x547efb(0x1bd)]:if(_0x547efb(0x216)!=typeof _0x2ad364)return void this[_0x547efb(0x198)](_0x547efb(0x1a8),{'error':new _0x41ad2a(_0x547efb(0x1ed),this,{'resourceId':_0x52d202['id'],'sourceId':_0x324004['id'],'expectedType':_0x547efb(0x216),'actualType':typeof _0x2ad364}),'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']});await this[_0x547efb(0x1ca)](_0x2ad364,{'label':_0x52d202[_0x547efb(0x1b0)],'resourceId':_0x52d202['id']});break;case _0x3a882d[_0x547efb(0x1d8)]:if(!(_0x2ad364 instanceof File))return void this[_0x547efb(0x198)](_0x547efb(0x1a8),{'error':new _0x41ad2a(_0x547efb(0x1ed),this,{'resourceId':_0x52d202['id'],'sourceId':_0x324004['id'],'expectedType':_0x547efb(0x20f),'actualType':typeof _0x2ad364}),'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']});await this[_0x547efb(0x1cb)]([_0x2ad364],{'label':_0x52d202[_0x547efb(0x1b0)],'resourceId':_0x52d202['id']});break;case _0x3a882d[_0x547efb(0x212)]:if(_0x547efb(0x1af)!=typeof _0x2ad364||!(_0x547efb(0x218)in _0x2ad364)||!(_0x547efb(0x202)in _0x2ad364))return void this[_0x547efb(0x198)](_0x547efb(0x1a8),{'error':new _0x41ad2a(_0x547efb(0x1ed),this,{'resourceId':_0x52d202['id'],'sourceId':_0x324004['id'],'expectedType':_0x547efb(0x19a),'actualType':typeof _0x2ad364}),'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']});_0x2ad364=AIChatContext[_0x547efb(0x1a9)](_0x2ad364,_0x52d202[_0x547efb(0x1b0)]),await this[_0x547efb(0x1cb)]([_0x2ad364],{'label':_0x52d202[_0x547efb(0x1b0)],'resourceId':_0x52d202['id']},_0x3a882d[_0x547efb(0x212)]);break;default:this[_0x547efb(0x198)](_0x547efb(0x1a8),{'error':new _0x41ad2a(_0x547efb(0x1fc),this,{'resourceId':_0x52d202['id'],'sourceId':_0x324004['id'],'resourceType':_0x52d202[_0x547efb(0x202)]}),'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']});}else this[_0x547efb(0x198)](_0x547efb(0x1a8),{'error':new _0x41ad2a(_0x547efb(0x1c2),this,{'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']}),'resourceId':_0x52d202['id'],'sourceId':_0x324004['id']});}static[_0x268a51(0x1a9)](_0x1190cb,_0xc7ff2f){const _0x94649e=_0x268a51;switch(_0x1190cb[_0x94649e(0x202)]){case _0x318472[_0x94649e(0x20b)]:return new File([_0x1190cb[_0x94649e(0x218)]],_0xc7ff2f,{'type':_0x94649e(0x1b9)});case _0x318472[_0x94649e(0x19c)]:return new File([_0x1190cb[_0x94649e(0x218)]],_0xc7ff2f,{'type':_0x94649e(0x1e4)});default:return new File([_0x1190cb[_0x94649e(0x218)]],_0xc7ff2f,{'type':_0x94649e(0x1a6)});}}static[_0x268a51(0x18d)](_0x28127e){const _0x22d873=_0x268a51;switch(_0x28127e[_0x22d873(0x202)]){case _0x3a882d[_0x22d873(0x1d8)]:return{'type':_0x3a882d[_0x22d873(0x1d8)],'id':_0x28127e['id']};case _0x3a882d[_0x22d873(0x1bd)]:return{'type':_0x3a882d[_0x22d873(0x1bd)],'id':_0x28127e['id']};case _0x3a882d[_0x22d873(0x1d9)]:return{'type':_0x3a882d[_0x22d873(0x1d9)],'id':_0x28127e['id'],..._0x28127e[_0x22d873(0x18f)]?.[_0x22d873(0x19f)]&&{'selection':_0x28127e[_0x22d873(0x18f)]}};case _0x3a882d[_0x22d873(0x212)]:return{'type':_0x3a882d[_0x22d873(0x1d8)],'id':_0x28127e['id']};default:return null;}}[_0x268a51(0x1a0)](_0x1f8b33,_0x1a3db9=!0x1){const _0x34cbfc=_0x268a51;if(this[_0x34cbfc(0x1f5)][_0x34cbfc(0x1d0)](_0x1f8b33[_0x34cbfc(0x19b)],_0x1f8b33),_0x1f8b33[_0x34cbfc(0x195)]||this[_0x34cbfc(0x198)](_0x34cbfc(0x1d7),{'contextItem':_0x1f8b33,'isLoading':_0x1a3db9}),_0x34cbfc(0x1c4)===_0x1f8b33[_0x34cbfc(0x19b)]&&this[_0x34cbfc(0x1dd)](),_0x1f8b33[_0x34cbfc(0x1a2)]){const _0x3d66f4=this[_0x34cbfc(0x1c9)](_0x1f8b33[_0x34cbfc(0x1a2)]);_0x3d66f4&&_0x3d66f4[_0x34cbfc(0x1bb)](_0x306463=>{const _0x3d4ea1=_0x34cbfc;this[_0x3d4ea1(0x20d)](_0x306463,_0x1f8b33[_0x3d4ea1(0x1a2)],!0x0);});}}[_0x268a51(0x1ef)](_0x34065b){const _0xd757c6=_0x268a51,_0x456212=this[_0xd757c6(0x1f5)][_0xd757c6(0x1ba)](_0x34065b),_0x4b8a60=this[_0xd757c6(0x215)][_0xd757c6(0x1ba)](_0x34065b);if(_0x4b8a60&&(_0x4b8a60[_0xd757c6(0x197)](),this[_0xd757c6(0x215)][_0xd757c6(0x19d)](_0x34065b)),_0x456212?.[_0xd757c6(0x1a2)]){const _0x416e78=this[_0xd757c6(0x1c9)](_0x456212[_0xd757c6(0x1a2)]);_0x416e78&&_0x416e78[_0xd757c6(0x1bb)](_0x3bf910=>{const _0x4b3c4a=_0xd757c6;this[_0x4b3c4a(0x20d)](_0x3bf910,_0x456212[_0x4b3c4a(0x1a2)],!0x1);});}this[_0xd757c6(0x1f5)][_0xd757c6(0x19d)](_0x34065b),this[_0xd757c6(0x198)](_0xd757c6(0x1d4),{'uiId':_0x34065b,'type':_0x456212?.[_0xd757c6(0x202)]}),_0xd757c6(0x1c4)===_0x34065b&&this[_0xd757c6(0x1dd)]();}[_0x268a51(0x1f9)](_0x1d9823,_0x266459){const _0x1e7984=_0x268a51;if(this[_0x1e7984(0x1f5)][_0x1e7984(0x203)](_0x1d9823[_0x1e7984(0x19b)])&&(this[_0x1e7984(0x1f5)][_0x1e7984(0x1d0)](_0x1d9823[_0x1e7984(0x19b)],_0x1d9823),this[_0x1e7984(0x198)](_0x1e7984(0x1f4),{'contextItem':_0x1d9823,'isLoading':_0x266459}),_0x1d9823[_0x1e7984(0x1a2)])){const _0x130806=this[_0x1e7984(0x1c9)](_0x1d9823[_0x1e7984(0x1a2)]);_0x130806&&_0x130806[_0x1e7984(0x1bb)](_0x122f0b=>{const _0x31d507=_0x1e7984;this[_0x31d507(0x20d)](_0x122f0b,_0x1d9823[_0x31d507(0x1a2)],!0x0);});}}[_0x268a51(0x1c0)](_0x4f22b0){const _0x10d342=_0x268a51;this[_0x10d342(0x1e8)][_0x10d342(0x1d0)](_0x4f22b0[_0x10d342(0x19b)],_0x4f22b0);}[_0x268a51(0x1b5)](){const _0x2b1995=_0x268a51;this[_0x2b1995(0x1b8)]={'document':{'enabled':!0x1!==this[_0x2b1995(0x1f2)]?.[_0x2b1995(0x205)]?.[_0x2b1995(0x1ce)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2b1995(0x1f2)]?.[_0x2b1995(0x1d6)]?.[_0x2b1995(0x1ce)]},'files':{'enabled':!0x1!==this[_0x2b1995(0x1f2)]?.[_0x2b1995(0x1e9)]?.[_0x2b1995(0x1ce)]},'sources':this[_0x2b1995(0x1d3)]()},this[_0x2b1995(0x198)](_0x2b1995(0x1c6),{'options':this[_0x2b1995(0x1b8)]});}[_0x268a51(0x1d3)](){const _0x546646=_0x268a51;return this[_0x546646(0x1f2)]?.[_0x546646(0x1f1)]?.[_0x546646(0x1ab)](_0x5b933f=>({..._0x5b933f,'resources':[]}))??[];}[_0x268a51(0x1dd)](){const _0x7f0be1=_0x268a51,_0x19799c=this[_0x7f0be1(0x1fd)]()||this[_0x7f0be1(0x1e5)]();this[_0x7f0be1(0x1b8)][_0x7f0be1(0x205)][_0x7f0be1(0x217)]=_0x19799c,this[_0x7f0be1(0x198)](_0x7f0be1(0x1c6),{'options':this[_0x7f0be1(0x1b8)]});}[_0x268a51(0x1b3)](_0x10a433){const _0x748ad7=_0x268a51;for(const _0x163548 of this[_0x748ad7(0x1f5)][_0x748ad7(0x1eb)]())if(_0x163548[_0x748ad7(0x1a2)]===_0x10a433)return!0x0;for(const _0xd46aab of this[_0x748ad7(0x1e8)][_0x748ad7(0x1eb)]())if(_0xd46aab[_0x748ad7(0x1a2)]===_0x10a433)return!0x0;return!0x1;}[_0x268a51(0x1c9)](_0x148728){const _0x3e3a12=_0x268a51,_0x190d0f=[];for(const _0x4ebfdc of this[_0x3e3a12(0x1b8)][_0x3e3a12(0x1f1)]){_0x4ebfdc[_0x3e3a12(0x1ac)][_0x3e3a12(0x20c)](_0x34baca=>_0x34baca['id']===_0x148728)&&_0x190d0f[_0x3e3a12(0x1df)](_0x4ebfdc['id']);}return 0x0===_0x190d0f[_0x3e3a12(0x19f)]?null:_0x190d0f;}[_0x268a51(0x20d)](_0x2fd97c,_0x45c06d,_0x1df071){const _0x2d25b3=_0x268a51,_0x2613ad=this[_0x2d25b3(0x1b8)][_0x2d25b3(0x1f1)][_0x2d25b3(0x20c)](_0x308e66=>_0x308e66['id']===_0x2fd97c);if(!_0x2613ad)return;const _0xeee143=_0x2613ad[_0x2d25b3(0x1ac)][_0x2d25b3(0x20c)](_0x1e33e4=>_0x1e33e4['id']===_0x45c06d);_0xeee143&&(_0xeee143[_0x2d25b3(0x191)]=_0x1df071,this[_0x2d25b3(0x198)](_0x2d25b3(0x1a4),{'sourceId':_0x2fd97c,'resourceId':_0x45c06d,'isInContext':_0x1df071}));}[_0x268a51(0x1e2)](_0x295dbe){const _0x55eff0=_0x268a51;this[_0x55eff0(0x208)][_0x55eff0(0x1d0)](_0x295dbe,!0x0),this[_0x55eff0(0x208)][_0x55eff0(0x20a)]&&this[_0x55eff0(0x198)](_0x55eff0(0x1ff),{'isUploadInProgress':!0x0});}[_0x268a51(0x1ae)](_0x4c06b3){const _0x225fd3=_0x268a51;this[_0x225fd3(0x208)][_0x225fd3(0x19d)](_0x4c06b3),0x0===this[_0x225fd3(0x208)][_0x225fd3(0x20a)]&&this[_0x225fd3(0x198)](_0x225fd3(0x1ff),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a8a96=_0x1b7a;(function(_0x94af9c,_0x43d355){const _0x1a5f8e=_0x1b7a,_0x11dc95=_0x94af9c();while(!![]){try{const _0x18595f=parseInt(_0x1a5f8e(0x1f2))/0x1+-parseInt(_0x1a5f8e(0x1fa))/0x2+parseInt(_0x1a5f8e(0x1ed))/0x3+-parseInt(_0x1a5f8e(0x1bf))/0x4+parseInt(_0x1a5f8e(0x1d8))/0x5*(parseInt(_0x1a5f8e(0x198))/0x6)+parseInt(_0x1a5f8e(0x194))/0x7+-parseInt(_0x1a5f8e(0x1cd))/0x8;if(_0x18595f===_0x43d355)break;else _0x11dc95['push'](_0x11dc95['shift']());}catch(_0x502e69){_0x11dc95['push'](_0x11dc95['shift']());}}}(_0x290e,0x6ba46));import{CKEditorError as _0x1249ee,EmitterMixin as _0x4ce354,logWarning as _0x5c35ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1a4723}from'../../aicore/model/aiinteraction.js';function _0x1b7a(_0x3954ba,_0x52be4b){const _0x290ed8=_0x290e();return _0x1b7a=function(_0x1b7a43,_0x26abd9){_0x1b7a43=_0x1b7a43-0x194;let _0x3353d3=_0x290ed8[_0x1b7a43];return _0x3353d3;},_0x1b7a(_0x3954ba,_0x52be4b);}function _0x290e(){const _0x3de7f1=['find','isSelectionInContext','push','toggleWebSearch','ai-chat-conversation-already-started','ai-chat-conversation-start-failed','attributes','getPendingContextItems','ai-chat-conversation-set-model-null','conversationInitialized','2063511FonlQy','fetchConversation','createInteraction','getAll','currentReply','234274mHBFDz','text-delta','assistant','selectedModel','content','type','text','setModel','331854FIhTWC','connector','ai-chat-handle-user-interaction-already-in-progress','addSelectionToContext','capabilities','isAvailable','populateFromMessage','getAvailableModels','appendContent','sessionId','fetchConversationMessages','5222231PtlKIt','start','interactionCreated','ai-chat-conversation-init-from-id-failed','6FeivAn','selectedModelId','message','ai-chat-conversation-init-failed','removeInteraction','getDocumentContext','delegate','toLowerCase','prompt','toggleReasoning','lastInteraction','chatContext','stack','isStarted','quickActionData','reset','getMessages','removeFromContext','getModel','group','addUrlToContext','interactions','set','startConversation','ai-chat-conversation-set-model-not-available','contextItems','chatModels','addResourceToContext','load','options','role','fire','currentInteraction','handleUserInteraction','conversationStarted','_extractContextItems','indexOf','addCurrentDocumentToContext','isCurrentDocumentInContext','819236fEgbAA','removeSelectionFromContext','webSearch','user','addFilesToContext','length','ai-chat-conversation-start-no-model-selected','getCapabilitiesConfig','splice','updateCurrentDocument','modification-delta','getEditor','destroy','addToConversationContext','12880456pDWSvC','stop','updateCurrentDocumentInContext','chatCapabilities','setConversationTitle','init','createReply','model','modelSelected','title','getConversation','3767755VrLUds','hasOwn','ai-chat-handle-user-conversation-not-initialized','reasoning','isCurrentDocumentInConversation','_processMessagesToInteractions','error','getCurrentDocumentContext','conversationId','getInteraction','loadSourceResources'];_0x290e=function(){return _0x3de7f1;};return _0x290e();}import{AIChatContext as _0x2c93d1,AI_CONTEXT_MODEL_EVENT_NAMES as _0xda3ad1}from'./aichatcontext.js';import{AICapabilities as _0x1652bd,CAPABILITIES_MODEL_EVENT_NAMES as _0x14e4e9}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f26e8}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ce354(){['id'];[_0x2a8a96(0x1a5)]=!0x1;[_0x2a8a96(0x1ad)]=[];[_0x2a8a96(0x1b8)];[_0x2a8a96(0x1f5)];[_0x2a8a96(0x1fb)];[_0x2a8a96(0x1b5)];constructor(_0xf111e4){const _0x16ad10=_0x2a8a96;super(),this[_0x16ad10(0x1b5)]=_0xf111e4,this[_0x16ad10(0x1fb)]=_0xf111e4[_0x16ad10(0x1fb)],this[_0x16ad10(0x1b2)]=_0xf111e4[_0x16ad10(0x1b2)],this['id']=_0xf111e4[_0x16ad10(0x1e0)];}async[_0x2a8a96(0x1d2)](_0x18ffa7){const _0x4ae5a7=_0x2a8a96;try{this[_0x4ae5a7(0x1a3)]=new _0x2c93d1({'connector':this[_0x4ae5a7(0x1fb)],'config':_0x18ffa7,'ownerId':this['id']}),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x19e)](..._0xda3ad1)['to'](this),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x1d2)](),this[_0x4ae5a7(0x1d0)]=new _0x1652bd(),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x19e)](..._0x14e4e9)['to'](this),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x1d2)]();const _0xd19988=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x201)]();this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1ec),{'availableModels':_0xd19988});const _0xf26ae5=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x1aa)](this[_0x4ae5a7(0x1b5)][_0x4ae5a7(0x199)]);_0xf26ae5&&await this[_0x4ae5a7(0x1f9)](_0xf26ae5);}catch(_0x42cb19){const _0x47eba3=new _0x1249ee(_0x4ae5a7(0x19b),null,{'message':_0x42cb19[_0x4ae5a7(0x19a)]});_0x47eba3[_0x4ae5a7(0x1a4)]=_0x42cb19[_0x4ae5a7(0x1a4)],this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1de),{'error':_0x47eba3});}}async[_0x2a8a96(0x195)](){const _0x3ca595=_0x2a8a96;if(this[_0x3ca595(0x1a5)])throw new _0x1249ee(_0x3ca595(0x1e7),null,{'conversation':this});if(!this[_0x3ca595(0x1f5)])throw new _0x1249ee(_0x3ca595(0x1c5),null,{'conversation':this});try{const {id:_0x5236ae}=await this[_0x3ca595(0x1fb)][_0x3ca595(0x1af)](this['id'],this[_0x3ca595(0x1b5)][_0x3ca595(0x1ab)])[_0x3ca595(0x1d7)]();this['id']=_0x5236ae,this[_0x3ca595(0x1a5)]=!0x0,this[_0x3ca595(0x1b7)](_0x3ca595(0x1ba),{'conversationId':this['id'],'selectedModel':this[_0x3ca595(0x1f5)]});}catch(_0x2df490){const _0x253bae=new _0x1249ee(_0x3ca595(0x1e8),null,{'message':_0x2df490[_0x3ca595(0x19a)]});_0x253bae[_0x3ca595(0x1a4)]=_0x2df490[_0x3ca595(0x1a4)],this[_0x3ca595(0x1b7)](_0x3ca595(0x1de),{'error':_0x253bae});}}async[_0x2a8a96(0x1b4)](_0x40d7b7,_0x333798){const _0x51426b=_0x2a8a96;try{const _0x20dd61=await this[_0x51426b(0x1fb)][_0x51426b(0x1ee)](_0x40d7b7)[_0x51426b(0x1d7)](),_0x4f0b10=await this[_0x51426b(0x1fb)][_0x51426b(0x204)](_0x40d7b7)[_0x51426b(0x1a8)](),_0x5d3345=_0x4f0b10[0x0][_0x51426b(0x1d4)];this[_0x51426b(0x1a5)]=!0x0,this['id']=_0x20dd61['id'],_0x51426b(0x1d6)in _0x20dd61?this[_0x51426b(0x1b7)](_0x51426b(0x1d1),_0x20dd61[_0x51426b(0x1d6)],!0x0):this[_0x51426b(0x1b7)](_0x51426b(0x1d1),'',!0x0);const _0x5c1c50=(await this[_0x51426b(0x1b2)][_0x51426b(0x1f0)]())[_0x51426b(0x1e3)](_0x2b265f=>_0x2b265f['id'][_0x51426b(0x19f)]()===_0x5d3345[_0x51426b(0x19f)]());return this[_0x51426b(0x1f5)]=_0x5c1c50,this[_0x51426b(0x1b7)](_0x51426b(0x1d5),{'selectedModel':_0x5c1c50,'isDisabled':!0x0}),await this[_0x51426b(0x1dd)](_0x4f0b10,_0x333798,_0x5d3345),this[_0x51426b(0x1b8)]=void 0x0,this;}catch(_0x19f896){const _0x48deae=new _0x1249ee(_0x51426b(0x197),null,{'message':_0x19f896[_0x51426b(0x19a)],'conversationId':_0x40d7b7});throw _0x48deae[_0x51426b(0x1a4)]=_0x19f896[_0x51426b(0x1a4)],this[_0x51426b(0x1b7)](_0x51426b(0x1de),{'error':_0x48deae}),_0x48deae;}}async[_0x2a8a96(0x1dd)](_0x51e7fa,_0x8f2687,_0x7d7494){const _0x2a21fc=_0x2a8a96;let _0x1db313;for(const _0x321ad9 of _0x51e7fa)if(_0x2a21fc(0x1c2)===_0x321ad9[_0x2a21fc(0x1b6)]){const _0x3dfbe5=await this[_0x2a21fc(0x1bb)](_0x321ad9),_0x23d24a={'isReasoningEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1db)),'isWebSearchEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1c1))};_0x1db313=this[_0x2a21fc(0x1ef)]({'userMessage':_0x321ad9[_0x2a21fc(0x1a0)],'contextItems':_0x3dfbe5,'capabilities':_0x23d24a,'modelId':_0x7d7494,'quickActionData':_0x321ad9[_0x2a21fc(0x1e9)]?.[_0x2a21fc(0x1a6)]}),this[_0x2a21fc(0x1b8)]=_0x1db313,this[_0x2a21fc(0x1a3)][_0x2a21fc(0x1cc)](this[_0x2a21fc(0x1b8)][_0x2a21fc(0x1b1)]);}else{if(_0x2a21fc(0x1f4)===_0x321ad9[_0x2a21fc(0x1b6)]&&_0x1db313)for(const _0x39bee7 of _0x321ad9[_0x2a21fc(0x1f6)]){const _0x13c342=_0x2a21fc(0x1f8)===_0x39bee7[_0x2a21fc(0x1f7)]?_0x2a21fc(0x1f3):_0x2a21fc(0x1c9),_0x13f615=_0x1db313[_0x2a21fc(0x19d)]()?.[_0x2a21fc(0x203)]!==_0x8f2687;_0x1db313[_0x2a21fc(0x1f1)]=_0x1db313[_0x2a21fc(0x1d3)]({'type':_0x13c342,'isDone':!0x0,'interactionId':_0x1db313['id'],'areActionsDisabled':_0x13f615}),_0x1db313[_0x2a21fc(0x1f1)][_0x2a21fc(0x202)](_0x39bee7[_0x2a21fc(0x1f6)]);}}}async[_0x2a8a96(0x1bb)](_0x3558d0){const _0x28c90e=_0x2a8a96,_0x2d44c0=new Map();if(!_0x3558d0[_0x28c90e(0x1f6)])return _0x2d44c0;for(const _0x495c24 of _0x3558d0[_0x28c90e(0x1f6)]){const _0x3acc07=await this[_0x28c90e(0x1a3)][_0x28c90e(0x200)](_0x495c24);_0x3acc07&&_0x2d44c0[_0x28c90e(0x1ae)](_0x3acc07['id'],_0x3acc07);}return _0x2d44c0;}async[_0x2a8a96(0x1b9)]({userMessage:_0x2fde5e,quickActionData:_0x62dd37}){const _0x183bd9=_0x2a8a96;if(!this[_0x183bd9(0x1a5)])throw new _0x1249ee(_0x183bd9(0x1da),null,{'conversation':this});if(this[_0x183bd9(0x1b8)])throw new _0x1249ee(_0x183bd9(0x1fc),null,{'conversation':this});try{const _0x7de25f=this[_0x183bd9(0x1a3)][_0x183bd9(0x1ea)](),_0x238bf2=this[_0x183bd9(0x1d0)][_0x183bd9(0x1c6)](),_0x1aa2dd=this[_0x183bd9(0x1f5)]['id'];this[_0x183bd9(0x1b8)]=this[_0x183bd9(0x1ef)]({'userMessage':_0x2fde5e,'contextItems':_0x7de25f,'capabilities':_0x238bf2,'modelId':_0x1aa2dd,'quickActionData':_0x62dd37}),await this[_0x183bd9(0x1b8)][_0x183bd9(0x195)](),this[_0x183bd9(0x1a3)][_0x183bd9(0x1cc)](this[_0x183bd9(0x1b8)][_0x183bd9(0x1b1)]);}catch(_0x2caf3b){this[_0x183bd9(0x1b7)](_0x183bd9(0x1de),{'interactionId':this[_0x183bd9(0x1b8)]?this[_0x183bd9(0x1b8)]['id']:void 0x0,'error':_0x2caf3b});}finally{this[_0x183bd9(0x1b8)]?.[_0x183bd9(0x1ce)](),this[_0x183bd9(0x1b8)]=void 0x0;}}[_0x2a8a96(0x1ef)]({userMessage:_0x194da6,contextItems:_0x1ef598,capabilities:_0x172ce3,modelId:_0x52e756,quickActionData:_0xeba51e}){const _0x4a5c37=_0x2a8a96,_0x444c34=new _0x5f26e8({'userMessage':_0x194da6,'contextItems':_0x1ef598,'capabilities':_0x172ce3,'conversationId':this['id'],'connector':this[_0x4a5c37(0x1fb)],'editor':this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)]&&this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)](),'model':_0x52e756,'quickActionData':_0xeba51e});return _0x444c34[_0x4a5c37(0x19e)](..._0x1a4723)['to'](this),this[_0x4a5c37(0x1ad)][_0x4a5c37(0x1e5)](_0x444c34),this[_0x4a5c37(0x1b7)](_0x4a5c37(0x196),_0x444c34),_0x444c34;}[_0x2a8a96(0x1e1)](_0x1030c7){const _0x388fb8=_0x2a8a96;return this[_0x388fb8(0x1ad)][_0x388fb8(0x1e3)](_0x3daae2=>_0x3daae2['id']===_0x1030c7);}[_0x2a8a96(0x19c)](_0x19997f){const _0xbdfce1=_0x2a8a96,_0x250ac4=this[_0xbdfce1(0x1e1)](_0x19997f);_0x250ac4&&(_0x250ac4[_0xbdfce1(0x1cb)](),this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1c7)](this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1bc)](_0x250ac4),0x1));}get[_0x2a8a96(0x1a2)](){const _0x371c69=_0x2a8a96;return this[_0x371c69(0x1ad)][this[_0x371c69(0x1ad)][_0x371c69(0x1c4)]-0x1];}[_0x2a8a96(0x1bd)](_0x4b6dec){const _0x4e9285=_0x2a8a96;this[_0x4e9285(0x1a3)][_0x4e9285(0x1bd)](_0x4b6dec);}async[_0x2a8a96(0x1cf)]({content:_0x2f1045,version:_0x14f589,sessionId:_0x48a744,selections:_0x2744a7}){const _0x1bfc81=_0x2a8a96;await this[_0x1bfc81(0x1a3)][_0x1bfc81(0x1c8)](_0x2f1045,_0x14f589,_0x48a744,_0x2744a7);}[_0x2a8a96(0x1df)](){const _0x54f8ac=_0x2a8a96;return this[_0x54f8ac(0x1b8)]?.[_0x54f8ac(0x19d)]()?.[_0x54f8ac(0x1f6)]||'';}[_0x2a8a96(0x1fd)](_0x2bf77e){const _0x39e136=_0x2a8a96;this[_0x39e136(0x1a3)][_0x39e136(0x1fd)](_0x2bf77e);}[_0x2a8a96(0x1c0)](){const _0x116cbb=_0x2a8a96;this[_0x116cbb(0x1a3)][_0x116cbb(0x1c0)]();}[_0x2a8a96(0x1c3)](_0x4533bb){const _0x1beae5=_0x2a8a96;this[_0x1beae5(0x1a3)][_0x1beae5(0x1c3)](_0x4533bb);}[_0x2a8a96(0x1ac)](_0x36ae0f){const _0x5e869d=_0x2a8a96;this[_0x5e869d(0x1a3)][_0x5e869d(0x1ac)](_0x36ae0f);}[_0x2a8a96(0x1b3)](_0x5ce858,_0x2af263){const _0xfb2193=_0x2a8a96;this[_0xfb2193(0x1a3)][_0xfb2193(0x1b3)](_0x5ce858,_0x2af263);}[_0x2a8a96(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0){const _0x3c6a01=_0x2a8a96;return this[_0x3c6a01(0x1a3)][_0x3c6a01(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0);}[_0x2a8a96(0x1a9)](_0x33f051){const _0x63e33a=_0x2a8a96;this[_0x63e33a(0x1a3)][_0x63e33a(0x1a9)](_0x33f051);}[_0x2a8a96(0x1e6)](){const _0x48d1cc=_0x2a8a96;this[_0x48d1cc(0x1d0)][_0x48d1cc(0x1e6)]();}[_0x2a8a96(0x1a1)](){const _0x50cb7f=_0x2a8a96;this[_0x50cb7f(0x1d0)][_0x50cb7f(0x1a1)]();}[_0x2a8a96(0x1be)](){const _0x40d267=_0x2a8a96;return this[_0x40d267(0x1a3)][_0x40d267(0x1be)]();}[_0x2a8a96(0x1dc)](){const _0x2263c0=_0x2a8a96;return this[_0x2263c0(0x1a3)][_0x2263c0(0x1dc)]();}[_0x2a8a96(0x1e4)](){const _0x1e8d06=_0x2a8a96;return this[_0x1e8d06(0x1a3)][_0x1e8d06(0x1e4)]();}async[_0x2a8a96(0x1f9)](_0x5b8abd){const _0x36e907=_0x2a8a96;_0x5b8abd?!0x1===await this[_0x36e907(0x1b2)][_0x36e907(0x1ff)](_0x5b8abd)&&(_0x5c35ac(_0x36e907(0x1b0),{'conversation':this,'model':_0x5b8abd}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]):(_0x5c35ac(_0x36e907(0x1eb),{'conversation':this}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]),_0x5b8abd['id']!==this[_0x36e907(0x1f5)]?.['id']&&(this[_0x36e907(0x1f5)]=_0x5b8abd,this[_0x36e907(0x1d0)][_0x36e907(0x1a7)](),this[_0x36e907(0x1b7)](_0x36e907(0x1d5),{'selectedModel':_0x5b8abd}));}}
23
+ const _0x7596b5=_0x4949;function _0x4949(_0x47460a,_0x38139a){const _0x59a057=_0x59a0();return _0x4949=function(_0x494918,_0x557a7a){_0x494918=_0x494918-0xe0;let _0x3fd833=_0x59a057[_0x494918];return _0x3fd833;},_0x4949(_0x47460a,_0x38139a);}(function(_0xcab4e3,_0x5e9a9d){const _0xab23e3=_0x4949,_0x3aadb1=_0xcab4e3();while(!![]){try{const _0x597e10=-parseInt(_0xab23e3(0x141))/0x1+-parseInt(_0xab23e3(0x118))/0x2+-parseInt(_0xab23e3(0x112))/0x3+parseInt(_0xab23e3(0x113))/0x4+-parseInt(_0xab23e3(0x10f))/0x5+-parseInt(_0xab23e3(0x124))/0x6*(-parseInt(_0xab23e3(0x105))/0x7)+-parseInt(_0xab23e3(0x14a))/0x8*(-parseInt(_0xab23e3(0xe0))/0x9);if(_0x597e10===_0x5e9a9d)break;else _0x3aadb1['push'](_0x3aadb1['shift']());}catch(_0x4bd789){_0x3aadb1['push'](_0x3aadb1['shift']());}}}(_0x59a0,0xd3d25));import{CKEditorError as _0x3fea54,EmitterMixin as _0x1082bf,logWarning as _0x471024}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x46bc25}from'../../aicore/model/aiinteraction.js';function _0x59a0(){const _0x2c4bac=['fire','chatContext','conversationInitialized','currentReply','ai-chat-handle-user-conversation-not-initialized','message','modification-delta','chatModels','attributes','3611410BYOBOI','delegate','start','3365469rlAoCO','1734236opFxrT','error','getPendingContextItems','selectedModelId','handleUserInteraction','2440556DkwFep','ai-chat-conversation-start-failed','splice','load','currentInteraction','ai-chat-conversation-set-model-null','getAvailableModels','fetchConversation','capabilities','selectedModel','init','isCurrentDocumentInContext','30gnkHVI','prompt','getEditor','sessionId','type','fetchConversationMessages','connector','addSelectionToContext','getDocumentContext','model','ai-chat-handle-user-interaction-already-in-progress','ai-chat-conversation-init-failed','hasOwn','updateCurrentDocument','text','setConversationTitle','addUrlToContext','text-delta','conversationId','indexOf','toLowerCase','isAvailable','getAll','set','_processMessagesToInteractions','createInteraction','ai-chat-conversation-set-model-not-available','group','addToConversationContext','675749MqtQGK','getConversation','stack','reasoning','_extractContextItems','ai-chat-conversation-already-started','stop','user','getCapabilitiesConfig','76232TKEgPY','assistant','getInteraction','removeInteraction','getMessages','title','removeFromContext','addFilesToContext','2979hZiNdd','destroy','push','isStarted','updateCurrentDocumentInContext','interactionCreated','toggleReasoning','loadSourceResources','ai-chat-conversation-start-no-model-selected','content','getCurrentDocumentContext','interactions','createReply','modelSelected','length','webSearch','conversationStarted','chatCapabilities','ai-chat-conversation-init-from-id-failed','isSelectionInContext','find','populateFromMessage','isCurrentDocumentInConversation','getModel','quickActionData','removeSelectionFromContext','addResourceToContext','options','startConversation','role','reset','contextItems','lastInteraction','appendContent','toggleWebSearch','addCurrentDocumentToContext','setModel','1428133lMpWWf'];_0x59a0=function(){return _0x2c4bac;};return _0x59a0();}import{AIChatContext as _0x1e3534,AI_CONTEXT_MODEL_EVENT_NAMES as _0x5d3eb0}from'./aichatcontext.js';import{AICapabilities as _0x182441,CAPABILITIES_MODEL_EVENT_NAMES as _0x3df914}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4f88cf}from'./aichatinteraction.js';export class AIChatConversation extends _0x1082bf(){['id'];[_0x7596b5(0xe3)]=!0x1;[_0x7596b5(0xeb)]=[];[_0x7596b5(0x11c)];[_0x7596b5(0x121)];[_0x7596b5(0x12a)];[_0x7596b5(0xfb)];constructor(_0x8057c1){const _0x4986f1=_0x7596b5;super(),this[_0x4986f1(0xfb)]=_0x8057c1,this[_0x4986f1(0x12a)]=_0x8057c1[_0x4986f1(0x12a)],this[_0x4986f1(0x10d)]=_0x8057c1[_0x4986f1(0x10d)],this['id']=_0x8057c1[_0x4986f1(0x136)];}async[_0x7596b5(0x122)](_0x1dfa3e){const _0x1e70a8=_0x7596b5;try{this[_0x1e70a8(0x107)]=new _0x1e3534({'connector':this[_0x1e70a8(0x12a)],'config':_0x1dfa3e,'ownerId':this['id']}),this[_0x1e70a8(0x107)][_0x1e70a8(0x110)](..._0x5d3eb0)['to'](this),this[_0x1e70a8(0x107)][_0x1e70a8(0x122)](),this[_0x1e70a8(0xf1)]=new _0x182441(),this[_0x1e70a8(0xf1)][_0x1e70a8(0x110)](..._0x3df914)['to'](this),this[_0x1e70a8(0xf1)][_0x1e70a8(0x122)]();const _0x3d6ebd=await this[_0x1e70a8(0x10d)][_0x1e70a8(0x11e)]();this[_0x1e70a8(0x106)](_0x1e70a8(0x108),{'availableModels':_0x3d6ebd});const _0x3feca5=await this[_0x1e70a8(0x10d)][_0x1e70a8(0xf7)](this[_0x1e70a8(0xfb)][_0x1e70a8(0x116)]);_0x3feca5&&await this[_0x1e70a8(0x104)](_0x3feca5);}catch(_0x156101){const _0x2f493b=new _0x3fea54(_0x1e70a8(0x12f),null,{'message':_0x156101[_0x1e70a8(0x10b)]});_0x2f493b[_0x1e70a8(0x143)]=_0x156101[_0x1e70a8(0x143)],this[_0x1e70a8(0x106)](_0x1e70a8(0x114),{'error':_0x2f493b});}}async[_0x7596b5(0x111)](){const _0x5c3eb7=_0x7596b5;if(this[_0x5c3eb7(0xe3)])throw new _0x3fea54(_0x5c3eb7(0x146),null,{'conversation':this});if(!this[_0x5c3eb7(0x121)])throw new _0x3fea54(_0x5c3eb7(0xe8),null,{'conversation':this});try{const {id:_0x429f1f}=await this[_0x5c3eb7(0x12a)][_0x5c3eb7(0xfc)](this['id'],this[_0x5c3eb7(0xfb)][_0x5c3eb7(0x13f)])[_0x5c3eb7(0x142)]();this['id']=_0x429f1f,this[_0x5c3eb7(0xe3)]=!0x0,this[_0x5c3eb7(0x106)](_0x5c3eb7(0xf0),{'conversationId':this['id'],'selectedModel':this[_0x5c3eb7(0x121)]});}catch(_0x1188cf){const _0x3f33d1=new _0x3fea54(_0x5c3eb7(0x119),null,{'message':_0x1188cf[_0x5c3eb7(0x10b)]});_0x3f33d1[_0x5c3eb7(0x143)]=_0x1188cf[_0x5c3eb7(0x143)],this[_0x5c3eb7(0x106)](_0x5c3eb7(0x114),{'error':_0x3f33d1});}}async[_0x7596b5(0x11b)](_0x4321a3,_0x24e191){const _0x5f4853=_0x7596b5;try{const _0x531e65=await this[_0x5f4853(0x12a)][_0x5f4853(0x11f)](_0x4321a3)[_0x5f4853(0x142)](),_0x2450c2=await this[_0x5f4853(0x12a)][_0x5f4853(0x129)](_0x4321a3)[_0x5f4853(0x14e)](),_0x5224bf=_0x2450c2[0x0][_0x5f4853(0x12d)];this[_0x5f4853(0xe3)]=!0x0,this['id']=_0x531e65['id'],_0x5f4853(0x14f)in _0x531e65?this[_0x5f4853(0x106)](_0x5f4853(0x133),_0x531e65[_0x5f4853(0x14f)],!0x0):this[_0x5f4853(0x106)](_0x5f4853(0x133),'',!0x0);const _0x2ef4da=(await this[_0x5f4853(0x10d)][_0x5f4853(0x13a)]())[_0x5f4853(0xf4)](_0x3f4d87=>_0x3f4d87['id'][_0x5f4853(0x138)]()===_0x5224bf[_0x5f4853(0x138)]());return this[_0x5f4853(0x121)]=_0x2ef4da,this[_0x5f4853(0x106)](_0x5f4853(0xed),{'selectedModel':_0x2ef4da,'isDisabled':!0x0}),await this[_0x5f4853(0x13c)](_0x2450c2,_0x24e191,_0x5224bf),this[_0x5f4853(0x11c)]=void 0x0,this;}catch(_0x5c7a94){const _0x141214=new _0x3fea54(_0x5f4853(0xf2),null,{'message':_0x5c7a94[_0x5f4853(0x10b)],'conversationId':_0x4321a3});throw _0x141214[_0x5f4853(0x143)]=_0x5c7a94[_0x5f4853(0x143)],this[_0x5f4853(0x106)](_0x5f4853(0x114),{'error':_0x141214}),_0x141214;}}async[_0x7596b5(0x13c)](_0x4b9beb,_0x548675,_0x206ec2){const _0x13ec1c=_0x7596b5;let _0x4fc61b;for(const _0x1d69bf of _0x4b9beb)if(_0x13ec1c(0x148)===_0x1d69bf[_0x13ec1c(0xfd)]){const _0x2244c4=await this[_0x13ec1c(0x145)](_0x1d69bf),_0x9d8249={'isReasoningEnabled':Object[_0x13ec1c(0x130)](_0x1d69bf[_0x13ec1c(0x120)],_0x13ec1c(0x144)),'isWebSearchEnabled':Object[_0x13ec1c(0x130)](_0x1d69bf[_0x13ec1c(0x120)],_0x13ec1c(0xef))};_0x4fc61b=this[_0x13ec1c(0x13d)]({'userMessage':_0x1d69bf[_0x13ec1c(0x125)],'contextItems':_0x2244c4,'capabilities':_0x9d8249,'modelId':_0x206ec2,'quickActionData':_0x1d69bf[_0x13ec1c(0x10e)]?.[_0x13ec1c(0xf8)]}),this[_0x13ec1c(0x11c)]=_0x4fc61b,this[_0x13ec1c(0x107)][_0x13ec1c(0x140)](this[_0x13ec1c(0x11c)][_0x13ec1c(0xff)]);}else{if(_0x13ec1c(0x14b)===_0x1d69bf[_0x13ec1c(0xfd)]&&_0x4fc61b)for(const _0x3c8106 of _0x1d69bf[_0x13ec1c(0xe9)]){const _0x25b004=_0x13ec1c(0x132)===_0x3c8106[_0x13ec1c(0x128)]?_0x13ec1c(0x135):_0x13ec1c(0x10c),_0x4b7c06=_0x4fc61b[_0x13ec1c(0x12c)]()?.[_0x13ec1c(0x127)]!==_0x548675;_0x4fc61b[_0x13ec1c(0x109)]=_0x4fc61b[_0x13ec1c(0xec)]({'type':_0x25b004,'isDone':!0x0,'interactionId':_0x4fc61b['id'],'areActionsDisabled':_0x4b7c06}),_0x4fc61b[_0x13ec1c(0x109)][_0x13ec1c(0x101)](_0x3c8106[_0x13ec1c(0xe9)]);}}}async[_0x7596b5(0x145)](_0x100a31){const _0x301ec9=_0x7596b5,_0x56fdda=new Map();if(!_0x100a31[_0x301ec9(0xe9)])return _0x56fdda;for(const _0x58ae7d of _0x100a31[_0x301ec9(0xe9)]){const _0x437a0f=await this[_0x301ec9(0x107)][_0x301ec9(0xf5)](_0x58ae7d);_0x437a0f&&_0x56fdda[_0x301ec9(0x13b)](_0x437a0f['id'],_0x437a0f);}return _0x56fdda;}async[_0x7596b5(0x117)]({userMessage:_0x4cb88d,quickActionData:_0x2b8109}){const _0x54d984=_0x7596b5;if(!this[_0x54d984(0xe3)])throw new _0x3fea54(_0x54d984(0x10a),null,{'conversation':this});if(this[_0x54d984(0x11c)])throw new _0x3fea54(_0x54d984(0x12e),null,{'conversation':this});try{const _0x2ecf2b=this[_0x54d984(0x107)][_0x54d984(0x115)](),_0x3b6ce2=this[_0x54d984(0xf1)][_0x54d984(0x149)](),_0x2f0632=this[_0x54d984(0x121)]['id'];this[_0x54d984(0x11c)]=this[_0x54d984(0x13d)]({'userMessage':_0x4cb88d,'contextItems':_0x2ecf2b,'capabilities':_0x3b6ce2,'modelId':_0x2f0632,'quickActionData':_0x2b8109}),await this[_0x54d984(0x11c)][_0x54d984(0x111)](),this[_0x54d984(0x107)][_0x54d984(0x140)](this[_0x54d984(0x11c)][_0x54d984(0xff)]);}catch(_0x4c33f9){this[_0x54d984(0x106)](_0x54d984(0x114),{'interactionId':this[_0x54d984(0x11c)]?this[_0x54d984(0x11c)]['id']:void 0x0,'error':_0x4c33f9});}finally{this[_0x54d984(0x11c)]?.[_0x54d984(0x147)](),this[_0x54d984(0x11c)]=void 0x0;}}[_0x7596b5(0x13d)]({userMessage:_0x410efa,contextItems:_0x442523,capabilities:_0x209478,modelId:_0xae203f,quickActionData:_0x2483e2}){const _0x4dddee=_0x7596b5,_0x436155=new _0x4f88cf({'userMessage':_0x410efa,'contextItems':_0x442523,'capabilities':_0x209478,'conversationId':this['id'],'connector':this[_0x4dddee(0x12a)],'editor':this[_0x4dddee(0xfb)][_0x4dddee(0x126)]&&this[_0x4dddee(0xfb)][_0x4dddee(0x126)](),'model':_0xae203f,'quickActionData':_0x2483e2});return _0x436155[_0x4dddee(0x110)](..._0x46bc25)['to'](this),this[_0x4dddee(0xeb)][_0x4dddee(0xe2)](_0x436155),this[_0x4dddee(0x106)](_0x4dddee(0xe5),_0x436155),_0x436155;}[_0x7596b5(0x14c)](_0xb08af0){const _0x3c46da=_0x7596b5;return this[_0x3c46da(0xeb)][_0x3c46da(0xf4)](_0x1d35c1=>_0x1d35c1['id']===_0xb08af0);}[_0x7596b5(0x14d)](_0x33fb50){const _0x11ed97=_0x7596b5,_0x4f81f8=this[_0x11ed97(0x14c)](_0x33fb50);_0x4f81f8&&(_0x4f81f8[_0x11ed97(0xe1)](),this[_0x11ed97(0xeb)][_0x11ed97(0x11a)](this[_0x11ed97(0xeb)][_0x11ed97(0x137)](_0x4f81f8),0x1));}get[_0x7596b5(0x100)](){const _0x579e63=_0x7596b5;return this[_0x579e63(0xeb)][this[_0x579e63(0xeb)][_0x579e63(0xee)]-0x1];}[_0x7596b5(0x103)](_0x19637c){const _0x744996=_0x7596b5;this[_0x744996(0x107)][_0x744996(0x103)](_0x19637c);}async[_0x7596b5(0xe4)]({content:_0x2e3a77,version:_0x54a8c8,sessionId:_0x3a1c80,selections:_0x450d7c}){const _0x470b9f=_0x7596b5;await this[_0x470b9f(0x107)][_0x470b9f(0x131)](_0x2e3a77,_0x54a8c8,_0x3a1c80,_0x450d7c);}[_0x7596b5(0xea)](){const _0x36ef1a=_0x7596b5;return this[_0x36ef1a(0x11c)]?.[_0x36ef1a(0x12c)]()?.[_0x36ef1a(0xe9)]||'';}[_0x7596b5(0x12b)](_0x1eb747){const _0xc47f5c=_0x7596b5;this[_0xc47f5c(0x107)][_0xc47f5c(0x12b)](_0x1eb747);}[_0x7596b5(0xf9)](){const _0x3b00aa=_0x7596b5;this[_0x3b00aa(0x107)][_0x3b00aa(0xf9)]();}[_0x7596b5(0x151)](_0x53a2bb){const _0x399293=_0x7596b5;this[_0x399293(0x107)][_0x399293(0x151)](_0x53a2bb);}[_0x7596b5(0x134)](_0x1debe7){const _0x150f40=_0x7596b5;this[_0x150f40(0x107)][_0x150f40(0x134)](_0x1debe7);}[_0x7596b5(0xfa)](_0x375ef0,_0x1685fc){const _0x352c92=_0x7596b5;this[_0x352c92(0x107)][_0x352c92(0xfa)](_0x375ef0,_0x1685fc);}[_0x7596b5(0xe7)](_0x4d450d,_0x119e3e,_0x1e048d){const _0x21d1f2=_0x7596b5;return this[_0x21d1f2(0x107)][_0x21d1f2(0xe7)](_0x4d450d,_0x119e3e,_0x1e048d);}[_0x7596b5(0x150)](_0x92f8cd){const _0x4a1c25=_0x7596b5;this[_0x4a1c25(0x107)][_0x4a1c25(0x150)](_0x92f8cd);}[_0x7596b5(0x102)](){const _0x2c3016=_0x7596b5;this[_0x2c3016(0xf1)][_0x2c3016(0x102)]();}[_0x7596b5(0xe6)](){const _0x44f237=_0x7596b5;this[_0x44f237(0xf1)][_0x44f237(0xe6)]();}[_0x7596b5(0x123)](){const _0x58db22=_0x7596b5;return this[_0x58db22(0x107)][_0x58db22(0x123)]();}[_0x7596b5(0xf6)](){const _0x327192=_0x7596b5;return this[_0x327192(0x107)][_0x327192(0xf6)]();}[_0x7596b5(0xf3)](){const _0x452cce=_0x7596b5;return this[_0x452cce(0x107)][_0x452cce(0xf3)]();}async[_0x7596b5(0x104)](_0x7edd20){const _0x3b9d64=_0x7596b5;_0x7edd20?!0x1===await this[_0x3b9d64(0x10d)][_0x3b9d64(0x139)](_0x7edd20)&&(_0x471024(_0x3b9d64(0x13e),{'conversation':this,'model':_0x7edd20}),_0x7edd20=(await this[_0x3b9d64(0x10d)][_0x3b9d64(0x11e)]())[0x0]):(_0x471024(_0x3b9d64(0x11d),{'conversation':this}),_0x7edd20=(await this[_0x3b9d64(0x10d)][_0x3b9d64(0x11e)]())[0x0]),_0x7edd20['id']!==this[_0x3b9d64(0x121)]?.['id']&&(this[_0x3b9d64(0x121)]=_0x7edd20,this[_0x3b9d64(0xf1)][_0x3b9d64(0xfe)](),this[_0x3b9d64(0x106)](_0x3b9d64(0xed),{'selectedModel':_0x7edd20}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1589(){var _0x2d0717=['connector','970KftFGq','model','4kwZbDd','102261yosQLW','724328SbXPhk','17190mZknIO','20PHnAlE','userMessage','capabilities','get','950CJcLyJ','queryAssistant','quickActionData','contextItems','current-document','834zyTeqX','conversationId','mapContextItemsToRequestData','3233268DUnCwm','11384wIteHw','2702xHqoCo','sendRequest','getDocumentContext','getCapabilitiesRequestData','28NVhqdF'];_0x1589=function(){return _0x2d0717;};return _0x1589();}function _0x30d6(_0x32bf9b,_0x1232b0){var _0x1589d7=_0x1589();return _0x30d6=function(_0x30d66e,_0x10361f){_0x30d66e=_0x30d66e-0x188;var _0x59f178=_0x1589d7[_0x30d66e];return _0x59f178;},_0x30d6(_0x32bf9b,_0x1232b0);}var _0x1fcdeb=_0x30d6;(function(_0x189495,_0x5d514b){var _0x61f0ad=_0x30d6,_0x543608=_0x189495();while(!![]){try{var _0x277c28=parseInt(_0x61f0ad(0x192))/0x1*(-parseInt(_0x61f0ad(0x19e))/0x2)+parseInt(_0x61f0ad(0x19b))/0x3*(parseInt(_0x61f0ad(0x19a))/0x4)+-parseInt(_0x61f0ad(0x198))/0x5*(parseInt(_0x61f0ad(0x18d))/0x6)+-parseInt(_0x61f0ad(0x196))/0x7*(-parseInt(_0x61f0ad(0x191))/0x8)+parseInt(_0x61f0ad(0x19d))/0x9*(-parseInt(_0x61f0ad(0x188))/0xa)+parseInt(_0x61f0ad(0x19c))/0xb+parseInt(_0x61f0ad(0x190))/0xc;if(_0x277c28===_0x5d514b)break;else _0x543608['push'](_0x543608['shift']());}catch(_0xbe39b0){_0x543608['push'](_0x543608['shift']());}}}(_0x1589,0x2216e));import{AICapabilities as _0x175dcf}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2ad135}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4104b9}from'./aichatcontext.js';export class AIChatInteraction extends _0x2ad135{[_0x1fcdeb(0x19f)];[_0x1fcdeb(0x18e)];[_0x1fcdeb(0x18b)]=new Map();[_0x1fcdeb(0x199)];[_0x1fcdeb(0x18a)];constructor(_0x38d1b7){var _0x120fae=_0x1fcdeb;super(_0x38d1b7),this[_0x120fae(0x18e)]=_0x38d1b7[_0x120fae(0x18e)],this[_0x120fae(0x18b)]=_0x38d1b7[_0x120fae(0x18b)],this[_0x120fae(0x1a0)]=_0x38d1b7[_0x120fae(0x1a0)],this[_0x120fae(0x19f)]=_0x38d1b7[_0x120fae(0x19f)],this[_0x120fae(0x199)]=_0x38d1b7[_0x120fae(0x199)],this[_0x120fae(0x18a)]=_0x38d1b7[_0x120fae(0x18a)];}async[_0x1fcdeb(0x193)](){var _0x2d6d7e=_0x1fcdeb;return this[_0x2d6d7e(0x197)][_0x2d6d7e(0x189)]({'message':this[_0x2d6d7e(0x19f)],'conversationId':this[_0x2d6d7e(0x18e)],'parts':_0x4104b9[_0x2d6d7e(0x18f)](this[_0x2d6d7e(0x18b)]),'capabilities':_0x175dcf[_0x2d6d7e(0x195)](this[_0x2d6d7e(0x1a0)]),'model':this[_0x2d6d7e(0x199)],'quickActionData':this[_0x2d6d7e(0x18a)]});}[_0x1fcdeb(0x194)](){var _0x2ba302=_0x1fcdeb;return this[_0x2ba302(0x18b)][_0x2ba302(0x1a1)](_0x2ba302(0x18c));}}
23
+ function _0x581e(_0x462e0d,_0x411896){var _0x47e544=_0x47e5();return _0x581e=function(_0x581efe,_0x1279c6){_0x581efe=_0x581efe-0x1eb;var _0x470646=_0x47e544[_0x581efe];return _0x470646;},_0x581e(_0x462e0d,_0x411896);}var _0x5a62d0=_0x581e;(function(_0x59cea7,_0x16e24c){var _0x4c532a=_0x581e,_0x443326=_0x59cea7();while(!![]){try{var _0x418af9=parseInt(_0x4c532a(0x1fe))/0x1+-parseInt(_0x4c532a(0x1f7))/0x2*(-parseInt(_0x4c532a(0x1ec))/0x3)+parseInt(_0x4c532a(0x1f9))/0x4*(parseInt(_0x4c532a(0x1f2))/0x5)+parseInt(_0x4c532a(0x1f8))/0x6+-parseInt(_0x4c532a(0x1f5))/0x7*(-parseInt(_0x4c532a(0x1f3))/0x8)+-parseInt(_0x4c532a(0x1ed))/0x9*(parseInt(_0x4c532a(0x202))/0xa)+parseInt(_0x4c532a(0x203))/0xb*(-parseInt(_0x4c532a(0x1f1))/0xc);if(_0x418af9===_0x16e24c)break;else _0x443326['push'](_0x443326['shift']());}catch(_0x5b2a30){_0x443326['push'](_0x443326['shift']());}}}(_0x47e5,0xc20f6));import{AICapabilities as _0x5be3db}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2ec309}from'../../aicore/model/aiinteraction.js';function _0x47e5(){var _0x27511e=['model','conversationId','sendRequest','36nYalho','4300RlzSxz','9616CpcUYK','contextItems','4018kILpHE','connector','170tvMUSr','7039854AJIDUN','2312cZfpWQ','quickActionData','mapContextItemsToRequestData','queryAssistant','userMessage','1236741pKBeWJ','getDocumentContext','capabilities','getCapabilitiesRequestData','5930pSgmBt','7748697cazPnR','current-document','get','11244DOPAvV','15291YfTzOI'];_0x47e5=function(){return _0x27511e;};return _0x47e5();}import{AIChatContext as _0x17c955}from'./aichatcontext.js';export class AIChatInteraction extends _0x2ec309{[_0x5a62d0(0x1fd)];[_0x5a62d0(0x1ef)];[_0x5a62d0(0x1f4)]=new Map();[_0x5a62d0(0x1ee)];[_0x5a62d0(0x1fa)];constructor(_0x4ed8a6){var _0x346075=_0x5a62d0;super(_0x4ed8a6),this[_0x346075(0x1ef)]=_0x4ed8a6[_0x346075(0x1ef)],this[_0x346075(0x1f4)]=_0x4ed8a6[_0x346075(0x1f4)],this[_0x346075(0x200)]=_0x4ed8a6[_0x346075(0x200)],this[_0x346075(0x1fd)]=_0x4ed8a6[_0x346075(0x1fd)],this[_0x346075(0x1ee)]=_0x4ed8a6[_0x346075(0x1ee)],this[_0x346075(0x1fa)]=_0x4ed8a6[_0x346075(0x1fa)];}async[_0x5a62d0(0x1f0)](){var _0x2556e2=_0x5a62d0;return this[_0x2556e2(0x1f6)][_0x2556e2(0x1fc)]({'message':this[_0x2556e2(0x1fd)],'conversationId':this[_0x2556e2(0x1ef)],'parts':_0x17c955[_0x2556e2(0x1fb)](this[_0x2556e2(0x1f4)]),'capabilities':_0x5be3db[_0x2556e2(0x201)](this[_0x2556e2(0x200)]),'model':this[_0x2556e2(0x1ee)],'quickActionData':this[_0x2556e2(0x1fa)]});}[_0x5a62d0(0x1ff)](){var _0x493fa2=_0x5a62d0;return this[_0x493fa2(0x1f4)][_0x493fa2(0x1eb)](_0x493fa2(0x204));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d4777=_0xa722;(function(_0x54dd10,_0x162040){const _0x4b2960=_0xa722,_0x2b5488=_0x54dd10();while(!![]){try{const _0x53bc5f=parseInt(_0x4b2960(0x81))/0x1*(-parseInt(_0x4b2960(0x7c))/0x2)+parseInt(_0x4b2960(0x7a))/0x3+-parseInt(_0x4b2960(0x87))/0x4*(-parseInt(_0x4b2960(0x7b))/0x5)+parseInt(_0x4b2960(0x7d))/0x6+parseInt(_0x4b2960(0x79))/0x7*(-parseInt(_0x4b2960(0x7e))/0x8)+-parseInt(_0x4b2960(0x88))/0x9*(parseInt(_0x4b2960(0x77))/0xa)+parseInt(_0x4b2960(0x85))/0xb;if(_0x53bc5f===_0x162040)break;else _0x2b5488['push'](_0x2b5488['shift']());}catch(_0x50e3d9){_0x2b5488['push'](_0x2b5488['shift']());}}}(_0x5691,0x56ed8));function _0xa722(_0x2125fb,_0x5cd60e){const _0x56918a=_0x5691();return _0xa722=function(_0xa7226b,_0x1ea136){_0xa7226b=_0xa7226b-0x77;let _0x2f0e38=_0x56918a[_0xa7226b];return _0x2f0e38;},_0xa722(_0x2125fb,_0x5cd60e);}function _0x5691(){const _0x483833=['9mkOfqy','6225770Uixmhd','filter','21XGyVVj','498297YiDVFe','2545pIaRMi','62882xZfunH','2884050AGJVLq','156872GadUCr','capabilities','values','19UdpFdE','enabled','length','getAll','9872093EIPHJP','sort','712cnnHyX'];_0x5691=function(){return _0x483833;};return _0x5691();}import{AIModels as _0x241bb3}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x241bb3{async[_0x4d4777(0x84)](){const _0x49578f=_0x4d4777;return(await super[_0x49578f(0x84)]())[_0x49578f(0x86)]((_0x400892,_0x9717ae)=>{const _0xad3998=_0x49578f,_0x144905=Object[_0xad3998(0x80)](_0x400892[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x3bb3c8=>_0x3bb3c8[_0xad3998(0x82)])[_0xad3998(0x83)];return Object[_0xad3998(0x80)](_0x9717ae[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x290a01=>_0x290a01[_0xad3998(0x82)])[_0xad3998(0x83)]-_0x144905;});}}
23
+ function _0x1846(){const _0x2a7829=['length','89933hvrABA','1036053aUDjMD','filter','12qzDLpE','549157vsIwKE','8IpIiYX','1542gGZOar','397078ucNbeg','7948836EhMGOg','120vatQZR','sort','170XiUWmG','values','capabilities','6942663bnjWSN','enabled','23695QpdROU','getAll'];_0x1846=function(){return _0x2a7829;};return _0x1846();}const _0x5ba367=_0x3883;function _0x3883(_0x4a7271,_0x323115){const _0x184642=_0x1846();return _0x3883=function(_0x388369,_0x4685a5){_0x388369=_0x388369-0x8d;let _0x5a7310=_0x184642[_0x388369];return _0x5a7310;},_0x3883(_0x4a7271,_0x323115);}(function(_0xb05bbb,_0x66f9a2){const _0x3d435e=_0x3883,_0x40c397=_0xb05bbb();while(!![]){try{const _0x29110a=parseInt(_0x3d435e(0x9d))/0x1*(parseInt(_0x3d435e(0x8f))/0x2)+-parseInt(_0x3d435e(0x9e))/0x3*(-parseInt(_0x3d435e(0x8d))/0x4)+parseInt(_0x3d435e(0x9a))/0x5*(parseInt(_0x3d435e(0x90))/0x6)+-parseInt(_0x3d435e(0x8e))/0x7*(parseInt(_0x3d435e(0x93))/0x8)+-parseInt(_0x3d435e(0x98))/0x9+parseInt(_0x3d435e(0x95))/0xa*(parseInt(_0x3d435e(0x91))/0xb)+-parseInt(_0x3d435e(0x92))/0xc;if(_0x29110a===_0x66f9a2)break;else _0x40c397['push'](_0x40c397['shift']());}catch(_0x23cbf3){_0x40c397['push'](_0x40c397['shift']());}}}(_0x1846,0x9695f));import{AIModels as _0x5d55d4}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x5d55d4{async[_0x5ba367(0x9b)](){const _0x23428=_0x5ba367;return(await super[_0x23428(0x9b)]())[_0x23428(0x94)]((_0x56162d,_0x32f75f)=>{const _0x119895=_0x23428,_0x45b67f=Object[_0x119895(0x96)](_0x56162d[_0x119895(0x97)])[_0x119895(0x9f)](_0x44503f=>_0x44503f[_0x119895(0x99)])[_0x119895(0x9c)];return Object[_0x119895(0x96)](_0x32f75f[_0x119895(0x97)])[_0x119895(0x9f)](_0x31ea6e=>_0x31ea6e[_0x119895(0x99)])[_0x119895(0x9c)]-_0x45b67f;});}}